diff --git a/PR_INTEGRATION_REPORT.md b/PR_INTEGRATION_REPORT.md new file mode 100644 index 00000000..0301b9dc --- /dev/null +++ b/PR_INTEGRATION_REPORT.md @@ -0,0 +1,76 @@ +# OpenAB Plus:开放 PR 整合与验证报告 + +**报告日期:** 2026-08-12 +**改造分支:** `agent/pr-integration-20260812` +**基线:** `upstream/main` 的 `a03d9de5` +**整合头提交:** `ba7925a5` +**范围:** 当前开放的六个 PR(#30–#35)。[1] + +> 本报告记录的是一条**隔离的本地改造分支**。未向 `upstream/main` 推送、合并或创建远程 PR,因此上游仓库状态未被改变。 + +## 1. 整合结论 + +六个开放 PR 均已抓取并按功能依赖顺序尝试合并至隔离分支。由于 #30 与 #31 是同一会话工作台方向的两套重叠实现,且 #32、#33、#35 都会更新详情页、状态映射或事件流,原始顺序合并会产生多处内容冲突。改造分支保留了较完整的 #30 工作台主实现,并吸收 #31 的兼容模块、#32 的活动流代码、#33 的历史与来源链接修复、#34 的 transcript 存储及只读流,以及 #35 的冷启动回放与集中式状态映射。 + +在首次合并后,前端出现状态映射 API 不一致,后端出现来源链接回填 API 的参数与返回值不一致。两类问题均已在整合分支修复,并通过前端类型检查、前端单测、Rust 工作区静态检查及核心/网关定向测试验证。 + +| PR | 标题 | 处理结果 | 整合提交 | 关键处理 | +|---|---|---|---|---| +| #30 | 三栏只读会话工作台骨架 | 已整合 | `eec52862` | 保留 main 的详情页和已构建产物,接入工作台页面、面板与会话列表能力。 | +| #31 | 用工作台替代 sessions table | 已整合(兼容部分) | `ae12f3d9` | 与 #30 为重叠实现;保留 #30 的活动工作台,吸收 #31 非冲突组件、列表及数据逻辑。 | +| #32 | AionUi 风格会话活动流 | 已整合 | `0e692192` | 接入活动流组件、工具调用规范化、文件差异和终端输出展示能力。 | +| #33 | 修复详情历史与来源链接 | 已整合 | `dd4144b7` | 接入服务端历史/来源修复、状态与详情页面能力,并保留工作台列表。 | +| #34 | transcript 存储和只读流 | 已整合 | `65496780` | 接入 transcript 存储、快照接口、带 generation 的 SSE 流和管理端测试。 | +| #35 | 冷启动回放、来源链接与状态映射 | 已整合 | `885e0bcf` | 无 `Last-Event-ID` 时从序列零回放;统一状态展示与来源跳转。 | + +## 2. 关键冲突解决 + +### 2.1 工作台 UI 的双实现 + +#30 与 #31 都从较早的共同基线引入会话工作台,涉及同名路由、会话表组件、布局、样式、依赖锁文件及生成的 `web/app.js`。本次整合将 #30 作为运行时的主工作台实现,以避免删除较新的主线详情页;#31 的无冲突列表、Inspector、MainPanel、Sidebar 与会话数据逻辑仍被吸收。生成产物在最终前端构建后重新生成,而不是直接采用任一过期 PR 的构建文件。[2] [3] + +### 2.2 Transcript 流与冷启动历史回放 + +#34 将管理端事件流从原有事件总线演进为带 generation 的 `SessionStreamBus`;#35 在同一区域加入无游标冷启动时从序列零回放历史的行为。最终实现使用 `SessionStreamBus` 和 generation 校验,且在无 `Last-Event-ID` 时订阅并回放序列零之后的保留历史。对于旧 generation 的游标,仍返回显式 reset 事件而非错误重放。[5] [6] + +### 2.3 来源链接回填 API + +#34 需要在创建快照时支持可选来源链接,#35 需要让适配器可以幂等回填链接并据此判断是否发布变化。整合后,`SessionSnapshot::set_source_permalink` 接受 `Option<&str>`、只在来源值确有变化时返回 `true`,且不修改 `updated_at`,从而同时满足快照创建、延迟回填和幂等行为。 + +## 3. 验证结果 + +| 验证项目 | 结果 | 说明 | +|---|---|---| +| Git 冲突标记扫描 | 通过 | 未发现 `<<<<<<<`、`=======` 或 `>>>>>>>` 标记。 | +| `git diff --check upstream/main...HEAD` | 通过 | 无空白错误。 | +| Web 依赖安装 | 通过 | 使用锁文件完成 `pnpm --dir web install --frozen-lockfile`。 | +| Web 类型检查 | 通过 | `pnpm --dir web lint` 成功。 | +| Web 单元测试 | 通过 | Vitest:**8 个测试文件、39 个用例全部通过**。 | +| Web 生产构建 | 通过 | `pnpm --dir web build` 成功;Vite 提示部分 bundle 大于 500 kB,属于性能告警而非构建失败。 | +| Rust 工作区静态检查 | 通过 | `cargo check --workspace` 成功。 | +| Rust 核心定向测试 | 通过 | `cargo test -p openab-core --no-default-features --lib --jobs 1`:**544 通过、0 失败**。 | +| Rust 网关定向测试 | 通过 | `cargo test -p openab-gateway --no-default-features --lib --jobs 1`:**30 通过、0 失败**。 | +| 核心模块严格 Clippy | 通过 | `cargo clippy -p openab-core --no-default-features --lib -- -D warnings` 成功。 | +| 修改文件格式检查 | 通过 | `session_snapshot.rs` 和 `session_admin.rs` 的定向 `rustfmt --check` 成功。 | + +## 4. 已知边界与后续工作 + +严格的 `cargo clippy -p openab-gateway --no-default-features --lib -- -D warnings` 未通过,但诊断集中在 `crates/openab-gateway/src/lib.rs` 与 `media.rs` 中原有的未使用导入、未使用变量和 dead-code 项,并非本次修改的 transcript、SSE 或来源链接文件。应将这些 22 项作为单独的网关清理任务处理,避免把无关重构混入本次 PR 整合。 + +完整 `cargo test --workspace` 在首次全量链接/测试构建期间,`aws-sdk-s3` 的编译进程收到 `SIGTERM` 而中止,并非测试断言失败。为避免云依赖的重型构建掩盖本次代码验证,已完成并通过核心与网关的定向测试。建议在资源更充足的 CI runner 上补跑完整工作区测试,以及平台特性组合测试。 + +Vite 的生产构建成功,但生成的 `app.js` 约 2.3 MB(gzip 后约 744 kB)并触发大 chunk 告警。后续可通过路由级动态导入或手工分包,降低首屏加载体积。 + +## 5. 建议的下一步 + +建议将本地分支推送到团队可写的远程 fork 或集成仓库后,创建一条仅指向该改造分支的审查 PR。审查时应重点验证:工作台中 #30/#31 重叠 UI 的最终视觉选择、#34/#35 的冷启动 SSE 回放、Slack/Discord 来源链接回填,以及在 CI 中补跑全量 Rust 工作区测试。 + +## References + +[1]: https://github.com/ZeroPointSix/openab-plus/pulls "ZeroPointSix/openab-plus Pull Requests" +[2]: https://github.com/ZeroPointSix/openab-plus/pull/30 "PR #30 — ZER-404 W1: 三栏只读会话工作台骨架" +[3]: https://github.com/ZeroPointSix/openab-plus/pull/31 "PR #31 — feat(web): replace sessions table with workbench" +[4]: https://github.com/ZeroPointSix/openab-plus/pull/32 "PR #32 — feat(web): add AionUi-inspired session activity feed" +[5]: https://github.com/ZeroPointSix/openab-plus/pull/34 "PR #34 — feat(session): add transcript store and read-only stream" +[6]: https://github.com/ZeroPointSix/openab-plus/pull/35 "PR #35 — fix: ZER-669 P1 遗留修复" +[7]: https://github.com/ZeroPointSix/openab-plus/pull/33 "PR #33 — fix: repair session detail history and source links" diff --git a/crates/openab-core/src/acp/profile_pool.rs b/crates/openab-core/src/acp/profile_pool.rs index 4ddd5966..595ea45b 100644 --- a/crates/openab-core/src/acp/profile_pool.rs +++ b/crates/openab-core/src/acp/profile_pool.rs @@ -3,8 +3,9 @@ use super::pool; use super::protocol::ConfigOption; use crate::agent_profile::{AgentProfileService, ProfileSessionOverrides, RecoveryStrategy}; use crate::config::AgentConfig; -use crate::session_event::{SessionEventBus, SessionEventKind}; +use crate::session_event::{SessionEventBus, SessionEventKind, SessionStreamBus}; use crate::session_snapshot::{SessionRuntimeMetadata, SessionSnapshot, SessionStatus}; +use crate::transcript::SessionTranscriptStore; use anyhow::{anyhow, Result}; use std::collections::HashMap; use std::env; @@ -32,6 +33,8 @@ pub struct SessionPool { thread_policies: RwLock>, thread_gates: RwLock>>>, session_events: SessionEventBus, + session_stream: SessionStreamBus, + transcripts: SessionTranscriptStore, snapshots: RwLock>, external_base_url: Option, #[cfg(any(test, feature = "test-support"))] @@ -54,6 +57,13 @@ impl SessionPool { let mut pools = HashMap::new(); pools.insert("system".to_string(), system_pool); let external_base_url = session_external_base_url_from_env(); + let transcript_capacity = SessionTranscriptStore::capacity_from_env(); + // Transcript retention is configurable independently from the existing + // lifecycle event history. Keep the lifecycle/SSE replay buffer at its + // established default rather than changing it with transcript tuning. + let session_stream = SessionStreamBus::default(); + let session_events = SessionEventBus::new_with_stream(session_stream.clone()); + let transcripts = SessionTranscriptStore::new(transcript_capacity, session_stream.clone()); Self { base_config: config, max_sessions, @@ -64,7 +74,9 @@ impl SessionPool { thread_pools: RwLock::new(HashMap::new()), thread_policies: RwLock::new(HashMap::new()), thread_gates: RwLock::new(HashMap::new()), - session_events: SessionEventBus::default(), + session_events, + session_stream, + transcripts, snapshots: RwLock::new(HashMap::new()), external_base_url, #[cfg(any(test, feature = "test-support"))] @@ -85,6 +97,16 @@ impl SessionPool { self.session_events.clone() } + /// Unified, read-only cursor source for status and transcript SSE events. + pub fn session_stream_bus(&self) -> SessionStreamBus { + self.session_stream.clone() + } + + /// Independent per-session ring buffers for ACP transcript data. + pub fn transcript_store(&self) -> SessionTranscriptStore { + self.transcripts.clone() + } + /// Seed a session snapshot and emit `session.created` for integration tests. #[cfg(any(test, feature = "test-support"))] pub async fn seed_session_snapshot_for_test(&self, snapshot: SessionSnapshot) { @@ -124,6 +146,24 @@ impl SessionPool { working_dir_override: Option<&str>, profile_id: Option<&str>, overrides: Option<&ProfileSessionOverrides>, + ) -> Result { + self.get_or_create_with_profile_and_source( + thread_id, + working_dir_override, + profile_id, + overrides, + None, + ) + .await + } + + pub async fn get_or_create_with_profile_and_source( + &self, + thread_id: &str, + working_dir_override: Option<&str>, + profile_id: Option<&str>, + overrides: Option<&ProfileSessionOverrides>, + source_permalink: Option<&str>, ) -> Result { let gate = self.thread_gate(thread_id).await; let _guard = gate.lock().await; @@ -131,7 +171,11 @@ impl SessionPool { if let Some(pool) = self.existing_pool(thread_id).await { let result = pool.get_or_create(thread_id, working_dir_override).await; return match result { - Ok(outcome) => Ok(self.apply_ensure_outcome(thread_id, outcome).await), + Ok(outcome) => { + self.backfill_source_permalink(thread_id, source_permalink) + .await; + Ok(self.apply_ensure_outcome(thread_id, outcome).await) + } Err(err) => { self.mark_session_error(thread_id, err.to_string()).await; Err(err) @@ -210,6 +254,7 @@ impl SessionPool { self.external_base_url.as_deref(), ); snapshot.replace_runtime_metadata(runtime_metadata); + snapshot.set_source_permalink(source_permalink); if !profile_config_errors.is_empty() { snapshot.set_profile_config_errors(profile_config_errors); } @@ -308,7 +353,8 @@ impl SessionPool { } else { Some( crate::agent_profile::AgentCapabilityResolver::config_schema_from_options( - agent_type, &options, + agent_type, + &options, ), ) } @@ -453,6 +499,22 @@ impl SessionPool { .await; } + /// Backfill the session source permalink (e.g. a Slack/Discord thread URL) + /// resolved lazily by the originating adapter. + /// + /// The permalink is immutable source metadata, so unlike status changes + /// this only updates the stored snapshot — no timeline event is emitted. + /// REST reads and every subsequent event snapshot carry the value. + /// Idempotent: an unchanged permalink skips the write entirely. + pub async fn record_session_source_permalink(&self, thread_id: &str, permalink: String) { + let mut snapshots = self.snapshots.write().await; + if let Some(snapshot) = snapshots.get_mut(thread_id) { + if snapshot.source.permalink.as_deref() != Some(permalink.as_str()) { + snapshot.set_source_permalink(Some(&permalink)); + } + } + } + pub async fn mark_profile_deleted(&self, profile_id: &str) { let updated: Vec = { let mut snapshots = self.snapshots.write().await; @@ -483,6 +545,21 @@ impl SessionPool { .publish(SessionEventKind::SessionCreated, snapshot); } + async fn backfill_source_permalink(&self, thread_id: &str, permalink: Option<&str>) { + let snapshot = { + let mut snapshots = self.snapshots.write().await; + let Some(snapshot) = snapshots.get_mut(thread_id) else { + return; + }; + if !snapshot.set_source_permalink(permalink) { + return; + } + snapshot.clone() + }; + self.session_events + .publish(SessionEventKind::SourceChanged, snapshot); + } + async fn update_snapshot(&self, thread_id: &str, kind: SessionEventKind, apply: F) where F: FnOnce(&mut SessionSnapshot), @@ -992,7 +1069,9 @@ mod tests { )); outer.seed_session_snapshot_for_test(snapshot).await; - outer.record_session_config_update("slack:thread", &[]).await; + outer + .record_session_config_update("slack:thread", &[]) + .await; let snapshot = outer .session_snapshot("slack:thread") @@ -1113,6 +1192,57 @@ mod tests { assert_eq!(snapshot.profile_status, Some(ProfileStatus::Deleted)); } + #[tokio::test] + async fn record_session_source_permalink_backfills_snapshot_source() { + let outer = SessionPool::new(AgentConfig::default(), 2, 120, HashMap::new()); + outer + .seed_session_snapshot_for_test(SessionSnapshot::new( + "slack:thread".into(), + "codex".into(), + "/workspace".into(), + None, + None, + None, + None, + )) + .await; + + outer + .record_session_source_permalink( + "slack:thread", + "https://acme.slack.com/archives/C1/p1700000000000100".into(), + ) + .await; + + let snapshot = outer + .session_snapshot("slack:thread") + .await + .expect("snapshot"); + assert_eq!( + snapshot.source.permalink.as_deref(), + Some("https://acme.slack.com/archives/C1/p1700000000000100") + ); + + // Unknown sessions are ignored; an unchanged permalink skips the write. + outer + .record_session_source_permalink("slack:missing", "https://x".into()) + .await; + outer + .record_session_source_permalink( + "slack:thread", + "https://acme.slack.com/archives/C1/p1700000000000100".into(), + ) + .await; + let snapshot = outer + .session_snapshot("slack:thread") + .await + .expect("snapshot"); + assert_eq!( + snapshot.source.permalink.as_deref(), + Some("https://acme.slack.com/archives/C1/p1700000000000100") + ); + } + #[tokio::test] async fn config_schema_for_agent_uses_live_options_from_matching_session() { let outer = SessionPool::new(AgentConfig::default(), 2, 120, HashMap::new()); diff --git a/crates/openab-core/src/acp/protocol.rs b/crates/openab-core/src/acp/protocol.rs index 4353642b..6c9e2120 100644 --- a/crates/openab-core/src/acp/protocol.rs +++ b/crates/openab-core/src/acp/protocol.rs @@ -230,9 +230,15 @@ pub fn parse_turn_result(result: &Value) -> TurnResult { .and_then(|v| v.as_str()) .map(String::from); let usage = result.get("usage"); - let input_tokens = usage.and_then(|u| u.get("inputTokens")).and_then(|v| v.as_u64()); - let output_tokens = usage.and_then(|u| u.get("outputTokens")).and_then(|v| v.as_u64()); - let total_tokens = usage.and_then(|u| u.get("totalTokens")).and_then(|v| v.as_u64()); + let input_tokens = usage + .and_then(|u| u.get("inputTokens")) + .and_then(|v| v.as_u64()); + let output_tokens = usage + .and_then(|u| u.get("outputTokens")) + .and_then(|v| v.as_u64()); + let total_tokens = usage + .and_then(|u| u.get("totalTokens")) + .and_then(|v| v.as_u64()); TurnResult { stop_reason, input_tokens, @@ -281,7 +287,11 @@ pub struct UsageReport { /// Returns `None` when `success` is not true or the data shape is missing — /// callers should treat that as "usage not supported by this agent". pub fn parse_usage_report(result: &Value) -> Option { - if !result.get("success").and_then(|v| v.as_bool()).unwrap_or(false) { + if !result + .get("success") + .and_then(|v| v.as_bool()) + .unwrap_or(false) + { return None; } let data = result.get("data")?; @@ -307,9 +317,7 @@ pub fn parse_usage_report(result: &Value) -> Option { let has_limit = b .get("hasLimit") .and_then(|v| v.as_bool()) - .unwrap_or_else(|| { - b.get("limit").and_then(|v| v.as_f64()).is_some() - }); + .unwrap_or_else(|| b.get("limit").and_then(|v| v.as_f64()).is_some()); Some(UsageBreakdown { display_name: b.get("displayName")?.as_str()?.to_string(), used: b.get("used")?.as_f64()?, @@ -339,20 +347,29 @@ pub fn parse_usage_report(result: &Value) -> Option { #[derive(Debug)] pub enum AcpEvent { Text(String), - Thinking, + Thinking { + content: String, + }, ToolStart { id: String, title: String, + /// Complete ACP update, retained for transcript consumers that need + /// tool input, output, terminal data, or file-diff details. + payload: Value, }, ToolDone { id: String, title: String, status: String, + /// Complete ACP update; tool_call_update payloads vary by agent. + payload: Value, }, ConfigUpdate { options: Vec, }, - Status, + Plan { + content: String, + }, } pub fn classify_notification(msg: &JsonRpcMessage) -> Option { @@ -378,14 +395,26 @@ pub fn classify_notification(msg: &JsonRpcMessage) -> Option { let text = update.get("content")?.get("text")?.as_str()?; Some(AcpEvent::Text(text.to_string())) } - "agent_thought_chunk" => Some(AcpEvent::Thinking), + "agent_thought_chunk" => { + let content = update + .get("content") + .and_then(|content| content.get("text").or(Some(content))) + .and_then(|content| content.as_str()) + .map(String::from) + .unwrap_or_else(|| update.to_string()); + Some(AcpEvent::Thinking { content }) + } "tool_call" => { let title = update .get("title") .and_then(|v| v.as_str()) .unwrap_or("") .to_string(); - Some(AcpEvent::ToolStart { id: tool_id, title }) + Some(AcpEvent::ToolStart { + id: tool_id, + title, + payload: update.clone(), + }) } "tool_call_update" => { let title = update @@ -403,12 +432,25 @@ pub fn classify_notification(msg: &JsonRpcMessage) -> Option { id: tool_id, title, status, + payload: update.clone(), }) } else { - Some(AcpEvent::ToolStart { id: tool_id, title }) + Some(AcpEvent::ToolStart { + id: tool_id, + title, + payload: update.clone(), + }) } } - "plan" => Some(AcpEvent::Status), + "plan" => { + let content = update + .get("content") + .and_then(|content| content.get("text").or(Some(content))) + .and_then(|content| content.as_str()) + .map(String::from) + .unwrap_or_else(|| update.to_string()); + Some(AcpEvent::Plan { content }) + } "config_option_update" => { let options = parse_config_options(update); Some(AcpEvent::ConfigUpdate { options }) diff --git a/crates/openab-core/src/adapter.rs b/crates/openab-core/src/adapter.rs index 653de053..bb1ad9ad 100644 --- a/crates/openab-core/src/adapter.rs +++ b/crates/openab-core/src/adapter.rs @@ -15,6 +15,7 @@ use crate::format; use crate::markdown::{self, TableMode}; use crate::reactions::StatusReactionController; use crate::session_snapshot::{SessionMetadataSource, SessionSnapshot, SessionStatus}; +use crate::transcript::{SessionTranscriptStore, ToolTranscriptUpdate}; // --- Output directive parsing --- @@ -37,6 +38,73 @@ fn reply_message_limit(platform: &str, adapter_limit: usize) -> usize { } } +/// Keep the visible user text in the transcript while deliberately excluding +/// OpenAB's internal `` envelope from the read-only UI. +fn record_prompt_transcript(pool: &SessionPool, session_id: &str, blocks: &[ContentBlock]) { + let content = blocks + .iter() + .filter_map(|block| match block { + ContentBlock::Text { text } if !text.starts_with("\n") => { + (!text.trim().is_empty()).then_some(text.as_str()) + } + _ => None, + }) + .collect::>() + .join("\n"); + if !content.is_empty() { + pool.transcript_store() + .record_user_text(session_id, content); + } +} + +/// Persist the complete ACP event before its presentation-specific handling. +/// The transcript is a read-only observability feed, so it retains raw tool +/// updates while the channel UI continues to use the existing title/status view. +fn record_acp_event_transcript(store: &SessionTranscriptStore, session_id: &str, event: &AcpEvent) { + match event { + AcpEvent::Text(content) => { + store.append_assistant_text(session_id, content); + } + AcpEvent::Thinking { content } => { + store.append_thinking(session_id, content); + } + AcpEvent::ToolStart { id, title, payload } => { + store.finish_assistant_turn(session_id); + store.upsert_tool_call( + session_id, + ToolTranscriptUpdate { + tool_call_id: id.clone(), + title: title.clone(), + status: "running".to_string(), + completed: false, + payload: payload.clone(), + }, + ); + } + AcpEvent::ToolDone { + id, + title, + status, + payload, + } => { + store.upsert_tool_call( + session_id, + ToolTranscriptUpdate { + tool_call_id: id.clone(), + title: title.clone(), + status: status.clone(), + completed: true, + payload: payload.clone(), + }, + ); + } + AcpEvent::Plan { content } => { + store.record_system_text(session_id, content, "plan"); + } + AcpEvent::ConfigUpdate { .. } => {} + } +} + /// Parse `[[key:value]]` directives from the beginning of agent output. /// Returns parsed directives and the remaining content (directives stripped). pub fn parse_output_directives(content: &str) -> (OutputDirectives, String) { @@ -818,8 +886,7 @@ impl AdapterRouter { ) -> Result<()> { let adapter = adapter.clone(); let thread_channel = thread_channel.clone(); - let message_limit = - reply_message_limit(&thread_channel.platform, adapter.message_limit()); + let message_limit = reply_message_limit(&thread_channel.platform, adapter.message_limit()); let exposes_intermediate_text = adapter.exposes_intermediate_text(); // A strict privacy-boundary adapter (Slack) never publishes raw agent // chunks while a turn is running. ACP uses snapshot edits to produce @@ -831,8 +898,8 @@ impl AdapterRouter { }; // Intermediate narration is never retained across a strict privacy // boundary, even if the shared narration_display setting is enabled. - let keep_full_text = exposes_intermediate_text - && (streaming || self.reactions_config.narration_display); + let keep_full_text = + exposes_intermediate_text && (streaming || self.reactions_config.narration_display); let native = streaming && adapter.uses_native_streaming(other_bot_present); let assistant_status = adapter.uses_assistant_status(); // Platforms that render Markdown tables natively (e.g. Slack Block Kit @@ -882,6 +949,7 @@ impl AdapterRouter { session_pool .mark_session_status(&session_key, SessionStatus::Running) .await; + record_prompt_transcript(&session_pool, &session_key, &content_blocks); let (mut rx, request_id) = match conn.session_prompt(content_blocks).await { Ok(value) => value, Err(err) => { @@ -1110,6 +1178,8 @@ impl AdapterRouter { } if let Some(event) = classify_notification(¬ification) { + let transcript_store = session_pool.transcript_store(); + record_acp_event_transcript(&transcript_store, &session_key, &event); match event { AcpEvent::Text(t) => { text_buf.push_str(&t); @@ -1161,7 +1231,7 @@ impl AdapterRouter { )); } } - AcpEvent::Thinking => { + AcpEvent::Thinking { .. } => { if assistant_status { let _ = adapter .set_status(&thread_channel, "Thinking…") @@ -1170,7 +1240,10 @@ impl AdapterRouter { reactions.set_thinking().await; } } - AcpEvent::ToolStart { id, title } if !title.is_empty() => { + AcpEvent::ToolStart { id, title, .. } => { + if title.is_empty() { + continue; + } // Live indicator: assistant status line vs emoji reaction. if assistant_status { let status = assistant_tool_status( @@ -1222,7 +1295,9 @@ impl AdapterRouter { )); } } - AcpEvent::ToolDone { id, title, status } => { + AcpEvent::ToolDone { + id, title, status, .. + } => { // The final answer block is whatever text the agent // emits AFTER its last tool. Advancing this on every // completion leaves it pointing just past the last @@ -1275,12 +1350,15 @@ impl AdapterRouter { .await; conn.replace_config_options_from_acp(options); } - _ => {} + AcpEvent::Plan { .. } => {} } } } conn.prompt_done().await; + session_pool + .transcript_store() + .finish_assistant_turn(&session_key); // Stop the cosmetic edit loop before the finalize write path // issues its authoritative edit. Dropping buf_tx closes the watch // channel so the loop breaks on its next check, but it may be @@ -1953,15 +2031,15 @@ fn append_observability_footer( label: Option<&str>, ) -> String { let mut fields = Vec::with_capacity(4); - if let Some((url, label)) = - snapshot.and_then(|value| value.external_url.as_deref()).zip(label) + if let Some((url, label)) = snapshot + .and_then(|value| value.external_url.as_deref()) + .zip(label) { fields.push(format!("[{label}]({url})")); } - let runtime_snapshot = snapshot.filter(|value| { - value.metadata_source == Some(SessionMetadataSource::Acp) - }); + let runtime_snapshot = + snapshot.filter(|value| value.metadata_source == Some(SessionMetadataSource::Acp)); let agent = runtime_snapshot .and_then(|value| non_empty(Some(value.agent.as_str()))) .unwrap_or("not reported"); @@ -1973,10 +2051,7 @@ fn append_observability_footer( .unwrap_or("not reported"); fields.push(format!("Agent: `{}`", inline_metadata(agent))); fields.push(format!("Model: `{}`", inline_metadata(model))); - fields.push(format!( - "Thinking: `{}`", - inline_metadata(reasoning_effort) - )); + fields.push(format!("Thinking: `{}`", inline_metadata(reasoning_effort))); let footer = fields.join(" · "); let content = content.trim_end(); @@ -2097,9 +2172,7 @@ fn find_matching_tag_end(content: &str, tag: &str, from: usize) -> Option let next_open = find_opening_tag(content, tag, cursor); let next_close = find_ascii_case_insensitive(content, &close, cursor); match (next_open, next_close) { - (Some((open_start, body_start)), Some(close_start)) - if open_start < close_start => - { + (Some((open_start, body_start)), Some(close_start)) if open_start < close_start => { depth += 1; cursor = body_start; } @@ -2121,9 +2194,7 @@ fn strip_delimited_blocks(content: &str, start_marker: &str, end_marker: &str) - while let Some(start) = find_ascii_case_insensitive(content, start_marker, cursor) { visible.push_str(&content[cursor..start]); let body_start = start + start_marker.len(); - if let Some(end_start) = - find_ascii_case_insensitive(content, end_marker, body_start) - { + if let Some(end_start) = find_ascii_case_insensitive(content, end_marker, body_start) { cursor = end_start + end_marker.len(); } else { cursor = content.len(); @@ -2186,8 +2257,10 @@ fn find_opening_tag(content: &str, tag: &str, from: usize) -> Option<(usize, usi while let Some(start) = find_ascii_case_insensitive(content, &needle, cursor) { let after_name = start + needle.len(); let delimiter = content.as_bytes().get(after_name).copied(); - if matches!(delimiter, Some(b'>') | Some(b' ') | Some(b'\t') | Some(b'\r') | Some(b'\n')) - { + if matches!( + delimiter, + Some(b'>') | Some(b' ') | Some(b'\t') | Some(b'\r') | Some(b'\n') + ) { let body_start = content[after_name..].find('>')? + after_name + 1; return Some((start, body_start)); } @@ -2528,6 +2601,64 @@ fn propagate_mentions_to_chunks( #[cfg(test)] mod tests { use super::*; + use crate::acp::protocol::JsonRpcMessage; + use crate::session_event::SessionStreamBus; + use crate::transcript::SessionTranscriptStore; + use serde_json::json; + + #[test] + fn acp_tool_notifications_retain_full_payload_in_transcript() { + let store = SessionTranscriptStore::new(8, SessionStreamBus::new(8)); + let tool_call = JsonRpcMessage { + id: None, + method: Some("session/update".into()), + result: None, + error: None, + params: Some(json!({ + "update": { + "sessionUpdate": "tool_call", + "toolCallId": "tool-42", + "title": "Terminal", + "rawInput": {"command": "git status"} + } + })), + }; + let tool_done = JsonRpcMessage { + id: None, + method: Some("session/update".into()), + result: None, + error: None, + params: Some(json!({ + "update": { + "sessionUpdate": "tool_call_update", + "toolCallId": "tool-42", + "status": "completed", + "content": [{"type": "text", "text": "working tree clean"}], + "diff": {"path": "src/lib.rs", "after": "new"} + } + })), + }; + + let start = classify_notification(&tool_call).expect("classify tool call"); + record_acp_event_transcript(&store, "session", &start); + let done = classify_notification(&tool_done).expect("classify tool completion"); + record_acp_event_transcript(&store, "session", &done); + + let snapshot = store.snapshot("session", None); + assert_eq!(snapshot.entries.len(), 1); + let entry = &snapshot.entries[0]; + assert_eq!(entry.tool_call_id.as_deref(), Some("tool-42")); + assert_eq!(entry.status.as_deref(), Some("completed")); + assert_eq!( + entry.tool_call.as_ref().unwrap()["rawInput"]["command"], + "git status" + ); + assert_eq!( + entry.tool_result.as_ref().unwrap()["content"][0]["text"], + "working tree clean" + ); + assert_eq!(entry.tool_result.as_ref().unwrap()["diff"]["after"], "new"); + } #[test] fn acp_reply_limit_is_unbounded_others_use_adapter_limit() { @@ -2985,11 +3116,7 @@ mod tests { { let sends = adapter.sends.lock().unwrap(); assert_eq!(sends.len(), 1, "receipt must create exactly one message"); - assert!( - sends[0].contains("OpenAB · 正在处理"), - "got: {}", - sends[0] - ); + assert!(sends[0].contains("OpenAB · 正在处理"), "got: {}", sends[0]); assert!( sends[0].contains("[Open in OpenAB Plus]("), "got: {}", @@ -3004,11 +3131,7 @@ mod tests { 1, "no-tool finish must close the receipt with one edit" ); - assert!( - edits[0].contains("OpenAB · 已完成"), - "got: {}", - edits[0] - ); + assert!(edits[0].contains("OpenAB · 已完成"), "got: {}", edits[0]); assert!( edits[0].contains("[Open in OpenAB Plus]("), "got: {}", @@ -3018,11 +3141,7 @@ mod tests { progress.finish(&[], true).await; let edits = adapter.edits.lock().unwrap(); assert_eq!(edits.len(), 2, "failed finish must edit the same receipt"); - assert!( - edits[1].contains("OpenAB · 处理失败"), - "got: {}", - edits[1] - ); + assert!(edits[1].contains("OpenAB · 处理失败"), "got: {}", edits[1]); assert!(!edits[1].contains("已完成"), "got: {}", edits[1]); } @@ -3165,8 +3284,7 @@ mod tests { #[test] fn privacy_filter_removes_nested_hidden_blocks() { - let input = - "beforeouternested secrettailafter"; + let input = "beforeouternested secrettailafter"; assert_eq!(sanitize_user_visible_text(input), "beforeafter"); } @@ -3220,9 +3338,8 @@ mod tests { #[test] fn public_error_never_echoes_raw_details() { - let output = format_public_error( - "private prompt tool schema at /srv/secrets", - ); + let output = + format_public_error("private prompt tool schema at /srv/secrets"); assert!(output.contains("任务执行失败")); assert!(!output.contains("private prompt")); assert!(!output.contains("/srv/secrets")); @@ -3256,13 +3373,11 @@ mod tests { None, Some("https://openab.example"), ); - snapshot.replace_runtime_metadata( - crate::session_snapshot::SessionRuntimeMetadata::acp( - Some("codex-acp".into()), - Some("gpt-5".into()), - Some("high".into()), - ), - ); + snapshot.replace_runtime_metadata(crate::session_snapshot::SessionRuntimeMetadata::acp( + Some("codex-acp".into()), + Some("gpt-5".into()), + Some("high".into()), + )); let output = append_observability_footer("完成", Some(&snapshot), Some("Open in OpenAB Plus")); assert!(output.contains("[Open in OpenAB Plus](https://openab.example/#/sessions/")); diff --git a/crates/openab-core/src/ambient.rs b/crates/openab-core/src/ambient.rs index 6d356410..cb8014e5 100644 --- a/crates/openab-core/src/ambient.rs +++ b/crates/openab-core/src/ambient.rs @@ -605,7 +605,10 @@ async fn ambient_consumer_loop( } // Ensure session exists. - if let Err(e) = target.ensure_session(&session_key, None, None, None).await { + if let Err(e) = target + .ensure_session(&session_key, None, None, None, None) + .await + { warn!( channel_id = %channel_id, error = %e, diff --git a/crates/openab-core/src/discord.rs b/crates/openab-core/src/discord.rs index c10346df..53f096e4 100644 --- a/crates/openab-core/src/discord.rs +++ b/crates/openab-core/src/discord.rs @@ -57,6 +57,15 @@ fn truncate_for_discord(s: &str, max: usize) -> String { } } +/// Discord web permalink for a channel or thread. Guild channels use +/// `/channels/{guild}/{channel}`; DMs use `/channels/@me/{channel}`. +fn discord_channel_permalink(guild_id: Option, channel_id: u64) -> String { + match guild_id { + Some(guild_id) => format!("https://discord.com/channels/{guild_id}/{channel_id}"), + None => format!("https://discord.com/channels/@me/{channel_id}"), + } +} + /// Avoid unbounded Discord history exports from very large threads. const THREAD_EXPORT_MESSAGE_LIMIT: usize = 5000; @@ -1044,6 +1053,24 @@ impl EventHandler for Handler { } }; + // Backfill the session's source permalink so the admin console can + // deep-link back to the originating Discord channel/thread (ZER-669). + // Idempotent — the pool skips the write when the value is unchanged. + { + let session_channel = DiscordAdapter::resolve_channel(&thread_channel); + if let Ok(ch_id) = session_channel.parse::() { + let permalink = + discord_channel_permalink(msg.guild_id.map(|id| id.get()), ch_id); + self.router + .pool() + .record_session_source_permalink( + &format!("discord:{session_channel}"), + permalink, + ) + .await; + } + } + // Notify user if any images couldn't be processed. if !failed_image_files.is_empty() { let file_list = failed_image_files @@ -1062,6 +1089,11 @@ impl EventHandler for Handler { } let trigger_msg = discord_msg_ref(&msg); + let source_permalink = discord_session_permalink( + &msg.link(), + &msg.channel_id.get().to_string(), + &thread_channel, + ); // Per-thread streaming: check if another bot is present in this thread let other_bot_present_flag = { @@ -1132,6 +1164,7 @@ impl EventHandler for Handler { prompt, extra_blocks, trigger_msg, + source_permalink: Some(source_permalink), arrived_at: std::time::Instant::now(), estimated_tokens, other_bot_present: other_bot_present_flag, @@ -1373,6 +1406,7 @@ impl EventHandler for Handler { prompt, extra_blocks: Vec::new(), trigger_msg, + source_permalink: None, arrived_at: std::time::Instant::now(), estimated_tokens, other_bot_present, @@ -2972,6 +3006,25 @@ async fn get_or_create_thread( } } +/// Return the destination for the session source. For a message that creates a +/// new Discord thread, use that thread's channel URL rather than the original +/// parent-message permalink; otherwise retain the canonical message permalink. +fn discord_session_permalink( + message_permalink: &str, + message_channel_id: &str, + thread_channel: &ChannelRef, +) -> String { + if thread_channel.parent_id.is_none() || thread_channel.channel_id == message_channel_id { + return message_permalink.to_string(); + } + + let marker = format!("/{message_channel_id}/"); + let Some((guild_prefix, _)) = message_permalink.rsplit_once(&marker) else { + return message_permalink.to_string(); + }; + format!("{guild_prefix}/{}", thread_channel.channel_id) +} + /// Detect Discord's "A thread has already been created for this message" error /// (JSON error code 160004). Triggered when two bots responding to the same /// @-mention race to create a thread from the same trigger message. @@ -3622,6 +3675,48 @@ mod tests { assert!(text.contains("content_type: unknown")); } + // --- session source permalink --- + + #[test] + fn session_permalink_targets_new_thread_instead_of_parent_message() { + let thread = ChannelRef { + platform: "discord".into(), + channel_id: "thread".into(), + thread_id: None, + parent_id: Some("parent".into()), + origin_event_id: None, + }; + + assert_eq!( + discord_session_permalink( + "https://discord.com/channels/guild/parent/message", + "parent", + &thread, + ), + "https://discord.com/channels/guild/thread" + ); + } + + #[test] + fn session_permalink_preserves_message_link_inside_existing_thread() { + let thread = ChannelRef { + platform: "discord".into(), + channel_id: "thread".into(), + thread_id: None, + parent_id: None, + origin_event_id: None, + }; + + assert_eq!( + discord_session_permalink( + "https://discord.com/channels/guild/thread/message", + "thread", + &thread, + ), + "https://discord.com/channels/guild/thread/message" + ); + } + // --- thread-race error detection --- /// Detects the Discord error code for "thread already exists" (160004). @@ -4576,4 +4671,23 @@ mod tests { false, false, false, )); } + + // --- Source channel/thread permalink (ZER-669) --- + + #[test] + fn discord_permalink_guild_channel() { + assert_eq!( + discord_channel_permalink(Some(42), 100), + "https://discord.com/channels/42/100" + ); + } + + #[test] + fn discord_permalink_dm_uses_me() { + assert_eq!( + discord_channel_permalink(None, 100), + "https://discord.com/channels/@me/100" + ); + } + } diff --git a/crates/openab-core/src/dispatch.rs b/crates/openab-core/src/dispatch.rs index eeca2a88..46757c5b 100644 --- a/crates/openab-core/src/dispatch.rs +++ b/crates/openab-core/src/dispatch.rs @@ -44,6 +44,8 @@ pub struct BufferedMessage { pub extra_blocks: Vec, /// Anchor for reactions (👀 / ❌). pub trigger_msg: MessageRef, + /// Real platform thread or message URL, used to backfill session source metadata. + pub source_permalink: Option, /// Broker receive time — used for `buffer_wait_ms` observability. pub arrived_at: Instant, /// Rough token estimate for `max_batch_tokens` cap. @@ -141,6 +143,7 @@ pub trait DispatchTarget: Send + Sync + 'static { working_dir: Option<&str>, profile_id: Option<&str>, overrides: Option<&ProfileSessionOverrides>, + source_permalink: Option<&str>, ) -> Result; /// Destroy the session for `session_key` (used to rollback on directive failure). @@ -180,9 +183,16 @@ impl DispatchTarget for AdapterRouter { working_dir: Option<&str>, profile_id: Option<&str>, overrides: Option<&ProfileSessionOverrides>, + source_permalink: Option<&str>, ) -> Result { self.pool() - .get_or_create_with_profile(session_key, working_dir, profile_id, overrides) + .get_or_create_with_profile_and_source( + session_key, + working_dir, + profile_id, + overrides, + source_permalink, + ) .await } @@ -712,6 +722,9 @@ async fn dispatch_batch( // Extract workspace path for ensure_session (None if no directive or resolution failed). let workspace_override: Option = ws_resolved.as_ref().and_then(|r| r.as_ref().ok().cloned()); + let source_permalink = batch + .first() + .and_then(|message| message.source_permalink.as_deref()); // Ensure session exists. The create_gate mutex inside get_or_create serializes // concurrent callers — only the winner gets created_now == true. @@ -721,6 +734,7 @@ async fn dispatch_batch( workspace_override.as_deref(), profile_id.as_deref(), profile_overrides.as_ref(), + source_permalink, ) .await { @@ -1456,6 +1470,7 @@ mod tests { _working_dir: Option<&str>, profile_id: Option<&str>, overrides: Option<&ProfileSessionOverrides>, + _source_permalink: Option<&str>, ) -> Result { self.ensure_calls.lock().unwrap().push(RecordedEnsure { profile_id: profile_id.map(ToString::to_string), @@ -1561,6 +1576,7 @@ mod tests { channel: make_channel("T"), message_id: format!("m-{prompt}"), }, + source_permalink: None, arrived_at: Instant::now(), estimated_tokens: tokens, other_bot_present: false, diff --git a/crates/openab-core/src/gateway.rs b/crates/openab-core/src/gateway.rs index caac2441..62edca8f 100644 --- a/crates/openab-core/src/gateway.rs +++ b/crates/openab-core/src/gateway.rs @@ -1181,6 +1181,7 @@ pub async fn run_gateway_adapter( prompt, extra_blocks, trigger_msg, + source_permalink: None, arrived_at: std::time::Instant::now(), estimated_tokens, // TODO: implement gateway multibot detection @@ -1632,6 +1633,7 @@ pub async fn process_gateway_event( prompt, extra_blocks, trigger_msg, + source_permalink: None, arrived_at: std::time::Instant::now(), estimated_tokens, other_bot_present: false, diff --git a/crates/openab-core/src/lib.rs b/crates/openab-core/src/lib.rs index f4b48a69..21538263 100644 --- a/crates/openab-core/src/lib.rs +++ b/crates/openab-core/src/lib.rs @@ -21,12 +21,13 @@ pub mod profile_store; pub mod reactions; #[cfg(feature = "discord")] pub mod remind; +pub mod secrets; pub mod session_event; pub mod session_snapshot; -pub mod secrets; pub mod setup; pub mod stt; pub mod timestamp; +pub mod transcript; pub mod trust; #[cfg(feature = "discord")] diff --git a/crates/openab-core/src/session_event.rs b/crates/openab-core/src/session_event.rs index 688535ac..66a4d44e 100644 --- a/crates/openab-core/src/session_event.rs +++ b/crates/openab-core/src/session_event.rs @@ -1,7 +1,7 @@ use crate::session_snapshot::SessionSnapshot; +use crate::transcript::TranscriptEvent; use serde::{Deserialize, Serialize}; use std::collections::VecDeque; -use std::sync::atomic::{AtomicU64, Ordering}; use std::sync::{Arc, Mutex}; use tokio::sync::broadcast; use uuid::Uuid; @@ -17,6 +17,7 @@ pub enum SessionEventKind { ConfigChanged, Error, ProfileChanged, + SourceChanged, Exited, } @@ -28,6 +29,7 @@ impl SessionEventKind { Self::ConfigChanged => "config_changed", Self::Error => "error", Self::ProfileChanged => "profile_changed", + Self::SourceChanged => "source_changed", Self::Exited => "exited", } } @@ -40,6 +42,29 @@ pub struct SessionEvent { pub snapshot: SessionSnapshot, } +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] +#[serde(untagged)] +pub enum SessionStreamEvent { + Session(SessionEvent), + Transcript(TranscriptEvent), +} + +impl SessionStreamEvent { + pub fn sequence(&self) -> u64 { + match self { + Self::Session(event) => event.sequence, + Self::Transcript(event) => event.sequence, + } + } + + pub fn as_sse_event(&self) -> &'static str { + match self { + Self::Session(event) => event.event.as_sse_event(), + Self::Transcript(_) => "transcript", + } + } +} + #[derive(Debug, Clone, Default, PartialEq, Eq)] pub struct SessionEventReplay { pub events: Vec, @@ -53,6 +78,19 @@ pub struct SessionEventSubscription { pub replay: SessionEventReplay, } +#[derive(Debug, Clone, Default, PartialEq)] +pub struct SessionStreamReplay { + pub events: Vec, + pub overflowed: bool, + pub oldest_sequence: Option, + pub next_sequence: u64, +} + +pub struct SessionStreamSubscription { + pub receiver: broadcast::Receiver, + pub replay: SessionStreamReplay, +} + #[derive(Debug)] struct SessionEventHistory { capacity: usize, @@ -96,11 +134,157 @@ impl SessionEventHistory { } } +#[derive(Debug)] +struct SessionStreamHistory { + capacity: usize, + next_sequence: u64, + events: VecDeque, +} + +impl SessionStreamHistory { + fn new(capacity: usize) -> Self { + Self { + capacity: capacity.max(1), + next_sequence: 1, + events: VecDeque::new(), + } + } + + fn push(&mut self, event: SessionStreamEvent) { + while self.events.len() >= self.capacity { + self.events.pop_front(); + } + self.events.push_back(event); + } + + fn replay_after(&self, last_sequence: u64) -> SessionStreamReplay { + let oldest_sequence = self.events.front().map(SessionStreamEvent::sequence); + let overflowed = match oldest_sequence { + Some(oldest_sequence) => last_sequence < oldest_sequence.saturating_sub(1), + None => false, + }; + let events = self + .events + .iter() + .filter(|event| event.sequence() > last_sequence) + .cloned() + .collect(); + + SessionStreamReplay { + events, + overflowed, + oldest_sequence, + next_sequence: self.next_sequence, + } + } +} + +/// A unified, read-only event stream used by the session SSE endpoint. +/// +/// Lifecycle events still retain their dedicated [`SessionEventBus`] so high-rate +/// transcript activity never becomes lifecycle-bus traffic. This bus only assigns +/// a common generation and monotonically increasing sequence to the already +/// separate lifecycle and transcript producers. +#[derive(Clone)] +pub struct SessionStreamBus { + tx: broadcast::Sender, + generation: Arc, + history: Arc>, +} + +impl Default for SessionStreamBus { + fn default() -> Self { + Self::new(DEFAULT_HISTORY_CAPACITY) + } +} + +impl SessionStreamBus { + pub fn new(capacity: usize) -> Self { + let (tx, _) = broadcast::channel(capacity.max(1)); + Self { + tx, + generation: Uuid::new_v4().simple().to_string().into(), + history: Arc::new(Mutex::new(SessionStreamHistory::new(capacity))), + } + } + + pub fn generation(&self) -> &str { + self.generation.as_ref() + } + + pub fn event_id(&self, sequence: u64) -> String { + format!("{}:{sequence}", self.generation()) + } + + pub fn subscribe(&self) -> broadcast::Receiver { + self.tx.subscribe() + } + + pub fn subscribe_after(&self, last_sequence: Option) -> SessionStreamSubscription { + let history = self.history.lock().expect("session stream history lock"); + let replay = last_sequence + .map(|last_sequence| history.replay_after(last_sequence)) + .unwrap_or_default(); + let receiver = self.tx.subscribe(); + SessionStreamSubscription { receiver, replay } + } + + pub fn replay_after(&self, last_sequence: u64) -> SessionStreamReplay { + self.history + .lock() + .expect("session stream history lock") + .replay_after(last_sequence) + } + + pub(crate) fn publish_session( + &self, + event: SessionEventKind, + snapshot: SessionSnapshot, + ) -> SessionEvent { + let mut history = self.history.lock().expect("session stream history lock"); + let published = SessionEvent { + sequence: history.next_sequence, + event, + snapshot, + }; + history.next_sequence += 1; + let stream_event = SessionStreamEvent::Session(published.clone()); + history.push(stream_event.clone()); + let _ = self.tx.send(stream_event); + published + } + + /// Serialize a transcript mutation with global stream sequence allocation. + /// The closure may update the per-session transcript ring buffer before the + /// event is put into this stream's replay history. + pub(crate) fn publish_transcript(&self, build: F) -> TranscriptEvent + where + F: FnOnce(u64) -> TranscriptEvent, + { + let mut history = self.history.lock().expect("session stream history lock"); + let sequence = history.next_sequence; + history.next_sequence += 1; + let published = build(sequence); + // `published.sequence` is global to the SSE stream, while + // `published.entry.sequence` is local to its session's snapshot API. + let stream_event = SessionStreamEvent::Transcript(published.clone()); + history.push(stream_event.clone()); + let _ = self.tx.send(stream_event); + published + } + + fn next_sequence(&self) -> u64 { + self.history + .lock() + .expect("session stream history lock") + .next_sequence + } +} + #[derive(Clone)] pub struct SessionEventBus { tx: broadcast::Sender, - generation: Arc, - next_sequence: Arc, + stream: SessionStreamBus, history: Arc>, } @@ -112,21 +296,28 @@ impl Default for SessionEventBus { impl SessionEventBus { pub fn new(capacity: usize) -> Self { + Self::new_with_stream_capacity(capacity, SessionStreamBus::new(capacity)) + } + + pub(crate) fn new_with_stream(stream: SessionStreamBus) -> Self { + Self::new_with_stream_capacity(DEFAULT_HISTORY_CAPACITY, stream) + } + + fn new_with_stream_capacity(capacity: usize, stream: SessionStreamBus) -> Self { let (tx, _) = broadcast::channel(capacity.max(1)); Self { tx, - generation: Uuid::new_v4().simple().to_string().into(), - next_sequence: Arc::new(AtomicU64::new(1)), + stream, history: Arc::new(Mutex::new(SessionEventHistory::new(capacity))), } } pub fn generation(&self) -> &str { - self.generation.as_ref() + self.stream.generation() } pub fn event_id(&self, sequence: u64) -> String { - format!("{}:{sequence}", self.generation()) + self.stream.event_id(sequence) } pub fn subscribe(&self) -> broadcast::Receiver { @@ -136,9 +327,7 @@ impl SessionEventBus { pub fn subscribe_after(&self, last_sequence: Option) -> SessionEventSubscription { let history = self.history.lock().expect("session event history lock"); let replay = last_sequence - .map(|last_sequence| { - history.replay_after(last_sequence, self.next_sequence.load(Ordering::Relaxed)) - }) + .map(|last_sequence| history.replay_after(last_sequence, self.stream.next_sequence())) .unwrap_or_default(); let receiver = self.tx.subscribe(); @@ -149,17 +338,15 @@ impl SessionEventBus { self.history .lock() .expect("session event history lock") - .replay_after(last_sequence, self.next_sequence.load(Ordering::Relaxed)) + .replay_after(last_sequence, self.stream.next_sequence()) } pub fn publish(&self, event: SessionEventKind, snapshot: SessionSnapshot) -> SessionEvent { - let mut history = self.history.lock().expect("session event history lock"); - let published = SessionEvent { - sequence: self.next_sequence.fetch_add(1, Ordering::Relaxed), - event, - snapshot, - }; - history.push(published.clone()); + let published = self.stream.publish_session(event, snapshot); + self.history + .lock() + .expect("session event history lock") + .push(published.clone()); let _ = self.tx.send(published.clone()); published } @@ -201,6 +388,10 @@ mod tests { SessionEventKind::ProfileChanged.as_sse_event(), "profile_changed" ); + assert_eq!( + SessionEventKind::SourceChanged.as_sse_event(), + "source_changed" + ); assert_eq!(SessionEventKind::Exited.as_sse_event(), "exited"); } diff --git a/crates/openab-core/src/session_snapshot.rs b/crates/openab-core/src/session_snapshot.rs index d6fc6778..2b30c5dc 100644 --- a/crates/openab-core/src/session_snapshot.rs +++ b/crates/openab-core/src/session_snapshot.rs @@ -88,6 +88,11 @@ impl ProfileConfigError { pub struct SessionSource { pub platform: String, pub thread_id: String, + /// Permalink to the originating thread (e.g. a Slack/Discord thread URL), + /// backfilled lazily by the source adapter. Optional and additive — older + /// payloads simply omit the field. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub permalink: Option, } impl SessionSource { @@ -96,10 +101,12 @@ impl SessionSource { Some((platform, thread_id)) if !platform.is_empty() && !thread_id.is_empty() => Self { platform: platform.to_string(), thread_id: thread_id.to_string(), + permalink: None, }, _ => Self { platform: "unknown".into(), thread_id: session_key.to_string(), + permalink: None, }, } } @@ -227,6 +234,18 @@ impl SessionSnapshot { self.updated_at = Utc::now(); true } + + /// Set the permalink to the session's source thread. Deliberately does + /// NOT bump `updated_at`: the permalink is immutable source metadata, + /// not a session-activity signal. Returns whether the source changed. + pub fn set_source_permalink(&mut self, permalink: Option<&str>) -> bool { + let permalink = permalink.map(str::to_owned); + if self.source.permalink == permalink { + return false; + } + self.source.permalink = permalink; + true + } } pub fn session_external_url(base_url: Option<&str>, session_id: &str) -> Option { @@ -419,4 +438,34 @@ mod tests { assert!(!snapshot.mark_profile_deleted("profile-1")); assert!(!snapshot.mark_profile_deleted("profile-2")); } + + #[test] + fn source_permalink_is_optional_and_serialized_when_present() { + let mut snapshot = SessionSnapshot::new( + "slack:thread".into(), + "codex".into(), + "/workspace".into(), + None, + None, + None, + None, + ); + + // Omitted entirely until an adapter backfills it. + let value = serde_json::to_value(&snapshot).expect("snapshot should serialize"); + assert!(value["source"].get("permalink").is_none()); + + assert!(snapshot + .set_source_permalink(Some("https://acme.slack.com/archives/C1/p1700000000000100",))); + let value = serde_json::to_value(&snapshot).expect("snapshot should serialize"); + assert_eq!( + value["source"]["permalink"], + "https://acme.slack.com/archives/C1/p1700000000000100" + ); + + // Backwards compatible: payloads without the field still deserialize. + let legacy = serde_json::json!({ "platform": "slack", "thread_id": "T1" }); + let source: SessionSource = serde_json::from_value(legacy).expect("legacy source"); + assert_eq!(source.permalink, None); + } } diff --git a/crates/openab-core/src/slack.rs b/crates/openab-core/src/slack.rs index f8fe2135..d0b7bbfe 100644 --- a/crates/openab-core/src/slack.rs +++ b/crates/openab-core/src/slack.rs @@ -232,6 +232,24 @@ impl SlackAdapter { Ok(json) } + /// Resolve the Slack permalink for a message or thread root via the official API. + /// The result is optional so message delivery remains available when the app lacks + /// the scope or Slack cannot resolve a link. + async fn message_permalink(&self, channel_id: &str, message_ts: &str) -> Option { + let response = self + .api_get( + "chat.getPermalink", + &[("channel", channel_id), ("message_ts", message_ts)], + ) + .await + .ok()?; + response + .get("permalink") + .and_then(serde_json::Value::as_str) + .filter(|value| !value.trim().is_empty()) + .map(ToOwned::to_owned) + } + /// Resolve a Slack user ID to display name via users.info API. /// Results are cached for 5 minutes to avoid hitting Slack rate limits. async fn resolve_user_name(&self, user_id: &str) -> Option { @@ -1807,6 +1825,7 @@ async fn handle_message( .thread_id .as_deref() .unwrap_or(&thread_channel.channel_id); + let source_permalink = adapter.message_permalink(&channel_id, thread_id).await; let thread_key = dispatcher.key("slack", thread_id, &sender.sender_id); let estimated_tokens = crate::dispatch::estimate_tokens(&prompt, &extra_blocks); let buf_msg = crate::dispatch::BufferedMessage { @@ -1815,6 +1834,7 @@ async fn handle_message( prompt, extra_blocks, trigger_msg, + source_permalink, arrived_at: std::time::Instant::now(), estimated_tokens, other_bot_present, diff --git a/crates/openab-core/src/transcript.rs b/crates/openab-core/src/transcript.rs new file mode 100644 index 00000000..9efae2b1 --- /dev/null +++ b/crates/openab-core/src/transcript.rs @@ -0,0 +1,572 @@ +use crate::session_event::SessionStreamBus; +use chrono::{DateTime, Utc}; +use serde::{Deserialize, Serialize}; +use serde_json::Value; +use std::collections::{HashMap, VecDeque}; +use std::env; +use std::sync::{Arc, Mutex}; + +pub const DEFAULT_TRANSCRIPT_CAPACITY: usize = 1000; + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] +#[serde(rename_all = "snake_case")] +pub enum TranscriptRole { + User, + Assistant, + System, + Tool, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] +pub struct TranscriptEntry { + /// Stable per-session identity. Every revision of a streamed assistant or + /// tool entry keeps this value so a client can upsert rather than append. + pub entry_id: String, + /// A per-session mutation sequence. A merged text entry or tool upsert gets + /// a fresh sequence so snapshot `after` requests can replay its latest form. + pub sequence: u64, + pub timestamp: DateTime, + pub role: TranscriptRole, + #[serde(skip_serializing_if = "Option::is_none")] + pub content: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub tool_call: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub tool_result: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub tool_call_id: Option, + #[serde(skip_serializing_if = "Option::is_none")] + pub status: Option, +} + +#[derive(Debug, Clone)] +struct TranscriptEntryDraft { + role: TranscriptRole, + content: Option, + tool_call: Option, + tool_result: Option, + tool_call_id: Option, + status: Option, +} + +/// Complete information for one ACP tool_call or tool_call_update notification. +/// `payload` is intentionally not normalized: ACP agents use agent-specific +/// fields for raw input, output, terminal output, and file diffs. +#[derive(Debug, Clone)] +pub struct ToolTranscriptUpdate { + pub tool_call_id: String, + pub title: String, + pub status: String, + pub completed: bool, + pub payload: Value, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] +pub struct TranscriptEvent { + /// The global sequence used by the shared `/sessions/events` SSE cursor. + pub sequence: u64, + pub session_id: String, + pub entry: TranscriptEntry, +} + +#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] +pub struct TranscriptSnapshot { + pub session_id: String, + pub entries: Vec, + pub overflowed: bool, + #[serde(skip_serializing_if = "Option::is_none")] + pub oldest_sequence: Option, + pub next_sequence: u64, +} + +#[derive(Debug)] +struct TranscriptSession { + capacity: usize, + next_sequence: u64, + next_entry_id: u64, + /// The current, de-duplicated display state. Assistant text chunks and a + /// tool's lifecycle share one visible entry each. + entries: VecDeque, + /// Bounded mutation history used only for `after` replay. It can contain + /// multiple revisions of the same visible entry so reconnecting clients can + /// apply an upsert without retrieving a full snapshot. + events: VecDeque, +} + +impl TranscriptSession { + fn new(capacity: usize) -> Self { + Self { + capacity: capacity.max(1), + next_sequence: 1, + next_entry_id: 1, + entries: VecDeque::new(), + events: VecDeque::new(), + } + } + + fn allocate_sequence(&mut self) -> u64 { + let sequence = self.next_sequence; + self.next_sequence += 1; + sequence + } + + fn allocate_entry_id(&mut self) -> String { + let entry_id = format!("entry-{}", self.next_entry_id); + self.next_entry_id += 1; + entry_id + } + + fn push_event(&mut self, entry: TranscriptEntry) { + while self.events.len() >= self.capacity { + self.events.pop_front(); + } + self.events.push_back(entry); + } + + fn push_entry(&mut self, entry: TranscriptEntry) { + while self.entries.len() >= self.capacity { + self.entries.pop_front(); + } + self.entries.push_back(entry); + } + + fn snapshot(&self, session_id: &str, after: Option) -> TranscriptSnapshot { + let (entries, oldest_sequence) = match after { + Some(after) => ( + self.events + .iter() + .filter(|entry| entry.sequence > after) + .cloned() + .collect(), + self.events.front().map(|entry| entry.sequence), + ), + None => ( + self.entries.iter().cloned().collect(), + self.entries.front().map(|entry| entry.sequence), + ), + }; + let overflowed = after.is_some_and(|after| { + oldest_sequence.is_some_and(|oldest| after < oldest.saturating_sub(1)) + }); + + TranscriptSnapshot { + session_id: session_id.to_string(), + entries, + overflowed, + oldest_sequence, + next_sequence: self.next_sequence, + } + } +} + +#[derive(Debug, Default)] +struct TranscriptStoreInner { + sessions: HashMap, +} + +/// In-memory, per-session transcript storage. +/// +/// The store is intentionally independent from `SessionEventBus`: lifecycle +/// status events stay low-volume while ACP text chunks are retained here. The +/// shared stream bus only serializes SSE cursor allocation across those two +/// independent producers. +#[derive(Clone)] +pub struct SessionTranscriptStore { + capacity: usize, + stream: SessionStreamBus, + inner: Arc>, +} + +impl SessionTranscriptStore { + pub fn new(capacity: usize, stream: SessionStreamBus) -> Self { + Self { + capacity: capacity.max(1), + stream, + inner: Arc::new(Mutex::new(TranscriptStoreInner::default())), + } + } + + pub fn capacity_from_env() -> usize { + env::var("OPENAB_TRANSCRIPT_HISTORY_CAPACITY") + .ok() + .and_then(|value| value.parse::().ok()) + .filter(|capacity| *capacity > 0) + .unwrap_or(DEFAULT_TRANSCRIPT_CAPACITY) + } + + pub fn snapshot(&self, session_id: &str, after: Option) -> TranscriptSnapshot { + self.inner + .lock() + .expect("session transcript store lock") + .sessions + .get(session_id) + .map(|session| session.snapshot(session_id, after)) + .unwrap_or(TranscriptSnapshot { + session_id: session_id.to_string(), + entries: Vec::new(), + overflowed: false, + oldest_sequence: None, + next_sequence: 1, + }) + } + + pub fn record_user_text( + &self, + session_id: &str, + content: impl Into, + ) -> TranscriptEvent { + self.append_entry( + session_id, + TranscriptEntryDraft { + role: TranscriptRole::User, + content: Some(content.into()), + tool_call: None, + tool_result: None, + tool_call_id: None, + status: Some("completed".to_string()), + }, + ) + } + + pub fn record_system_text( + &self, + session_id: &str, + content: impl Into, + status: impl Into, + ) -> TranscriptEvent { + self.append_entry( + session_id, + TranscriptEntryDraft { + role: TranscriptRole::System, + content: Some(content.into()), + tool_call: None, + tool_result: None, + tool_call_id: None, + status: Some(status.into()), + }, + ) + } + + /// Merge each ACP `agent_message_chunk` into the active assistant entry. + /// A new mutation sequence is emitted for each update, but the full snapshot + /// contains one display entry instead of one line per token. + pub fn append_assistant_text( + &self, + session_id: &str, + content: impl Into, + ) -> TranscriptEvent { + let content = content.into(); + self.mutate(session_id, move |session| { + let sequence = session.allocate_sequence(); + let now = Utc::now(); + if let Some(entry) = session.entries.back_mut().filter(|entry| { + entry.role == TranscriptRole::Assistant + && entry.status.as_deref() == Some("streaming") + && entry.tool_call_id.is_none() + }) { + entry.sequence = sequence; + entry.timestamp = now; + entry + .content + .get_or_insert_with(String::new) + .push_str(&content); + let event = entry.clone(); + session.push_event(event.clone()); + return event; + } + + let entry = TranscriptEntry { + entry_id: session.allocate_entry_id(), + sequence, + timestamp: now, + role: TranscriptRole::Assistant, + content: Some(content), + tool_call: None, + tool_result: None, + tool_call_id: None, + status: Some("streaming".to_string()), + }; + session.push_entry(entry.clone()); + session.push_event(entry.clone()); + entry + }) + } + + pub fn append_thinking(&self, session_id: &str, content: impl Into) -> TranscriptEvent { + self.append_entry( + session_id, + TranscriptEntryDraft { + role: TranscriptRole::Assistant, + content: Some(content.into()), + tool_call: None, + tool_result: None, + tool_call_id: None, + status: Some("thinking".to_string()), + }, + ) + } + + pub fn upsert_tool_call( + &self, + session_id: &str, + update: ToolTranscriptUpdate, + ) -> TranscriptEvent { + self.mutate(session_id, move |session| { + let sequence = session.allocate_sequence(); + let now = Utc::now(); + let tool_call_id = update.tool_call_id; + let title = update.title; + let status = update.status; + let payload = tool_call_payload(update.payload, &tool_call_id, &title); + if let Some(entry) = session.entries.iter_mut().find(|entry| { + entry.role == TranscriptRole::Tool + && entry.tool_call_id.as_deref() == Some(tool_call_id.as_str()) + }) { + entry.sequence = sequence; + entry.timestamp = now; + if !title.is_empty() { + entry.content = Some(title.clone()); + } + entry.tool_call = Some(merge_tool_payload(entry.tool_call.take(), payload.clone())); + entry.status = Some(status.clone()); + if update.completed { + entry.tool_result = Some(merge_tool_payload(entry.tool_result.take(), payload)); + } + let event = entry.clone(); + session.push_event(event.clone()); + return event; + } + + let entry = TranscriptEntry { + entry_id: session.allocate_entry_id(), + sequence, + timestamp: now, + role: TranscriptRole::Tool, + content: (!title.is_empty()).then_some(title), + tool_call: Some(payload.clone()), + tool_result: update.completed.then_some(payload), + tool_call_id: Some(tool_call_id), + status: Some(status), + }; + session.push_entry(entry.clone()); + session.push_event(entry.clone()); + entry + }) + } + + pub fn finish_assistant_turn(&self, session_id: &str) -> Option { + self.try_mutate(session_id, |session| { + let sequence = session.allocate_sequence(); + let now = Utc::now(); + let entry = session.entries.back_mut().filter(|entry| { + entry.role == TranscriptRole::Assistant + && entry.status.as_deref() == Some("streaming") + && entry.tool_call_id.is_none() + })?; + entry.sequence = sequence; + entry.timestamp = now; + entry.status = Some("completed".to_string()); + let event = entry.clone(); + session.push_event(event.clone()); + Some(event) + }) + } + + fn append_entry(&self, session_id: &str, draft: TranscriptEntryDraft) -> TranscriptEvent { + self.mutate(session_id, move |session| { + let entry = TranscriptEntry { + entry_id: session.allocate_entry_id(), + sequence: session.allocate_sequence(), + timestamp: Utc::now(), + role: draft.role, + content: draft.content, + tool_call: draft.tool_call, + tool_result: draft.tool_result, + tool_call_id: draft.tool_call_id, + status: draft.status, + }; + session.push_entry(entry.clone()); + session.push_event(entry.clone()); + entry + }) + } + + fn mutate(&self, session_id: &str, mutate: F) -> TranscriptEvent + where + F: FnOnce(&mut TranscriptSession) -> TranscriptEntry, + { + let session_id = session_id.to_string(); + self.stream.publish_transcript(move |stream_sequence| { + let entry = { + let mut inner = self.inner.lock().expect("session transcript store lock"); + let session = inner + .sessions + .entry(session_id.clone()) + .or_insert_with(|| TranscriptSession::new(self.capacity)); + mutate(session) + }; + TranscriptEvent { + sequence: stream_sequence, + session_id, + entry, + } + }) + } + + fn try_mutate(&self, session_id: &str, mutate: F) -> Option + where + F: FnOnce(&mut TranscriptSession) -> Option, + { + let session_id = session_id.to_string(); + let mut inner = self.inner.lock().expect("session transcript store lock"); + let session = inner.sessions.get_mut(&session_id)?; + let entry = mutate(session)?; + drop(inner); + Some( + self.stream + .publish_transcript(move |stream_sequence| TranscriptEvent { + sequence: stream_sequence, + session_id, + entry, + }), + ) + } +} + +fn tool_call_payload(mut payload: Value, tool_call_id: &str, title: &str) -> Value { + if let Value::Object(fields) = &mut payload { + fields + .entry("toolCallId".to_string()) + .or_insert_with(|| Value::String(tool_call_id.to_string())); + if !title.is_empty() { + fields.insert("title".to_string(), Value::String(title.to_string())); + } + } + payload +} + +fn merge_tool_payload(existing: Option, update: Value) -> Value { + match (existing, update) { + (Some(Value::Object(mut existing)), Value::Object(update)) => { + existing.extend(update); + Value::Object(existing) + } + (_, update) => update, + } +} + +#[cfg(test)] +mod tests { + use super::*; + use serde_json::json; + + fn store(capacity: usize) -> SessionTranscriptStore { + SessionTranscriptStore::new(capacity, SessionStreamBus::new(32)) + } + + #[test] + fn merges_assistant_chunks_into_one_snapshot_entry() { + let store = store(8); + let first = store.append_assistant_text("session", "hello"); + let second = store.append_assistant_text("session", " world"); + + assert!(second.sequence > first.sequence); + assert_eq!(first.entry.entry_id, second.entry.entry_id); + let snapshot = store.snapshot("session", None); + assert_eq!(snapshot.entries.len(), 1); + assert_eq!(snapshot.entries[0].entry_id, first.entry.entry_id); + assert_eq!(snapshot.entries[0].content.as_deref(), Some("hello world")); + assert_eq!(snapshot.entries[0].sequence, 2); + + let replay = store.snapshot("session", Some(1)); + assert_eq!(replay.entries.len(), 1); + assert_eq!(replay.entries[0].content.as_deref(), Some("hello world")); + assert_eq!(replay.entries[0].sequence, 2); + } + + #[test] + fn upserts_tool_calls_by_stable_identifier_without_losing_raw_payload() { + let store = store(8); + let first = store.upsert_tool_call( + "session", + ToolTranscriptUpdate { + tool_call_id: "tool-1".into(), + title: "Terminal".into(), + status: "running".into(), + completed: false, + payload: json!({ + "sessionUpdate": "tool_call", + "rawInput": {"command": "git status"} + }), + }, + ); + let second = store.upsert_tool_call( + "session", + ToolTranscriptUpdate { + tool_call_id: "tool-1".into(), + title: "".into(), + status: "completed".into(), + completed: true, + payload: json!({ + "sessionUpdate": "tool_call_update", + "content": [{"type": "text", "text": "clean"}], + "diff": {"path": "src/lib.rs", "before": "old", "after": "new"} + }), + }, + ); + + assert!(second.sequence > first.sequence); + assert_eq!(first.entry.entry_id, second.entry.entry_id); + let snapshot = store.snapshot("session", None); + assert_eq!(snapshot.entries.len(), 1); + let entry = &snapshot.entries[0]; + assert_eq!(entry.tool_call_id.as_deref(), Some("tool-1")); + assert_eq!(entry.status.as_deref(), Some("completed")); + assert_eq!( + entry.tool_call.as_ref().unwrap()["rawInput"]["command"], + "git status" + ); + assert_eq!( + entry.tool_call.as_ref().unwrap()["diff"]["path"], + "src/lib.rs" + ); + assert_eq!( + entry.tool_result.as_ref().unwrap()["content"][0]["text"], + "clean" + ); + assert_eq!(entry.tool_result.as_ref().unwrap()["diff"]["after"], "new"); + } + + #[test] + fn reports_history_gap_after_bounded_replay_overflow() { + let store = store(2); + store.record_user_text("session", "one"); + store.record_user_text("session", "two"); + store.record_user_text("session", "three"); + + let replay = store.snapshot("session", Some(0)); + assert!(replay.overflowed); + assert_eq!(replay.oldest_sequence, Some(2)); + assert_eq!(replay.next_sequence, 4); + assert_eq!( + replay + .entries + .iter() + .map(|entry| entry.content.as_deref()) + .collect::>(), + vec![Some("two"), Some("three")] + ); + } + + #[test] + fn configured_capacity_requires_a_positive_integer() { + std::env::set_var("OPENAB_TRANSCRIPT_HISTORY_CAPACITY", "17"); + assert_eq!(SessionTranscriptStore::capacity_from_env(), 17); + std::env::set_var("OPENAB_TRANSCRIPT_HISTORY_CAPACITY", "0"); + assert_eq!( + SessionTranscriptStore::capacity_from_env(), + DEFAULT_TRANSCRIPT_CAPACITY + ); + std::env::remove_var("OPENAB_TRANSCRIPT_HISTORY_CAPACITY"); + } +} diff --git a/crates/openab-gateway/src/session_admin.rs b/crates/openab-gateway/src/session_admin.rs index b4230cf1..1e75f28e 100644 --- a/crates/openab-gateway/src/session_admin.rs +++ b/crates/openab-gateway/src/session_admin.rs @@ -1,4 +1,4 @@ -use axum::extract::Path; +use axum::extract::{Path, Query}; use axum::http::{header, HeaderMap, StatusCode}; use axum::response::{ sse::{Event, KeepAlive, Sse}, @@ -7,7 +7,8 @@ use axum::response::{ use axum::routing::get; use axum::{Json, Router}; use futures_util::{stream, StreamExt}; -use openab_core::session_event::{SessionEvent, SessionEventBus, SessionEventReplay}; +use openab_core::session_event::{SessionStreamBus, SessionStreamEvent, SessionStreamReplay}; +use serde::Deserialize; use serde_json::json; use std::convert::Infallible; use std::sync::Arc; @@ -40,6 +41,18 @@ where } }), ) + .route( + "/api/v1/sessions/{session_id}/transcript", + get({ + let pool = pool.clone(); + move |headers: HeaderMap, + Path(session_id): Path, + Query(query): Query| { + let pool = pool.clone(); + async move { get_transcript(headers, session_id, query, pool).await } + } + }), + ) .route( "/api/v1/sessions/{session_id}", get({ @@ -73,48 +86,78 @@ async fn get_session(headers: HeaderMap, session_id: String, pool: CoreSessionPo } } +#[derive(Debug, Deserialize)] +struct TranscriptQuery { + after: Option, +} + +async fn get_transcript( + headers: HeaderMap, + session_id: String, + query: TranscriptQuery, + pool: CoreSessionPool, +) -> Response { + if let Err(err) = authorize(&headers) { + return auth_error_response(err); + } + if pool.session_snapshot(&session_id).await.is_none() { + return ( + StatusCode::NOT_FOUND, + Json(json!({ "error": "session not found" })), + ) + .into_response(); + } + + Json(pool.transcript_store().snapshot(&session_id, query.after)).into_response() +} + async fn stream_session_events(headers: HeaderMap, pool: CoreSessionPool) -> Response { if let Err(err) = authorize(&headers) { return auth_error_response(err); } - let event_bus = pool.session_event_bus(); + let stream_bus = pool.session_stream_bus(); let cursor = last_event_cursor(&headers); - let last_sequence = cursor.as_ref().and_then(|cursor| { - (cursor.generation.as_deref() == Some(event_bus.generation())).then_some(cursor.sequence) - }); - let subscription = event_bus.subscribe_after(last_sequence); + let last_sequence = match cursor.as_ref() { + Some(cursor) => (cursor.generation.as_deref() == Some(stream_bus.generation())) + .then_some(cursor.sequence), + // No Last-Event-ID (cold start after a deep link / hard refresh): + // replay the retained history from sequence 0 so the client backfills + // before live events stream in on the same connection. + None => Some(0), + }; + let subscription = stream_bus.subscribe_after(last_sequence); let last_replayed_sequence = subscription .replay .events .last() - .map(|event| event.sequence) + .map(SessionStreamEvent::sequence) .or(last_sequence) .unwrap_or_default(); let replay_events = replay_events_sse( cursor.as_ref(), last_sequence, - &event_bus, + &stream_bus, subscription.replay, ); let live_events = stream::unfold( - (subscription.receiver, last_replayed_sequence, event_bus), - |(mut receiver, last_replayed_sequence, event_bus)| async move { + (subscription.receiver, last_replayed_sequence, stream_bus), + |(mut receiver, last_replayed_sequence, stream_bus)| async move { loop { match receiver.recv().await { - Ok(event) if event.sequence <= last_replayed_sequence => continue, + Ok(event) if event.sequence() <= last_replayed_sequence => continue, Ok(event) => { - let sequence = event.sequence; + let sequence = event.sequence(); return Some(( - session_event_sse(&event_bus, event), - (receiver, sequence, event_bus), + session_stream_event_sse(&stream_bus, event), + (receiver, sequence, stream_bus), )); } Err(broadcast::error::RecvError::Lagged(skipped)) => { return Some(( lagged_event_sse(skipped), - (receiver, last_replayed_sequence, event_bus), + (receiver, last_replayed_sequence, stream_bus), )); } Err(broadcast::error::RecvError::Closed) => return None, @@ -161,37 +204,42 @@ fn parse_last_event_id(value: &str) -> Option { fn replay_events_sse( cursor: Option<&SessionEventCursor>, last_sequence: Option, - event_bus: &SessionEventBus, - replay: SessionEventReplay, + stream_bus: &SessionStreamBus, + replay: SessionStreamReplay, ) -> Vec> { let mut events = Vec::new(); + // A cursor from a previous gateway generation cannot be mapped onto the + // current history — tell the client to resync instead of replaying. if let Some(cursor) = cursor { if last_sequence.is_none() { - events.push(cursor_reset_event_sse(cursor, event_bus)); + events.push(cursor_reset_event_sse(cursor, stream_bus)); return events; } - if replay.overflowed { - events.push(history_unavailable_event_sse(cursor.sequence, &replay)); - } - events.extend( - replay - .events - .into_iter() - .map(|event| session_event_sse(event_bus, event)), - ); } + if replay.overflowed { + events.push(history_unavailable_event_sse( + last_sequence.unwrap_or_default(), + &replay, + )); + } + events.extend( + replay + .events + .into_iter() + .map(|event| session_stream_event_sse(stream_bus, event)), + ); events } -fn session_event_sse( - event_bus: &SessionEventBus, - event: SessionEvent, +fn session_stream_event_sse( + stream_bus: &SessionStreamBus, + event: SessionStreamEvent, ) -> Result { - let event_name = event.event.as_sse_event(); - let id = event_bus.event_id(event.sequence); + let event_name = event.as_sse_event(); + let id = stream_bus.event_id(event.sequence()); let data = serde_json::to_string(&event).unwrap_or_else(|err| { json!({ - "error": "failed to serialize session event", + "error": "failed to serialize session stream event", "message": err.to_string(), }) .to_string() @@ -201,17 +249,17 @@ fn session_event_sse( fn cursor_reset_event_sse( cursor: &SessionEventCursor, - event_bus: &SessionEventBus, + stream_bus: &SessionStreamBus, ) -> Result { Ok(Event::default() .event("cursor_reset") - .id(event_bus.event_id(0)) + .id(stream_bus.event_id(0)) .data( json!({ "error": "event cursor generation changed", "last_event_generation": cursor.generation.as_deref(), "last_sequence": cursor.sequence, - "current_generation": event_bus.generation(), + "current_generation": stream_bus.generation(), "action": "refetch /api/v1/sessions before continuing the stream", }) .to_string(), @@ -230,7 +278,7 @@ fn lagged_event_sse(skipped: u64) -> Result { fn history_unavailable_event_sse( last_event_id: u64, - replay: &SessionEventReplay, + replay: &SessionStreamReplay, ) -> Result { Ok(Event::default().event("error").data( json!({ diff --git a/crates/openab-gateway/tests/admin_api_integration.rs b/crates/openab-gateway/tests/admin_api_integration.rs index 07fbb84a..cf2f417a 100644 --- a/crates/openab-gateway/tests/admin_api_integration.rs +++ b/crates/openab-gateway/tests/admin_api_integration.rs @@ -11,9 +11,7 @@ use openab_core::acp::SessionPool; use openab_core::agent_profile::AgentProfile; use openab_core::config::AgentConfig; use openab_core::session_event::SessionEventKind; -use openab_core::session_snapshot::{ - SessionRuntimeMetadata, SessionSnapshot, SessionStatus, -}; +use openab_core::session_snapshot::{SessionRuntimeMetadata, SessionSnapshot, SessionStatus}; use serde_json::{json, Value}; use std::collections::HashMap; use std::sync::Arc; @@ -266,7 +264,10 @@ async fn profiles_crud_default_and_validate() { assert_eq!(default_set["default_profile"], "codex-main"); let default_get = client - .get(format!("{}/api/v1/agent-profiles/default", server.base_url)) + .get(format!( + "{}/api/v1/agent-profiles/default", + server.base_url + )) .bearer_auth(&env.token) .send() .await @@ -641,6 +642,93 @@ async fn sse_replays_missed_event_after_last_event_id() { assert_eq!(event["sequence"], missed.sequence); } +#[tokio::test] +async fn sse_cold_start_without_last_event_id_replays_retained_history() { + let env = AdminTestEnv::new().await; + let pool = env.pool(); + let event_bus = pool.session_event_bus(); + + // Two events already retained in the bus history before any client connects. + let created = event_bus.publish( + SessionEventKind::SessionCreated, + SessionSnapshot::new( + "slack:cold-thread".into(), + "codex".into(), + "/workspace".into(), + None, + None, + None, + None, + ), + ); + let mut running = SessionSnapshot::new( + "slack:cold-thread".into(), + "codex".into(), + "/workspace".into(), + None, + None, + None, + None, + ); + running.set_status(SessionStatus::Running); + let status = event_bus.publish(SessionEventKind::StatusChanged, running); + + let server = spawn_admin_server(&env).await; + let client = reqwest::Client::new(); + // No Last-Event-ID header: a cold-started client (deep link / refresh) + // must receive the retained history before live events, on the same + // single SSE connection. + let mut response = client + .get(format!("{}/api/v1/sessions/events", server.base_url)) + .bearer_auth(&env.token) + .send() + .await + .expect("open cold-start sse"); + + // Collect chunks until both replayed events are in the buffer (they may + // arrive in a single chunk, so a one-shot read_sse_event per event would + // risk consuming both and losing the second). + let mut buffer = String::new(); + let deadline = tokio::time::Instant::now() + std::time::Duration::from_secs(5); + let mut created_event = None; + let mut status_event = None; + while tokio::time::Instant::now() < deadline + && (created_event.is_none() || status_event.is_none()) + { + if let Some(chunk) = response.chunk().await.expect("sse chunk") { + buffer.push_str(&String::from_utf8_lossy(&chunk)); + if created_event.is_none() { + created_event = common::parse_sse_event_with_id(&buffer, "session.created"); + } + if status_event.is_none() { + status_event = common::parse_sse_event_with_id(&buffer, "status_changed"); + } + } else { + tokio::time::sleep(std::time::Duration::from_millis(20)).await; + } + } + + // History replays oldest-first, before any live event. + let created_pos = buffer + .find("event:session.created") + .or_else(|| buffer.find("event: session.created")); + let status_pos = buffer + .find("event:status_changed") + .or_else(|| buffer.find("event: status_changed")); + assert!(created_pos.is_some() && status_pos.is_some()); + assert!( + created_pos.unwrap() < status_pos.unwrap(), + "history must replay oldest first" + ); + + let (created_id, created_event) = created_event.expect("session.created replayed"); + assert_eq!(created_id, Some(event_bus.event_id(created.sequence))); + assert_eq!(created_event["snapshot"]["session_id"], "slack:cold-thread"); + let (status_id, status_event) = status_event.expect("status_changed replayed"); + assert_eq!(status_id, Some(event_bus.event_id(status.sequence))); + assert_eq!(status_event["snapshot"]["status"], "running"); +} + #[tokio::test] async fn sse_resets_cursor_after_gateway_restart_and_delivers_live_events() { let env = AdminTestEnv::new().await; @@ -735,3 +823,135 @@ async fn unified_router_mounts_session_and_profile_admin_routes() { ); } } + +#[tokio::test] +async fn transcript_snapshot_supports_full_and_after_replay() { + let env = AdminTestEnv::new().await; + let pool = env.pool(); + let session_id = "slack:transcript-thread"; + pool.seed_session_snapshot_for_test(SessionSnapshot::new( + session_id.into(), + "codex".into(), + "/workspace".into(), + None, + None, + None, + None, + )) + .await; + + let transcripts = pool.transcript_store(); + let user = transcripts.record_user_text(session_id, "Summarize this change"); + transcripts.append_assistant_text(session_id, "The change "); + transcripts.append_assistant_text(session_id, "adds transcript storage."); + transcripts.finish_assistant_turn(session_id); + + let server = spawn_admin_server(&env).await; + let client = reqwest::Client::new(); + let encoded_id = urlencoding::encode(session_id); + let full = client + .get(format!( + "{}/api/v1/sessions/{encoded_id}/transcript", + server.base_url + )) + .bearer_auth(&env.token) + .send() + .await + .expect("get full transcript") + .json::() + .await + .expect("full transcript json"); + + assert_eq!(full["session_id"], session_id); + assert_eq!(full["entries"].as_array().unwrap().len(), 2); + assert_eq!(full["entries"][0]["role"], "user"); + assert_eq!( + full["entries"][1]["content"], + "The change adds transcript storage." + ); + assert_eq!(full["entries"][1]["status"], "completed"); + + let incremental = client + .get(format!( + "{}/api/v1/sessions/{encoded_id}/transcript?after={}", + server.base_url, user.entry.sequence + )) + .bearer_auth(&env.token) + .send() + .await + .expect("get incremental transcript") + .json::() + .await + .expect("incremental transcript json"); + let entries = incremental["entries"] + .as_array() + .expect("incremental entries"); + assert!(!entries.is_empty()); + assert!(entries + .iter() + .all(|entry| entry["sequence"].as_u64().unwrap() > user.entry.sequence)); + assert_eq!(incremental["overflowed"], false); + + let missing = client + .get(format!( + "{}/api/v1/sessions/missing/transcript", + server.base_url + )) + .bearer_auth(&env.token) + .send() + .await + .expect("missing transcript"); + assert_eq!(missing.status(), reqwest::StatusCode::NOT_FOUND); +} + +#[tokio::test] +async fn sse_emits_and_replays_transcript_events_with_shared_cursor() { + let env = AdminTestEnv::new().await; + let pool = env.pool(); + let session_id = "slack:transcript-sse"; + pool.seed_session_snapshot_for_test(SessionSnapshot::new( + session_id.into(), + "codex".into(), + "/workspace".into(), + None, + None, + None, + None, + )) + .await; + + let server = spawn_admin_server(&env).await; + let client = reqwest::Client::new(); + let sse_url = format!("{}/api/v1/sessions/events", server.base_url); + let mut response = client + .get(&sse_url) + .bearer_auth(&env.token) + .send() + .await + .expect("open transcript sse"); + + let first = pool + .transcript_store() + .record_user_text(session_id, "first transcript event"); + let (first_id, first_event) = read_sse_event(&mut response, "transcript").await; + let stream_bus = pool.session_stream_bus(); + assert_eq!(first_id, Some(stream_bus.event_id(first.sequence))); + assert_eq!(first_event["session_id"], session_id); + assert_eq!(first_event["entry"]["role"], "user"); + assert_eq!(first_event["entry"]["content"], "first transcript event"); + + let second = pool + .transcript_store() + .append_assistant_text(session_id, "second transcript event"); + let mut replay = client + .get(&sse_url) + .bearer_auth(&env.token) + .header("Last-Event-ID", stream_bus.event_id(first.sequence)) + .send() + .await + .expect("open transcript replay sse"); + let (second_id, second_event) = read_sse_event(&mut replay, "transcript").await; + assert_eq!(second_id, Some(stream_bus.event_id(second.sequence))); + assert_eq!(second_event["session_id"], session_id); + assert_eq!(second_event["entry"]["content"], "second transcript event"); +} diff --git a/openab-agent/Cargo.lock b/openab-agent/Cargo.lock index 3f23465d..429e145c 100644 --- a/openab-agent/Cargo.lock +++ b/openab-agent/Cargo.lock @@ -1296,7 +1296,7 @@ dependencies = [ [[package]] name = "openab-agent" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "async-trait", diff --git a/openab-agent/Cargo.toml b/openab-agent/Cargo.toml index 5f146ca2..fe096dfa 100644 --- a/openab-agent/Cargo.toml +++ b/openab-agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "openab-agent" -version = "0.1.0" +version = "0.1.1" edition = "2021" license = "MIT" description = "Native Rust coding agent with built-in ACP support" diff --git a/openab-agent/src/mcp/breaker.rs b/openab-agent/src/mcp/breaker.rs index da6aa20c..2591f3a9 100644 --- a/openab-agent/src/mcp/breaker.rs +++ b/openab-agent/src/mcp/breaker.rs @@ -43,6 +43,12 @@ pub enum Verdict { struct Entry { consecutive_failures: u32, opened_at: Option, + /// Monotonic ticket generation for transport attempts. Callers capture + /// this immediately before sending a request. The first failure for a + /// generation advances it; sibling failures from requests that were + /// already in flight carry the stale generation and are ignored. This + /// keeps one parallel outage wave from consuming the whole threshold. + failure_epoch: u64, /// When the in-flight half-open probe was handed out, if any. Replaces a /// bare `bool` so a probe whose caller never records an outcome (panicked /// or dropped mid-dial) can be aged out: once it is older than [`COOLDOWN`] @@ -106,24 +112,61 @@ impl ServerBreaker { /// Reset the breaker for `server` — clears failure count and opened-at /// timestamp. Call on any unambiguous success (successful tool call, - /// successful connect). + /// successful connect). Advancing the epoch also invalidates failures + /// from older parallel requests that complete after this success. pub fn record_success(&self, server: &str) { let mut entries = self.entries.lock().expect("breaker mutex poisoned"); - entries.remove(server); + let entry = entries.entry(server.to_string()).or_default(); + entry.consecutive_failures = 0; + entry.opened_at = None; + entry.probe_started_at = None; + entry.failure_epoch = entry.failure_epoch.wrapping_add(1); + } + + /// Capture the current failure epoch immediately before a transport + /// request is sent. Parallel requests that start from the same healthy + /// state receive the same epoch, so only their first failure is counted. + pub fn failure_epoch(&self, server: &str) -> u64 { + let mut entries = self.entries.lock().expect("breaker mutex poisoned"); + entries.entry(server.to_string()).or_default().failure_epoch } /// Record a transport-level failure for `server`. When the count /// reaches [`FAIL_THRESHOLD`], stamps the opened-at timestamp so the /// cooldown clock starts (or re-starts, for half-open probe failures). + #[cfg(test)] pub fn record_failure(&self, server: &str) { self.record_failure_at(server, Instant::now()); } + #[cfg(test)] fn record_failure_at(&self, server: &str, now: Instant) { let mut entries = self.entries.lock().expect("breaker mutex poisoned"); let entry = entries.entry(server.to_string()).or_default(); + let epoch = entry.failure_epoch; + Self::record_failure_for_epoch(entry, epoch, now); + } + + /// Record a failure only if `epoch` is still current. Returns `true` when + /// this call advanced the consecutive-failure counter and `false` when a + /// sibling request already recorded the same parallel failure wave. + pub fn record_failure_if_current(&self, server: &str, epoch: u64) -> bool { + self.record_failure_at_if_current(server, epoch, Instant::now()) + } + + fn record_failure_at_if_current(&self, server: &str, epoch: u64, now: Instant) -> bool { + let mut entries = self.entries.lock().expect("breaker mutex poisoned"); + let entry = entries.entry(server.to_string()).or_default(); + Self::record_failure_for_epoch(entry, epoch, now) + } + + fn record_failure_for_epoch(entry: &mut Entry, epoch: u64, now: Instant) -> bool { + if entry.failure_epoch != epoch { + return false; + } let was_probe = entry.probe_started_at.is_some(); entry.consecutive_failures = entry.consecutive_failures.saturating_add(1); + entry.failure_epoch = entry.failure_epoch.wrapping_add(1); entry.probe_started_at = None; if entry.consecutive_failures >= FAIL_THRESHOLD { // Stamp `opened_at` only on the Closed→Open transition (no @@ -136,6 +179,7 @@ impl ServerBreaker { entry.opened_at = Some(now); } } + true } /// True while the breaker has tripped for `server` — it has reached @@ -196,6 +240,46 @@ mod tests { assert_eq!(b.check("foo"), Verdict::Allow); } + #[test] + fn parallel_failures_with_the_same_epoch_count_once() { + let b = ServerBreaker::new(); + let parallel_epoch = b.failure_epoch("foo"); + + assert!(b.record_failure_if_current("foo", parallel_epoch)); + assert!(!b.record_failure_if_current("foo", parallel_epoch)); + assert!(!b.record_failure_if_current("foo", parallel_epoch)); + assert_eq!( + b.entries.lock().unwrap()["foo"].consecutive_failures, + 1, + "one parallel outage wave counts as one consecutive failure" + ); + assert_eq!(b.check("foo"), Verdict::Allow); + + // Fresh retries capture fresh epochs and therefore still advance the + // streak one at a time until the configured threshold is reached. + for expected in 2..=FAIL_THRESHOLD { + let retry_epoch = b.failure_epoch("foo"); + assert!(b.record_failure_if_current("foo", retry_epoch)); + assert_eq!( + b.entries.lock().unwrap()["foo"].consecutive_failures, + expected + ); + } + assert!(matches!(b.check("foo"), Verdict::Reject { .. })); + } + + #[test] + fn success_invalidates_late_parallel_failures() { + let b = ServerBreaker::new(); + let stale_epoch = b.failure_epoch("foo"); + assert!(b.record_failure_if_current("foo", stale_epoch)); + + b.record_success("foo"); + assert!(!b.record_failure_if_current("foo", stale_epoch)); + assert_eq!(b.entries.lock().unwrap()["foo"].consecutive_failures, 0); + assert_eq!(b.check("foo"), Verdict::Allow); + } + #[test] fn cooldown_elapsed_allows_probe() { let b = ServerBreaker::new(); diff --git a/openab-agent/src/mcp/meta_tool.rs b/openab-agent/src/mcp/meta_tool.rs index 67796a3e..f148ed7c 100644 --- a/openab-agent/src/mcp/meta_tool.rs +++ b/openab-agent/src/mcp/meta_tool.rs @@ -236,6 +236,7 @@ async fn call_tool( let request = ClientRequest::CallToolRequest(CallToolRequest::new(params)); let mut options = PeerRequestOptions::no_options(); options.timeout = Some(timeout); + let failure_epoch = manager.failure_epoch(server); // Wire-level Err = transport failure → trips the breaker; wire-level // Ok (even with `isError: true`) resets it. See ADR §5.9 / #966 Q2. // On timeout rmcp auto-emits notifications/cancelled (reason "request @@ -249,11 +250,14 @@ async fn call_tool( .await; let result = match send_result { Ok(ServerResult::CallToolResult(r)) => { - manager.record_tool_call_outcome(server, true); + manager.record_tool_call_outcome(server, failure_epoch, true); r } Ok(_) => { - manager.record_tool_call_outcome(server, false); + // The response shape is invalid for this request, but receiving a + // wire-level response proves the transport is healthy. Keep the + // caller-facing error without poisoning the transport breaker. + manager.record_tool_call_outcome(server, failure_epoch, true); tracing::info!( target: "mcp.audit", server, @@ -301,7 +305,7 @@ async fn call_tool( // It must not trip the breaker or tear down the live client. Mirror // the Ok-reset semantics above (ADR §5.9 error model). if matches!(e, ServiceError::McpError(_)) { - manager.record_tool_call_outcome(server, true); + manager.record_tool_call_outcome(server, failure_epoch, true); tracing::info!( target: "mcp.audit", server, @@ -315,12 +319,15 @@ async fn call_tool( return Err(anyhow::Error::new(e)) .with_context(|| format!("call_tool {tool:?} on {server:?}")); } - manager.record_tool_call_outcome(server, false); - // Transport fault: the installed client is dead. Tear it down so the - // next connect() redials instead of reusing a dead handle via the - // Connected fast-path (#959 F1). Best-effort — teardown failure must - // not mask the original transport error returned below. - let _ = manager.disconnect(server).await; + let current_failure = manager.record_tool_call_outcome(server, failure_epoch, false); + // Only the first failure from the current transport epoch may tear + // down the installed client. A successful sibling request advances + // the epoch, so a late stale failure must not disconnect a connection + // that has already proved healthy. Best-effort — teardown failure + // must not mask the original transport error returned below. + if current_failure { + let _ = manager.disconnect(server).await; + } tracing::info!( target: "mcp.audit", server, @@ -383,6 +390,7 @@ async fn fetch_tools(manager: &McpRuntimeManager, server: &str) -> Result Result { - manager.record_tool_call_outcome(server, true); + manager.record_tool_call_outcome(server, failure_epoch, true); tools.extend(result.tools); cursor = result.next_cursor; if cursor.is_none() { @@ -400,7 +408,9 @@ async fn fetch_tools(manager: &McpRuntimeManager, server: &str) -> Result { - manager.record_tool_call_outcome(server, false); + // Unexpected result variant is a protocol-shape error, not a + // transport fault: the server did answer on the wire. + manager.record_tool_call_outcome(server, failure_epoch, true); return Err(anyhow!("list_tools on {server:?}: unexpected response")); } Err(e) => { @@ -422,11 +432,11 @@ async fn fetch_tools(manager: &McpRuntimeManager, server: &str) -> Result handle.await_response().await, Err(e) => Err(e), @@ -860,6 +861,9 @@ impl McpRuntimeManager { manager.breaker.record_success(&name); } Ok(other) => { + // Any wire-level response proves the transport is + // alive, even when its result variant is unexpected. + manager.breaker.record_success(&name); tracing::warn!( target: "mcp.ping", server = %name, @@ -879,7 +883,9 @@ impl McpRuntimeManager { // pings here would clobber the in-flight probe flag and // re-arm the cooldown (C4 / #969 F1). if !manager.breaker.is_tripped(&name) { - manager.breaker.record_failure(&name); + manager + .breaker + .record_failure_if_current(&name, failure_epoch); } // Once the breaker is open the transport is presumed // dead. Tear the stale client down so connect()'s @@ -1353,6 +1359,11 @@ impl McpRuntimeManager { /// `NeedsAuth` and returns an error pointing the caller at the login /// subcommand rather than attempting an unauthenticated dial. pub async fn connect(&self, name: &str) -> Result<()> { + // Capture before waiting on the per-server connect lock. Concurrent + // callers therefore share one failure epoch: if the serialized dial + // fails for all of them, the breaker counts that parallel wave once. + // A later retry enters after the epoch advances and counts normally. + let failure_epoch = self.breaker.failure_epoch(name); // Serialize connects per server (#969 A2/C3): hold the named server's // lock across the whole dial so two concurrent callers can't both dial // + spawn a duplicate child / ping loop. The second waiter proceeds @@ -1522,7 +1533,7 @@ impl McpRuntimeManager { super::redact_secrets(&format!("{e:#}")) ); handle.status = ServerStatus::Failed(super::concise_error_message(&e)); - self.breaker.record_failure(name); + self.breaker.record_failure_if_current(name, failure_epoch); Err(anyhow!(super::concise_error_message(&e))) } } @@ -1542,18 +1553,27 @@ impl McpRuntimeManager { .clone() } - /// Record a tool-call outcome on the breaker. Called from - /// `meta_tool::call_tool` after `peer.call_tool().await` returns. + /// Capture the failure epoch for a transport request immediately before + /// it is sent. Requests issued in parallel from the same healthy state + /// share an epoch, so their duplicate failure callbacks count once. + pub fn failure_epoch(&self, name: &str) -> u64 { + self.breaker.failure_epoch(name) + } + + /// Record a transport outcome on the breaker. Called from `meta_tool` + /// after a wire request returns. `failure_epoch` must be the value captured + /// immediately before that request was sent. /// Wire-level `Ok` resets the counter regardless of `CallToolResult.is_error` /// (the `isError` bit is protocol-normal payload, not a transport fault). /// Wire-level `Err` is a transport-level failure and increments the /// counter — matching the single-counter / transport-only model from /// the #966 design decisions. - pub fn record_tool_call_outcome(&self, name: &str, ok: bool) { + pub fn record_tool_call_outcome(&self, name: &str, failure_epoch: u64, ok: bool) -> bool { if ok { self.breaker.record_success(name); + true } else { - self.breaker.record_failure(name); + self.breaker.record_failure_if_current(name, failure_epoch) } } @@ -2136,6 +2156,18 @@ mod tests { assert!(mgr.catalog().is_empty()); } + #[test] + fn stale_tool_failure_is_not_actionable_after_success() { + let mgr = McpRuntimeManager::from_config(McpConfig::default()); + let stale_epoch = mgr.failure_epoch("foo"); + + assert!(mgr.record_tool_call_outcome("foo", stale_epoch, true)); + assert!( + !mgr.record_tool_call_outcome("foo", stale_epoch, false), + "a late failure from an older epoch must not trigger transport teardown" + ); + } + #[test] fn client_handler_advertises_only_roots_capability() { // Pins the capability posture of the bare `Default` handler (no provider, diff --git a/web/app.js b/web/app.js index 2bae3e60..5ad852dc 100644 --- a/web/app.js +++ b/web/app.js @@ -1,4 +1,4 @@ -var WQ=Object.defineProperty;var dT=e=>{throw TypeError(e)};var KQ=(e,t,n)=>t in e?WQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qQ=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var _S=(e,t,n)=>KQ(e,typeof t!="symbol"?t+"":t,n),jS=(e,t,n)=>t.has(e)||dT("Cannot "+n);var De=(e,t,n)=>(jS(e,t,"read from private field"),n?n.call(e):t.get(e)),fn=(e,t,n)=>t.has(e)?dT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qt=(e,t,n,r)=>(jS(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),_n=(e,t,n)=>(jS(e,t,"access private method"),n);var Qp=(e,t,n,r)=>({set _(a){qt(e,t,a,n)},get _(){return De(e,t,r)}});var XKe=qQ((_o,jo)=>{function DB(e,t){for(var n=0;nr[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"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Jp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function an(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function UQ(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var FS={exports:{}},hv={},DS={exports:{}},Dn={};/** +var sJ=Object.defineProperty;var PT=e=>{throw TypeError(e)};var cJ=(e,t,n)=>t in e?sJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var uJ=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var HS=(e,t,n)=>cJ(e,typeof t!="symbol"?t+"":t,n),VS=(e,t,n)=>t.has(e)||PT("Cannot "+n);var De=(e,t,n)=>(VS(e,t,"read from private field"),n?n.call(e):t.get(e)),vn=(e,t,n)=>t.has(e)?PT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),qt=(e,t,n,r)=>(VS(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),jn=(e,t,n)=>(VS(e,t,"access private method"),n);var Jp=(e,t,n,r)=>({set _(a){qt(e,t,a,n)},get _(){return De(e,t,r)}});var Gqe=uJ((jo,Fo)=>{function e9(e,t){for(var n=0;nr[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"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Zp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dJ(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var WS={exports:{}},hv={},KS={exports:{}},kn={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var WQ=Object.defineProperty;var dT=e=>{throw TypeError(e)};var KQ=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var fT;function GQ(){if(fT)return Dn;fT=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;function m(V){return V===null||typeof V!="object"?null:(V=f&&V[f]||V["@@iterator"],typeof V=="function"?V:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,b={};function p(V,q,U){this.props=V,this.context=q,this.refs=b,this.updater=U||g}p.prototype.isReactComponent={},p.prototype.setState=function(V,q){if(typeof V!="object"&&typeof V!="function"&&V!=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,V,q,"setState")},p.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function S(){}S.prototype=p.prototype;function C(V,q,U){this.props=V,this.context=q,this.refs=b,this.updater=U||g}var x=C.prototype=new S;x.constructor=C,h(x,p.prototype),x.isPureReactComponent=!0;var w=Array.isArray,$=Object.prototype.hasOwnProperty,E={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function I(V,q,U){var G,Y={},J=null,Q=null;if(q!=null)for(G in q.ref!==void 0&&(Q=q.ref),q.key!==void 0&&(J=""+q.key),q)$.call(q,G)&&!R.hasOwnProperty(G)&&(Y[G]=q[G]);var Z=arguments.length-2;if(Z===1)Y.children=U;else if(1{throw TypeError(e)};var KQ=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var mT;function YQ(){if(mT)return hv;mT=1;var e=ci(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,f={},m=null,g=null;u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(g=c.ref);for(d in c)r.call(c,d)&&!o.hasOwnProperty(d)&&(f[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)f[d]===void 0&&(f[d]=c[d]);return{$$typeof:t,type:l,key:m,ref:g,props:f,_owner:a.current}}return hv.Fragment=n,hv.jsx=i,hv.jsxs=i,hv}var gT;function XQ(){return gT||(gT=1,FS.exports=YQ()),FS.exports}var _=XQ(),s=ci();const ee=an(s),sg=DB({__proto__:null,default:ee},[s]);var Zp={},kS={exports:{}},to={},AS={exports:{}},LS={};/** + */var RT;function vJ(){if(RT)return hv;RT=1;var e=di(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var d,f={},m=null,g=null;u!==void 0&&(m=""+u),c.key!==void 0&&(m=""+c.key),c.ref!==void 0&&(g=c.ref);for(d in c)r.call(c,d)&&!o.hasOwnProperty(d)&&(f[d]=c[d]);if(l&&l.defaultProps)for(d in c=l.defaultProps,c)f[d]===void 0&&(f[d]=c[d]);return{$$typeof:t,type:l,key:m,ref:g,props:f,_owner:a.current}}return hv.Fragment=n,hv.jsx=i,hv.jsxs=i,hv}var MT;function mJ(){return MT||(MT=1,WS.exports=vJ()),WS.exports}var N=mJ(),s=di();const ee=rn(s),sg=e9({__proto__:null,default:ee},[s]);var eh={},qS={exports:{}},to={},US={exports:{}},GS={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var WQ=Object.defineProperty;var dT=e=>{throw TypeError(e)};var KQ=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var pT;function QQ(){return pT||(pT=1,(function(e){function t(B,K){var W=B.length;B.push(K);e:for(;0>>1,q=B[V];if(0>>1;Va(Y,W))Ja(Q,Y)?(B[V]=Q,B[J]=W,V=J):(B[V]=Y,B[G]=W,V=G);else if(Ja(Q,W))B[V]=Q,B[J]=W,V=J;else break e}}return K}function a(B,K){var W=B.sortIndex-K.sortIndex;return W!==0?W:B.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,f=null,m=3,g=!1,h=!1,b=!1,p=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(B){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=B)r(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(u)}}function w(B){if(b=!1,x(B),!h)if(n(c)!==null)h=!0,F($);else{var K=n(u);K!==null&&L(w,K.startTime-B)}}function $(B,K){h=!1,b&&(b=!1,S(I),I=-1),g=!0;var W=m;try{for(x(K),f=n(c);f!==null&&(!(f.expirationTime>K)||B&&!N());){var V=f.callback;if(typeof V=="function"){f.callback=null,m=f.priorityLevel;var q=V(f.expirationTime<=K);K=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(c)&&r(c),x(K)}else r(c);f=n(c)}if(f!==null)var U=!0;else{var G=n(u);G!==null&&L(w,G.startTime-K),U=!1}return U}finally{f=null,m=W,g=!1}}var E=!1,R=null,I=-1,O=5,T=-1;function N(){return!(e.unstable_now()-TB||125V?(B.sortIndex=W,t(u,B),n(c)===null&&B===n(u)&&(b?(S(I),I=-1):b=!0,L(w,W-V))):(B.sortIndex=q,t(c,B),h||g||(h=!0,F($))),B},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(B){var K=m;return function(){var W=m;m=K;try{return B.apply(this,arguments)}finally{m=W}}}})(LS)),LS}var hT;function JQ(){return hT||(hT=1,AS.exports=QQ()),AS.exports}/** + */var TT;function gJ(){return TT||(TT=1,(function(e){function t(B,K){var W=B.length;B.push(K);e:for(;0>>1,q=B[V];if(0>>1;Va(Y,W))Ja(Q,Y)?(B[V]=Q,B[J]=W,V=J):(B[V]=Y,B[G]=W,V=G);else if(Ja(Q,W))B[V]=Q,B[J]=W,V=J;else break e}}return K}function a(B,K){var W=B.sortIndex-K.sortIndex;return W!==0?W:B.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var c=[],u=[],d=1,f=null,m=3,g=!1,h=!1,b=!1,p=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(B){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=B)r(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(u)}}function w(B){if(b=!1,x(B),!h)if(n(c)!==null)h=!0,F($);else{var K=n(u);K!==null&&L(w,K.startTime-B)}}function $(B,K){h=!1,b&&(b=!1,S(I),I=-1),g=!0;var W=m;try{for(x(K),f=n(c);f!==null&&(!(f.expirationTime>K)||B&&!_());){var V=f.callback;if(typeof V=="function"){f.callback=null,m=f.priorityLevel;var q=V(f.expirationTime<=K);K=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(c)&&r(c),x(K)}else r(c);f=n(c)}if(f!==null)var U=!0;else{var G=n(u);G!==null&&L(w,G.startTime-K),U=!1}return U}finally{f=null,m=W,g=!1}}var E=!1,R=null,I=-1,O=5,T=-1;function _(){return!(e.unstable_now()-TB||125V?(B.sortIndex=W,t(u,B),n(c)===null&&B===n(u)&&(b?(S(I),I=-1):b=!0,L(w,W-V))):(B.sortIndex=q,t(c,B),h||g||(h=!0,F($))),B},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(B){var K=m;return function(){var W=m;m=K;try{return B.apply(this,arguments)}finally{m=W}}}})(GS)),GS}var NT;function pJ(){return NT||(NT=1,US.exports=gJ()),US.exports}/** * @license React * react-dom.production.min.js * @@ -30,18 +30,18 @@ var WQ=Object.defineProperty;var dT=e=>{throw TypeError(e)};var KQ=(e,t,n)=>t in * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bT;function ZQ(){if(bT)return to;bT=1;var e=ci(),t=JQ();function n(v){for(var y="https://reactjs.org/docs/error-decoder.html?invariant="+v,M=1;M"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},f={};function m(v){return c.call(f,v)?!0:c.call(d,v)?!1:u.test(v)?f[v]=!0:(d[v]=!0,!1)}function g(v,y,M,H){if(M!==null&&M.type===0)return!1;switch(typeof y){case"function":case"symbol":return!0;case"boolean":return H?!1:M!==null?!M.acceptsBooleans:(v=v.toLowerCase().slice(0,5),v!=="data-"&&v!=="aria-");default:return!1}}function h(v,y,M,H){if(y===null||typeof y>"u"||g(v,y,M,H))return!0;if(H)return!1;if(M!==null)switch(M.type){case 3:return!y;case 4:return y===!1;case 5:return isNaN(y);case 6:return isNaN(y)||1>y}return!1}function b(v,y,M,H,X,te,be){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=H,this.attributeNamespace=X,this.mustUseProperty=M,this.propertyName=v,this.type=y,this.sanitizeURL=te,this.removeEmptyString=be}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(v){p[v]=new b(v,0,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var y=v[0];p[y]=new b(y,1,!1,v[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){p[v]=new b(v,2,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){p[v]=new b(v,2,!1,v,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(v){p[v]=new b(v,3,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){p[v]=new b(v,3,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){p[v]=new b(v,4,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){p[v]=new b(v,6,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){p[v]=new b(v,5,!1,v.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function C(v){return v[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(v){var y=v.replace(S,C);p[y]=new b(y,1,!1,v,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(v){var y=v.replace(S,C);p[y]=new b(y,1,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var y=v.replace(S,C);p[y]=new b(y,1,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){p[v]=new b(v,1,!1,v.toLowerCase(),null,!1,!1)}),p.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){p[v]=new b(v,1,!1,v.toLowerCase(),null,!0,!0)});function x(v,y,M,H){var X=p.hasOwnProperty(y)?p[y]:null;(X!==null?X.type!==0:H||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},f={};function m(v){return c.call(f,v)?!0:c.call(d,v)?!1:u.test(v)?f[v]=!0:(d[v]=!0,!1)}function g(v,y,M,H){if(M!==null&&M.type===0)return!1;switch(typeof y){case"function":case"symbol":return!0;case"boolean":return H?!1:M!==null?!M.acceptsBooleans:(v=v.toLowerCase().slice(0,5),v!=="data-"&&v!=="aria-");default:return!1}}function h(v,y,M,H){if(y===null||typeof y>"u"||g(v,y,M,H))return!0;if(H)return!1;if(M!==null)switch(M.type){case 3:return!y;case 4:return y===!1;case 5:return isNaN(y);case 6:return isNaN(y)||1>y}return!1}function b(v,y,M,H,X,te,be){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=H,this.attributeNamespace=X,this.mustUseProperty=M,this.propertyName=v,this.type=y,this.sanitizeURL=te,this.removeEmptyString=be}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(v){p[v]=new b(v,0,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var y=v[0];p[y]=new b(y,1,!1,v[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){p[v]=new b(v,2,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){p[v]=new b(v,2,!1,v,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(v){p[v]=new b(v,3,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){p[v]=new b(v,3,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){p[v]=new b(v,4,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){p[v]=new b(v,6,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){p[v]=new b(v,5,!1,v.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function C(v){return v[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(v){var y=v.replace(S,C);p[y]=new b(y,1,!1,v,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(v){var y=v.replace(S,C);p[y]=new b(y,1,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var y=v.replace(S,C);p[y]=new b(y,1,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){p[v]=new b(v,1,!1,v.toLowerCase(),null,!1,!1)}),p.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){p[v]=new b(v,1,!1,v.toLowerCase(),null,!0,!0)});function x(v,y,M,H){var X=p.hasOwnProperty(y)?p[y]:null;(X!==null?X.type!==0:H||!(2Ie||X[be]!==te[Ie]){var Ae=` -`+X[be].replace(" at new "," at ");return v.displayName&&Ae.includes("")&&(Ae=Ae.replace("",v.displayName)),Ae}while(1<=be&&0<=Ie);break}}}finally{U=!1,Error.prepareStackTrace=M}return(v=v?v.displayName||v.name:"")?q(v):""}function Y(v){switch(v.tag){case 5:return q(v.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return v=G(v.type,!1),v;case 11:return v=G(v.type.render,!1),v;case 1:return v=G(v.type,!0),v;default:return""}}function J(v){if(v==null)return null;if(typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case R:return"Fragment";case E:return"Portal";case O:return"Profiler";case I:return"StrictMode";case k:return"Suspense";case j:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case N:return(v.displayName||"Context")+".Consumer";case T:return(v._context.displayName||"Context")+".Provider";case A:var y=v.render;return v=v.displayName,v||(v=y.displayName||y.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case D:return y=v.displayName||null,y!==null?y:J(v.type)||"Memo";case F:y=v._payload,v=v._init;try{return J(v(y))}catch{}}return null}function Q(v){var y=v.type;switch(v.tag){case 24:return"Cache";case 9:return(y.displayName||"Context")+".Consumer";case 10:return(y._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return v=y.render,v=v.displayName||v.name||"",y.displayName||(v!==""?"ForwardRef("+v+")":"ForwardRef");case 7:return"Fragment";case 5:return y;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(y);case 8:return y===I?"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 y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y}return null}function Z(v){switch(typeof v){case"boolean":case"number":case"string":case"undefined":return v;case"object":return v;default:return""}}function ne(v){var y=v.type;return(v=v.nodeName)&&v.toLowerCase()==="input"&&(y==="checkbox"||y==="radio")}function ae(v){var y=ne(v)?"checked":"value",M=Object.getOwnPropertyDescriptor(v.constructor.prototype,y),H=""+v[y];if(!v.hasOwnProperty(y)&&typeof M<"u"&&typeof M.get=="function"&&typeof M.set=="function"){var X=M.get,te=M.set;return Object.defineProperty(v,y,{configurable:!0,get:function(){return X.call(this)},set:function(be){H=""+be,te.call(this,be)}}),Object.defineProperty(v,y,{enumerable:M.enumerable}),{getValue:function(){return H},setValue:function(be){H=""+be},stopTracking:function(){v._valueTracker=null,delete v[y]}}}}function le(v){v._valueTracker||(v._valueTracker=ae(v))}function re(v){if(!v)return!1;var y=v._valueTracker;if(!y)return!0;var M=y.getValue(),H="";return v&&(H=ne(v)?v.checked?"true":"false":v.value),v=H,v!==M?(y.setValue(v),!0):!1}function fe(v){if(v=v||(typeof document<"u"?document:void 0),typeof v>"u")return null;try{return v.activeElement||v.body}catch{return v.body}}function ue(v,y){var M=y.checked;return W({},y,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:M??v._wrapperState.initialChecked})}function de(v,y){var M=y.defaultValue==null?"":y.defaultValue,H=y.checked!=null?y.checked:y.defaultChecked;M=Z(y.value!=null?y.value:M),v._wrapperState={initialChecked:H,initialValue:M,controlled:y.type==="checkbox"||y.type==="radio"?y.checked!=null:y.value!=null}}function ie(v,y){y=y.checked,y!=null&&x(v,"checked",y,!1)}function se(v,y){ie(v,y);var M=Z(y.value),H=y.type;if(M!=null)H==="number"?(M===0&&v.value===""||v.value!=M)&&(v.value=""+M):v.value!==""+M&&(v.value=""+M);else if(H==="submit"||H==="reset"){v.removeAttribute("value");return}y.hasOwnProperty("value")?he(v,y.type,M):y.hasOwnProperty("defaultValue")&&he(v,y.type,Z(y.defaultValue)),y.checked==null&&y.defaultChecked!=null&&(v.defaultChecked=!!y.defaultChecked)}function ve(v,y,M){if(y.hasOwnProperty("value")||y.hasOwnProperty("defaultValue")){var H=y.type;if(!(H!=="submit"&&H!=="reset"||y.value!==void 0&&y.value!==null))return;y=""+v._wrapperState.initialValue,M||y===v.value||(v.value=y),v.defaultValue=y}M=v.name,M!==""&&(v.name=""),v.defaultChecked=!!v._wrapperState.initialChecked,M!==""&&(v.name=M)}function he(v,y,M){(y!=="number"||fe(v.ownerDocument)!==v)&&(M==null?v.defaultValue=""+v._wrapperState.initialValue:v.defaultValue!==""+M&&(v.defaultValue=""+M))}var Ce=Array.isArray;function pe(v,y,M,H){if(v=v.options,y){y={};for(var X=0;X"+y.valueOf().toString()+"",y=Te.firstChild;v.firstChild;)v.removeChild(v.firstChild);for(;y.firstChild;)v.appendChild(y.firstChild)}});function Fe(v,y){if(y){var M=v.firstChild;if(M&&M===v.lastChild&&M.nodeType===3){M.nodeValue=y;return}}v.textContent=y}var je={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},Ee=["Webkit","ms","Moz","O"];Object.keys(je).forEach(function(v){Ee.forEach(function(y){y=y+v.charAt(0).toUpperCase()+v.substring(1),je[y]=je[v]})});function Le(v,y,M){return y==null||typeof y=="boolean"||y===""?"":M||typeof y!="number"||y===0||je.hasOwnProperty(v)&&je[v]?(""+y).trim():y+"px"}function Pe(v,y){v=v.style;for(var M in y)if(y.hasOwnProperty(M)){var H=M.indexOf("--")===0,X=Le(M,y[M],H);M==="float"&&(M="cssFloat"),H?v.setProperty(M,X):v[M]=X}}var ze=W({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 Oe(v,y){if(y){if(ze[v]&&(y.children!=null||y.dangerouslySetInnerHTML!=null))throw Error(n(137,v));if(y.dangerouslySetInnerHTML!=null){if(y.children!=null)throw Error(n(60));if(typeof y.dangerouslySetInnerHTML!="object"||!("__html"in y.dangerouslySetInnerHTML))throw Error(n(61))}if(y.style!=null&&typeof y.style!="object")throw Error(n(62))}}function we(v,y){if(v.indexOf("-")===-1)return typeof y.is=="string";switch(v){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 _e=null;function Be(v){return v=v.target||v.srcElement||window,v.correspondingUseElement&&(v=v.correspondingUseElement),v.nodeType===3?v.parentNode:v}var Qe=null,lt=null,Ke=null;function et(v){if(v=nv(v)){if(typeof Qe!="function")throw Error(n(280));var y=v.stateNode;y&&(y=fp(y),Qe(v.stateNode,v.type,y))}}function st(v){lt?Ke?Ke.push(v):Ke=[v]:lt=v}function Ze(){if(lt){var v=lt,y=Ke;if(Ke=lt=null,et(v),y)for(v=0;v>>=0,v===0?32:31-(sr(v)/cr|0)|0}var yr=64,Er=4194304;function mr(v){switch(v&-v){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 v&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return v&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return v}}function Nn(v,y){var M=v.pendingLanes;if(M===0)return 0;var H=0,X=v.suspendedLanes,te=v.pingedLanes,be=M&268435455;if(be!==0){var Ie=be&~X;Ie!==0?H=mr(Ie):(te&=be,te!==0&&(H=mr(te)))}else be=M&~X,be!==0?H=mr(be):te!==0&&(H=mr(te));if(H===0)return 0;if(y!==0&&y!==H&&(y&X)===0&&(X=H&-H,te=y&-y,X>=te||X===16&&(te&4194240)!==0))return y;if((H&4)!==0&&(H|=M&16),y=v.entangledLanes,y!==0)for(v=v.entanglements,y&=H;0M;M++)y.push(v);return y}function En(v,y,M){v.pendingLanes|=y,y!==536870912&&(v.suspendedLanes=0,v.pingedLanes=0),v=v.eventTimes,y=31-bn(y),v[y]=M}function Qn(v,y){var M=v.pendingLanes&~y;v.pendingLanes=y,v.suspendedLanes=0,v.pingedLanes=0,v.expiredLanes&=y,v.mutableReadLanes&=y,v.entangledLanes&=y,y=v.entanglements;var H=v.eventTimes;for(v=v.expirationTimes;0=Uf),aM=" ",oM=!1;function iM(v,y){switch(v){case"keyup":return LX.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lM(v){return v=v.detail,typeof v=="object"&&"data"in v?v.data:null}var Mu=!1;function zX(v,y){switch(v){case"compositionend":return lM(y);case"keypress":return y.which!==32?null:(oM=!0,aM);case"textInput":return v=y.data,v===aM&&oM?null:v;default:return null}}function HX(v,y){if(Mu)return v==="compositionend"||!vC&&iM(v,y)?(v=J3(),tp=lC=ts=null,Mu=!1,v):null;switch(v){case"paste":return null;case"keypress":if(!(y.ctrlKey||y.altKey||y.metaKey)||y.ctrlKey&&y.altKey){if(y.char&&1=y)return{node:M,offset:y-v};v=H}e:{for(;M;){if(M.nextSibling){M=M.nextSibling;break e}M=M.parentNode}M=void 0}M=mM(M)}}function pM(v,y){return v&&y?v===y?!0:v&&v.nodeType===3?!1:y&&y.nodeType===3?pM(v,y.parentNode):"contains"in v?v.contains(y):v.compareDocumentPosition?!!(v.compareDocumentPosition(y)&16):!1:!1}function hM(){for(var v=window,y=fe();y instanceof v.HTMLIFrameElement;){try{var M=typeof y.contentWindow.location.href=="string"}catch{M=!1}if(M)v=y.contentWindow;else break;y=fe(v.document)}return y}function pC(v){var y=v&&v.nodeName&&v.nodeName.toLowerCase();return y&&(y==="input"&&(v.type==="text"||v.type==="search"||v.type==="tel"||v.type==="url"||v.type==="password")||y==="textarea"||v.contentEditable==="true")}function QX(v){var y=hM(),M=v.focusedElem,H=v.selectionRange;if(y!==M&&M&&M.ownerDocument&&pM(M.ownerDocument.documentElement,M)){if(H!==null&&pC(M)){if(y=H.start,v=H.end,v===void 0&&(v=y),"selectionStart"in M)M.selectionStart=y,M.selectionEnd=Math.min(v,M.value.length);else if(v=(y=M.ownerDocument||document)&&y.defaultView||window,v.getSelection){v=v.getSelection();var X=M.textContent.length,te=Math.min(H.start,X);H=H.end===void 0?te:Math.min(H.end,X),!v.extend&&te>H&&(X=H,H=te,te=X),X=gM(M,te);var be=gM(M,H);X&&be&&(v.rangeCount!==1||v.anchorNode!==X.node||v.anchorOffset!==X.offset||v.focusNode!==be.node||v.focusOffset!==be.offset)&&(y=y.createRange(),y.setStart(X.node,X.offset),v.removeAllRanges(),te>H?(v.addRange(y),v.extend(be.node,be.offset)):(y.setEnd(be.node,be.offset),v.addRange(y)))}}for(y=[],v=M;v=v.parentNode;)v.nodeType===1&&y.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M=document.documentMode,Tu=null,hC=null,Qf=null,bC=!1;function bM(v,y,M){var H=M.window===M?M.document:M.nodeType===9?M:M.ownerDocument;bC||Tu==null||Tu!==fe(H)||(H=Tu,"selectionStart"in H&&pC(H)?H={start:H.selectionStart,end:H.selectionEnd}:(H=(H.ownerDocument&&H.ownerDocument.defaultView||window).getSelection(),H={anchorNode:H.anchorNode,anchorOffset:H.anchorOffset,focusNode:H.focusNode,focusOffset:H.focusOffset}),Qf&&Xf(Qf,H)||(Qf=H,H=cp(hC,"onSelect"),0Du||(v.current=MC[Du],MC[Du]=null,Du--)}function pr(v,y){Du++,MC[Du]=v.current,v.current=y}var os={},Ia=as(os),Xa=as(!1),cc=os;function ku(v,y){var M=v.type.contextTypes;if(!M)return os;var H=v.stateNode;if(H&&H.__reactInternalMemoizedUnmaskedChildContext===y)return H.__reactInternalMemoizedMaskedChildContext;var X={},te;for(te in M)X[te]=y[te];return H&&(v=v.stateNode,v.__reactInternalMemoizedUnmaskedChildContext=y,v.__reactInternalMemoizedMaskedChildContext=X),X}function Qa(v){return v=v.childContextTypes,v!=null}function vp(){xr(Xa),xr(Ia)}function _M(v,y,M){if(Ia.current!==os)throw Error(n(168));pr(Ia,y),pr(Xa,M)}function jM(v,y,M){var H=v.stateNode;if(y=y.childContextTypes,typeof H.getChildContext!="function")return M;H=H.getChildContext();for(var X in H)if(!(X in y))throw Error(n(108,Q(v)||"Unknown",X));return W({},M,H)}function mp(v){return v=(v=v.stateNode)&&v.__reactInternalMemoizedMergedChildContext||os,cc=Ia.current,pr(Ia,v),pr(Xa,Xa.current),!0}function FM(v,y,M){var H=v.stateNode;if(!H)throw Error(n(169));M?(v=jM(v,y,cc),H.__reactInternalMemoizedMergedChildContext=v,xr(Xa),xr(Ia),pr(Ia,v)):xr(Xa),pr(Xa,M)}var bl=null,gp=!1,TC=!1;function DM(v){bl===null?bl=[v]:bl.push(v)}function cQ(v){gp=!0,DM(v)}function is(){if(!TC&&bl!==null){TC=!0;var v=0,y=Sn;try{var M=bl;for(Sn=1;v>=be,X-=be,yl=1<<32-bn(y)+X|M<Rn?(ca=hn,hn=null):ca=hn.sibling;var Xn=$t(Ge,hn,Xe[Rn],Nt);if(Xn===null){hn===null&&(hn=ca);break}v&&hn&&Xn.alternate===null&&y(Ge,hn),Ve=te(Xn,Ve,Rn),pn===null?sn=Xn:pn.sibling=Xn,pn=Xn,hn=ca}if(Rn===Xe.length)return M(Ge,hn),Or&&dc(Ge,Rn),sn;if(hn===null){for(;RnRn?(ca=hn,hn=null):ca=hn.sibling;var gs=$t(Ge,hn,Xn.value,Nt);if(gs===null){hn===null&&(hn=ca);break}v&&hn&&gs.alternate===null&&y(Ge,hn),Ve=te(gs,Ve,Rn),pn===null?sn=gs:pn.sibling=gs,pn=gs,hn=ca}if(Xn.done)return M(Ge,hn),Or&&dc(Ge,Rn),sn;if(hn===null){for(;!Xn.done;Rn++,Xn=Xe.next())Xn=It(Ge,Xn.value,Nt),Xn!==null&&(Ve=te(Xn,Ve,Rn),pn===null?sn=Xn:pn.sibling=Xn,pn=Xn);return Or&&dc(Ge,Rn),sn}for(hn=H(Ge,hn);!Xn.done;Rn++,Xn=Xe.next())Xn=Yt(hn,Ge,Rn,Xn.value,Nt),Xn!==null&&(v&&Xn.alternate!==null&&hn.delete(Xn.key===null?Rn:Xn.key),Ve=te(Xn,Ve,Rn),pn===null?sn=Xn:pn.sibling=Xn,pn=Xn);return v&&hn.forEach(function(VQ){return y(Ge,VQ)}),Or&&dc(Ge,Rn),sn}function Hr(Ge,Ve,Xe,Nt){if(typeof Xe=="object"&&Xe!==null&&Xe.type===R&&Xe.key===null&&(Xe=Xe.props.children),typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case $:e:{for(var sn=Xe.key,pn=Ve;pn!==null;){if(pn.key===sn){if(sn=Xe.type,sn===R){if(pn.tag===7){M(Ge,pn.sibling),Ve=X(pn,Xe.props.children),Ve.return=Ge,Ge=Ve;break e}}else if(pn.elementType===sn||typeof sn=="object"&&sn!==null&&sn.$$typeof===F&&HM(sn)===pn.type){M(Ge,pn.sibling),Ve=X(pn,Xe.props),Ve.ref=rv(Ge,pn,Xe),Ve.return=Ge,Ge=Ve;break e}M(Ge,pn);break}else y(Ge,pn);pn=pn.sibling}Xe.type===R?(Ve=yc(Xe.props.children,Ge.mode,Nt,Xe.key),Ve.return=Ge,Ge=Ve):(Nt=Vp(Xe.type,Xe.key,Xe.props,null,Ge.mode,Nt),Nt.ref=rv(Ge,Ve,Xe),Nt.return=Ge,Ge=Nt)}return be(Ge);case E:e:{for(pn=Xe.key;Ve!==null;){if(Ve.key===pn)if(Ve.tag===4&&Ve.stateNode.containerInfo===Xe.containerInfo&&Ve.stateNode.implementation===Xe.implementation){M(Ge,Ve.sibling),Ve=X(Ve,Xe.children||[]),Ve.return=Ge,Ge=Ve;break e}else{M(Ge,Ve);break}else y(Ge,Ve);Ve=Ve.sibling}Ve=IS(Xe,Ge.mode,Nt),Ve.return=Ge,Ge=Ve}return be(Ge);case F:return pn=Xe._init,Hr(Ge,Ve,pn(Xe._payload),Nt)}if(Ce(Xe))return en(Ge,Ve,Xe,Nt);if(K(Xe))return rn(Ge,Ve,Xe,Nt);yp(Ge,Xe)}return typeof Xe=="string"&&Xe!==""||typeof Xe=="number"?(Xe=""+Xe,Ve!==null&&Ve.tag===6?(M(Ge,Ve.sibling),Ve=X(Ve,Xe),Ve.return=Ge,Ge=Ve):(M(Ge,Ve),Ve=OS(Xe,Ge.mode,Nt),Ve.return=Ge,Ge=Ve),be(Ge)):M(Ge,Ve)}return Hr}var zu=VM(!0),WM=VM(!1),Cp=as(null),Sp=null,Hu=null,kC=null;function AC(){kC=Hu=Sp=null}function LC(v){var y=Cp.current;xr(Cp),v._currentValue=y}function BC(v,y,M){for(;v!==null;){var H=v.alternate;if((v.childLanes&y)!==y?(v.childLanes|=y,H!==null&&(H.childLanes|=y)):H!==null&&(H.childLanes&y)!==y&&(H.childLanes|=y),v===M)break;v=v.return}}function Vu(v,y){Sp=v,kC=Hu=null,v=v.dependencies,v!==null&&v.firstContext!==null&&((v.lanes&y)!==0&&(Ja=!0),v.firstContext=null)}function zo(v){var y=v._currentValue;if(kC!==v)if(v={context:v,memoizedValue:y,next:null},Hu===null){if(Sp===null)throw Error(n(308));Hu=v,Sp.dependencies={lanes:0,firstContext:v}}else Hu=Hu.next=v;return y}var fc=null;function zC(v){fc===null?fc=[v]:fc.push(v)}function KM(v,y,M,H){var X=y.interleaved;return X===null?(M.next=M,zC(y)):(M.next=X.next,X.next=M),y.interleaved=M,Sl(v,H)}function Sl(v,y){v.lanes|=y;var M=v.alternate;for(M!==null&&(M.lanes|=y),M=v,v=v.return;v!==null;)v.childLanes|=y,M=v.alternate,M!==null&&(M.childLanes|=y),M=v,v=v.return;return M.tag===3?M.stateNode:null}var ls=!1;function HC(v){v.updateQueue={baseState:v.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qM(v,y){v=v.updateQueue,y.updateQueue===v&&(y.updateQueue={baseState:v.baseState,firstBaseUpdate:v.firstBaseUpdate,lastBaseUpdate:v.lastBaseUpdate,shared:v.shared,effects:v.effects})}function xl(v,y){return{eventTime:v,lane:y,tag:0,payload:null,callback:null,next:null}}function ss(v,y,M){var H=v.updateQueue;if(H===null)return null;if(H=H.shared,(qn&2)!==0){var X=H.pending;return X===null?y.next=y:(y.next=X.next,X.next=y),H.pending=y,Sl(v,M)}return X=H.interleaved,X===null?(y.next=y,zC(H)):(y.next=X.next,X.next=y),H.interleaved=y,Sl(v,M)}function xp(v,y,M){if(y=y.updateQueue,y!==null&&(y=y.shared,(M&4194240)!==0)){var H=y.lanes;H&=v.pendingLanes,M|=H,y.lanes=M,Zn(v,M)}}function UM(v,y){var M=v.updateQueue,H=v.alternate;if(H!==null&&(H=H.updateQueue,M===H)){var X=null,te=null;if(M=M.firstBaseUpdate,M!==null){do{var be={eventTime:M.eventTime,lane:M.lane,tag:M.tag,payload:M.payload,callback:M.callback,next:null};te===null?X=te=be:te=te.next=be,M=M.next}while(M!==null);te===null?X=te=y:te=te.next=y}else X=te=y;M={baseState:H.baseState,firstBaseUpdate:X,lastBaseUpdate:te,shared:H.shared,effects:H.effects},v.updateQueue=M;return}v=M.lastBaseUpdate,v===null?M.firstBaseUpdate=y:v.next=y,M.lastBaseUpdate=y}function wp(v,y,M,H){var X=v.updateQueue;ls=!1;var te=X.firstBaseUpdate,be=X.lastBaseUpdate,Ie=X.shared.pending;if(Ie!==null){X.shared.pending=null;var Ae=Ie,Je=Ae.next;Ae.next=null,be===null?te=Je:be.next=Je,be=Ae;var Et=v.alternate;Et!==null&&(Et=Et.updateQueue,Ie=Et.lastBaseUpdate,Ie!==be&&(Ie===null?Et.firstBaseUpdate=Je:Ie.next=Je,Et.lastBaseUpdate=Ae))}if(te!==null){var It=X.baseState;be=0,Et=Je=Ae=null,Ie=te;do{var $t=Ie.lane,Yt=Ie.eventTime;if((H&$t)===$t){Et!==null&&(Et=Et.next={eventTime:Yt,lane:0,tag:Ie.tag,payload:Ie.payload,callback:Ie.callback,next:null});e:{var en=v,rn=Ie;switch($t=y,Yt=M,rn.tag){case 1:if(en=rn.payload,typeof en=="function"){It=en.call(Yt,It,$t);break e}It=en;break e;case 3:en.flags=en.flags&-65537|128;case 0:if(en=rn.payload,$t=typeof en=="function"?en.call(Yt,It,$t):en,$t==null)break e;It=W({},It,$t);break e;case 2:ls=!0}}Ie.callback!==null&&Ie.lane!==0&&(v.flags|=64,$t=X.effects,$t===null?X.effects=[Ie]:$t.push(Ie))}else Yt={eventTime:Yt,lane:$t,tag:Ie.tag,payload:Ie.payload,callback:Ie.callback,next:null},Et===null?(Je=Et=Yt,Ae=It):Et=Et.next=Yt,be|=$t;if(Ie=Ie.next,Ie===null){if(Ie=X.shared.pending,Ie===null)break;$t=Ie,Ie=$t.next,$t.next=null,X.lastBaseUpdate=$t,X.shared.pending=null}}while(!0);if(Et===null&&(Ae=It),X.baseState=Ae,X.firstBaseUpdate=Je,X.lastBaseUpdate=Et,y=X.shared.interleaved,y!==null){X=y;do be|=X.lane,X=X.next;while(X!==y)}else te===null&&(X.shared.lanes=0);gc|=be,v.lanes=be,v.memoizedState=It}}function GM(v,y,M){if(v=y.effects,y.effects=null,v!==null)for(y=0;yM?M:4,v(!0);var H=UC.transition;UC.transition={};try{v(!1),y()}finally{Sn=M,UC.transition=H}}function v6(){return Ho().memoizedState}function vQ(v,y,M){var H=fs(v);if(M={lane:H,action:M,hasEagerState:!1,eagerState:null,next:null},m6(v))g6(y,M);else if(M=KM(v,y,M,H),M!==null){var X=Ha();bi(M,v,H,X),p6(M,y,H)}}function mQ(v,y,M){var H=fs(v),X={lane:H,action:M,hasEagerState:!1,eagerState:null,next:null};if(m6(v))g6(y,X);else{var te=v.alternate;if(v.lanes===0&&(te===null||te.lanes===0)&&(te=y.lastRenderedReducer,te!==null))try{var be=y.lastRenderedState,Ie=te(be,M);if(X.hasEagerState=!0,X.eagerState=Ie,vi(Ie,be)){var Ae=y.interleaved;Ae===null?(X.next=X,zC(y)):(X.next=Ae.next,Ae.next=X),y.interleaved=X;return}}catch{}finally{}M=KM(v,y,X,H),M!==null&&(X=Ha(),bi(M,v,H,X),p6(M,y,H))}}function m6(v){var y=v.alternate;return v===_r||y!==null&&y===_r}function g6(v,y){lv=Pp=!0;var M=v.pending;M===null?y.next=y:(y.next=M.next,M.next=y),v.pending=y}function p6(v,y,M){if((M&4194240)!==0){var H=y.lanes;H&=v.pendingLanes,M|=H,y.lanes=M,Zn(v,M)}}var Rp={readContext:zo,useCallback:Ra,useContext:Ra,useEffect:Ra,useImperativeHandle:Ra,useInsertionEffect:Ra,useLayoutEffect:Ra,useMemo:Ra,useReducer:Ra,useRef:Ra,useState:Ra,useDebugValue:Ra,useDeferredValue:Ra,useTransition:Ra,useMutableSource:Ra,useSyncExternalStore:Ra,useId:Ra,unstable_isNewReconciler:!1},gQ={readContext:zo,useCallback:function(v,y){return Gi().memoizedState=[v,y===void 0?null:y],v},useContext:zo,useEffect:o6,useImperativeHandle:function(v,y,M){return M=M!=null?M.concat([v]):null,Op(4194308,4,s6.bind(null,y,v),M)},useLayoutEffect:function(v,y){return Op(4194308,4,v,y)},useInsertionEffect:function(v,y){return Op(4,2,v,y)},useMemo:function(v,y){var M=Gi();return y=y===void 0?null:y,v=v(),M.memoizedState=[v,y],v},useReducer:function(v,y,M){var H=Gi();return y=M!==void 0?M(y):y,H.memoizedState=H.baseState=y,v={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:v,lastRenderedState:y},H.queue=v,v=v.dispatch=vQ.bind(null,_r,v),[H.memoizedState,v]},useRef:function(v){var y=Gi();return v={current:v},y.memoizedState=v},useState:r6,useDebugValue:eS,useDeferredValue:function(v){return Gi().memoizedState=v},useTransition:function(){var v=r6(!1),y=v[0];return v=fQ.bind(null,v[1]),Gi().memoizedState=v,[y,v]},useMutableSource:function(){},useSyncExternalStore:function(v,y,M){var H=_r,X=Gi();if(Or){if(M===void 0)throw Error(n(407));M=M()}else{if(M=y(),sa===null)throw Error(n(349));(mc&30)!==0||JM(H,y,M)}X.memoizedState=M;var te={value:M,getSnapshot:y};return X.queue=te,o6(e6.bind(null,H,te,v),[v]),H.flags|=2048,uv(9,ZM.bind(null,H,te,M,y),void 0,null),M},useId:function(){var v=Gi(),y=sa.identifierPrefix;if(Or){var M=Cl,H=yl;M=(H&~(1<<32-bn(H)-1)).toString(32)+M,y=":"+y+"R"+M,M=sv++,0")&&(Ae=Ae.replace("",v.displayName)),Ae}while(1<=be&&0<=Ie);break}}}finally{U=!1,Error.prepareStackTrace=M}return(v=v?v.displayName||v.name:"")?q(v):""}function Y(v){switch(v.tag){case 5:return q(v.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return v=G(v.type,!1),v;case 11:return v=G(v.type.render,!1),v;case 1:return v=G(v.type,!0),v;default:return""}}function J(v){if(v==null)return null;if(typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case R:return"Fragment";case E:return"Portal";case O:return"Profiler";case I:return"StrictMode";case A:return"Suspense";case j:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case _:return(v.displayName||"Context")+".Consumer";case T:return(v._context.displayName||"Context")+".Provider";case k:var y=v.render;return v=v.displayName,v||(v=y.displayName||y.name||"",v=v!==""?"ForwardRef("+v+")":"ForwardRef"),v;case D:return y=v.displayName||null,y!==null?y:J(v.type)||"Memo";case F:y=v._payload,v=v._init;try{return J(v(y))}catch{}}return null}function Q(v){var y=v.type;switch(v.tag){case 24:return"Cache";case 9:return(y.displayName||"Context")+".Consumer";case 10:return(y._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return v=y.render,v=v.displayName||v.name||"",y.displayName||(v!==""?"ForwardRef("+v+")":"ForwardRef");case 7:return"Fragment";case 5:return y;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(y);case 8:return y===I?"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 y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y}return null}function Z(v){switch(typeof v){case"boolean":case"number":case"string":case"undefined":return v;case"object":return v;default:return""}}function ne(v){var y=v.type;return(v=v.nodeName)&&v.toLowerCase()==="input"&&(y==="checkbox"||y==="radio")}function ae(v){var y=ne(v)?"checked":"value",M=Object.getOwnPropertyDescriptor(v.constructor.prototype,y),H=""+v[y];if(!v.hasOwnProperty(y)&&typeof M<"u"&&typeof M.get=="function"&&typeof M.set=="function"){var X=M.get,te=M.set;return Object.defineProperty(v,y,{configurable:!0,get:function(){return X.call(this)},set:function(be){H=""+be,te.call(this,be)}}),Object.defineProperty(v,y,{enumerable:M.enumerable}),{getValue:function(){return H},setValue:function(be){H=""+be},stopTracking:function(){v._valueTracker=null,delete v[y]}}}}function le(v){v._valueTracker||(v._valueTracker=ae(v))}function re(v){if(!v)return!1;var y=v._valueTracker;if(!y)return!0;var M=y.getValue(),H="";return v&&(H=ne(v)?v.checked?"true":"false":v.value),v=H,v!==M?(y.setValue(v),!0):!1}function fe(v){if(v=v||(typeof document<"u"?document:void 0),typeof v>"u")return null;try{return v.activeElement||v.body}catch{return v.body}}function ue(v,y){var M=y.checked;return W({},y,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:M??v._wrapperState.initialChecked})}function de(v,y){var M=y.defaultValue==null?"":y.defaultValue,H=y.checked!=null?y.checked:y.defaultChecked;M=Z(y.value!=null?y.value:M),v._wrapperState={initialChecked:H,initialValue:M,controlled:y.type==="checkbox"||y.type==="radio"?y.checked!=null:y.value!=null}}function ie(v,y){y=y.checked,y!=null&&x(v,"checked",y,!1)}function se(v,y){ie(v,y);var M=Z(y.value),H=y.type;if(M!=null)H==="number"?(M===0&&v.value===""||v.value!=M)&&(v.value=""+M):v.value!==""+M&&(v.value=""+M);else if(H==="submit"||H==="reset"){v.removeAttribute("value");return}y.hasOwnProperty("value")?he(v,y.type,M):y.hasOwnProperty("defaultValue")&&he(v,y.type,Z(y.defaultValue)),y.checked==null&&y.defaultChecked!=null&&(v.defaultChecked=!!y.defaultChecked)}function ve(v,y,M){if(y.hasOwnProperty("value")||y.hasOwnProperty("defaultValue")){var H=y.type;if(!(H!=="submit"&&H!=="reset"||y.value!==void 0&&y.value!==null))return;y=""+v._wrapperState.initialValue,M||y===v.value||(v.value=y),v.defaultValue=y}M=v.name,M!==""&&(v.name=""),v.defaultChecked=!!v._wrapperState.initialChecked,M!==""&&(v.name=M)}function he(v,y,M){(y!=="number"||fe(v.ownerDocument)!==v)&&(M==null?v.defaultValue=""+v._wrapperState.initialValue:v.defaultValue!==""+M&&(v.defaultValue=""+M))}var Ce=Array.isArray;function pe(v,y,M,H){if(v=v.options,y){y={};for(var X=0;X"+y.valueOf().toString()+"",y=Te.firstChild;v.firstChild;)v.removeChild(v.firstChild);for(;y.firstChild;)v.appendChild(y.firstChild)}});function Fe(v,y){if(y){var M=v.firstChild;if(M&&M===v.lastChild&&M.nodeType===3){M.nodeValue=y;return}}v.textContent=y}var je={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},Ee=["Webkit","ms","Moz","O"];Object.keys(je).forEach(function(v){Ee.forEach(function(y){y=y+v.charAt(0).toUpperCase()+v.substring(1),je[y]=je[v]})});function Le(v,y,M){return y==null||typeof y=="boolean"||y===""?"":M||typeof y!="number"||y===0||je.hasOwnProperty(v)&&je[v]?(""+y).trim():y+"px"}function Pe(v,y){v=v.style;for(var M in y)if(y.hasOwnProperty(M)){var H=M.indexOf("--")===0,X=Le(M,y[M],H);M==="float"&&(M="cssFloat"),H?v.setProperty(M,X):v[M]=X}}var ze=W({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 Oe(v,y){if(y){if(ze[v]&&(y.children!=null||y.dangerouslySetInnerHTML!=null))throw Error(n(137,v));if(y.dangerouslySetInnerHTML!=null){if(y.children!=null)throw Error(n(60));if(typeof y.dangerouslySetInnerHTML!="object"||!("__html"in y.dangerouslySetInnerHTML))throw Error(n(61))}if(y.style!=null&&typeof y.style!="object")throw Error(n(62))}}function we(v,y){if(v.indexOf("-")===-1)return typeof y.is=="string";switch(v){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 _e=null;function Be(v){return v=v.target||v.srcElement||window,v.correspondingUseElement&&(v=v.correspondingUseElement),v.nodeType===3?v.parentNode:v}var Qe=null,lt=null,Ke=null;function et(v){if(v=nv(v)){if(typeof Qe!="function")throw Error(n(280));var y=v.stateNode;y&&(y=vp(y),Qe(v.stateNode,v.type,y))}}function st(v){lt?Ke?Ke.push(v):Ke=[v]:lt=v}function Ze(){if(lt){var v=lt,y=Ke;if(Ke=lt=null,et(v),y)for(v=0;v>>=0,v===0?32:31-(cr(v)/ur|0)|0}var yr=64,Pr=4194304;function mr(v){switch(v&-v){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 v&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return v&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return v}}function Nn(v,y){var M=v.pendingLanes;if(M===0)return 0;var H=0,X=v.suspendedLanes,te=v.pingedLanes,be=M&268435455;if(be!==0){var Ie=be&~X;Ie!==0?H=mr(Ie):(te&=be,te!==0&&(H=mr(te)))}else be=M&~X,be!==0?H=mr(be):te!==0&&(H=mr(te));if(H===0)return 0;if(y!==0&&y!==H&&(y&X)===0&&(X=H&-H,te=y&-y,X>=te||X===16&&(te&4194240)!==0))return y;if((H&4)!==0&&(H|=M&16),y=v.entangledLanes,y!==0)for(v=v.entanglements,y&=H;0M;M++)y.push(v);return y}function Pn(v,y,M){v.pendingLanes|=y,y!==536870912&&(v.suspendedLanes=0,v.pingedLanes=0),v=v.eventTimes,y=31-yn(y),v[y]=M}function Jn(v,y){var M=v.pendingLanes&~y;v.pendingLanes=y,v.suspendedLanes=0,v.pingedLanes=0,v.expiredLanes&=y,v.mutableReadLanes&=y,v.entangledLanes&=y,y=v.entanglements;var H=v.eventTimes;for(v=v.expirationTimes;0=Uf),yM=" ",CM=!1;function SM(v,y){switch(v){case"keyup":return rQ.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xM(v){return v=v.detail,typeof v=="object"&&"data"in v?v.data:null}var Nu=!1;function oQ(v,y){switch(v){case"compositionend":return xM(y);case"keypress":return y.which!==32?null:(CM=!0,yM);case"textInput":return v=y.data,v===yM&&CM?null:v;default:return null}}function iQ(v,y){if(Nu)return v==="compositionend"||!xC&&SM(v,y)?(v=vM(),np=pC=ts=null,Nu=!1,v):null;switch(v){case"paste":return null;case"keypress":if(!(y.ctrlKey||y.altKey||y.metaKey)||y.ctrlKey&&y.altKey){if(y.char&&1=y)return{node:M,offset:y-v};v=H}e:{for(;M;){if(M.nextSibling){M=M.nextSibling;break e}M=M.parentNode}M=void 0}M=RM(M)}}function TM(v,y){return v&&y?v===y?!0:v&&v.nodeType===3?!1:y&&y.nodeType===3?TM(v,y.parentNode):"contains"in v?v.contains(y):v.compareDocumentPosition?!!(v.compareDocumentPosition(y)&16):!1:!1}function NM(){for(var v=window,y=fe();y instanceof v.HTMLIFrameElement;){try{var M=typeof y.contentWindow.location.href=="string"}catch{M=!1}if(M)v=y.contentWindow;else break;y=fe(v.document)}return y}function EC(v){var y=v&&v.nodeName&&v.nodeName.toLowerCase();return y&&(y==="input"&&(v.type==="text"||v.type==="search"||v.type==="tel"||v.type==="url"||v.type==="password")||y==="textarea"||v.contentEditable==="true")}function gQ(v){var y=NM(),M=v.focusedElem,H=v.selectionRange;if(y!==M&&M&&M.ownerDocument&&TM(M.ownerDocument.documentElement,M)){if(H!==null&&EC(M)){if(y=H.start,v=H.end,v===void 0&&(v=y),"selectionStart"in M)M.selectionStart=y,M.selectionEnd=Math.min(v,M.value.length);else if(v=(y=M.ownerDocument||document)&&y.defaultView||window,v.getSelection){v=v.getSelection();var X=M.textContent.length,te=Math.min(H.start,X);H=H.end===void 0?te:Math.min(H.end,X),!v.extend&&te>H&&(X=H,H=te,te=X),X=MM(M,te);var be=MM(M,H);X&&be&&(v.rangeCount!==1||v.anchorNode!==X.node||v.anchorOffset!==X.offset||v.focusNode!==be.node||v.focusOffset!==be.offset)&&(y=y.createRange(),y.setStart(X.node,X.offset),v.removeAllRanges(),te>H?(v.addRange(y),v.extend(be.node,be.offset)):(y.setEnd(be.node,be.offset),v.addRange(y)))}}for(y=[],v=M;v=v.parentNode;)v.nodeType===1&&y.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M=document.documentMode,_u=null,PC=null,Qf=null,OC=!1;function _M(v,y,M){var H=M.window===M?M.document:M.nodeType===9?M:M.ownerDocument;OC||_u==null||_u!==fe(H)||(H=_u,"selectionStart"in H&&EC(H)?H={start:H.selectionStart,end:H.selectionEnd}:(H=(H.ownerDocument&&H.ownerDocument.defaultView||window).getSelection(),H={anchorNode:H.anchorNode,anchorOffset:H.anchorOffset,focusNode:H.focusNode,focusOffset:H.focusOffset}),Qf&&Xf(Qf,H)||(Qf=H,H=up(PC,"onSelect"),0Au||(v.current=LC[Au],LC[Au]=null,Au--)}function pr(v,y){Au++,LC[Au]=v.current,v.current=y}var os={},Oa=as(os),Xa=as(!1),sc=os;function Lu(v,y){var M=v.type.contextTypes;if(!M)return os;var H=v.stateNode;if(H&&H.__reactInternalMemoizedUnmaskedChildContext===y)return H.__reactInternalMemoizedMaskedChildContext;var X={},te;for(te in M)X[te]=y[te];return H&&(v=v.stateNode,v.__reactInternalMemoizedUnmaskedChildContext=y,v.__reactInternalMemoizedMaskedChildContext=X),X}function Qa(v){return v=v.childContextTypes,v!=null}function mp(){xr(Xa),xr(Oa)}function GM(v,y,M){if(Oa.current!==os)throw Error(n(168));pr(Oa,y),pr(Xa,M)}function YM(v,y,M){var H=v.stateNode;if(y=y.childContextTypes,typeof H.getChildContext!="function")return M;H=H.getChildContext();for(var X in H)if(!(X in y))throw Error(n(108,Q(v)||"Unknown",X));return W({},M,H)}function gp(v){return v=(v=v.stateNode)&&v.__reactInternalMemoizedMergedChildContext||os,sc=Oa.current,pr(Oa,v),pr(Xa,Xa.current),!0}function XM(v,y,M){var H=v.stateNode;if(!H)throw Error(n(169));M?(v=YM(v,y,sc),H.__reactInternalMemoizedMergedChildContext=v,xr(Xa),xr(Oa),pr(Oa,v)):xr(Xa),pr(Xa,M)}var bl=null,pp=!1,BC=!1;function QM(v){bl===null?bl=[v]:bl.push(v)}function OQ(v){pp=!0,QM(v)}function is(){if(!BC&&bl!==null){BC=!0;var v=0,y=xn;try{var M=bl;for(xn=1;v>=be,X-=be,yl=1<<32-yn(y)+X|M<Rn?(ua=bn,bn=null):ua=bn.sibling;var Qn=$t(Ge,bn,Xe[Rn],_t);if(Qn===null){bn===null&&(bn=ua);break}v&&bn&&Qn.alternate===null&&y(Ge,bn),Ve=te(Qn,Ve,Rn),hn===null?cn=Qn:hn.sibling=Qn,hn=Qn,bn=ua}if(Rn===Xe.length)return M(Ge,bn),Ir&&uc(Ge,Rn),cn;if(bn===null){for(;RnRn?(ua=bn,bn=null):ua=bn.sibling;var gs=$t(Ge,bn,Qn.value,_t);if(gs===null){bn===null&&(bn=ua);break}v&&bn&&gs.alternate===null&&y(Ge,bn),Ve=te(gs,Ve,Rn),hn===null?cn=gs:hn.sibling=gs,hn=gs,bn=ua}if(Qn.done)return M(Ge,bn),Ir&&uc(Ge,Rn),cn;if(bn===null){for(;!Qn.done;Rn++,Qn=Xe.next())Qn=It(Ge,Qn.value,_t),Qn!==null&&(Ve=te(Qn,Ve,Rn),hn===null?cn=Qn:hn.sibling=Qn,hn=Qn);return Ir&&uc(Ge,Rn),cn}for(bn=H(Ge,bn);!Qn.done;Rn++,Qn=Xe.next())Qn=Yt(bn,Ge,Rn,Qn.value,_t),Qn!==null&&(v&&Qn.alternate!==null&&bn.delete(Qn.key===null?Rn:Qn.key),Ve=te(Qn,Ve,Rn),hn===null?cn=Qn:hn.sibling=Qn,hn=Qn);return v&&bn.forEach(function(lJ){return y(Ge,lJ)}),Ir&&uc(Ge,Rn),cn}function Wr(Ge,Ve,Xe,_t){if(typeof Xe=="object"&&Xe!==null&&Xe.type===R&&Xe.key===null&&(Xe=Xe.props.children),typeof Xe=="object"&&Xe!==null){switch(Xe.$$typeof){case $:e:{for(var cn=Xe.key,hn=Ve;hn!==null;){if(hn.key===cn){if(cn=Xe.type,cn===R){if(hn.tag===7){M(Ge,hn.sibling),Ve=X(hn,Xe.props.children),Ve.return=Ge,Ge=Ve;break e}}else if(hn.elementType===cn||typeof cn=="object"&&cn!==null&&cn.$$typeof===F&&r6(cn)===hn.type){M(Ge,hn.sibling),Ve=X(hn,Xe.props),Ve.ref=rv(Ge,hn,Xe),Ve.return=Ge,Ge=Ve;break e}M(Ge,hn);break}else y(Ge,hn);hn=hn.sibling}Xe.type===R?(Ve=bc(Xe.props.children,Ge.mode,_t,Xe.key),Ve.return=Ge,Ge=Ve):(_t=Wp(Xe.type,Xe.key,Xe.props,null,Ge.mode,_t),_t.ref=rv(Ge,Ve,Xe),_t.return=Ge,Ge=_t)}return be(Ge);case E:e:{for(hn=Xe.key;Ve!==null;){if(Ve.key===hn)if(Ve.tag===4&&Ve.stateNode.containerInfo===Xe.containerInfo&&Ve.stateNode.implementation===Xe.implementation){M(Ge,Ve.sibling),Ve=X(Ve,Xe.children||[]),Ve.return=Ge,Ge=Ve;break e}else{M(Ge,Ve);break}else y(Ge,Ve);Ve=Ve.sibling}Ve=kS(Xe,Ge.mode,_t),Ve.return=Ge,Ge=Ve}return be(Ge);case F:return hn=Xe._init,Wr(Ge,Ve,hn(Xe._payload),_t)}if(Ce(Xe))return tn(Ge,Ve,Xe,_t);if(K(Xe))return on(Ge,Ve,Xe,_t);Cp(Ge,Xe)}return typeof Xe=="string"&&Xe!==""||typeof Xe=="number"?(Xe=""+Xe,Ve!==null&&Ve.tag===6?(M(Ge,Ve.sibling),Ve=X(Ve,Xe),Ve.return=Ge,Ge=Ve):(M(Ge,Ve),Ve=DS(Xe,Ge.mode,_t),Ve.return=Ge,Ge=Ve),be(Ge)):M(Ge,Ve)}return Wr}var Vu=a6(!0),o6=a6(!1),Sp=as(null),xp=null,Wu=null,qC=null;function UC(){qC=Wu=xp=null}function GC(v){var y=Sp.current;xr(Sp),v._currentValue=y}function YC(v,y,M){for(;v!==null;){var H=v.alternate;if((v.childLanes&y)!==y?(v.childLanes|=y,H!==null&&(H.childLanes|=y)):H!==null&&(H.childLanes&y)!==y&&(H.childLanes|=y),v===M)break;v=v.return}}function Ku(v,y){xp=v,qC=Wu=null,v=v.dependencies,v!==null&&v.firstContext!==null&&((v.lanes&y)!==0&&(Ja=!0),v.firstContext=null)}function Ho(v){var y=v._currentValue;if(qC!==v)if(v={context:v,memoizedValue:y,next:null},Wu===null){if(xp===null)throw Error(n(308));Wu=v,xp.dependencies={lanes:0,firstContext:v}}else Wu=Wu.next=v;return y}var dc=null;function XC(v){dc===null?dc=[v]:dc.push(v)}function i6(v,y,M,H){var X=y.interleaved;return X===null?(M.next=M,XC(y)):(M.next=X.next,X.next=M),y.interleaved=M,Sl(v,H)}function Sl(v,y){v.lanes|=y;var M=v.alternate;for(M!==null&&(M.lanes|=y),M=v,v=v.return;v!==null;)v.childLanes|=y,M=v.alternate,M!==null&&(M.childLanes|=y),M=v,v=v.return;return M.tag===3?M.stateNode:null}var ls=!1;function QC(v){v.updateQueue={baseState:v.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function l6(v,y){v=v.updateQueue,y.updateQueue===v&&(y.updateQueue={baseState:v.baseState,firstBaseUpdate:v.firstBaseUpdate,lastBaseUpdate:v.lastBaseUpdate,shared:v.shared,effects:v.effects})}function xl(v,y){return{eventTime:v,lane:y,tag:0,payload:null,callback:null,next:null}}function ss(v,y,M){var H=v.updateQueue;if(H===null)return null;if(H=H.shared,(Un&2)!==0){var X=H.pending;return X===null?y.next=y:(y.next=X.next,X.next=y),H.pending=y,Sl(v,M)}return X=H.interleaved,X===null?(y.next=y,XC(H)):(y.next=X.next,X.next=y),H.interleaved=y,Sl(v,M)}function wp(v,y,M){if(y=y.updateQueue,y!==null&&(y=y.shared,(M&4194240)!==0)){var H=y.lanes;H&=v.pendingLanes,M|=H,y.lanes=M,Zn(v,M)}}function s6(v,y){var M=v.updateQueue,H=v.alternate;if(H!==null&&(H=H.updateQueue,M===H)){var X=null,te=null;if(M=M.firstBaseUpdate,M!==null){do{var be={eventTime:M.eventTime,lane:M.lane,tag:M.tag,payload:M.payload,callback:M.callback,next:null};te===null?X=te=be:te=te.next=be,M=M.next}while(M!==null);te===null?X=te=y:te=te.next=y}else X=te=y;M={baseState:H.baseState,firstBaseUpdate:X,lastBaseUpdate:te,shared:H.shared,effects:H.effects},v.updateQueue=M;return}v=M.lastBaseUpdate,v===null?M.firstBaseUpdate=y:v.next=y,M.lastBaseUpdate=y}function $p(v,y,M,H){var X=v.updateQueue;ls=!1;var te=X.firstBaseUpdate,be=X.lastBaseUpdate,Ie=X.shared.pending;if(Ie!==null){X.shared.pending=null;var Ae=Ie,Je=Ae.next;Ae.next=null,be===null?te=Je:be.next=Je,be=Ae;var Et=v.alternate;Et!==null&&(Et=Et.updateQueue,Ie=Et.lastBaseUpdate,Ie!==be&&(Ie===null?Et.firstBaseUpdate=Je:Ie.next=Je,Et.lastBaseUpdate=Ae))}if(te!==null){var It=X.baseState;be=0,Et=Je=Ae=null,Ie=te;do{var $t=Ie.lane,Yt=Ie.eventTime;if((H&$t)===$t){Et!==null&&(Et=Et.next={eventTime:Yt,lane:0,tag:Ie.tag,payload:Ie.payload,callback:Ie.callback,next:null});e:{var tn=v,on=Ie;switch($t=y,Yt=M,on.tag){case 1:if(tn=on.payload,typeof tn=="function"){It=tn.call(Yt,It,$t);break e}It=tn;break e;case 3:tn.flags=tn.flags&-65537|128;case 0:if(tn=on.payload,$t=typeof tn=="function"?tn.call(Yt,It,$t):tn,$t==null)break e;It=W({},It,$t);break e;case 2:ls=!0}}Ie.callback!==null&&Ie.lane!==0&&(v.flags|=64,$t=X.effects,$t===null?X.effects=[Ie]:$t.push(Ie))}else Yt={eventTime:Yt,lane:$t,tag:Ie.tag,payload:Ie.payload,callback:Ie.callback,next:null},Et===null?(Je=Et=Yt,Ae=It):Et=Et.next=Yt,be|=$t;if(Ie=Ie.next,Ie===null){if(Ie=X.shared.pending,Ie===null)break;$t=Ie,Ie=$t.next,$t.next=null,X.lastBaseUpdate=$t,X.shared.pending=null}}while(!0);if(Et===null&&(Ae=It),X.baseState=Ae,X.firstBaseUpdate=Je,X.lastBaseUpdate=Et,y=X.shared.interleaved,y!==null){X=y;do be|=X.lane,X=X.next;while(X!==y)}else te===null&&(X.shared.lanes=0);mc|=be,v.lanes=be,v.memoizedState=It}}function c6(v,y,M){if(v=y.effects,y.effects=null,v!==null)for(y=0;yM?M:4,v(!0);var H=nS.transition;nS.transition={};try{v(!1),y()}finally{xn=M,nS.transition=H}}function I6(){return Vo().memoizedState}function TQ(v,y,M){var H=fs(v);if(M={lane:H,action:M,hasEagerState:!1,eagerState:null,next:null},R6(v))M6(y,M);else if(M=i6(v,y,M,H),M!==null){var X=za();Si(M,v,H,X),T6(M,y,H)}}function NQ(v,y,M){var H=fs(v),X={lane:H,action:M,hasEagerState:!1,eagerState:null,next:null};if(R6(v))M6(y,X);else{var te=v.alternate;if(v.lanes===0&&(te===null||te.lanes===0)&&(te=y.lastRenderedReducer,te!==null))try{var be=y.lastRenderedState,Ie=te(be,M);if(X.hasEagerState=!0,X.eagerState=Ie,pi(Ie,be)){var Ae=y.interleaved;Ae===null?(X.next=X,XC(y)):(X.next=Ae.next,Ae.next=X),y.interleaved=X;return}}catch{}finally{}M=i6(v,y,X,H),M!==null&&(X=za(),Si(M,v,H,X),T6(M,y,H))}}function R6(v){var y=v.alternate;return v===jr||y!==null&&y===jr}function M6(v,y){lv=Op=!0;var M=v.pending;M===null?y.next=y:(y.next=M.next,M.next=y),v.pending=y}function T6(v,y,M){if((M&4194240)!==0){var H=y.lanes;H&=v.pendingLanes,M|=H,y.lanes=M,Zn(v,M)}}var Mp={readContext:Ho,useCallback:Ia,useContext:Ia,useEffect:Ia,useImperativeHandle:Ia,useInsertionEffect:Ia,useLayoutEffect:Ia,useMemo:Ia,useReducer:Ia,useRef:Ia,useState:Ia,useDebugValue:Ia,useDeferredValue:Ia,useTransition:Ia,useMutableSource:Ia,useSyncExternalStore:Ia,useId:Ia,unstable_isNewReconciler:!1},_Q={readContext:Ho,useCallback:function(v,y){return Xi().memoizedState=[v,y===void 0?null:y],v},useContext:Ho,useEffect:C6,useImperativeHandle:function(v,y,M){return M=M!=null?M.concat([v]):null,Ip(4194308,4,w6.bind(null,y,v),M)},useLayoutEffect:function(v,y){return Ip(4194308,4,v,y)},useInsertionEffect:function(v,y){return Ip(4,2,v,y)},useMemo:function(v,y){var M=Xi();return y=y===void 0?null:y,v=v(),M.memoizedState=[v,y],v},useReducer:function(v,y,M){var H=Xi();return y=M!==void 0?M(y):y,H.memoizedState=H.baseState=y,v={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:v,lastRenderedState:y},H.queue=v,v=v.dispatch=TQ.bind(null,jr,v),[H.memoizedState,v]},useRef:function(v){var y=Xi();return v={current:v},y.memoizedState=v},useState:b6,useDebugValue:cS,useDeferredValue:function(v){return Xi().memoizedState=v},useTransition:function(){var v=b6(!1),y=v[0];return v=MQ.bind(null,v[1]),Xi().memoizedState=v,[y,v]},useMutableSource:function(){},useSyncExternalStore:function(v,y,M){var H=jr,X=Xi();if(Ir){if(M===void 0)throw Error(n(407));M=M()}else{if(M=y(),ca===null)throw Error(n(349));(vc&30)!==0||v6(H,y,M)}X.memoizedState=M;var te={value:M,getSnapshot:y};return X.queue=te,C6(g6.bind(null,H,te,v),[v]),H.flags|=2048,uv(9,m6.bind(null,H,te,M,y),void 0,null),M},useId:function(){var v=Xi(),y=ca.identifierPrefix;if(Ir){var M=Cl,H=yl;M=(H&~(1<<32-yn(H)-1)).toString(32)+M,y=":"+y+"R"+M,M=sv++,0<\/script>",v=v.removeChild(v.firstChild)):typeof H.is=="string"?v=be.createElement(M,{is:H.is}):(v=be.createElement(M),M==="select"&&(be=v,H.multiple?be.multiple=!0:H.size&&(be.size=H.size))):v=be.createElementNS(v,M),v[qi]=y,v[tv]=H,D6(v,y,!1,!1),y.stateNode=v;e:{switch(be=we(M,H),M){case"dialog":Sr("cancel",v),Sr("close",v),X=H;break;case"iframe":case"object":case"embed":Sr("load",v),X=H;break;case"video":case"audio":for(X=0;XGu&&(y.flags|=128,H=!0,dv(te,!1),y.lanes=4194304)}else{if(!H)if(v=$p(be),v!==null){if(y.flags|=128,H=!0,M=v.updateQueue,M!==null&&(y.updateQueue=M,y.flags|=4),dv(te,!0),te.tail===null&&te.tailMode==="hidden"&&!be.alternate&&!Or)return Ma(y),null}else 2*qe()-te.renderingStartTime>Gu&&M!==1073741824&&(y.flags|=128,H=!0,dv(te,!1),y.lanes=4194304);te.isBackwards?(be.sibling=y.child,y.child=be):(M=te.last,M!==null?M.sibling=be:y.child=be,te.last=be)}return te.tail!==null?(y=te.tail,te.rendering=y,te.tail=y.sibling,te.renderingStartTime=qe(),y.sibling=null,M=Nr.current,pr(Nr,H?M&1|2:M&1),y):(Ma(y),null);case 22:case 23:return $S(),H=y.memoizedState!==null,v!==null&&v.memoizedState!==null!==H&&(y.flags|=8192),H&&(y.mode&1)!==0?(yo&1073741824)!==0&&(Ma(y),y.subtreeFlags&6&&(y.flags|=8192)):Ma(y),null;case 24:return null;case 25:return null}throw Error(n(156,y.tag))}function wQ(v,y){switch(_C(y),y.tag){case 1:return Qa(y.type)&&vp(),v=y.flags,v&65536?(y.flags=v&-65537|128,y):null;case 3:return Wu(),xr(Xa),xr(Ia),qC(),v=y.flags,(v&65536)!==0&&(v&128)===0?(y.flags=v&-65537|128,y):null;case 5:return WC(y),null;case 13:if(xr(Nr),v=y.memoizedState,v!==null&&v.dehydrated!==null){if(y.alternate===null)throw Error(n(340));Bu()}return v=y.flags,v&65536?(y.flags=v&-65537|128,y):null;case 19:return xr(Nr),null;case 4:return Wu(),null;case 10:return LC(y.type._context),null;case 22:case 23:return $S(),null;case 24:return null;default:return null}}var _p=!1,Ta=!1,$Q=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function qu(v,y){var M=v.ref;if(M!==null)if(typeof M=="function")try{M(null)}catch(H){kr(v,y,H)}else M.current=null}function fS(v,y,M){try{M()}catch(H){kr(v,y,H)}}var L6=!1;function EQ(v,y){if($C=Zg,v=hM(),pC(v)){if("selectionStart"in v)var M={start:v.selectionStart,end:v.selectionEnd};else e:{M=(M=v.ownerDocument)&&M.defaultView||window;var H=M.getSelection&&M.getSelection();if(H&&H.rangeCount!==0){M=H.anchorNode;var X=H.anchorOffset,te=H.focusNode;H=H.focusOffset;try{M.nodeType,te.nodeType}catch{M=null;break e}var be=0,Ie=-1,Ae=-1,Je=0,Et=0,It=v,$t=null;t:for(;;){for(var Yt;It!==M||X!==0&&It.nodeType!==3||(Ie=be+X),It!==te||H!==0&&It.nodeType!==3||(Ae=be+H),It.nodeType===3&&(be+=It.nodeValue.length),(Yt=It.firstChild)!==null;)$t=It,It=Yt;for(;;){if(It===v)break t;if($t===M&&++Je===X&&(Ie=be),$t===te&&++Et===H&&(Ae=be),(Yt=It.nextSibling)!==null)break;It=$t,$t=It.parentNode}It=Yt}M=Ie===-1||Ae===-1?null:{start:Ie,end:Ae}}else M=null}M=M||{start:0,end:0}}else M=null;for(EC={focusedElem:v,selectionRange:M},Zg=!1,Jt=y;Jt!==null;)if(y=Jt,v=y.child,(y.subtreeFlags&1028)!==0&&v!==null)v.return=y,Jt=v;else for(;Jt!==null;){y=Jt;try{var en=y.alternate;if((y.flags&1024)!==0)switch(y.tag){case 0:case 11:case 15:break;case 1:if(en!==null){var rn=en.memoizedProps,Hr=en.memoizedState,Ge=y.stateNode,Ve=Ge.getSnapshotBeforeUpdate(y.elementType===y.type?rn:gi(y.type,rn),Hr);Ge.__reactInternalSnapshotBeforeUpdate=Ve}break;case 3:var Xe=y.stateNode.containerInfo;Xe.nodeType===1?Xe.textContent="":Xe.nodeType===9&&Xe.documentElement&&Xe.removeChild(Xe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Nt){kr(y,y.return,Nt)}if(v=y.sibling,v!==null){v.return=y.return,Jt=v;break}Jt=y.return}return en=L6,L6=!1,en}function fv(v,y,M){var H=y.updateQueue;if(H=H!==null?H.lastEffect:null,H!==null){var X=H=H.next;do{if((X.tag&v)===v){var te=X.destroy;X.destroy=void 0,te!==void 0&&fS(y,M,te)}X=X.next}while(X!==H)}}function jp(v,y){if(y=y.updateQueue,y=y!==null?y.lastEffect:null,y!==null){var M=y=y.next;do{if((M.tag&v)===v){var H=M.create;M.destroy=H()}M=M.next}while(M!==y)}}function vS(v){var y=v.ref;if(y!==null){var M=v.stateNode;switch(v.tag){case 5:v=M;break;default:v=M}typeof y=="function"?y(v):y.current=v}}function B6(v){var y=v.alternate;y!==null&&(v.alternate=null,B6(y)),v.child=null,v.deletions=null,v.sibling=null,v.tag===5&&(y=v.stateNode,y!==null&&(delete y[qi],delete y[tv],delete y[RC],delete y[lQ],delete y[sQ])),v.stateNode=null,v.return=null,v.dependencies=null,v.memoizedProps=null,v.memoizedState=null,v.pendingProps=null,v.stateNode=null,v.updateQueue=null}function z6(v){return v.tag===5||v.tag===3||v.tag===4}function H6(v){e:for(;;){for(;v.sibling===null;){if(v.return===null||z6(v.return))return null;v=v.return}for(v.sibling.return=v.return,v=v.sibling;v.tag!==5&&v.tag!==6&&v.tag!==18;){if(v.flags&2||v.child===null||v.tag===4)continue e;v.child.return=v,v=v.child}if(!(v.flags&2))return v.stateNode}}function mS(v,y,M){var H=v.tag;if(H===5||H===6)v=v.stateNode,y?M.nodeType===8?M.parentNode.insertBefore(v,y):M.insertBefore(v,y):(M.nodeType===8?(y=M.parentNode,y.insertBefore(v,M)):(y=M,y.appendChild(v)),M=M._reactRootContainer,M!=null||y.onclick!==null||(y.onclick=dp));else if(H!==4&&(v=v.child,v!==null))for(mS(v,y,M),v=v.sibling;v!==null;)mS(v,y,M),v=v.sibling}function gS(v,y,M){var H=v.tag;if(H===5||H===6)v=v.stateNode,y?M.insertBefore(v,y):M.appendChild(v);else if(H!==4&&(v=v.child,v!==null))for(gS(v,y,M),v=v.sibling;v!==null;)gS(v,y,M),v=v.sibling}var ha=null,pi=!1;function cs(v,y,M){for(M=M.child;M!==null;)V6(v,y,M),M=M.sibling}function V6(v,y,M){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(Vt,M)}catch{}switch(M.tag){case 5:Ta||qu(M,y);case 6:var H=ha,X=pi;ha=null,cs(v,y,M),ha=H,pi=X,ha!==null&&(pi?(v=ha,M=M.stateNode,v.nodeType===8?v.parentNode.removeChild(M):v.removeChild(M)):ha.removeChild(M.stateNode));break;case 18:ha!==null&&(pi?(v=ha,M=M.stateNode,v.nodeType===8?IC(v.parentNode,M):v.nodeType===1&&IC(v,M),es(v)):IC(ha,M.stateNode));break;case 4:H=ha,X=pi,ha=M.stateNode.containerInfo,pi=!0,cs(v,y,M),ha=H,pi=X;break;case 0:case 11:case 14:case 15:if(!Ta&&(H=M.updateQueue,H!==null&&(H=H.lastEffect,H!==null))){X=H=H.next;do{var te=X,be=te.destroy;te=te.tag,be!==void 0&&((te&2)!==0||(te&4)!==0)&&fS(M,y,be),X=X.next}while(X!==H)}cs(v,y,M);break;case 1:if(!Ta&&(qu(M,y),H=M.stateNode,typeof H.componentWillUnmount=="function"))try{H.props=M.memoizedProps,H.state=M.memoizedState,H.componentWillUnmount()}catch(Ie){kr(M,y,Ie)}cs(v,y,M);break;case 21:cs(v,y,M);break;case 22:M.mode&1?(Ta=(H=Ta)||M.memoizedState!==null,cs(v,y,M),Ta=H):cs(v,y,M);break;default:cs(v,y,M)}}function W6(v){var y=v.updateQueue;if(y!==null){v.updateQueue=null;var M=v.stateNode;M===null&&(M=v.stateNode=new $Q),y.forEach(function(H){var X=jQ.bind(null,v,H);M.has(H)||(M.add(H),H.then(X,X))})}}function hi(v,y){var M=y.deletions;if(M!==null)for(var H=0;HX&&(X=be),H&=~te}if(H=X,H=qe()-H,H=(120>H?120:480>H?480:1080>H?1080:1920>H?1920:3e3>H?3e3:4320>H?4320:1960*OQ(H/1960))-H,10v?16:v,ds===null)var H=!1;else{if(v=ds,ds=null,Lp=0,(qn&6)!==0)throw Error(n(331));var X=qn;for(qn|=4,Jt=v.current;Jt!==null;){var te=Jt,be=te.child;if((Jt.flags&16)!==0){var Ie=te.deletions;if(Ie!==null){for(var Ae=0;Aeqe()-bS?hc(v,0):hS|=M),eo(v,y)}function rT(v,y){y===0&&((v.mode&1)===0?y=1:(y=Er,Er<<=1,(Er&130023424)===0&&(Er=4194304)));var M=Ha();v=Sl(v,y),v!==null&&(En(v,y,M),eo(v,M))}function _Q(v){var y=v.memoizedState,M=0;y!==null&&(M=y.retryLane),rT(v,M)}function jQ(v,y){var M=0;switch(v.tag){case 13:var H=v.stateNode,X=v.memoizedState;X!==null&&(M=X.retryLane);break;case 19:H=v.stateNode;break;default:throw Error(n(314))}H!==null&&H.delete(y),rT(v,M)}var aT;aT=function(v,y,M){if(v!==null)if(v.memoizedProps!==y.pendingProps||Xa.current)Ja=!0;else{if((v.lanes&M)===0&&(y.flags&128)===0)return Ja=!1,SQ(v,y,M);Ja=(v.flags&131072)!==0}else Ja=!1,Or&&(y.flags&1048576)!==0&&kM(y,hp,y.index);switch(y.lanes=0,y.tag){case 2:var H=y.type;Np(v,y),v=y.pendingProps;var X=ku(y,Ia.current);Vu(y,M),X=YC(null,y,H,v,X,M);var te=XC();return y.flags|=1,typeof X=="object"&&X!==null&&typeof X.render=="function"&&X.$$typeof===void 0?(y.tag=1,y.memoizedState=null,y.updateQueue=null,Qa(H)?(te=!0,mp(y)):te=!1,y.memoizedState=X.state!==null&&X.state!==void 0?X.state:null,HC(y),X.updater=Mp,y.stateNode=X,X._reactInternals=y,nS(y,H,v,M),y=iS(null,y,H,!0,te,M)):(y.tag=0,Or&&te&&NC(y),za(null,y,X,M),y=y.child),y;case 16:H=y.elementType;e:{switch(Np(v,y),v=y.pendingProps,X=H._init,H=X(H._payload),y.type=H,X=y.tag=DQ(H),v=gi(H,v),X){case 0:y=oS(null,y,H,v,M);break e;case 1:y=M6(null,y,H,v,M);break e;case 11:y=E6(null,y,H,v,M);break e;case 14:y=P6(null,y,H,gi(H.type,v),M);break e}throw Error(n(306,H,""))}return y;case 0:return H=y.type,X=y.pendingProps,X=y.elementType===H?X:gi(H,X),oS(v,y,H,X,M);case 1:return H=y.type,X=y.pendingProps,X=y.elementType===H?X:gi(H,X),M6(v,y,H,X,M);case 3:e:{if(T6(y),v===null)throw Error(n(387));H=y.pendingProps,te=y.memoizedState,X=te.element,qM(v,y),wp(y,H,null,M);var be=y.memoizedState;if(H=be.element,te.isDehydrated)if(te={element:H,isDehydrated:!1,cache:be.cache,pendingSuspenseBoundaries:be.pendingSuspenseBoundaries,transitions:be.transitions},y.updateQueue.baseState=te,y.memoizedState=te,y.flags&256){X=Ku(Error(n(423)),y),y=N6(v,y,H,M,X);break e}else if(H!==X){X=Ku(Error(n(424)),y),y=N6(v,y,H,M,X);break e}else for(bo=rs(y.stateNode.containerInfo.firstChild),ho=y,Or=!0,mi=null,M=WM(y,null,H,M),y.child=M;M;)M.flags=M.flags&-3|4096,M=M.sibling;else{if(Bu(),H===X){y=wl(v,y,M);break e}za(v,y,H,M)}y=y.child}return y;case 5:return YM(y),v===null&&FC(y),H=y.type,X=y.pendingProps,te=v!==null?v.memoizedProps:null,be=X.children,PC(H,X)?be=null:te!==null&&PC(H,te)&&(y.flags|=32),R6(v,y),za(v,y,be,M),y.child;case 6:return v===null&&FC(y),null;case 13:return _6(v,y,M);case 4:return VC(y,y.stateNode.containerInfo),H=y.pendingProps,v===null?y.child=zu(y,null,H,M):za(v,y,H,M),y.child;case 11:return H=y.type,X=y.pendingProps,X=y.elementType===H?X:gi(H,X),E6(v,y,H,X,M);case 7:return za(v,y,y.pendingProps,M),y.child;case 8:return za(v,y,y.pendingProps.children,M),y.child;case 12:return za(v,y,y.pendingProps.children,M),y.child;case 10:e:{if(H=y.type._context,X=y.pendingProps,te=y.memoizedProps,be=X.value,pr(Cp,H._currentValue),H._currentValue=be,te!==null)if(vi(te.value,be)){if(te.children===X.children&&!Xa.current){y=wl(v,y,M);break e}}else for(te=y.child,te!==null&&(te.return=y);te!==null;){var Ie=te.dependencies;if(Ie!==null){be=te.child;for(var Ae=Ie.firstContext;Ae!==null;){if(Ae.context===H){if(te.tag===1){Ae=xl(-1,M&-M),Ae.tag=2;var Je=te.updateQueue;if(Je!==null){Je=Je.shared;var Et=Je.pending;Et===null?Ae.next=Ae:(Ae.next=Et.next,Et.next=Ae),Je.pending=Ae}}te.lanes|=M,Ae=te.alternate,Ae!==null&&(Ae.lanes|=M),BC(te.return,M,y),Ie.lanes|=M;break}Ae=Ae.next}}else if(te.tag===10)be=te.type===y.type?null:te.child;else if(te.tag===18){if(be=te.return,be===null)throw Error(n(341));be.lanes|=M,Ie=be.alternate,Ie!==null&&(Ie.lanes|=M),BC(be,M,y),be=te.sibling}else be=te.child;if(be!==null)be.return=te;else for(be=te;be!==null;){if(be===y){be=null;break}if(te=be.sibling,te!==null){te.return=be.return,be=te;break}be=be.return}te=be}za(v,y,X.children,M),y=y.child}return y;case 9:return X=y.type,H=y.pendingProps.children,Vu(y,M),X=zo(X),H=H(X),y.flags|=1,za(v,y,H,M),y.child;case 14:return H=y.type,X=gi(H,y.pendingProps),X=gi(H.type,X),P6(v,y,H,X,M);case 15:return O6(v,y,y.type,y.pendingProps,M);case 17:return H=y.type,X=y.pendingProps,X=y.elementType===H?X:gi(H,X),Np(v,y),y.tag=1,Qa(H)?(v=!0,mp(y)):v=!1,Vu(y,M),b6(y,H,X),nS(y,H,X,M),iS(null,y,H,!0,v,M);case 19:return F6(v,y,M);case 22:return I6(v,y,M)}throw Error(n(156,y.tag))};function oT(v,y){return Lt(v,y)}function FQ(v,y,M,H){this.tag=v,this.key=M,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=y,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=H,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wo(v,y,M,H){return new FQ(v,y,M,H)}function PS(v){return v=v.prototype,!(!v||!v.isReactComponent)}function DQ(v){if(typeof v=="function")return PS(v)?1:0;if(v!=null){if(v=v.$$typeof,v===A)return 11;if(v===D)return 14}return 2}function ms(v,y){var M=v.alternate;return M===null?(M=Wo(v.tag,y,v.key,v.mode),M.elementType=v.elementType,M.type=v.type,M.stateNode=v.stateNode,M.alternate=v,v.alternate=M):(M.pendingProps=y,M.type=v.type,M.flags=0,M.subtreeFlags=0,M.deletions=null),M.flags=v.flags&14680064,M.childLanes=v.childLanes,M.lanes=v.lanes,M.child=v.child,M.memoizedProps=v.memoizedProps,M.memoizedState=v.memoizedState,M.updateQueue=v.updateQueue,y=v.dependencies,M.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext},M.sibling=v.sibling,M.index=v.index,M.ref=v.ref,M}function Vp(v,y,M,H,X,te){var be=2;if(H=v,typeof v=="function")PS(v)&&(be=1);else if(typeof v=="string")be=5;else e:switch(v){case R:return yc(M.children,X,te,y);case I:be=8,X|=8;break;case O:return v=Wo(12,M,y,X|2),v.elementType=O,v.lanes=te,v;case k:return v=Wo(13,M,y,X),v.elementType=k,v.lanes=te,v;case j:return v=Wo(19,M,y,X),v.elementType=j,v.lanes=te,v;case L:return Wp(M,X,te,y);default:if(typeof v=="object"&&v!==null)switch(v.$$typeof){case T:be=10;break e;case N:be=9;break e;case A:be=11;break e;case D:be=14;break e;case F:be=16,H=null;break e}throw Error(n(130,v==null?v:typeof v,""))}return y=Wo(be,M,y,X),y.elementType=v,y.type=H,y.lanes=te,y}function yc(v,y,M,H){return v=Wo(7,v,H,y),v.lanes=M,v}function Wp(v,y,M,H){return v=Wo(22,v,H,y),v.elementType=L,v.lanes=M,v.stateNode={isHidden:!1},v}function OS(v,y,M){return v=Wo(6,v,null,y),v.lanes=M,v}function IS(v,y,M){return y=Wo(4,v.children!==null?v.children:[],v.key,y),y.lanes=M,y.stateNode={containerInfo:v.containerInfo,pendingChildren:null,implementation:v.implementation},y}function kQ(v,y,M,H,X){this.tag=y,this.containerInfo=v,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.identifierPrefix=H,this.onRecoverableError=X,this.mutableSourceEagerHydrationData=null}function RS(v,y,M,H,X,te,be,Ie,Ae){return v=new kQ(v,y,M,Ie,Ae),y===1?(y=1,te===!0&&(y|=8)):y=0,te=Wo(3,null,null,y),v.current=te,te.stateNode=v,te.memoizedState={element:H,isDehydrated:M,cache:null,transitions:null,pendingSuspenseBoundaries:null},HC(te),v}function AQ(v,y,M){var H=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),kS.exports=ZQ(),kS.exports}var CT;function eJ(){if(CT)return Zp;CT=1;var e=kB();return Zp.createRoot=e.createRoot,Zp.hydrateRoot=e.hydrateRoot,Zp}var tJ=eJ();const nJ=an(tJ);var BS={exports:{}};/*! +`+te.stack}return{value:v,source:y,stack:X,digest:null}}function fS(v,y,M){return{value:v,source:null,stack:M??null,digest:y??null}}function vS(v,y){try{console.error(y.value)}catch(M){setTimeout(function(){throw M})}}var DQ=typeof WeakMap=="function"?WeakMap:Map;function F6(v,y,M){M=xl(-1,M),M.tag=3,M.payload={element:null};var H=y.value;return M.callback=function(){Ap||(Ap=!0,IS=H),vS(v,y)},M}function D6(v,y,M){M=xl(-1,M),M.tag=3;var H=v.type.getDerivedStateFromError;if(typeof H=="function"){var X=y.value;M.payload=function(){return H(X)},M.callback=function(){vS(v,y)}}var te=v.stateNode;return te!==null&&typeof te.componentDidCatch=="function"&&(M.callback=function(){vS(v,y),typeof H!="function"&&(us===null?us=new Set([this]):us.add(this));var be=y.stack;this.componentDidCatch(y.value,{componentStack:be!==null?be:""})}),M}function k6(v,y,M){var H=v.pingCache;if(H===null){H=v.pingCache=new DQ;var X=new Set;H.set(y,X)}else X=H.get(y),X===void 0&&(X=new Set,H.set(y,X));X.has(M)||(X.add(M),v=XQ.bind(null,v,y,M),y.then(v,v))}function A6(v){do{var y;if((y=v.tag===13)&&(y=v.memoizedState,y=y!==null?y.dehydrated!==null:!0),y)return v;v=v.return}while(v!==null);return null}function L6(v,y,M,H,X){return(v.mode&1)===0?(v===y?v.flags|=65536:(v.flags|=128,M.flags|=131072,M.flags&=-52805,M.tag===1&&(M.alternate===null?M.tag=17:(y=xl(-1,1),y.tag=2,ss(M,y,1))),M.lanes|=1),v):(v.flags|=65536,v.lanes=X,v)}var kQ=w.ReactCurrentOwner,Ja=!1;function Ba(v,y,M,H){y.child=v===null?o6(y,null,M,H):Vu(y,v.child,M,H)}function B6(v,y,M,H,X){M=M.render;var te=y.ref;return Ku(y,X),H=aS(v,y,M,H,te,X),M=oS(),v!==null&&!Ja?(y.updateQueue=v.updateQueue,y.flags&=-2053,v.lanes&=~X,wl(v,y,X)):(Ir&&M&&zC(y),y.flags|=1,Ba(v,y,H,X),y.child)}function z6(v,y,M,H,X){if(v===null){var te=M.type;return typeof te=="function"&&!FS(te)&&te.defaultProps===void 0&&M.compare===null&&M.defaultProps===void 0?(y.tag=15,y.type=te,H6(v,y,te,H,X)):(v=Wp(M.type,null,H,y,y.mode,X),v.ref=y.ref,v.return=y,y.child=v)}if(te=v.child,(v.lanes&X)===0){var be=te.memoizedProps;if(M=M.compare,M=M!==null?M:Xf,M(be,H)&&v.ref===y.ref)return wl(v,y,X)}return y.flags|=1,v=ms(te,H),v.ref=y.ref,v.return=y,y.child=v}function H6(v,y,M,H,X){if(v!==null){var te=v.memoizedProps;if(Xf(te,H)&&v.ref===y.ref)if(Ja=!1,y.pendingProps=H=te,(v.lanes&X)!==0)(v.flags&131072)!==0&&(Ja=!0);else return y.lanes=v.lanes,wl(v,y,X)}return mS(v,y,M,H,X)}function V6(v,y,M){var H=y.pendingProps,X=H.children,te=v!==null?v.memoizedState:null;if(H.mode==="hidden")if((y.mode&1)===0)y.memoizedState={baseLanes:0,cachePool:null,transitions:null},pr(Yu,Co),Co|=M;else{if((M&1073741824)===0)return v=te!==null?te.baseLanes|M:M,y.lanes=y.childLanes=1073741824,y.memoizedState={baseLanes:v,cachePool:null,transitions:null},y.updateQueue=null,pr(Yu,Co),Co|=v,null;y.memoizedState={baseLanes:0,cachePool:null,transitions:null},H=te!==null?te.baseLanes:M,pr(Yu,Co),Co|=H}else te!==null?(H=te.baseLanes|M,y.memoizedState=null):H=M,pr(Yu,Co),Co|=H;return Ba(v,y,X,M),y.child}function W6(v,y){var M=y.ref;(v===null&&M!==null||v!==null&&v.ref!==M)&&(y.flags|=512,y.flags|=2097152)}function mS(v,y,M,H,X){var te=Qa(M)?sc:Oa.current;return te=Lu(y,te),Ku(y,X),M=aS(v,y,M,H,te,X),H=oS(),v!==null&&!Ja?(y.updateQueue=v.updateQueue,y.flags&=-2053,v.lanes&=~X,wl(v,y,X)):(Ir&&H&&zC(y),y.flags|=1,Ba(v,y,M,X),y.child)}function K6(v,y,M,H,X){if(Qa(M)){var te=!0;gp(y)}else te=!1;if(Ku(y,X),y.stateNode===null)_p(v,y),_6(y,M,H),dS(y,M,H,X),H=!0;else if(v===null){var be=y.stateNode,Ie=y.memoizedProps;be.props=Ie;var Ae=be.context,Je=M.contextType;typeof Je=="object"&&Je!==null?Je=Ho(Je):(Je=Qa(M)?sc:Oa.current,Je=Lu(y,Je));var Et=M.getDerivedStateFromProps,It=typeof Et=="function"||typeof be.getSnapshotBeforeUpdate=="function";It||typeof be.UNSAFE_componentWillReceiveProps!="function"&&typeof be.componentWillReceiveProps!="function"||(Ie!==H||Ae!==Je)&&j6(y,be,H,Je),ls=!1;var $t=y.memoizedState;be.state=$t,$p(y,H,be,X),Ae=y.memoizedState,Ie!==H||$t!==Ae||Xa.current||ls?(typeof Et=="function"&&(uS(y,M,Et,H),Ae=y.memoizedState),(Ie=ls||N6(y,M,Ie,H,$t,Ae,Je))?(It||typeof be.UNSAFE_componentWillMount!="function"&&typeof be.componentWillMount!="function"||(typeof be.componentWillMount=="function"&&be.componentWillMount(),typeof be.UNSAFE_componentWillMount=="function"&&be.UNSAFE_componentWillMount()),typeof be.componentDidMount=="function"&&(y.flags|=4194308)):(typeof be.componentDidMount=="function"&&(y.flags|=4194308),y.memoizedProps=H,y.memoizedState=Ae),be.props=H,be.state=Ae,be.context=Je,H=Ie):(typeof be.componentDidMount=="function"&&(y.flags|=4194308),H=!1)}else{be=y.stateNode,l6(v,y),Ie=y.memoizedProps,Je=y.type===y.elementType?Ie:bi(y.type,Ie),be.props=Je,It=y.pendingProps,$t=be.context,Ae=M.contextType,typeof Ae=="object"&&Ae!==null?Ae=Ho(Ae):(Ae=Qa(M)?sc:Oa.current,Ae=Lu(y,Ae));var Yt=M.getDerivedStateFromProps;(Et=typeof Yt=="function"||typeof be.getSnapshotBeforeUpdate=="function")||typeof be.UNSAFE_componentWillReceiveProps!="function"&&typeof be.componentWillReceiveProps!="function"||(Ie!==It||$t!==Ae)&&j6(y,be,H,Ae),ls=!1,$t=y.memoizedState,be.state=$t,$p(y,H,be,X);var tn=y.memoizedState;Ie!==It||$t!==tn||Xa.current||ls?(typeof Yt=="function"&&(uS(y,M,Yt,H),tn=y.memoizedState),(Je=ls||N6(y,M,Je,H,$t,tn,Ae)||!1)?(Et||typeof be.UNSAFE_componentWillUpdate!="function"&&typeof be.componentWillUpdate!="function"||(typeof be.componentWillUpdate=="function"&&be.componentWillUpdate(H,tn,Ae),typeof be.UNSAFE_componentWillUpdate=="function"&&be.UNSAFE_componentWillUpdate(H,tn,Ae)),typeof be.componentDidUpdate=="function"&&(y.flags|=4),typeof be.getSnapshotBeforeUpdate=="function"&&(y.flags|=1024)):(typeof be.componentDidUpdate!="function"||Ie===v.memoizedProps&&$t===v.memoizedState||(y.flags|=4),typeof be.getSnapshotBeforeUpdate!="function"||Ie===v.memoizedProps&&$t===v.memoizedState||(y.flags|=1024),y.memoizedProps=H,y.memoizedState=tn),be.props=H,be.state=tn,be.context=Ae,H=Je):(typeof be.componentDidUpdate!="function"||Ie===v.memoizedProps&&$t===v.memoizedState||(y.flags|=4),typeof be.getSnapshotBeforeUpdate!="function"||Ie===v.memoizedProps&&$t===v.memoizedState||(y.flags|=1024),H=!1)}return gS(v,y,M,H,te,X)}function gS(v,y,M,H,X,te){W6(v,y);var be=(y.flags&128)!==0;if(!H&&!be)return X&&XM(y,M,!1),wl(v,y,te);H=y.stateNode,kQ.current=y;var Ie=be&&typeof M.getDerivedStateFromError!="function"?null:H.render();return y.flags|=1,v!==null&&be?(y.child=Vu(y,v.child,null,te),y.child=Vu(y,null,Ie,te)):Ba(v,y,Ie,te),y.memoizedState=H.state,X&&XM(y,M,!0),y.child}function q6(v){var y=v.stateNode;y.pendingContext?GM(v,y.pendingContext,y.pendingContext!==y.context):y.context&&GM(v,y.context,!1),JC(v,y.containerInfo)}function U6(v,y,M,H,X){return Hu(),KC(X),y.flags|=256,Ba(v,y,M,H),y.child}var pS={dehydrated:null,treeContext:null,retryLane:0};function hS(v){return{baseLanes:v,cachePool:null,transitions:null}}function G6(v,y,M){var H=y.pendingProps,X=_r.current,te=!1,be=(y.flags&128)!==0,Ie;if((Ie=be)||(Ie=v!==null&&v.memoizedState===null?!1:(X&2)!==0),Ie?(te=!0,y.flags&=-129):(v===null||v.memoizedState!==null)&&(X|=1),pr(_r,X&1),v===null)return WC(y),v=y.memoizedState,v!==null&&(v=v.dehydrated,v!==null)?((y.mode&1)===0?y.lanes=1:v.data==="$!"?y.lanes=8:y.lanes=1073741824,null):(be=H.children,v=H.fallback,te?(H=y.mode,te=y.child,be={mode:"hidden",children:be},(H&1)===0&&te!==null?(te.childLanes=0,te.pendingProps=be):te=Kp(be,H,0,null),v=bc(v,H,M,null),te.return=y,v.return=y,te.sibling=v,y.child=te,y.child.memoizedState=hS(M),y.memoizedState=pS,v):bS(y,be));if(X=v.memoizedState,X!==null&&(Ie=X.dehydrated,Ie!==null))return AQ(v,y,be,H,Ie,X,M);if(te){te=H.fallback,be=y.mode,X=v.child,Ie=X.sibling;var Ae={mode:"hidden",children:H.children};return(be&1)===0&&y.child!==X?(H=y.child,H.childLanes=0,H.pendingProps=Ae,y.deletions=null):(H=ms(X,Ae),H.subtreeFlags=X.subtreeFlags&14680064),Ie!==null?te=ms(Ie,te):(te=bc(te,be,M,null),te.flags|=2),te.return=y,H.return=y,H.sibling=te,y.child=H,H=te,te=y.child,be=v.child.memoizedState,be=be===null?hS(M):{baseLanes:be.baseLanes|M,cachePool:null,transitions:be.transitions},te.memoizedState=be,te.childLanes=v.childLanes&~M,y.memoizedState=pS,H}return te=v.child,v=te.sibling,H=ms(te,{mode:"visible",children:H.children}),(y.mode&1)===0&&(H.lanes=M),H.return=y,H.sibling=null,v!==null&&(M=y.deletions,M===null?(y.deletions=[v],y.flags|=16):M.push(v)),y.child=H,y.memoizedState=null,H}function bS(v,y){return y=Kp({mode:"visible",children:y},v.mode,0,null),y.return=v,v.child=y}function Np(v,y,M,H){return H!==null&&KC(H),Vu(y,v.child,null,M),v=bS(y,y.pendingProps.children),v.flags|=2,y.memoizedState=null,v}function AQ(v,y,M,H,X,te,be){if(M)return y.flags&256?(y.flags&=-257,H=fS(Error(n(422))),Np(v,y,be,H)):y.memoizedState!==null?(y.child=v.child,y.flags|=128,null):(te=H.fallback,X=y.mode,H=Kp({mode:"visible",children:H.children},X,0,null),te=bc(te,X,be,null),te.flags|=2,H.return=y,te.return=y,H.sibling=te,y.child=H,(y.mode&1)!==0&&Vu(y,v.child,null,be),y.child.memoizedState=hS(be),y.memoizedState=pS,te);if((y.mode&1)===0)return Np(v,y,be,null);if(X.data==="$!"){if(H=X.nextSibling&&X.nextSibling.dataset,H)var Ie=H.dgst;return H=Ie,te=Error(n(419)),H=fS(te,H,void 0),Np(v,y,be,H)}if(Ie=(be&v.childLanes)!==0,Ja||Ie){if(H=ca,H!==null){switch(be&-be){case 4:X=2;break;case 16:X=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:X=32;break;case 536870912:X=268435456;break;default:X=0}X=(X&(H.suspendedLanes|be))!==0?0:X,X!==0&&X!==te.retryLane&&(te.retryLane=X,Sl(v,X),Si(H,v,X,-1))}return jS(),H=fS(Error(n(421))),Np(v,y,be,H)}return X.data==="$?"?(y.flags|=128,y.child=v.child,y=QQ.bind(null,v),X._reactRetry=y,null):(v=te.treeContext,yo=rs(X.nextSibling),bo=y,Ir=!0,hi=null,v!==null&&(Bo[zo++]=yl,Bo[zo++]=Cl,Bo[zo++]=cc,yl=v.id,Cl=v.overflow,cc=y),y=bS(y,H.children),y.flags|=4096,y)}function Y6(v,y,M){v.lanes|=y;var H=v.alternate;H!==null&&(H.lanes|=y),YC(v.return,y,M)}function yS(v,y,M,H,X){var te=v.memoizedState;te===null?v.memoizedState={isBackwards:y,rendering:null,renderingStartTime:0,last:H,tail:M,tailMode:X}:(te.isBackwards=y,te.rendering=null,te.renderingStartTime=0,te.last=H,te.tail=M,te.tailMode=X)}function X6(v,y,M){var H=y.pendingProps,X=H.revealOrder,te=H.tail;if(Ba(v,y,H.children,M),H=_r.current,(H&2)!==0)H=H&1|2,y.flags|=128;else{if(v!==null&&(v.flags&128)!==0)e:for(v=y.child;v!==null;){if(v.tag===13)v.memoizedState!==null&&Y6(v,M,y);else if(v.tag===19)Y6(v,M,y);else if(v.child!==null){v.child.return=v,v=v.child;continue}if(v===y)break e;for(;v.sibling===null;){if(v.return===null||v.return===y)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}H&=1}if(pr(_r,H),(y.mode&1)===0)y.memoizedState=null;else switch(X){case"forwards":for(M=y.child,X=null;M!==null;)v=M.alternate,v!==null&&Ep(v)===null&&(X=M),M=M.sibling;M=X,M===null?(X=y.child,y.child=null):(X=M.sibling,M.sibling=null),yS(y,!1,X,M,te);break;case"backwards":for(M=null,X=y.child,y.child=null;X!==null;){if(v=X.alternate,v!==null&&Ep(v)===null){y.child=X;break}v=X.sibling,X.sibling=M,M=X,X=v}yS(y,!0,M,null,te);break;case"together":yS(y,!1,null,null,void 0);break;default:y.memoizedState=null}return y.child}function _p(v,y){(y.mode&1)===0&&v!==null&&(v.alternate=null,y.alternate=null,y.flags|=2)}function wl(v,y,M){if(v!==null&&(y.dependencies=v.dependencies),mc|=y.lanes,(M&y.childLanes)===0)return null;if(v!==null&&y.child!==v.child)throw Error(n(153));if(y.child!==null){for(v=y.child,M=ms(v,v.pendingProps),y.child=M,M.return=y;v.sibling!==null;)v=v.sibling,M=M.sibling=ms(v,v.pendingProps),M.return=y;M.sibling=null}return y.child}function LQ(v,y,M){switch(y.tag){case 3:q6(y),Hu();break;case 5:u6(y);break;case 1:Qa(y.type)&&gp(y);break;case 4:JC(y,y.stateNode.containerInfo);break;case 10:var H=y.type._context,X=y.memoizedProps.value;pr(Sp,H._currentValue),H._currentValue=X;break;case 13:if(H=y.memoizedState,H!==null)return H.dehydrated!==null?(pr(_r,_r.current&1),y.flags|=128,null):(M&y.child.childLanes)!==0?G6(v,y,M):(pr(_r,_r.current&1),v=wl(v,y,M),v!==null?v.sibling:null);pr(_r,_r.current&1);break;case 19:if(H=(M&y.childLanes)!==0,(v.flags&128)!==0){if(H)return X6(v,y,M);y.flags|=128}if(X=y.memoizedState,X!==null&&(X.rendering=null,X.tail=null,X.lastEffect=null),pr(_r,_r.current),H)break;return null;case 22:case 23:return y.lanes=0,V6(v,y,M)}return wl(v,y,M)}var Q6,CS,J6,Z6;Q6=function(v,y){for(var M=y.child;M!==null;){if(M.tag===5||M.tag===6)v.appendChild(M.stateNode);else if(M.tag!==4&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===y)break;for(;M.sibling===null;){if(M.return===null||M.return===y)return;M=M.return}M.sibling.return=M.return,M=M.sibling}},CS=function(){},J6=function(v,y,M,H){var X=v.memoizedProps;if(X!==H){v=y.stateNode,fc(Yi.current);var te=null;switch(M){case"input":X=ue(v,X),H=ue(v,H),te=[];break;case"select":X=W({},X,{value:void 0}),H=W({},H,{value:void 0}),te=[];break;case"textarea":X=Se(v,X),H=Se(v,H),te=[];break;default:typeof X.onClick!="function"&&typeof H.onClick=="function"&&(v.onclick=fp)}Oe(M,H);var be;M=null;for(Je in X)if(!H.hasOwnProperty(Je)&&X.hasOwnProperty(Je)&&X[Je]!=null)if(Je==="style"){var Ie=X[Je];for(be in Ie)Ie.hasOwnProperty(be)&&(M||(M={}),M[be]="")}else Je!=="dangerouslySetInnerHTML"&&Je!=="children"&&Je!=="suppressContentEditableWarning"&&Je!=="suppressHydrationWarning"&&Je!=="autoFocus"&&(a.hasOwnProperty(Je)?te||(te=[]):(te=te||[]).push(Je,null));for(Je in H){var Ae=H[Je];if(Ie=X!=null?X[Je]:void 0,H.hasOwnProperty(Je)&&Ae!==Ie&&(Ae!=null||Ie!=null))if(Je==="style")if(Ie){for(be in Ie)!Ie.hasOwnProperty(be)||Ae&&Ae.hasOwnProperty(be)||(M||(M={}),M[be]="");for(be in Ae)Ae.hasOwnProperty(be)&&Ie[be]!==Ae[be]&&(M||(M={}),M[be]=Ae[be])}else M||(te||(te=[]),te.push(Je,M)),M=Ae;else Je==="dangerouslySetInnerHTML"?(Ae=Ae?Ae.__html:void 0,Ie=Ie?Ie.__html:void 0,Ae!=null&&Ie!==Ae&&(te=te||[]).push(Je,Ae)):Je==="children"?typeof Ae!="string"&&typeof Ae!="number"||(te=te||[]).push(Je,""+Ae):Je!=="suppressContentEditableWarning"&&Je!=="suppressHydrationWarning"&&(a.hasOwnProperty(Je)?(Ae!=null&&Je==="onScroll"&&Sr("scroll",v),te||Ie===Ae||(te=[])):(te=te||[]).push(Je,Ae))}M&&(te=te||[]).push("style",M);var Je=te;(y.updateQueue=Je)&&(y.flags|=4)}},Z6=function(v,y,M,H){M!==H&&(y.flags|=4)};function dv(v,y){if(!Ir)switch(v.tailMode){case"hidden":y=v.tail;for(var M=null;y!==null;)y.alternate!==null&&(M=y),y=y.sibling;M===null?v.tail=null:M.sibling=null;break;case"collapsed":M=v.tail;for(var H=null;M!==null;)M.alternate!==null&&(H=M),M=M.sibling;H===null?y||v.tail===null?v.tail=null:v.tail.sibling=null:H.sibling=null}}function Ra(v){var y=v.alternate!==null&&v.alternate.child===v.child,M=0,H=0;if(y)for(var X=v.child;X!==null;)M|=X.lanes|X.childLanes,H|=X.subtreeFlags&14680064,H|=X.flags&14680064,X.return=v,X=X.sibling;else for(X=v.child;X!==null;)M|=X.lanes|X.childLanes,H|=X.subtreeFlags,H|=X.flags,X.return=v,X=X.sibling;return v.subtreeFlags|=H,v.childLanes=M,y}function BQ(v,y,M){var H=y.pendingProps;switch(HC(y),y.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ra(y),null;case 1:return Qa(y.type)&&mp(),Ra(y),null;case 3:return H=y.stateNode,qu(),xr(Xa),xr(Oa),tS(),H.pendingContext&&(H.context=H.pendingContext,H.pendingContext=null),(v===null||v.child===null)&&(yp(y)?y.flags|=4:v===null||v.memoizedState.isDehydrated&&(y.flags&256)===0||(y.flags|=1024,hi!==null&&(TS(hi),hi=null))),CS(v,y),Ra(y),null;case 5:ZC(y);var X=fc(iv.current);if(M=y.type,v!==null&&y.stateNode!=null)J6(v,y,M,H,X),v.ref!==y.ref&&(y.flags|=512,y.flags|=2097152);else{if(!H){if(y.stateNode===null)throw Error(n(166));return Ra(y),null}if(v=fc(Yi.current),yp(y)){H=y.stateNode,M=y.type;var te=y.memoizedProps;switch(H[Gi]=y,H[tv]=te,v=(y.mode&1)!==0,M){case"dialog":Sr("cancel",H),Sr("close",H);break;case"iframe":case"object":case"embed":Sr("load",H);break;case"video":case"audio":for(X=0;X<\/script>",v=v.removeChild(v.firstChild)):typeof H.is=="string"?v=be.createElement(M,{is:H.is}):(v=be.createElement(M),M==="select"&&(be=v,H.multiple?be.multiple=!0:H.size&&(be.size=H.size))):v=be.createElementNS(v,M),v[Gi]=y,v[tv]=H,Q6(v,y,!1,!1),y.stateNode=v;e:{switch(be=we(M,H),M){case"dialog":Sr("cancel",v),Sr("close",v),X=H;break;case"iframe":case"object":case"embed":Sr("load",v),X=H;break;case"video":case"audio":for(X=0;XXu&&(y.flags|=128,H=!0,dv(te,!1),y.lanes=4194304)}else{if(!H)if(v=Ep(be),v!==null){if(y.flags|=128,H=!0,M=v.updateQueue,M!==null&&(y.updateQueue=M,y.flags|=4),dv(te,!0),te.tail===null&&te.tailMode==="hidden"&&!be.alternate&&!Ir)return Ra(y),null}else 2*qe()-te.renderingStartTime>Xu&&M!==1073741824&&(y.flags|=128,H=!0,dv(te,!1),y.lanes=4194304);te.isBackwards?(be.sibling=y.child,y.child=be):(M=te.last,M!==null?M.sibling=be:y.child=be,te.last=be)}return te.tail!==null?(y=te.tail,te.rendering=y,te.tail=y.sibling,te.renderingStartTime=qe(),y.sibling=null,M=_r.current,pr(_r,H?M&1|2:M&1),y):(Ra(y),null);case 22:case 23:return _S(),H=y.memoizedState!==null,v!==null&&v.memoizedState!==null!==H&&(y.flags|=8192),H&&(y.mode&1)!==0?(Co&1073741824)!==0&&(Ra(y),y.subtreeFlags&6&&(y.flags|=8192)):Ra(y),null;case 24:return null;case 25:return null}throw Error(n(156,y.tag))}function zQ(v,y){switch(HC(y),y.tag){case 1:return Qa(y.type)&&mp(),v=y.flags,v&65536?(y.flags=v&-65537|128,y):null;case 3:return qu(),xr(Xa),xr(Oa),tS(),v=y.flags,(v&65536)!==0&&(v&128)===0?(y.flags=v&-65537|128,y):null;case 5:return ZC(y),null;case 13:if(xr(_r),v=y.memoizedState,v!==null&&v.dehydrated!==null){if(y.alternate===null)throw Error(n(340));Hu()}return v=y.flags,v&65536?(y.flags=v&-65537|128,y):null;case 19:return xr(_r),null;case 4:return qu(),null;case 10:return GC(y.type._context),null;case 22:case 23:return _S(),null;case 24:return null;default:return null}}var jp=!1,Ma=!1,HQ=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function Gu(v,y){var M=v.ref;if(M!==null)if(typeof M=="function")try{M(null)}catch(H){Ar(v,y,H)}else M.current=null}function SS(v,y,M){try{M()}catch(H){Ar(v,y,H)}}var eT=!1;function VQ(v,y){if(_C=ep,v=NM(),EC(v)){if("selectionStart"in v)var M={start:v.selectionStart,end:v.selectionEnd};else e:{M=(M=v.ownerDocument)&&M.defaultView||window;var H=M.getSelection&&M.getSelection();if(H&&H.rangeCount!==0){M=H.anchorNode;var X=H.anchorOffset,te=H.focusNode;H=H.focusOffset;try{M.nodeType,te.nodeType}catch{M=null;break e}var be=0,Ie=-1,Ae=-1,Je=0,Et=0,It=v,$t=null;t:for(;;){for(var Yt;It!==M||X!==0&&It.nodeType!==3||(Ie=be+X),It!==te||H!==0&&It.nodeType!==3||(Ae=be+H),It.nodeType===3&&(be+=It.nodeValue.length),(Yt=It.firstChild)!==null;)$t=It,It=Yt;for(;;){if(It===v)break t;if($t===M&&++Je===X&&(Ie=be),$t===te&&++Et===H&&(Ae=be),(Yt=It.nextSibling)!==null)break;It=$t,$t=It.parentNode}It=Yt}M=Ie===-1||Ae===-1?null:{start:Ie,end:Ae}}else M=null}M=M||{start:0,end:0}}else M=null;for(jC={focusedElem:v,selectionRange:M},ep=!1,Jt=y;Jt!==null;)if(y=Jt,v=y.child,(y.subtreeFlags&1028)!==0&&v!==null)v.return=y,Jt=v;else for(;Jt!==null;){y=Jt;try{var tn=y.alternate;if((y.flags&1024)!==0)switch(y.tag){case 0:case 11:case 15:break;case 1:if(tn!==null){var on=tn.memoizedProps,Wr=tn.memoizedState,Ge=y.stateNode,Ve=Ge.getSnapshotBeforeUpdate(y.elementType===y.type?on:bi(y.type,on),Wr);Ge.__reactInternalSnapshotBeforeUpdate=Ve}break;case 3:var Xe=y.stateNode.containerInfo;Xe.nodeType===1?Xe.textContent="":Xe.nodeType===9&&Xe.documentElement&&Xe.removeChild(Xe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(_t){Ar(y,y.return,_t)}if(v=y.sibling,v!==null){v.return=y.return,Jt=v;break}Jt=y.return}return tn=eT,eT=!1,tn}function fv(v,y,M){var H=y.updateQueue;if(H=H!==null?H.lastEffect:null,H!==null){var X=H=H.next;do{if((X.tag&v)===v){var te=X.destroy;X.destroy=void 0,te!==void 0&&SS(y,M,te)}X=X.next}while(X!==H)}}function Fp(v,y){if(y=y.updateQueue,y=y!==null?y.lastEffect:null,y!==null){var M=y=y.next;do{if((M.tag&v)===v){var H=M.create;M.destroy=H()}M=M.next}while(M!==y)}}function xS(v){var y=v.ref;if(y!==null){var M=v.stateNode;switch(v.tag){case 5:v=M;break;default:v=M}typeof y=="function"?y(v):y.current=v}}function tT(v){var y=v.alternate;y!==null&&(v.alternate=null,tT(y)),v.child=null,v.deletions=null,v.sibling=null,v.tag===5&&(y=v.stateNode,y!==null&&(delete y[Gi],delete y[tv],delete y[AC],delete y[EQ],delete y[PQ])),v.stateNode=null,v.return=null,v.dependencies=null,v.memoizedProps=null,v.memoizedState=null,v.pendingProps=null,v.stateNode=null,v.updateQueue=null}function nT(v){return v.tag===5||v.tag===3||v.tag===4}function rT(v){e:for(;;){for(;v.sibling===null;){if(v.return===null||nT(v.return))return null;v=v.return}for(v.sibling.return=v.return,v=v.sibling;v.tag!==5&&v.tag!==6&&v.tag!==18;){if(v.flags&2||v.child===null||v.tag===4)continue e;v.child.return=v,v=v.child}if(!(v.flags&2))return v.stateNode}}function wS(v,y,M){var H=v.tag;if(H===5||H===6)v=v.stateNode,y?M.nodeType===8?M.parentNode.insertBefore(v,y):M.insertBefore(v,y):(M.nodeType===8?(y=M.parentNode,y.insertBefore(v,M)):(y=M,y.appendChild(v)),M=M._reactRootContainer,M!=null||y.onclick!==null||(y.onclick=fp));else if(H!==4&&(v=v.child,v!==null))for(wS(v,y,M),v=v.sibling;v!==null;)wS(v,y,M),v=v.sibling}function $S(v,y,M){var H=v.tag;if(H===5||H===6)v=v.stateNode,y?M.insertBefore(v,y):M.appendChild(v);else if(H!==4&&(v=v.child,v!==null))for($S(v,y,M),v=v.sibling;v!==null;)$S(v,y,M),v=v.sibling}var ba=null,yi=!1;function cs(v,y,M){for(M=M.child;M!==null;)aT(v,y,M),M=M.sibling}function aT(v,y,M){if(mn&&typeof mn.onCommitFiberUnmount=="function")try{mn.onCommitFiberUnmount(Vt,M)}catch{}switch(M.tag){case 5:Ma||Gu(M,y);case 6:var H=ba,X=yi;ba=null,cs(v,y,M),ba=H,yi=X,ba!==null&&(yi?(v=ba,M=M.stateNode,v.nodeType===8?v.parentNode.removeChild(M):v.removeChild(M)):ba.removeChild(M.stateNode));break;case 18:ba!==null&&(yi?(v=ba,M=M.stateNode,v.nodeType===8?kC(v.parentNode,M):v.nodeType===1&&kC(v,M),es(v)):kC(ba,M.stateNode));break;case 4:H=ba,X=yi,ba=M.stateNode.containerInfo,yi=!0,cs(v,y,M),ba=H,yi=X;break;case 0:case 11:case 14:case 15:if(!Ma&&(H=M.updateQueue,H!==null&&(H=H.lastEffect,H!==null))){X=H=H.next;do{var te=X,be=te.destroy;te=te.tag,be!==void 0&&((te&2)!==0||(te&4)!==0)&&SS(M,y,be),X=X.next}while(X!==H)}cs(v,y,M);break;case 1:if(!Ma&&(Gu(M,y),H=M.stateNode,typeof H.componentWillUnmount=="function"))try{H.props=M.memoizedProps,H.state=M.memoizedState,H.componentWillUnmount()}catch(Ie){Ar(M,y,Ie)}cs(v,y,M);break;case 21:cs(v,y,M);break;case 22:M.mode&1?(Ma=(H=Ma)||M.memoizedState!==null,cs(v,y,M),Ma=H):cs(v,y,M);break;default:cs(v,y,M)}}function oT(v){var y=v.updateQueue;if(y!==null){v.updateQueue=null;var M=v.stateNode;M===null&&(M=v.stateNode=new HQ),y.forEach(function(H){var X=JQ.bind(null,v,H);M.has(H)||(M.add(H),H.then(X,X))})}}function Ci(v,y){var M=y.deletions;if(M!==null)for(var H=0;HX&&(X=be),H&=~te}if(H=X,H=qe()-H,H=(120>H?120:480>H?480:1080>H?1080:1920>H?1920:3e3>H?3e3:4320>H?4320:1960*KQ(H/1960))-H,10v?16:v,ds===null)var H=!1;else{if(v=ds,ds=null,Bp=0,(Un&6)!==0)throw Error(n(331));var X=Un;for(Un|=4,Jt=v.current;Jt!==null;){var te=Jt,be=te.child;if((Jt.flags&16)!==0){var Ie=te.deletions;if(Ie!==null){for(var Ae=0;Aeqe()-OS?pc(v,0):PS|=M),eo(v,y)}function bT(v,y){y===0&&((v.mode&1)===0?y=1:(y=Pr,Pr<<=1,(Pr&130023424)===0&&(Pr=4194304)));var M=za();v=Sl(v,y),v!==null&&(Pn(v,y,M),eo(v,M))}function QQ(v){var y=v.memoizedState,M=0;y!==null&&(M=y.retryLane),bT(v,M)}function JQ(v,y){var M=0;switch(v.tag){case 13:var H=v.stateNode,X=v.memoizedState;X!==null&&(M=X.retryLane);break;case 19:H=v.stateNode;break;default:throw Error(n(314))}H!==null&&H.delete(y),bT(v,M)}var yT;yT=function(v,y,M){if(v!==null)if(v.memoizedProps!==y.pendingProps||Xa.current)Ja=!0;else{if((v.lanes&M)===0&&(y.flags&128)===0)return Ja=!1,LQ(v,y,M);Ja=(v.flags&131072)!==0}else Ja=!1,Ir&&(y.flags&1048576)!==0&&JM(y,bp,y.index);switch(y.lanes=0,y.tag){case 2:var H=y.type;_p(v,y),v=y.pendingProps;var X=Lu(y,Oa.current);Ku(y,M),X=aS(null,y,H,v,X,M);var te=oS();return y.flags|=1,typeof X=="object"&&X!==null&&typeof X.render=="function"&&X.$$typeof===void 0?(y.tag=1,y.memoizedState=null,y.updateQueue=null,Qa(H)?(te=!0,gp(y)):te=!1,y.memoizedState=X.state!==null&&X.state!==void 0?X.state:null,QC(y),X.updater=Tp,y.stateNode=X,X._reactInternals=y,dS(y,H,v,M),y=gS(null,y,H,!0,te,M)):(y.tag=0,Ir&&te&&zC(y),Ba(null,y,X,M),y=y.child),y;case 16:H=y.elementType;e:{switch(_p(v,y),v=y.pendingProps,X=H._init,H=X(H._payload),y.type=H,X=y.tag=eJ(H),v=bi(H,v),X){case 0:y=mS(null,y,H,v,M);break e;case 1:y=K6(null,y,H,v,M);break e;case 11:y=B6(null,y,H,v,M);break e;case 14:y=z6(null,y,H,bi(H.type,v),M);break e}throw Error(n(306,H,""))}return y;case 0:return H=y.type,X=y.pendingProps,X=y.elementType===H?X:bi(H,X),mS(v,y,H,X,M);case 1:return H=y.type,X=y.pendingProps,X=y.elementType===H?X:bi(H,X),K6(v,y,H,X,M);case 3:e:{if(q6(y),v===null)throw Error(n(387));H=y.pendingProps,te=y.memoizedState,X=te.element,l6(v,y),$p(y,H,null,M);var be=y.memoizedState;if(H=be.element,te.isDehydrated)if(te={element:H,isDehydrated:!1,cache:be.cache,pendingSuspenseBoundaries:be.pendingSuspenseBoundaries,transitions:be.transitions},y.updateQueue.baseState=te,y.memoizedState=te,y.flags&256){X=Uu(Error(n(423)),y),y=U6(v,y,H,M,X);break e}else if(H!==X){X=Uu(Error(n(424)),y),y=U6(v,y,H,M,X);break e}else for(yo=rs(y.stateNode.containerInfo.firstChild),bo=y,Ir=!0,hi=null,M=o6(y,null,H,M),y.child=M;M;)M.flags=M.flags&-3|4096,M=M.sibling;else{if(Hu(),H===X){y=wl(v,y,M);break e}Ba(v,y,H,M)}y=y.child}return y;case 5:return u6(y),v===null&&WC(y),H=y.type,X=y.pendingProps,te=v!==null?v.memoizedProps:null,be=X.children,FC(H,X)?be=null:te!==null&&FC(H,te)&&(y.flags|=32),W6(v,y),Ba(v,y,be,M),y.child;case 6:return v===null&&WC(y),null;case 13:return G6(v,y,M);case 4:return JC(y,y.stateNode.containerInfo),H=y.pendingProps,v===null?y.child=Vu(y,null,H,M):Ba(v,y,H,M),y.child;case 11:return H=y.type,X=y.pendingProps,X=y.elementType===H?X:bi(H,X),B6(v,y,H,X,M);case 7:return Ba(v,y,y.pendingProps,M),y.child;case 8:return Ba(v,y,y.pendingProps.children,M),y.child;case 12:return Ba(v,y,y.pendingProps.children,M),y.child;case 10:e:{if(H=y.type._context,X=y.pendingProps,te=y.memoizedProps,be=X.value,pr(Sp,H._currentValue),H._currentValue=be,te!==null)if(pi(te.value,be)){if(te.children===X.children&&!Xa.current){y=wl(v,y,M);break e}}else for(te=y.child,te!==null&&(te.return=y);te!==null;){var Ie=te.dependencies;if(Ie!==null){be=te.child;for(var Ae=Ie.firstContext;Ae!==null;){if(Ae.context===H){if(te.tag===1){Ae=xl(-1,M&-M),Ae.tag=2;var Je=te.updateQueue;if(Je!==null){Je=Je.shared;var Et=Je.pending;Et===null?Ae.next=Ae:(Ae.next=Et.next,Et.next=Ae),Je.pending=Ae}}te.lanes|=M,Ae=te.alternate,Ae!==null&&(Ae.lanes|=M),YC(te.return,M,y),Ie.lanes|=M;break}Ae=Ae.next}}else if(te.tag===10)be=te.type===y.type?null:te.child;else if(te.tag===18){if(be=te.return,be===null)throw Error(n(341));be.lanes|=M,Ie=be.alternate,Ie!==null&&(Ie.lanes|=M),YC(be,M,y),be=te.sibling}else be=te.child;if(be!==null)be.return=te;else for(be=te;be!==null;){if(be===y){be=null;break}if(te=be.sibling,te!==null){te.return=be.return,be=te;break}be=be.return}te=be}Ba(v,y,X.children,M),y=y.child}return y;case 9:return X=y.type,H=y.pendingProps.children,Ku(y,M),X=Ho(X),H=H(X),y.flags|=1,Ba(v,y,H,M),y.child;case 14:return H=y.type,X=bi(H,y.pendingProps),X=bi(H.type,X),z6(v,y,H,X,M);case 15:return H6(v,y,y.type,y.pendingProps,M);case 17:return H=y.type,X=y.pendingProps,X=y.elementType===H?X:bi(H,X),_p(v,y),y.tag=1,Qa(H)?(v=!0,gp(y)):v=!1,Ku(y,M),_6(y,H,X),dS(y,H,X,M),gS(null,y,H,!0,v,M);case 19:return X6(v,y,M);case 22:return V6(v,y,M)}throw Error(n(156,y.tag))};function CT(v,y){return Lt(v,y)}function ZQ(v,y,M,H){this.tag=v,this.key=M,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=y,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=H,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ko(v,y,M,H){return new ZQ(v,y,M,H)}function FS(v){return v=v.prototype,!(!v||!v.isReactComponent)}function eJ(v){if(typeof v=="function")return FS(v)?1:0;if(v!=null){if(v=v.$$typeof,v===k)return 11;if(v===D)return 14}return 2}function ms(v,y){var M=v.alternate;return M===null?(M=Ko(v.tag,y,v.key,v.mode),M.elementType=v.elementType,M.type=v.type,M.stateNode=v.stateNode,M.alternate=v,v.alternate=M):(M.pendingProps=y,M.type=v.type,M.flags=0,M.subtreeFlags=0,M.deletions=null),M.flags=v.flags&14680064,M.childLanes=v.childLanes,M.lanes=v.lanes,M.child=v.child,M.memoizedProps=v.memoizedProps,M.memoizedState=v.memoizedState,M.updateQueue=v.updateQueue,y=v.dependencies,M.dependencies=y===null?null:{lanes:y.lanes,firstContext:y.firstContext},M.sibling=v.sibling,M.index=v.index,M.ref=v.ref,M}function Wp(v,y,M,H,X,te){var be=2;if(H=v,typeof v=="function")FS(v)&&(be=1);else if(typeof v=="string")be=5;else e:switch(v){case R:return bc(M.children,X,te,y);case I:be=8,X|=8;break;case O:return v=Ko(12,M,y,X|2),v.elementType=O,v.lanes=te,v;case A:return v=Ko(13,M,y,X),v.elementType=A,v.lanes=te,v;case j:return v=Ko(19,M,y,X),v.elementType=j,v.lanes=te,v;case L:return Kp(M,X,te,y);default:if(typeof v=="object"&&v!==null)switch(v.$$typeof){case T:be=10;break e;case _:be=9;break e;case k:be=11;break e;case D:be=14;break e;case F:be=16,H=null;break e}throw Error(n(130,v==null?v:typeof v,""))}return y=Ko(be,M,y,X),y.elementType=v,y.type=H,y.lanes=te,y}function bc(v,y,M,H){return v=Ko(7,v,H,y),v.lanes=M,v}function Kp(v,y,M,H){return v=Ko(22,v,H,y),v.elementType=L,v.lanes=M,v.stateNode={isHidden:!1},v}function DS(v,y,M){return v=Ko(6,v,null,y),v.lanes=M,v}function kS(v,y,M){return y=Ko(4,v.children!==null?v.children:[],v.key,y),y.lanes=M,y.stateNode={containerInfo:v.containerInfo,pendingChildren:null,implementation:v.implementation},y}function tJ(v,y,M,H,X){this.tag=y,this.containerInfo=v,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.identifierPrefix=H,this.onRecoverableError=X,this.mutableSourceEagerHydrationData=null}function AS(v,y,M,H,X,te,be,Ie,Ae){return v=new tJ(v,y,M,Ie,Ae),y===1?(y=1,te===!0&&(y|=8)):y=0,te=Ko(3,null,null,y),v.current=te,te.stateNode=v,te.memoizedState={element:H,isDehydrated:M,cache:null,transitions:null,pendingSuspenseBoundaries:null},QC(te),v}function nJ(v,y,M){var H=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),qS.exports=hJ(),qS.exports}var FT;function bJ(){if(FT)return eh;FT=1;var e=t9();return eh.createRoot=e.createRoot,eh.hydrateRoot=e.hydrateRoot,eh}var yJ=bJ();const CJ=rn(yJ);var YS={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/var ST;function AB(){return ST||(ST=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",i=0;i1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ee.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(rr(r)):LB(r)&&r.props?n=n.concat(rr(r.props.children,t)):n.push(r))}),n}var JE={},lJ=function(t){};function sJ(e,t){}function cJ(e,t){}function uJ(){JE={}}function BB(e,t,n){!t&&!JE[n]&&(e(!1,n),JE[n]=!0)}function Wn(e,t){BB(sJ,e,t)}function $a(e,t){BB(cJ,e,t)}Wn.preMessage=lJ;Wn.resetWarned=uJ;Wn.noteOnce=$a;function dJ(e,t){if(it(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(it(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zB(e){var t=dJ(e,"string");return it(t)=="symbol"?t:t+""}function z(e,t,n){return(t=zB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ee.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(rr(r)):r9(r)&&r.props?n=n.concat(rr(r.props.children,t)):n.push(r))}),n}var lP={},EJ=function(t){};function PJ(e,t){}function OJ(e,t){}function IJ(){lP={}}function a9(e,t,n){!t&&!lP[n]&&(e(!1,n),lP[n]=!0)}function Kn(e,t){a9(PJ,e,t)}function wa(e,t){a9(OJ,e,t)}Kn.preMessage=EJ;Kn.resetWarned=IJ;Kn.noteOnce=wa;function RJ(e,t){if(it(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(it(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o9(e){var t=RJ(e,"string");return it(t)=="symbol"?t:t+""}function z(e,t,n){return(t=o9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t=19)return!0;var a=HS.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==HS.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==HS.ForwardRef)};function iR(e){return s.isValidElement(e)&&!LB(e)}var pJ=function(t){return iR(t)&&_i(t)},ec=function(t){if(t&&iR(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},ZE=s.createContext(null);function hJ(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),a=s.useRef([]),o=s.useContext(ZE),i=s.useCallback(function(l,c,u){r.current+=1;var d=r.current;a.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(l,c,u)},[n,o]);return s.createElement(ZE.Provider,{value:i},t)}var HB=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}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(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a0},e.prototype.connect_=function(){!eP||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),wJ?(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(){!eP||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=xJ.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),VB=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Kd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new NJ(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 Kd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new _J(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),KB=typeof WeakMap<"u"?new WeakMap:new HB,qB=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=$J.getInstance(),r=new jJ(t,n,this);KB.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){qB.prototype[e]=function(){var t;return(t=KB.get(this))[e].apply(t,arguments)}});var FJ=(function(){return typeof cb.ResizeObserver<"u"?cb.ResizeObserver:qB})(),_s=new Map;function DJ(e){e.forEach(function(t){var n,r=t.target;(n=_s.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var UB=new FJ(DJ);function kJ(e,t){_s.has(e)||(_s.set(e,new Set),UB.observe(e)),_s.get(e).add(t)}function AJ(e,t){_s.has(e)&&(_s.get(e).delete(t),_s.get(e).size||(UB.unobserve(e),_s.delete(e)))}function or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PT(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;OT+=1;var r=OT;function a(o){if(o===0)JB(r),t();else{var i=XB(function(){a(o-1)});lR.set(r,i)}}return a(n),r};on.cancel=function(e){var t=lR.get(e);return JB(e),QB(t)};function IT(e){let t=null;const n=a=>()=>{t=null,e.apply(void 0,ke(a))},r=(...a)=>{t===null&&(t=on(n(a)))};return r.cancel=()=>{on.cancel(t),t=null},r}function ZB(e){if(Array.isArray(e))return e}function qJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}function e9(){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 ce(e,t){return ZB(e)||qJ(e,t)||Py(e,t)||e9()}function $m(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 va(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function nP(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var RT="data-rc-order",MT="data-rc-priority",UJ="rc-util-key",rP=new Map;function t9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):UJ}function Oy(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function GJ(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function sR(e){return Array.from((rP.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function n9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!va())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=GJ(r),l=i==="prependQueue",c=document.createElement("style");c.setAttribute(RT,i),l&&o&&c.setAttribute(MT,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Oy(t),d=u.firstChild;if(r){if(l){var f=(t.styles||sR(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(RT)))return!1;var g=Number(m.getAttribute(MT)||0);return o>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function r9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Oy(t);return(t.styles||sR(n)).find(function(r){return r.getAttribute(t9(t))===e})}function Em(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r9(e,t);if(n){var r=Oy(t);r.removeChild(n)}}function YJ(e,t){var n=rP.get(e);if(!n||!nP(document,n)){var r=n9("",t),a=r.parentNode;rP.set(e,a),e.removeChild(r)}}function kl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Oy(n),a=sR(r),o=P(P({},n),{},{styles:a});YJ(r,o);var i=r9(t,o);if(i){var l,c;if((l=o.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=n9(e,o);return d.setAttribute(t9(o),t),d}function XJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ue(e,t){if(e==null)return{};var n,r,a=XJ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if(Wn(!c,"Warning: There may be circular references"),c)return!1;if(o===i)return!0;if(n&&l>1)return!1;r.add(o);var u=l+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=ce(u,2),m=f[1];return a.internalGet(d)[1]0,void 0),TT+=1}return ir(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),VS=new cR;function Pm(e){var t=Array.isArray(e)?e:[e];return VS.has(t)||VS.set(t,new a9(t)),VS.get(t)}var tZ=new WeakMap,WS={};function nZ(e,t){for(var n=tZ,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=P(P({},r),{},z(z({},qd,t),Ri,n)),i=Object.keys(o).map(function(l){var c=o[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var R0=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").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()},rZ=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=ce(a,2),i=o[0],l=o[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},o9=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var l,c,u=ce(i,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,g=R0(d,r==null?void 0:r.prefix);a[g]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(g,")")}}),[o,rZ(a,n,{scope:r==null?void 0:r.scope})]},jT=va()?s.useLayoutEffect:s.useEffect,dn=function(t,n){var r=s.useRef(!0);jT(function(){return t(r.current)},n),jT(function(){return r.current=!1,function(){r.current=!0}},[])},Hc=function(t,n){dn(function(r){if(!r)return t()},n)},aZ=P({},sg),FT=aZ.useInsertionEffect,oZ=function(t,n,r){s.useMemo(t,r),dn(function(){return n(!0)},r)},iZ=FT?function(e,t,n){return FT(function(){return e(),t()},n)}:oZ,lZ=P({},sg),sZ=lZ.useInsertionEffect,cZ=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},uZ=function(){return function(t){t()}},dZ=typeof sZ<"u"?cZ:uZ;function uR(e,t,n,r,a){var o=s.useContext(ug),i=o.cache,l=[e].concat(ke(t)),c=aP(l),u=dZ([c]),d=function(h){i.opUpdate(c,function(b){var p=b||[void 0,void 0],S=ce(p,2),C=S[0],x=C===void 0?0:C,w=S[1],$=w,E=$||n(),R=[x,E];return h?h(R):R})};s.useMemo(function(){d()},[c]);var f=i.opGet(c),m=f[1];return iZ(function(){a==null||a(m)},function(g){return d(function(h){var b=ce(h,2),p=b[0],S=b[1];return g&&p===0&&(a==null||a(m)),[p+1,S]}),function(){i.opUpdate(c,function(h){var b=h||[],p=ce(b,2),S=p[0],C=S===void 0?0:S,x=p[1],w=C-1;return w===0?(u(function(){(g||!i.opGet(c))&&(r==null||r(x,!1))}),null):[C-1,x]})}},[c]),m}var fZ={},vZ="css",$c=new Map;function mZ(e){$c.set(e,($c.get(e)||0)+1)}function gZ(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(qd,'="').concat(e,'"]'));n.forEach(function(r){if(r[js]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var pZ=0;function hZ(e,t){$c.set(e,($c.get(e)||0)-1);var n=new Set;$c.forEach(function(r,a){r<=0&&n.add(a)}),$c.size-n.size>pZ&&n.forEach(function(r){gZ(r,t),$c.delete(r)})}var i9=function(t,n,r,a){var o=r.getDerivativeToken(t),i=P(P({},o),n);return a&&(i=a(i)),i},l9="token";function s9(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.useContext(ug),a=r.cache.instanceId,o=r.container,i=n.salt,l=i===void 0?"":i,c=n.override,u=c===void 0?fZ:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,g=nZ(function(){return Object.assign.apply(Object,[{}].concat(ke(t)))},t),h=sm(g),b=sm(u),p=m?sm(m):"",S=uR(l9,[l,e.id,h,b,p],function(){var C,x=f?f(g,u,e):i9(g,u,e,d),w=P({},x),$="";if(m){var E=o9(x,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),R=ce(E,2);x=R[0],$=R[1]}var I=_T(x,l);x._tokenKey=I,w._tokenKey=_T(w,l);var O=(C=m==null?void 0:m.key)!==null&&C!==void 0?C:I;x._themeKey=O,mZ(O);var T="".concat(vZ,"-").concat($m(I));return x._hashId=T,[x,T,w,$,(m==null?void 0:m.key)||""]},function(C){hZ(C[0]._themeKey,a)},function(C){var x=ce(C,4),w=x[0],$=x[3];if(m&&$){var E=kl($,$m("css-variables-".concat(w._themeKey)),{mark:Ri,prepend:"queue",attachTo:o,priority:-999});E[js]=a,E.setAttribute(qd,w._themeKey)}});return S}var bZ=function(t,n,r){var a=ce(t,5),o=a[2],i=a[3],l=a[4],c=r||{},u=c.plain;if(!i)return null;var d=o._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=db(i,l,d,m,u);return[f,d,g]},yZ={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},c9="comm",u9="rule",d9="decl",CZ="@import",SZ="@namespace",xZ="@keyframes",wZ="@layer",$Z=Math.abs,cm=String.fromCharCode;function f9(e){return e.trim()}function iP(e,t,n){return e.replace(t,n)}function Sd(e,t){return e.charCodeAt(t)|0}function Ud(e,t,n){return e.slice(t,n)}function Zi(e){return e.length}function EZ(e){return e.length}function eh(e,t){return t.push(e),e}var Iy=1,Gd=1,v9=0,ti=0,Zr=0,gf="";function dR(e,t,n,r,a,o,i,l){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Iy,column:Gd,length:i,return:"",siblings:l}}function PZ(){return Zr}function OZ(){return Zr=ti>0?Sd(gf,--ti):0,Gd--,Zr===10&&(Gd=1,Iy--),Zr}function Mi(){return Zr=ti2||Om(Zr)>3?"":" "}function TZ(e,t){for(;--t&&Mi()&&!(Zr<48||Zr>102||Zr>57&&Zr<65||Zr>70&&Zr<97););return Ry(e,M0()+(t<6&&Fs()==32&&Mi()==32))}function lP(e){for(;Mi();)switch(Zr){case e:return ti;case 34:case 39:e!==34&&e!==39&&lP(Zr);break;case 40:e===41&&lP(e);break;case 92:Mi();break}return ti}function NZ(e,t){for(;Mi()&&e+Zr!==57;)if(e+Zr===84&&Fs()===47)break;return"/*"+Ry(t,ti-1)+"*"+cm(e===47?e:Mi())}function _Z(e){for(;!Om(Fs());)Mi();return Ry(e,ti)}function jZ(e){return RZ(T0("",null,null,null,[""],e=IZ(e),0,[0],e))}function T0(e,t,n,r,a,o,i,l,c){for(var u=0,d=0,f=i,m=0,g=0,h=0,b=1,p=1,S=1,C=0,x=0,w="",$=a,E=o,R=r,I=w;p;)switch(h=x,x=Mi()){case 40:h!=108&&Sd(I,f-1)==58?(C++,I+="("):I+=KS(x);break;case 41:C--,I+=")";break;case 34:case 39:case 91:I+=KS(x);break;case 9:case 10:case 13:case 32:if(C>0){I+=cm(x);break}I+=MZ(h);break;case 92:I+=TZ(M0()-1,7);continue;case 47:switch(Fs()){case 42:case 47:eh(FZ(NZ(Mi(),M0()),t,n,c),c),(Om(h||1)==5||Om(Fs()||1)==5)&&Zi(I)&&Ud(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[u++]=Zi(I)*S;case 125*b:case 59:case 0:if(C>0&&x){I+=cm(x);break}switch(x){case 0:case 125:p=0;case 59+d:S==-1&&(I=iP(I,/\f/g,"")),g>0&&(Zi(I)-f||b===0)&&eh(g>32?kT(I+";",r,n,f-1,c):kT(iP(I," ","")+";",r,n,f-2,c),c);break;case 59:I+=";";default:if(eh(R=DT(I,t,n,u,d,a,l,w,$=[],E=[],f,o),o),x===123)if(d===0)T0(I,t,R,R,$,o,f,l,E);else{switch(m){case 99:if(Sd(I,3)===110)break;case 108:if(Sd(I,2)===97)break;default:d=0;case 100:case 109:case 115:}d?T0(e,R,R,r&&eh(DT(e,R,R,0,0,a,l,w,a,$=[],f,E),E),a,E,f,l,r?$:E):T0(I,R,R,R,[""],E,0,l,E)}}u=d=g=0,b=S=1,w=I="",f=i;break;case 58:f=1+Zi(I),g=h;default:if(b<1){if(x==123)--b;else if(x==125&&b++==0&&OZ()==125)continue}switch(I+=cm(x),x*b){case 38:S=d>0?1:(I+="\f",-1);break;case 44:if(C>0)break;l[u++]=(Zi(I)-1)*S,S=1;break;case 64:Fs()===45&&(I+=KS(Mi())),m=Fs(),d=f=Zi(w=I+=_Z(M0())),x++;break;case 45:h===45&&Zi(I)==2&&(b=0)}}return o}function DT(e,t,n,r,a,o,i,l,c,u,d,f){for(var m=a-1,g=a===0?o:[""],h=EZ(g),b=0,p=0,S=0;b0?g[C]+" "+x:iP(x,/&\f/g,g[C])))&&(c[S++]=w);return dR(e,t,n,a===0?u9:l,c,u,d,f)}function FZ(e,t,n,r){return dR(e,t,n,c9,cm(PZ()),Ud(e,2,-2),0,r)}function kT(e,t,n,r,a){return dR(e,t,n,d9,Ud(e,0,r),Ud(e,r+1,-1),r,a)}function sP(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,l=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",g={};function h(S){var C=S.getName(l);if(!g[C]){var x=e(S.style,n,{root:!1,parentSelectors:i}),w=ce(x,1),$=w[0];g[C]="@keyframes ".concat(S.getName(l)).concat($)}}function b(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(x){Array.isArray(x)?b(x,C):x&&C.push(x)}),C}var p=b(Array.isArray(t)?t:[t]);return p.forEach(function(S){var C=typeof S=="string"&&!a?{}:S;if(typeof C=="string")m+="".concat(C,` -`);else if(C._keyframe)h(C);else{var x=f.reduce(function(w,$){var E;return($==null||(E=$.visit)===null||E===void 0?void 0:E.call($,w))||w},C);Object.keys(x).forEach(function(w){var $=x[w];if(it($)==="object"&&$&&(w!=="animationName"||!$._keyframe)&&!zZ($)){var E=!1,R=w.trim(),I=!1;(a||o)&&l?R.startsWith("@")?E=!0:R==="&"?R=LT("",l,u):R=LT(w,l,u):a&&!l&&(R==="&"||R==="")&&(R="",I=!0);var O=e($,n,{root:I,injectHash:E,parentSelectors:[].concat(ke(i),[R])}),T=ce(O,2),N=T[0],A=T[1];g=P(P({},g),A),m+="".concat(R).concat(N)}else{let D=function(F,L){var B=F.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),K=L;!yZ[F]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),F==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(h(L),K=L.getName(l)),m+="".concat(B,":").concat(K,";")};var k,j=(k=$==null?void 0:$.value)!==null&&k!==void 0?k:$;it($)==="object"&&$!==null&&$!==void 0&&$[p9]&&Array.isArray(j)?j.forEach(function(F){D(w,F)}):D(w,j)}})}}),a?c&&(m&&(m="@layer ".concat(c.name," {").concat(m,"}")),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(c.name,";")}).join(` -`))):m="{".concat(m,"}"),[m,g]};function h9(e,t){return $m("".concat(e.join("%")).concat(t))}function VZ(){return null}var b9="style";function fb(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=s.useContext(ug),f=d.autoClear;d.mock;var m=d.defaultCache,g=d.hashPriority,h=d.container,b=d.ssrInline,p=d.transformers,S=d.linters,C=d.cache,x=d.layer,w=n._tokenKey,$=[w];x&&$.push("layer"),$.push.apply($,ke(r));var E=oP,R=uR(b9,$,function(){var A=$.join("|");if(AZ(A)){var k=LZ(A),j=ce(k,2),D=j[0],F=j[1];if(D)return[D,w,F,{},l,u]}var L=t(),B=HZ(L,{hashId:a,hashPriority:g,layer:x?o:void 0,path:r.join("-"),transformers:p,linters:S}),K=ce(B,2),W=K[0],V=K[1],q=N0(W),U=h9($,q);return[q,w,U,V,l,u]},function(A,k){var j=ce(A,3),D=j[2];(k||f)&&oP&&Em(D,{mark:Ri,attachTo:h})},function(A){var k=ce(A,4),j=k[0];k[1];var D=k[2],F=k[3];if(E&&j!==m9){var L={mark:Ri,prepend:x?!1:"queue",attachTo:h,priority:u},B=typeof i=="function"?i():i;B&&(L.csp={nonce:B});var K=[],W=[];Object.keys(F).forEach(function(q){q.startsWith("@layer")?K.push(q):W.push(q)}),K.forEach(function(q){kl(N0(F[q]),"_layer-".concat(q),P(P({},L),{},{prepend:!0}))});var V=kl(j,D,L);V[js]=C.instanceId,V.setAttribute(qd,w),W.forEach(function(q){kl(N0(F[q]),"_effect-".concat(q),L)})}}),I=ce(R,3),O=I[0],T=I[1],N=I[2];return function(A){var k;return!b||E||!m?k=s.createElement(VZ,null):k=s.createElement("style",Me({},z(z({},qd,T),Ri,N),{dangerouslySetInnerHTML:{__html:O}})),s.createElement(s.Fragment,null,k,A)}}var WZ=function(t,n,r){var a=ce(t,6),o=a[0],i=a[1],l=a[2],c=a[3],u=a[4],d=a[5],f=r||{},m=f.plain;if(u)return null;var g=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=db(o,i,l,h,m),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var p=N0(c[b]),S=db(p,i,"_effect-".concat(b),h,m);b.startsWith("@layer")?g=S+g:g+=S}}),[d,l,g]},y9="cssVar",KZ=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,d=s.useContext(ug),f=d.cache.instanceId,m=d.container,g=l._tokenKey,h=[].concat(ke(t.path),[r,u,g]),b=uR(y9,h,function(){var p=n(),S=o9(p,r,{prefix:a,unitless:o,ignore:i,scope:u}),C=ce(S,2),x=C[0],w=C[1],$=h9(h,w);return[x,w,$,r]},function(p){var S=ce(p,3),C=S[2];oP&&Em(C,{mark:Ri,attachTo:m})},function(p){var S=ce(p,3),C=S[1],x=S[2];if(C){var w=kl(C,x,{mark:Ri,prepend:"queue",attachTo:m,priority:-999});w[js]=f,w.setAttribute(qd,r)}});return b},qZ=function(t,n,r){var a=ce(t,4),o=a[1],i=a[2],l=a[3],c=r||{},u=c.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=db(o,l,i,f,u);return[d,i,m]};z(z(z({},b9,WZ),l9,bZ),y9,qZ);var Cn=(function(){function e(t,n){or(this,e),z(this,"name",void 0),z(this,"style",void 0),z(this,"_keyframe",!0),this.name=t,this.style=n}return ir(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function Xu(e){return e.notSplit=!0,e}Xu(["borderTop","borderBottom"]),Xu(["borderTop"]),Xu(["borderBottom"]),Xu(["borderLeft","borderRight"]),Xu(["borderLeft"]),Xu(["borderRight"]);var My=s.createContext({});function fR(e){return ZB(e)||YB(e)||Py(e)||e9()}function Un(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Un(e,t.slice(0,-1))?e:C9(e,t,n,r)}function UZ(e){return it(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function BT(e){return Array.isArray(e)?[]:{}}var GZ=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ds(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=YZ,e},S9=s.createContext(void 0);var x9={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"},w9={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},QZ=P(P({},w9),{},{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 $9={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},vb={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"]},QZ),timePickerLocale:Object.assign({},$9)},Co="${label} is not a valid ${type}",ji={locale:"en",Pagination:x9,DatePicker:vb,TimePicker:$9,Calendar:vb,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:Co,method:Co,array:Co,object:Co,number:Co,date:Co,boolean:Co,integer:Co,float:Co,regexp:Co,email:Co,url:Co,hex:Co},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"}};let _0=Object.assign({},ji.Modal),j0=[];const zT=()=>j0.reduce((e,t)=>Object.assign(Object.assign({},e),t),ji.Modal);function JZ(e){if(e){const t=Object.assign({},e);return j0.push(t),_0=zT(),()=>{j0=j0.filter(n=>n!==t),_0=zT()}}_0=Object.assign({},ji.Modal)}function E9(){return _0}const vR=s.createContext(void 0),Pa=(e,t)=>{const n=s.useContext(vR),r=s.useMemo(()=>{var o;const i=t||ji[e],l=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),a=s.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?ji.locale:o},[n]);return[r,a]},ZZ="internalMark",eee=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;s.useEffect(()=>JZ(t==null?void 0:t.Modal),[t]);const a=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(vR.Provider,{value:a},n)},mR={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"},Yd=Object.assign(Object.assign({},mR),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var AT;function TJ(){if(AT)return tr;AT=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function b(p){if(typeof p=="object"&&p!==null){var S=p.$$typeof;switch(S){case e:switch(p=p.type,p){case n:case a:case r:case u:case d:return p;default:switch(p=p&&p.$$typeof,p){case l:case i:case c:case m:case f:case o:return p;default:return S}}case t:return S}}}return tr.ContextConsumer=i,tr.ContextProvider=o,tr.Element=e,tr.ForwardRef=c,tr.Fragment=n,tr.Lazy=m,tr.Memo=f,tr.Portal=t,tr.Profiler=a,tr.StrictMode=r,tr.Suspense=u,tr.SuspenseList=d,tr.isAsyncMode=function(){return!1},tr.isConcurrentMode=function(){return!1},tr.isContextConsumer=function(p){return b(p)===i},tr.isContextProvider=function(p){return b(p)===o},tr.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},tr.isForwardRef=function(p){return b(p)===c},tr.isFragment=function(p){return b(p)===n},tr.isLazy=function(p){return b(p)===m},tr.isMemo=function(p){return b(p)===f},tr.isPortal=function(p){return b(p)===t},tr.isProfiler=function(p){return b(p)===a},tr.isStrictMode=function(p){return b(p)===r},tr.isSuspense=function(p){return b(p)===u},tr.isSuspenseList=function(p){return b(p)===d},tr.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===a||p===r||p===u||p===d||p===g||typeof p=="object"&&p!==null&&(p.$$typeof===m||p.$$typeof===f||p.$$typeof===o||p.$$typeof===i||p.$$typeof===c||p.$$typeof===h||p.getModuleId!==void 0)},tr.typeOf=b,tr}var LT;function NJ(){return LT||(LT=1,XS.exports=TJ()),XS.exports}var QS=NJ();function Hl(e,t,n){var r=s.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var _J=Number(s.version.split(".")[0]),xm=function(t,n){typeof t=="function"?t(n):it(t)==="object"&&t&&"current"in t&&(t.current=n)},Dr=function(){for(var t=arguments.length,n=new Array(t),r=0;r=19)return!0;var a=QS.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==QS.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==QS.ForwardRef)};function bR(e){return s.isValidElement(e)&&!r9(e)}var jJ=function(t){return bR(t)&&Fi(t)},Zs=function(t){if(t&&bR(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},sP=s.createContext(null);function FJ(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),a=s.useRef([]),o=s.useContext(sP),i=s.useCallback(function(l,c,u){r.current+=1;var d=r.current;a.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(l,c,u)},[n,o]);return s.createElement(sP.Provider,{value:i},t)}var i9=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[0]===n?(r=o,!0):!1}),r}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(n){var r=e(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,o=this.__entries__;a0},e.prototype.connect_=function(){!cP||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zJ?(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(){!cP||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=BJ.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),l9=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof qd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new XJ(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 qd(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new QJ(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),c9=typeof WeakMap<"u"?new WeakMap:new i9,u9=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=HJ.getInstance(),r=new JJ(t,n,this);c9.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){u9.prototype[e]=function(){var t;return(t=c9.get(this))[e].apply(t,arguments)}});var ZJ=(function(){return typeof vb.ResizeObserver<"u"?vb.ResizeObserver:u9})(),_s=new Map;function eZ(e){e.forEach(function(t){var n,r=t.target;(n=_s.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var d9=new ZJ(eZ);function tZ(e,t){_s.has(e)||(_s.set(e,new Set),d9.observe(e)),_s.get(e).add(t)}function nZ(e,t){_s.has(e)&&(_s.get(e).delete(t),_s.get(e).size||(d9.unobserve(e),_s.delete(e)))}function ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zT(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;HT+=1;var r=HT;function a(o){if(o===0)p9(r),t();else{var i=m9(function(){a(o-1)});yR.set(r,i)}}return a(n),r};ln.cancel=function(e){var t=yR.get(e);return p9(e),g9(t)};function VT(e){let t=null;const n=a=>()=>{t=null,e.apply(void 0,ke(a))},r=(...a)=>{t===null&&(t=ln(n(a)))};return r.cancel=()=>{ln.cancel(t),t=null},r}function h9(e){if(Array.isArray(e))return e}function uZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}function b9(){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 ce(e,t){return h9(e)||uZ(e,t)||Ty(e,t)||b9()}function $m(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 dP(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var WT="data-rc-order",KT="data-rc-priority",dZ="rc-util-key",fP=new Map;function y9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):dZ}function Ny(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function fZ(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function CR(e){return Array.from((fP.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function C9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ma())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,i=fZ(r),l=i==="prependQueue",c=document.createElement("style");c.setAttribute(WT,i),l&&o&&c.setAttribute(KT,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Ny(t),d=u.firstChild;if(r){if(l){var f=(t.styles||CR(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(WT)))return!1;var g=Number(m.getAttribute(KT)||0);return o>=g});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function S9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ny(t);return(t.styles||CR(n)).find(function(r){return r.getAttribute(y9(t))===e})}function Em(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=S9(e,t);if(n){var r=Ny(t);r.removeChild(n)}}function vZ(e,t){var n=fP.get(e);if(!n||!dP(document,n)){var r=C9("",t),a=r.parentNode;fP.set(e,a),e.removeChild(r)}}function kl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Ny(n),a=CR(r),o=P(P({},n),{},{styles:a});vZ(r,o);var i=S9(t,o);if(i){var l,c;if((l=o.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var d=C9(e,o);return d.setAttribute(y9(o),t),d}function mZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ue(e,t){if(e==null)return{};var n,r,a=mZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if(Kn(!c,"Warning: There may be circular references"),c)return!1;if(o===i)return!0;if(n&&l>1)return!1;r.add(o);var u=l+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(l){if(!i)i=void 0;else{var c;i=(c=i)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var f=ce(u,2),m=f[1];return a.internalGet(d)[1]0,void 0),qT+=1}return lr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),JS=new SR;function Gd(e){var t=Array.isArray(e)?e:[e];return JS.has(t)||JS.set(t,new x9(t)),JS.get(t)}var yZ=new WeakMap,ZS={};function CZ(e,t){for(var n=yZ,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var o=P(P({},r),{},z(z({},Ud,t),Ti,n)),i=Object.keys(o).map(function(l){var c=o[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var _0=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").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()},SZ=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(a){var o=ce(a,2),i=o[0],l=o[1];return"".concat(i,":").concat(l,";")}).join(""),"}"):""},w9=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(i){var l,c,u=ce(i,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])o[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,g=_0(d,r==null?void 0:r.prefix);a[g]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),o[d]="var(".concat(g,")")}}),[o,SZ(a,n,{scope:r==null?void 0:r.scope})]},YT=ma()?s.useLayoutEffect:s.useEffect,fn=function(t,n){var r=s.useRef(!0);YT(function(){return t(r.current)},n),YT(function(){return r.current=!1,function(){r.current=!0}},[])},Hc=function(t,n){fn(function(r){if(!r)return t()},n)},xZ=P({},sg),XT=xZ.useInsertionEffect,wZ=function(t,n,r){s.useMemo(t,r),fn(function(){return n(!0)},r)},$Z=XT?function(e,t,n){return XT(function(){return e(),t()},n)}:wZ,EZ=P({},sg),PZ=EZ.useInsertionEffect,OZ=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},IZ=function(){return function(t){t()}},RZ=typeof PZ<"u"?OZ:IZ;function xR(e,t,n,r,a){var o=s.useContext(ug),i=o.cache,l=[e].concat(ke(t)),c=vP(l),u=RZ([c]),d=function(h){i.opUpdate(c,function(b){var p=b||[void 0,void 0],S=ce(p,2),C=S[0],x=C===void 0?0:C,w=S[1],$=w,E=$||n(),R=[x,E];return h?h(R):R})};s.useMemo(function(){d()},[c]);var f=i.opGet(c),m=f[1];return $Z(function(){a==null||a(m)},function(g){return d(function(h){var b=ce(h,2),p=b[0],S=b[1];return g&&p===0&&(a==null||a(m)),[p+1,S]}),function(){i.opUpdate(c,function(h){var b=h||[],p=ce(b,2),S=p[0],C=S===void 0?0:S,x=p[1],w=C-1;return w===0?(u(function(){(g||!i.opGet(c))&&(r==null||r(x,!1))}),null):[C-1,x]})}},[c]),m}var MZ={},TZ="css",wc=new Map;function NZ(e){wc.set(e,(wc.get(e)||0)+1)}function _Z(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ud,'="').concat(e,'"]'));n.forEach(function(r){if(r[js]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var jZ=0;function FZ(e,t){wc.set(e,(wc.get(e)||0)-1);var n=new Set;wc.forEach(function(r,a){r<=0&&n.add(a)}),wc.size-n.size>jZ&&n.forEach(function(r){_Z(r,t),wc.delete(r)})}var $9=function(t,n,r,a){var o=r.getDerivativeToken(t),i=P(P({},o),n);return a&&(i=a(i)),i},E9="token";function wR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.useContext(ug),a=r.cache.instanceId,o=r.container,i=n.salt,l=i===void 0?"":i,c=n.override,u=c===void 0?MZ:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,g=CZ(function(){return Object.assign.apply(Object,[{}].concat(ke(t)))},t),h=sm(g),b=sm(u),p=m?sm(m):"",S=xR(E9,[l,e.id,h,b,p],function(){var C,x=f?f(g,u,e):$9(g,u,e,d),w=P({},x),$="";if(m){var E=w9(x,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),R=ce(E,2);x=R[0],$=R[1]}var I=GT(x,l);x._tokenKey=I,w._tokenKey=GT(w,l);var O=(C=m==null?void 0:m.key)!==null&&C!==void 0?C:I;x._themeKey=O,NZ(O);var T="".concat(TZ,"-").concat($m(I));return x._hashId=T,[x,T,w,$,(m==null?void 0:m.key)||""]},function(C){FZ(C[0]._themeKey,a)},function(C){var x=ce(C,4),w=x[0],$=x[3];if(m&&$){var E=kl($,$m("css-variables-".concat(w._themeKey)),{mark:Ti,prepend:"queue",attachTo:o,priority:-999});E[js]=a,E.setAttribute(Ud,w._themeKey)}});return S}var DZ=function(t,n,r){var a=ce(t,5),o=a[2],i=a[3],l=a[4],c=r||{},u=c.plain;if(!i)return null;var d=o._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=gb(i,l,d,m,u);return[f,d,g]},kZ={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},P9="comm",O9="rule",I9="decl",AZ="@import",LZ="@namespace",BZ="@keyframes",zZ="@layer",HZ=Math.abs,cm=String.fromCharCode;function R9(e){return e.trim()}function gP(e,t,n){return e.replace(t,n)}function wd(e,t){return e.charCodeAt(t)|0}function Yd(e,t,n){return e.slice(t,n)}function tl(e){return e.length}function VZ(e){return e.length}function th(e,t){return t.push(e),e}var _y=1,Xd=1,M9=0,ni=0,ea=0,pf="";function $R(e,t,n,r,a,o,i,l){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:_y,column:Xd,length:i,return:"",siblings:l}}function WZ(){return ea}function KZ(){return ea=ni>0?wd(pf,--ni):0,Xd--,ea===10&&(Xd=1,_y--),ea}function Ni(){return ea=ni2||Pm(ea)>3?"":" "}function YZ(e,t){for(;--t&&Ni()&&!(ea<48||ea>102||ea>57&&ea<65||ea>70&&ea<97););return jy(e,j0()+(t<6&&Fs()==32&&Ni()==32))}function pP(e){for(;Ni();)switch(ea){case e:return ni;case 34:case 39:e!==34&&e!==39&&pP(ea);break;case 40:e===41&&pP(e);break;case 92:Ni();break}return ni}function XZ(e,t){for(;Ni()&&e+ea!==57;)if(e+ea===84&&Fs()===47)break;return"/*"+jy(t,ni-1)+"*"+cm(e===47?e:Ni())}function QZ(e){for(;!Pm(Fs());)Ni();return jy(e,ni)}function JZ(e){return UZ(F0("",null,null,null,[""],e=qZ(e),0,[0],e))}function F0(e,t,n,r,a,o,i,l,c){for(var u=0,d=0,f=i,m=0,g=0,h=0,b=1,p=1,S=1,C=0,x=0,w="",$=a,E=o,R=r,I=w;p;)switch(h=x,x=Ni()){case 40:h!=108&&wd(I,f-1)==58?(C++,I+="("):I+=ex(x);break;case 41:C--,I+=")";break;case 34:case 39:case 91:I+=ex(x);break;case 9:case 10:case 13:case 32:if(C>0){I+=cm(x);break}I+=GZ(h);break;case 92:I+=YZ(j0()-1,7);continue;case 47:switch(Fs()){case 42:case 47:th(ZZ(XZ(Ni(),j0()),t,n,c),c),(Pm(h||1)==5||Pm(Fs()||1)==5)&&tl(I)&&Yd(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[u++]=tl(I)*S;case 125*b:case 59:case 0:if(C>0&&x){I+=cm(x);break}switch(x){case 0:case 125:p=0;case 59+d:S==-1&&(I=gP(I,/\f/g,"")),g>0&&(tl(I)-f||b===0)&&th(g>32?JT(I+";",r,n,f-1,c):JT(gP(I," ","")+";",r,n,f-2,c),c);break;case 59:I+=";";default:if(th(R=QT(I,t,n,u,d,a,l,w,$=[],E=[],f,o),o),x===123)if(d===0)F0(I,t,R,R,$,o,f,l,E);else{switch(m){case 99:if(wd(I,3)===110)break;case 108:if(wd(I,2)===97)break;default:d=0;case 100:case 109:case 115:}d?F0(e,R,R,r&&th(QT(e,R,R,0,0,a,l,w,a,$=[],f,E),E),a,E,f,l,r?$:E):F0(I,R,R,R,[""],E,0,l,E)}}u=d=g=0,b=S=1,w=I="",f=i;break;case 58:f=1+tl(I),g=h;default:if(b<1){if(x==123)--b;else if(x==125&&b++==0&&KZ()==125)continue}switch(I+=cm(x),x*b){case 38:S=d>0?1:(I+="\f",-1);break;case 44:if(C>0)break;l[u++]=(tl(I)-1)*S,S=1;break;case 64:Fs()===45&&(I+=ex(Ni())),m=Fs(),d=f=tl(w=I+=QZ(j0())),x++;break;case 45:h===45&&tl(I)==2&&(b=0)}}return o}function QT(e,t,n,r,a,o,i,l,c,u,d,f){for(var m=a-1,g=a===0?o:[""],h=VZ(g),b=0,p=0,S=0;b0?g[C]+" "+x:gP(x,/&\f/g,g[C])))&&(c[S++]=w);return $R(e,t,n,a===0?O9:l,c,u,d,f)}function ZZ(e,t,n,r){return $R(e,t,n,P9,cm(WZ()),Yd(e,2,-2),0,r)}function JT(e,t,n,r,a){return $R(e,t,n,I9,Yd(e,0,r),Yd(e,r+1,-1),r,a)}function hP(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,l=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",g={};function h(S){var C=S.getName(l);if(!g[C]){var x=e(S.style,n,{root:!1,parentSelectors:i}),w=ce(x,1),$=w[0];g[C]="@keyframes ".concat(S.getName(l)).concat($)}}function b(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(x){Array.isArray(x)?b(x,C):x&&C.push(x)}),C}var p=b(Array.isArray(t)?t:[t]);return p.forEach(function(S){var C=typeof S=="string"&&!a?{}:S;if(typeof C=="string")m+="".concat(C,` +`);else if(C._keyframe)h(C);else{var x=f.reduce(function(w,$){var E;return($==null||(E=$.visit)===null||E===void 0?void 0:E.call($,w))||w},C);Object.keys(x).forEach(function(w){var $=x[w];if(it($)==="object"&&$&&(w!=="animationName"||!$._keyframe)&&!oee($)){var E=!1,R=w.trim(),I=!1;(a||o)&&l?R.startsWith("@")?E=!0:R==="&"?R=e8("",l,u):R=e8(w,l,u):a&&!l&&(R==="&"||R==="")&&(R="",I=!0);var O=e($,n,{root:I,injectHash:E,parentSelectors:[].concat(ke(i),[R])}),T=ce(O,2),_=T[0],k=T[1];g=P(P({},g),k),m+="".concat(R).concat(_)}else{let D=function(F,L){var B=F.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),K=L;!kZ[F]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),F==="animationName"&&L!==null&&L!==void 0&&L._keyframe&&(h(L),K=L.getName(l)),m+="".concat(B,":").concat(K,";")};var A,j=(A=$==null?void 0:$.value)!==null&&A!==void 0?A:$;it($)==="object"&&$!==null&&$!==void 0&&$[_9]&&Array.isArray(j)?j.forEach(function(F){D(w,F)}):D(w,j)}})}}),a?c&&(m&&(m="@layer ".concat(c.name," {").concat(m,"}")),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(c.name,";")}).join(` +`))):m="{".concat(m,"}"),[m,g]};function j9(e,t){return $m("".concat(e.join("%")).concat(t))}function lee(){return null}var F9="style";function pb(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=s.useContext(ug),f=d.autoClear;d.mock;var m=d.defaultCache,g=d.hashPriority,h=d.container,b=d.ssrInline,p=d.transformers,S=d.linters,C=d.cache,x=d.layer,w=n._tokenKey,$=[w];x&&$.push("layer"),$.push.apply($,ke(r));var E=mP,R=xR(F9,$,function(){var k=$.join("|");if(nee(k)){var A=ree(k),j=ce(A,2),D=j[0],F=j[1];if(D)return[D,w,F,{},l,u]}var L=t(),B=iee(L,{hashId:a,hashPriority:g,layer:x?o:void 0,path:r.join("-"),transformers:p,linters:S}),K=ce(B,2),W=K[0],V=K[1],q=D0(W),U=j9($,q);return[q,w,U,V,l,u]},function(k,A){var j=ce(k,3),D=j[2];(A||f)&&mP&&Em(D,{mark:Ti,attachTo:h})},function(k){var A=ce(k,4),j=A[0];A[1];var D=A[2],F=A[3];if(E&&j!==T9){var L={mark:Ti,prepend:x?!1:"queue",attachTo:h,priority:u},B=typeof i=="function"?i():i;B&&(L.csp={nonce:B});var K=[],W=[];Object.keys(F).forEach(function(q){q.startsWith("@layer")?K.push(q):W.push(q)}),K.forEach(function(q){kl(D0(F[q]),"_layer-".concat(q),P(P({},L),{},{prepend:!0}))});var V=kl(j,D,L);V[js]=C.instanceId,V.setAttribute(Ud,w),W.forEach(function(q){kl(D0(F[q]),"_effect-".concat(q),L)})}}),I=ce(R,3),O=I[0],T=I[1],_=I[2];return function(k){var A;return!b||E||!m?A=s.createElement(lee,null):A=s.createElement("style",Me({},z(z({},Ud,T),Ti,_),{dangerouslySetInnerHTML:{__html:O}})),s.createElement(s.Fragment,null,A,k)}}var see=function(t,n,r){var a=ce(t,6),o=a[0],i=a[1],l=a[2],c=a[3],u=a[4],d=a[5],f=r||{},m=f.plain;if(u)return null;var g=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return g=gb(o,i,l,h,m),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var p=D0(c[b]),S=gb(p,i,"_effect-".concat(b),h,m);b.startsWith("@layer")?g=S+g:g+=S}}),[d,l,g]},D9="cssVar",cee=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,i=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,d=s.useContext(ug),f=d.cache.instanceId,m=d.container,g=l._tokenKey,h=[].concat(ke(t.path),[r,u,g]),b=xR(D9,h,function(){var p=n(),S=w9(p,r,{prefix:a,unitless:o,ignore:i,scope:u}),C=ce(S,2),x=C[0],w=C[1],$=j9(h,w);return[x,w,$,r]},function(p){var S=ce(p,3),C=S[2];mP&&Em(C,{mark:Ti,attachTo:m})},function(p){var S=ce(p,3),C=S[1],x=S[2];if(C){var w=kl(C,x,{mark:Ti,prepend:"queue",attachTo:m,priority:-999});w[js]=f,w.setAttribute(Ud,r)}});return b},uee=function(t,n,r){var a=ce(t,4),o=a[1],i=a[2],l=a[3],c=r||{},u=c.plain;if(!o)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=gb(o,l,i,f,u);return[d,i,m]};z(z(z({},F9,see),E9,DZ),D9,uee);var Sn=(function(){function e(t,n){ir(this,e),z(this,"name",void 0),z(this,"style",void 0),z(this,"_keyframe",!0),this.name=t,this.style=n}return lr(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function Ju(e){return e.notSplit=!0,e}Ju(["borderTop","borderBottom"]),Ju(["borderTop"]),Ju(["borderBottom"]),Ju(["borderLeft","borderRight"]),Ju(["borderLeft"]),Ju(["borderRight"]);var Fy=s.createContext({});function ER(e){return h9(e)||v9(e)||Ty(e)||b9()}function Gn(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Gn(e,t.slice(0,-1))?e:k9(e,t,n,r)}function dee(e){return it(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function t8(e){return Array.isArray(e)?[]:{}}var fee=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ds(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=vee,e},A9=s.createContext(void 0);var L9={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"},B9={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},gee=P(P({},B9),{},{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 z9={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},hb={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"]},gee),timePickerLocale:Object.assign({},z9)},So="${label} is not a valid ${type}",Di={locale:"en",Pagination:L9,DatePicker:hb,TimePicker:z9,Calendar:hb,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:So,method:So,array:So,object:So,number:So,date:So,boolean:So,integer:So,float:So,regexp:So,email:So,url:So,hex:So},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"}};let k0=Object.assign({},Di.Modal),A0=[];const n8=()=>A0.reduce((e,t)=>Object.assign(Object.assign({},e),t),Di.Modal);function pee(e){if(e){const t=Object.assign({},e);return A0.push(t),k0=n8(),()=>{A0=A0.filter(n=>n!==t),k0=n8()}}k0=Object.assign({},Di.Modal)}function H9(){return k0}const PR=s.createContext(void 0),Ea=(e,t)=>{const n=s.useContext(PR),r=s.useMemo(()=>{var o;const i=t||Di[e],l=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),l||{})},[e,t,n]),a=s.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Di.locale:o},[n]);return[r,a]},hee="internalMark",bee=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;s.useEffect(()=>pee(t==null?void 0:t.Modal),[t]);const a=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(PR.Provider,{value:a},n)},OR={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"},Qd=Object.assign(Object.assign({},OR),{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}),ua=Math.round;function qS(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const HT=(e,t,n)=>n===0?e:e/100;function bv(e,t){const n=t||255;return e>n?n:e<0?0:e}class gn{constructor(t){z(this,"isValid",!0),z(this,"r",0),z(this,"g",0),z(this,"b",0),z(this,"a",1),z(this,"_h",void 0),z(this,"_s",void 0),z(this,"_l",void 0),z(this,"_v",void 0),z(this,"_max",void 0),z(this,"_min",void 0),z(this,"_brightness",void 0);function n(a){return a[0]in t&&a[1]in t&&a[2]in t}if(t)if(typeof t=="string"){let o=function(i){return a.startsWith(i)};var r=o;const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):o("rgb")?this.fromRgbString(a):o("hsl")?this.fromHslString(a):(o("hsv")||o("hsb"))&&this.fromHsvString(a)}else if(t instanceof gn)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(n("rgb"))this.r=bv(t.r),this.g=bv(t.g),this.b=bv(t.b),this.a=typeof t.a=="number"?bv(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("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 n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const i=o/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ua(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 n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=l=>(r[l]-this[l])*a+this[l],i={r:ua(o("r")),g:ua(o("g")),b:ua(o("b")),a:ua(o("a")*100)/100};return this._c(i)}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 n=this._c(t),r=this.a+n.a*(1-this.a),a=o=>ua((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}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 n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;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 o=ua(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ua(this.getSaturation()*100),r=ua(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}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,n,r){const a=this.clone();return a[t]=bv(n,r),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 n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const m=ua(r*255);this.r=m,this.g=m,this.b=m}let o=0,i=0,l=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,i=d):c>=1&&c<2?(o=d,i=u):c>=2&&c<3?(i=u,l=d):c>=3&&c<4?(i=d,l=u):c>=4&&c<5?(o=d,l=u):c>=5&&c<6&&(o=u,l=d);const f=r-u/2;this.r=ua((o+f)*255),this.g=ua((i+f)*255),this.b=ua((l+f)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=ua(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const i=t/60,l=Math.floor(i),c=i-l,u=ua(r*(1-n)*255),d=ua(r*(1-n*c)*255),f=ua(r*(1-n*(1-c))*255);switch(l){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=qS(t,HT);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=qS(t,HT);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=qS(t,(r,a)=>a.includes("%")?ua(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var th=2,VT=.16,tee=.05,nee=.05,ree=.15,P9=5,O9=4,aee=[{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 WT(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-th*t:Math.round(e.h)+th*t:r=n?Math.round(e.h)+th*t:Math.round(e.h)-th*t,r<0?r+=360:r>=360&&(r-=360),r}function KT(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-VT*t:t===O9?r=e.s+VT:r=e.s+tee*t,r>1&&(r=1),n&&t===P9&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function qT(e,t,n){var r;return n?r=e.v+nee*t:r=e.v-ree*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function qs(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new gn(e),a=r.toHsv(),o=P9;o>0;o-=1){var i=new gn({h:WT(a,o,!0),s:KT(a,o,!0),v:qT(a,o,!0)});n.push(i)}n.push(r);for(var l=1;l<=O9;l+=1){var c=new gn({h:WT(a,l),s:KT(a,l),v:qT(a,l)});n.push(c)}return t.theme==="dark"?aee.map(function(u){var d=u.index,f=u.amount;return new gn(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var Wc={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"},mb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];mb.primary=mb[5];var gb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];gb.primary=gb[5];var pb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];pb.primary=pb[5];var Im=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Im.primary=Im[5];var hb=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];hb.primary=hb[5];var bb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];bb.primary=bb[5];var yb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];yb.primary=yb[5];var Cb=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Cb.primary=Cb[5];var Rm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Rm.primary=Rm[5];var Sb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Sb.primary=Sb[5];var xb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];xb.primary=xb[5];var wb=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];wb.primary=wb[5];var Mm=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Mm.primary=Mm[5];var oee=Mm,F0={red:mb,volcano:gb,orange:pb,gold:Im,yellow:hb,lime:bb,green:yb,cyan:Cb,blue:Rm,geekblue:Sb,purple:xb,magenta:wb,grey:Mm},$b=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];$b.primary=$b[5];var Eb=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Eb.primary=Eb[5];var Pb=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Pb.primary=Pb[5];var Ob=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Ob.primary=Ob[5];var Ib=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Ib.primary=Ib[5];var Rb=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];Rb.primary=Rb[5];var Mb=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Mb.primary=Mb[5];var Tb=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Tb.primary=Tb[5];var Nb=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Nb.primary=Nb[5];var _b=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];_b.primary=_b[5];var jb=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];jb.primary=jb[5];var Fb=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Fb.primary=Fb[5];var Db=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Db.primary=Db[5];var iee={red:$b,volcano:Eb,orange:Pb,gold:Ob,yellow:Ib,lime:Rb,green:Mb,cyan:Tb,blue:Nb,geekblue:_b,purple:jb,magenta:Fb,grey:Db};const lee=Object.freeze(Object.defineProperty({__proto__:null,blue:Rm,blueDark:Nb,cyan:Cb,cyanDark:Tb,geekblue:Sb,geekblueDark:_b,generate:qs,gold:Im,goldDark:Ob,gray:oee,green:yb,greenDark:Mb,grey:Mm,greyDark:Db,lime:bb,limeDark:Rb,magenta:wb,magentaDark:Fb,orange:pb,orangeDark:Pb,presetDarkPalettes:iee,presetPalettes:F0,presetPrimaryColors:Wc,purple:xb,purpleDark:jb,red:mb,redDark:$b,volcano:gb,volcanoDark:Eb,yellow:hb,yellowDark:Ib},Symbol.toStringTag,{value:"Module"}));function I9(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:o,colorInfo:i,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=t(l),f=t(r),m=t(a),g=t(o),h=t(i),b=n(c,u),p=e.colorLink||e.colorInfo,S=t(p),C=new gn(g[1]).mix(new gn(g[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:C,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg: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:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new gn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const see=e=>{let t=e,n=e,r=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?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function cee(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},see(r))}const R9=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function D0(e){return(e+8)/e}function uee(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:D0(n)}))}const M9=e=>{const t=uee(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),a=n[1],o=n[0],i=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function dee(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Ko=(e,t)=>new gn(e).setA(t).toRgbString(),yv=(e,t)=>new gn(e).darken(t).toHexString(),fee=e=>{const t=qs(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]}},vee=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ko(r,.88),colorTextSecondary:Ko(r,.65),colorTextTertiary:Ko(r,.45),colorTextQuaternary:Ko(r,.25),colorFill:Ko(r,.15),colorFillSecondary:Ko(r,.06),colorFillTertiary:Ko(r,.04),colorFillQuaternary:Ko(r,.02),colorBgSolid:Ko(r,1),colorBgSolidHover:Ko(r,.75),colorBgSolidActive:Ko(r,.95),colorBgLayout:yv(n,4),colorBgContainer:yv(n,0),colorBgElevated:yv(n,0),colorBgSpotlight:Ko(r,.85),colorBgBlur:"transparent",colorBorder:yv(n,15),colorBorderSecondary:yv(n,6)}};function Ty(e){Wc.pink=Wc.magenta,F0.pink=F0.magenta;const t=Object.keys(mR).map(n=>{const r=e[n]===Wc[n]?F0[n]:qs(e[n]);return Array.from({length:10},()=>1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),I9(e,{generateColorPalettes:fee,generateNeutralColorPalettes:vee})),M9(e.fontSize)),dee(e)),R9(e)),cee(e))}const gR=Pm(Ty),Tm={token:Yd,override:{override:Yd},hashed:!0},pR=ee.createContext(Tm),Nm="ant",Ny="anticon",mee=["outlined","borderless","filled","underlined"],gee=(e,t)=>t||(e?`${Nm}-${e}`:Nm),jt=s.createContext({getPrefixCls:gee,iconPrefixCls:Ny}),{Consumer:JKe}=jt,UT={};function lr(e){const t=s.useContext(jt),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,o=t[e];return Object.assign(Object.assign({classNames:UT,styles:UT},o),{getPrefixCls:n,direction:r,getPopupContainer:a})}const pee=`-ant-${Date.now()}-${Math.random()}`;function hee(e,t){const n={},r=(i,l)=>{let c=i.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},a=(i,l)=>{const c=new gn(i),u=qs(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new gn(t.primaryColor),l=qs(i.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setA(u.a*.12));const c=new gn(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.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"),` +'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}),da=Math.round;function tx(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const r8=(e,t,n)=>n===0?e:e/100;function bv(e,t){const n=t||255;return e>n?n:e<0?0:e}class pn{constructor(t){z(this,"isValid",!0),z(this,"r",0),z(this,"g",0),z(this,"b",0),z(this,"a",1),z(this,"_h",void 0),z(this,"_s",void 0),z(this,"_l",void 0),z(this,"_v",void 0),z(this,"_max",void 0),z(this,"_min",void 0),z(this,"_brightness",void 0);function n(a){return a[0]in t&&a[1]in t&&a[2]in t}if(t)if(typeof t=="string"){let o=function(i){return a.startsWith(i)};var r=o;const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):o("rgb")?this.fromRgbString(a):o("hsl")?this.fromHslString(a):(o("hsv")||o("hsb"))&&this.fromHsvString(a)}else if(t instanceof pn)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(n("rgb"))this.r=bv(t.r),this.g=bv(t.g),this.b=bv(t.b),this.a=typeof t.a=="number"?bv(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("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 n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const i=o/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=da(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 n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=l=>(r[l]-this[l])*a+this[l],i={r:da(o("r")),g:da(o("g")),b:da(o("b")),a:da(o("a")*100)/100};return this._c(i)}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 n=this._c(t),r=this.a+n.a*(1-this.a),a=o=>da((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}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 n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;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 o=da(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=da(this.getSaturation()*100),r=da(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}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,n,r){const a=this.clone();return a[t]=bv(n,r),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 n=t.replace("#","");function r(a,o){return parseInt(n[a]+n[o||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const m=da(r*255);this.r=m,this.g=m,this.b=m}let o=0,i=0,l=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,i=d):c>=1&&c<2?(o=d,i=u):c>=2&&c<3?(i=u,l=d):c>=3&&c<4?(i=d,l=u):c>=4&&c<5?(o=d,l=u):c>=5&&c<6&&(o=u,l=d);const f=r-u/2;this.r=da((o+f)*255),this.g=da((i+f)*255),this.b=da((l+f)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=da(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const i=t/60,l=Math.floor(i),c=i-l,u=da(r*(1-n)*255),d=da(r*(1-n*c)*255),f=da(r*(1-n*(1-c))*255);switch(l){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=tx(t,r8);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=tx(t,r8);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=tx(t,(r,a)=>a.includes("%")?da(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var nh=2,a8=.16,yee=.05,Cee=.05,See=.15,V9=5,W9=4,xee=[{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 o8(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-nh*t:Math.round(e.h)+nh*t:r=n?Math.round(e.h)+nh*t:Math.round(e.h)-nh*t,r<0?r+=360:r>=360&&(r-=360),r}function i8(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-a8*t:t===W9?r=e.s+a8:r=e.s+yee*t,r>1&&(r=1),n&&t===V9&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function l8(e,t,n){var r;return n?r=e.v+Cee*t:r=e.v-See*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Ks(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new pn(e),a=r.toHsv(),o=V9;o>0;o-=1){var i=new pn({h:o8(a,o,!0),s:i8(a,o,!0),v:l8(a,o,!0)});n.push(i)}n.push(r);for(var l=1;l<=W9;l+=1){var c=new pn({h:o8(a,l),s:i8(a,l),v:l8(a,l)});n.push(c)}return t.theme==="dark"?xee.map(function(u){var d=u.index,f=u.amount;return new pn(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var Wc={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"},bb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bb.primary=bb[5];var yb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];yb.primary=yb[5];var Cb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Cb.primary=Cb[5];var Om=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Om.primary=Om[5];var Sb=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Sb.primary=Sb[5];var xb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];xb.primary=xb[5];var wb=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];wb.primary=wb[5];var $b=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];$b.primary=$b[5];var Im=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Im.primary=Im[5];var Eb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Eb.primary=Eb[5];var Pb=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Pb.primary=Pb[5];var Ob=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ob.primary=Ob[5];var Rm=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Rm.primary=Rm[5];var wee=Rm,L0={red:bb,volcano:yb,orange:Cb,gold:Om,yellow:Sb,lime:xb,green:wb,cyan:$b,blue:Im,geekblue:Eb,purple:Pb,magenta:Ob,grey:Rm},Ib=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Ib.primary=Ib[5];var Rb=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Rb.primary=Rb[5];var Mb=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Mb.primary=Mb[5];var Tb=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Tb.primary=Tb[5];var Nb=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Nb.primary=Nb[5];var _b=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];_b.primary=_b[5];var jb=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];jb.primary=jb[5];var Fb=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Fb.primary=Fb[5];var Db=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Db.primary=Db[5];var kb=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];kb.primary=kb[5];var Ab=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];Ab.primary=Ab[5];var Lb=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Lb.primary=Lb[5];var Bb=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Bb.primary=Bb[5];var $ee={red:Ib,volcano:Rb,orange:Mb,gold:Tb,yellow:Nb,lime:_b,green:jb,cyan:Fb,blue:Db,geekblue:kb,purple:Ab,magenta:Lb,grey:Bb};const Eee=Object.freeze(Object.defineProperty({__proto__:null,blue:Im,blueDark:Db,cyan:$b,cyanDark:Fb,geekblue:Eb,geekblueDark:kb,generate:Ks,gold:Om,goldDark:Tb,gray:wee,green:wb,greenDark:jb,grey:Rm,greyDark:Bb,lime:xb,limeDark:_b,magenta:Ob,magentaDark:Lb,orange:Cb,orangeDark:Mb,presetDarkPalettes:$ee,presetPalettes:L0,presetPrimaryColors:Wc,purple:Pb,purpleDark:Ab,red:bb,redDark:Ib,volcano:yb,volcanoDark:Rb,yellow:Sb,yellowDark:Nb},Symbol.toStringTag,{value:"Module"}));function K9(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:o,colorInfo:i,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=t(l),f=t(r),m=t(a),g=t(o),h=t(i),b=n(c,u),p=e.colorLink||e.colorInfo,S=t(p),C=new pn(g[1]).mix(new pn(g[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:C,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg: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:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new pn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Pee=e=>{let t=e,n=e,r=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?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function Oee(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},Pee(r))}const q9=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function B0(e){return(e+8)/e}function Iee(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:B0(n)}))}const U9=e=>{const t=Iee(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),a=n[1],o=n[0],i=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*a),fontHeightLG:Math.round(u*i),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Ree(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const qo=(e,t)=>new pn(e).setA(t).toRgbString(),yv=(e,t)=>new pn(e).darken(t).toHexString(),Mee=e=>{const t=Ks(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]}},Tee=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:qo(r,.88),colorTextSecondary:qo(r,.65),colorTextTertiary:qo(r,.45),colorTextQuaternary:qo(r,.25),colorFill:qo(r,.15),colorFillSecondary:qo(r,.06),colorFillTertiary:qo(r,.04),colorFillQuaternary:qo(r,.02),colorBgSolid:qo(r,1),colorBgSolidHover:qo(r,.75),colorBgSolidActive:qo(r,.95),colorBgLayout:yv(n,4),colorBgContainer:yv(n,0),colorBgElevated:yv(n,0),colorBgSpotlight:qo(r,.85),colorBgBlur:"transparent",colorBorder:yv(n,15),colorBorderSecondary:yv(n,6)}};function Dy(e){Wc.pink=Wc.magenta,L0.pink=L0.magenta;const t=Object.keys(OR).map(n=>{const r=e[n]===Wc[n]?L0[n]:Ks(e[n]);return Array.from({length:10},()=>1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),K9(e,{generateColorPalettes:Mee,generateNeutralColorPalettes:Tee})),U9(e.fontSize)),Ree(e)),q9(e)),Oee(e))}const IR=Gd(Dy),Mm={token:Qd,override:{override:Qd},hashed:!0},RR=ee.createContext(Mm),Tm="ant",ky="anticon",Nee=["outlined","borderless","filled","underlined"],_ee=(e,t)=>t||(e?`${Tm}-${e}`:Tm),jt=s.createContext({getPrefixCls:_ee,iconPrefixCls:ky}),{Consumer:Xqe}=jt,s8={};function sr(e){const t=s.useContext(jt),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,o=t[e];return Object.assign(Object.assign({classNames:s8,styles:s8},o),{getPrefixCls:n,direction:r,getPopupContainer:a})}const jee=`-ant-${Date.now()}-${Math.random()}`;function Fee(e,t){const n={},r=(i,l)=>{let c=i.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},a=(i,l)=>{const c=new pn(i),u=Ks(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new pn(t.primaryColor),l=Ks(i.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setA(u.a*.12));const c=new pn(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.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(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` `)} } - `.trim()}function bee(e,t){const n=hee(e,t);va()&&kl(n,`${pee}-dynamic-theme`)}const Lr=s.createContext(!1),hR=({children:e,disabled:t})=>{const n=s.useContext(Lr);return s.createElement(Lr.Provider,{value:t??n},e)},Xc=s.createContext(void 0),yee=({children:e,size:t})=>{const n=s.useContext(Xc);return s.createElement(Xc.Provider,{value:t||n},e)};function Cee(){const e=s.useContext(Lr),t=s.useContext(Xc);return{componentDisabled:e,componentSize:t}}var T9=ir(function e(){or(this,e)}),N9="CALC_UNIT",See=new RegExp(N9,"g");function US(e){return typeof e=="number"?"".concat(e).concat(N9):e}var xee=(function(e){vo(n,e);var t=Do(n);function n(r,a){var o;or(this,n),o=t.call(this),z(Ft(o),"result",""),z(Ft(o),"unitlessCssVar",void 0),z(Ft(o),"lowPriority",void 0);var i=it(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=US(r):i==="string"&&(o.result=r),o}return ir(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(US(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(US(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?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 n?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 o=this,i=a||{},l=i.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(See,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(T9),wee=(function(e){vo(n,e);var t=Do(n);function n(r){var a;return or(this,n),a=t.call(this),z(Ft(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return ir(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n})(T9),$ee=function(t,n){var r=t==="css"?xee:wee;return function(a){return new r(a,n)}},GT=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Zt(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>Iee&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),JT=new Ree;function Mee(e,t){return ee.useMemo(function(){var n=JT.get(t);if(n)return n;var r=e();return JT.set(t,r),r},t)}var Tee=function(){return{}};function Nee(e){var t=e.useCSP,n=t===void 0?Tee:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,l=e.getCompUnitless;function c(m,g,h,b){var p=Array.isArray(m)?m[0]:m;function S(I){return"".concat(String(p)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var C=(b==null?void 0:b.unitless)||{},x=typeof l=="function"?l(m):{},w=P(P({},x),{},z({},S("zIndexPopup"),!0));Object.keys(C).forEach(function(I){w[S(I)]=C[I]});var $=P(P({},b),{},{unitless:w,prefixToken:S}),E=d(m,g,h,$),R=u(p,h,$);return function(I){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,T=E(I,O),N=ce(T,2),A=N[1],k=R(O),j=ce(k,2),D=j[0],F=j[1];return[D,A,F]}}function u(m,g,h){var b=h.unitless,p=h.injectStyle,S=p===void 0?!0:p,C=h.prefixToken,x=h.ignore,w=function(R){var I=R.rootCls,O=R.cssVar,T=O===void 0?{}:O,N=r(),A=N.realToken;return KZ({path:[m],prefix:T.prefix,key:T.key,unitless:b,ignore:x,token:A,scope:I},function(){var k=QT(m,A,g),j=YT(m,A,k,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(k).forEach(function(D){j[C(D)]=j[D],delete j[D]}),j}),null},$=function(R){var I=r(),O=I.cssVar;return[function(T){return S&&O?ee.createElement(ee.Fragment,null,ee.createElement(w,{rootCls:R,cssVar:O,component:m}),T):T},O==null?void 0:O.key]};return $}function d(m,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(m)?m:[m,m],S=ce(p,1),C=S[0],x=p.join("-"),w=e.layer||{name:"antd"};return function($){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,R=r(),I=R.theme,O=R.realToken,T=R.hashId,N=R.token,A=R.cssVar,k=a(),j=k.rootPrefixCls,D=k.iconPrefixCls,F=n(),L=A?"css":"js",B=Mee(function(){var G=new Set;return A&&Object.keys(b.unitless||{}).forEach(function(Y){G.add(R0(Y,A.prefix)),G.add(R0(Y,GT(C,A.prefix)))}),$ee(L,G)},[L,C,A==null?void 0:A.prefix]),K=Oee(L),W=K.max,V=K.min,q={theme:I,token:N,hashId:T,nonce:function(){return F.nonce},clientOnly:b.clientOnly,layer:w,order:b.order||-999};typeof o=="function"&&fb(P(P({},q),{},{clientOnly:!1,path:["Shared",j]}),function(){return o(N,{prefix:{rootPrefixCls:j,iconPrefixCls:D},csp:F})});var U=fb(P(P({},q),{},{path:[x,$,D]}),function(){if(b.injectStyle===!1)return[];var G=Pee(N),Y=G.token,J=G.flush,Q=QT(C,O,h),Z=".".concat($),ne=YT(C,O,Q,{deprecatedTokens:b.deprecatedTokens});A&&Q&&it(Q)==="object"&&Object.keys(Q).forEach(function(fe){Q[fe]="var(".concat(R0(fe,GT(C,A.prefix)),")")});var ae=tn(Y,{componentCls:Z,prefixCls:$,iconCls:".".concat(D),antCls:".".concat(j),calc:B,max:W,min:V},A?Q:ne),le=g(ae,{hashId:T,prefixCls:$,rootPrefixCls:j,iconPrefixCls:D});J(C,ne);var re=typeof i=="function"?i(ae,$,E,b.resetFont):null;return[b.resetStyle===!1?null:re,le]});return[U,T]}}function f(m,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=d(m,g,h,P({resetStyle:!1,order:-998},b)),S=function(x){var w=x.prefixCls,$=x.rootCls,E=$===void 0?w:$;return p(w,E),null};return S}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const Us=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],uo="5.29.3";function YS(e){return e>=0&&e<=255}function Uv(e,t){const{r:n,g:r,b:a,a:o}=new gn(e).toRgb();if(o<1)return e;const{r:i,g:l,b:c}=new gn(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((a-c*(1-u))/u);if(YS(d)&&YS(f)&&YS(m))return new gn({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new gn({r:n,g:r,b:a,a:1}).toRgbString()}var _ee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{delete r[m]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,l=768,c=992,u=1200,d=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Uv(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:Uv(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Uv(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:Uv(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:` + `.trim()}function Dee(e,t){const n=Fee(e,t);ma()&&kl(n,`${jee}-dynamic-theme`)}const Br=s.createContext(!1),MR=({children:e,disabled:t})=>{const n=s.useContext(Br);return s.createElement(Br.Provider,{value:t??n},e)},Xc=s.createContext(void 0),kee=({children:e,size:t})=>{const n=s.useContext(Xc);return s.createElement(Xc.Provider,{value:t||n},e)};function Aee(){const e=s.useContext(Br),t=s.useContext(Xc);return{componentDisabled:e,componentSize:t}}var G9=lr(function e(){ir(this,e)}),Y9="CALC_UNIT",Lee=new RegExp(Y9,"g");function nx(e){return typeof e=="number"?"".concat(e).concat(Y9):e}var Bee=(function(e){mo(n,e);var t=ko(n);function n(r,a){var o;ir(this,n),o=t.call(this),z(Ft(o),"result",""),z(Ft(o),"unitlessCssVar",void 0),z(Ft(o),"lowPriority",void 0);var i=it(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):i==="number"?o.result=nx(r):i==="string"&&(o.result=r),o}return lr(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(nx(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(nx(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?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 n?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 o=this,i=a||{},l=i.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(Lee,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(G9),zee=(function(e){mo(n,e);var t=ko(n);function n(r){var a;return ir(this,n),a=t.call(this),z(Ft(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return lr(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n})(G9),Hee=function(t,n){var r=t==="css"?Bee:zee;return function(a){return new r(a,n)}},c8=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Zt(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>qee&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),v8=new Uee;function Gee(e,t){return ee.useMemo(function(){var n=v8.get(t);if(n)return n;var r=e();return v8.set(t,r),r},t)}var Yee=function(){return{}};function Q9(e){var t=e.useCSP,n=t===void 0?Yee:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,i=e.getCommonStyle,l=e.getCompUnitless;function c(m,g,h,b){var p=Array.isArray(m)?m[0]:m;function S(I){return"".concat(String(p)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var C=(b==null?void 0:b.unitless)||{},x=typeof l=="function"?l(m):{},w=P(P({},x),{},z({},S("zIndexPopup"),!0));Object.keys(C).forEach(function(I){w[S(I)]=C[I]});var $=P(P({},b),{},{unitless:w,prefixToken:S}),E=d(m,g,h,$),R=u(p,h,$);return function(I){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,T=E(I,O),_=ce(T,2),k=_[1],A=R(O),j=ce(A,2),D=j[0],F=j[1];return[D,k,F]}}function u(m,g,h){var b=h.unitless,p=h.injectStyle,S=p===void 0?!0:p,C=h.prefixToken,x=h.ignore,w=function(R){var I=R.rootCls,O=R.cssVar,T=O===void 0?{}:O,_=r(),k=_.realToken;return cee({path:[m],prefix:T.prefix,key:T.key,unitless:b,ignore:x,token:k,scope:I},function(){var A=f8(m,k,g),j=u8(m,k,A,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(A).forEach(function(D){j[C(D)]=j[D],delete j[D]}),j}),null},$=function(R){var I=r(),O=I.cssVar;return[function(T){return S&&O?ee.createElement(ee.Fragment,null,ee.createElement(w,{rootCls:R,cssVar:O,component:m}),T):T},O==null?void 0:O.key]};return $}function d(m,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(m)?m:[m,m],S=ce(p,1),C=S[0],x=p.join("-"),w=e.layer||{name:"antd"};return function($){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,R=r(),I=R.theme,O=R.realToken,T=R.hashId,_=R.token,k=R.cssVar,A=a(),j=A.rootPrefixCls,D=A.iconPrefixCls,F=n(),L=k?"css":"js",B=Gee(function(){var G=new Set;return k&&Object.keys(b.unitless||{}).forEach(function(Y){G.add(_0(Y,k.prefix)),G.add(_0(Y,c8(C,k.prefix)))}),Hee(L,G)},[L,C,k==null?void 0:k.prefix]),K=Kee(L),W=K.max,V=K.min,q={theme:I,token:_,hashId:T,nonce:function(){return F.nonce},clientOnly:b.clientOnly,layer:w,order:b.order||-999};typeof o=="function"&&pb(P(P({},q),{},{clientOnly:!1,path:["Shared",j]}),function(){return o(_,{prefix:{rootPrefixCls:j,iconPrefixCls:D},csp:F})});var U=pb(P(P({},q),{},{path:[x,$,D]}),function(){if(b.injectStyle===!1)return[];var G=Wee(_),Y=G.token,J=G.flush,Q=f8(C,O,h),Z=".".concat($),ne=u8(C,O,Q,{deprecatedTokens:b.deprecatedTokens});k&&Q&&it(Q)==="object"&&Object.keys(Q).forEach(function(fe){Q[fe]="var(".concat(_0(fe,c8(C,k.prefix)),")")});var ae=en(Y,{componentCls:Z,prefixCls:$,iconCls:".".concat(D),antCls:".".concat(j),calc:B,max:W,min:V},k?Q:ne),le=g(ae,{hashId:T,prefixCls:$,rootPrefixCls:j,iconPrefixCls:D});J(C,ne);var re=typeof i=="function"?i(ae,$,E,b.resetFont):null;return[b.resetStyle===!1?null:re,le]});return[U,T]}}function f(m,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=d(m,g,h,P({resetStyle:!1,order:-998},b)),S=function(x){var w=x.prefixCls,$=x.rootCls,E=$===void 0?w:$;return p(w,E),null};return S}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const qs=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],fo="5.29.3";function ax(e){return e>=0&&e<=255}function Uv(e,t){const{r:n,g:r,b:a,a:o}=new pn(e).toRgb();if(o<1)return e;const{r:i,g:l,b:c}=new pn(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-i*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((a-c*(1-u))/u);if(ax(d)&&ax(f)&&ax(m))return new pn({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new pn({r:n,g:r,b:a,a:1}).toRgbString()}var Xee=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{delete r[m]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,l=768,c=992,u=1200,d=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Uv(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:Uv(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Uv(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:Uv(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) @@ -73,9 +73,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,screenXS:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new gn("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new gn("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new gn("rgba(0, 0, 0, 0.09)").toRgbString()} + 0 1px 2px -2px ${new pn("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new pn("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new pn("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), @@ -92,7 +92,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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)"}),r)}var ZT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=ZT(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=bR(i),o&&Object.entries(o).forEach(([l,c])=>{const{theme:u}=c,d=ZT(c,["theme"]);let f=d;u&&(f=F9(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=f}),i};function qr(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=ee.useContext(pR),o=`${uo}-${t||""}`,i=n||gR,[l,c,u]=s9(i,[Yd,e],{salt:o,override:r,getComputedToken:F9,formatToken:bR,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:j9,ignore:jee,preserve:Fee}});return[i,u,t?c:"",l,a]}const ni={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},wn=(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}),su=()=>({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"}}),_m=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Dee=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"}}}),kee=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},l),i),{[a]:i})}},ri=(e,t)=>({outline:`${me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ga=(e,t)=>({"&:focus-visible":ri(e,t)}),D9=e=>({[`.${e}`]:Object.assign(Object.assign({},su()),{[`.${e} .${e}-icon`]:{display:"block"}})}),yR=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"},Ga(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:un,genComponentStyleHook:k9,genSubStyleComponent:pf}=Nee({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=s.useContext(jt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=qr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=s.useContext(jt);return e??{}},getResetStyles:(e,t)=>{var n;const r=Dee(e);return[r,{"&":r},D9((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:Ny)]},getCommonStyle:kee,getCompUnitless:()=>j9});function _y(e,t){return Us.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:l}))},{})}const Aee=(e,t)=>{const[n,r]=qr();return fb({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>D9(e))},Lee=Object.assign({},sg),{useId:eN}=Lee,Bee=()=>"",zee=typeof eN>"u"?Bee:eN;function Hee(e,t,n){var r;cl();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},Tm),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Tm.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=zee();return Hl(()=>{var l,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=a.cssVar)!==null&&l!==void 0?l:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:u,cssVar:f})},[a,o],(l,c)=>l.some((u,d)=>{const f=c[d];return!ei(u,f,!0)}))}var Vee=["children"],A9=s.createContext({});function Wee(e){var t=e.children,n=Ue(e,Vee);return s.createElement(A9.Provider,{value:n},t)}var Kee=(function(e){vo(n,e);var t=Do(n);function n(){return or(this,n),t.apply(this,arguments)}return ir(n,[{key:"render",value:function(){return this.props.children}}]),n})(s.Component);function qee(e){var t=s.useReducer(function(l){return l+1},0),n=ce(t,2),r=n[1],a=s.useRef(e),o=Zt(function(){return a.current}),i=Zt(function(l){a.current=typeof l=="function"?l(a.current):l,r()});return[o,i]}var bs="none",nh="appear",rh="enter",ah="leave",tN="none",$i="prepare",hd="start",bd="active",CR="end",L9="prepared";function nN(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function Uee(e,t){var n={animationend:nN("Animation","AnimationEnd"),transitionend:nN("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Gee=Uee(va(),typeof window<"u"?window:{}),B9={};if(va()){var Yee=document.createElement("div");B9=Yee.style}var oh={};function z9(e){if(oh[e])return oh[e];var t=Gee[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=on(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return s.useEffect(function(){return function(){t()}},[]),[n,t]});var Jee=[$i,hd,bd,CR],Zee=[$i,L9],q9=!1,ete=!0;function U9(e){return e===bd||e===CR}const tte=(function(e,t,n){var r=Qc(tN),a=ce(r,2),o=a[0],i=a[1],l=Qee(),c=ce(l,2),u=c[0],d=c[1];function f(){i($i,!0)}var m=t?Zee:Jee;return K9(function(){if(o!==tN&&o!==CR){var g=m.indexOf(o),h=m[g+1],b=n(o);b===q9?i(h,!0):h&&u(function(p){function S(){p.isCanceled()||i(h,!0)}b===!0?S():Promise.resolve(b).then(S)})}},[e,o]),s.useEffect(function(){return function(){d()}},[]),[f,o]});function nte(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,l=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,b=r.onAppearStart,p=r.onEnterStart,S=r.onLeaveStart,C=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,$=r.onAppearEnd,E=r.onEnterEnd,R=r.onLeaveEnd,I=r.onVisibleChanged,O=Qc(),T=ce(O,2),N=T[0],A=T[1],k=qee(bs),j=ce(k,2),D=j[0],F=j[1],L=Qc(null),B=ce(L,2),K=B[0],W=B[1],V=D(),q=s.useRef(!1),U=s.useRef(null);function G(){return n()}var Y=s.useRef(!1);function J(){F(bs),W(null,!0)}var Q=Zt(function(pe){var Se=D();if(Se!==bs){var ge=G();if(!(pe&&!pe.deadline&&pe.target!==ge)){var ye=Y.current,xe;Se===nh&&ye?xe=$==null?void 0:$(ge,pe):Se===rh&&ye?xe=E==null?void 0:E(ge,pe):Se===ah&&ye&&(xe=R==null?void 0:R(ge,pe)),ye&&xe!==!1&&J()}}}),Z=Xee(Q),ne=ce(Z,1),ae=ne[0],le=function(Se){switch(Se){case nh:return z(z(z({},$i,m),hd,b),bd,C);case rh:return z(z(z({},$i,g),hd,p),bd,x);case ah:return z(z(z({},$i,h),hd,S),bd,w);default:return{}}},re=s.useMemo(function(){return le(V)},[V]),fe=tte(V,!e,function(pe){if(pe===$i){var Se=re[$i];return Se?Se(G()):q9}if(ie in re){var ge;W(((ge=re[ie])===null||ge===void 0?void 0:ge.call(re,G(),null))||null)}return ie===bd&&V!==bs&&(ae(G()),d>0&&(clearTimeout(U.current),U.current=setTimeout(function(){Q({deadline:!0})},d))),ie===L9&&J(),ete}),ue=ce(fe,2),de=ue[0],ie=ue[1],se=U9(ie);Y.current=se;var ve=s.useRef(null);K9(function(){if(!(q.current&&ve.current===t)){A(t);var pe=q.current;q.current=!0;var Se;!pe&&t&&l&&(Se=nh),pe&&t&&o&&(Se=rh),(pe&&!t&&u||!pe&&f&&!t&&u)&&(Se=ah);var ge=le(Se);Se&&(e||ge[$i])?(F(Se),de()):F(bs),ve.current=t}},[t]),s.useEffect(function(){(V===nh&&!l||V===rh&&!o||V===ah&&!u)&&F(bs)},[l,o,u]),s.useEffect(function(){return function(){q.current=!1,clearTimeout(U.current)}},[]);var he=s.useRef(!1);s.useEffect(function(){N&&(he.current=!0),N!==void 0&&V===bs&&((he.current||N)&&(I==null||I(N)),he.current=!0)},[N,V]);var Ce=K;return re[$i]&&ie===hd&&(Ce=P({transition:"none"},Ce)),[V,ie,Ce,N??t]}function rte(e){var t=e;it(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=s.forwardRef(function(a,o){var i=a.visible,l=i===void 0?!0:i,c=a.removeOnLeave,u=c===void 0?!0:c,d=a.forceRender,f=a.children,m=a.motionName,g=a.leavedClassName,h=a.eventProps,b=s.useContext(A9),p=b.motion,S=n(a,p),C=s.useRef(),x=s.useRef();function w(){try{return C.current instanceof HTMLElement?C.current:I0(x.current)}catch{return null}}var $=nte(S,l,w,a),E=ce($,4),R=E[0],I=E[1],O=E[2],T=E[3],N=s.useRef(T);T&&(N.current=!0);var A=s.useCallback(function(B){C.current=B,xm(o,B)},[o]),k,j=P(P({},h),{},{visible:l});if(!f)k=null;else if(R===bs)T?k=f(P({},j),A):!u&&N.current&&g?k=f(P(P({},j),{},{className:g}),A):d||!u&&!g?k=f(P(P({},j),{},{style:{display:"none"}}),A):k=null;else{var D;I===$i?D="prepare":U9(I)?D="active":I===hd&&(D="start");var F=oN(m,"".concat(R,"-").concat(D));k=f(P(P({},j),{},{className:oe(oN(m,R),z(z({},F,F&&D),m,typeof m=="string")),style:O}),A)}if(s.isValidElement(k)&&_i(k)){var L=ec(k);L||(k=s.cloneElement(k,{ref:A}))}return s.createElement(Kee,{ref:x},k)});return r.displayName="CSSMotion",r}const ma=rte(W9);var uP="add",dP="keep",fP="remove",XS="removed";function ate(e){var t;return e&&it(e)==="object"&&"key"in e?t=e:t={key:e},P(P({},t),{},{key:String(t.key)})}function vP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(ate)}function ote(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=vP(e),i=vP(t);o.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==fP}),n.forEach(function(d){d.key===u&&(d.status=dP)})}),n}var ite=["component","children","onVisibleChanged","onAllRemoved"],lte=["status"],ste=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function cte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ma,n=(function(r){vo(o,r);var a=Do(o);function o(){var i;or(this,o);for(var l=arguments.length,c=new Array(l),u=0;unull;var fte=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const pte=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(kb=t),n!==void 0&&(Y9=n),"holderRender"in e&&(Q9=a),r&&(gte(r)?bee(k0(),r):X9=r)},J9=()=>({getPrefixCls:(e,t)=>t||(e?`${k0()}-${e}`:k0()),getIconPrefixCls:mte,getRootPrefixCls:()=>kb||k0(),getTheme:()=>X9,holderRender:Q9}),hte=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:l,componentSize:c,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:b,legacyLocale:p,parentContext:S,iconPrefixCls:C,theme:x,componentDisabled:w,segmented:$,statistic:E,spin:R,calendar:I,carousel:O,cascader:T,collapse:N,typography:A,checkbox:k,descriptions:j,divider:D,drawer:F,skeleton:L,steps:B,image:K,layout:W,list:V,mentions:q,modal:U,progress:G,result:Y,slider:J,breadcrumb:Q,menu:Z,pagination:ne,input:ae,textArea:le,empty:re,badge:fe,radio:ue,rate:de,switch:ie,transfer:se,avatar:ve,message:he,tag:Ce,table:pe,card:Se,tabs:ge,timeline:ye,timePicker:xe,upload:$e,notification:He,tree:Te,colorPicker:Re,datePicker:Fe,rangePicker:je,flex:Ee,wave:Le,dropdown:Pe,warning:ze,tour:Oe,tooltip:we,popover:_e,popconfirm:Be,floatButton:Qe,floatButtonGroup:lt,variant:Ke,inputNumber:et,treeSelect:st}=e,Ze=s.useCallback((ct,At)=>{const{prefixCls:pt}=e;if(At)return At;const ft=pt||S.getPrefixCls("");return ct?`${ft}-${ct}`:ft},[S.getPrefixCls,e.prefixCls]),vt=C||S.iconPrefixCls||Ny,Ot=n||S.csp;Aee(vt,Ot);const xt=Hee(x,S.theme,{prefixCls:Ze("")}),mt={csp:Ot,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:l||p,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:h??g,popupOverflow:b,getPrefixCls:Ze,iconPrefixCls:vt,theme:xt,segmented:$,statistic:E,spin:R,calendar:I,carousel:O,cascader:T,collapse:N,typography:A,checkbox:k,descriptions:j,divider:D,drawer:F,skeleton:L,steps:B,image:K,input:ae,textArea:le,layout:W,list:V,mentions:q,modal:U,progress:G,result:Y,slider:J,breadcrumb:Q,menu:Z,pagination:ne,empty:re,badge:fe,radio:ue,rate:de,switch:ie,transfer:se,avatar:ve,message:he,tag:Ce,table:pe,card:Se,tabs:ge,timeline:ye,timePicker:xe,upload:$e,notification:He,tree:Te,colorPicker:Re,datePicker:Fe,rangePicker:je,flex:Ee,wave:Le,dropdown:Pe,warning:ze,tour:Oe,tooltip:we,popover:_e,popconfirm:Be,floatButton:Qe,floatButtonGroup:lt,variant:Ke,inputNumber:et,treeSelect:st},yt=Object.assign({},S);Object.keys(mt).forEach(ct=>{mt[ct]!==void 0&&(yt[ct]=mt[ct])}),vte.forEach(ct=>{const At=e[ct];At&&(yt[ct]=At)}),typeof r<"u"&&(yt.button=Object.assign({autoInsertSpace:r},yt.button));const bt=Hl(()=>yt,yt,(ct,At)=>{const pt=Object.keys(ct),ft=Object.keys(At);return pt.length!==ft.length||pt.some(ut=>ct[ut]!==At[ut])}),{layer:tt}=s.useContext(ug),Ye=s.useMemo(()=>({prefixCls:vt,csp:Ot,layer:tt?"antd":void 0}),[vt,Ot,tt]);let Ne=s.createElement(s.Fragment,null,s.createElement(dte,{dropdownMatchSelectWidth:g}),t);const We=s.useMemo(()=>{var ct,At,pt,ft;return Ds(((ct=ji.Form)===null||ct===void 0?void 0:ct.defaultValidateMessages)||{},((pt=(At=bt.locale)===null||At===void 0?void 0:At.Form)===null||pt===void 0?void 0:pt.defaultValidateMessages)||{},((ft=bt.form)===null||ft===void 0?void 0:ft.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[bt,i==null?void 0:i.validateMessages]);Object.keys(We).length>0&&(Ne=s.createElement(S9.Provider,{value:We},Ne)),l&&(Ne=s.createElement(eee,{locale:l,_ANT_MARK__:ZZ},Ne)),Ne=s.createElement(My.Provider,{value:Ye},Ne),c&&(Ne=s.createElement(yee,{size:c},Ne)),Ne=s.createElement(ute,null,Ne);const rt=s.useMemo(()=>{const ct=xt||{},{algorithm:At,token:pt,components:ft,cssVar:ut}=ct,Xt=fte(ct,["algorithm","token","components","cssVar"]),Kt=At&&(!Array.isArray(At)||At.length>0)?Pm(At):gR,Ut={};Object.entries(ft||{}).forEach(([Pt,Lt])=>{const nt=Object.assign({},Lt);"algorithm"in nt&&(nt.algorithm===!0?nt.theme=Kt:(Array.isArray(nt.algorithm)||typeof nt.algorithm=="function")&&(nt.theme=Pm(nt.algorithm)),delete nt.algorithm),Ut[Pt]=nt});const kt=Object.assign(Object.assign({},Yd),pt);return Object.assign(Object.assign({},Xt),{theme:Kt,token:kt,components:Ut,override:Object.assign({override:kt},Ut),cssVar:ut})},[xt]);return x&&(Ne=s.createElement(pR.Provider,{value:rt},Ne)),bt.warning&&(Ne=s.createElement(XZ.Provider,{value:bt.warning},Ne)),w!==void 0&&(Ne=s.createElement(hR,{disabled:w},Ne)),s.createElement(jt.Provider,{value:bt},Ne)},Mt=e=>{const t=s.useContext(jt),n=s.useContext(vR);return s.createElement(hte,Object.assign({parentContext:t,legacyLocale:n},e))};Mt.ConfigContext=jt;Mt.SizeContext=Xc;Mt.config=pte;Mt.useConfig=Cee;Object.defineProperty(Mt,"SizeContext",{get:()=>Xc});const bte=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},yte=e=>({zIndexPopup:e.zIndexBase+10}),Cte=un("Affix",bte,yte);function ih(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function lN(e,t,n){if(n!==void 0&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function sN(e,t,n){if(n!==void 0&&Math.round(t.bottom){var n;const{style:r,offsetTop:a,offsetBottom:o,prefixCls:i,className:l,rootClassName:c,children:u,target:d,onChange:f,onTestUpdatePosition:m}=e,g=Ste(e,["style","offsetTop","offsetBottom","prefixCls","className","rootClassName","children","target","onChange","onTestUpdatePosition"]),{getPrefixCls:h,getTargetContainer:b}=ee.useContext(jt),p=h("affix",i),[S,C]=ee.useState(!1),[x,w]=ee.useState(),[$,E]=ee.useState(),R=ee.useRef(uN),I=ee.useRef(null),O=ee.useRef(null),T=ee.useRef(null),N=ee.useRef(null),A=ee.useRef(null),k=(n=d??b)!==null&&n!==void 0?n:xte,j=o===void 0&&a===void 0?0:a,D=()=>{if(R.current!==dN||!N.current||!T.current||!k)return;const J=k();if(J){const Q={status:uN},Z=ih(T.current);if(Z.top===0&&Z.left===0&&Z.width===0&&Z.height===0)return;const ne=ih(J),ae=lN(Z,ne,j),le=sN(Z,ne,o);ae!==void 0?(Q.affixStyle={position:"fixed",top:ae,width:Z.width,height:Z.height},Q.placeholderStyle={width:Z.width,height:Z.height}):le!==void 0&&(Q.affixStyle={position:"fixed",bottom:le,width:Z.width,height:Z.height},Q.placeholderStyle={width:Z.width,height:Z.height}),Q.lastAffix=!!Q.affixStyle,S!==Q.lastAffix&&(f==null||f(Q.lastAffix)),R.current=Q.status,w(Q.affixStyle),E(Q.placeholderStyle),C(Q.lastAffix)}},F=()=>{R.current=dN,D()},L=IT(()=>{F()}),B=IT(()=>{if(k&&x){const J=k();if(J&&T.current){const Q=ih(J),Z=ih(T.current),ne=lN(Z,Q,j),ae=sN(Z,Q,o);if(ne!==void 0&&x.top===ne||ae!==void 0&&x.bottom===ae)return}}F()}),K=()=>{const J=k==null?void 0:k();J&&(cN.forEach(Q=>{var Z;O.current&&((Z=I.current)===null||Z===void 0||Z.removeEventListener(Q,O.current)),J==null||J.addEventListener(Q,B)}),I.current=J,O.current=B)},W=()=>{const J=k==null?void 0:k();cN.forEach(Q=>{var Z;J==null||J.removeEventListener(Q,B),O.current&&((Z=I.current)===null||Z===void 0||Z.removeEventListener(Q,O.current))}),L.cancel(),B.cancel()};ee.useImperativeHandle(t,()=>({updatePosition:L})),ee.useEffect(()=>(A.current=setTimeout(K),()=>{A.current&&(clearTimeout(A.current),A.current=null),W()}),[]),ee.useEffect(()=>(K(),()=>W()),[d,x,S,a,o]),ee.useEffect(()=>{L()},[d,a,o]);const[V,q,U]=Cte(p),G=oe(c,q,p,U),Y=oe({[G]:x});return V(ee.createElement(Rr,{onResize:L},ee.createElement("div",Object.assign({style:r,className:l,ref:T},g),x&&ee.createElement("div",{style:$,"aria-hidden":"true"}),ee.createElement("div",{className:Y,ref:N,style:x},ee.createElement(Rr,{onResize:L},u)))))});var $te={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"};function Z9(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Ete(e){return Z9(e)instanceof ShadowRoot}function Ab(e){return Ete(e)?Z9(e):null}function Pte(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function mP(e,t){Wn(e,"[@ant-design/icons] ".concat(t))}function fN(e){return it(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(it(e.icon)==="object"||typeof e.icon=="function")}function vN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Pte(n)]=r}return t},{})}function gP(e,t,n){return n?ee.createElement(e.tag,P(P({key:t},vN(e.attrs)),n),(e.children||[]).map(function(r,a){return gP(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ee.createElement(e.tag,P({key:t},vN(e.attrs)),(e.children||[]).map(function(r,a){return gP(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function ez(e){return qs(e)[0]}function tz(e){return e?Array.isArray(e)?e:[e]:[]}var Ote={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Ite=` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var m8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=m8(t,["override"]);let i=Object.assign(Object.assign({},r),{override:a});return i=Ay(i),o&&Object.entries(o).forEach(([l,c])=>{const{theme:u}=c,d=m8(c,["theme"]);let f=d;u&&(f=Z9(Object.assign(Object.assign({},i),d),{override:d},u)),i[l]=f}),i};function Ur(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=ee.useContext(RR),o=`${fo}-${t||""}`,i=n||IR,[l,c,u]=wR(i,[Qd,e],{salt:o,override:r,getComputedToken:Z9,formatToken:Ay,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:TR,ignore:J9,preserve:Qee}});return[i,u,t?c:"",l,a]}const ri={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},$n=(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}),cu=()=>({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"}}),Nm=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Jee=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"}}}),Zee=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},l),i),{[a]:i})}},ai=(e,t)=>({outline:`${me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ga=(e,t)=>({"&:focus-visible":ai(e,t)}),ez=e=>({[`.${e}`]:Object.assign(Object.assign({},cu()),{[`.${e} .${e}-icon`]:{display:"block"}})}),NR=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"},Ga(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:dn,genComponentStyleHook:tz,genSubStyleComponent:hf}=Q9({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=s.useContext(jt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=Ur();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=s.useContext(jt);return e??{}},getResetStyles:(e,t)=>{var n;const r=Jee(e);return[r,{"&":r},ez((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:ky)]},getCommonStyle:Zee,getCompUnitless:()=>TR});function Ly(e,t){return qs.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],i=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:i,textColor:l}))},{})}const ete=(e,t)=>{const[n,r]=Ur();return pb({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>ez(e))},tte=Object.assign({},sg),{useId:g8}=tte,nte=()=>"",rte=typeof g8>"u"?nte:g8;function ate(e,t,n){var r;ul();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},Mm),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Mm.hashed,cssVar:t==null?void 0:t.cssVar}):t,i=rte();return Hl(()=>{var l,c;if(!e)return t;const u=Object.assign({},o.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${i.replace(/:/g,"")}`,f=((l=a.cssVar)!==null&&l!==void 0?l:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((c=a.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:u,cssVar:f})},[a,o],(l,c)=>l.some((u,d)=>{const f=c[d];return!ti(u,f,!0)}))}var ote=["children"],nz=s.createContext({});function ite(e){var t=e.children,n=Ue(e,ote);return s.createElement(nz.Provider,{value:n},t)}var lte=(function(e){mo(n,e);var t=ko(n);function n(){return ir(this,n),t.apply(this,arguments)}return lr(n,[{key:"render",value:function(){return this.props.children}}]),n})(s.Component);function ste(e){var t=s.useReducer(function(l){return l+1},0),n=ce(t,2),r=n[1],a=s.useRef(e),o=Zt(function(){return a.current}),i=Zt(function(l){a.current=typeof l=="function"?l(a.current):l,r()});return[o,i]}var bs="none",rh="appear",ah="enter",oh="leave",p8="none",Oi="prepare",yd="start",Cd="active",_R="end",rz="prepared";function h8(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function cte(e,t){var n={animationend:h8("Animation","AnimationEnd"),transitionend:h8("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var ute=cte(ma(),typeof window<"u"?window:{}),az={};if(ma()){var dte=document.createElement("div");az=dte.style}var ih={};function oz(e){if(ih[e])return ih[e];var t=ute[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=ln(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return s.useEffect(function(){return function(){t()}},[]),[n,t]});var mte=[Oi,yd,Cd,_R],gte=[Oi,rz],uz=!1,pte=!0;function dz(e){return e===Cd||e===_R}const hte=(function(e,t,n){var r=Qc(p8),a=ce(r,2),o=a[0],i=a[1],l=vte(),c=ce(l,2),u=c[0],d=c[1];function f(){i(Oi,!0)}var m=t?gte:mte;return cz(function(){if(o!==p8&&o!==_R){var g=m.indexOf(o),h=m[g+1],b=n(o);b===uz?i(h,!0):h&&u(function(p){function S(){p.isCanceled()||i(h,!0)}b===!0?S():Promise.resolve(b).then(S)})}},[e,o]),s.useEffect(function(){return function(){d()}},[]),[f,o]});function bte(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,l=i===void 0?!0:i,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,h=r.onLeavePrepare,b=r.onAppearStart,p=r.onEnterStart,S=r.onLeaveStart,C=r.onAppearActive,x=r.onEnterActive,w=r.onLeaveActive,$=r.onAppearEnd,E=r.onEnterEnd,R=r.onLeaveEnd,I=r.onVisibleChanged,O=Qc(),T=ce(O,2),_=T[0],k=T[1],A=ste(bs),j=ce(A,2),D=j[0],F=j[1],L=Qc(null),B=ce(L,2),K=B[0],W=B[1],V=D(),q=s.useRef(!1),U=s.useRef(null);function G(){return n()}var Y=s.useRef(!1);function J(){F(bs),W(null,!0)}var Q=Zt(function(pe){var Se=D();if(Se!==bs){var ge=G();if(!(pe&&!pe.deadline&&pe.target!==ge)){var ye=Y.current,xe;Se===rh&&ye?xe=$==null?void 0:$(ge,pe):Se===ah&&ye?xe=E==null?void 0:E(ge,pe):Se===oh&&ye&&(xe=R==null?void 0:R(ge,pe)),ye&&xe!==!1&&J()}}}),Z=fte(Q),ne=ce(Z,1),ae=ne[0],le=function(Se){switch(Se){case rh:return z(z(z({},Oi,m),yd,b),Cd,C);case ah:return z(z(z({},Oi,g),yd,p),Cd,x);case oh:return z(z(z({},Oi,h),yd,S),Cd,w);default:return{}}},re=s.useMemo(function(){return le(V)},[V]),fe=hte(V,!e,function(pe){if(pe===Oi){var Se=re[Oi];return Se?Se(G()):uz}if(ie in re){var ge;W(((ge=re[ie])===null||ge===void 0?void 0:ge.call(re,G(),null))||null)}return ie===Cd&&V!==bs&&(ae(G()),d>0&&(clearTimeout(U.current),U.current=setTimeout(function(){Q({deadline:!0})},d))),ie===rz&&J(),pte}),ue=ce(fe,2),de=ue[0],ie=ue[1],se=dz(ie);Y.current=se;var ve=s.useRef(null);cz(function(){if(!(q.current&&ve.current===t)){k(t);var pe=q.current;q.current=!0;var Se;!pe&&t&&l&&(Se=rh),pe&&t&&o&&(Se=ah),(pe&&!t&&u||!pe&&f&&!t&&u)&&(Se=oh);var ge=le(Se);Se&&(e||ge[Oi])?(F(Se),de()):F(bs),ve.current=t}},[t]),s.useEffect(function(){(V===rh&&!l||V===ah&&!o||V===oh&&!u)&&F(bs)},[l,o,u]),s.useEffect(function(){return function(){q.current=!1,clearTimeout(U.current)}},[]);var he=s.useRef(!1);s.useEffect(function(){_&&(he.current=!0),_!==void 0&&V===bs&&((he.current||_)&&(I==null||I(_)),he.current=!0)},[_,V]);var Ce=K;return re[Oi]&&ie===yd&&(Ce=P({transition:"none"},Ce)),[V,ie,Ce,_??t]}function yte(e){var t=e;it(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=s.forwardRef(function(a,o){var i=a.visible,l=i===void 0?!0:i,c=a.removeOnLeave,u=c===void 0?!0:c,d=a.forceRender,f=a.children,m=a.motionName,g=a.leavedClassName,h=a.eventProps,b=s.useContext(nz),p=b.motion,S=n(a,p),C=s.useRef(),x=s.useRef();function w(){try{return C.current instanceof HTMLElement?C.current:N0(x.current)}catch{return null}}var $=bte(S,l,w,a),E=ce($,4),R=E[0],I=E[1],O=E[2],T=E[3],_=s.useRef(T);T&&(_.current=!0);var k=s.useCallback(function(B){C.current=B,xm(o,B)},[o]),A,j=P(P({},h),{},{visible:l});if(!f)A=null;else if(R===bs)T?A=f(P({},j),k):!u&&_.current&&g?A=f(P(P({},j),{},{className:g}),k):d||!u&&!g?A=f(P(P({},j),{},{style:{display:"none"}}),k):A=null;else{var D;I===Oi?D="prepare":dz(I)?D="active":I===yd&&(D="start");var F=C8(m,"".concat(R,"-").concat(D));A=f(P(P({},j),{},{className:oe(C8(m,R),z(z({},F,F&&D),m,typeof m=="string")),style:O}),k)}if(s.isValidElement(A)&&Fi(A)){var L=Zs(A);L||(A=s.cloneElement(A,{ref:k}))}return s.createElement(lte,{ref:x},A)});return r.displayName="CSSMotion",r}const ga=yte(sz);var yP="add",CP="keep",SP="remove",ox="removed";function Cte(e){var t;return e&&it(e)==="object"&&"key"in e?t=e:t={key:e},P(P({},t),{},{key:String(t.key)})}function xP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Cte)}function Ste(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=xP(e),i=xP(t);o.forEach(function(u){for(var d=!1,f=r;f1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==SP}),n.forEach(function(d){d.key===u&&(d.status=CP)})}),n}var xte=["component","children","onVisibleChanged","onAllRemoved"],wte=["status"],$te=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ga,n=(function(r){mo(o,r);var a=ko(o);function o(){var i;ir(this,o);for(var l=arguments.length,c=new Array(l),u=0;unull;var Ite=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const Nte=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(zb=t),n!==void 0&&(vz=n),"holderRender"in e&&(gz=a),r&&(Tte(r)?Dee(z0(),r):mz=r)},pz=()=>({getPrefixCls:(e,t)=>t||(e?`${z0()}-${e}`:z0()),getIconPrefixCls:Mte,getRootPrefixCls:()=>zb||z0(),getTheme:()=>mz,holderRender:gz}),_te=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:l,componentSize:c,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:g,popupMatchSelectWidth:h,popupOverflow:b,legacyLocale:p,parentContext:S,iconPrefixCls:C,theme:x,componentDisabled:w,segmented:$,statistic:E,spin:R,calendar:I,carousel:O,cascader:T,collapse:_,typography:k,checkbox:A,descriptions:j,divider:D,drawer:F,skeleton:L,steps:B,image:K,layout:W,list:V,mentions:q,modal:U,progress:G,result:Y,slider:J,breadcrumb:Q,menu:Z,pagination:ne,input:ae,textArea:le,empty:re,badge:fe,radio:ue,rate:de,switch:ie,transfer:se,avatar:ve,message:he,tag:Ce,table:pe,card:Se,tabs:ge,timeline:ye,timePicker:xe,upload:$e,notification:He,tree:Te,colorPicker:Re,datePicker:Fe,rangePicker:je,flex:Ee,wave:Le,dropdown:Pe,warning:ze,tour:Oe,tooltip:we,popover:_e,popconfirm:Be,floatButton:Qe,floatButtonGroup:lt,variant:Ke,inputNumber:et,treeSelect:st}=e,Ze=s.useCallback((ct,At)=>{const{prefixCls:pt}=e;if(At)return At;const ft=pt||S.getPrefixCls("");return ct?`${ft}-${ct}`:ft},[S.getPrefixCls,e.prefixCls]),vt=C||S.iconPrefixCls||ky,Ot=n||S.csp;ete(vt,Ot);const xt=ate(x,S.theme,{prefixCls:Ze("")}),mt={csp:Ot,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:l||p,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:h??g,popupOverflow:b,getPrefixCls:Ze,iconPrefixCls:vt,theme:xt,segmented:$,statistic:E,spin:R,calendar:I,carousel:O,cascader:T,collapse:_,typography:k,checkbox:A,descriptions:j,divider:D,drawer:F,skeleton:L,steps:B,image:K,input:ae,textArea:le,layout:W,list:V,mentions:q,modal:U,progress:G,result:Y,slider:J,breadcrumb:Q,menu:Z,pagination:ne,empty:re,badge:fe,radio:ue,rate:de,switch:ie,transfer:se,avatar:ve,message:he,tag:Ce,table:pe,card:Se,tabs:ge,timeline:ye,timePicker:xe,upload:$e,notification:He,tree:Te,colorPicker:Re,datePicker:Fe,rangePicker:je,flex:Ee,wave:Le,dropdown:Pe,warning:ze,tour:Oe,tooltip:we,popover:_e,popconfirm:Be,floatButton:Qe,floatButtonGroup:lt,variant:Ke,inputNumber:et,treeSelect:st},yt=Object.assign({},S);Object.keys(mt).forEach(ct=>{mt[ct]!==void 0&&(yt[ct]=mt[ct])}),Rte.forEach(ct=>{const At=e[ct];At&&(yt[ct]=At)}),typeof r<"u"&&(yt.button=Object.assign({autoInsertSpace:r},yt.button));const bt=Hl(()=>yt,yt,(ct,At)=>{const pt=Object.keys(ct),ft=Object.keys(At);return pt.length!==ft.length||pt.some(ut=>ct[ut]!==At[ut])}),{layer:tt}=s.useContext(ug),Ye=s.useMemo(()=>({prefixCls:vt,csp:Ot,layer:tt?"antd":void 0}),[vt,Ot,tt]);let Ne=s.createElement(s.Fragment,null,s.createElement(Ote,{dropdownMatchSelectWidth:g}),t);const We=s.useMemo(()=>{var ct,At,pt,ft;return Ds(((ct=Di.Form)===null||ct===void 0?void 0:ct.defaultValidateMessages)||{},((pt=(At=bt.locale)===null||At===void 0?void 0:At.Form)===null||pt===void 0?void 0:pt.defaultValidateMessages)||{},((ft=bt.form)===null||ft===void 0?void 0:ft.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[bt,i==null?void 0:i.validateMessages]);Object.keys(We).length>0&&(Ne=s.createElement(A9.Provider,{value:We},Ne)),l&&(Ne=s.createElement(bee,{locale:l,_ANT_MARK__:hee},Ne)),Ne=s.createElement(Fy.Provider,{value:Ye},Ne),c&&(Ne=s.createElement(kee,{size:c},Ne)),Ne=s.createElement(Pte,null,Ne);const rt=s.useMemo(()=>{const ct=xt||{},{algorithm:At,token:pt,components:ft,cssVar:ut}=ct,Xt=Ite(ct,["algorithm","token","components","cssVar"]),Kt=At&&(!Array.isArray(At)||At.length>0)?Gd(At):IR,Ut={};Object.entries(ft||{}).forEach(([Pt,Lt])=>{const nt=Object.assign({},Lt);"algorithm"in nt&&(nt.algorithm===!0?nt.theme=Kt:(Array.isArray(nt.algorithm)||typeof nt.algorithm=="function")&&(nt.theme=Gd(nt.algorithm)),delete nt.algorithm),Ut[Pt]=nt});const kt=Object.assign(Object.assign({},Qd),pt);return Object.assign(Object.assign({},Xt),{theme:Kt,token:kt,components:Ut,override:Object.assign({override:kt},Ut),cssVar:ut})},[xt]);return x&&(Ne=s.createElement(RR.Provider,{value:rt},Ne)),bt.warning&&(Ne=s.createElement(mee.Provider,{value:bt.warning},Ne)),w!==void 0&&(Ne=s.createElement(MR,{disabled:w},Ne)),s.createElement(jt.Provider,{value:bt},Ne)},Rt=e=>{const t=s.useContext(jt),n=s.useContext(PR);return s.createElement(_te,Object.assign({parentContext:t,legacyLocale:n},e))};Rt.ConfigContext=jt;Rt.SizeContext=Xc;Rt.config=Nte;Rt.useConfig=Aee;Object.defineProperty(Rt,"SizeContext",{get:()=>Xc});const jte=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},Fte=e=>({zIndexPopup:e.zIndexBase+10}),Dte=dn("Affix",jte,Fte);function lh(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function x8(e,t,n){if(n!==void 0&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function w8(e,t,n){if(n!==void 0&&Math.round(t.bottom){var n;const{style:r,offsetTop:a,offsetBottom:o,prefixCls:i,className:l,rootClassName:c,children:u,target:d,onChange:f,onTestUpdatePosition:m}=e,g=kte(e,["style","offsetTop","offsetBottom","prefixCls","className","rootClassName","children","target","onChange","onTestUpdatePosition"]),{getPrefixCls:h,getTargetContainer:b}=ee.useContext(jt),p=h("affix",i),[S,C]=ee.useState(!1),[x,w]=ee.useState(),[$,E]=ee.useState(),R=ee.useRef(E8),I=ee.useRef(null),O=ee.useRef(null),T=ee.useRef(null),_=ee.useRef(null),k=ee.useRef(null),A=(n=d??b)!==null&&n!==void 0?n:Ate,j=o===void 0&&a===void 0?0:a,D=()=>{if(R.current!==P8||!_.current||!T.current||!A)return;const J=A();if(J){const Q={status:E8},Z=lh(T.current);if(Z.top===0&&Z.left===0&&Z.width===0&&Z.height===0)return;const ne=lh(J),ae=x8(Z,ne,j),le=w8(Z,ne,o);ae!==void 0?(Q.affixStyle={position:"fixed",top:ae,width:Z.width,height:Z.height},Q.placeholderStyle={width:Z.width,height:Z.height}):le!==void 0&&(Q.affixStyle={position:"fixed",bottom:le,width:Z.width,height:Z.height},Q.placeholderStyle={width:Z.width,height:Z.height}),Q.lastAffix=!!Q.affixStyle,S!==Q.lastAffix&&(f==null||f(Q.lastAffix)),R.current=Q.status,w(Q.affixStyle),E(Q.placeholderStyle),C(Q.lastAffix)}},F=()=>{R.current=P8,D()},L=VT(()=>{F()}),B=VT(()=>{if(A&&x){const J=A();if(J&&T.current){const Q=lh(J),Z=lh(T.current),ne=x8(Z,Q,j),ae=w8(Z,Q,o);if(ne!==void 0&&x.top===ne||ae!==void 0&&x.bottom===ae)return}}F()}),K=()=>{const J=A==null?void 0:A();J&&($8.forEach(Q=>{var Z;O.current&&((Z=I.current)===null||Z===void 0||Z.removeEventListener(Q,O.current)),J==null||J.addEventListener(Q,B)}),I.current=J,O.current=B)},W=()=>{const J=A==null?void 0:A();$8.forEach(Q=>{var Z;J==null||J.removeEventListener(Q,B),O.current&&((Z=I.current)===null||Z===void 0||Z.removeEventListener(Q,O.current))}),L.cancel(),B.cancel()};ee.useImperativeHandle(t,()=>({updatePosition:L})),ee.useEffect(()=>(k.current=setTimeout(K),()=>{k.current&&(clearTimeout(k.current),k.current=null),W()}),[]),ee.useEffect(()=>(K(),()=>W()),[d,x,S,a,o]),ee.useEffect(()=>{L()},[d,a,o]);const[V,q,U]=Dte(p),G=oe(c,q,p,U),Y=oe({[G]:x});return V(ee.createElement(Mr,{onResize:L},ee.createElement("div",Object.assign({style:r,className:l,ref:T},g),x&&ee.createElement("div",{style:$,"aria-hidden":"true"}),ee.createElement("div",{className:Y,ref:_,style:x},ee.createElement(Mr,{onResize:L},u)))))});var Bte={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"};function hz(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function zte(e){return hz(e)instanceof ShadowRoot}function Hb(e){return zte(e)?hz(e):null}function Hte(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function wP(e,t){Kn(e,"[@ant-design/icons] ".concat(t))}function O8(e){return it(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(it(e.icon)==="object"||typeof e.icon=="function")}function I8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[Hte(n)]=r}return t},{})}function $P(e,t,n){return n?ee.createElement(e.tag,P(P({key:t},I8(e.attrs)),n),(e.children||[]).map(function(r,a){return $P(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ee.createElement(e.tag,P({key:t},I8(e.attrs)),(e.children||[]).map(function(r,a){return $P(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function bz(e){return Ks(e)[0]}function yz(e){return e?Array.isArray(e)?e:[e]:[]}var Vte={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},Wte=` .anticon { display: inline-flex; align-items: center; @@ -147,9 +147,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,nz=function(t){var n=s.useContext(My),r=n.csp,a=n.prefixCls,o=n.layer,i=Ite;a&&(i=i.replace(/anticon/g,a)),o&&(i="@layer ".concat(o,` { +`,Cz=function(t){var n=s.useContext(Fy),r=n.csp,a=n.prefixCls,o=n.layer,i=Wte;a&&(i=i.replace(/anticon/g,a)),o&&(i="@layer ".concat(o,` { `).concat(i,` -}`)),s.useEffect(function(){var l=t.current,c=Ab(l);kl(i,"@ant-design-icons",{prepend:!o,csp:r,attachTo:c})},[])},Rte=["icon","className","onClick","style","primaryColor","secondaryColor"],um={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Mte(e){var t=e.primaryColor,n=e.secondaryColor;um.primaryColor=t,um.secondaryColor=n||ez(t),um.calculated=!!n}function Tte(){return P({},um)}var hf=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,l=t.secondaryColor,c=Ue(t,Rte),u=s.useRef(),d=um;if(i&&(d={primaryColor:i,secondaryColor:l||ez(i)}),nz(u),mP(fN(n),"icon should be icon definiton, but got ".concat(n)),!fN(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=P(P({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),gP(f.icon,"svg-".concat(f.name),P(P({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};hf.displayName="IconReact";hf.getTwoToneColors=Tte;hf.setTwoToneColors=Mte;function rz(e){var t=tz(e),n=ce(t,2),r=n[0],a=n[1];return hf.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Nte(){var e=hf.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var _te=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];rz(Rm.primary);var ln=s.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Ue(e,_te),d=s.useContext(My),f=d.prefixCls,m=f===void 0?"anticon":f,g=d.rootClassName,h=oe(g,m,z(z({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!a||r.name==="loading"),n),b=i;b===void 0&&l&&(b=-1);var p=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=tz(c),C=ce(S,2),x=C[0],w=C[1];return s.createElement("span",Me({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:h}),s.createElement(hf,{icon:r,primaryColor:x,secondaryColor:w,style:p}))});ln.displayName="AntdIcon";ln.getTwoToneColor=Nte;ln.setTwoToneColor=rz;var jte=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:$te}))},cu=s.forwardRef(jte),Fte={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"},Dte=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Fte}))},ul=s.forwardRef(Dte),kte={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"},Ate=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:kte}))},Li=s.forwardRef(Ate),Lte={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"},Bte=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Lte}))},tc=s.forwardRef(Bte),zte={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"},Hte=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:zte}))},jy=s.forwardRef(Hte),Vte=`accept acceptCharset accessKey action allowFullScreen allowTransparency +}`)),s.useEffect(function(){var l=t.current,c=Hb(l);kl(i,"@ant-design-icons",{prepend:!o,csp:r,attachTo:c})},[])},Kte=["icon","className","onClick","style","primaryColor","secondaryColor"],um={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qte(e){var t=e.primaryColor,n=e.secondaryColor;um.primaryColor=t,um.secondaryColor=n||bz(t),um.calculated=!!n}function Ute(){return P({},um)}var bf=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,l=t.secondaryColor,c=Ue(t,Kte),u=s.useRef(),d=um;if(i&&(d={primaryColor:i,secondaryColor:l||bz(i)}),Cz(u),wP(O8(n),"icon should be icon definiton, but got ".concat(n)),!O8(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=P(P({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),$P(f.icon,"svg-".concat(f.name),P(P({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};bf.displayName="IconReact";bf.getTwoToneColors=Ute;bf.setTwoToneColors=qte;function Sz(e){var t=yz(e),n=ce(t,2),r=n[0],a=n[1];return bf.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Gte(){var e=bf.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Yte=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Sz(Im.primary);var sn=s.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,i=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=Ue(e,Yte),d=s.useContext(Fy),f=d.prefixCls,m=f===void 0?"anticon":f,g=d.rootClassName,h=oe(g,m,z(z({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!a||r.name==="loading"),n),b=i;b===void 0&&l&&(b=-1);var p=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=yz(c),C=ce(S,2),x=C[0],w=C[1];return s.createElement("span",Me({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:h}),s.createElement(bf,{icon:r,primaryColor:x,secondaryColor:w,style:p}))});sn.displayName="AntdIcon";sn.getTwoToneColor=Gte;sn.setTwoToneColor=Sz;var Xte=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Bte}))},uu=s.forwardRef(Xte),Qte={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"},Jte=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Qte}))},dl=s.forwardRef(Jte),Zte={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"},ene=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Zte}))},Hi=s.forwardRef(ene),tne={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"},nne=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:tne}))},ec=s.forwardRef(nne),rne={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"},ane=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:rne}))},By=s.forwardRef(ane),one=`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 @@ -160,125 +160,125 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 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`,Wte=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`,ine=`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`,Kte="".concat(Vte," ").concat(Wte).split(/[\s\n]+/),qte="aria-",Ute="data-";function mN(e,t){return e.indexOf(t)===0}function dr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=P({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||mN(a,qte))||n.data&&mN(a,Ute)||n.attr&&Kte.includes(a))&&(r[a]=e[a])}),r}function az(e){return e&&ee.isValidElement(e)&&e.type===ee.Fragment}const SR=(e,t,n)=>ee.isValidElement(e)?ee.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Br(e,t){return SR(e,e,t)}const lh=(e,t,n,r,a)=>({background:e,border:`${me(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),Gte=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:i,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:g,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},wn(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:l},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,lne="".concat(one," ").concat(ine).split(/[\s\n]+/),sne="aria-",cne="data-";function R8(e,t){return e.indexOf(t)===0}function ar(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=P({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||R8(a,sne))||n.data&&R8(a,cne)||n.attr&&lne.includes(a))&&(r[a]=e[a])}),r}function xz(e){return e&&ee.isValidElement(e)&&e.type===ee.Fragment}const jR=(e,t,n)=>ee.isValidElement(e)?ee.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function zr(e,t){return jR(e,e,t)}const sh=(e,t,n,r,a)=>({background:e,border:`${me(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),une=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:o,fontSizeLG:i,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:g,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:l},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, padding-top ${n} ${u}, padding-bottom ${n} ${u}, - margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:g,[`${t}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Yte=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:i,colorWarningBg:l,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:g}=e;return{[t]:{"&-success":lh(a,r,n,e,t),"&-info":lh(g,m,f,e,t),"&-warning":lh(l,i,o,e,t),"&-error":Object.assign(Object.assign({},lh(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Xte=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:i,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:me(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:l}}}}},Qte=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),Jte=un("Alert",e=>[Gte(e),Yte(e),Xte(e)],Qte);var gN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:n,type:r}=e,a=Zte[r]||null;return t?SR(t,s.createElement("span",{className:`${n}-icon`},t),()=>({className:oe(`${n}-icon`,t.props.className)})):s.createElement(a,{className:`${n}-icon`})},tne=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,i=r===!0||r===void 0?s.createElement(Li,null):r;return t?s.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),i):null},oz=s.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:i,rootClassName:l,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:m,showIcon:g,closable:h,closeText:b,closeIcon:p,action:S,id:C}=e,x=gN(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,$]=s.useState(!1),E=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:R,direction:I,closable:O,closeIcon:T,className:N,style:A}=lr("alert"),k=R("alert",r),[j,D,F]=Jte(k),L=Y=>{var J;$(!0),(J=e.onClose)===null||J===void 0||J.call(e,Y)},B=s.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),K=s.useMemo(()=>typeof h=="object"&&h.closeIcon||b?!0:typeof h=="boolean"?h:p!==!1&&p!==null&&p!==void 0?!0:!!O,[b,p,h,O]),W=o&&g===void 0?!0:g,V=oe(k,`${k}-${B}`,{[`${k}-with-description`]:!!n,[`${k}-no-icon`]:!W,[`${k}-banner`]:!!o,[`${k}-rtl`]:I==="rtl"},N,i,l,F,D),q=dr(x,{aria:!0,data:!0}),U=s.useMemo(()=>typeof h=="object"&&h.closeIcon?h.closeIcon:b||(p!==void 0?p:typeof O=="object"&&O.closeIcon?O.closeIcon:T),[p,h,O,b,T]),G=s.useMemo(()=>{const Y=h??O;if(typeof Y=="object"){const{closeIcon:J}=Y;return gN(Y,["closeIcon"])}return{}},[h,O]);return j(s.createElement(ma,{visible:!w,motionName:`${k}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Y=>({maxHeight:Y.offsetHeight}),onLeaveEnd:m},({className:Y,style:J},Q)=>s.createElement("div",Object.assign({id:C,ref:Fr(E,Q),"data-show":!w,className:oe(V,Y),style:Object.assign(Object.assign(Object.assign({},A),c),J),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},q),W?s.createElement(ene,{description:n,icon:e.icon,prefixCls:k,type:B}):null,s.createElement("div",{className:`${k}-content`},a?s.createElement("div",{className:`${k}-message`},a):null,n?s.createElement("div",{className:`${k}-description`},n):null),S?s.createElement("div",{className:`${k}-action`},S):null,s.createElement(tne,{isClosable:K,prefixCls:k,closeIcon:U,handleClose:L,ariaProps:G}))))});function nne(e,t,n){return t=Yc(t),GB(e,Ey()?Reflect.construct(t,n||[],Yc(e).constructor):t.apply(e,n))}let rne=(function(e){function t(){var n;return or(this,t),n=nne(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return vo(t,e),ir(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:i}=this.props,{error:l,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r>"u"?(l||"").toString():r,f=typeof a>"u"?u:a;return l?s.createElement(oz,{id:o,type:"error",message:d,description:s.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):i}}])})(s.Component);const ks=oz;ks.ErrorBoundary=rne;const pN=e=>typeof e=="object"&&e!=null&&e.nodeType===1,hN=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",sh=(e,t)=>{if(e.clientHeight{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightot||o>e&&i=t&&l>=n?o-e-r:i>t&&ln?i-t+a:0,ane=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},bN=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:F=>F!==u;if(!pN(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,g=[];let h=e;for(;pN(h)&&f(h);){if(h=ane(h),h===m){g.push(h);break}h!=null&&h===document.body&&sh(h)&&!sh(document.documentElement)||h!=null&&sh(h,d)&&g.push(h)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,p=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:S,scrollY:C}=window,{height:x,width:w,top:$,right:E,bottom:R,left:I}=e.getBoundingClientRect(),{top:O,right:T,bottom:N,left:A}=(F=>{const L=window.getComputedStyle(F);return{top:parseFloat(L.scrollMarginTop)||0,right:parseFloat(L.scrollMarginRight)||0,bottom:parseFloat(L.scrollMarginBottom)||0,left:parseFloat(L.scrollMarginLeft)||0}})(e);let k=l==="start"||l==="nearest"?$-O:l==="end"?R+N:$+x/2-O+N,j=c==="center"?I+w/2-A+T:c==="end"?E+T:I-A;const D=[];for(let F=0;F=0&&I>=0&&R<=p&&E<=b&&(L===m&&!sh(L)||$>=W&&R<=q&&I>=U&&E<=V))return D;const G=getComputedStyle(L),Y=parseInt(G.borderLeftWidth,10),J=parseInt(G.borderTopWidth,10),Q=parseInt(G.borderRightWidth,10),Z=parseInt(G.borderBottomWidth,10);let ne=0,ae=0;const le="offsetWidth"in L?L.offsetWidth-L.clientWidth-Y-Q:0,re="offsetHeight"in L?L.offsetHeight-L.clientHeight-J-Z:0,fe="offsetWidth"in L?L.offsetWidth===0?0:K/L.offsetWidth:0,ue="offsetHeight"in L?L.offsetHeight===0?0:B/L.offsetHeight:0;if(m===L)ne=l==="start"?k:l==="end"?k-p:l==="nearest"?ch(C,C+p,p,J,Z,C+k,C+k+x,x):k-p/2,ae=c==="start"?j:c==="center"?j-b/2:c==="end"?j-b:ch(S,S+b,b,Y,Q,S+j,S+j+w,w),ne=Math.max(0,ne+C),ae=Math.max(0,ae+S);else{ne=l==="start"?k-W-J:l==="end"?k-q+Z+re:l==="nearest"?ch(W,q,B,J,Z+re,k,k+x,x):k-(W+B/2)+re/2,ae=c==="start"?j-U-Y:c==="center"?j-(U+K/2)+le/2:c==="end"?j-V+Q+le:ch(U,V,K,Y,Q+le,j,j+w,w);const{scrollLeft:de,scrollTop:ie}=L;ne=ue===0?0:Math.max(0,Math.min(ie+ne/ue,L.scrollHeight-B/ue+re)),ae=fe===0?0:Math.max(0,Math.min(de+ae/fe,L.scrollWidth-K/fe+le)),k+=ie-ne,j+=de-ae}D.push({el:L,top:ne,left:ae})}return D},one=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function ine(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(bN(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:i}of bN(e,one(t))){const l=o-n.top+n.bottom,c=i-n.left+n.right;a.scroll({top:l,left:c,behavior:r})}}function pP(e){return e!=null&&e===e.window}const lne=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return pP(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!pP(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function sne(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function cne(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),i=lne(o),l=Date.now(),c=()=>{const d=Date.now()-l,f=sne(d>a?a:d,i,e,a);pP(o)?o.scrollTo(window.pageXOffset,f):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=f:o.scrollTop=f,d{const[,,,,t]=qr();return t?`${e}-css-var`:""};var ot={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},iz=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=o===void 0?4.5:o,l=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,g=e.closeIcon,h=g===void 0?"x":g,b=e.props,p=e.onClick,S=e.onNoticeClose,C=e.times,x=e.hovering,w=s.useState(!1),$=ce(w,2),E=$[0],R=$[1],I=s.useState(0),O=ce(I,2),T=O[0],N=O[1],A=s.useState(0),k=ce(A,2),j=k[0],D=k[1],F=x||E,L=i>0&&l,B=function(){S(d)},K=function(Y){(Y.key==="Enter"||Y.code==="Enter"||Y.keyCode===ot.ENTER)&&B()};s.useEffect(function(){if(!F&&i>0){var G=Date.now()-j,Y=setTimeout(function(){B()},i*1e3-j);return function(){u&&clearTimeout(Y),D(Date.now()-G)}}},[i,F,C]),s.useEffect(function(){if(!F&&L&&(u||j===0)){var G=performance.now(),Y,J=function Q(){cancelAnimationFrame(Y),Y=requestAnimationFrame(function(Z){var ne=Z+j-G,ae=Math.min(ne/(i*1e3),1);N(ae*100),ae<1&&Q()})};return J(),function(){u&&cancelAnimationFrame(Y)}}},[i,j,F,L,C]);var W=s.useMemo(function(){return it(m)==="object"&&m!==null?m:m?{closeIcon:h}:{}},[m,h]),V=dr(W,!0),q=100-(!T||T<0?0:T>100?100:T),U="".concat(n,"-notice");return s.createElement("div",Me({},b,{ref:t,className:oe(U,a,z({},"".concat(U,"-closable"),m)),style:r,onMouseEnter:function(Y){var J;R(!0),b==null||(J=b.onMouseEnter)===null||J===void 0||J.call(b,Y)},onMouseLeave:function(Y){var J;R(!1),b==null||(J=b.onMouseLeave)===null||J===void 0||J.call(b,Y)},onClick:p}),s.createElement("div",{className:"".concat(U,"-content")},f),m&&s.createElement("a",Me({tabIndex:0,className:"".concat(U,"-close"),onKeyDown:K,"aria-label":"Close"},V,{onClick:function(Y){Y.preventDefault(),Y.stopPropagation(),B()}}),W.closeIcon),L&&s.createElement("progress",{className:"".concat(U,"-progress"),max:"100",value:q},q+"%"))}),lz=ee.createContext({}),sz=function(t){var n=t.children,r=t.classNames;return ee.createElement(lz.Provider,{value:{classNames:r}},n)},yN=8,CN=3,SN=16,une=function(t){var n={offset:yN,threshold:CN,gap:SN};if(t&&it(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:yN,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:CN,n.gap=(o=t.gap)!==null&&o!==void 0?o:SN}return[!!t,n]},dne=["className","style","classNames","styles"],fne=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,i=t.style,l=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=s.useContext(lz),m=f.classNames,g=s.useRef({}),h=s.useState(null),b=ce(h,2),p=b[0],S=b[1],C=s.useState([]),x=ce(C,2),w=x[0],$=x[1],E=n.map(function(F){return{config:F,key:String(F.key)}}),R=une(d),I=ce(R,2),O=I[0],T=I[1],N=T.offset,A=T.threshold,k=T.gap,j=O&&(w.length>0||E.length<=A),D=typeof l=="function"?l(r):l;return s.useEffect(function(){O&&w.length>1&&$(function(F){return F.filter(function(L){return E.some(function(B){var K=B.key;return L===K})})})},[w,E,O]),s.useEffect(function(){var F;if(O&&g.current[(F=E[E.length-1])===null||F===void 0?void 0:F.key]){var L;S(g.current[(L=E[E.length-1])===null||L===void 0?void 0:L.key])}},[E,O]),ee.createElement(G9,Me({key:r,className:oe(a,"".concat(a,"-").concat(r),m==null?void 0:m.list,o,z(z({},"".concat(a,"-stack"),!!O),"".concat(a,"-stack-expanded"),j)),style:i,keys:E,motionAppear:!0},D,{onAllRemoved:function(){c(r)}}),function(F,L){var B=F.config,K=F.className,W=F.style,V=F.index,q=B,U=q.key,G=q.times,Y=String(U),J=B,Q=J.className,Z=J.style,ne=J.classNames,ae=J.styles,le=Ue(J,dne),re=E.findIndex(function(ye){return ye.key===Y}),fe={};if(O){var ue=E.length-1-(re>-1?re:V-1),de=r==="top"||r==="bottom"?"-50%":"0";if(ue>0){var ie,se,ve;fe.height=j?(ie=g.current[Y])===null||ie===void 0?void 0:ie.offsetHeight:p==null?void 0:p.offsetHeight;for(var he=0,Ce=0;Ce-1?g.current[Y]=xe:delete g.current[Y]},prefixCls:a,classNames:ne,styles:ae,className:oe(Q,m==null?void 0:m.notice),style:Z,times:G,key:U,eventKey:U,onNoticeClose:u,hovering:O&&w.length>0})))})},vne=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=s.useState([]),g=ce(m,2),h=g[0],b=g[1],p=function(O){var T,N=h.find(function(A){return A.key===O});N==null||(T=N.onClose)===null||T===void 0||T.call(N),b(function(A){return A.filter(function(k){return k.key!==O})})};s.useImperativeHandle(t,function(){return{open:function(O){b(function(T){var N=ke(T),A=N.findIndex(function(D){return D.key===O.key}),k=P({},O);if(A>=0){var j;k.times=(((j=T[A])===null||j===void 0?void 0:j.times)||0)+1,N[A]=k}else k.times=0,N.push(k);return i>0&&N.length>i&&(N=N.slice(-i)),N})},close:function(O){p(O)},destroy:function(){b([])}}});var S=s.useState({}),C=ce(S,2),x=C[0],w=C[1];s.useEffect(function(){var I={};h.forEach(function(O){var T=O.placement,N=T===void 0?"topRight":T;N&&(I[N]=I[N]||[],I[N].push(O))}),Object.keys(x).forEach(function(O){I[O]=I[O]||[]}),w(I)},[h]);var $=function(O){w(function(T){var N=P({},T),A=N[O]||[];return A.length||delete N[O],N})},E=s.useRef(!1);if(s.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(u==null||u(),E.current=!1)},[x]),!a)return null;var R=Object.keys(x);return Ua.createPortal(s.createElement(s.Fragment,null,R.map(function(I){var O=x[I],T=s.createElement(fne,{key:I,configList:O,placement:I,prefixCls:r,className:l==null?void 0:l(I),style:c==null?void 0:c(I),motion:o,onNoticeClose:p,onAllNoticeRemoved:$,stack:d});return f?f(T,{prefixCls:r,key:I}):T})),a)}),mne=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],gne=function(){return document.body},xN=0;function pne(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?gne:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Ue(e,mne),m=s.useState(),g=ce(m,2),h=g[0],b=g[1],p=s.useRef(),S=s.createElement(vne,{container:h,ref:p,prefixCls:a,motion:r,maxCount:o,className:i,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),C=s.useState([]),x=ce(C,2),w=x[0],$=x[1],E=Zt(function(I){var O=pne(f,I);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(xN),xN+=1),$(function(T){return[].concat(ke(T),[{type:"open",config:O}])})}),R=s.useMemo(function(){return{open:E,close:function(O){$(function(T){return[].concat(ke(T),[{type:"close",key:O}])})},destroy:function(){$(function(O){return[].concat(ke(O),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){b(n())}),s.useEffect(function(){if(p.current&&w.length){w.forEach(function(T){switch(T.type){case"open":p.current.open(T.config);break;case"close":p.current.close(T.key);break;case"destroy":p.current.destroy();break}});var I,O;$(function(T){return(I!==T||!O)&&(I=T,O=T.filter(function(N){return!w.includes(N)})),O})}},[w]),[R,S]}var hne={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"},bne=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:hne}))},Ya=s.forwardRef(bne);function Lb(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Xd(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function wN(e){const{closable:t,closeIcon:n}=e||{};return ee.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const yne={},xR=(e,t,n=yne)=>{const r=wN(e),a=wN(t),[o]=Pa("global",ji.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=ee.useMemo(()=>Object.assign({closeIcon:ee.createElement(Li,null)},n),[n]),c=ee.useMemo(()=>r===!1?!1:r?Lb(l,a,r):a===!1?!1:a?Lb(l,a):l.closable?l:!1,[r,a,l]);return ee.useMemo(()=>{var u,d;if(c===!1)return[!1,null,i,{}];const{closeIconRender:f}=l,{closeIcon:m}=c;let g=m;const h=dr(c,!0);return g!=null&&(f&&(g=f(m)),g=ee.isValidElement(g)?ee.cloneElement(g,Object.assign(Object.assign(Object.assign({},g.props),{"aria-label":(d=(u=g.props)===null||u===void 0?void 0:u["aria-label"])!==null&&d!==void 0?d:o.close}),h)):ee.createElement("span",Object.assign({"aria-label":o.close},h),g)),[!0,g,i,h]},[i,o.close,c,l])},wR=()=>ee.useReducer(e=>e+1,0);function uz(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(o=>{const i=n[o],l=a[o];if(i&&typeof i=="object")if(l&&typeof l=="object")r[o]=uz(i,r[o],l);else{const{_default:c}=i;c&&(r[o]=r[o]||{},r[o][c]=oe(r[o][c],l))}else r[o]=oe(r[o],l)}),r),{})}function Cne(e,...t){return s.useMemo(()=>uz.apply(void 0,[e].concat(t)),[t,e])}function Sne(...e){return s.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function hP(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],o=n[r]||{};n[r]=a?hP(o,a):o}}),n}const xne=(e,t,n)=>{const r=Cne.apply(void 0,[n].concat(ke(e))),a=Sne.apply(void 0,ke(t));return s.useMemo(()=>[hP(r,n),hP(a,n)],[r,a,n])},wne=e=>{const[t,n]=s.useState(null);return[s.useCallback((a,o,i)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),d=o.slice(c,u+1).map(e),f=d.some(g=>!i.has(g)),m=[];return d.forEach(g=>{f?(i.has(g)||m.push(g),i.add(g)):(i.delete(g),m.push(g))}),n(f?u:null),m},[t]),n]},$ne=()=>{const[e,t]=s.useState([]),n=s.useCallback(r=>(t(a=>[].concat(ke(a),[r])),()=>{t(a=>a.filter(o=>o!==r))}),[]);return[e,n]};function Ene(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const Pne=(e,t)=>s.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):Ene(r,n)}),One=e=>{const t=s.useRef(e),[,n]=wR();return[()=>t.current,r=>{t.current=r,n()}]},dg=ee.createContext(void 0),ys=100,Ine=10,$R=ys*Ine,dz={Modal:ys,Drawer:ys,Popover:ys,Popconfirm:ys,Tooltip:ys,Tour:ys,FloatButton:ys},Rne={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Mne(e){return e in dz}const ui=(e,t)=>{const[,n]=qr(),r=ee.useContext(dg),a=Mne(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+dz[e]:i+=Rne[e],o=[r===void 0?t:i,i]}return o},Tne=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:i,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:g,borderRadiusLG:h,zIndexPopup:b,contentPadding:p,contentBg:S}=e,C=`${t}-notice`,x=new Cn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),w=new Cn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),$={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${C}-content`]:{display:"inline-block",padding:p,background:S,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, - ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},wn(e)),{color:a,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:g,[`${t}-icon`]:{marginInlineEnd:a,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:i},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},dne=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:o,colorWarningBorder:i,colorWarningBg:l,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:g}=e;return{[t]:{"&-success":sh(a,r,n,e,t),"&-info":sh(g,m,f,e,t),"&-warning":sh(l,i,o,e,t),"&-error":Object.assign(Object.assign({},sh(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},fne=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:o,colorIcon:i,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:o,lineHeight:me(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:l}}}}},vne=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),mne=dn("Alert",e=>[une(e),dne(e),fne(e)],vne);var M8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:n,type:r}=e,a=gne[r]||null;return t?jR(t,s.createElement("span",{className:`${n}-icon`},t),()=>({className:oe(`${n}-icon`,t.props.className)})):s.createElement(a,{className:`${n}-icon`})},hne=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:o}=e,i=r===!0||r===void 0?s.createElement(Hi,null):r;return t?s.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},o),i):null},wz=s.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:o,className:i,rootClassName:l,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:m,showIcon:g,closable:h,closeText:b,closeIcon:p,action:S,id:C}=e,x=M8(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,$]=s.useState(!1),E=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:R,direction:I,closable:O,closeIcon:T,className:_,style:k}=sr("alert"),A=R("alert",r),[j,D,F]=mne(A),L=Y=>{var J;$(!0),(J=e.onClose)===null||J===void 0||J.call(e,Y)},B=s.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),K=s.useMemo(()=>typeof h=="object"&&h.closeIcon||b?!0:typeof h=="boolean"?h:p!==!1&&p!==null&&p!==void 0?!0:!!O,[b,p,h,O]),W=o&&g===void 0?!0:g,V=oe(A,`${A}-${B}`,{[`${A}-with-description`]:!!n,[`${A}-no-icon`]:!W,[`${A}-banner`]:!!o,[`${A}-rtl`]:I==="rtl"},_,i,l,F,D),q=ar(x,{aria:!0,data:!0}),U=s.useMemo(()=>typeof h=="object"&&h.closeIcon?h.closeIcon:b||(p!==void 0?p:typeof O=="object"&&O.closeIcon?O.closeIcon:T),[p,h,O,b,T]),G=s.useMemo(()=>{const Y=h??O;if(typeof Y=="object"){const{closeIcon:J}=Y;return M8(Y,["closeIcon"])}return{}},[h,O]);return j(s.createElement(ga,{visible:!w,motionName:`${A}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:Y=>({maxHeight:Y.offsetHeight}),onLeaveEnd:m},({className:Y,style:J},Q)=>s.createElement("div",Object.assign({id:C,ref:Dr(E,Q),"data-show":!w,className:oe(V,Y),style:Object.assign(Object.assign(Object.assign({},k),c),J),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},q),W?s.createElement(pne,{description:n,icon:e.icon,prefixCls:A,type:B}):null,s.createElement("div",{className:`${A}-content`},a?s.createElement("div",{className:`${A}-message`},a):null,n?s.createElement("div",{className:`${A}-description`},n):null),S?s.createElement("div",{className:`${A}-action`},S):null,s.createElement(hne,{isClosable:K,prefixCls:A,closeIcon:U,handleClose:L,ariaProps:G}))))});function bne(e,t,n){return t=Yc(t),f9(e,My()?Reflect.construct(t,n||[],Yc(e).constructor):t.apply(e,n))}let yne=(function(e){function t(){var n;return ir(this,t),n=bne(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return mo(t,e),lr(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:o,children:i}=this.props,{error:l,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r>"u"?(l||"").toString():r,f=typeof a>"u"?u:a;return l?s.createElement(wz,{id:o,type:"error",message:d,description:s.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):i}}])})(s.Component);const Oc=wz;Oc.ErrorBoundary=yne;const T8=e=>typeof e=="object"&&e!=null&&e.nodeType===1,N8=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ch=(e,t)=>{if(e.clientHeight{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightot||o>e&&i=t&&l>=n?o-e-r:i>t&&ln?i-t+a:0,Cne=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},_8=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:i,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:F=>F!==u;if(!T8(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,g=[];let h=e;for(;T8(h)&&f(h);){if(h=Cne(h),h===m){g.push(h);break}h!=null&&h===document.body&&ch(h)&&!ch(document.documentElement)||h!=null&&ch(h,d)&&g.push(h)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,p=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:S,scrollY:C}=window,{height:x,width:w,top:$,right:E,bottom:R,left:I}=e.getBoundingClientRect(),{top:O,right:T,bottom:_,left:k}=(F=>{const L=window.getComputedStyle(F);return{top:parseFloat(L.scrollMarginTop)||0,right:parseFloat(L.scrollMarginRight)||0,bottom:parseFloat(L.scrollMarginBottom)||0,left:parseFloat(L.scrollMarginLeft)||0}})(e);let A=l==="start"||l==="nearest"?$-O:l==="end"?R+_:$+x/2-O+_,j=c==="center"?I+w/2-k+T:c==="end"?E+T:I-k;const D=[];for(let F=0;F=0&&I>=0&&R<=p&&E<=b&&(L===m&&!ch(L)||$>=W&&R<=q&&I>=U&&E<=V))return D;const G=getComputedStyle(L),Y=parseInt(G.borderLeftWidth,10),J=parseInt(G.borderTopWidth,10),Q=parseInt(G.borderRightWidth,10),Z=parseInt(G.borderBottomWidth,10);let ne=0,ae=0;const le="offsetWidth"in L?L.offsetWidth-L.clientWidth-Y-Q:0,re="offsetHeight"in L?L.offsetHeight-L.clientHeight-J-Z:0,fe="offsetWidth"in L?L.offsetWidth===0?0:K/L.offsetWidth:0,ue="offsetHeight"in L?L.offsetHeight===0?0:B/L.offsetHeight:0;if(m===L)ne=l==="start"?A:l==="end"?A-p:l==="nearest"?uh(C,C+p,p,J,Z,C+A,C+A+x,x):A-p/2,ae=c==="start"?j:c==="center"?j-b/2:c==="end"?j-b:uh(S,S+b,b,Y,Q,S+j,S+j+w,w),ne=Math.max(0,ne+C),ae=Math.max(0,ae+S);else{ne=l==="start"?A-W-J:l==="end"?A-q+Z+re:l==="nearest"?uh(W,q,B,J,Z+re,A,A+x,x):A-(W+B/2)+re/2,ae=c==="start"?j-U-Y:c==="center"?j-(U+K/2)+le/2:c==="end"?j-V+Q+le:uh(U,V,K,Y,Q+le,j,j+w,w);const{scrollLeft:de,scrollTop:ie}=L;ne=ue===0?0:Math.max(0,Math.min(ie+ne/ue,L.scrollHeight-B/ue+re)),ae=fe===0?0:Math.max(0,Math.min(de+ae/fe,L.scrollWidth-K/fe+le)),A+=ie-ne,j+=de-ae}D.push({el:L,top:ne,left:ae})}return D},Sne=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function xne(e,t){if(!e.isConnected||!(a=>{let o=a;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(_8(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:i}of _8(e,Sne(t))){const l=o-n.top+n.bottom,c=i-n.left+n.right;a.scroll({top:l,left:c,behavior:r})}}function EP(e){return e!=null&&e===e.window}const wne=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return EP(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!EP(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function $ne(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function Ene(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),i=wne(o),l=Date.now(),c=()=>{const d=Date.now()-l,f=$ne(d>a?a:d,i,e,a);EP(o)?o.scrollTo(window.pageXOffset,f):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=f:o.scrollTop=f,d{const[,,,,t]=Ur();return t?`${e}-css-var`:""};var ot={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},$z=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,i=o===void 0?4.5:o,l=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,g=e.closeIcon,h=g===void 0?"x":g,b=e.props,p=e.onClick,S=e.onNoticeClose,C=e.times,x=e.hovering,w=s.useState(!1),$=ce(w,2),E=$[0],R=$[1],I=s.useState(0),O=ce(I,2),T=O[0],_=O[1],k=s.useState(0),A=ce(k,2),j=A[0],D=A[1],F=x||E,L=i>0&&l,B=function(){S(d)},K=function(Y){(Y.key==="Enter"||Y.code==="Enter"||Y.keyCode===ot.ENTER)&&B()};s.useEffect(function(){if(!F&&i>0){var G=Date.now()-j,Y=setTimeout(function(){B()},i*1e3-j);return function(){u&&clearTimeout(Y),D(Date.now()-G)}}},[i,F,C]),s.useEffect(function(){if(!F&&L&&(u||j===0)){var G=performance.now(),Y,J=function Q(){cancelAnimationFrame(Y),Y=requestAnimationFrame(function(Z){var ne=Z+j-G,ae=Math.min(ne/(i*1e3),1);_(ae*100),ae<1&&Q()})};return J(),function(){u&&cancelAnimationFrame(Y)}}},[i,j,F,L,C]);var W=s.useMemo(function(){return it(m)==="object"&&m!==null?m:m?{closeIcon:h}:{}},[m,h]),V=ar(W,!0),q=100-(!T||T<0?0:T>100?100:T),U="".concat(n,"-notice");return s.createElement("div",Me({},b,{ref:t,className:oe(U,a,z({},"".concat(U,"-closable"),m)),style:r,onMouseEnter:function(Y){var J;R(!0),b==null||(J=b.onMouseEnter)===null||J===void 0||J.call(b,Y)},onMouseLeave:function(Y){var J;R(!1),b==null||(J=b.onMouseLeave)===null||J===void 0||J.call(b,Y)},onClick:p}),s.createElement("div",{className:"".concat(U,"-content")},f),m&&s.createElement("a",Me({tabIndex:0,className:"".concat(U,"-close"),onKeyDown:K,"aria-label":"Close"},V,{onClick:function(Y){Y.preventDefault(),Y.stopPropagation(),B()}}),W.closeIcon),L&&s.createElement("progress",{className:"".concat(U,"-progress"),max:"100",value:q},q+"%"))}),Ez=ee.createContext({}),Pz=function(t){var n=t.children,r=t.classNames;return ee.createElement(Ez.Provider,{value:{classNames:r}},n)},j8=8,F8=3,D8=16,Pne=function(t){var n={offset:j8,threshold:F8,gap:D8};if(t&&it(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:j8,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:F8,n.gap=(o=t.gap)!==null&&o!==void 0?o:D8}return[!!t,n]},One=["className","style","classNames","styles"],Ine=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,i=t.style,l=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=s.useContext(Ez),m=f.classNames,g=s.useRef({}),h=s.useState(null),b=ce(h,2),p=b[0],S=b[1],C=s.useState([]),x=ce(C,2),w=x[0],$=x[1],E=n.map(function(F){return{config:F,key:String(F.key)}}),R=Pne(d),I=ce(R,2),O=I[0],T=I[1],_=T.offset,k=T.threshold,A=T.gap,j=O&&(w.length>0||E.length<=k),D=typeof l=="function"?l(r):l;return s.useEffect(function(){O&&w.length>1&&$(function(F){return F.filter(function(L){return E.some(function(B){var K=B.key;return L===K})})})},[w,E,O]),s.useEffect(function(){var F;if(O&&g.current[(F=E[E.length-1])===null||F===void 0?void 0:F.key]){var L;S(g.current[(L=E[E.length-1])===null||L===void 0?void 0:L.key])}},[E,O]),ee.createElement(fz,Me({key:r,className:oe(a,"".concat(a,"-").concat(r),m==null?void 0:m.list,o,z(z({},"".concat(a,"-stack"),!!O),"".concat(a,"-stack-expanded"),j)),style:i,keys:E,motionAppear:!0},D,{onAllRemoved:function(){c(r)}}),function(F,L){var B=F.config,K=F.className,W=F.style,V=F.index,q=B,U=q.key,G=q.times,Y=String(U),J=B,Q=J.className,Z=J.style,ne=J.classNames,ae=J.styles,le=Ue(J,One),re=E.findIndex(function(ye){return ye.key===Y}),fe={};if(O){var ue=E.length-1-(re>-1?re:V-1),de=r==="top"||r==="bottom"?"-50%":"0";if(ue>0){var ie,se,ve;fe.height=j?(ie=g.current[Y])===null||ie===void 0?void 0:ie.offsetHeight:p==null?void 0:p.offsetHeight;for(var he=0,Ce=0;Ce-1?g.current[Y]=xe:delete g.current[Y]},prefixCls:a,classNames:ne,styles:ae,className:oe(Q,m==null?void 0:m.notice),style:Z,times:G,key:U,eventKey:U,onNoticeClose:u,hovering:O&&w.length>0})))})},Rne=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,i=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=s.useState([]),g=ce(m,2),h=g[0],b=g[1],p=function(O){var T,_=h.find(function(k){return k.key===O});_==null||(T=_.onClose)===null||T===void 0||T.call(_),b(function(k){return k.filter(function(A){return A.key!==O})})};s.useImperativeHandle(t,function(){return{open:function(O){b(function(T){var _=ke(T),k=_.findIndex(function(D){return D.key===O.key}),A=P({},O);if(k>=0){var j;A.times=(((j=T[k])===null||j===void 0?void 0:j.times)||0)+1,_[k]=A}else A.times=0,_.push(A);return i>0&&_.length>i&&(_=_.slice(-i)),_})},close:function(O){p(O)},destroy:function(){b([])}}});var S=s.useState({}),C=ce(S,2),x=C[0],w=C[1];s.useEffect(function(){var I={};h.forEach(function(O){var T=O.placement,_=T===void 0?"topRight":T;_&&(I[_]=I[_]||[],I[_].push(O))}),Object.keys(x).forEach(function(O){I[O]=I[O]||[]}),w(I)},[h]);var $=function(O){w(function(T){var _=P({},T),k=_[O]||[];return k.length||delete _[O],_})},E=s.useRef(!1);if(s.useEffect(function(){Object.keys(x).length>0?E.current=!0:E.current&&(u==null||u(),E.current=!1)},[x]),!a)return null;var R=Object.keys(x);return Ua.createPortal(s.createElement(s.Fragment,null,R.map(function(I){var O=x[I],T=s.createElement(Ine,{key:I,configList:O,placement:I,prefixCls:r,className:l==null?void 0:l(I),style:c==null?void 0:c(I),motion:o,onNoticeClose:p,onAllNoticeRemoved:$,stack:d});return f?f(T,{prefixCls:r,key:I}):T})),a)}),Mne=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Tne=function(){return document.body},k8=0;function Nne(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?Tne:t,r=e.motion,a=e.prefixCls,o=e.maxCount,i=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Ue(e,Mne),m=s.useState(),g=ce(m,2),h=g[0],b=g[1],p=s.useRef(),S=s.createElement(Rne,{container:h,ref:p,prefixCls:a,motion:r,maxCount:o,className:i,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),C=s.useState([]),x=ce(C,2),w=x[0],$=x[1],E=Zt(function(I){var O=Nne(f,I);(O.key===null||O.key===void 0)&&(O.key="rc-notification-".concat(k8),k8+=1),$(function(T){return[].concat(ke(T),[{type:"open",config:O}])})}),R=s.useMemo(function(){return{open:E,close:function(O){$(function(T){return[].concat(ke(T),[{type:"close",key:O}])})},destroy:function(){$(function(O){return[].concat(ke(O),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){b(n())}),s.useEffect(function(){if(p.current&&w.length){w.forEach(function(T){switch(T.type){case"open":p.current.open(T.config);break;case"close":p.current.close(T.key);break;case"destroy":p.current.destroy();break}});var I,O;$(function(T){return(I!==T||!O)&&(I=T,O=T.filter(function(_){return!w.includes(_)})),O})}},[w]),[R,S]}var _ne={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"},jne=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:_ne}))},Ya=s.forwardRef(jne);function Vb(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Jd(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function A8(e){const{closable:t,closeIcon:n}=e||{};return ee.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const Fne={},FR=(e,t,n=Fne)=>{const r=A8(e),a=A8(t),[o]=Ea("global",Di.global),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=ee.useMemo(()=>Object.assign({closeIcon:ee.createElement(Hi,null)},n),[n]),c=ee.useMemo(()=>r===!1?!1:r?Vb(l,a,r):a===!1?!1:a?Vb(l,a):l.closable?l:!1,[r,a,l]);return ee.useMemo(()=>{var u,d;if(c===!1)return[!1,null,i,{}];const{closeIconRender:f}=l,{closeIcon:m}=c;let g=m;const h=ar(c,!0);return g!=null&&(f&&(g=f(m)),g=ee.isValidElement(g)?ee.cloneElement(g,Object.assign(Object.assign(Object.assign({},g.props),{"aria-label":(d=(u=g.props)===null||u===void 0?void 0:u["aria-label"])!==null&&d!==void 0?d:o.close}),h)):ee.createElement("span",Object.assign({"aria-label":o.close},h),g)),[!0,g,i,h]},[i,o.close,c,l])},DR=()=>ee.useReducer(e=>e+1,0);function Iz(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(o=>{const i=n[o],l=a[o];if(i&&typeof i=="object")if(l&&typeof l=="object")r[o]=Iz(i,r[o],l);else{const{_default:c}=i;c&&(r[o]=r[o]||{},r[o][c]=oe(r[o][c],l))}else r[o]=oe(r[o],l)}),r),{})}function Dne(e,...t){return s.useMemo(()=>Iz.apply(void 0,[e].concat(t)),[t,e])}function kne(...e){return s.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function PP(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],o=n[r]||{};n[r]=a?PP(o,a):o}}),n}const Ane=(e,t,n)=>{const r=Dne.apply(void 0,[n].concat(ke(e))),a=kne.apply(void 0,ke(t));return s.useMemo(()=>[PP(r,n),PP(a,n)],[r,a,n])},Lne=e=>{const[t,n]=s.useState(null);return[s.useCallback((a,o,i)=>{const l=t??a,c=Math.min(l||0,a),u=Math.max(l||0,a),d=o.slice(c,u+1).map(e),f=d.some(g=>!i.has(g)),m=[];return d.forEach(g=>{f?(i.has(g)||m.push(g),i.add(g)):(i.delete(g),m.push(g))}),n(f?u:null),m},[t]),n]},Bne=()=>{const[e,t]=s.useState([]),n=s.useCallback(r=>(t(a=>[].concat(ke(a),[r])),()=>{t(a=>a.filter(o=>o!==r))}),[]);return[e,n]};function zne(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const Hne=(e,t)=>s.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):zne(r,n)}),Vne=e=>{const t=s.useRef(e),[,n]=DR();return[()=>t.current,r=>{t.current=r,n()}]},dg=ee.createContext(void 0),ys=100,Wne=10,kR=ys*Wne,Rz={Modal:ys,Drawer:ys,Popover:ys,Popconfirm:ys,Tooltip:ys,Tour:ys,FloatButton:ys},Kne={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function qne(e){return e in Rz}const fi=(e,t)=>{const[,n]=Ur(),r=ee.useContext(dg),a=qne(e);let o;if(t!==void 0)o=[t,t];else{let i=r??0;a?i+=(r?0:n.zIndexPopupBase)+Rz[e]:i+=Kne[e],o=[r===void 0?t:i,i]}return o},Une=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:i,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:g,borderRadiusLG:h,zIndexPopup:b,contentPadding:p,contentBg:S}=e,C=`${t}-notice`,x=new Sn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),w=new Sn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),$={padding:g,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${C}-content`]:{display:"inline-block",padding:p,background:S,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:i},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n}, + ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},$n(e)),{color:a,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[` ${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:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${C}-wrapper`]:Object.assign({},$)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},$),{padding:0,textAlign:"start"})}]},Nne=e=>({zIndexPopup:e.zIndexPopupBase+$R+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),fz=un("Message",e=>{const t=tn(e,{height:150});return Tne(t)},Nne);var _ne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.createElement("div",{className:oe(`${e}-custom-content`,`${e}-${t}`)},n||jne[t],s.createElement("span",null,r)),Fne=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,i=_ne(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=s.useContext(jt),c=t||l("message"),u=Gn(c),[d,f,m]=fz(c,u);return d(s.createElement(iz,Object.assign({},i,{prefixCls:c,className:oe(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:s.createElement(vz,{prefixCls:c,type:r,icon:a},o)})))};function Dne(e,t){return{motionName:t??`${e}-move-up`}}function ER(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var kne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=Gn(t),[r,a,o]=fz(t,n);return r(s.createElement(sz,{classNames:{list:oe(a,o,n)}},e))},zne=(e,{prefixCls:t,key:n})=>s.createElement(Bne,{prefixCls:t,key:n},e),Hne=s.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:i=Lne,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:g}=s.useContext(jt),h=r||d("message"),b=()=>({left:"50%",transform:"translateX(-50%)",top:n??Ane}),p=()=>oe({[`${h}-rtl`]:l??g==="rtl"}),S=()=>Dne(h,c),C=s.createElement("span",{className:`${h}-close-x`},s.createElement(Li,{className:`${h}-close-icon`})),[x,w]=cz({prefixCls:h,style:b,className:p,motion:S,closable:!1,closeIcon:C,duration:i,getContainer:()=>(a==null?void 0:a())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:u,renderNotifications:zne});return s.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:m})),w});let $N=0;function mz(e){const t=s.useRef(null);return cl(),[s.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},a=c=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:g,icon:h,type:b,key:p,className:S,style:C,onClose:x}=c,w=kne(c,["content","icon","type","key","className","style","onClose"]);let $=p;return $==null&&($N+=1,$=`antd-message-${$N}`),ER(E=>(u(Object.assign(Object.assign({},w),{key:$,content:s.createElement(vz,{prefixCls:d,type:b,icon:h},g),placement:"top",className:oe(b&&`${m}-${b}`,S,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),C),onClose:()=>{x==null||x(),E()}})),()=>{r($)}))},i={open:a,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let h,b;typeof f=="function"?b=f:(h=f,b=m);const p=Object.assign(Object.assign({onClose:b,duration:h},g),{type:c});return a(p)};i[c]=u}),i},[]),s.createElement(Hne,Object.assign({key:"message-holder"},e,{ref:t}))]}function gz(e){return mz(e)}function pz(e,t){this.v=e,this.k=t}function ja(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}ja=function(i,l,c,u){function d(f,m){ja(i,f,function(g){return this._invoke(f,m,g)})}l?a?a(i,l,{value:c,enumerable:!u,configurable:!u,writable:!u}):i[l]=c:(d("next",0),d("throw",1),d("return",2))},ja(e,t,n,r)}function PR(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(g,h,b,p){var S=h&&h.prototype instanceof l?h:l,C=Object.create(S.prototype);return ja(C,"_invoke",(function(x,w,$){var E,R,I,O=0,T=$||[],N=!1,A={p:0,n:0,v:e,a:k,f:k.bind(e,4),d:function(D,F){return E=D,R=0,I=e,A.n=F,i}};function k(j,D){for(R=j,I=D,t=0;!N&&O&&!F&&t3?(F=K===D)&&(I=L[(R=L[4])?5:(R=3,3)],L[4]=L[5]=e):L[0]<=B&&((F=j<2&&BD||D>K)&&(L[4]=j,L[5]=D,A.n=K,R=0))}if(F||j>1)return i;throw N=!0,D}return function(j,D,F){if(O>1)throw TypeError("Generator is already running");for(N&&D===1&&k(D,F),R=D,I=F;(t=R<2?e:I)||!N;){E||(R?R<3?(R>1&&(A.n=-1),k(R,I)):A.n=I:A.v=I);try{if(O=2,E){if(R||(j="next"),t=E[j]){if(!(t=t.call(E,I)))throw TypeError("iterator result is not an object");if(!t.done)return t;I=t.value,R<2&&(R=0)}else R===1&&(t=E.return)&&t.call(E),R<2&&(I=TypeError("The iterator does not provide a '"+j+"' method"),R=1);E=e}else if((t=(N=A.n<0)?I:x.call(w,A))!==i)break}catch(L){E=e,R=1,I=L}finally{O=1}}return{value:t,done:N}}})(g,b,p),!0),C}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(ja(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(d);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,u):(g.__proto__=u,ja(g,a,"GeneratorFunction")),g.prototype=Object.create(f),g}return c.prototype=u,ja(f,"constructor",u),ja(u,"constructor",c),c.displayName="GeneratorFunction",ja(u,a,"GeneratorFunction"),ja(f),ja(f,a,"Generator"),ja(f,r,function(){return this}),ja(f,"toString",function(){return"[object Generator]"}),(PR=function(){return{w:o,m}})()}function Bb(e,t){function n(a,o,i,l){try{var c=e[a](o),u=c.value;return u instanceof pz?t.resolve(u.v).then(function(d){n("next",d,i,l)},function(d){n("throw",d,i,l)}):t.resolve(u).then(function(d){c.value=d,i(c)},function(d){return n("throw",d,i,l)})}catch(d){l(d)}}var r;this.next||(ja(Bb.prototype),ja(Bb.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ja(this,"_invoke",function(a,o,i){function l(){return new t(function(c,u){n(a,i,c,u)})}return r=r?r.then(l,l):l()},!0)}function hz(e,t,n,r,a){return new Bb(PR().w(e,t,n,r),a||Promise)}function Vne(e,t,n,r,a){var o=hz(e,t,n,r,a);return o.next().then(function(i){return i.done?i.value:o.next()})}function Wne(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function a(){for(;n.length;)if((r=n.pop())in t)return a.value=r,a.done=!1,a;return a.done=!0,a}}function EN(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(it(e)+" is not iterable")}function ht(){var e=PR(),t=e.m(ht),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var l=typeof i=="function"&&i.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function o(i){var l,c;return function(u){l||(l={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(f,m){return c(u.a,a[f],m)},delegateYield:function(f,m,g){return l.resultName=m,c(u.d,EN(f),g)},finish:function(f){return c(u.f,f)}},c=function(f,m,g){u.p=l.prev,u.n=l.next;try{return f(m,g)}finally{l.next=u.n}}),l.resultName&&(l[l.resultName]=u.v,l.resultName=void 0),l.sent=u.v,l.next=u.n;try{return i.call(this,l)}finally{u.p=l.prev,u.n=l.next}}}return(ht=function(){return{wrap:function(c,u,d,f){return e.w(o(c),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(c,u){return new pz(c,u)},AsyncIterator:Bb,async:function(c,u,d,f,m){return(r(u)?hz:Vne)(o(c),u,d,f,m)},keys:Wne,values:EN}})()}function PN(e,t,n,r,a,o,i){try{var l=e[o](i),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,a)}function mn(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(c){PN(o,r,a,i,l,"next",c)}function l(c){PN(o,r,a,i,l,"throw",c)}i(void 0)})}}var fg=P({},fJ),Kne=fg.version,QS=fg.render,qne=fg.unmountComponentAtNode,Fy;try{var Une=Number((Kne||"").split(".")[0]);Une>=18&&(Fy=fg.createRoot)}catch{}function ON(e){var t=fg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&it(t)==="object"&&(t.usingClientEntryPoint=e)}var zb="__rc_react_root__";function Gne(e,t){ON(!0);var n=t[zb]||Fy(t);ON(!1),n.render(e),t[zb]=n}function Yne(e,t){QS==null||QS(e,t)}function Xne(e,t){if(Fy){Gne(e,t);return}Yne(e,t)}function Qne(e){return bP.apply(this,arguments)}function bP(){return bP=mn(ht().mark(function e(t){return ht().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[zb])===null||a===void 0||a.unmount(),delete t[zb]}));case 1:case"end":return r.stop()}},e)})),bP.apply(this,arguments)}function Jne(e){qne(e)}function Zne(e){return yP.apply(this,arguments)}function yP(){return yP=mn(ht().mark(function e(t){return ht().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Fy===void 0){r.next=2;break}return r.abrupt("return",Qne(t));case 2:Jne(t);case 3:case"end":return r.stop()}},e)})),yP.apply(this,arguments)}const ere=(e,t)=>(Xne(e,t),()=>Zne(t));let tre=ere;function OR(e){return tre}const JS=()=>({height:0,opacity:0}),IN=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},nre=e=>({height:e?e.offsetHeight:0}),ZS=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",jm=(e=Nm)=>({motionName:`${e}-motion-collapse`,onAppearStart:JS,onEnterStart:JS,onAppearActive:IN,onEnterActive:IN,onLeaveStart:nre,onLeaveActive:JS,onAppearEnd:ZS,onEnterEnd:ZS,onLeaveEnd:ZS,motionDeadline:500}),ga=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function nn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const bf=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1}),rre=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},are=k9("Wave",rre),Dy=`${Nm}-wave-target`;function ore(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 ire(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(ore))!==null&&t!==void 0?t:null}function ex(e){return Number.isNaN(e)?0:e}const lre=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,o=s.useRef(null),i=s.useRef(null);s.useEffect(()=>{i.current=a()},[]);const[l,c]=s.useState(null),[u,d]=s.useState([]),[f,m]=s.useState(0),[g,h]=s.useState(0),[b,p]=s.useState(0),[S,C]=s.useState(0),[x,w]=s.useState(!1),$={left:f,top:g,width:b,height:S,borderRadius:u.map(I=>`${I}px`).join(" ")};l&&($["--wave-color"]=l);function E(){const I=getComputedStyle(n);c(ire(n));const O=I.position==="static",{borderLeftWidth:T,borderTopWidth:N}=I;m(O?n.offsetLeft:ex(-Number.parseFloat(T))),h(O?n.offsetTop:ex(-Number.parseFloat(N))),p(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:k,borderBottomLeftRadius:j,borderBottomRightRadius:D}=I;d([A,k,D,j].map(F=>ex(Number.parseFloat(F))))}if(s.useEffect(()=>{if(n){const I=on(()=>{E(),w(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(E),O.observe(n)),()=>{on.cancel(I),O==null||O.disconnect()}}},[n]),!x)return null;const R=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Dy));return s.createElement(ma,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(I,O)=>{var T,N;if(O.deadline||O.propertyName==="opacity"){const A=(T=o.current)===null||T===void 0?void 0:T.parentElement;(N=i.current)===null||N===void 0||N.call(i).then(()=>{A==null||A.remove()})}return!1}},({className:I},O)=>s.createElement("div",{ref:Fr(o,O),className:oe(t,I,{"wave-quick":R}),style:$}))},sre=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.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 o=OR();let i=null;function l(){return i}i=o(s.createElement(lre,Object.assign({},t,{target:e,registerUnmount:l})),a)},cre=(e,t,n)=>{const{wave:r}=s.useContext(jt),[,a,o]=qr(),i=Zt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Dy}`)||d,{showEffect:m}=r||{};(m||sre)(f,{className:t,token:a,component:n,event:u,hashId:o})}),l=s.useRef(null);return u=>{on.cancel(l.current),l.current=on(()=>{i(u)})}},vg=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=s.useContext(jt),o=s.useRef(null),i=a("wave"),[,l]=are(i),c=cre(o,oe(i,l),r);if(ee.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=m=>{!bf(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ee.isValidElement(t))return t??null;const u=_i(t)?Fr(ec(t),o):o;return Br(t,{ref:u})},$r=e=>{const t=ee.useContext(Xc);return ee.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},ure=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},dre=un(["Space","Compact"],e=>[ure(e)],()=>({}),{resetStyle:!1});var bz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=s.useContext(ky),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,l=a==="vertical"?"-vertical-":"-";return oe(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},fre=e=>{const{children:t}=e;return s.createElement(ky.Provider,{value:null},t)},vre=e=>{const{children:t}=e,n=bz(e,["children"]);return s.createElement(ky.Provider,{value:s.useMemo(()=>n,[n])},t)},mre=e=>{const{getPrefixCls:t,direction:n}=s.useContext(jt),{size:r,direction:a,block:o,prefixCls:i,className:l,rootClassName:c,children:u}=e,d=bz(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=$r(x=>r??x),m=t("space-compact",i),[g,h]=dre(m),b=oe(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:o,[`${m}-vertical`]:a==="vertical"},l,c),p=s.useContext(ky),S=rr(u),C=s.useMemo(()=>S.map((x,w)=>{const $=(x==null?void 0:x.key)||`${m}-item-${w}`;return s.createElement(vre,{key:$,compactSize:f,compactDirection:a,isFirstItem:w===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:w===S.length-1&&(!p||(p==null?void 0:p.isLastItem))},x)}),[S,p,a,f,m]);return S.length===0?null:g(s.createElement("div",Object.assign({className:b},d),C))};var gre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=s.useContext(jt),{prefixCls:r,size:a,className:o}=e,i=gre(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=qr(),u=s.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),d=oe(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},o,c);return s.createElement(yz.Provider,{value:a},s.createElement("div",Object.assign({},i,{className:d})))},RN=/^[\u4E00-\u9FA5]{2}$/,CP=RN.test.bind(RN);function IR(e){return e==="danger"?{danger:!0}:{type:e}}function MN(e){return typeof e=="string"}function tx(e){return e==="text"||e==="link"}function hre(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&MN(e.type)&&CP(e.props.children)?Br(e,{children:e.props.children.split("").join(n)}):MN(e)?CP(e)?ee.createElement("span",null,e.split("").join(n)):ee.createElement("span",null,e):az(e)?ee.createElement("span",null,e):e}function bre(e,t){let n=!1;const r=[];return ee.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const l=r.length-1,c=r[l];r[l]=`${c}${a}`}else r.push(a);n=i}),ee.Children.map(r,a=>hre(a,t))}["default","primary","danger"].concat(ke(Us));const Cz=s.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=oe(`${o}-icon`,n);return ee.createElement("span",{ref:t,className:i,style:r},a)}),TN=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=oe(`${n}-loading-icon`,r);return ee.createElement(Cz,{prefixCls:n,className:i,style:a,ref:t},ee.createElement(Ya,{className:o}))}),nx=()=>({width:0,opacity:0,transform:"scale(0)"}),rx=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),yre=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o,mount:i}=e,l=!!n;return r?ee.createElement(TN,{prefixCls:t,className:a,style:o}):ee.createElement(ma,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:nx,onAppearActive:rx,onEnterStart:nx,onEnterActive:rx,onLeaveStart:rx,onLeaveActive:nx},({className:c,style:u},d)=>{const f=Object.assign(Object.assign({},o),u);return ee.createElement(TN,{prefixCls:t,className:oe(a,c),style:f,ref:d})})},NN=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Cre=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},NN(`${t}-primary`,a),NN(`${t}-danger`,o)]}};var Sre=["b"],xre=["v"],ax=function(t){return Math.round(Number(t||0))},wre=function(t){if(t instanceof gn)return t;if(t&&it(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=Ue(n,Sre);return P(P({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Fi=(function(e){vo(n,e);var t=Do(n);function n(r){return or(this,n),t.call(this,wre(r))}return ir(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),o=ax(a.s*100),i=ax(a.b*100),l=ax(a.h),c=a.a,u="hsb(".concat(l,", ").concat(o,"%, ").concat(i,"%)"),d="hsba(".concat(l,", ").concat(o,"%, ").concat(i,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var a=this.toHsv(),o=a.v,i=Ue(a,xre);return P(P({},i),{},{b:o,a:this.a})}}]),n})(gn),$re="rc-color-picker",xd=function(t){return t instanceof Fi?t:new Fi(t)},Ere=xd("#1677ff"),Sz=function(t){var n=t.offset,r=t.targetRef,a=t.containerRef,o=t.color,i=t.type,l=a.current.getBoundingClientRect(),c=l.width,u=l.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,g=f/2,h=m/2,b=(n.x+g)/c,p=1-(n.y+h)/u,S=o.toHsb(),C=b,x=(n.x+g)/c*360;if(i)switch(i){case"hue":return xd(P(P({},S),{},{h:x<=0?0:x}));case"alpha":return xd(P(P({},S),{},{a:C<=0?0:C}))}return xd({h:S.h,s:b<=0?0:b,b:p>=1?1:p,a:S.a})},xz=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},RR=function(t){var n=t.color,r=t.prefixCls,a=t.className,o=t.style,i=t.onClick,l="".concat(r,"-color-block");return ee.createElement("div",{className:oe(l,a),style:o,onClick:i},ee.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function Pre(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function wz(e){var t=e.targetRef,n=e.containerRef,r=e.direction,a=e.onDragChange,o=e.onDragChangeComplete,i=e.calculate,l=e.color,c=e.disabledDrag,u=s.useState({x:0,y:0}),d=ce(u,2),f=d[0],m=d[1],g=s.useRef(null),h=s.useRef(null);s.useEffect(function(){m(i())},[l]),s.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null}},[]);var b=function(w){var $=Pre(w),E=$.pageX,R=$.pageY,I=n.current.getBoundingClientRect(),O=I.x,T=I.y,N=I.width,A=I.height,k=t.current.getBoundingClientRect(),j=k.width,D=k.height,F=j/2,L=D/2,B=Math.max(0,Math.min(E-O,N))-F,K=Math.max(0,Math.min(R-T,A))-L,W={x:B,y:r==="x"?f.y:K};if(j===0&&D===0||j!==D)return!1;a==null||a(W)},p=function(w){w.preventDefault(),b(w)},S=function(w){w.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null,o==null||o()},C=function(w){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),!c&&(b(w),document.addEventListener("mousemove",p),document.addEventListener("mouseup",S),document.addEventListener("touchmove",p),document.addEventListener("touchend",S),g.current=p,h.current=S)};return[f,C]}var $z=function(t){var n=t.size,r=n===void 0?"default":n,a=t.color,o=t.prefixCls;return ee.createElement("div",{className:oe("".concat(o,"-handler"),z({},"".concat(o,"-handler-sm"),r==="small")),style:{backgroundColor:a}})},Ez=function(t){var n=t.children,r=t.style,a=t.prefixCls;return ee.createElement("div",{className:"".concat(a,"-palette"),style:P({position:"relative"},r)},n)},Pz=s.forwardRef(function(e,t){var n=e.children,r=e.x,a=e.y;return ee.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(a,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),Ore=function(t){var n=t.color,r=t.onChange,a=t.prefixCls,o=t.onChangeComplete,i=t.disabled,l=s.useRef(),c=s.useRef(),u=s.useRef(n),d=Zt(function(b){var p=Sz({offset:b,targetRef:c,containerRef:l,color:n});u.current=p,r(p)}),f=wz({color:n,containerRef:l,targetRef:c,calculate:function(){return xz(n)},onDragChange:d,onDragChangeComplete:function(){return o==null?void 0:o(u.current)},disabledDrag:i}),m=ce(f,2),g=m[0],h=m[1];return ee.createElement("div",{ref:l,className:"".concat(a,"-select"),onMouseDown:h,onTouchStart:h},ee.createElement(Ez,{prefixCls:a},ee.createElement(Pz,{x:g.x,y:g.y,ref:c},ee.createElement($z,{color:n.toRgbString(),prefixCls:a})),ee.createElement("div",{className:"".concat(a,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Ire=function(t,n){var r=_t(t,{value:n}),a=ce(r,2),o=a[0],i=a[1],l=s.useMemo(function(){return xd(o)},[o]);return[l,i]},Rre=function(t){var n=t.colors,r=t.children,a=t.direction,o=a===void 0?"to right":a,i=t.type,l=t.prefixCls,c=s.useMemo(function(){return n.map(function(u,d){var f=xd(u);return i==="alpha"&&d===n.length-1&&(f=new Fi(f.setA(1))),f.toRgbString()}).join(",")},[n,i]);return ee.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(c,")")}},r)},Mre=function(t){var n=t.prefixCls,r=t.colors,a=t.disabled,o=t.onChange,i=t.onChangeComplete,l=t.color,c=t.type,u=s.useRef(),d=s.useRef(),f=s.useRef(l),m=function($){return c==="hue"?$.getHue():$.a*100},g=Zt(function(w){var $=Sz({offset:w,targetRef:d,containerRef:u,color:l,type:c});f.current=$,o(m($))}),h=wz({color:l,targetRef:d,containerRef:u,calculate:function(){return xz(l,c)},onDragChange:g,onDragChangeComplete:function(){i(m(f.current))},direction:"x",disabledDrag:a}),b=ce(h,2),p=b[0],S=b[1],C=ee.useMemo(function(){if(c==="hue"){var w=l.toHsb();w.s=1,w.b=1,w.a=1;var $=new Fi(w);return $}return l},[l,c]),x=ee.useMemo(function(){return r.map(function(w){return"".concat(w.color," ").concat(w.percent,"%")})},[r]);return ee.createElement("div",{ref:u,className:oe("".concat(n,"-slider"),"".concat(n,"-slider-").concat(c)),onMouseDown:S,onTouchStart:S},ee.createElement(Ez,{prefixCls:n},ee.createElement(Pz,{x:p.x,y:p.y,ref:d},ee.createElement($z,{size:"small",color:C.toHexString(),prefixCls:n})),ee.createElement(Rre,{colors:x,type:c,prefixCls:n})))};function Tre(e){return s.useMemo(function(){var t=e||{},n=t.slider;return[n||Mre]},[e])}var Nre=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],_re=s.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,a=e.prefixCls,o=a===void 0?$re:a,i=e.onChange,l=e.onChangeComplete,c=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,g=e.disabled,h=g===void 0?!1:g,b=e.components,p=Tre(b),S=ce(p,1),C=S[0],x=Ire(r||Ere,n),w=ce(x,2),$=w[0],E=w[1],R=s.useMemo(function(){return $.setA(1).toRgbString()},[$]),I=function(K,W){n||E(K),i==null||i(K,W)},O=function(K){return new Fi($.setHue(K))},T=function(K){return new Fi($.setA(K/100))},N=function(K){I(O(K),{type:"hue",value:K})},A=function(K){I(T(K),{type:"alpha",value:K})},k=function(K){l&&l(O(K))},j=function(K){l&&l(T(K))},D=oe("".concat(o,"-panel"),c,z({},"".concat(o,"-panel-disabled"),h)),F={prefixCls:o,disabled:h,color:$},L=ee.createElement(ee.Fragment,null,ee.createElement(Ore,Me({onChange:I},F,{onChangeComplete:l})),ee.createElement("div",{className:"".concat(o,"-slider-container")},ee.createElement("div",{className:oe("".concat(o,"-slider-group"),z({},"".concat(o,"-slider-group-disabled-alpha"),m))},ee.createElement(C,Me({},F,{type:"hue",colors:Nre,min:0,max:359,value:$.getHue(),onChange:N,onChangeComplete:k})),!m&&ee.createElement(C,Me({},F,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:R}],min:0,max:100,value:$.a*100,onChange:A,onChangeComplete:j}))),ee.createElement(RR,{color:$.toRgbString(),prefixCls:o})));return ee.createElement("div",{className:D,style:u,ref:t},typeof d=="function"?d(L):L)});const Gv=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",jre=(e,t)=>e?Gv(e,t):"";let Mo=(function(){function e(t){or(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:a,percent:o})=>({color:new e(a),percent:o})),this.metaColor=new Fi(this.colors[0].color.metaColor)):this.metaColor=new Fi(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return ir(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return jre(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:n}=this;return n?`linear-gradient(90deg, ${n.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,a)=>{const o=n.colors[a];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])})();var Fre={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"},Dre=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Fre}))},ai=s.forwardRef(Dre),Oz=ee.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,o=e.style,i=e.children,l=e.isActive,c=e.role,u=e.classNames,d=e.styles,f=ee.useState(l||r),m=ce(f,2),g=m[0],h=m[1];return ee.useEffect(function(){(r||l)&&h(!0)},[r,l]),g?ee.createElement("div",{ref:t,className:oe("".concat(n,"-content"),z(z({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),a),style:o,role:c},ee.createElement("div",{className:oe("".concat(n,"-content-box"),u==null?void 0:u.body),style:d==null?void 0:d.body},i)):null});Oz.displayName="PanelContent";var kre=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Iz=ee.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,o=e.isActive,i=e.onItemClick,l=e.forceRender,c=e.className,u=e.classNames,d=u===void 0?{}:u,f=e.styles,m=f===void 0?{}:f,g=e.prefixCls,h=e.collapsible,b=e.accordion,p=e.panelKey,S=e.extra,C=e.header,x=e.expandIcon,w=e.openMotion,$=e.destroyInactivePanel,E=e.children,R=Ue(e,kre),I=h==="disabled",O=S!=null&&typeof S!="boolean",T=z(z(z({onClick:function(){i==null||i(p)},onKeyDown:function(L){(L.key==="Enter"||L.keyCode===ot.ENTER||L.which===ot.ENTER)&&(i==null||i(p))},role:b?"tab":"button"},"aria-expanded",o),"aria-disabled",I),"tabIndex",I?-1:0),N=typeof x=="function"?x(e):ee.createElement("i",{className:"arrow"}),A=N&&ee.createElement("div",Me({className:"".concat(g,"-expand-icon")},["header","icon"].includes(h)?T:{}),N),k=oe("".concat(g,"-item"),z(z({},"".concat(g,"-item-active"),o),"".concat(g,"-item-disabled"),I),c),j=oe(a,"".concat(g,"-header"),z({},"".concat(g,"-collapsible-").concat(h),!!h),d.header),D=P({className:j,style:m.header},["header","icon"].includes(h)?{}:T);return ee.createElement("div",Me({},R,{ref:t,className:k}),ee.createElement("div",D,r&&A,ee.createElement("span",Me({className:"".concat(g,"-header-text")},h==="header"?T:{}),C),O&&ee.createElement("div",{className:"".concat(g,"-extra")},S)),ee.createElement(ma,Me({visible:o,leavedClassName:"".concat(g,"-content-hidden")},w,{forceRender:l,removeOnLeave:$}),function(F,L){var B=F.className,K=F.style;return ee.createElement(Oz,{ref:L,prefixCls:g,className:B,classNames:d,style:K,styles:m,isActive:o,forceRender:l,role:b?"tabpanel":void 0},E)}))}),Are=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Lre=function(t,n){var r=n.prefixCls,a=n.accordion,o=n.collapsible,i=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var g=f.children,h=f.label,b=f.key,p=f.collapsible,S=f.onItemClick,C=f.destroyInactivePanel,x=Ue(f,Are),w=String(b??m),$=p??o,E=C??i,R=function(T){$!=="disabled"&&(l(T),S==null||S(T))},I=!1;return a?I=c[0]===w:I=c.indexOf(w)>-1,ee.createElement(Iz,Me({},x,{prefixCls:r,key:w,panelKey:w,isActive:I,accordion:a,openMotion:u,expandIcon:d,header:h,collapsible:$,onItemClick:R,destroyInactivePanel:E}),g)})},Bre=function(t,n,r){if(!t)return null;var a=r.prefixCls,o=r.accordion,i=r.collapsible,l=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),g=t.props,h=g.header,b=g.headerClass,p=g.destroyInactivePanel,S=g.collapsible,C=g.onItemClick,x=!1;o?x=u[0]===m:x=u.indexOf(m)>-1;var w=S??i,$=function(I){w!=="disabled"&&(c(I),C==null||C(I))},E={key:m,panelKey:m,header:h,headerClass:b,isActive:x,prefixCls:a,destroyInactivePanel:p??l,openMotion:d,accordion:o,children:t.props.children,onItemClick:$,expandIcon:f,collapsible:w};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(R){typeof E[R]>"u"&&delete E[R]}),ee.cloneElement(t,E))};function zre(e,t,n){return Array.isArray(e)?Lre(e,n):rr(t).map(function(r,a){return Bre(r,a,n)})}function Hre(e){var t=e;if(!Array.isArray(t)){var n=it(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var Vre=ee.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,o=a===void 0?!1:a,i=e.style,l=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,g=e.activeKey,h=e.defaultActiveKey,b=e.onChange,p=e.items,S=oe(r,c),C=_t([],{value:g,onChange:function(O){return b==null?void 0:b(O)},defaultValue:h,postState:Hre}),x=ce(C,2),w=x[0],$=x[1],E=function(O){return $(function(){if(l)return w[0]===O?[]:[O];var T=w.indexOf(O),N=T>-1;return N?w.filter(function(A){return A!==O}):[].concat(ke(w),[O])})};Wn(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var R=zre(p,u,{prefixCls:r,accordion:l,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:o,onItemClick:E,activeKey:w});return ee.createElement("div",Me({ref:t,className:S,style:i,role:l?"tablist":void 0},dr(e,{aria:!0,data:!0})),R)});const MR=Object.assign(Vre,{Panel:Iz});MR.Panel;const Wre=s.forwardRef((e,t)=>{const{getPrefixCls:n}=s.useContext(jt),{prefixCls:r,className:a,showArrow:o=!0}=e,i=n("collapse",r),l=oe({[`${i}-no-arrow`]:!o},a);return s.createElement(MR.Panel,Object.assign({ref:t},e,{prefixCls:i,className:l}))}),Ay=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${C}-wrapper`]:Object.assign({},$)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},$),{padding:0,textAlign:"start"})}]},Gne=e=>({zIndexPopup:e.zIndexPopupBase+kR+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Mz=dn("Message",e=>{const t=en(e,{height:150});return Une(t)},Gne);var Yne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.createElement("div",{className:oe(`${e}-custom-content`,`${e}-${t}`)},n||Xne[t],s.createElement("span",null,r)),Qne=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,i=Yne(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=s.useContext(jt),c=t||l("message"),u=Yn(c),[d,f,m]=Mz(c,u);return d(s.createElement($z,Object.assign({},i,{prefixCls:c,className:oe(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:s.createElement(Tz,{prefixCls:c,type:r,icon:a},o)})))};function Jne(e,t){return{motionName:t??`${e}-move-up`}}function AR(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var Zne=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=Yn(t),[r,a,o]=Mz(t,n);return r(s.createElement(Pz,{classNames:{list:oe(a,o,n)}},e))},rre=(e,{prefixCls:t,key:n})=>s.createElement(nre,{prefixCls:t,key:n},e),are=s.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:i=tre,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:g}=s.useContext(jt),h=r||d("message"),b=()=>({left:"50%",transform:"translateX(-50%)",top:n??ere}),p=()=>oe({[`${h}-rtl`]:l??g==="rtl"}),S=()=>Jne(h,c),C=s.createElement("span",{className:`${h}-close-x`},s.createElement(Hi,{className:`${h}-close-icon`})),[x,w]=Oz({prefixCls:h,style:b,className:p,motion:S,closable:!1,closeIcon:C,duration:i,getContainer:()=>(a==null?void 0:a())||(f==null?void 0:f())||document.body,maxCount:o,onAllRemoved:u,renderNotifications:rre});return s.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:m})),w});let L8=0;function Nz(e){const t=s.useRef(null);return ul(),[s.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},a=c=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:g,icon:h,type:b,key:p,className:S,style:C,onClose:x}=c,w=Zne(c,["content","icon","type","key","className","style","onClose"]);let $=p;return $==null&&(L8+=1,$=`antd-message-${L8}`),AR(E=>(u(Object.assign(Object.assign({},w),{key:$,content:s.createElement(Tz,{prefixCls:d,type:b,icon:h},g),placement:"top",className:oe(b&&`${m}-${b}`,S,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),C),onClose:()=>{x==null||x(),E()}})),()=>{r($)}))},i={open:a,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let g;d&&typeof d=="object"&&"content"in d?g=d:g={content:d};let h,b;typeof f=="function"?b=f:(h=f,b=m);const p=Object.assign(Object.assign({onClose:b,duration:h},g),{type:c});return a(p)};i[c]=u}),i},[]),s.createElement(are,Object.assign({key:"message-holder"},e,{ref:t}))]}function _z(e){return Nz(e)}function jz(e,t){this.v=e,this.k=t}function _a(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}_a=function(i,l,c,u){function d(f,m){_a(i,f,function(g){return this._invoke(f,m,g)})}l?a?a(i,l,{value:c,enumerable:!u,configurable:!u,writable:!u}):i[l]=c:(d("next",0),d("throw",1),d("return",2))},_a(e,t,n,r)}function LR(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function o(g,h,b,p){var S=h&&h.prototype instanceof l?h:l,C=Object.create(S.prototype);return _a(C,"_invoke",(function(x,w,$){var E,R,I,O=0,T=$||[],_=!1,k={p:0,n:0,v:e,a:A,f:A.bind(e,4),d:function(D,F){return E=D,R=0,I=e,k.n=F,i}};function A(j,D){for(R=j,I=D,t=0;!_&&O&&!F&&t3?(F=K===D)&&(I=L[(R=L[4])?5:(R=3,3)],L[4]=L[5]=e):L[0]<=B&&((F=j<2&&BD||D>K)&&(L[4]=j,L[5]=D,k.n=K,R=0))}if(F||j>1)return i;throw _=!0,D}return function(j,D,F){if(O>1)throw TypeError("Generator is already running");for(_&&D===1&&A(D,F),R=D,I=F;(t=R<2?e:I)||!_;){E||(R?R<3?(R>1&&(k.n=-1),A(R,I)):k.n=I:k.v=I);try{if(O=2,E){if(R||(j="next"),t=E[j]){if(!(t=t.call(E,I)))throw TypeError("iterator result is not an object");if(!t.done)return t;I=t.value,R<2&&(R=0)}else R===1&&(t=E.return)&&t.call(E),R<2&&(I=TypeError("The iterator does not provide a '"+j+"' method"),R=1);E=e}else if((t=(_=k.n<0)?I:x.call(w,k))!==i)break}catch(L){E=e,R=1,I=L}finally{O=1}}return{value:t,done:_}}})(g,b,p),!0),C}var i={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(_a(t={},r,function(){return this}),t),f=u.prototype=l.prototype=Object.create(d);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,u):(g.__proto__=u,_a(g,a,"GeneratorFunction")),g.prototype=Object.create(f),g}return c.prototype=u,_a(f,"constructor",u),_a(u,"constructor",c),c.displayName="GeneratorFunction",_a(u,a,"GeneratorFunction"),_a(f),_a(f,a,"Generator"),_a(f,r,function(){return this}),_a(f,"toString",function(){return"[object Generator]"}),(LR=function(){return{w:o,m}})()}function Wb(e,t){function n(a,o,i,l){try{var c=e[a](o),u=c.value;return u instanceof jz?t.resolve(u.v).then(function(d){n("next",d,i,l)},function(d){n("throw",d,i,l)}):t.resolve(u).then(function(d){c.value=d,i(c)},function(d){return n("throw",d,i,l)})}catch(d){l(d)}}var r;this.next||(_a(Wb.prototype),_a(Wb.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),_a(this,"_invoke",function(a,o,i){function l(){return new t(function(c,u){n(a,i,c,u)})}return r=r?r.then(l,l):l()},!0)}function Fz(e,t,n,r,a){return new Wb(LR().w(e,t,n,r),a||Promise)}function ore(e,t,n,r,a){var o=Fz(e,t,n,r,a);return o.next().then(function(i){return i.done?i.value:o.next()})}function ire(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function a(){for(;n.length;)if((r=n.pop())in t)return a.value=r,a.done=!1,a;return a.done=!0,a}}function B8(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(it(e)+" is not iterable")}function ht(){var e=LR(),t=e.m(ht),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(i){var l=typeof i=="function"&&i.constructor;return!!l&&(l===n||(l.displayName||l.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function o(i){var l,c;return function(u){l||(l={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(f,m){return c(u.a,a[f],m)},delegateYield:function(f,m,g){return l.resultName=m,c(u.d,B8(f),g)},finish:function(f){return c(u.f,f)}},c=function(f,m,g){u.p=l.prev,u.n=l.next;try{return f(m,g)}finally{l.next=u.n}}),l.resultName&&(l[l.resultName]=u.v,l.resultName=void 0),l.sent=u.v,l.next=u.n;try{return i.call(this,l)}finally{u.p=l.prev,u.n=l.next}}}return(ht=function(){return{wrap:function(c,u,d,f){return e.w(o(c),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(c,u){return new jz(c,u)},AsyncIterator:Wb,async:function(c,u,d,f,m){return(r(u)?Fz:ore)(o(c),u,d,f,m)},keys:ire,values:B8}})()}function z8(e,t,n,r,a,o,i){try{var l=e[o](i),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,a)}function gn(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(c){z8(o,r,a,i,l,"next",c)}function l(c){z8(o,r,a,i,l,"throw",c)}i(void 0)})}}var fg=P({},MJ),lre=fg.version,ix=fg.render,sre=fg.unmountComponentAtNode,zy;try{var cre=Number((lre||"").split(".")[0]);cre>=18&&(zy=fg.createRoot)}catch{}function H8(e){var t=fg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&it(t)==="object"&&(t.usingClientEntryPoint=e)}var Kb="__rc_react_root__";function ure(e,t){H8(!0);var n=t[Kb]||zy(t);H8(!1),n.render(e),t[Kb]=n}function dre(e,t){ix==null||ix(e,t)}function fre(e,t){if(zy){ure(e,t);return}dre(e,t)}function vre(e){return OP.apply(this,arguments)}function OP(){return OP=gn(ht().mark(function e(t){return ht().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Kb])===null||a===void 0||a.unmount(),delete t[Kb]}));case 1:case"end":return r.stop()}},e)})),OP.apply(this,arguments)}function mre(e){sre(e)}function gre(e){return IP.apply(this,arguments)}function IP(){return IP=gn(ht().mark(function e(t){return ht().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(zy===void 0){r.next=2;break}return r.abrupt("return",vre(t));case 2:mre(t);case 3:case"end":return r.stop()}},e)})),IP.apply(this,arguments)}const pre=(e,t)=>(fre(e,t),()=>gre(t));let hre=pre;function BR(e){return hre}const lx=()=>({height:0,opacity:0}),V8=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},bre=e=>({height:e?e.offsetHeight:0}),sx=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",_m=(e=Tm)=>({motionName:`${e}-motion-collapse`,onAppearStart:lx,onEnterStart:lx,onAppearActive:V8,onEnterActive:V8,onLeaveStart:bre,onLeaveActive:lx,onAppearEnd:sx,onEnterEnd:sx,onLeaveEnd:sx,motionDeadline:500}),pa=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function nn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const yf=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1}),yre=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Cre=tz("Wave",yre),Hy=`${Tm}-wave-target`;function Sre(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 xre(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(Sre))!==null&&t!==void 0?t:null}function cx(e){return Number.isNaN(e)?0:e}const wre=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,o=s.useRef(null),i=s.useRef(null);s.useEffect(()=>{i.current=a()},[]);const[l,c]=s.useState(null),[u,d]=s.useState([]),[f,m]=s.useState(0),[g,h]=s.useState(0),[b,p]=s.useState(0),[S,C]=s.useState(0),[x,w]=s.useState(!1),$={left:f,top:g,width:b,height:S,borderRadius:u.map(I=>`${I}px`).join(" ")};l&&($["--wave-color"]=l);function E(){const I=getComputedStyle(n);c(xre(n));const O=I.position==="static",{borderLeftWidth:T,borderTopWidth:_}=I;m(O?n.offsetLeft:cx(-Number.parseFloat(T))),h(O?n.offsetTop:cx(-Number.parseFloat(_))),p(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:A,borderBottomLeftRadius:j,borderBottomRightRadius:D}=I;d([k,A,D,j].map(F=>cx(Number.parseFloat(F))))}if(s.useEffect(()=>{if(n){const I=ln(()=>{E(),w(!0)});let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(E),O.observe(n)),()=>{ln.cancel(I),O==null||O.disconnect()}}},[n]),!x)return null;const R=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Hy));return s.createElement(ga,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(I,O)=>{var T,_;if(O.deadline||O.propertyName==="opacity"){const k=(T=o.current)===null||T===void 0?void 0:T.parentElement;(_=i.current)===null||_===void 0||_.call(i).then(()=>{k==null||k.remove()})}return!1}},({className:I},O)=>s.createElement("div",{ref:Dr(o,O),className:oe(t,I,{"wave-quick":R}),style:$}))},$re=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.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 o=BR();let i=null;function l(){return i}i=o(s.createElement(wre,Object.assign({},t,{target:e,registerUnmount:l})),a)},Ere=(e,t,n)=>{const{wave:r}=s.useContext(jt),[,a,o]=Ur(),i=Zt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Hy}`)||d,{showEffect:m}=r||{};(m||$re)(f,{className:t,token:a,component:n,event:u,hashId:o})}),l=s.useRef(null);return u=>{ln.cancel(l.current),l.current=ln(()=>{i(u)})}},vg=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=s.useContext(jt),o=s.useRef(null),i=a("wave"),[,l]=Cre(i),c=Ere(o,oe(i,l),r);if(ee.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=m=>{!yf(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ee.isValidElement(t))return t??null;const u=Fi(t)?Dr(Zs(t),o):o;return zr(t,{ref:u})},Er=e=>{const t=ee.useContext(Xc);return ee.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Pre=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Ore=dn(["Space","Compact"],e=>[Pre(e)],()=>({}),{resetStyle:!1});var Dz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=s.useContext(Vy),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,l=a==="vertical"?"-vertical-":"-";return oe(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:o,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Ire=e=>{const{children:t}=e;return s.createElement(Vy.Provider,{value:null},t)},Rre=e=>{const{children:t}=e,n=Dz(e,["children"]);return s.createElement(Vy.Provider,{value:s.useMemo(()=>n,[n])},t)},Mre=e=>{const{getPrefixCls:t,direction:n}=s.useContext(jt),{size:r,direction:a,block:o,prefixCls:i,className:l,rootClassName:c,children:u}=e,d=Dz(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Er(x=>r??x),m=t("space-compact",i),[g,h]=Ore(m),b=oe(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:o,[`${m}-vertical`]:a==="vertical"},l,c),p=s.useContext(Vy),S=rr(u),C=s.useMemo(()=>S.map((x,w)=>{const $=(x==null?void 0:x.key)||`${m}-item-${w}`;return s.createElement(Rre,{key:$,compactSize:f,compactDirection:a,isFirstItem:w===0&&(!p||(p==null?void 0:p.isFirstItem)),isLastItem:w===S.length-1&&(!p||(p==null?void 0:p.isLastItem))},x)}),[S,p,a,f,m]);return S.length===0?null:g(s.createElement("div",Object.assign({className:b},d),C))};var Tre=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=s.useContext(jt),{prefixCls:r,size:a,className:o}=e,i=Tre(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Ur(),u=s.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),d=oe(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},o,c);return s.createElement(kz.Provider,{value:a},s.createElement("div",Object.assign({},i,{className:d})))},W8=/^[\u4E00-\u9FA5]{2}$/,RP=W8.test.bind(W8);function zR(e){return e==="danger"?{danger:!0}:{type:e}}function K8(e){return typeof e=="string"}function ux(e){return e==="text"||e==="link"}function _re(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&K8(e.type)&&RP(e.props.children)?zr(e,{children:e.props.children.split("").join(n)}):K8(e)?RP(e)?ee.createElement("span",null,e.split("").join(n)):ee.createElement("span",null,e):xz(e)?ee.createElement("span",null,e):e}function jre(e,t){let n=!1;const r=[];return ee.Children.forEach(e,a=>{const o=typeof a,i=o==="string"||o==="number";if(n&&i){const l=r.length-1,c=r[l];r[l]=`${c}${a}`}else r.push(a);n=i}),ee.Children.map(r,a=>_re(a,t))}["default","primary","danger"].concat(ke(qs));const Az=s.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,i=oe(`${o}-icon`,n);return ee.createElement("span",{ref:t,className:i,style:r},a)}),q8=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,i=oe(`${n}-loading-icon`,r);return ee.createElement(Az,{prefixCls:n,className:i,style:a,ref:t},ee.createElement(Ya,{className:o}))}),dx=()=>({width:0,opacity:0,transform:"scale(0)"}),fx=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Fre=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o,mount:i}=e,l=!!n;return r?ee.createElement(q8,{prefixCls:t,className:a,style:o}):ee.createElement(ga,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!i,motionEnter:!i,motionLeave:!i,removeOnLeave:!0,onAppearStart:dx,onAppearActive:fx,onEnterStart:dx,onEnterActive:fx,onLeaveStart:fx,onLeaveActive:dx},({className:c,style:u},d)=>{const f=Object.assign(Object.assign({},o),u);return ee.createElement(q8,{prefixCls:t,className:oe(a,c),style:f,ref:d})})},U8=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Dre=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},U8(`${t}-primary`,a),U8(`${t}-danger`,o)]}};var kre=["b"],Are=["v"],vx=function(t){return Math.round(Number(t||0))},Lre=function(t){if(t instanceof pn)return t;if(t&&it(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=Ue(n,kre);return P(P({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ki=(function(e){mo(n,e);var t=ko(n);function n(r){return ir(this,n),t.call(this,Lre(r))}return lr(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),o=vx(a.s*100),i=vx(a.b*100),l=vx(a.h),c=a.a,u="hsb(".concat(l,", ").concat(o,"%, ").concat(i,"%)"),d="hsba(".concat(l,", ").concat(o,"%, ").concat(i,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var a=this.toHsv(),o=a.v,i=Ue(a,Are);return P(P({},i),{},{b:o,a:this.a})}}]),n})(pn),Bre="rc-color-picker",$d=function(t){return t instanceof ki?t:new ki(t)},zre=$d("#1677ff"),Lz=function(t){var n=t.offset,r=t.targetRef,a=t.containerRef,o=t.color,i=t.type,l=a.current.getBoundingClientRect(),c=l.width,u=l.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,g=f/2,h=m/2,b=(n.x+g)/c,p=1-(n.y+h)/u,S=o.toHsb(),C=b,x=(n.x+g)/c*360;if(i)switch(i){case"hue":return $d(P(P({},S),{},{h:x<=0?0:x}));case"alpha":return $d(P(P({},S),{},{a:C<=0?0:C}))}return $d({h:S.h,s:b<=0?0:b,b:p>=1?1:p,a:S.a})},Bz=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},HR=function(t){var n=t.color,r=t.prefixCls,a=t.className,o=t.style,i=t.onClick,l="".concat(r,"-color-block");return ee.createElement("div",{className:oe(l,a),style:o,onClick:i},ee.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function Hre(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function zz(e){var t=e.targetRef,n=e.containerRef,r=e.direction,a=e.onDragChange,o=e.onDragChangeComplete,i=e.calculate,l=e.color,c=e.disabledDrag,u=s.useState({x:0,y:0}),d=ce(u,2),f=d[0],m=d[1],g=s.useRef(null),h=s.useRef(null);s.useEffect(function(){m(i())},[l]),s.useEffect(function(){return function(){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null}},[]);var b=function(w){var $=Hre(w),E=$.pageX,R=$.pageY,I=n.current.getBoundingClientRect(),O=I.x,T=I.y,_=I.width,k=I.height,A=t.current.getBoundingClientRect(),j=A.width,D=A.height,F=j/2,L=D/2,B=Math.max(0,Math.min(E-O,_))-F,K=Math.max(0,Math.min(R-T,k))-L,W={x:B,y:r==="x"?f.y:K};if(j===0&&D===0||j!==D)return!1;a==null||a(W)},p=function(w){w.preventDefault(),b(w)},S=function(w){w.preventDefault(),document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",g.current),document.removeEventListener("touchend",h.current),g.current=null,h.current=null,o==null||o()},C=function(w){document.removeEventListener("mousemove",g.current),document.removeEventListener("mouseup",h.current),!c&&(b(w),document.addEventListener("mousemove",p),document.addEventListener("mouseup",S),document.addEventListener("touchmove",p),document.addEventListener("touchend",S),g.current=p,h.current=S)};return[f,C]}var Hz=function(t){var n=t.size,r=n===void 0?"default":n,a=t.color,o=t.prefixCls;return ee.createElement("div",{className:oe("".concat(o,"-handler"),z({},"".concat(o,"-handler-sm"),r==="small")),style:{backgroundColor:a}})},Vz=function(t){var n=t.children,r=t.style,a=t.prefixCls;return ee.createElement("div",{className:"".concat(a,"-palette"),style:P({position:"relative"},r)},n)},Wz=s.forwardRef(function(e,t){var n=e.children,r=e.x,a=e.y;return ee.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(a,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),Vre=function(t){var n=t.color,r=t.onChange,a=t.prefixCls,o=t.onChangeComplete,i=t.disabled,l=s.useRef(),c=s.useRef(),u=s.useRef(n),d=Zt(function(b){var p=Lz({offset:b,targetRef:c,containerRef:l,color:n});u.current=p,r(p)}),f=zz({color:n,containerRef:l,targetRef:c,calculate:function(){return Bz(n)},onDragChange:d,onDragChangeComplete:function(){return o==null?void 0:o(u.current)},disabledDrag:i}),m=ce(f,2),g=m[0],h=m[1];return ee.createElement("div",{ref:l,className:"".concat(a,"-select"),onMouseDown:h,onTouchStart:h},ee.createElement(Vz,{prefixCls:a},ee.createElement(Wz,{x:g.x,y:g.y,ref:c},ee.createElement(Hz,{color:n.toRgbString(),prefixCls:a})),ee.createElement("div",{className:"".concat(a,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Wre=function(t,n){var r=Nt(t,{value:n}),a=ce(r,2),o=a[0],i=a[1],l=s.useMemo(function(){return $d(o)},[o]);return[l,i]},Kre=function(t){var n=t.colors,r=t.children,a=t.direction,o=a===void 0?"to right":a,i=t.type,l=t.prefixCls,c=s.useMemo(function(){return n.map(function(u,d){var f=$d(u);return i==="alpha"&&d===n.length-1&&(f=new ki(f.setA(1))),f.toRgbString()}).join(",")},[n,i]);return ee.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(c,")")}},r)},qre=function(t){var n=t.prefixCls,r=t.colors,a=t.disabled,o=t.onChange,i=t.onChangeComplete,l=t.color,c=t.type,u=s.useRef(),d=s.useRef(),f=s.useRef(l),m=function($){return c==="hue"?$.getHue():$.a*100},g=Zt(function(w){var $=Lz({offset:w,targetRef:d,containerRef:u,color:l,type:c});f.current=$,o(m($))}),h=zz({color:l,targetRef:d,containerRef:u,calculate:function(){return Bz(l,c)},onDragChange:g,onDragChangeComplete:function(){i(m(f.current))},direction:"x",disabledDrag:a}),b=ce(h,2),p=b[0],S=b[1],C=ee.useMemo(function(){if(c==="hue"){var w=l.toHsb();w.s=1,w.b=1,w.a=1;var $=new ki(w);return $}return l},[l,c]),x=ee.useMemo(function(){return r.map(function(w){return"".concat(w.color," ").concat(w.percent,"%")})},[r]);return ee.createElement("div",{ref:u,className:oe("".concat(n,"-slider"),"".concat(n,"-slider-").concat(c)),onMouseDown:S,onTouchStart:S},ee.createElement(Vz,{prefixCls:n},ee.createElement(Wz,{x:p.x,y:p.y,ref:d},ee.createElement(Hz,{size:"small",color:C.toHexString(),prefixCls:n})),ee.createElement(Kre,{colors:x,type:c,prefixCls:n})))};function Ure(e){return s.useMemo(function(){var t=e||{},n=t.slider;return[n||qre]},[e])}var Gre=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],Yre=s.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,a=e.prefixCls,o=a===void 0?Bre:a,i=e.onChange,l=e.onChangeComplete,c=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,g=e.disabled,h=g===void 0?!1:g,b=e.components,p=Ure(b),S=ce(p,1),C=S[0],x=Wre(r||zre,n),w=ce(x,2),$=w[0],E=w[1],R=s.useMemo(function(){return $.setA(1).toRgbString()},[$]),I=function(K,W){n||E(K),i==null||i(K,W)},O=function(K){return new ki($.setHue(K))},T=function(K){return new ki($.setA(K/100))},_=function(K){I(O(K),{type:"hue",value:K})},k=function(K){I(T(K),{type:"alpha",value:K})},A=function(K){l&&l(O(K))},j=function(K){l&&l(T(K))},D=oe("".concat(o,"-panel"),c,z({},"".concat(o,"-panel-disabled"),h)),F={prefixCls:o,disabled:h,color:$},L=ee.createElement(ee.Fragment,null,ee.createElement(Vre,Me({onChange:I},F,{onChangeComplete:l})),ee.createElement("div",{className:"".concat(o,"-slider-container")},ee.createElement("div",{className:oe("".concat(o,"-slider-group"),z({},"".concat(o,"-slider-group-disabled-alpha"),m))},ee.createElement(C,Me({},F,{type:"hue",colors:Gre,min:0,max:359,value:$.getHue(),onChange:_,onChangeComplete:A})),!m&&ee.createElement(C,Me({},F,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:R}],min:0,max:100,value:$.a*100,onChange:k,onChangeComplete:j}))),ee.createElement(HR,{color:$.toRgbString(),prefixCls:o})));return ee.createElement("div",{className:D,style:u,ref:t},typeof d=="function"?d(L):L)});const Gv=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Xre=(e,t)=>e?Gv(e,t):"";let To=(function(){function e(t){ir(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:a,percent:o})=>({color:new e(a),percent:o})),this.metaColor=new ki(this.colors[0].color.metaColor)):this.metaColor=new ki(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return lr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Xre(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:n}=this;return n?`linear-gradient(90deg, ${n.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,a)=>{const o=n.colors[a];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])})();var Qre={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"},Jre=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Qre}))},oi=s.forwardRef(Jre),Kz=ee.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,a=e.className,o=e.style,i=e.children,l=e.isActive,c=e.role,u=e.classNames,d=e.styles,f=ee.useState(l||r),m=ce(f,2),g=m[0],h=m[1];return ee.useEffect(function(){(r||l)&&h(!0)},[r,l]),g?ee.createElement("div",{ref:t,className:oe("".concat(n,"-content"),z(z({},"".concat(n,"-content-active"),l),"".concat(n,"-content-inactive"),!l),a),style:o,role:c},ee.createElement("div",{className:oe("".concat(n,"-content-box"),u==null?void 0:u.body),style:d==null?void 0:d.body},i)):null});Kz.displayName="PanelContent";var Zre=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],qz=ee.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,a=e.headerClass,o=e.isActive,i=e.onItemClick,l=e.forceRender,c=e.className,u=e.classNames,d=u===void 0?{}:u,f=e.styles,m=f===void 0?{}:f,g=e.prefixCls,h=e.collapsible,b=e.accordion,p=e.panelKey,S=e.extra,C=e.header,x=e.expandIcon,w=e.openMotion,$=e.destroyInactivePanel,E=e.children,R=Ue(e,Zre),I=h==="disabled",O=S!=null&&typeof S!="boolean",T=z(z(z({onClick:function(){i==null||i(p)},onKeyDown:function(L){(L.key==="Enter"||L.keyCode===ot.ENTER||L.which===ot.ENTER)&&(i==null||i(p))},role:b?"tab":"button"},"aria-expanded",o),"aria-disabled",I),"tabIndex",I?-1:0),_=typeof x=="function"?x(e):ee.createElement("i",{className:"arrow"}),k=_&&ee.createElement("div",Me({className:"".concat(g,"-expand-icon")},["header","icon"].includes(h)?T:{}),_),A=oe("".concat(g,"-item"),z(z({},"".concat(g,"-item-active"),o),"".concat(g,"-item-disabled"),I),c),j=oe(a,"".concat(g,"-header"),z({},"".concat(g,"-collapsible-").concat(h),!!h),d.header),D=P({className:j,style:m.header},["header","icon"].includes(h)?{}:T);return ee.createElement("div",Me({},R,{ref:t,className:A}),ee.createElement("div",D,r&&k,ee.createElement("span",Me({className:"".concat(g,"-header-text")},h==="header"?T:{}),C),O&&ee.createElement("div",{className:"".concat(g,"-extra")},S)),ee.createElement(ga,Me({visible:o,leavedClassName:"".concat(g,"-content-hidden")},w,{forceRender:l,removeOnLeave:$}),function(F,L){var B=F.className,K=F.style;return ee.createElement(Kz,{ref:L,prefixCls:g,className:B,classNames:d,style:K,styles:m,isActive:o,forceRender:l,role:b?"tabpanel":void 0},E)}))}),eae=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],tae=function(t,n){var r=n.prefixCls,a=n.accordion,o=n.collapsible,i=n.destroyInactivePanel,l=n.onItemClick,c=n.activeKey,u=n.openMotion,d=n.expandIcon;return t.map(function(f,m){var g=f.children,h=f.label,b=f.key,p=f.collapsible,S=f.onItemClick,C=f.destroyInactivePanel,x=Ue(f,eae),w=String(b??m),$=p??o,E=C??i,R=function(T){$!=="disabled"&&(l(T),S==null||S(T))},I=!1;return a?I=c[0]===w:I=c.indexOf(w)>-1,ee.createElement(qz,Me({},x,{prefixCls:r,key:w,panelKey:w,isActive:I,accordion:a,openMotion:u,expandIcon:d,header:h,collapsible:$,onItemClick:R,destroyInactivePanel:E}),g)})},nae=function(t,n,r){if(!t)return null;var a=r.prefixCls,o=r.accordion,i=r.collapsible,l=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,m=t.key||String(n),g=t.props,h=g.header,b=g.headerClass,p=g.destroyInactivePanel,S=g.collapsible,C=g.onItemClick,x=!1;o?x=u[0]===m:x=u.indexOf(m)>-1;var w=S??i,$=function(I){w!=="disabled"&&(c(I),C==null||C(I))},E={key:m,panelKey:m,header:h,headerClass:b,isActive:x,prefixCls:a,destroyInactivePanel:p??l,openMotion:d,accordion:o,children:t.props.children,onItemClick:$,expandIcon:f,collapsible:w};return typeof t.type=="string"?t:(Object.keys(E).forEach(function(R){typeof E[R]>"u"&&delete E[R]}),ee.cloneElement(t,E))};function rae(e,t,n){return Array.isArray(e)?tae(e,n):rr(t).map(function(r,a){return nae(r,a,n)})}function aae(e){var t=e;if(!Array.isArray(t)){var n=it(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var oae=ee.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,a=e.destroyInactivePanel,o=a===void 0?!1:a,i=e.style,l=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,m=e.expandIcon,g=e.activeKey,h=e.defaultActiveKey,b=e.onChange,p=e.items,S=oe(r,c),C=Nt([],{value:g,onChange:function(O){return b==null?void 0:b(O)},defaultValue:h,postState:aae}),x=ce(C,2),w=x[0],$=x[1],E=function(O){return $(function(){if(l)return w[0]===O?[]:[O];var T=w.indexOf(O),_=T>-1;return _?w.filter(function(k){return k!==O}):[].concat(ke(w),[O])})};Kn(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var R=rae(p,u,{prefixCls:r,accordion:l,openMotion:f,expandIcon:m,collapsible:d,destroyInactivePanel:o,onItemClick:E,activeKey:w});return ee.createElement("div",Me({ref:t,className:S,style:i,role:l?"tablist":void 0},ar(e,{aria:!0,data:!0})),R)});const VR=Object.assign(oae,{Panel:qz});VR.Panel;const iae=s.forwardRef((e,t)=>{const{getPrefixCls:n}=s.useContext(jt),{prefixCls:r,className:a,showArrow:o=!0}=e,i=n("collapse",r),l=oe({[`${i}-no-arrow`]:!o},a);return s.createElement(VR.Panel,Object.assign({ref:t},e,{prefixCls:i,className:l}))}),Wy=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`}}}),Kre=e=>({animationDuration:e,animationFillMode:"both"}),qre=e=>({animationDuration:e,animationFillMode:"both"}),Ly=(e,t,n,r,a=!1)=>{const o=a?"&":"";return{[` + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),lae=e=>({animationDuration:e,animationFillMode:"both"}),sae=e=>({animationDuration:e,animationFillMode:"both"}),Ky=(e,t,n,r,a=!1)=>{const o=a?"&":"";return{[` ${o}${e}-enter, ${o}${e}-appear - `]:Object.assign(Object.assign({},Kre(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},qre(r)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},lae(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},sae(r)),{animationPlayState:"paused"}),[` ${o}${e}-enter${e}-enter-active, ${o}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Ure=new Cn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Gre=new Cn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Rz=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[Ly(r,Ure,Gre,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},cae=new Sn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),uae=new Sn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Uz=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[Ky(r,cae,uae,e.motionDurationMid,t),{[` ${a}${r}-enter, ${a}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},Yre=new Cn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Xre=new Cn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Qre=new Cn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Jre=new Cn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Zre=new Cn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),eae=new Cn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tae=new Cn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nae=new Cn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),rae={"move-up":{inKeyframes:tae,outKeyframes:nae},"move-down":{inKeyframes:Yre,outKeyframes:Xre},"move-left":{inKeyframes:Qre,outKeyframes:Jre},"move-right":{inKeyframes:Zre,outKeyframes:eae}},Qd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=rae[t];return[Ly(r,a,o,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},dae=new Sn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fae=new Sn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),vae=new Sn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),mae=new Sn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gae=new Sn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pae=new Sn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),hae=new Sn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bae=new Sn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),yae={"move-up":{inKeyframes:hae,outKeyframes:bae},"move-down":{inKeyframes:dae,outKeyframes:fae},"move-left":{inKeyframes:vae,outKeyframes:mae},"move-right":{inKeyframes:gae,outKeyframes:pae}},Zd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=yae[t];return[Ky(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},By=new Cn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),zy=new Cn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hy=new Cn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Vy=new Cn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),aae=new Cn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),oae=new Cn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),iae=new Cn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),lae=new Cn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),sae={"slide-up":{inKeyframes:By,outKeyframes:zy},"slide-down":{inKeyframes:Hy,outKeyframes:Vy},"slide-left":{inKeyframes:aae,outKeyframes:oae},"slide-right":{inKeyframes:iae,outKeyframes:lae}},al=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=sae[t];return[Ly(r,a,o,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},qy=new Sn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Uy=new Sn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Gy=new Sn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Yy=new Sn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Cae=new Sn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Sae=new Sn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),xae=new Sn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),wae=new Sn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$ae={"slide-up":{inKeyframes:qy,outKeyframes:Uy},"slide-down":{inKeyframes:Gy,outKeyframes:Yy},"slide-left":{inKeyframes:Cae,outKeyframes:Sae},"slide-right":{inKeyframes:xae,outKeyframes:wae}},ll=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=$ae[t];return[Ky(r,a,o,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},TR=new Cn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),cae=new Cn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),_N=new Cn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),jN=new Cn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),uae=new Cn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),dae=new Cn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),fae=new Cn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),vae=new Cn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),mae=new Cn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),gae=new Cn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),pae=new Cn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),hae=new Cn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),bae={zoom:{inKeyframes:TR,outKeyframes:cae},"zoom-big":{inKeyframes:_N,outKeyframes:jN},"zoom-big-fast":{inKeyframes:_N,outKeyframes:jN},"zoom-left":{inKeyframes:fae,outKeyframes:vae},"zoom-right":{inKeyframes:mae,outKeyframes:gae},"zoom-up":{inKeyframes:uae,outKeyframes:dae},"zoom-down":{inKeyframes:pae,outKeyframes:hae}},yf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=bae[t];return[Ly(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},WR=new Sn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Eae=new Sn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),G8=new Sn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Y8=new Sn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Pae=new Sn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Oae=new Sn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Iae=new Sn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Rae=new Sn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Mae=new Sn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Tae=new Sn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Nae=new Sn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),_ae=new Sn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),jae={zoom:{inKeyframes:WR,outKeyframes:Eae},"zoom-big":{inKeyframes:G8,outKeyframes:Y8},"zoom-big-fast":{inKeyframes:G8,outKeyframes:Y8},"zoom-left":{inKeyframes:Iae,outKeyframes:Rae},"zoom-right":{inKeyframes:Mae,outKeyframes:Tae},"zoom-up":{inKeyframes:Pae,outKeyframes:Oae},"zoom-down":{inKeyframes:Nae,outKeyframes:_ae}},Cf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=jae[t];return[Ky(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},yae=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:o,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:g,colorTextDisabled:h,fontSizeLG:b,lineHeight:p,lineHeightLG:S,marginSM:C,paddingSM:x,paddingLG:w,paddingXS:$,motionDurationSlow:E,fontSizeIcon:R,contentPadding:I,fontHeight:O,fontHeightLG:T}=e,N=`${me(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},wn(e)),{backgroundColor:a,border:N,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,"&:first-child":{[` + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Fae=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:a,headerPadding:o,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:u,lineType:d,colorBorder:f,colorText:m,colorTextHeading:g,colorTextDisabled:h,fontSizeLG:b,lineHeight:p,lineHeightLG:S,marginSM:C,paddingSM:x,paddingLG:w,paddingXS:$,motionDurationSlow:E,fontSizeIcon:R,contentPadding:I,fontHeight:O,fontHeightLG:T}=e,_=`${me(u)} ${d} ${f}`;return{[t]:Object.assign(Object.assign({},$n(e)),{backgroundColor:a,border:_,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:_,"&:first-child":{[` &, & > ${t}-header`]:{borderRadius:`${me(c)} ${me(c)} 0 0`}},"&:last-child":{[` &, - & > ${t}-header`]:{borderRadius:`0 0 ${me(c)} ${me(c)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:g,lineHeight:p,cursor:"pointer",transition:`all ${E}, visibility 0s`},Ga(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:O,display:"flex",alignItems:"center",paddingInlineEnd:C},[`${t}-arrow`]:Object.assign(Object.assign({},su()),{fontSize:R,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:N,[`& > ${t}-content-box`]:{padding:I},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub($).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:b,lineHeight:S,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:T,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${me(c)} ${me(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:C}}}}})}},Cae=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Sae=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:a,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` + & > ${t}-header`]:{borderRadius:`0 0 ${me(c)} ${me(c)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:g,lineHeight:p,cursor:"pointer",transition:`all ${E}, visibility 0s`},Ga(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:O,display:"flex",alignItems:"center",paddingInlineEnd:C},[`${t}-arrow`]:Object.assign(Object.assign({},cu()),{fontSize:R,transition:`transform ${E}`,svg:{transition:`transform ${E}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:m,backgroundColor:n,borderTop:_,[`& > ${t}-content-box`]:{padding:I},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:i,paddingInlineStart:$,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(x).sub($).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},"&-large":{[`> ${t}-item`]:{fontSize:b,lineHeight:S,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:T,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${me(c)} ${me(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:h,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:C}}}}})}},Dae=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},kae=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:a,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:a,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},xae=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},wae=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),$ae=un("Collapse",e=>{const t=tn(e,{collapseHeaderPaddingSM:`${me(e.paddingXS)} ${me(e.paddingSM)}`,collapseHeaderPaddingLG:`${me(e.padding)} ${me(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[yae(t),Sae(t),xae(t),Cae(t),Ay(t)]},wae),Eae=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:o,style:i}=lr("collapse"),{prefixCls:l,className:c,rootClassName:u,style:d,bordered:f=!0,ghost:m,size:g,expandIconPosition:h="start",children:b,destroyInactivePanel:p,destroyOnHidden:S,expandIcon:C}=e,x=$r(D=>{var F;return(F=g??D)!==null&&F!==void 0?F:"middle"}),w=n("collapse",l),$=n(),[E,R,I]=$ae(w),O=s.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),T=C??a,N=s.useCallback((D={})=>{const F=typeof T=="function"?T(D):s.createElement(ai,{rotate:D.isActive?r==="rtl"?-90:90:void 0,"aria-label":D.isActive?"expanded":"collapsed"});return Br(F,()=>{var L;return{className:oe((L=F.props)===null||L===void 0?void 0:L.className,`${w}-arrow`)}})},[T,w,r]),A=oe(`${w}-icon-position-${O}`,{[`${w}-borderless`]:!f,[`${w}-rtl`]:r==="rtl",[`${w}-ghost`]:!!m,[`${w}-${x}`]:x!=="middle"},o,c,u,R,I),k=s.useMemo(()=>Object.assign(Object.assign({},jm($)),{motionAppear:!1,leavedClassName:`${w}-content-hidden`}),[$,w]),j=s.useMemo(()=>b?rr(b).map((D,F)=>{var L,B;const K=D.props;if(K!=null&&K.disabled){const W=(L=D.key)!==null&&L!==void 0?L:String(F),V=Object.assign(Object.assign({},nn(D.props,["disabled"])),{key:W,collapsible:(B=K.collapsible)!==null&&B!==void 0?B:"disabled"});return Br(D,V)}return D}):null,[b]);return E(s.createElement(MR,Object.assign({ref:t,openMotion:k},nn(e,["rootClassName"]),{expandIcon:N,prefixCls:w,className:A,style:Object.assign(Object.assign({},i),d),destroyInactivePanel:S??p}),j))}),Mz=Object.assign(Eae,{Panel:Wre}),Ea=e=>e instanceof Mo?e:new Mo(e),A0=e=>Math.round(Number(e||0)),NR=e=>A0(e.toHsb().a*100),L0=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,Ea(r)}return n.a=1,Ea(n)},Tz=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(ke(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(Ea),t)),Nz=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),i=new Fi(e.toRgbString()).onBackground(t).toHsv();return o<=.5?i.v>.5:n*.299+r*.587+a*.114>192},FN=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},Pae=({prefixCls:e,presets:t,value:n,onChange:r})=>{const[a]=Pa("ColorPicker"),[,o]=qr(),[i]=_t(ox(t),{value:ox(t),postState:ox}),l=`${e}-presets`,c=s.useMemo(()=>i.reduce((f,m,g)=>{const{defaultOpen:h=!0}=m;return h&&f.push(FN(m,g)),f},[]),[i]),u=f=>{r==null||r(f)},d=i.map((f,m)=>{var g;return{key:FN(f,m),label:ee.createElement("div",{className:`${l}-label`},f==null?void 0:f.label),children:ee.createElement("div",{className:`${l}-items`},Array.isArray(f==null?void 0:f.colors)&&((g=f.colors)===null||g===void 0?void 0:g.length)>0?f.colors.map((h,b)=>ee.createElement(RR,{key:`preset-${b}-${h.toHexString()}`,color:Ea(h).toRgbString(),prefixCls:e,className:oe(`${l}-color`,{[`${l}-color-checked`]:h.toHexString()===(n==null?void 0:n.toHexString()),[`${l}-color-bright`]:Nz(h,o.colorBgElevated)}),onClick:()=>u(h)})):ee.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return ee.createElement("div",{className:l},ee.createElement(Mz,{defaultActiveKey:c,ghost:!0,items:d}))},_z=e=>{const{paddingInline:t,onlyIconSize:n}=e;return tn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},jz=e=>{var t,n,r,a,o,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:D0(l),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:D0(c),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:D0(u),g=Nz(new Mo(e.colorBgSolid),"#fff")?"#000":"#fff",h=Us.reduce((b,p)=>Object.assign(Object.assign({},b),{[`${p}ShadowColor`]:`0 ${me(e.controlOutlineWidth)} 0 ${Uv(e[`${p}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{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:g,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)})},Oae=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:o,motionEaseInOut:i,iconGap:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${me(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`]:su(),"> a":{color:"currentColor"},"&:not(:disabled)":Ga(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{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(u=>`${u} ${o} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},Fz=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Iae=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Rae=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Wy=(e,t,n,r,a,o,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Fz(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),Mae=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Rae(e))}),Tae=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ky=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?Tae:Mae;return Object.assign(Object.assign({},o(e)),Fz(e.componentCls,t,n))},qy=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Ky(e,r,a))}),Uy=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Ky(e,r,a))}),Gy=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Yy=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Ky(e,n,r))}),ol=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Ky(e,r,a,n))}),Nae=e=>{const{componentCls:t}=e;return Us.reduce((n,r)=>{const a=e[`${r}6`],o=e[`${r}1`],i=e[`${r}5`],l=e[`${r}2`],c=e[`${r}3`],u=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},qy(e,e.colorTextLightSolid,a,{background:i},{background:u})),Uy(e,a,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),Gy(e)),Yy(e,o,{color:a,background:l},{color:a,background:c})),ol(e,a,"link",{color:i},{color:u})),ol(e,a,"text",{color:i,background:o},{color:u,background:c}))})},{})},_ae=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},qy(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Gy(e)),Yy(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Wy(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),ol(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),jae=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Uy(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Gy(e)),Yy(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),ol(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),ol(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Wy(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Fae=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},qy(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Uy(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Gy(e)),Yy(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),ol(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),ol(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Wy(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Dae=e=>Object.assign(Object.assign({},ol(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Wy(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),kae=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:_ae(e),[`${t}-color-primary`]:jae(e),[`${t}-color-dangerous`]:Fae(e),[`${t}-color-link`]:Dae(e)},Nae(e))},Aae=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Uy(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ol(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),qy(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),ol(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),_R=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:o,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:a,height:r,padding:`${me(c)} ${me(i)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:Iae(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Lae=e=>{const t=tn(e,{fontSize:e.contentFontSize});return _R(t,e.componentCls)},Bae=e=>{const t=tn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return _R(t,`${e.componentCls}-sm`)},zae=e=>{const t=tn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return _R(t,`${e.componentCls}-lg`)},Hae=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Vae=un("Button",e=>{const t=_z(e);return[Oae(t),Lae(t),Bae(t),zae(t),Hae(t),kae(t),Aae(t),Cre(t)]},jz,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Wae(e,t,n,r){const{focusElCls:a,focus:o,borderElCls:i}=n,l=i?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function Kae(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";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 nc(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,o=`${a}-compact`;return{[o]:Object.assign(Object.assign({},Wae(e,o,t,a)),Kae(a,o,t))}}function qae(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Uae(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 Gae(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},qae(e,t,e.componentCls)),Uae(e.componentCls,t))}}const Yae=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,o=a(r).mul(-1).equal(),i=l=>{const c=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:l?o:0,insetInlineStart:l?0:o,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},Xae=pf(["Button","compact"],e=>{const t=_z(e);return[nc(t),Gae(t),Yae(t)]},jz);var Qae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{loading:a=!1,prefixCls:o,color:i,variant:l,type:c,danger:u=!1,shape:d,size:f,styles:m,disabled:g,className:h,rootClassName:b,children:p,icon:S,iconPosition:C="start",ghost:x=!1,block:w=!1,htmlType:$="button",classNames:E,style:R={},autoInsertSpace:I,autoFocus:O}=e,T=Qae(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),N=c||"default",{button:A}=ee.useContext(jt),k=d||(A==null?void 0:A.shape)||"default",[j,D]=s.useMemo(()=>{if(i&&l)return[i,l];if(c||u){const Be=Zae[N]||[];return u?["danger",Be[1]]:Be}return A!=null&&A.color&&(A!=null&&A.variant)?[A.color,A.variant]:["default","outlined"]},[i,l,c,u,A==null?void 0:A.color,A==null?void 0:A.variant,N]),L=j==="danger"?"dangerous":j,{getPrefixCls:B,direction:K,autoInsertSpace:W,className:V,style:q,classNames:U,styles:G}=lr("button"),Y=(n=I??W)!==null&&n!==void 0?n:!0,J=B("btn",o),[Q,Z,ne]=Vae(J),ae=s.useContext(Lr),le=g??ae,re=s.useContext(yz),fe=s.useMemo(()=>Jae(a),[a]),[ue,de]=s.useState(fe.loading),[ie,se]=s.useState(!1),ve=s.useRef(null),he=Ai(t,ve),Ce=s.Children.count(p)===1&&!S&&!tx(D),pe=s.useRef(!0);ee.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),dn(()=>{let Be=null;fe.delay>0?Be=setTimeout(()=>{Be=null,de(!0)},fe.delay):de(fe.loading);function Qe(){Be&&(clearTimeout(Be),Be=null)}return Qe},[fe.delay,fe.loading]),s.useEffect(()=>{if(!ve.current||!Y)return;const Be=ve.current.textContent||"";Ce&&CP(Be)?ie||se(!0):ie&&se(!1)}),s.useEffect(()=>{O&&ve.current&&ve.current.focus()},[]);const Se=ee.useCallback(Be=>{var Qe;if(ue||le){Be.preventDefault();return}(Qe=e.onClick)===null||Qe===void 0||Qe.call(e,("href"in e,Be))},[e.onClick,ue,le]),{compactSize:ge,compactItemClassnames:ye}=ko(J,K),xe={large:"lg",small:"sm",middle:void 0},$e=$r(Be=>{var Qe,lt;return(lt=(Qe=f??ge)!==null&&Qe!==void 0?Qe:re)!==null&<!==void 0?lt:Be}),He=$e&&(r=xe[$e])!==null&&r!==void 0?r:"",Te=ue?"loading":S,Re=nn(T,["navigate"]),Fe=oe(J,Z,ne,{[`${J}-${k}`]:k!=="default"&&k,[`${J}-${N}`]:N,[`${J}-dangerous`]:u,[`${J}-color-${L}`]:L,[`${J}-variant-${D}`]:D,[`${J}-${He}`]:He,[`${J}-icon-only`]:!p&&p!==0&&!!Te,[`${J}-background-ghost`]:x&&!tx(D),[`${J}-loading`]:ue,[`${J}-two-chinese-chars`]:ie&&Y&&!ue,[`${J}-block`]:w,[`${J}-rtl`]:K==="rtl",[`${J}-icon-end`]:C==="end"},ye,h,b,V),je=Object.assign(Object.assign({},q),R),Ee=oe(E==null?void 0:E.icon,U.icon),Le=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),G.icon||{}),Pe=Be=>ee.createElement(Cz,{prefixCls:J,className:Ee,style:Le},Be),ze=()=>ee.createElement(yre,{existIcon:!!S,prefixCls:J,loading:ue,mount:pe.current});let Oe;S&&!ue?Oe=Pe(S):a&&typeof a=="object"&&a.icon?Oe=Pe(a.icon):Oe=ze();const we=p||p===0?bre(p,Ce&&Y):null;if(Re.href!==void 0)return Q(ee.createElement("a",Object.assign({},Re,{className:oe(Fe,{[`${J}-disabled`]:le}),href:le?void 0:Re.href,style:je,onClick:Se,ref:he,tabIndex:le?-1:0,"aria-disabled":le}),Oe,we));let _e=ee.createElement("button",Object.assign({},T,{type:$,className:Fe,style:je,onClick:Se,disabled:le,ref:he}),Oe,we,ye&&ee.createElement(Xae,{prefixCls:J}));return tx(D)||(_e=ee.createElement(vg,{component:"Button",disabled:ue},_e)),Q(_e)}),jn=eoe;jn.Group=pre;jn.__ANT_BUTTON=!0;const ix=e=>typeof(e==null?void 0:e.then)=="function",jR=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:o,autoFocus:i,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=s.useRef(!1),m=s.useRef(null),[g,h]=Qc(!1),b=(...C)=>{o==null||o.apply(void 0,C)};s.useEffect(()=>{let C=null;return i&&(C=setTimeout(()=>{var x;(x=m.current)===null||x===void 0||x.focus({preventScroll:!0})})),()=>{C&&clearTimeout(C)}},[i]);const p=C=>{ix(C)&&(h(!0),C.then((...x)=>{h(!1,!0),b.apply(void 0,x),f.current=!1},x=>{if(h(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(x)}))},S=C=>{if(f.current)return;if(f.current=!0,!d){b();return}let x;if(l){if(x=d(C),u&&!ix(x)){f.current=!1,b(C);return}}else if(d.length)x=d(o),f.current=!1;else if(x=d(),!ix(x)){b();return}p(x)};return s.createElement(jn,Object.assign({},IR(t),{onClick:S,loading:g,prefixCls:r},a,{ref:m}),n)},mg=ee.createContext({}),{Provider:Dz}=mg,DN=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:o,close:i,onCancel:l,onConfirm:c}=s.useContext(mg);return a?ee.createElement(jR,{isSilent:r,actionFn:l,close:(...u)=>{i==null||i.apply(void 0,u),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},kN=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:o,okType:i,onConfirm:l,onOk:c}=s.useContext(mg);return ee.createElement(jR,{isSilent:n,type:i||"primary",actionFn:c,close:(...u)=>{t==null||t.apply(void 0,u),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},o)};var kz=s.createContext(null),AN=[];function toe(e,t){var n=s.useState(function(){if(!va())return null;var h=document.createElement("div");return h}),r=ce(n,1),a=r[0],o=s.useRef(!1),i=s.useContext(kz),l=s.useState(AN),c=ce(l,2),u=c[0],d=c[1],f=i||(o.current?void 0:function(h){d(function(b){var p=[h].concat(ke(b));return p})});function m(){a.parentElement||document.body.appendChild(a),o.current=!0}function g(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return dn(function(){return e?i?i(m):m():g(),g},[e]),dn(function(){u.length&&(u.forEach(function(h){return h()}),d(AN))},[u]),[a,f]}var lx;function Az(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";kl(` + `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:a,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},Aae=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Lae=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"}),Bae=dn("Collapse",e=>{const t=en(e,{collapseHeaderPaddingSM:`${me(e.paddingXS)} ${me(e.paddingSM)}`,collapseHeaderPaddingLG:`${me(e.padding)} ${me(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[Fae(t),kae(t),Aae(t),Dae(t),Wy(t)]},Lae),zae=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:a,className:o,style:i}=sr("collapse"),{prefixCls:l,className:c,rootClassName:u,style:d,bordered:f=!0,ghost:m,size:g,expandIconPosition:h="start",children:b,destroyInactivePanel:p,destroyOnHidden:S,expandIcon:C}=e,x=Er(D=>{var F;return(F=g??D)!==null&&F!==void 0?F:"middle"}),w=n("collapse",l),$=n(),[E,R,I]=Bae(w),O=s.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),T=C??a,_=s.useCallback((D={})=>{const F=typeof T=="function"?T(D):s.createElement(oi,{rotate:D.isActive?r==="rtl"?-90:90:void 0,"aria-label":D.isActive?"expanded":"collapsed"});return zr(F,()=>{var L;return{className:oe((L=F.props)===null||L===void 0?void 0:L.className,`${w}-arrow`)}})},[T,w,r]),k=oe(`${w}-icon-position-${O}`,{[`${w}-borderless`]:!f,[`${w}-rtl`]:r==="rtl",[`${w}-ghost`]:!!m,[`${w}-${x}`]:x!=="middle"},o,c,u,R,I),A=s.useMemo(()=>Object.assign(Object.assign({},_m($)),{motionAppear:!1,leavedClassName:`${w}-content-hidden`}),[$,w]),j=s.useMemo(()=>b?rr(b).map((D,F)=>{var L,B;const K=D.props;if(K!=null&&K.disabled){const W=(L=D.key)!==null&&L!==void 0?L:String(F),V=Object.assign(Object.assign({},nn(D.props,["disabled"])),{key:W,collapsible:(B=K.collapsible)!==null&&B!==void 0?B:"disabled"});return zr(D,V)}return D}):null,[b]);return E(s.createElement(VR,Object.assign({ref:t,openMotion:A},nn(e,["rootClassName"]),{expandIcon:_,prefixCls:w,className:k,style:Object.assign(Object.assign({},i),d),destroyInactivePanel:S??p}),j))}),Gz=Object.assign(zae,{Panel:iae}),$a=e=>e instanceof To?e:new To(e),H0=e=>Math.round(Number(e||0)),KR=e=>H0(e.toHsb().a*100),V0=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,$a(r)}return n.a=1,$a(n)},Yz=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(ke(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map($a),t)),Xz=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),i=new ki(e.toRgbString()).onBackground(t).toHsv();return o<=.5?i.v>.5:n*.299+r*.587+a*.114>192},X8=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},Hae=({prefixCls:e,presets:t,value:n,onChange:r})=>{const[a]=Ea("ColorPicker"),[,o]=Ur(),[i]=Nt(mx(t),{value:mx(t),postState:mx}),l=`${e}-presets`,c=s.useMemo(()=>i.reduce((f,m,g)=>{const{defaultOpen:h=!0}=m;return h&&f.push(X8(m,g)),f},[]),[i]),u=f=>{r==null||r(f)},d=i.map((f,m)=>{var g;return{key:X8(f,m),label:ee.createElement("div",{className:`${l}-label`},f==null?void 0:f.label),children:ee.createElement("div",{className:`${l}-items`},Array.isArray(f==null?void 0:f.colors)&&((g=f.colors)===null||g===void 0?void 0:g.length)>0?f.colors.map((h,b)=>ee.createElement(HR,{key:`preset-${b}-${h.toHexString()}`,color:$a(h).toRgbString(),prefixCls:e,className:oe(`${l}-color`,{[`${l}-color-checked`]:h.toHexString()===(n==null?void 0:n.toHexString()),[`${l}-color-bright`]:Xz(h,o.colorBgElevated)}),onClick:()=>u(h)})):ee.createElement("span",{className:`${l}-empty`},a.presetEmpty))}});return ee.createElement("div",{className:l},ee.createElement(Gz,{defaultActiveKey:c,ghost:!0,items:d}))},Qz=e=>{const{paddingInline:t,onlyIconSize:n}=e;return en(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Jz=e=>{var t,n,r,a,o,i;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(a=e.contentLineHeight)!==null&&a!==void 0?a:B0(l),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:B0(c),m=(i=e.contentLineHeightLG)!==null&&i!==void 0?i:B0(u),g=Xz(new To(e.colorBgSolid),"#fff")?"#000":"#fff",h=qs.reduce((b,p)=>Object.assign(Object.assign({},b),{[`${p}ShadowColor`]:`0 ${me(e.controlOutlineWidth)} 0 ${Uv(e[`${p}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{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:g,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)})},Vae=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:o,motionEaseInOut:i,iconGap:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${me(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`]:cu(),"> a":{color:"currentColor"},"&:not(:disabled)":Ga(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{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(u=>`${u} ${o} ${i}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},Zz=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),Wae=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Kae=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Xy=(e,t,n,r,a,o,i,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Zz(e,Object.assign({background:t},i),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),qae=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Kae(e))}),Uae=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Qy=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?Uae:qae;return Object.assign(Object.assign({},o(e)),Zz(e.componentCls,t,n))},Jy=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Qy(e,r,a))}),Zy=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Qy(e,r,a))}),e1=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),t1=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Qy(e,n,r))}),sl=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Qy(e,r,a,n))}),Gae=e=>{const{componentCls:t}=e;return qs.reduce((n,r)=>{const a=e[`${r}6`],o=e[`${r}1`],i=e[`${r}5`],l=e[`${r}2`],c=e[`${r}3`],u=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},Jy(e,e.colorTextLightSolid,a,{background:i},{background:u})),Zy(e,a,e.colorBgContainer,{color:i,borderColor:i,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),e1(e)),t1(e,o,{color:a,background:l},{color:a,background:c})),sl(e,a,"link",{color:i},{color:u})),sl(e,a,"text",{color:i,background:o},{color:u,background:c}))})},{})},Yae=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Jy(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),e1(e)),t1(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),Xy(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),sl(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Xae=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Zy(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),e1(e)),t1(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),sl(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),sl(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Xy(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Qae=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Jy(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Zy(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),e1(e)),t1(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),sl(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),sl(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Xy(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Jae=e=>Object.assign(Object.assign({},sl(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Xy(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Zae=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Yae(e),[`${t}-color-primary`]:Xae(e),[`${t}-color-dangerous`]:Qae(e),[`${t}-color-link`]:Jae(e)},Gae(e))},eoe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Zy(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),sl(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Jy(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),sl(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),qR=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:o,buttonPaddingHorizontal:i,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:a,height:r,padding:`${me(c)} ${me(i)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:Wae(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},toe=e=>{const t=en(e,{fontSize:e.contentFontSize});return qR(t,e.componentCls)},noe=e=>{const t=en(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return qR(t,`${e.componentCls}-sm`)},roe=e=>{const t=en(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return qR(t,`${e.componentCls}-lg`)},aoe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},ooe=dn("Button",e=>{const t=Qz(e);return[Vae(t),toe(t),noe(t),roe(t),aoe(t),Zae(t),eoe(t),Dre(t)]},Jz,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ioe(e,t,n,r){const{focusElCls:a,focus:o,borderElCls:i}=n,l=i?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function loe(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";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 tc(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,o=`${a}-compact`;return{[o]:Object.assign(Object.assign({},ioe(e,o,t,a)),loe(a,o,t))}}function soe(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function coe(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 uoe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},soe(e,t,e.componentCls)),coe(e.componentCls,t))}}const doe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,o=a(r).mul(-1).equal(),i=l=>{const c=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:l?o:0,insetInlineStart:l?0:o,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},i()),i(!0))},foe=hf(["Button","compact"],e=>{const t=Qz(e);return[tc(t),uoe(t),doe(t)]},Jz);var voe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{loading:a=!1,prefixCls:o,color:i,variant:l,type:c,danger:u=!1,shape:d,size:f,styles:m,disabled:g,className:h,rootClassName:b,children:p,icon:S,iconPosition:C="start",ghost:x=!1,block:w=!1,htmlType:$="button",classNames:E,style:R={},autoInsertSpace:I,autoFocus:O}=e,T=voe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),_=c||"default",{button:k}=ee.useContext(jt),A=d||(k==null?void 0:k.shape)||"default",[j,D]=s.useMemo(()=>{if(i&&l)return[i,l];if(c||u){const Be=goe[_]||[];return u?["danger",Be[1]]:Be}return k!=null&&k.color&&(k!=null&&k.variant)?[k.color,k.variant]:["default","outlined"]},[i,l,c,u,k==null?void 0:k.color,k==null?void 0:k.variant,_]),L=j==="danger"?"dangerous":j,{getPrefixCls:B,direction:K,autoInsertSpace:W,className:V,style:q,classNames:U,styles:G}=sr("button"),Y=(n=I??W)!==null&&n!==void 0?n:!0,J=B("btn",o),[Q,Z,ne]=ooe(J),ae=s.useContext(Br),le=g??ae,re=s.useContext(kz),fe=s.useMemo(()=>moe(a),[a]),[ue,de]=s.useState(fe.loading),[ie,se]=s.useState(!1),ve=s.useRef(null),he=zi(t,ve),Ce=s.Children.count(p)===1&&!S&&!ux(D),pe=s.useRef(!0);ee.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),fn(()=>{let Be=null;fe.delay>0?Be=setTimeout(()=>{Be=null,de(!0)},fe.delay):de(fe.loading);function Qe(){Be&&(clearTimeout(Be),Be=null)}return Qe},[fe.delay,fe.loading]),s.useEffect(()=>{if(!ve.current||!Y)return;const Be=ve.current.textContent||"";Ce&&RP(Be)?ie||se(!0):ie&&se(!1)}),s.useEffect(()=>{O&&ve.current&&ve.current.focus()},[]);const Se=ee.useCallback(Be=>{var Qe;if(ue||le){Be.preventDefault();return}(Qe=e.onClick)===null||Qe===void 0||Qe.call(e,("href"in e,Be))},[e.onClick,ue,le]),{compactSize:ge,compactItemClassnames:ye}=Ao(J,K),xe={large:"lg",small:"sm",middle:void 0},$e=Er(Be=>{var Qe,lt;return(lt=(Qe=f??ge)!==null&&Qe!==void 0?Qe:re)!==null&<!==void 0?lt:Be}),He=$e&&(r=xe[$e])!==null&&r!==void 0?r:"",Te=ue?"loading":S,Re=nn(T,["navigate"]),Fe=oe(J,Z,ne,{[`${J}-${A}`]:A!=="default"&&A,[`${J}-${_}`]:_,[`${J}-dangerous`]:u,[`${J}-color-${L}`]:L,[`${J}-variant-${D}`]:D,[`${J}-${He}`]:He,[`${J}-icon-only`]:!p&&p!==0&&!!Te,[`${J}-background-ghost`]:x&&!ux(D),[`${J}-loading`]:ue,[`${J}-two-chinese-chars`]:ie&&Y&&!ue,[`${J}-block`]:w,[`${J}-rtl`]:K==="rtl",[`${J}-icon-end`]:C==="end"},ye,h,b,V),je=Object.assign(Object.assign({},q),R),Ee=oe(E==null?void 0:E.icon,U.icon),Le=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),G.icon||{}),Pe=Be=>ee.createElement(Az,{prefixCls:J,className:Ee,style:Le},Be),ze=()=>ee.createElement(Fre,{existIcon:!!S,prefixCls:J,loading:ue,mount:pe.current});let Oe;S&&!ue?Oe=Pe(S):a&&typeof a=="object"&&a.icon?Oe=Pe(a.icon):Oe=ze();const we=p||p===0?jre(p,Ce&&Y):null;if(Re.href!==void 0)return Q(ee.createElement("a",Object.assign({},Re,{className:oe(Fe,{[`${J}-disabled`]:le}),href:le?void 0:Re.href,style:je,onClick:Se,ref:he,tabIndex:le?-1:0,"aria-disabled":le}),Oe,we));let _e=ee.createElement("button",Object.assign({},T,{type:$,className:Fe,style:je,onClick:Se,disabled:le,ref:he}),Oe,we,ye&&ee.createElement(foe,{prefixCls:J}));return ux(D)||(_e=ee.createElement(vg,{component:"Button",disabled:ue},_e)),Q(_e)}),_n=poe;_n.Group=Nre;_n.__ANT_BUTTON=!0;const gx=e=>typeof(e==null?void 0:e.then)=="function",UR=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:o,autoFocus:i,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=s.useRef(!1),m=s.useRef(null),[g,h]=Qc(!1),b=(...C)=>{o==null||o.apply(void 0,C)};s.useEffect(()=>{let C=null;return i&&(C=setTimeout(()=>{var x;(x=m.current)===null||x===void 0||x.focus({preventScroll:!0})})),()=>{C&&clearTimeout(C)}},[i]);const p=C=>{gx(C)&&(h(!0),C.then((...x)=>{h(!1,!0),b.apply(void 0,x),f.current=!1},x=>{if(h(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(x)}))},S=C=>{if(f.current)return;if(f.current=!0,!d){b();return}let x;if(l){if(x=d(C),u&&!gx(x)){f.current=!1,b(C);return}}else if(d.length)x=d(o),f.current=!1;else if(x=d(),!gx(x)){b();return}p(x)};return s.createElement(_n,Object.assign({},zR(t),{onClick:S,loading:g,prefixCls:r},a,{ref:m}),n)},mg=ee.createContext({}),{Provider:eH}=mg,Q8=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:o,close:i,onCancel:l,onConfirm:c}=s.useContext(mg);return a?ee.createElement(UR,{isSilent:r,actionFn:l,close:(...u)=>{i==null||i.apply(void 0,u),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},J8=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:o,okType:i,onConfirm:l,onOk:c}=s.useContext(mg);return ee.createElement(UR,{isSilent:n,type:i||"primary",actionFn:c,close:(...u)=>{t==null||t.apply(void 0,u),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},o)};var tH=s.createContext(null),Z8=[];function hoe(e,t){var n=s.useState(function(){if(!ma())return null;var h=document.createElement("div");return h}),r=ce(n,1),a=r[0],o=s.useRef(!1),i=s.useContext(tH),l=s.useState(Z8),c=ce(l,2),u=c[0],d=c[1],f=i||(o.current?void 0:function(h){d(function(b){var p=[h].concat(ke(b));return p})});function m(){a.parentElement||document.body.appendChild(a),o.current=!0}function g(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),o.current=!1}return fn(function(){return e?i?i(m):m():g(),g},[e]),fn(function(){u.length&&(u.forEach(function(h){return h()}),d(Z8))},[u]),[a,f]}var px;function nH(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,o;if(e){var i=getComputedStyle(e);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";kl(` #`.concat(t,`::-webkit-scrollbar { `).concat(d,` `).concat(f,` -}`),t)}catch(h){console.error(h),a=c,o=u}}document.body.appendChild(n);var m=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Em(t),{width:m,height:g}}function LN(e){return typeof document>"u"?0:(lx===void 0&&(lx=Az()),lx.width)}function SP(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Az(e)}function noe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var roe="rc-util-locker-".concat(Date.now()),BN=0;function aoe(e){var t=!!e,n=s.useState(function(){return BN+=1,"".concat(roe,"_").concat(BN)}),r=ce(n,1),a=r[0];dn(function(){if(t){var o=SP(document.body).width,i=noe();kl(` +}`),t)}catch(h){console.error(h),a=c,o=u}}document.body.appendChild(n);var m=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Em(t),{width:m,height:g}}function eN(e){return typeof document>"u"?0:(px===void 0&&(px=nH()),px.width)}function MP(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:nH(e)}function boe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var yoe="rc-util-locker-".concat(Date.now()),tN=0;function Coe(e){var t=!!e,n=s.useState(function(){return tN+=1,"".concat(yoe,"_").concat(tN)}),r=ce(n,1),a=r[0];fn(function(){if(t){var o=MP(document.body).width,i=boe();kl(` html body { overflow-y: hidden; `.concat(i?"width: calc(100% - ".concat(o,"px);"):"",` -}`),a)}else Em(a);return function(){Em(a)}},[t,a])}var ooe=!1;function ioe(e){return ooe}var zN=function(t){return t===!1?!1:!va()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},gg=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,l=e.children,c=s.useState(n),u=ce(c,2),d=u[0],f=u[1],m=d||n;s.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=s.useState(function(){return zN(a)}),h=ce(g,2),b=h[0],p=h[1];s.useEffect(function(){var N=zN(a);p(N??null)});var S=toe(m&&!b),C=ce(S,2),x=C[0],w=C[1],$=b??x;aoe(r&&n&&va()&&($===x||$===document.body));var E=null;if(l&&_i(l)&&t){var R=l;E=R.ref}var I=Ai(E,t);if(!m||!va()||b===void 0)return null;var O=$===!1||ioe(),T=l;return t&&(T=s.cloneElement(l,{ref:I})),s.createElement(kz.Provider,{value:w},O?T:Ua.createPortal(T,$))}),Lz=s.createContext({});function loe(){var e=P({},sg);return e.useId}var HN=0,VN=loe();const Cf=VN?(function(t){var n=VN();return t||n}):(function(t){var n=s.useState("ssr-id"),r=ce(n,2),a=r[0],o=r[1];return s.useEffect(function(){var i=HN;HN+=1,o("rc_unique_".concat(i))},[]),t||a});function WN(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function KN(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function soe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=KN(a),n.top+=KN(a,!0),n}const coe=s.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var uoe={width:0,height:0,overflow:"hidden",outline:"none"},doe={outline:"none"},Bz=ee.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.title,i=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,g=e.bodyProps,h=e.modalRender,b=e.onMouseDown,p=e.onMouseUp,S=e.holderRef,C=e.visible,x=e.forceRender,w=e.width,$=e.height,E=e.classNames,R=e.styles,I=ee.useContext(Lz),O=I.panel,T=Ai(S,O),N=s.useRef(),A=s.useRef();ee.useImperativeHandle(t,function(){return{focus:function(){var q;(q=N.current)===null||q===void 0||q.focus({preventScroll:!0})},changeActive:function(q){var U=document,G=U.activeElement;q&&G===A.current?N.current.focus({preventScroll:!0}):!q&&G===N.current&&A.current.focus({preventScroll:!0})}}});var k={};w!==void 0&&(k.width=w),$!==void 0&&(k.height=$);var j=l?ee.createElement("div",{className:oe("".concat(n,"-footer"),E==null?void 0:E.footer),style:P({},R==null?void 0:R.footer)},l):null,D=o?ee.createElement("div",{className:oe("".concat(n,"-header"),E==null?void 0:E.header),style:P({},R==null?void 0:R.header)},ee.createElement("div",{className:"".concat(n,"-title"),id:i},o)):null,F=s.useMemo(function(){return it(c)==="object"&&c!==null?c:c?{closeIcon:u??ee.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),L=dr(F,!0),B=it(c)==="object"&&c.disabled,K=c?ee.createElement("button",Me({type:"button",onClick:d,"aria-label":"Close"},L,{className:"".concat(n,"-close"),disabled:B}),F.closeIcon):null,W=ee.createElement("div",{className:oe("".concat(n,"-content"),E==null?void 0:E.content),style:R==null?void 0:R.content},K,D,ee.createElement("div",Me({className:oe("".concat(n,"-body"),E==null?void 0:E.body),style:P(P({},m),R==null?void 0:R.body)},g),f),j);return ee.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?i:null,"aria-modal":"true",ref:T,style:P(P({},a),k),className:oe(n,r),onMouseDown:b,onMouseUp:p},ee.createElement("div",{ref:N,tabIndex:0,style:doe},ee.createElement(coe,{shouldUpdate:C||x},h?h(W):W)),ee.createElement("div",{tabIndex:0,ref:A,style:uoe}))}),zz=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,o=e.className,i=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,g=s.useRef(),h=s.useState(),b=ce(h,2),p=b[0],S=b[1],C={};p&&(C.transformOrigin=p);function x(){var w=soe(g.current);S(m&&(m.x||m.y)?"".concat(m.x-w.left,"px ").concat(m.y-w.top,"px"):"")}return s.createElement(ma,{visible:i,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:l,motionName:u,removeOnLeave:c,ref:g},function(w,$){var E=w.className,R=w.style;return s.createElement(Bz,Me({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:$,style:P(P(P({},R),a),C),className:oe(o,E)}))})});zz.displayName="Content";var foe=function(t){var n=t.prefixCls,r=t.style,a=t.visible,o=t.maskProps,i=t.motionName,l=t.className;return s.createElement(ma,{key:"mask",visible:a,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return s.createElement("div",Me({ref:u,style:P(P({},f),r),className:oe("".concat(n,"-mask"),d,l)},o))})},voe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,o=t.visible,i=o===void 0?!1:o,l=t.keyboard,c=l===void 0?!0:l,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,g=t.wrapProps,h=t.onClose,b=t.afterOpenChange,p=t.afterClose,S=t.transitionName,C=t.animation,x=t.closable,w=x===void 0?!0:x,$=t.mask,E=$===void 0?!0:$,R=t.maskTransitionName,I=t.maskAnimation,O=t.maskClosable,T=O===void 0?!0:O,N=t.maskStyle,A=t.maskProps,k=t.rootClassName,j=t.classNames,D=t.styles,F=s.useRef(),L=s.useRef(),B=s.useRef(),K=s.useState(i),W=ce(K,2),V=W[0],q=W[1],U=Cf();function G(){nP(L.current,document.activeElement)||(F.current=document.activeElement)}function Y(){if(!nP(L.current,document.activeElement)){var de;(de=B.current)===null||de===void 0||de.focus()}}function J(de){if(de)Y();else{if(q(!1),E&&F.current&&d){try{F.current.focus({preventScroll:!0})}catch{}F.current=null}V&&(p==null||p())}b==null||b(de)}function Q(de){h==null||h(de)}var Z=s.useRef(!1),ne=s.useRef(),ae=function(){clearTimeout(ne.current),Z.current=!0},le=function(){ne.current=setTimeout(function(){Z.current=!1})},re=null;T&&(re=function(ie){Z.current?Z.current=!1:L.current===ie.target&&Q(ie)});function fe(de){if(c&&de.keyCode===ot.ESC){de.stopPropagation(),Q(de);return}i&&de.keyCode===ot.TAB&&B.current.changeActive(!de.shiftKey)}s.useEffect(function(){i&&(q(!0),G())},[i]),s.useEffect(function(){return function(){clearTimeout(ne.current)}},[]);var ue=P(P(P({zIndex:a},f),D==null?void 0:D.wrapper),{},{display:V?null:"none"});return s.createElement("div",Me({className:oe("".concat(r,"-root"),k)},dr(t,{data:!0})),s.createElement(foe,{prefixCls:r,visible:E&&i,motionName:WN(r,R,I),style:P(P({zIndex:a},N),D==null?void 0:D.mask),maskProps:A,className:j==null?void 0:j.mask}),s.createElement("div",Me({tabIndex:-1,onKeyDown:fe,className:oe("".concat(r,"-wrap"),m,j==null?void 0:j.wrapper),ref:L,onClick:re,style:ue},g),s.createElement(zz,Me({},t,{onMouseDown:ae,onMouseUp:le,ref:B,closable:w,ariaId:U,prefixCls:r,visible:i&&V,onClose:Q,onVisibleChanged:J,motionName:WN(r,S,C)}))))},FR=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,o=t.destroyOnClose,i=o===void 0?!1:o,l=t.afterClose,c=t.panelRef,u=s.useState(n),d=ce(u,2),f=d[0],m=d[1],g=s.useMemo(function(){return{panel:c}},[c]);return s.useEffect(function(){n&&m(!0)},[n]),!a&&i&&!f?null:s.createElement(Lz.Provider,{value:g},s.createElement(gg,{open:n||a||f,autoDestroy:!1,getContainer:r,autoLock:n||f},s.createElement(voe,Me({},t,{destroyOnClose:i,afterClose:function(){l==null||l(),m(!1)}}))))};FR.displayName="Dialog";var Ic="RC_FORM_INTERNAL_HOOKS",ur=function(){Wn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Gs=s.createContext({getFieldValue:ur,getFieldsValue:ur,getFieldError:ur,getFieldWarning:ur,getFieldsError:ur,isFieldsTouched:ur,isFieldTouched:ur,isFieldValidating:ur,isFieldsValidating:ur,resetFields:ur,setFields:ur,setFieldValue:ur,setFieldsValue:ur,validateFields:ur,submit:ur,getInternalHooks:function(){return ur(),{dispatch:ur,initEntityValue:ur,registerField:ur,useSubscribe:ur,setInitialValues:ur,destroyForm:ur,setCallbacks:ur,registerWatch:ur,getFields:ur,setValidateMessages:ur,setPreserve:ur,getInitialValue:ur}}}),Fm=s.createContext(null);function xP(e){return e==null?[]:Array.isArray(e)?e:[e]}function moe(e){return e&&!!e._init}function wP(){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",tel:"%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 $P=wP();function goe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function poe(e,t,n){if(Ey())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&wm(a,n.prototype),a}function EP(e){var t=typeof Map=="function"?new Map:void 0;return EP=function(r){if(r===null||!goe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return poe(r,arguments,Yc(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),wm(a,r)},EP(e)}var hoe=/%[sdj%]/g,boe=function(){};function PP(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function To(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return l;switch(l){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function yoe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function ia(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||yoe(t)&&typeof e=="string"&&!e)}function Coe(e,t,n){var r=[],a=0,o=e.length;function i(l){r.push.apply(r,ke(l||[])),a++,a===o&&n(r)}e.forEach(function(l){t(l,i)})}function qN(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var l=r;r=r+1,lt.max?a.push(To(o.messages[f].max,t.fullField,t.max)):l&&c&&(dt.max)&&a.push(To(o.messages[f].range,t.fullField,t.min,t.max))},Hz=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||ia(n,i||t.type))&&a.push(To(o.messages.required,t.fullField))},uh;const Ioe=(function(){if(uh)return uh;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?l:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function($){return $&&$.exact?c:new RegExp("".concat(t($)).concat(n).concat(t($)),"g")},d.v6=function($){return $&&$.exact?u:new RegExp("".concat(t($)).concat(i).concat(t($)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,h=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(g,"|").concat(h,"|").concat(b).concat(p).concat(S,")").concat(C).concat(x);return uh=new RegExp("(?:^".concat(w,"$)"),"i"),uh});var sx={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Yv={integer:function(t){return Yv.number(t)&&parseInt(t,10)===t},float:function(t){return Yv.number(t)&&!Yv.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 it(t)==="object"&&!Yv.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(sx.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(sx.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ioe())},hex:function(t){return typeof t=="string"&&!!t.match(sx.hex)}},Roe=function(t,n,r,a,o){if(t.required&&n===void 0){Hz(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Yv[l](n)||a.push(To(o.messages.types[l],t.fullField,t.type)):l&&it(n)!==t.type&&a.push(To(o.messages.types[l],t.fullField,t.type))},Moe=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(To(o.messages.whitespace,t.fullField))};const Hn={required:Hz,whitespace:Moe,type:Roe,range:Ooe,enum:Eoe,pattern:Poe};var Toe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n)&&!t.required)return r();Hn.required(t,n,a,i,o)}r(i)},Noe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Hn.required(t,n,a,i,o,"array"),n!=null&&(Hn.type(t,n,a,i,o),Hn.range(t,n,a,i,o))}r(i)},_oe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n)&&!t.required)return r();Hn.required(t,n,a,i,o),n!==void 0&&Hn.type(t,n,a,i,o)}r(i)},joe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n,"date")&&!t.required)return r();if(Hn.required(t,n,a,i,o),!ia(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Hn.type(t,c,a,i,o),c&&Hn.range(t,c.getTime(),a,i,o)}}r(i)},Foe="enum",Doe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n)&&!t.required)return r();Hn.required(t,n,a,i,o),n!==void 0&&Hn[Foe](t,n,a,i,o)}r(i)},koe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n)&&!t.required)return r();Hn.required(t,n,a,i,o),n!==void 0&&(Hn.type(t,n,a,i,o),Hn.range(t,n,a,i,o))}r(i)},Aoe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n)&&!t.required)return r();Hn.required(t,n,a,i,o),n!==void 0&&(Hn.type(t,n,a,i,o),Hn.range(t,n,a,i,o))}r(i)},Loe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n)&&!t.required)return r();Hn.required(t,n,a,i,o),n!==void 0&&Hn.type(t,n,a,i,o)}r(i)},Boe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),ia(n)&&!t.required)return r();Hn.required(t,n,a,i,o),n!==void 0&&(Hn.type(t,n,a,i,o),Hn.range(t,n,a,i,o))}r(i)},zoe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n)&&!t.required)return r();Hn.required(t,n,a,i,o),n!==void 0&&Hn.type(t,n,a,i,o)}r(i)},Hoe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n,"string")&&!t.required)return r();Hn.required(t,n,a,i,o),ia(n,"string")||Hn.pattern(t,n,a,i,o)}r(i)},Voe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n)&&!t.required)return r();Hn.required(t,n,a,i,o),ia(n)||Hn.type(t,n,a,i,o)}r(i)},Woe=function(t,n,r,a,o){var i=[],l=Array.isArray(n)?"array":it(n);Hn.required(t,n,a,i,o,l),r(i)},Koe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ia(n,"string")&&!t.required)return r();Hn.required(t,n,a,i,o,"string"),ia(n,"string")||(Hn.type(t,n,a,i,o),Hn.range(t,n,a,i,o),Hn.pattern(t,n,a,i,o),t.whitespace===!0&&Hn.whitespace(t,n,a,i,o))}r(i)},dh=function(t,n,r,a,o){var i=t.type,l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(ia(n,i)&&!t.required)return r();Hn.required(t,n,a,l,o,i),ia(n,i)||Hn.type(t,n,a,l,o)}r(l)};const dm={string:Koe,method:Loe,number:Boe,boolean:_oe,regexp:Voe,integer:Aoe,float:koe,array:Noe,object:zoe,enum:Doe,pattern:Hoe,date:joe,url:dh,hex:dh,email:dh,tel:dh,required:Woe,any:Toe};var pg=(function(){function e(t){or(this,e),z(this,"rules",null),z(this,"_messages",$P),this.define(t)}return ir(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(it(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=YN(wP(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,l=a,c=o;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(h){var b=[],p={};function S(x){if(Array.isArray(x)){var w;b=(w=b).concat.apply(w,ke(x))}else b.push(x)}for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray(R)?R:[R];!l.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&p.message!==void 0&&p.message!==null&&(I=[].concat(p.message));var O=I.map(GN(p,i));if(l.first&&O.length)return g[p.field]=1,b(O);if(!S)b(O);else{if(p.required&&!h.value)return p.message!==void 0?O=[].concat(p.message).map(GN(p,i)):l.error&&(O=[l.error(p,To(l.messages.required,p.field))]),b(O);var T={};p.defaultField&&Object.keys(h.value).map(function(k){T[k]=p.defaultField}),T=P(P({},T),h.rule.fields);var N={};Object.keys(T).forEach(function(k){var j=T[k],D=Array.isArray(j)?j:[j];N[k]=D.map(C.bind(null,k))});var A=new e(N);A.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),A.validate(h.value,h.rule.options||l,function(k){var j=[];O&&O.length&&j.push.apply(j,ke(O)),k&&k.length&&j.push.apply(j,ke(k)),b(j.length?j:null)})}}var w;if(p.asyncValidator)w=p.asyncValidator(p,h.value,x,h.source,l);else if(p.validator){try{w=p.validator(p,h.value,x,h.source,l)}catch(R){var $,E;($=(E=console).error)===null||$===void 0||$.call(E,R),l.suppressValidatorError||setTimeout(function(){throw R},0),x(R.message)}w===!0?x():w===!1?x(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):w instanceof Array?x(w):w instanceof Error&&x(w.message)}w&&w.then&&w.then(function(){return x()},function(R){return x(R)})},function(h){u(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!dm.hasOwnProperty(n.type))throw new Error(To("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?dm.required:dm[this.getType(n)]||void 0}}]),e})();z(pg,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");dm[t]=n});z(pg,"warning",boe);z(pg,"messages",$P);z(pg,"validators",dm);var So="'${name}' is not a valid ${type}",Vz={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:So,method:So,array:So,object:So,number:So,date:So,boolean:So,integer:So,float:So,regexp:So,email:So,url:So,hex:So},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}"}},XN=pg;function qoe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var QN="CODE_LOGIC_ERROR";function OP(e,t,n,r,a){return IP.apply(this,arguments)}function IP(){return IP=mn(ht().mark(function e(t,n,r,a,o){var i,l,c,u,d,f,m,g,h;return ht().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=P({},r),delete i.ruleIndex,XN.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(QN)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new XN(z({},t,[i])),d=Ds(Vz,a.validateMessages),u.messages(d),f=[],p.prev=10,p.next=13,Promise.resolve(u.validate(z({},t,n),P({},a)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(f=p.t0.errors.map(function(S,C){var x=S.message,w=x===QN?d.default:x;return s.isValidElement(w)?s.cloneElement(w,{key:"error_".concat(C)}):w}));case 18:if(!(!f.length&&c&&Array.isArray(n)&&n.length>0)){p.next=23;break}return p.next=21,Promise.all(n.map(function(S,C){return OP("".concat(t,".").concat(C),S,c,a,o)}));case 21:return m=p.sent,p.abrupt("return",m.reduce(function(S,C){return[].concat(ke(S),ke(C))},[]));case 23:return g=P(P({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),h=f.map(function(S){return typeof S=="string"?qoe(S,g):S}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),IP.apply(this,arguments)}function Uoe(e,t,n,r,a,o){var i=e.join("."),l=n.map(function(d,f){var m=d.validator,g=P(P({},d),{},{ruleIndex:f});return m&&(g.validator=function(h,b,p){var S=!1,C=function(){for(var $=arguments.length,E=new Array($),R=0;R<$;R++)E[R]=arguments[R];Promise.resolve().then(function(){Wn(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||p.apply(void 0,E)})},x=m(h,b,C);S=x&&typeof x.then=="function"&&typeof x.catch=="function",Wn(S,"`callback` is deprecated. Please return a promise instead."),S&&x.then(function(){p()}).catch(function(w){p(w||" ")})}),g}).sort(function(d,f){var m=d.warningOnly,g=d.ruleIndex,h=f.warningOnly,b=f.ruleIndex;return!!m==!!h?g-b:m?1:-1}),c;if(a===!0)c=new Promise((function(){var d=mn(ht().mark(function f(m,g){var h,b,p;return ht().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:h=0;case 1:if(!(h2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Wz(t,r,n)})}function Wz(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function Xoe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||it(e)!=="object"||it(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return ke(a).every(function(o){var i=e[o],l=t[o];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function Qoe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&it(t.target)==="object"&&e in t.target?t.target[e]:t}function ZN(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(ke(e.slice(0,n)),[a],ke(e.slice(n,t)),ke(e.slice(t+1,r))):o<0?[].concat(ke(e.slice(0,t)),ke(e.slice(t+1,n+1)),[a],ke(e.slice(n+1,r))):e}var Joe=["name"],qo=[];function cx(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var DR=(function(e){vo(n,e);var t=Do(n);function n(r){var a;if(or(this,n),a=t.call(this,r),z(Ft(a),"state",{resetCount:0}),z(Ft(a),"cancelRegisterFunc",null),z(Ft(a),"mounted",!1),z(Ft(a),"touched",!1),z(Ft(a),"dirty",!1),z(Ft(a),"validatePromise",void 0),z(Ft(a),"prevValidating",void 0),z(Ft(a),"errors",qo),z(Ft(a),"warnings",qo),z(Ft(a),"cancelRegister",function(){var c=a.props,u=c.preserve,d=c.isListField,f=c.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,Vr(f)),a.cancelRegisterFunc=null}),z(Ft(a),"getNamePath",function(){var c=a.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(ke(m),ke(u)):[]}),z(Ft(a),"getRules",function(){var c=a.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),z(Ft(a),"refresh",function(){a.mounted&&a.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),z(Ft(a),"metaCache",null),z(Ft(a),"triggerMetaEvent",function(c){var u=a.props.onMetaChange;if(u){var d=P(P({},a.getMeta()),{},{destroy:c});ei(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),z(Ft(a),"onStoreChange",function(c,u,d){var f=a.props,m=f.shouldUpdate,g=f.dependencies,h=g===void 0?[]:g,b=f.onReset,p=d.store,S=a.getNamePath(),C=a.getValue(c),x=a.getValue(p),w=u&&wd(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!ei(C,x)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=qo,a.warnings=qo,a.triggerMetaEvent()),d.type){case"reset":if(!u||w){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=qo,a.warnings=qo,a.triggerMetaEvent(),b==null||b(),a.refresh();return}break;case"remove":{if(m&&cx(m,c,p,C,x,d)){a.reRender();return}break}case"setField":{var $=d.data;if(w){"touched"in $&&(a.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(a.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(a.errors=$.errors||qo),"warnings"in $&&(a.warnings=$.warnings||qo),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in $&&wd(u,S,!0)){a.reRender();return}if(m&&!S.length&&cx(m,c,p,C,x,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map(Vr);if(E.some(function(R){return wd(d.relatedFields,R)})){a.reRender();return}break}default:if(w||(!h.length||S.length||m)&&cx(m,c,p,C,x,d)){a.reRender();return}break}m===!0&&a.reRender()}),z(Ft(a),"validateRules",function(c){var u=a.getNamePath(),d=a.getValue(),f=c||{},m=f.triggerName,g=f.validateOnly,h=g===void 0?!1:g,b=Promise.resolve().then(mn(ht().mark(function p(){var S,C,x,w,$,E,R;return ht().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(a.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(S=a.props,C=S.validateFirst,x=C===void 0?!1:C,w=S.messageVariables,$=S.validateDebounce,E=a.getRules(),m&&(E=E.filter(function(T){return T}).filter(function(T){var N=T.validateTrigger;if(!N)return!0;var A=xP(N);return A.includes(m)})),!($&&m)){O.next=10;break}return O.next=8,new Promise(function(T){setTimeout(T,$)});case 8:if(a.validatePromise===b){O.next=10;break}return O.abrupt("return",[]);case 10:return R=Uoe(u,d,E,c,x,w),R.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qo;if(a.validatePromise===b){var N;a.validatePromise=null;var A=[],k=[];(N=T.forEach)===null||N===void 0||N.call(T,function(j){var D=j.rule.warningOnly,F=j.errors,L=F===void 0?qo:F;D?k.push.apply(k,ke(L)):A.push.apply(A,ke(L))}),a.errors=A,a.warnings=k,a.triggerMetaEvent(),a.reRender()}}),O.abrupt("return",R);case 13:case"end":return O.stop()}},p)})));return h||(a.validatePromise=b,a.dirty=!0,a.errors=qo,a.warnings=qo,a.triggerMetaEvent(),a.reRender()),b}),z(Ft(a),"isFieldValidating",function(){return!!a.validatePromise}),z(Ft(a),"isFieldTouched",function(){return a.touched}),z(Ft(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var c=a.props.fieldContext,u=c.getInternalHooks(Ic),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),z(Ft(a),"getErrors",function(){return a.errors}),z(Ft(a),"getWarnings",function(){return a.warnings}),z(Ft(a),"isListField",function(){return a.props.isListField}),z(Ft(a),"isList",function(){return a.props.isList}),z(Ft(a),"isPreserve",function(){return a.props.preserve}),z(Ft(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var c={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return c}),z(Ft(a),"getOnlyChild",function(c){if(typeof c=="function"){var u=a.getMeta();return P(P({},a.getOnlyChild(c(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=rr(c);return d.length!==1||!s.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),z(Ft(a),"getValue",function(c){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Un(c||u(!0),d)}),z(Ft(a),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,m=u.validateTrigger,g=u.getValueFromEvent,h=u.normalize,b=u.valuePropName,p=u.getValueProps,S=u.fieldContext,C=m!==void 0?m:S.validateTrigger,x=a.getNamePath(),w=S.getInternalHooks,$=S.getFieldsValue,E=w(Ic),R=E.dispatch,I=a.getValue(),O=p||function(j){return z({},b,j)},T=c[f],N=d!==void 0?O(I):{},A=P(P({},c),N);A[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var j,D=arguments.length,F=new Array(D),L=0;L=0&&T<=N.length?(d.keys=[].concat(ke(d.keys.slice(0,T)),[d.id],ke(d.keys.slice(T))),x([].concat(ke(N.slice(0,T)),[O],ke(N.slice(T))))):(d.keys=[].concat(ke(d.keys),[d.id]),x([].concat(ke(N),[O]))),d.id+=1},remove:function(O){var T=$(),N=new Set(Array.isArray(O)?O:[O]);N.size<=0||(d.keys=d.keys.filter(function(A,k){return!N.has(k)}),x(T.filter(function(A,k){return!N.has(k)})))},move:function(O,T){if(O!==T){var N=$();O<0||O>=N.length||T<0||T>=N.length||(d.keys=ZN(d.keys,O,T),x(ZN(N,O,T)))}}},R=C||[];return Array.isArray(R)||(R=[]),r(R.map(function(I,O){var T=d.keys[O];return T===void 0&&(d.keys[O]=d.id,T=d.keys[O],d.id+=1),{name:O,key:T,isListField:!0}}),E,p)})))}function Zoe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,l){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var qz="__@field_split__";function ux(e){return e.map(function(t){return"".concat(it(t),":").concat(t)}).join(qz)}var Ju=(function(){function e(){or(this,e),z(this,"kvs",new Map)}return ir(e,[{key:"set",value:function(n,r){this.kvs.set(ux(n),r)}},{key:"get",value:function(n){return this.kvs.get(ux(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(ux(n))}},{key:"map",value:function(n){return ke(this.kvs.entries()).map(function(r){var a=ce(r,2),o=a[0],i=a[1],l=o.split(qz);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=ce(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e})(),eie=["name"],tie=ir(function e(t){var n=this;or(this,e),z(this,"formHooked",!1),z(this,"forceRootUpdate",void 0),z(this,"subscribable",!0),z(this,"store",{}),z(this,"fieldEntities",[]),z(this,"initialValues",{}),z(this,"callbacks",{}),z(this,"validateMessages",null),z(this,"preserve",null),z(this,"lastValidatePromise",null),z(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),z(this,"getInternalHooks",function(r){return r===Ic?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Wn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),z(this,"useSubscribe",function(r){n.subscribable=r}),z(this,"prevWithoutPreserves",null),z(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=Ds(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var c=l.key;i=br(i,c,Un(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),z(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new Ju;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),z(this,"getInitialValue",function(r){var a=Un(n.initialValues,r);return r.length?Ds(a):a}),z(this,"setCallbacks",function(r){n.callbacks=r}),z(this,"setValidateMessages",function(r){n.validateMessages=r}),z(this,"setPreserve",function(r){n.preserve=r}),z(this,"watchList",[]),z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),z(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),z(this,"timeoutId",null),z(this,"warningUnhooked",function(){}),z(this,"updateStore",function(r){n.store=r}),z(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Ju;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=Vr(o);return a.get(i)||{INVALIDATE_NAME_PATH:Vr(o)}})}),z(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,l;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&it(r)==="object"&&(l=r.strict,i=r.filter),o===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(d){var f,m,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var h,b;if((h=(b=d).isList)!==null&&h!==void 0&&h.call(b))return}else if(!o&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(g);else{var p="getMeta"in d?d.getMeta():null;i(p)&&u.push(g)}}),JN(n.store,u.map(Vr))}),z(this,"getFieldValue",function(r){n.warningUnhooked();var a=Vr(r);return Un(n.store,a)}),z(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Vr(r[i]),errors:[],warnings:[]}})}),z(this,"getFieldError",function(r){n.warningUnhooked();var a=Vr(r),o=n.getFieldsError([a])[0];return o.errors}),z(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Vr(r),o=n.getFieldsError([a])[0];return o.warnings}),z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new Ju,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:c,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)Wn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var h=a.get(m);if(h&&h.size>1)Wn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var b=n.getFieldValue(m),p=d.isListField();!p&&(!r.skipExist||b===void 0)&&n.updateStore(br(n.store,m,ke(h)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=a.get(c);if(u){var d;(d=l).push.apply(d,ke(ke(u).map(function(f){return f.entity})))}})):l=o,i(l)}),z(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Ds(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Vr);o.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(br(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),z(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var l=i.name,c=Ue(i,eie),u=Vr(l);o.push(u),"value"in c&&n.updateStore(br(n.store,u,c.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),z(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),l=o.getMeta(),c=P(P({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return a}),z(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=Un(n.store,o);i===void 0&&n.updateStore(br(n.store,o,a))}}),z(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),z(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(f){return!Wz(f.getNamePath(),a)})){var d=n.store;n.updateStore(br(d,a,u,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}}),z(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),z(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=P(P({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,a,i)})}else n.forceRootUpdate()}),z(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(ke(o))}),o}),z(this,"updateValue",function(r,a){var o=Vr(r),i=n.store;n.updateStore(br(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(i,o),c=n.callbacks.onValuesChange;if(c){var u=JN(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(ke(l)))}),z(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Ds(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),z(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),z(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new Ju;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Vr(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(o.push(m),c(m))}})};return l(r),o}),z(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var l=new Ju;a.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),i.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return wd(r,d)});c.length&&o(c,i)}}),z(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var l=!!o,c=l?o.map(Vr):[],u=[],d=String(Date.now()),f=new Set,m=i||{},g=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(C){if(l||c.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(h&&!C.isFieldDirty())){var x=C.getNamePath();if(f.add(x.join(d)),!l||wd(c,x,g)){var w=C.validateRules(P({validateMessages:P(P({},Vz),n.validateMessages)},i));u.push(w.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function($){var E,R=[],I=[];return(E=$.forEach)===null||E===void 0||E.call($,function(O){var T=O.rule.warningOnly,N=O.errors;T?I.push.apply(I,ke(N)):R.push.apply(R,ke(N))}),R.length?Promise.reject({name:x,errors:R,warnings:I}):{name:x,errors:R,warnings:I}}))}}});var b=Zoe(u);n.lastValidatePromise=b,b.catch(function(C){return C}).then(function(C){var x=C.map(function(w){var $=w.name;return $});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,C)});var p=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(C){var x=C.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:x,outOfDate:n.lastValidatePromise!==b})});p.catch(function(C){return C});var S=c.filter(function(C){return f.has(C.join(d))});return n.triggerOnFieldsChange(S),p}),z(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function AR(e){var t=s.useRef(),n=s.useState({}),r=ce(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new tie(o);t.current=i.getForm()}return[t.current]}var TP=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Uz=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=s.useContext(TP),l=s.useRef({});return s.createElement(TP.Provider,{value:P(P({},i),{},{validateMessages:P(P({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:l.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=P(P({},l.current),{},z({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=P({},l.current);delete d[u],l.current=d,i.unregisterForm(u)}})},o)},nie=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],rie=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,l=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,h=t.onValuesChange,b=t.onFieldsChange,p=t.onFinish,S=t.onFinishFailed,C=t.clearOnDestroy,x=Ue(t,nie),w=s.useRef(null),$=s.useContext(TP),E=AR(i),R=ce(E,1),I=R[0],O=I.getInternalHooks(Ic),T=O.useSubscribe,N=O.setInitialValues,A=O.setCallbacks,k=O.setValidateMessages,j=O.setPreserve,D=O.destroyForm;s.useImperativeHandle(n,function(){return P(P({},I),{},{nativeElement:w.current})}),s.useEffect(function(){return $.registerForm(r,I),function(){$.unregisterForm(r)}},[$,I,r]),k(P(P({},$.validateMessages),f)),A({onValuesChange:h,onFieldsChange:function(G){if($.triggerFormChange(r,G),b){for(var Y=arguments.length,J=new Array(Y>1?Y-1:0),Q=1;Q{}}),Yz=s.createContext(null),Xz=e=>{const t=nn(e,["prefixCls"]);return s.createElement(Uz,Object.assign({},t))},LR=s.createContext({prefixCls:""}),zr=s.createContext({}),Qz=({children:e,status:t,override:n})=>{const r=s.useContext(zr),a=s.useMemo(()=>{const o=Object.assign({},r);return n&&delete o.isFormItemInput,t&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[t,n,r]);return s.createElement(zr.Provider,{value:a},e)},Jz=s.createContext(void 0),oi=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=ee.createElement(Qz,{override:!0,status:!0},a)),t&&(a=ee.createElement(fre,null,a)),a};var Zz=function(t){if(va()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},oie=function(t,n){if(!Zz(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function NP(e,t){return!Array.isArray(e)&&t!==void 0?oie(e,t):Zz(e)}const iie=()=>va()&&window.document.documentElement,Xy=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,i=oe({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),l=oe({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=s.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return s.createElement("span",{className:oe(t,i,l,n),style:Object.assign(Object.assign({},c),r)})},lie=new Cn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Qy=e=>({height:e,lineHeight:me(e)}),$d=e=>Object.assign({width:e},Qy(e)),sie=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:lie,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),dx=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Qy(e)),cie=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},$d(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},$d(a)),[`${t}${t}-sm`]:Object.assign({},$d(o))}},uie=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},dx(t,l)),[`${r}-lg`]:Object.assign({},dx(a,l)),[`${r}-sm`]:Object.assign({},dx(o,l))}},t8=e=>Object.assign({width:e},Qy(e)),die=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},t8(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},t8(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},fx=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},vx=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Qy(e)),fie=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},vx(r,l))},fx(e,r,n)),{[`${n}-lg`]:Object.assign({},vx(a,l))}),fx(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},vx(o,l))}),fx(e,o,`${n}-sm`))},vie=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:g,borderRadius:h,titleHeight:b,blockRadius:p,paragraphLiHeight:S,controlHeightXS:C,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},$d(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},$d(u)),[`${n}-sm`]:Object.assign({},$d(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:p,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:p,"+ li":{marginBlockStart:C}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${a}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},fie(e)),cie(e)),uie(e)),die(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[` +}`),a)}else Em(a);return function(){Em(a)}},[t,a])}var Soe=!1;function xoe(e){return Soe}var nN=function(t){return t===!1?!1:!ma()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},gg=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,l=e.children,c=s.useState(n),u=ce(c,2),d=u[0],f=u[1],m=d||n;s.useEffect(function(){(i||n)&&f(n)},[n,i]);var g=s.useState(function(){return nN(a)}),h=ce(g,2),b=h[0],p=h[1];s.useEffect(function(){var _=nN(a);p(_??null)});var S=hoe(m&&!b),C=ce(S,2),x=C[0],w=C[1],$=b??x;Coe(r&&n&&ma()&&($===x||$===document.body));var E=null;if(l&&Fi(l)&&t){var R=l;E=R.ref}var I=zi(E,t);if(!m||!ma()||b===void 0)return null;var O=$===!1||xoe(),T=l;return t&&(T=s.cloneElement(l,{ref:I})),s.createElement(tH.Provider,{value:w},O?T:Ua.createPortal(T,$))}),rH=s.createContext({});function woe(){var e=P({},sg);return e.useId}var rN=0,aN=woe();const Sf=aN?(function(t){var n=aN();return t||n}):(function(t){var n=s.useState("ssr-id"),r=ce(n,2),a=r[0],o=r[1];return s.useEffect(function(){var i=rN;rN+=1,o("rc_unique_".concat(i))},[]),t||a});function oN(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function iN(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var a=e.document;n=a.documentElement[r],typeof n!="number"&&(n=a.body[r])}return n}function $oe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=iN(a),n.top+=iN(a,!0),n}const Eoe=s.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Poe={width:0,height:0,overflow:"hidden",outline:"none"},Ooe={outline:"none"},aH=ee.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.title,i=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,g=e.bodyProps,h=e.modalRender,b=e.onMouseDown,p=e.onMouseUp,S=e.holderRef,C=e.visible,x=e.forceRender,w=e.width,$=e.height,E=e.classNames,R=e.styles,I=ee.useContext(rH),O=I.panel,T=zi(S,O),_=s.useRef(),k=s.useRef();ee.useImperativeHandle(t,function(){return{focus:function(){var q;(q=_.current)===null||q===void 0||q.focus({preventScroll:!0})},changeActive:function(q){var U=document,G=U.activeElement;q&&G===k.current?_.current.focus({preventScroll:!0}):!q&&G===_.current&&k.current.focus({preventScroll:!0})}}});var A={};w!==void 0&&(A.width=w),$!==void 0&&(A.height=$);var j=l?ee.createElement("div",{className:oe("".concat(n,"-footer"),E==null?void 0:E.footer),style:P({},R==null?void 0:R.footer)},l):null,D=o?ee.createElement("div",{className:oe("".concat(n,"-header"),E==null?void 0:E.header),style:P({},R==null?void 0:R.header)},ee.createElement("div",{className:"".concat(n,"-title"),id:i},o)):null,F=s.useMemo(function(){return it(c)==="object"&&c!==null?c:c?{closeIcon:u??ee.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),L=ar(F,!0),B=it(c)==="object"&&c.disabled,K=c?ee.createElement("button",Me({type:"button",onClick:d,"aria-label":"Close"},L,{className:"".concat(n,"-close"),disabled:B}),F.closeIcon):null,W=ee.createElement("div",{className:oe("".concat(n,"-content"),E==null?void 0:E.content),style:R==null?void 0:R.content},K,D,ee.createElement("div",Me({className:oe("".concat(n,"-body"),E==null?void 0:E.body),style:P(P({},m),R==null?void 0:R.body)},g),f),j);return ee.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?i:null,"aria-modal":"true",ref:T,style:P(P({},a),A),className:oe(n,r),onMouseDown:b,onMouseUp:p},ee.createElement("div",{ref:_,tabIndex:0,style:Ooe},ee.createElement(Eoe,{shouldUpdate:C||x},h?h(W):W)),ee.createElement("div",{tabIndex:0,ref:k,style:Poe}))}),oH=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,o=e.className,i=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,g=s.useRef(),h=s.useState(),b=ce(h,2),p=b[0],S=b[1],C={};p&&(C.transformOrigin=p);function x(){var w=$oe(g.current);S(m&&(m.x||m.y)?"".concat(m.x-w.left,"px ").concat(m.y-w.top,"px"):"")}return s.createElement(ga,{visible:i,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:l,motionName:u,removeOnLeave:c,ref:g},function(w,$){var E=w.className,R=w.style;return s.createElement(aH,Me({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:$,style:P(P(P({},R),a),C),className:oe(o,E)}))})});oH.displayName="Content";var Ioe=function(t){var n=t.prefixCls,r=t.style,a=t.visible,o=t.maskProps,i=t.motionName,l=t.className;return s.createElement(ga,{key:"mask",visible:a,motionName:i,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return s.createElement("div",Me({ref:u,style:P(P({},f),r),className:oe("".concat(n,"-mask"),d,l)},o))})},Roe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,o=t.visible,i=o===void 0?!1:o,l=t.keyboard,c=l===void 0?!0:l,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,g=t.wrapProps,h=t.onClose,b=t.afterOpenChange,p=t.afterClose,S=t.transitionName,C=t.animation,x=t.closable,w=x===void 0?!0:x,$=t.mask,E=$===void 0?!0:$,R=t.maskTransitionName,I=t.maskAnimation,O=t.maskClosable,T=O===void 0?!0:O,_=t.maskStyle,k=t.maskProps,A=t.rootClassName,j=t.classNames,D=t.styles,F=s.useRef(),L=s.useRef(),B=s.useRef(),K=s.useState(i),W=ce(K,2),V=W[0],q=W[1],U=Sf();function G(){dP(L.current,document.activeElement)||(F.current=document.activeElement)}function Y(){if(!dP(L.current,document.activeElement)){var de;(de=B.current)===null||de===void 0||de.focus()}}function J(de){if(de)Y();else{if(q(!1),E&&F.current&&d){try{F.current.focus({preventScroll:!0})}catch{}F.current=null}V&&(p==null||p())}b==null||b(de)}function Q(de){h==null||h(de)}var Z=s.useRef(!1),ne=s.useRef(),ae=function(){clearTimeout(ne.current),Z.current=!0},le=function(){ne.current=setTimeout(function(){Z.current=!1})},re=null;T&&(re=function(ie){Z.current?Z.current=!1:L.current===ie.target&&Q(ie)});function fe(de){if(c&&de.keyCode===ot.ESC){de.stopPropagation(),Q(de);return}i&&de.keyCode===ot.TAB&&B.current.changeActive(!de.shiftKey)}s.useEffect(function(){i&&(q(!0),G())},[i]),s.useEffect(function(){return function(){clearTimeout(ne.current)}},[]);var ue=P(P(P({zIndex:a},f),D==null?void 0:D.wrapper),{},{display:V?null:"none"});return s.createElement("div",Me({className:oe("".concat(r,"-root"),A)},ar(t,{data:!0})),s.createElement(Ioe,{prefixCls:r,visible:E&&i,motionName:oN(r,R,I),style:P(P({zIndex:a},_),D==null?void 0:D.mask),maskProps:k,className:j==null?void 0:j.mask}),s.createElement("div",Me({tabIndex:-1,onKeyDown:fe,className:oe("".concat(r,"-wrap"),m,j==null?void 0:j.wrapper),ref:L,onClick:re,style:ue},g),s.createElement(oH,Me({},t,{onMouseDown:ae,onMouseUp:le,ref:B,closable:w,ariaId:U,prefixCls:r,visible:i&&V,onClose:Q,onVisibleChanged:J,motionName:oN(r,S,C)}))))},GR=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,o=t.destroyOnClose,i=o===void 0?!1:o,l=t.afterClose,c=t.panelRef,u=s.useState(n),d=ce(u,2),f=d[0],m=d[1],g=s.useMemo(function(){return{panel:c}},[c]);return s.useEffect(function(){n&&m(!0)},[n]),!a&&i&&!f?null:s.createElement(rH.Provider,{value:g},s.createElement(gg,{open:n||a||f,autoDestroy:!1,getContainer:r,autoLock:n||f},s.createElement(Roe,Me({},t,{destroyOnClose:i,afterClose:function(){l==null||l(),m(!1)}}))))};GR.displayName="Dialog";var Ic="RC_FORM_INTERNAL_HOOKS",dr=function(){Kn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Us=s.createContext({getFieldValue:dr,getFieldsValue:dr,getFieldError:dr,getFieldWarning:dr,getFieldsError:dr,isFieldsTouched:dr,isFieldTouched:dr,isFieldValidating:dr,isFieldsValidating:dr,resetFields:dr,setFields:dr,setFieldValue:dr,setFieldsValue:dr,validateFields:dr,submit:dr,getInternalHooks:function(){return dr(),{dispatch:dr,initEntityValue:dr,registerField:dr,useSubscribe:dr,setInitialValues:dr,destroyForm:dr,setCallbacks:dr,registerWatch:dr,getFields:dr,setValidateMessages:dr,setPreserve:dr,getInitialValue:dr}}}),jm=s.createContext(null);function TP(e){return e==null?[]:Array.isArray(e)?e:[e]}function Moe(e){return e&&!!e._init}function NP(){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",tel:"%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 _P=NP();function Toe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Noe(e,t,n){if(My())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&wm(a,n.prototype),a}function jP(e){var t=typeof Map=="function"?new Map:void 0;return jP=function(r){if(r===null||!Toe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Noe(r,arguments,Yc(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),wm(a,r)},jP(e)}var _oe=/%[sdj%]/g,joe=function(){};function FP(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function No(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return l;switch(l){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function Foe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function la(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Foe(t)&&typeof e=="string"&&!e)}function Doe(e,t,n){var r=[],a=0,o=e.length;function i(l){r.push.apply(r,ke(l||[])),a++,a===o&&n(r)}e.forEach(function(l){t(l,i)})}function lN(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var l=r;r=r+1,lt.max?a.push(No(o.messages[f].max,t.fullField,t.max)):l&&c&&(dt.max)&&a.push(No(o.messages[f].range,t.fullField,t.min,t.max))},iH=function(t,n,r,a,o,i){t.required&&(!r.hasOwnProperty(t.field)||la(n,i||t.type))&&a.push(No(o.messages.required,t.fullField))},dh;const Woe=(function(){if(dh)return dh;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(a.join("|"),")").concat(o),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(i,"$")),d=function(E){return E&&E.exact?l:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(i).concat(t(E),")"),"g")};d.v4=function($){return $&&$.exact?c:new RegExp("".concat(t($)).concat(n).concat(t($)),"g")},d.v6=function($){return $&&$.exact?u:new RegExp("".concat(t($)).concat(i).concat(t($)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",g=d.v4().source,h=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(g,"|").concat(h,"|").concat(b).concat(p).concat(S,")").concat(C).concat(x);return dh=new RegExp("(?:^".concat(w,"$)"),"i"),dh});var hx={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,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Yv={integer:function(t){return Yv.number(t)&&parseInt(t,10)===t},float:function(t){return Yv.number(t)&&!Yv.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 it(t)==="object"&&!Yv.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(hx.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(hx.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Woe())},hex:function(t){return typeof t=="string"&&!!t.match(hx.hex)}},Koe=function(t,n,r,a,o){if(t.required&&n===void 0){iH(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?Yv[l](n)||a.push(No(o.messages.types[l],t.fullField,t.type)):l&&it(n)!==t.type&&a.push(No(o.messages.types[l],t.fullField,t.type))},qoe=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(No(o.messages.whitespace,t.fullField))};const Vn={required:iH,whitespace:qoe,type:Koe,range:Voe,enum:zoe,pattern:Hoe};var Uoe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n)&&!t.required)return r();Vn.required(t,n,a,i,o)}r(i)},Goe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Vn.required(t,n,a,i,o,"array"),n!=null&&(Vn.type(t,n,a,i,o),Vn.range(t,n,a,i,o))}r(i)},Yoe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n)&&!t.required)return r();Vn.required(t,n,a,i,o),n!==void 0&&Vn.type(t,n,a,i,o)}r(i)},Xoe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n,"date")&&!t.required)return r();if(Vn.required(t,n,a,i,o),!la(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Vn.type(t,c,a,i,o),c&&Vn.range(t,c.getTime(),a,i,o)}}r(i)},Qoe="enum",Joe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n)&&!t.required)return r();Vn.required(t,n,a,i,o),n!==void 0&&Vn[Qoe](t,n,a,i,o)}r(i)},Zoe=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n)&&!t.required)return r();Vn.required(t,n,a,i,o),n!==void 0&&(Vn.type(t,n,a,i,o),Vn.range(t,n,a,i,o))}r(i)},eie=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n)&&!t.required)return r();Vn.required(t,n,a,i,o),n!==void 0&&(Vn.type(t,n,a,i,o),Vn.range(t,n,a,i,o))}r(i)},tie=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n)&&!t.required)return r();Vn.required(t,n,a,i,o),n!==void 0&&Vn.type(t,n,a,i,o)}r(i)},nie=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),la(n)&&!t.required)return r();Vn.required(t,n,a,i,o),n!==void 0&&(Vn.type(t,n,a,i,o),Vn.range(t,n,a,i,o))}r(i)},rie=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n)&&!t.required)return r();Vn.required(t,n,a,i,o),n!==void 0&&Vn.type(t,n,a,i,o)}r(i)},aie=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n,"string")&&!t.required)return r();Vn.required(t,n,a,i,o),la(n,"string")||Vn.pattern(t,n,a,i,o)}r(i)},oie=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n)&&!t.required)return r();Vn.required(t,n,a,i,o),la(n)||Vn.type(t,n,a,i,o)}r(i)},iie=function(t,n,r,a,o){var i=[],l=Array.isArray(n)?"array":it(n);Vn.required(t,n,a,i,o,l),r(i)},lie=function(t,n,r,a,o){var i=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(la(n,"string")&&!t.required)return r();Vn.required(t,n,a,i,o,"string"),la(n,"string")||(Vn.type(t,n,a,i,o),Vn.range(t,n,a,i,o),Vn.pattern(t,n,a,i,o),t.whitespace===!0&&Vn.whitespace(t,n,a,i,o))}r(i)},fh=function(t,n,r,a,o){var i=t.type,l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(la(n,i)&&!t.required)return r();Vn.required(t,n,a,l,o,i),la(n,i)||Vn.type(t,n,a,l,o)}r(l)};const dm={string:lie,method:tie,number:nie,boolean:Yoe,regexp:oie,integer:eie,float:Zoe,array:Goe,object:rie,enum:Joe,pattern:aie,date:Xoe,url:fh,hex:fh,email:fh,tel:fh,required:iie,any:Uoe};var pg=(function(){function e(t){ir(this,e),z(this,"rules",null),z(this,"_messages",_P),this.define(t)}return lr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(it(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=uN(NP(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=n,l=a,c=o;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,i),Promise.resolve(i);function u(h){var b=[],p={};function S(x){if(Array.isArray(x)){var w;b=(w=b).concat.apply(w,ke(x))}else b.push(x)}for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray(R)?R:[R];!l.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&p.message!==void 0&&p.message!==null&&(I=[].concat(p.message));var O=I.map(cN(p,i));if(l.first&&O.length)return g[p.field]=1,b(O);if(!S)b(O);else{if(p.required&&!h.value)return p.message!==void 0?O=[].concat(p.message).map(cN(p,i)):l.error&&(O=[l.error(p,No(l.messages.required,p.field))]),b(O);var T={};p.defaultField&&Object.keys(h.value).map(function(A){T[A]=p.defaultField}),T=P(P({},T),h.rule.fields);var _={};Object.keys(T).forEach(function(A){var j=T[A],D=Array.isArray(j)?j:[j];_[A]=D.map(C.bind(null,A))});var k=new e(_);k.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),k.validate(h.value,h.rule.options||l,function(A){var j=[];O&&O.length&&j.push.apply(j,ke(O)),A&&A.length&&j.push.apply(j,ke(A)),b(j.length?j:null)})}}var w;if(p.asyncValidator)w=p.asyncValidator(p,h.value,x,h.source,l);else if(p.validator){try{w=p.validator(p,h.value,x,h.source,l)}catch(R){var $,E;($=(E=console).error)===null||$===void 0||$.call(E,R),l.suppressValidatorError||setTimeout(function(){throw R},0),x(R.message)}w===!0?x():w===!1?x(typeof p.message=="function"?p.message(p.fullField||p.field):p.message||"".concat(p.fullField||p.field," fails")):w instanceof Array?x(w):w instanceof Error&&x(w.message)}w&&w.then&&w.then(function(){return x()},function(R){return x(R)})},function(h){u(h)},i)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!dm.hasOwnProperty(n.type))throw new Error(No("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?dm.required:dm[this.getType(n)]||void 0}}]),e})();z(pg,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");dm[t]=n});z(pg,"warning",joe);z(pg,"messages",_P);z(pg,"validators",dm);var xo="'${name}' is not a valid ${type}",lH={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:xo,method:xo,array:xo,object:xo,number:xo,date:xo,boolean:xo,integer:xo,float:xo,regexp:xo,email:xo,url:xo,hex:xo},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}"}},dN=pg;function sie(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var fN="CODE_LOGIC_ERROR";function DP(e,t,n,r,a){return kP.apply(this,arguments)}function kP(){return kP=gn(ht().mark(function e(t,n,r,a,o){var i,l,c,u,d,f,m,g,h;return ht().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return i=P({},r),delete i.ruleIndex,dN.warning=function(){},i.validator&&(l=i.validator,i.validator=function(){try{return l.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(fN)}}),c=null,i&&i.type==="array"&&i.defaultField&&(c=i.defaultField,delete i.defaultField),u=new dN(z({},t,[i])),d=Ds(lH,a.validateMessages),u.messages(d),f=[],p.prev=10,p.next=13,Promise.resolve(u.validate(z({},t,n),P({},a)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(f=p.t0.errors.map(function(S,C){var x=S.message,w=x===fN?d.default:x;return s.isValidElement(w)?s.cloneElement(w,{key:"error_".concat(C)}):w}));case 18:if(!(!f.length&&c&&Array.isArray(n)&&n.length>0)){p.next=23;break}return p.next=21,Promise.all(n.map(function(S,C){return DP("".concat(t,".").concat(C),S,c,a,o)}));case 21:return m=p.sent,p.abrupt("return",m.reduce(function(S,C){return[].concat(ke(S),ke(C))},[]));case 23:return g=P(P({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),h=f.map(function(S){return typeof S=="string"?sie(S,g):S}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),kP.apply(this,arguments)}function cie(e,t,n,r,a,o){var i=e.join("."),l=n.map(function(d,f){var m=d.validator,g=P(P({},d),{},{ruleIndex:f});return m&&(g.validator=function(h,b,p){var S=!1,C=function(){for(var $=arguments.length,E=new Array($),R=0;R<$;R++)E[R]=arguments[R];Promise.resolve().then(function(){Kn(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||p.apply(void 0,E)})},x=m(h,b,C);S=x&&typeof x.then=="function"&&typeof x.catch=="function",Kn(S,"`callback` is deprecated. Please return a promise instead."),S&&x.then(function(){p()}).catch(function(w){p(w||" ")})}),g}).sort(function(d,f){var m=d.warningOnly,g=d.ruleIndex,h=f.warningOnly,b=f.ruleIndex;return!!m==!!h?g-b:m?1:-1}),c;if(a===!0)c=new Promise((function(){var d=gn(ht().mark(function f(m,g){var h,b,p;return ht().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:h=0;case 1:if(!(h2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return sH(t,r,n)})}function sH(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,a){return e[a]===r})}function fie(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||it(e)!=="object"||it(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return ke(a).every(function(o){var i=e[o],l=t[o];return typeof i=="function"&&typeof l=="function"?!0:i===l})}function vie(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&it(t.target)==="object"&&e in t.target?t.target[e]:t}function mN(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(ke(e.slice(0,n)),[a],ke(e.slice(n,t)),ke(e.slice(t+1,r))):o<0?[].concat(ke(e.slice(0,t)),ke(e.slice(t+1,n+1)),[a],ke(e.slice(n+1,r))):e}var mie=["name"],Uo=[];function bx(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var YR=(function(e){mo(n,e);var t=ko(n);function n(r){var a;if(ir(this,n),a=t.call(this,r),z(Ft(a),"state",{resetCount:0}),z(Ft(a),"cancelRegisterFunc",null),z(Ft(a),"mounted",!1),z(Ft(a),"touched",!1),z(Ft(a),"dirty",!1),z(Ft(a),"validatePromise",void 0),z(Ft(a),"prevValidating",void 0),z(Ft(a),"errors",Uo),z(Ft(a),"warnings",Uo),z(Ft(a),"cancelRegister",function(){var c=a.props,u=c.preserve,d=c.isListField,f=c.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,Kr(f)),a.cancelRegisterFunc=null}),z(Ft(a),"getNamePath",function(){var c=a.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(ke(m),ke(u)):[]}),z(Ft(a),"getRules",function(){var c=a.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),z(Ft(a),"refresh",function(){a.mounted&&a.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),z(Ft(a),"metaCache",null),z(Ft(a),"triggerMetaEvent",function(c){var u=a.props.onMetaChange;if(u){var d=P(P({},a.getMeta()),{},{destroy:c});ti(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),z(Ft(a),"onStoreChange",function(c,u,d){var f=a.props,m=f.shouldUpdate,g=f.dependencies,h=g===void 0?[]:g,b=f.onReset,p=d.store,S=a.getNamePath(),C=a.getValue(c),x=a.getValue(p),w=u&&Ed(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!ti(C,x)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Uo,a.warnings=Uo,a.triggerMetaEvent()),d.type){case"reset":if(!u||w){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Uo,a.warnings=Uo,a.triggerMetaEvent(),b==null||b(),a.refresh();return}break;case"remove":{if(m&&bx(m,c,p,C,x,d)){a.reRender();return}break}case"setField":{var $=d.data;if(w){"touched"in $&&(a.touched=$.touched),"validating"in $&&!("originRCField"in $)&&(a.validatePromise=$.validating?Promise.resolve([]):null),"errors"in $&&(a.errors=$.errors||Uo),"warnings"in $&&(a.warnings=$.warnings||Uo),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in $&&Ed(u,S,!0)){a.reRender();return}if(m&&!S.length&&bx(m,c,p,C,x,d)){a.reRender();return}break}case"dependenciesUpdate":{var E=h.map(Kr);if(E.some(function(R){return Ed(d.relatedFields,R)})){a.reRender();return}break}default:if(w||(!h.length||S.length||m)&&bx(m,c,p,C,x,d)){a.reRender();return}break}m===!0&&a.reRender()}),z(Ft(a),"validateRules",function(c){var u=a.getNamePath(),d=a.getValue(),f=c||{},m=f.triggerName,g=f.validateOnly,h=g===void 0?!1:g,b=Promise.resolve().then(gn(ht().mark(function p(){var S,C,x,w,$,E,R;return ht().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(a.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(S=a.props,C=S.validateFirst,x=C===void 0?!1:C,w=S.messageVariables,$=S.validateDebounce,E=a.getRules(),m&&(E=E.filter(function(T){return T}).filter(function(T){var _=T.validateTrigger;if(!_)return!0;var k=TP(_);return k.includes(m)})),!($&&m)){O.next=10;break}return O.next=8,new Promise(function(T){setTimeout(T,$)});case 8:if(a.validatePromise===b){O.next=10;break}return O.abrupt("return",[]);case 10:return R=cie(u,d,E,c,x,w),R.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Uo;if(a.validatePromise===b){var _;a.validatePromise=null;var k=[],A=[];(_=T.forEach)===null||_===void 0||_.call(T,function(j){var D=j.rule.warningOnly,F=j.errors,L=F===void 0?Uo:F;D?A.push.apply(A,ke(L)):k.push.apply(k,ke(L))}),a.errors=k,a.warnings=A,a.triggerMetaEvent(),a.reRender()}}),O.abrupt("return",R);case 13:case"end":return O.stop()}},p)})));return h||(a.validatePromise=b,a.dirty=!0,a.errors=Uo,a.warnings=Uo,a.triggerMetaEvent(),a.reRender()),b}),z(Ft(a),"isFieldValidating",function(){return!!a.validatePromise}),z(Ft(a),"isFieldTouched",function(){return a.touched}),z(Ft(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var c=a.props.fieldContext,u=c.getInternalHooks(Ic),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),z(Ft(a),"getErrors",function(){return a.errors}),z(Ft(a),"getWarnings",function(){return a.warnings}),z(Ft(a),"isListField",function(){return a.props.isListField}),z(Ft(a),"isList",function(){return a.props.isList}),z(Ft(a),"isPreserve",function(){return a.props.preserve}),z(Ft(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var c={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return c}),z(Ft(a),"getOnlyChild",function(c){if(typeof c=="function"){var u=a.getMeta();return P(P({},a.getOnlyChild(c(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=rr(c);return d.length!==1||!s.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),z(Ft(a),"getValue",function(c){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Gn(c||u(!0),d)}),z(Ft(a),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,m=u.validateTrigger,g=u.getValueFromEvent,h=u.normalize,b=u.valuePropName,p=u.getValueProps,S=u.fieldContext,C=m!==void 0?m:S.validateTrigger,x=a.getNamePath(),w=S.getInternalHooks,$=S.getFieldsValue,E=w(Ic),R=E.dispatch,I=a.getValue(),O=p||function(j){return z({},b,j)},T=c[f],_=d!==void 0?O(I):{},k=P(P({},c),_);k[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var j,D=arguments.length,F=new Array(D),L=0;L=0&&T<=_.length?(d.keys=[].concat(ke(d.keys.slice(0,T)),[d.id],ke(d.keys.slice(T))),x([].concat(ke(_.slice(0,T)),[O],ke(_.slice(T))))):(d.keys=[].concat(ke(d.keys),[d.id]),x([].concat(ke(_),[O]))),d.id+=1},remove:function(O){var T=$(),_=new Set(Array.isArray(O)?O:[O]);_.size<=0||(d.keys=d.keys.filter(function(k,A){return!_.has(A)}),x(T.filter(function(k,A){return!_.has(A)})))},move:function(O,T){if(O!==T){var _=$();O<0||O>=_.length||T<0||T>=_.length||(d.keys=mN(d.keys,O,T),x(mN(_,O,T)))}}},R=C||[];return Array.isArray(R)||(R=[]),r(R.map(function(I,O){var T=d.keys[O];return T===void 0&&(d.keys[O]=d.id,T=d.keys[O],d.id+=1),{name:O,key:T,isListField:!0}}),E,p)})))}function gie(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,l){i.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var uH="__@field_split__";function yx(e){return e.map(function(t){return"".concat(it(t),":").concat(t)}).join(uH)}var ed=(function(){function e(){ir(this,e),z(this,"kvs",new Map)}return lr(e,[{key:"set",value:function(n,r){this.kvs.set(yx(n),r)}},{key:"get",value:function(n){return this.kvs.get(yx(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(yx(n))}},{key:"map",value:function(n){return ke(this.kvs.entries()).map(function(r){var a=ce(r,2),o=a[0],i=a[1],l=o.split(uH);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=ce(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e})(),pie=["name"],hie=lr(function e(t){var n=this;ir(this,e),z(this,"formHooked",!1),z(this,"forceRootUpdate",void 0),z(this,"subscribable",!0),z(this,"store",{}),z(this,"fieldEntities",[]),z(this,"initialValues",{}),z(this,"callbacks",{}),z(this,"validateMessages",null),z(this,"preserve",null),z(this,"lastValidatePromise",null),z(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),z(this,"getInternalHooks",function(r){return r===Ic?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Kn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),z(this,"useSubscribe",function(r){n.subscribable=r}),z(this,"prevWithoutPreserves",null),z(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,i=Ds(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(l){var c=l.key;i=br(i,c,Gn(r,c))}),n.prevWithoutPreserves=null,n.updateStore(i)}}),z(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new ed;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),z(this,"getInitialValue",function(r){var a=Gn(n.initialValues,r);return r.length?Ds(a):a}),z(this,"setCallbacks",function(r){n.callbacks=r}),z(this,"setValidateMessages",function(r){n.validateMessages=r}),z(this,"setPreserve",function(r){n.preserve=r}),z(this,"watchList",[]),z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),z(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}}),z(this,"timeoutId",null),z(this,"warningUnhooked",function(){}),z(this,"updateStore",function(r){n.store=r}),z(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new ed;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a}),z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=Kr(o);return a.get(i)||{INVALIDATE_NAME_PATH:Kr(o)}})}),z(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,i,l;if(r===!0||Array.isArray(r)?(o=r,i=a):r&&it(r)==="object"&&(l=r.strict,i=r.filter),o===!0&&!i)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(d){var f,m,g="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var h,b;if((h=(b=d).isList)!==null&&h!==void 0&&h.call(b))return}else if(!o&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!i)u.push(g);else{var p="getMeta"in d?d.getMeta():null;i(p)&&u.push(g)}}),vN(n.store,u.map(Kr))}),z(this,"getFieldValue",function(r){n.warningUnhooked();var a=Kr(r);return Gn(n.store,a)}),z(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Kr(r[i]),errors:[],warnings:[]}})}),z(this,"getFieldError",function(r){n.warningUnhooked();var a=Kr(r),o=n.getFieldsError([a])[0];return o.errors}),z(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Kr(r),o=n.getFieldsError([a])[0];return o.warnings}),z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new ed,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:c,value:u}),a.set(d,f)}});var i=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),g=n.getInitialValue(m);if(g!==void 0)Kn(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var h=a.get(m);if(h&&h.size>1)Kn(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var b=n.getFieldValue(m),p=d.isListField();!p&&(!r.skipExist||b===void 0)&&n.updateStore(br(n.store,m,ke(h)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=a.get(c);if(u){var d;(d=l).push.apply(d,ke(ke(u).map(function(f){return f.entity})))}})):l=o,i(l)}),z(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Ds(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Kr);o.forEach(function(i){var l=n.getInitialValue(i);n.updateStore(br(n.store,i,l))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),z(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var l=i.name,c=Ue(i,pie),u=Kr(l);o.push(u),"value"in c&&n.updateStore(br(n.store,u,c.value)),n.notifyObservers(a,[u],{type:"setField",data:i})}),n.notifyWatch(o)}),z(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),l=o.getMeta(),c=P(P({},l),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return a}),z(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=Gn(n.store,o);i===void 0&&n.updateStore(br(n.store,o,a))}}),z(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),z(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!i||c.length>1)){var u=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==u&&n.fieldEntities.every(function(f){return!sH(f.getNamePath(),a)})){var d=n.store;n.updateStore(br(d,a,u,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}}),z(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,l=r.triggerName;n.validateFields([i],{triggerName:l});break}}}),z(this,"notifyObservers",function(r,a,o){if(n.subscribable){var i=P(P({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,a,i)})}else n.forceRootUpdate()}),z(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(ke(o))}),o}),z(this,"updateValue",function(r,a){var o=Kr(r),i=n.store;n.updateStore(br(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var l=n.triggerDependenciesUpdate(i,o),c=n.callbacks.onValuesChange;if(c){var u=vN(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(ke(l)))}),z(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Ds(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),z(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),z(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],i=new ed;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Kr(d);i.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=i.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(o.push(m),c(m))}})};return l(r),o}),z(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var l=new ed;a.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),i.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=i.filter(function(u){var d=u.name;return Ed(r,d)});c.length&&o(c,i)}}),z(this,"validateFields",function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var l=!!o,c=l?o.map(Kr):[],u=[],d=String(Date.now()),f=new Set,m=i||{},g=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(C){if(l||c.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(h&&!C.isFieldDirty())){var x=C.getNamePath();if(f.add(x.join(d)),!l||Ed(c,x,g)){var w=C.validateRules(P({validateMessages:P(P({},lH),n.validateMessages)},i));u.push(w.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function($){var E,R=[],I=[];return(E=$.forEach)===null||E===void 0||E.call($,function(O){var T=O.rule.warningOnly,_=O.errors;T?I.push.apply(I,ke(_)):R.push.apply(R,ke(_))}),R.length?Promise.reject({name:x,errors:R,warnings:I}):{name:x,errors:R,warnings:I}}))}}});var b=gie(u);n.lastValidatePromise=b,b.catch(function(C){return C}).then(function(C){var x=C.map(function(w){var $=w.name;return $});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,C)});var p=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(C){var x=C.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:x,outOfDate:n.lastValidatePromise!==b})});p.catch(function(C){return C});var S=c.filter(function(C){return f.has(C.join(d))});return n.triggerOnFieldsChange(S),p}),z(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function QR(e){var t=s.useRef(),n=s.useState({}),r=ce(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new hie(o);t.current=i.getForm()}return[t.current]}var BP=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),dH=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=s.useContext(BP),l=s.useRef({});return s.createElement(BP.Provider,{value:P(P({},i),{},{validateMessages:P(P({},i.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),i.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:l.current}),i.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=P(P({},l.current),{},z({},u,d))),i.registerForm(u,d)},unregisterForm:function(u){var d=P({},l.current);delete d[u],l.current=d,i.unregisterForm(u)}})},o)},bie=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],yie=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,l=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,g=m===void 0?"onChange":m,h=t.onValuesChange,b=t.onFieldsChange,p=t.onFinish,S=t.onFinishFailed,C=t.clearOnDestroy,x=Ue(t,bie),w=s.useRef(null),$=s.useContext(BP),E=QR(i),R=ce(E,1),I=R[0],O=I.getInternalHooks(Ic),T=O.useSubscribe,_=O.setInitialValues,k=O.setCallbacks,A=O.setValidateMessages,j=O.setPreserve,D=O.destroyForm;s.useImperativeHandle(n,function(){return P(P({},I),{},{nativeElement:w.current})}),s.useEffect(function(){return $.registerForm(r,I),function(){$.unregisterForm(r)}},[$,I,r]),A(P(P({},$.validateMessages),f)),k({onValuesChange:h,onFieldsChange:function(G){if($.triggerFormChange(r,G),b){for(var Y=arguments.length,J=new Array(Y>1?Y-1:0),Q=1;Q{}}),vH=s.createContext(null),mH=e=>{const t=nn(e,["prefixCls"]);return s.createElement(dH,Object.assign({},t))},JR=s.createContext({prefixCls:""}),Hr=s.createContext({}),gH=({children:e,status:t,override:n})=>{const r=s.useContext(Hr),a=s.useMemo(()=>{const o=Object.assign({},r);return n&&delete o.isFormItemInput,t&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[t,n,r]);return s.createElement(Hr.Provider,{value:a},e)},pH=s.createContext(void 0),ii=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=ee.createElement(gH,{override:!0,status:!0},a)),t&&(a=ee.createElement(Ire,null,a)),a};var hH=function(t){if(ma()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},Sie=function(t,n){if(!hH(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function zP(e,t){return!Array.isArray(e)&&t!==void 0?Sie(e,t):hH(e)}const xie=()=>ma()&&window.document.documentElement,n1=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,i=oe({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),l=oe({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),c=s.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return s.createElement("span",{className:oe(t,i,l,n),style:Object.assign(Object.assign({},c),r)})},wie=new Sn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),r1=e=>({height:e,lineHeight:me(e)}),Pd=e=>Object.assign({width:e},r1(e)),$ie=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:wie,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Cx=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},r1(e)),Eie=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Pd(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Pd(a)),[`${t}${t}-sm`]:Object.assign({},Pd(o))}},Pie=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Cx(t,l)),[`${r}-lg`]:Object.assign({},Cx(a,l)),[`${r}-sm`]:Object.assign({},Cx(o,l))}},pN=e=>Object.assign({width:e},r1(e)),Oie=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},pN(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},pN(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Sx=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},xx=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},r1(e)),Iie=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:i,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},xx(r,l))},Sx(e,r,n)),{[`${n}-lg`]:Object.assign({},xx(a,l))}),Sx(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},xx(o,l))}),Sx(e,o,`${n}-sm`))},Rie=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:i,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:g,borderRadius:h,titleHeight:b,blockRadius:p,paragraphLiHeight:S,controlHeightXS:C,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Pd(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Pd(u)),[`${n}-sm`]:Object.assign({},Pd(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:p,[`+ ${a}`]:{marginBlockStart:d}},[a]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:f,borderRadius:p,"+ li":{marginBlockStart:C}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:g,[`+ ${a}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Iie(e)),Eie(e)),Pie(e)),Oie(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[i]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${a} > li, ${n}, ${o}, ${i}, ${l} - `]:Object.assign({},sie(e))}}},mie=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},xf=un("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=tn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(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 vie(r)},mie,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),gie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:l}=s.useContext(jt),c=l("skeleton",t),[u,d,f]=xf(c),m=nn(e,["prefixCls","className"]),g=oe(c,`${c}-element`,{[`${c}-active`]:a},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(Xy,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:i},m))))},pie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:l}=s.useContext(jt),c=l("skeleton",t),[u,d,f]=xf(c),m=nn(e,["prefixCls"]),g=oe(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(Xy,Object.assign({prefixCls:`${c}-button`,size:i},m))))},hie="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",bie=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:i}=s.useContext(jt),l=i("skeleton",t),[c,u,d]=xf(l),f=oe(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,d);return c(s.createElement("div",{className:f},s.createElement("div",{className:oe(`${l}-image`,n),style:a},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},s.createElement("title",null,"Image placeholder"),s.createElement("path",{d:hie,className:`${l}-image-path`})))))},yie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:i="default"}=e,{getPrefixCls:l}=s.useContext(jt),c=l("skeleton",t),[u,d,f]=xf(c),m=nn(e,["prefixCls"]),g=oe(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(Xy,Object.assign({prefixCls:`${c}-input`,size:i},m))))},Cie=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:i}=e,{getPrefixCls:l}=s.useContext(jt),c=l("skeleton",t),[u,d,f]=xf(c),m=oe(c,`${c}-element`,{[`${c}-active`]:o},d,n,r,f);return u(s.createElement("div",{className:m},s.createElement("div",{className:oe(`${c}-image`,n),style:a},i)))},Sie=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},xie=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,o=Array.from({length:a}).map((i,l)=>s.createElement("li",{key:l,style:{width:Sie(l,e)}}));return s.createElement("ul",{className:oe(t,n),style:r},o)},wie=({prefixCls:e,className:t,width:n,style:r})=>s.createElement("h3",{className:oe(e,t),style:Object.assign({width:n},r)});function mx(e){return e&&typeof e=="object"?e:{}}function $ie(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Eie(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Pie(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ql=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:i,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:g,className:h,style:b}=lr("skeleton"),p=m("skeleton",t),[S,C,x]=xf(p);if(n||!("loading"in e)){const w=!!l,$=!!c,E=!!u;let R;if(w){const T=Object.assign(Object.assign({prefixCls:`${p}-avatar`},$ie($,E)),mx(l));R=s.createElement("div",{className:`${p}-header`},s.createElement(Xy,Object.assign({},T)))}let I;if($||E){let T;if($){const A=Object.assign(Object.assign({prefixCls:`${p}-title`},Eie(w,E)),mx(c));T=s.createElement(wie,Object.assign({},A))}let N;if(E){const A=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},Pie(w,$)),mx(u));N=s.createElement(xie,Object.assign({},A))}I=s.createElement("div",{className:`${p}-content`},T,N)}const O=oe(p,{[`${p}-with-avatar`]:w,[`${p}-active`]:d,[`${p}-rtl`]:g==="rtl",[`${p}-round`]:f},h,r,a,C,x);return S(s.createElement("div",{className:O,style:Object.assign(Object.assign({},b),o)},R,I))}return i??null};ql.Button=pie;ql.Avatar=gie;ql.Input=yie;ql.Image=bie;ql.Node=Cie;function n8(){}const Oie=s.createContext({add:n8,remove:n8});function eH(e){const t=s.useContext(Oie),n=s.useRef(null);return Zt(a=>{if(a){const o=e?a.querySelector(e):a;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}const r8=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=s.useContext(mg);return ee.createElement(jn,Object.assign({onClick:n},e),t)},a8=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=s.useContext(mg);return ee.createElement(jn,Object.assign({},IR(n),{loading:e,onClick:a},t),r)};function tH(e,t){return ee.createElement("span",{className:`${e}-close-x`},t||ee.createElement(Li,{className:`${e}-close-icon`}))}const nH=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:o,onCancel:i,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=Pa("Modal",E9()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),g=ee.useMemo(()=>({confirmLoading:a,okButtonProps:l,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:o,onCancel:i}),[a,l,c,f,m,n,o,i]);let h;return typeof u=="function"||typeof u>"u"?(h=ee.createElement(ee.Fragment,null,ee.createElement(r8,null),ee.createElement(a8,null)),typeof u=="function"&&(h=u(h,{OkBtn:a8,CancelBtn:r8})),h=ee.createElement(Dz,{value:g},h)):h=u,ee.createElement(hR,{disabled:!1},h)},Iie=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"}}}},Rie=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Mie=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},_P=(e,t)=>Mie(e,t),Tie=(e,t,n)=>({[`@media (min-width: ${me(t)})`]:Object.assign({},_P(e,n))}),Nie=()=>({}),_ie=()=>({}),jie=un("Grid",Iie,Nie),rH=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),Fie=un("Grid",e=>{const t=tn(e,{gridColumns:24}),n=rH(t);return delete n.xs,[Rie(t),_P(t,""),_P(t,"-xs"),Object.keys(n).map(r=>Tie(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},_ie);function o8(e){return{position:e,inset:0}}const aH=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},o8("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},o8("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Rz(e)}]},Die=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:`${me(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},wn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${me(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:me(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ga(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${me(e.borderRadiusLG)} ${me(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:`${me(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, + `]:Object.assign({},$ie(e))}}},Mie=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},wf=dn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=en(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(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 Rie(r)},Mie,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Tie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:i="default"}=e,{getPrefixCls:l}=s.useContext(jt),c=l("skeleton",t),[u,d,f]=wf(c),m=nn(e,["prefixCls","className"]),g=oe(c,`${c}-element`,{[`${c}-active`]:a},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(n1,Object.assign({prefixCls:`${c}-avatar`,shape:o,size:i},m))))},Nie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:i="default"}=e,{getPrefixCls:l}=s.useContext(jt),c=l("skeleton",t),[u,d,f]=wf(c),m=nn(e,["prefixCls"]),g=oe(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(n1,Object.assign({prefixCls:`${c}-button`,size:i},m))))},_ie="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",jie=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:i}=s.useContext(jt),l=i("skeleton",t),[c,u,d]=wf(l),f=oe(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,d);return c(s.createElement("div",{className:f},s.createElement("div",{className:oe(`${l}-image`,n),style:a},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},s.createElement("title",null,"Image placeholder"),s.createElement("path",{d:_ie,className:`${l}-image-path`})))))},Fie=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:i="default"}=e,{getPrefixCls:l}=s.useContext(jt),c=l("skeleton",t),[u,d,f]=wf(c),m=nn(e,["prefixCls"]),g=oe(c,`${c}-element`,{[`${c}-active`]:a,[`${c}-block`]:o},n,r,d,f);return u(s.createElement("div",{className:g},s.createElement(n1,Object.assign({prefixCls:`${c}-input`,size:i},m))))},Die=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:i}=e,{getPrefixCls:l}=s.useContext(jt),c=l("skeleton",t),[u,d,f]=wf(c),m=oe(c,`${c}-element`,{[`${c}-active`]:o},d,n,r,f);return u(s.createElement("div",{className:m},s.createElement("div",{className:oe(`${c}-image`,n),style:a},i)))},kie=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},Aie=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,o=Array.from({length:a}).map((i,l)=>s.createElement("li",{key:l,style:{width:kie(l,e)}}));return s.createElement("ul",{className:oe(t,n),style:r},o)},Lie=({prefixCls:e,className:t,width:n,style:r})=>s.createElement("h3",{className:oe(e,t),style:Object.assign({width:n},r)});function wx(e){return e&&typeof e=="object"?e:{}}function Bie(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function zie(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Hie(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ql=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:i,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:g,className:h,style:b}=sr("skeleton"),p=m("skeleton",t),[S,C,x]=wf(p);if(n||!("loading"in e)){const w=!!l,$=!!c,E=!!u;let R;if(w){const T=Object.assign(Object.assign({prefixCls:`${p}-avatar`},Bie($,E)),wx(l));R=s.createElement("div",{className:`${p}-header`},s.createElement(n1,Object.assign({},T)))}let I;if($||E){let T;if($){const k=Object.assign(Object.assign({prefixCls:`${p}-title`},zie(w,E)),wx(c));T=s.createElement(Lie,Object.assign({},k))}let _;if(E){const k=Object.assign(Object.assign({prefixCls:`${p}-paragraph`},Hie(w,$)),wx(u));_=s.createElement(Aie,Object.assign({},k))}I=s.createElement("div",{className:`${p}-content`},T,_)}const O=oe(p,{[`${p}-with-avatar`]:w,[`${p}-active`]:d,[`${p}-rtl`]:g==="rtl",[`${p}-round`]:f},h,r,a,C,x);return S(s.createElement("div",{className:O,style:Object.assign(Object.assign({},b),o)},R,I))}return i??null};ql.Button=Nie;ql.Avatar=Tie;ql.Input=Fie;ql.Image=jie;ql.Node=Die;function hN(){}const Vie=s.createContext({add:hN,remove:hN});function bH(e){const t=s.useContext(Vie),n=s.useRef(null);return Zt(a=>{if(a){const o=e?a.querySelector(e):a;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}const bN=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=s.useContext(mg);return ee.createElement(_n,Object.assign({onClick:n},e),t)},yN=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=s.useContext(mg);return ee.createElement(_n,Object.assign({},zR(n),{loading:e,onClick:a},t),r)};function yH(e,t){return ee.createElement("span",{className:`${e}-close-x`},t||ee.createElement(Hi,{className:`${e}-close-icon`}))}const CH=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:o,onCancel:i,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=Ea("Modal",H9()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),g=ee.useMemo(()=>({confirmLoading:a,okButtonProps:l,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:o,onCancel:i}),[a,l,c,f,m,n,o,i]);let h;return typeof u=="function"||typeof u>"u"?(h=ee.createElement(ee.Fragment,null,ee.createElement(bN,null),ee.createElement(yN,null)),typeof u=="function"&&(h=u(h,{OkBtn:yN,CancelBtn:bN})),h=ee.createElement(eH,{value:g},h)):h=u,ee.createElement(MR,{disabled:!1},h)},Wie=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"}}}},Kie=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},qie=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let i=a;i>=0;i--)i===0?(o[`${r}${t}-${i}`]={display:"none"},o[`${r}-push-${i}`]={insetInlineStart:"auto"},o[`${r}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${i}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${i}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${i}`]={marginInlineStart:0},o[`${r}${t}-order-${i}`]={order:0}):(o[`${r}${t}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/a*100}%`,maxWidth:`${i/a*100}%`}],o[`${r}${t}-push-${i}`]={insetInlineStart:`${i/a*100}%`},o[`${r}${t}-pull-${i}`]={insetInlineEnd:`${i/a*100}%`},o[`${r}${t}-offset-${i}`]={marginInlineStart:`${i/a*100}%`},o[`${r}${t}-order-${i}`]={order:i});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},HP=(e,t)=>qie(e,t),Uie=(e,t,n)=>({[`@media (min-width: ${me(t)})`]:Object.assign({},HP(e,n))}),Gie=()=>({}),Yie=()=>({}),Xie=dn("Grid",Wie,Gie),SH=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),Qie=dn("Grid",e=>{const t=en(e,{gridColumns:24}),n=SH(t);return delete n.xs,[Kie(t),HP(t,""),HP(t,"-xs"),Object.keys(n).map(r=>Uie(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},Yie);function CN(e){return{position:e,inset:0}}const xH=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},CN("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},CN("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Uz(e)}]},Jie=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:`${me(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},$n(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${me(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:me(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ga(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${me(e.borderRadiusLG)} ${me(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:`${me(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"}}}]},kie=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Aie=e=>{const{componentCls:t}=e,n=rH(e),r=Object.assign({},n);delete r.xs;const a=`--${t.replace(".","")}-`,o=Object.keys(r).map(i=>({[`@media (min-width: ${me(r[i])})`]:{width:`var(${a}${i}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ke(Object.keys(n).map((i,l)=>{const c=Object.keys(n)[l-1];return c?{[`${a}${i}-width`]:`var(${a}${c}-width)`}:null})),[{width:`var(${a}xs-width)`}],ke(o))}}},oH=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return tn(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},iH=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${me(e.paddingMD)} ${me(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${me(e.padding)} ${me(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${me(e.paddingXS)} ${me(e.padding)}`:0,footerBorderTop:e.wireframe?`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${me(e.borderRadiusLG)} ${me(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${me(e.padding*2)} ${me(e.padding*2)} ${me(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),lH=un("Modal",e=>{const t=oH(e);return[Die(t),kie(t),aH(t),yf(t,"zoom"),Aie(t)]},iH,{unitless:{titleLineHeight:!0}});var Lie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{jP={x:e.pageX,y:e.pageY},setTimeout(()=>{jP=null},100)};iie()&&document.documentElement.addEventListener("click",Bie,!0);const sH=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:o,centered:i,getContainer:l,focusTriggerAfterClose:c=!0,style:u,visible:d,width:f=520,footer:m,classNames:g,styles:h,children:b,loading:p,confirmLoading:S,zIndex:C,mousePosition:x,onOk:w,onCancel:$,destroyOnHidden:E,destroyOnClose:R,panelRef:I=null,modalRender:O}=e,T=Lie(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:N,getPrefixCls:A,direction:k,modal:j}=s.useContext(jt),D=ve=>{S||$==null||$(ve)},F=ve=>{w==null||w(ve)},L=A("modal",t),B=A(),K=Gn(L),[W,V,q]=lH(L,K),U=oe(o,{[`${L}-centered`]:i??(j==null?void 0:j.centered),[`${L}-wrap-rtl`]:k==="rtl"}),G=m!==null&&!p?s.createElement(nH,Object.assign({},e,{onOk:F,onCancel:D})):null,[Y,J,Q,Z]=xR(Xd(e),Xd(j),{closable:!0,closeIcon:s.createElement(Li,{className:`${L}-close-icon`}),closeIconRender:ve=>tH(L,ve)}),ne=O?ve=>s.createElement("div",{className:`${L}-render`},O(ve)):void 0,ae=`.${L}-${O?"render":"content"}`,le=eH(ae),re=Fr(I,le),[fe,ue]=ui("Modal",C),[de,ie]=s.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),se=s.useMemo(()=>{const ve={};return ie&&Object.keys(ie).forEach(he=>{const Ce=ie[he];Ce!==void 0&&(ve[`--${L}-${he}-width`]=typeof Ce=="number"?`${Ce}px`:Ce)}),ve},[L,ie]);return W(s.createElement(oi,{form:!0,space:!0},s.createElement(dg.Provider,{value:ue},s.createElement(FR,Object.assign({width:de},T,{zIndex:fe,getContainer:l===void 0?N:l,prefixCls:L,rootClassName:oe(V,r,q,K),footer:G,visible:a??d,mousePosition:x??jP,onClose:D,closable:Y&&Object.assign({disabled:Q,closeIcon:J},Z),closeIcon:J,focusTriggerAfterClose:c,transitionName:ga(B,"zoom",e.transitionName),maskTransitionName:ga(B,"fade",e.maskTransitionName),className:oe(V,n,j==null?void 0:j.className),style:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.style),u),se),classNames:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.classNames),g),{wrapper:oe(U,g==null?void 0:g.wrapper)}),styles:Object.assign(Object.assign({},j==null?void 0:j.styles),h),panelRef:re,destroyOnClose:E??R,modalRender:ne}),p?s.createElement(ql,{active:!0,title:!1,paragraph:{rows:4},className:`${L}-body-skeleton`}):b))))},zie=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},_m()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(a).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${me(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${me(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, - ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Hie=pf(["Modal","confirm"],e=>{const t=oH(e);return zie(t)},iH,{order:-1e3});var Vie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:o,type:i,okCancel:l,footer:c,locale:u}=e,d=Vie(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(i){case"info":f=s.createElement(jy,null);break;case"success":f=s.createElement(cu,null);break;case"error":f=s.createElement(ul,null);break;default:f=s.createElement(tc,null)}const m=l??i==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=Pa("Modal"),b=u||h,p=r||(m?b==null?void 0:b.okText:b==null?void 0:b.justOkText),S=a||(b==null?void 0:b.cancelText),C=s.useMemo(()=>Object.assign({autoFocusButton:g,cancelTextLocale:S,okTextLocale:p,mergedOkCancel:m},d),[g,S,p,m,d]),x=s.createElement(s.Fragment,null,s.createElement(DN,null),s.createElement(kN,null)),w=e.title!==void 0&&e.title!==null,$=`${o}-body`;return s.createElement("div",{className:`${o}-body-wrapper`},s.createElement("div",{className:oe($,{[`${$}-has-title`]:w})},f,s.createElement("div",{className:`${o}-paragraph`},w&&s.createElement("span",{className:`${o}-title`},e.title),s.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?s.createElement(Dz,{value:C},s.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(x,{OkBtn:kN,CancelBtn:DN}):x)):c,s.createElement(Hie,{prefixCls:t}))},Wie=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:o,wrapClassName:i,rootPrefixCls:l,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f,title:m}=e,g=`${o}-confirm`,h=e.width||416,b=e.style||{},p=e.mask===void 0?!0:e.mask,S=e.maskClosable===void 0?!1:e.maskClosable,C=oe(g,`${g}-${e.type}`,{[`${g}-rtl`]:a==="rtl"},e.className),[,x]=qr(),w=s.useMemo(()=>n!==void 0?n:x.zIndexPopupBase+$R,[n,x]);return s.createElement(sH,Object.assign({},e,{className:C,wrapClassName:oe({[`${g}-centered`]:!!e.centered},i),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:m,footer:null,transitionName:ga(l||"","zoom",e.transitionName),maskTransitionName:ga(l||"","fade",e.maskTransitionName),mask:p,maskClosable:S,style:b,styles:Object.assign({body:c,mask:r},f),width:h,zIndex:w,closable:u}),s.createElement(cH,Object.assign({},e,{confirmPrefixCls:g})))},uH=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return s.createElement(Mt,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},s.createElement(Wie,Object.assign({},e)))},Rc=[];let dH="";function fH(){return dH}const Kie=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:o}=e,i=E9(),l=s.useContext(jt),c=fH()||l.getPrefixCls(),u=r||`${c}-modal`;let d=a;return d===!1&&(d=void 0),ee.createElement(uH,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:o??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function hg(e){const t=J9(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:c,open:!0}),a,o;function i(...d){var f;if(d.some(h=>h==null?void 0:h.triggerCancel)){var g;(f=e.onCancel)===null||f===void 0||(g=f).call.apply(g,[e,()=>{}].concat(ke(d.slice(1))))}for(let h=0;h{clearTimeout(a),a=setTimeout(()=>{const f=t.getPrefixCls(void 0,fH()),m=t.getIconPrefixCls(),g=t.getTheme(),h=ee.createElement(Kie,Object.assign({},d));o=OR()(ee.createElement(Mt,{prefixCls:f,iconPrefixCls:m,theme:g},typeof t.holderRender=="function"?t.holderRender(h):h),n)})};function c(...d){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,d)}}),r.visible&&delete r.visible,l(r)}function u(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),l(r)}return l(r),Rc.push(c),{destroy:c,update:u}}function vH(e){return Object.assign(Object.assign({},e),{type:"warning"})}function mH(e){return Object.assign(Object.assign({},e),{type:"info"})}function gH(e){return Object.assign(Object.assign({},e),{type:"success"})}function pH(e){return Object.assign(Object.assign({},e),{type:"error"})}function hH(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function qie({rootPrefixCls:e}){dH=e}var Uie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:r,config:a}=e,o=Uie(e,["afterClose","config"]);const[i,l]=s.useState(!0),[c,u]=s.useState(a),{direction:d,getPrefixCls:f}=s.useContext(jt),m=f("modal"),g=f(),h=()=>{var C;r(),(C=c.afterClose)===null||C===void 0||C.call(c)},b=(...C)=>{var x;if(l(!1),C.some(E=>E==null?void 0:E.triggerCancel)){var $;(x=c.onCancel)===null||x===void 0||($=x).call.apply($,[c,()=>{}].concat(ke(C.slice(1))))}};s.useImperativeHandle(t,()=>({destroy:b,update:C=>{u(x=>{const w=typeof C=="function"?C(x):C;return Object.assign(Object.assign({},x),w)})}}));const p=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[S]=Pa("Modal",ji.Modal);return s.createElement(uH,Object.assign({prefixCls:m,rootPrefixCls:g},c,{close:b,open:i,afterClose:h,okText:c.okText||(p?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:c.direction||d,cancelText:c.cancelText||(S==null?void 0:S.cancelText)},o))},Yie=s.forwardRef(Gie);let i8=0;const Xie=s.memo(s.forwardRef((e,t)=>{const[n,r]=$ne();return s.useImperativeHandle(t,()=>({patchElement:r}),[r]),s.createElement(s.Fragment,null,n)}));function bH(){const e=s.useRef(null),[t,n]=s.useState([]);s.useEffect(()=>{t.length&&(ke(t).forEach(i=>{i()}),n([]))},[t]);const r=s.useCallback(o=>function(l){var c;i8+=1;const u=s.createRef();let d;const f=new Promise(p=>{d=p});let m=!1,g;const h=s.createElement(Yie,{key:`modal-${i8}`,config:o(l),ref:u,afterClose:()=>{g==null||g()},isSilent:()=>m,onConfirm:p=>{d(p)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(h),g&&Rc.push(g),{destroy:()=>{function p(){var S;(S=u.current)===null||S===void 0||S.destroy()}u.current?p():n(S=>[].concat(ke(S),[p]))},update:p=>{function S(){var C;(C=u.current)===null||C===void 0||C.update(p)}u.current?S():n(C=>[].concat(ke(C),[S]))},then:p=>(m=!0,f.then(p))}},[]);return[s.useMemo(()=>({info:r(mH),success:r(gH),error:r(pH),warning:r(vH),confirm:r(hH)}),[r]),s.createElement(Xie,{key:"modal-holder",ref:e})]}const Qie=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,o=new Cn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new Cn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Cn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new Cn("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},Jie=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Zie={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},ele=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Zie[t]]:{value:0,_skip_check_:!0}}}}},tle=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},nle=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},tle(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},nle(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Jie.map(n=>ele(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},ale=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:o,borderRadiusLG:i,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:g,notificationMarginEdge:h,notificationProgressBg:b,notificationProgressHeight:p,fontSize:S,lineHeight:C,width:x,notificationIconSize:w,colorText:$,colorSuccessBg:E,colorErrorBg:R,colorInfoBg:I,colorWarningBg:O}=e,T=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:m,borderRadius:i,boxShadow:r,[T]:{padding:g,width:x,maxWidth:`calc(100vw - ${me(e.calc(h).mul(2).equal())})`,lineHeight:C,wordWrap:"break-word",borderRadius:i,overflow:"hidden","&-success":E?{background:E}:{},"&-error":R?{background:R}:{},"&-info":I?{background:I}:{},"&-warning":O?{background:O}:{}},[`${T}-message`]:{color:f,fontSize:a,lineHeight:e.lineHeightLG},[`${T}-description`]:{fontSize:S,color:$,marginTop:e.marginXS},[`${T}-closable ${T}-message`]:{paddingInlineEnd:e.paddingLG},[`${T}-with-icon ${T}-message`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:a},[`${T}-with-icon ${T}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:S},[`${T}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${T}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Ga(e)),[`${T}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${me(i)} * 2)`,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},bottom:0,blockSize:p,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:b},"&::-webkit-progress-value":{borderRadius:i,background:b}},[`${T}-actions`]:{float:"right",marginTop:e.marginSM}}},ole=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:o}=e,i=`${t}-notice`,l=new Cn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},wn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:ale(e)}}]},ile=e=>({zIndexPopup:e.zIndexPopupBase+$R+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),lle=e=>{const t=e.paddingMD,n=e.paddingLG;return tn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${me(e.paddingMD)} ${me(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},sle=un("Notification",e=>{const t=lle(e);return[ole(t),Qie(t),rle(t)]},ile);function yH(e,t){return t===null||t===!1?null:t||s.createElement(Li,{className:`${e}-close-icon`})}const cle={success:cu,info:jy,error:ul,warning:tc},ule=e=>{const{prefixCls:t,icon:n,type:r,message:a,description:o,actions:i,role:l="alert"}=e;let c=null;return n?c=s.createElement("span",{className:`${t}-icon`},n):r&&(c=s.createElement(cle[r]||null,{className:oe(`${t}-icon`,`${t}-icon-${r}`)})),s.createElement("div",{className:oe({[`${t}-with-icon`]:c}),role:l},c,s.createElement("div",{className:`${t}-message`},a),o&&s.createElement("div",{className:`${t}-description`},o),i&&s.createElement("div",{className:`${t}-actions`},i))};function dle(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function fle(e){return{motionName:`${e}-fade`}}function vle(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}var mle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=Gn(t),[r,a,o]=sle(t,n);return r(ee.createElement(sz,{classNames:{list:oe(a,o,n)}},e))},ble=(e,{prefixCls:t,key:n})=>ee.createElement(hle,{prefixCls:t,key:n},e),yle=ee.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:o,maxCount:i,rtl:l,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:m}=e,{getPrefixCls:g,getPopupContainer:h,notification:b,direction:p}=s.useContext(jt),[,S]=qr(),C=a||g("notification"),x=I=>dle(I,n??l8,r??l8),w=()=>oe({[`${C}-rtl`]:l??p==="rtl"}),$=()=>fle(C),[E,R]=cz({prefixCls:C,style:x,className:w,motion:$,closable:!0,closeIcon:yH(C),duration:d??gle,getContainer:()=>(o==null?void 0:o())||(h==null?void 0:h())||document.body,maxCount:i,pauseOnHover:f,showProgress:m,onAllRemoved:c,renderNotifications:ble,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:S.margin}});return ee.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:C,notification:b})),R});function Cle(e){const t=ee.useRef(null);return cl(),[ee.useMemo(()=>{const r=l=>{var c;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:g,description:h,icon:b,type:p,btn:S,actions:C,className:x,style:w,role:$="alert",closeIcon:E,closable:R}=l,I=mle(l,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),O=C??S,T=yH(m,vle(E,e,f));return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:ple},I),{content:ee.createElement(ule,{prefixCls:m,icon:b,type:p,message:g,description:h,actions:O,role:$}),className:oe(p&&`${m}-${p}`,x,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),w),closeIcon:T,closable:R??!!T}))},o={open:r,destroy:l=>{var c,u;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{o[l]=c=>r(Object.assign(Object.assign({},c),{type:l}))}),o},[]),ee.createElement(yle,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Sle(e){return Cle(e)}const FP=ee.createContext({}),CH=ee.createContext({message:{},notification:{},modal:{}}),xle=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:a,fontFamily:o}=e;return{[t]:{color:n,fontSize:r,lineHeight:a,fontFamily:o,[`&${t}-rtl`]:{direction:"rtl"}}}},wle=()=>({}),$le=un("App",xle,wle),Ele=e=>{const{prefixCls:t,children:n,className:r,rootClassName:a,message:o,notification:i,style:l,component:c="div"}=e,{direction:u,getPrefixCls:d}=s.useContext(jt),f=d("app",t),[m,g,h]=$le(f),b=oe(g,f,r,a,h,{[`${f}-rtl`]:u==="rtl"}),p=s.useContext(FP),S=ee.useMemo(()=>({message:Object.assign(Object.assign({},p.message),o),notification:Object.assign(Object.assign({},p.notification),i)}),[o,i,p.message,p.notification]),[C,x]=gz(S.message),[w,$]=Sle(S.notification),[E,R]=bH(),I=ee.useMemo(()=>({message:C,notification:w,modal:E}),[C,w,E]);cl()(!(h&&c===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const O=c===!1?ee.Fragment:c,T={className:b,style:l};return m(ee.createElement(CH.Provider,{value:I},ee.createElement(FP.Provider,{value:S},ee.createElement(O,Object.assign({},c===!1?void 0:T),R,x,$,n))))},Ple=()=>ee.useContext(CH),BR=Ele;BR.useApp=Ple;function SH(e){return t=>s.createElement(Mt,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},t)))}const rc=(e,t,n,r,a)=>SH(i=>{const{prefixCls:l,style:c}=i,u=s.useRef(null),[d,f]=s.useState(0),[m,g]=s.useState(0),[h,b]=_t(!1,{value:i.open}),{getPrefixCls:p}=s.useContext(jt),S=p(r||"select",l);s.useEffect(()=>{if(b(!0),typeof ResizeObserver<"u"){const w=new ResizeObserver(E=>{const R=E[0].target;f(R.offsetHeight+8),g(R.offsetWidth)}),$=setInterval(()=>{var E;const R=a?`.${a(S)}`:`.${S}-dropdown`,I=(E=u.current)===null||E===void 0?void 0:E.querySelector(R);I&&(clearInterval($),w.observe(I))},10);return()=>{clearInterval($),w.disconnect()}}},[S]);let C=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},c),{margin:0}),open:h,visible:h,getPopupContainer:()=>u.current});n&&(C=n(C)),t&&Object.assign(C,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const x={paddingBottom:d,position:"relative",minWidth:m};return s.createElement("div",{ref:u,style:x},s.createElement(e,Object.assign({},C)))}),Jy=(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 Zy=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,i=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(a):r;return s.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:s.createElement("span",{className:oe(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},Ole=function(t,n,r,a,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=ee.useMemo(function(){if(it(a)==="object")return a.clearIcon;if(o)return o},[a,o]),d=ee.useMemo(function(){return!!(!i&&a&&(r.length||l)&&!(c==="combobox"&&l===""))},[a,i,r.length,l,c]);return{allowClear:d,clearIcon:ee.createElement(Zy,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},xH=s.createContext(null);function zR(){return s.useContext(xH)}function Ile(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=ce(t,2),r=n[0],a=n[1],o=s.useRef(null),i=function(){window.clearTimeout(o.current)};s.useEffect(function(){return i},[]);var l=function(u,d){i(),o.current=window.setTimeout(function(){a(u),d&&d()},e)};return[r,l,i]}function wH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Rle(e,t,n,r){var a=s.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function o(i){var l;if(!((l=a.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Mle(e){return e&&![ot.ESC,ot.SHIFT,ot.BACKSPACE,ot.TAB,ot.WIN_KEY,ot.ALT,ot.META,ot.WIN_KEY_RIGHT,ot.CTRL,ot.SEMICOLON,ot.EQUALS,ot.CAPS_LOCK,ot.CONTEXT_MENU,ot.F1,ot.F2,ot.F3,ot.F4,ot.F5,ot.F6,ot.F7,ot.F8,ot.F9,ot.F10,ot.F11,ot.F12].includes(e)}var Tle=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Zu=void 0;function Nle(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,g=e.display,h=e.order,b=e.component,p=b===void 0?"div":b,S=Ue(e,Tle),C=i&&!g;function x(I){c(u,I)}s.useEffect(function(){return function(){x(null)}},[]);var w=o&&a!==Zu?o(a,{index:h}):m,$;r||($={opacity:C?0:1,height:C?0:Zu,overflowY:C?"hidden":Zu,order:i?h:Zu,pointerEvents:C?"none":Zu,position:C?"absolute":Zu});var E={};C&&(E["aria-hidden"]=!0);var R=s.createElement(p,Me({className:oe(!r&&n,d),style:P(P({},$),f)},E,S,{ref:t}),w);return i&&(R=s.createElement(Rr,{onResize:function(O){var T=O.offsetWidth;x(T)},disabled:l},R)),R}var yd=s.forwardRef(Nle);yd.displayName="Item";function _le(e){if(typeof MessageChannel>"u")on(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function jle(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],_le(function(){Ua.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function ed(e,t){var n=s.useState(t),r=ce(n,2),a=r[0],o=r[1],i=Zt(function(l){e(function(){o(l)})});return[a,i]}var Hb=ee.createContext(null),Fle=["component"],Dle=["className"],kle=["className"],Ale=function(t,n){var r=s.useContext(Hb);if(!r){var a=t.component,o=a===void 0?"div":a,i=Ue(t,Fle);return s.createElement(o,Me({},i,{ref:n}))}var l=r.className,c=Ue(r,Dle),u=t.className,d=Ue(t,kle);return s.createElement(Hb.Provider,{value:null},s.createElement(yd,Me({ref:n,className:oe(l,u)},c,d)))},$H=s.forwardRef(Ale);$H.displayName="RawItem";var Lle=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],EH="responsive",PH="invalidate";function Ble(e){return"+ ".concat(e.length," ...")}function zle(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,g=e.className,h=e.maxCount,b=e.renderRest,p=e.renderRawRest,S=e.prefix,C=e.suffix,x=e.component,w=x===void 0?"div":x,$=e.itemComponent,E=e.onVisibleChange,R=Ue(e,Lle),I=f==="full",O=jle(),T=ed(O,null),N=ce(T,2),A=N[0],k=N[1],j=A||0,D=ed(O,new Map),F=ce(D,2),L=F[0],B=F[1],K=ed(O,0),W=ce(K,2),V=W[0],q=W[1],U=ed(O,0),G=ce(U,2),Y=G[0],J=G[1],Q=ed(O,0),Z=ce(Q,2),ne=Z[0],ae=Z[1],le=ed(O,0),re=ce(le,2),fe=re[0],ue=re[1],de=s.useState(null),ie=ce(de,2),se=ie[0],ve=ie[1],he=s.useState(null),Ce=ce(he,2),pe=Ce[0],Se=Ce[1],ge=s.useMemo(function(){return pe===null&&I?Number.MAX_SAFE_INTEGER:pe||0},[pe,A]),ye=s.useState(!1),xe=ce(ye,2),$e=xe[0],He=xe[1],Te="".concat(r,"-item"),Re=Math.max(V,Y),Fe=h===EH,je=o.length&&Fe,Ee=h===PH,Le=je||typeof h=="number"&&o.length>h,Pe=s.useMemo(function(){var Ye=o;return je?A===null&&I?Ye=o:Ye=o.slice(0,Math.min(o.length,j/d)):typeof h=="number"&&(Ye=o.slice(0,h)),Ye},[o,d,A,h,je]),ze=s.useMemo(function(){return je?o.slice(ge+1):o.slice(Pe.length)},[o,Pe,je,ge]),Oe=s.useCallback(function(Ye,Ne){var We;return typeof c=="function"?c(Ye):(We=c&&(Ye==null?void 0:Ye[c]))!==null&&We!==void 0?We:Ne},[c]),we=s.useCallback(i||function(Ye){return Ye},[i]);function _e(Ye,Ne,We){pe===Ye&&(Ne===void 0||Ne===se)||(Se(Ye),We||(He(Yej){_e(rt-1,Ye-ct-fe+Y);break}}C&&st(0)+fe>j&&ve(null)}},[j,L,Y,ne,fe,Oe,Pe]);var Ze=$e&&!!ze.length,vt={};se!==null&&je&&(vt={position:"absolute",left:se,top:0});var Ot={prefixCls:Te,responsive:je,component:$,invalidate:Ee},xt=l?function(Ye,Ne){var We=Oe(Ye,Ne);return s.createElement(Hb.Provider,{key:We,value:P(P({},Ot),{},{order:Ne,item:Ye,itemKey:We,registerSize:Qe,display:Ne<=ge})},l(Ye,Ne))}:function(Ye,Ne){var We=Oe(Ye,Ne);return s.createElement(yd,Me({},Ot,{order:Ne,key:We,item:Ye,renderItem:we,itemKey:We,registerSize:Qe,display:Ne<=ge}))},mt={order:Ze?ge:Number.MAX_SAFE_INTEGER,className:"".concat(Te,"-rest"),registerSize:lt,display:Ze},yt=b||Ble,bt=p?s.createElement(Hb.Provider,{value:P(P({},Ot),mt)},p(ze)):s.createElement(yd,Me({},Ot,mt),typeof yt=="function"?yt(ze):yt),tt=s.createElement(w,Me({className:oe(!Ee&&r,g),style:m,ref:t},R),S&&s.createElement(yd,Me({},Ot,{responsive:Fe,responsiveDisabled:!je,order:-1,className:"".concat(Te,"-prefix"),registerSize:Ke,display:!0}),S),Pe.map(xt),Le?bt:null,C&&s.createElement(yd,Me({},Ot,{responsive:Fe,responsiveDisabled:!je,order:ge,className:"".concat(Te,"-suffix"),registerSize:et,display:!0,style:vt}),C));return Fe?s.createElement(Rr,{onResize:Be,disabled:!je},tt):tt}var Ti=s.forwardRef(zle);Ti.displayName="Overflow";Ti.Item=$H;Ti.RESPONSIVE=EH;Ti.INVALIDATE=PH;function Hle(e,t,n){var r=P(P({},e),t);return Object.keys(t).forEach(function(a){var o=t[a];typeof o=="function"&&(r[a]=function(){for(var i,l=arguments.length,c=new Array(l),u=0;ux&&(Ce="".concat(pe.slice(0,x),"..."))}var Se=function(ye){ye&&ye.stopPropagation(),I(de)};return typeof E=="function"?ne(ve,Ce,ie,he,Se):Z(de,Ce,ie,he,Se)},le=function(de){if(!a.length)return null;var ie=typeof $=="function"?$(de):$;return typeof E=="function"?ne(void 0,ie,!1,!1,void 0,!0):Z({title:ie},ie,!1)},re=s.createElement("div",{className:"".concat(Y,"-search"),style:{width:K},onFocus:function(){G(!0)},onBlur:function(){G(!1)}},s.createElement(OH,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:h,editable:Q,activeDescendantId:b,value:J,onKeyDown:N,onMouseDown:A,onChange:O,onPaste:T,onCompositionStart:k,onCompositionEnd:j,onBlur:D,tabIndex:p,attrs:dr(t,!0)}),s.createElement("span",{ref:F,className:"".concat(Y,"-search-mirror"),"aria-hidden":!0},J," ")),fe=s.createElement(Ti,{prefixCls:"".concat(Y,"-overflow"),data:a,renderItem:ae,renderRest:le,suffix:re,itemKey:Xle,maxCount:C});return s.createElement("span",{className:"".concat(Y,"-wrap")},fe,!a.length&&!J&&s.createElement("span",{className:"".concat(Y,"-placeholder")},u))},Jle=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,g=t.placeholder,h=t.tabIndex,b=t.showSearch,p=t.searchValue,S=t.activeValue,C=t.maxLength,x=t.onInputKeyDown,w=t.onInputMouseDown,$=t.onInputChange,E=t.onInputPaste,R=t.onInputCompositionStart,I=t.onInputCompositionEnd,O=t.onInputBlur,T=t.title,N=s.useState(!1),A=ce(N,2),k=A[0],j=A[1],D=d==="combobox",F=D||b,L=m[0],B=p||"";D&&S&&!k&&(B=S),s.useEffect(function(){D&&j(!1)},[D,S]);var K=d!=="combobox"&&!f&&!b?!1:!!B,W=T===void 0?RH(L):T,V=s.useMemo(function(){return L?null:s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:K?{visibility:"hidden"}:void 0},g)},[L,K,g,r]);return s.createElement("span",{className:"".concat(r,"-selection-wrap")},s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(OH,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:c,editable:F,activeDescendantId:u,value:B,onKeyDown:x,onMouseDown:w,onChange:function(U){j(!0),$(U)},onPaste:E,onCompositionStart:R,onCompositionEnd:I,onBlur:O,tabIndex:h,attrs:dr(t,!0),maxLength:D?C:void 0})),!D&&L?s.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:K?{visibility:"hidden"}:void 0},L.label):null,V)},Zle=function(t,n){var r=s.useRef(null),a=s.useRef(!1),o=t.prefixCls,i=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,g=t.onSearch,h=t.onSearchSubmit,b=t.onToggleOpen,p=t.onInputKeyDown,S=t.onInputBlur,C=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(W){r.current.focus(W)},blur:function(){r.current.blur()}}});var x=wH(0),w=ce(x,2),$=w[0],E=w[1],R=function(W){var V=W.which,q=r.current instanceof HTMLTextAreaElement;!q&&i&&(V===ot.UP||V===ot.DOWN)&&W.preventDefault(),p&&p(W),V===ot.ENTER&&l==="tags"&&!a.current&&!i&&(h==null||h(W.target.value)),!(q&&!i&&~[ot.UP,ot.DOWN,ot.LEFT,ot.RIGHT].indexOf(V))&&Mle(V)&&b(!0)},I=function(){E(!0)},O=s.useRef(null),T=function(W){g(W,!0,a.current)!==!1&&b(!0)},N=function(){a.current=!0},A=function(W){a.current=!1,l!=="combobox"&&T(W.target.value)},k=function(W){var V=W.target.value;if(u&&O.current&&/[\r\n]/.test(O.current)){var q=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(q,O.current)}O.current=null,T(V)},j=function(W){var V=W.clipboardData,q=V==null?void 0:V.getData("text");O.current=q||""},D=function(W){var V=W.target;if(V!==r.current){var q=document.body.style.msTouchAction!==void 0;q?setTimeout(function(){r.current.focus()}):r.current.focus()}},F=function(W){var V=$();W.target!==r.current&&!V&&!(l==="combobox"&&d)&&W.preventDefault(),(l!=="combobox"&&(!c||!V)||!i)&&(i&&m!==!1&&g("",!0,!1),b())},L={inputRef:r,onInputKeyDown:R,onInputMouseDown:I,onInputChange:k,onInputPaste:j,onInputCompositionStart:N,onInputCompositionEnd:A,onInputBlur:S},B=l==="multiple"||l==="tags"?s.createElement(Qle,Me({},t,L)):s.createElement(Jle,Me({},t,L));return s.createElement("div",{ref:C,className:"".concat(o,"-selector"),onClick:D,onMouseDown:F},f&&s.createElement("div",{className:"".concat(o,"-prefix")},f),B)},ese=s.forwardRef(Zle);function tse(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,l=o.content,c=a.x,u=c===void 0?0:c,d=a.y,f=d===void 0?0:d,m=s.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],b=n.points[1],p=h[0],S=h[1],C=b[0],x=b[1];p===C||!["t","b"].includes(p)?g.top=f:p==="t"?g.top=0:g.bottom=0,S===x||!["l","r"].includes(S)?g.left=u:S==="l"?g.left=0:g.right=0}return s.createElement("div",{ref:m,className:oe("".concat(t,"-arrow"),i),style:g},l)}function nse(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?s.createElement(ma,Me({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return s.createElement("div",{style:{zIndex:r},className:oe("".concat(t,"-mask"),l)})}):null}var rse=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),ase=s.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,g=e.arrow,h=e.arrowPos,b=e.align,p=e.motion,S=e.maskMotion,C=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,$=e.portal,E=e.zIndex,R=e.onMouseEnter,I=e.onMouseLeave,O=e.onPointerEnter,T=e.onPointerDownCapture,N=e.ready,A=e.offsetX,k=e.offsetY,j=e.offsetR,D=e.offsetB,F=e.onAlign,L=e.onPrepare,B=e.stretch,K=e.targetWidth,W=e.targetHeight,V=typeof n=="function"?n():n,q=c||u,U=(x==null?void 0:x.length)>0,G=s.useState(!x||!U),Y=ce(G,2),J=Y[0],Q=Y[1];if(dn(function(){!J&&U&&i&&Q(!0)},[J,U,i]),!J)return null;var Z="auto",ne={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(N||!c){var ae,le=b.points,re=b.dynamicInset||((ae=b._experimental)===null||ae===void 0?void 0:ae.dynamicInset),fe=re&&le[0][1]==="r",ue=re&&le[0][0]==="b";fe?(ne.right=j,ne.left=Z):(ne.left=A,ne.right=Z),ue?(ne.bottom=D,ne.top=Z):(ne.top=k,ne.bottom=Z)}var de={};return B&&(B.includes("height")&&W?de.height=W:B.includes("minHeight")&&W&&(de.minHeight=W),B.includes("width")&&K?de.width=K:B.includes("minWidth")&&K&&(de.minWidth=K)),c||(de.pointerEvents="none"),s.createElement($,{open:C||q,getContainer:x&&function(){return x(i)},autoDestroy:w},s.createElement(nse,{prefixCls:a,open:c,zIndex:E,mask:m,motion:S}),s.createElement(Rr,{onResize:F,disabled:!c},function(ie){return s.createElement(ma,Me({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(a,"-hidden")},p,{onAppearPrepare:L,onEnterPrepare:L,visible:c,onVisibleChanged:function(ve){var he;p==null||(he=p.onVisibleChanged)===null||he===void 0||he.call(p,ve),l(ve)}}),function(se,ve){var he=se.className,Ce=se.style,pe=oe(a,he,r);return s.createElement("div",{ref:Fr(ie,t,ve),className:pe,style:P(P(P(P({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},ne),de),Ce),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:R,onMouseLeave:I,onPointerEnter:O,onClick:f,onPointerDownCapture:T},g&&s.createElement(tse,{prefixCls:a,arrow:g,arrowPos:h,align:b}),s.createElement(rse,{cache:!c&&!d},V))})}))}),ose=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=_i(n),o=s.useCallback(function(l){xm(t,r?r(l):l)},[r]),i=Ai(o,ec(n));return a?s.cloneElement(n,{ref:i}):n}),u8=s.createContext(null);function d8(e){return e?Array.isArray(e)?e:[e]:[]}function ise(e,t,n,r){return s.useMemo(function(){var a=d8(n??t),o=d8(r??t),i=new Set(a),l=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function lse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function sse(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Cv(e){return Dm(parseFloat(e),0)}function v8(e,t){var n=P({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=bg(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,l=a.borderTopWidth,c=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,b=r.clientWidth,p=Cv(l),S=Cv(c),C=Cv(u),x=Cv(d),w=Dm(Math.round(f.width/h*1e3)/1e3),$=Dm(Math.round(f.height/m*1e3)/1e3),E=(h-b-C-x)*w,R=(m-g-p-S)*$,I=p*$,O=S*$,T=C*w,N=x*w,A=0,k=0;if(o==="clip"){var j=Cv(i);A=j*w,k=j*$}var D=f.x+T-A,F=f.y+I-k,L=D+f.width+2*A-T-N-E,B=F+f.height+2*k-I-O-R;n.left=Math.max(n.left,D),n.top=Math.max(n.top,F),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,B)}}),n}function m8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function g8(e,t){var n=t||[],r=ce(n,2),a=r[0],o=r[1];return[m8(e.width,a),m8(e.height,o)]}function p8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function td(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function ps(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function cse(e,t,n,r,a,o,i){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),c=ce(l,2),u=c[0],d=c[1],f=s.useRef(0),m=s.useMemo(function(){return t?DP(t):[]},[t]),g=s.useRef({}),h=function(){g.current={}};e||h();var b=Zt(function(){if(t&&n&&e){let er=function(Tr,Ur){var Oa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe,go=q.x+Tr,Pu=q.y+Ur,Ou=go+ue,Gt=Pu+fe,xn=Math.max(go,Oa.left),fr=Math.max(Pu,Oa.top),gr=Math.min(Ou,Oa.right),vr=Math.min(Gt,Oa.bottom);return Math.max(0,(gr-xn)*(vr-fr))},Pr=function(){Kt=q.y+yt,Ut=Kt+fe,kt=q.x+mt,Pt=kt+ue};var An=er,ar=Pr,C,x,w,$,E=t,R=E.ownerDocument,I=bg(E),O=I.getComputedStyle(E),T=O.position,N=E.style.left,A=E.style.top,k=E.style.right,j=E.style.bottom,D=E.style.overflow,F=P(P({},a[r]),o),L=R.createElement("div");(C=E.parentElement)===null||C===void 0||C.appendChild(L),L.style.left="".concat(E.offsetLeft,"px"),L.style.top="".concat(E.offsetTop,"px"),L.style.position=T,L.style.height="".concat(E.offsetHeight,"px"),L.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 B;if(Array.isArray(n))B={x:n[0],y:n[1],width:0,height:0};else{var K,W,V=n.getBoundingClientRect();V.x=(K=V.x)!==null&&K!==void 0?K:V.left,V.y=(W=V.y)!==null&&W!==void 0?W:V.top,B={x:V.x,y:V.y,width:V.width,height:V.height}}var q=E.getBoundingClientRect(),U=I.getComputedStyle(E),G=U.height,Y=U.width;q.x=(x=q.x)!==null&&x!==void 0?x:q.left,q.y=(w=q.y)!==null&&w!==void 0?w:q.top;var J=R.documentElement,Q=J.clientWidth,Z=J.clientHeight,ne=J.scrollWidth,ae=J.scrollHeight,le=J.scrollTop,re=J.scrollLeft,fe=q.height,ue=q.width,de=B.height,ie=B.width,se={left:0,top:0,right:Q,bottom:Z},ve={left:-re,top:-le,right:ne-re,bottom:ae-le},he=F.htmlRegion,Ce="visible",pe="visibleFirst";he!=="scroll"&&he!==pe&&(he=Ce);var Se=he===pe,ge=v8(ve,m),ye=v8(se,m),xe=he===Ce?ye:ge,$e=Se?ye:xe;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var He=E.getBoundingClientRect();E.style.left=N,E.style.top=A,E.style.right=k,E.style.bottom=j,E.style.overflow=D,($=E.parentElement)===null||$===void 0||$.removeChild(L);var Te=Dm(Math.round(ue/parseFloat(Y)*1e3)/1e3),Re=Dm(Math.round(fe/parseFloat(G)*1e3)/1e3);if(Te===0||Re===0||Sm(n)&&!bf(n))return;var Fe=F.offset,je=F.targetOffset,Ee=g8(q,Fe),Le=ce(Ee,2),Pe=Le[0],ze=Le[1],Oe=g8(B,je),we=ce(Oe,2),_e=we[0],Be=we[1];B.x-=_e,B.y-=Be;var Qe=F.points||[],lt=ce(Qe,2),Ke=lt[0],et=lt[1],st=p8(et),Ze=p8(Ke),vt=td(B,st),Ot=td(q,Ze),xt=P({},F),mt=vt.x-Ot.x+Pe,yt=vt.y-Ot.y+ze,bt=er(mt,yt),tt=er(mt,yt,ye),Ye=td(B,["t","l"]),Ne=td(q,["t","l"]),We=td(B,["b","r"]),rt=td(q,["b","r"]),ct=F.overflow||{},At=ct.adjustX,pt=ct.adjustY,ft=ct.shiftX,ut=ct.shiftY,Xt=function(Ur){return typeof Ur=="boolean"?Ur:Ur>=0},Kt,Ut,kt,Pt;Pr();var Lt=Xt(pt),nt=Ze[0]===st[0];if(Lt&&Ze[0]==="t"&&(Ut>$e.bottom||g.current.bt)){var St=yt;nt?St-=fe-de:St=Ye.y-rt.y-ze;var gt=er(mt,St),qe=er(mt,St,ye);gt>bt||gt===bt&&(!Se||qe>=tt)?(g.current.bt=!0,yt=St,ze=-ze,xt.points=[ps(Ze,0),ps(st,0)]):g.current.bt=!1}if(Lt&&Ze[0]==="b"&&(Kt<$e.top||g.current.tb)){var at=yt;nt?at+=fe-de:at=We.y-Ne.y-ze;var dt=er(mt,at),Tt=er(mt,at,ye);dt>bt||dt===bt&&(!Se||Tt>=tt)?(g.current.tb=!0,yt=at,ze=-ze,xt.points=[ps(Ze,0),ps(st,0)]):g.current.tb=!1}var Qt=Xt(At),Ct=Ze[1]===st[1];if(Qt&&Ze[1]==="l"&&(Pt>$e.right||g.current.rl)){var Rt=mt;Ct?Rt-=ue-ie:Rt=Ye.x-rt.x-Pe;var Vt=er(Rt,yt),vn=er(Rt,yt,ye);Vt>bt||Vt===bt&&(!Se||vn>=tt)?(g.current.rl=!0,mt=Rt,Pe=-Pe,xt.points=[ps(Ze,1),ps(st,1)]):g.current.rl=!1}if(Qt&&Ze[1]==="r"&&(kt<$e.left||g.current.lr)){var Mn=mt;Ct?Mn+=ue-ie:Mn=We.x-Ne.x-Pe;var bn=er(Mn,yt),sr=er(Mn,yt,ye);bn>bt||bn===bt&&(!Se||sr>=tt)?(g.current.lr=!0,mt=Mn,Pe=-Pe,xt.points=[ps(Ze,1),ps(st,1)]):g.current.lr=!1}Pr();var cr=ft===!0?0:ft;typeof cr=="number"&&(ktye.right&&(mt-=Pt-ye.right-Pe,B.x>ye.right-cr&&(mt+=B.x-ye.right+cr)));var Dr=ut===!0?0:ut;typeof Dr=="number"&&(Ktye.bottom&&(yt-=Ut-ye.bottom-ze,B.y>ye.bottom-Dr&&(yt+=B.y-ye.bottom+Dr)));var yr=q.x+mt,Er=yr+ue,mr=q.y+yt,Nn=mr+fe,Wt=B.x,Ht=Wt+ie,Tn=B.y,Bt=Tn+de,zt=Math.max(yr,Wt),En=Math.min(Er,Ht),Qn=(zt+En)/2,Zn=Qn-yr,Sn=Math.max(mr,Tn),Cr=Math.min(Nn,Bt),Mr=(Sn+Cr)/2,yn=Mr-mr;i==null||i(t,xt);var wt=He.right-q.x-(mt+q.width),Dt=He.bottom-q.y-(yt+q.height);Te===1&&(mt=Math.floor(mt),wt=Math.floor(wt)),Re===1&&(yt=Math.floor(yt),Dt=Math.floor(Dt));var Pn={ready:!0,offsetX:mt/Te,offsetY:yt/Re,offsetR:wt/Te,offsetB:Dt/Re,arrowX:Zn/Te,arrowY:yn/Re,scaleX:Te,scaleY:Re,align:xt};d(Pn)}}),p=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&b()})},S=function(){d(function(x){return P(P({},x),{},{ready:!1})})};return dn(S,[r]),dn(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,p]}function use(e,t,n,r,a){dn(function(){if(e&&t&&n){let m=function(){r(),a()};var f=m,o=t,i=n,l=DP(o),c=DP(i),u=bg(i),d=new Set([u].concat(ke(l),ke(c)));return d.forEach(function(g){g.addEventListener("scroll",m,{passive:!0})}),u.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(g){g.removeEventListener("scroll",m),u.removeEventListener("resize",m)})}}},[e,t,n])}function dse(e,t,n,r,a,o,i,l){var c=s.useRef(e);c.current=e;var u=s.useRef(!1);s.useEffect(function(){if(t&&r&&(!a||o)){var f=function(){u.current=!1},m=function(p){var S;c.current&&!i(((S=p.composedPath)===null||S===void 0||(S=S.call(p))===null||S===void 0?void 0:S[0])||p.target)&&!u.current&&l(!1)},g=bg(r);g.addEventListener("pointerdown",f,!0),g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0);var h=Ab(n);return h&&(h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0)),function(){g.removeEventListener("pointerdown",f,!0),g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0),h&&(h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0))}}},[t,n,r,a,o]);function d(){u.current=!0}return d}var fse=["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 vse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gg,t=s.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,b=n.mouseEnterDelay,p=n.mouseLeaveDelay,S=p===void 0?.1:p,C=n.focusDelay,x=n.blurDelay,w=n.mask,$=n.maskClosable,E=$===void 0?!0:$,R=n.getPopupContainer,I=n.forceRender,O=n.autoDestroy,T=n.destroyPopupOnHide,N=n.popup,A=n.popupClassName,k=n.popupStyle,j=n.popupPlacement,D=n.builtinPlacements,F=D===void 0?{}:D,L=n.popupAlign,B=n.zIndex,K=n.stretch,W=n.getPopupClassNameFromAlign,V=n.fresh,q=n.alignPoint,U=n.onPopupClick,G=n.onPopupAlign,Y=n.arrow,J=n.popupMotion,Q=n.maskMotion,Z=n.popupTransitionName,ne=n.popupAnimation,ae=n.maskTransitionName,le=n.maskAnimation,re=n.className,fe=n.getTriggerDOMNode,ue=Ue(n,fse),de=O||T||!1,ie=s.useState(!1),se=ce(ie,2),ve=se[0],he=se[1];dn(function(){he(Jy())},[]);var Ce=s.useRef({}),pe=s.useContext(u8),Se=s.useMemo(function(){return{registerSubPopup:function(xn,fr){Ce.current[xn]=fr,pe==null||pe.registerSubPopup(xn,fr)}}},[pe]),ge=Cf(),ye=s.useState(null),xe=ce(ye,2),$e=xe[0],He=xe[1],Te=s.useRef(null),Re=Zt(function(Gt){Te.current=Gt,Sm(Gt)&&$e!==Gt&&He(Gt),pe==null||pe.registerSubPopup(ge,Gt)}),Fe=s.useState(null),je=ce(Fe,2),Ee=je[0],Le=je[1],Pe=s.useRef(null),ze=Zt(function(Gt){Sm(Gt)&&Ee!==Gt&&(Le(Gt),Pe.current=Gt)}),Oe=s.Children.only(i),we=(Oe==null?void 0:Oe.props)||{},_e={},Be=Zt(function(Gt){var xn,fr,gr=Ee;return(gr==null?void 0:gr.contains(Gt))||((xn=Ab(gr))===null||xn===void 0?void 0:xn.host)===Gt||Gt===gr||($e==null?void 0:$e.contains(Gt))||((fr=Ab($e))===null||fr===void 0?void 0:fr.host)===Gt||Gt===$e||Object.values(Ce.current).some(function(vr){return(vr==null?void 0:vr.contains(Gt))||Gt===vr})}),Qe=f8(o,J,ne,Z),lt=f8(o,Q,le,ae),Ke=s.useState(m||!1),et=ce(Ke,2),st=et[0],Ze=et[1],vt=f??st,Ot=Zt(function(Gt){f===void 0&&Ze(Gt)});dn(function(){Ze(f||!1)},[f]);var xt=s.useRef(vt);xt.current=vt;var mt=s.useRef([]);mt.current=[];var yt=Zt(function(Gt){var xn;Ot(Gt),((xn=mt.current[mt.current.length-1])!==null&&xn!==void 0?xn:vt)!==Gt&&(mt.current.push(Gt),g==null||g(Gt))}),bt=s.useRef(),tt=function(){clearTimeout(bt.current)},Ye=function(xn){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;tt(),fr===0?yt(xn):bt.current=setTimeout(function(){yt(xn)},fr*1e3)};s.useEffect(function(){return tt},[]);var Ne=s.useState(!1),We=ce(Ne,2),rt=We[0],ct=We[1];dn(function(Gt){(!Gt||vt)&&ct(!0)},[vt]);var At=s.useState(null),pt=ce(At,2),ft=pt[0],ut=pt[1],Xt=s.useState(null),Kt=ce(Xt,2),Ut=Kt[0],kt=Kt[1],Pt=function(xn){kt([xn.clientX,xn.clientY])},Lt=cse(vt,$e,q&&Ut!==null?Ut:Ee,j,F,L,G),nt=ce(Lt,11),St=nt[0],gt=nt[1],qe=nt[2],at=nt[3],dt=nt[4],Tt=nt[5],Qt=nt[6],Ct=nt[7],Rt=nt[8],Vt=nt[9],vn=nt[10],Mn=ise(ve,c,u,d),bn=ce(Mn,2),sr=bn[0],cr=bn[1],Dr=sr.has("click"),yr=cr.has("click")||cr.has("contextMenu"),Er=Zt(function(){rt||vn()}),mr=function(){xt.current&&q&&yr&&Ye(!1)};use(vt,Ee,$e,Er,mr),dn(function(){Er()},[Ut,j]),dn(function(){vt&&!(F!=null&&F[j])&&Er()},[JSON.stringify(L)]);var Nn=s.useMemo(function(){var Gt=sse(F,o,Vt,q);return oe(Gt,W==null?void 0:W(Vt))},[Vt,W,F,o,q]);s.useImperativeHandle(r,function(){return{nativeElement:Pe.current,popupElement:Te.current,forceAlign:Er}});var Wt=s.useState(0),Ht=ce(Wt,2),Tn=Ht[0],Bt=Ht[1],zt=s.useState(0),En=ce(zt,2),Qn=En[0],Zn=En[1],Sn=function(){if(K&&Ee){var xn=Ee.getBoundingClientRect();Bt(xn.width),Zn(xn.height)}},Cr=function(){Sn(),Er()},Mr=function(xn){ct(!1),vn(),h==null||h(xn)},yn=function(){return new Promise(function(xn){Sn(),ut(function(){return xn})})};dn(function(){ft&&(vn(),ft(),ut(null))},[ft]);function wt(Gt,xn,fr,gr){_e[Gt]=function(vr){var Iu;gr==null||gr(vr),Ye(xn,fr);for(var pl=arguments.length,es=new Array(pl>1?pl-1:0),fi=1;fi1?fr-1:0),vr=1;vr1?fr-1:0),vr=1;vr1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=MH(n,!1),i=o.label,l=o.value,c=o.options,u=o.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(g){if(m||!(c in g)){var h=g[l];a.push({key:h8(g,a.length),groupOption:m,data:g,label:g[i],value:h})}else{var b=g[u];b===void 0&&r&&(b=g.label),a.push({key:h8(g,a.length),group:!0,data:g,label:b}),d(g[c],!0)}})}return d(e,!1),a}function AP(e){var t=P({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Wn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var yse=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function l(c,u){var d=fR(u),f=d[0],m=d.slice(1);if(!f)return[c];var g=c.split(f);return a=a||g.length>1,g.reduce(function(h,b){return[].concat(ke(h),ke(l(b,m)))},[]).filter(Boolean)},i=o(t,n);return a?typeof r<"u"?i.slice(0,r):i:null},HR=s.createContext(null);function Cse(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return s.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,i=a.value;return["number","string"].includes(it(o))?o:i}).join(", ")),n.length>r?", ...":null)}var Sse=["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"],xse=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],LP=function(t){return t==="tags"||t==="multiple"},VR=s.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,i=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,b=e.onClear,p=e.mode,S=e.disabled,C=e.loading,x=e.getInputElement,w=e.getRawInputElement,$=e.open,E=e.defaultOpen,R=e.onDropdownVisibleChange,I=e.activeValue,O=e.onActiveValueChange,T=e.activeDescendantId,N=e.searchValue,A=e.autoClearSearchValue,k=e.onSearch,j=e.onSearchSplit,D=e.tokenSeparators,F=e.allowClear,L=e.prefix,B=e.suffixIcon,K=e.clearIcon,W=e.OptionList,V=e.animation,q=e.transitionName,U=e.dropdownStyle,G=e.dropdownClassName,Y=e.dropdownMatchSelectWidth,J=e.dropdownRender,Q=e.dropdownAlign,Z=e.placement,ne=e.builtinPlacements,ae=e.getPopupContainer,le=e.showAction,re=le===void 0?[]:le,fe=e.onFocus,ue=e.onBlur,de=e.onKeyUp,ie=e.onKeyDown,se=e.onMouseDown,ve=Ue(e,Sse),he=LP(p),Ce=(i!==void 0?i:he)||p==="combobox",pe=P({},ve);xse.forEach(function(Wt){delete pe[Wt]}),u==null||u.forEach(function(Wt){delete pe[Wt]});var Se=s.useState(!1),ge=ce(Se,2),ye=ge[0],xe=ge[1];s.useEffect(function(){xe(Jy())},[]);var $e=s.useRef(null),He=s.useRef(null),Te=s.useRef(null),Re=s.useRef(null),Fe=s.useRef(null),je=s.useRef(!1),Ee=Ile(),Le=ce(Ee,3),Pe=Le[0],ze=Le[1],Oe=Le[2];s.useImperativeHandle(t,function(){var Wt,Ht;return{focus:(Wt=Re.current)===null||Wt===void 0?void 0:Wt.focus,blur:(Ht=Re.current)===null||Ht===void 0?void 0:Ht.blur,scrollTo:function(Bt){var zt;return(zt=Fe.current)===null||zt===void 0?void 0:zt.scrollTo(Bt)},nativeElement:$e.current||He.current}});var we=s.useMemo(function(){var Wt;if(p!=="combobox")return N;var Ht=(Wt=d[0])===null||Wt===void 0?void 0:Wt.value;return typeof Ht=="string"||typeof Ht=="number"?String(Ht):""},[N,p,d]),_e=p==="combobox"&&typeof x=="function"&&x()||null,Be=typeof w=="function"&&w(),Qe=Ai(He,Be==null||(n=Be.props)===null||n===void 0?void 0:n.ref),lt=s.useState(!1),Ke=ce(lt,2),et=Ke[0],st=Ke[1];dn(function(){st(!0)},[]);var Ze=_t(!1,{defaultValue:E,value:$}),vt=ce(Ze,2),Ot=vt[0],xt=vt[1],mt=et?Ot:!1,yt=!h&&m;(S||yt&&mt&&p==="combobox")&&(mt=!1);var bt=yt?!1:mt,tt=s.useCallback(function(Wt){var Ht=Wt!==void 0?Wt:!mt;S||(xt(Ht),mt!==Ht&&(R==null||R(Ht)))},[S,mt,xt,R]),Ye=s.useMemo(function(){return(D||[]).some(function(Wt){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Zie=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ele=e=>{const{componentCls:t}=e,n=SH(e),r=Object.assign({},n);delete r.xs;const a=`--${t.replace(".","")}-`,o=Object.keys(r).map(i=>({[`@media (min-width: ${me(r[i])})`]:{width:`var(${a}${i}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ke(Object.keys(n).map((i,l)=>{const c=Object.keys(n)[l-1];return c?{[`${a}${i}-width`]:`var(${a}${c}-width)`}:null})),[{width:`var(${a}xs-width)`}],ke(o))}}},wH=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return en(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},$H=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${me(e.paddingMD)} ${me(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${me(e.padding)} ${me(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${me(e.paddingXS)} ${me(e.padding)}`:0,footerBorderTop:e.wireframe?`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${me(e.borderRadiusLG)} ${me(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${me(e.padding*2)} ${me(e.padding*2)} ${me(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),EH=dn("Modal",e=>{const t=wH(e);return[Jie(t),Zie(t),xH(t),Cf(t,"zoom"),ele(t)]},$H,{unitless:{titleLineHeight:!0}});var tle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{VP={x:e.pageX,y:e.pageY},setTimeout(()=>{VP=null},100)};xie()&&document.documentElement.addEventListener("click",nle,!0);const PH=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:o,centered:i,getContainer:l,focusTriggerAfterClose:c=!0,style:u,visible:d,width:f=520,footer:m,classNames:g,styles:h,children:b,loading:p,confirmLoading:S,zIndex:C,mousePosition:x,onOk:w,onCancel:$,destroyOnHidden:E,destroyOnClose:R,panelRef:I=null,modalRender:O}=e,T=tle(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:_,getPrefixCls:k,direction:A,modal:j}=s.useContext(jt),D=ve=>{S||$==null||$(ve)},F=ve=>{w==null||w(ve)},L=k("modal",t),B=k(),K=Yn(L),[W,V,q]=EH(L,K),U=oe(o,{[`${L}-centered`]:i??(j==null?void 0:j.centered),[`${L}-wrap-rtl`]:A==="rtl"}),G=m!==null&&!p?s.createElement(CH,Object.assign({},e,{onOk:F,onCancel:D})):null,[Y,J,Q,Z]=FR(Jd(e),Jd(j),{closable:!0,closeIcon:s.createElement(Hi,{className:`${L}-close-icon`}),closeIconRender:ve=>yH(L,ve)}),ne=O?ve=>s.createElement("div",{className:`${L}-render`},O(ve)):void 0,ae=`.${L}-${O?"render":"content"}`,le=bH(ae),re=Dr(I,le),[fe,ue]=fi("Modal",C),[de,ie]=s.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),se=s.useMemo(()=>{const ve={};return ie&&Object.keys(ie).forEach(he=>{const Ce=ie[he];Ce!==void 0&&(ve[`--${L}-${he}-width`]=typeof Ce=="number"?`${Ce}px`:Ce)}),ve},[L,ie]);return W(s.createElement(ii,{form:!0,space:!0},s.createElement(dg.Provider,{value:ue},s.createElement(GR,Object.assign({width:de},T,{zIndex:fe,getContainer:l===void 0?_:l,prefixCls:L,rootClassName:oe(V,r,q,K),footer:G,visible:a??d,mousePosition:x??VP,onClose:D,closable:Y&&Object.assign({disabled:Q,closeIcon:J},Z),closeIcon:J,focusTriggerAfterClose:c,transitionName:pa(B,"zoom",e.transitionName),maskTransitionName:pa(B,"fade",e.maskTransitionName),className:oe(V,n,j==null?void 0:j.className),style:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.style),u),se),classNames:Object.assign(Object.assign(Object.assign({},j==null?void 0:j.classNames),g),{wrapper:oe(U,g==null?void 0:g.wrapper)}),styles:Object.assign(Object.assign({},j==null?void 0:j.styles),h),panelRef:re,destroyOnClose:E??R,modalRender:ne}),p?s.createElement(ql,{active:!0,title:!1,paragraph:{rows:4},className:`${L}-body-skeleton`}):b))))},rle=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:o,lineHeight:i,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Nm()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(a).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${me(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${me(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:o,lineHeight:i},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls}, + ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},ale=hf(["Modal","confirm"],e=>{const t=wH(e);return rle(t)},$H,{order:-1e3});var ole=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,icon:n,okText:r,cancelText:a,confirmPrefixCls:o,type:i,okCancel:l,footer:c,locale:u}=e,d=ole(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(i){case"info":f=s.createElement(By,null);break;case"success":f=s.createElement(uu,null);break;case"error":f=s.createElement(dl,null);break;default:f=s.createElement(ec,null)}const m=l??i==="confirm",g=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=Ea("Modal"),b=u||h,p=r||(m?b==null?void 0:b.okText:b==null?void 0:b.justOkText),S=a||(b==null?void 0:b.cancelText),C=s.useMemo(()=>Object.assign({autoFocusButton:g,cancelTextLocale:S,okTextLocale:p,mergedOkCancel:m},d),[g,S,p,m,d]),x=s.createElement(s.Fragment,null,s.createElement(Q8,null),s.createElement(J8,null)),w=e.title!==void 0&&e.title!==null,$=`${o}-body`;return s.createElement("div",{className:`${o}-body-wrapper`},s.createElement("div",{className:oe($,{[`${$}-has-title`]:w})},f,s.createElement("div",{className:`${o}-paragraph`},w&&s.createElement("span",{className:`${o}-title`},e.title),s.createElement("div",{className:`${o}-content`},e.content))),c===void 0||typeof c=="function"?s.createElement(eH,{value:C},s.createElement("div",{className:`${o}-btns`},typeof c=="function"?c(x,{OkBtn:J8,CancelBtn:Q8}):x)):c,s.createElement(ale,{prefixCls:t}))},ile=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:o,wrapClassName:i,rootPrefixCls:l,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f,title:m}=e,g=`${o}-confirm`,h=e.width||416,b=e.style||{},p=e.mask===void 0?!0:e.mask,S=e.maskClosable===void 0?!1:e.maskClosable,C=oe(g,`${g}-${e.type}`,{[`${g}-rtl`]:a==="rtl"},e.className),[,x]=Ur(),w=s.useMemo(()=>n!==void 0?n:x.zIndexPopupBase+kR,[n,x]);return s.createElement(PH,Object.assign({},e,{className:C,wrapClassName:oe({[`${g}-centered`]:!!e.centered},i),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:m,footer:null,transitionName:pa(l||"","zoom",e.transitionName),maskTransitionName:pa(l||"","fade",e.maskTransitionName),mask:p,maskClosable:S,style:b,styles:Object.assign({body:c,mask:r},f),width:h,zIndex:w,closable:u}),s.createElement(OH,Object.assign({},e,{confirmPrefixCls:g})))},IH=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return s.createElement(Rt,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},s.createElement(ile,Object.assign({},e)))},Rc=[];let RH="";function MH(){return RH}const lle=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:o}=e,i=H9(),l=s.useContext(jt),c=MH()||l.getPrefixCls(),u=r||`${c}-modal`;let d=a;return d===!1&&(d=void 0),ee.createElement(IH,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:o??l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:i,getContainer:d}))};function hg(e){const t=pz(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:c,open:!0}),a,o;function i(...d){var f;if(d.some(h=>h==null?void 0:h.triggerCancel)){var g;(f=e.onCancel)===null||f===void 0||(g=f).call.apply(g,[e,()=>{}].concat(ke(d.slice(1))))}for(let h=0;h{clearTimeout(a),a=setTimeout(()=>{const f=t.getPrefixCls(void 0,MH()),m=t.getIconPrefixCls(),g=t.getTheme(),h=ee.createElement(lle,Object.assign({},d));o=BR()(ee.createElement(Rt,{prefixCls:f,iconPrefixCls:m,theme:g},typeof t.holderRender=="function"?t.holderRender(h):h),n)})};function c(...d){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,d)}}),r.visible&&delete r.visible,l(r)}function u(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),l(r)}return l(r),Rc.push(c),{destroy:c,update:u}}function TH(e){return Object.assign(Object.assign({},e),{type:"warning"})}function NH(e){return Object.assign(Object.assign({},e),{type:"info"})}function _H(e){return Object.assign(Object.assign({},e),{type:"success"})}function jH(e){return Object.assign(Object.assign({},e),{type:"error"})}function FH(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function sle({rootPrefixCls:e}){RH=e}var cle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,{afterClose:r,config:a}=e,o=cle(e,["afterClose","config"]);const[i,l]=s.useState(!0),[c,u]=s.useState(a),{direction:d,getPrefixCls:f}=s.useContext(jt),m=f("modal"),g=f(),h=()=>{var C;r(),(C=c.afterClose)===null||C===void 0||C.call(c)},b=(...C)=>{var x;if(l(!1),C.some(E=>E==null?void 0:E.triggerCancel)){var $;(x=c.onCancel)===null||x===void 0||($=x).call.apply($,[c,()=>{}].concat(ke(C.slice(1))))}};s.useImperativeHandle(t,()=>({destroy:b,update:C=>{u(x=>{const w=typeof C=="function"?C(x):C;return Object.assign(Object.assign({},x),w)})}}));const p=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[S]=Ea("Modal",Di.Modal);return s.createElement(IH,Object.assign({prefixCls:m,rootPrefixCls:g},c,{close:b,open:i,afterClose:h,okText:c.okText||(p?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:c.direction||d,cancelText:c.cancelText||(S==null?void 0:S.cancelText)},o))},dle=s.forwardRef(ule);let SN=0;const fle=s.memo(s.forwardRef((e,t)=>{const[n,r]=Bne();return s.useImperativeHandle(t,()=>({patchElement:r}),[r]),s.createElement(s.Fragment,null,n)}));function DH(){const e=s.useRef(null),[t,n]=s.useState([]);s.useEffect(()=>{t.length&&(ke(t).forEach(i=>{i()}),n([]))},[t]);const r=s.useCallback(o=>function(l){var c;SN+=1;const u=s.createRef();let d;const f=new Promise(p=>{d=p});let m=!1,g;const h=s.createElement(dle,{key:`modal-${SN}`,config:o(l),ref:u,afterClose:()=>{g==null||g()},isSilent:()=>m,onConfirm:p=>{d(p)}});return g=(c=e.current)===null||c===void 0?void 0:c.patchElement(h),g&&Rc.push(g),{destroy:()=>{function p(){var S;(S=u.current)===null||S===void 0||S.destroy()}u.current?p():n(S=>[].concat(ke(S),[p]))},update:p=>{function S(){var C;(C=u.current)===null||C===void 0||C.update(p)}u.current?S():n(C=>[].concat(ke(C),[S]))},then:p=>(m=!0,f.then(p))}},[]);return[s.useMemo(()=>({info:r(NH),success:r(_H),error:r(jH),warning:r(TH),confirm:r(FH)}),[r]),s.createElement(fle,{key:"modal-holder",ref:e})]}const vle=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,o=new Sn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new Sn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Sn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new Sn("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[a]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[a]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},mle=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],gle={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},ple=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[gle[t]]:{value:0,_skip_check_:!0}}}}},hle=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},ble=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},hle(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},ble(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},mle.map(n=>ple(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},Cle=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:o,borderRadiusLG:i,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:g,notificationMarginEdge:h,notificationProgressBg:b,notificationProgressHeight:p,fontSize:S,lineHeight:C,width:x,notificationIconSize:w,colorText:$,colorSuccessBg:E,colorErrorBg:R,colorInfoBg:I,colorWarningBg:O}=e,T=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:m,borderRadius:i,boxShadow:r,[T]:{padding:g,width:x,maxWidth:`calc(100vw - ${me(e.calc(h).mul(2).equal())})`,lineHeight:C,wordWrap:"break-word",borderRadius:i,overflow:"hidden","&-success":E?{background:E}:{},"&-error":R?{background:R}:{},"&-info":I?{background:I}:{},"&-warning":O?{background:O}:{}},[`${T}-message`]:{color:f,fontSize:a,lineHeight:e.lineHeightLG},[`${T}-description`]:{fontSize:S,color:$,marginTop:e.marginXS},[`${T}-closable ${T}-message`]:{paddingInlineEnd:e.paddingLG},[`${T}-with-icon ${T}-message`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:a},[`${T}-with-icon ${T}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:S},[`${T}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${T}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Ga(e)),[`${T}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${me(i)} * 2)`,left:{_skip_check_:!0,value:i},right:{_skip_check_:!0,value:i},bottom:0,blockSize:p,border:0,"&, &::-webkit-progress-bar":{borderRadius:i,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:b},"&::-webkit-progress-value":{borderRadius:i,background:b}},[`${T}-actions`]:{float:"right",marginTop:e.marginSM}}},Sle=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:o}=e,i=`${t}-notice`,l=new Sn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},$n(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:a,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-actions`]:{float:"left"}}})},{[t]:{[`${i}-wrapper`]:Cle(e)}}]},xle=e=>({zIndexPopup:e.zIndexPopupBase+kR+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),wle=e=>{const t=e.paddingMD,n=e.paddingLG;return en(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${me(e.paddingMD)} ${me(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},$le=dn("Notification",e=>{const t=wle(e);return[Sle(t),vle(t),yle(t)]},xle);function kH(e,t){return t===null||t===!1?null:t||s.createElement(Hi,{className:`${e}-close-icon`})}const Ele={success:uu,info:By,error:dl,warning:ec},Ple=e=>{const{prefixCls:t,icon:n,type:r,message:a,description:o,actions:i,role:l="alert"}=e;let c=null;return n?c=s.createElement("span",{className:`${t}-icon`},n):r&&(c=s.createElement(Ele[r]||null,{className:oe(`${t}-icon`,`${t}-icon-${r}`)})),s.createElement("div",{className:oe({[`${t}-with-icon`]:c}),role:l},c,s.createElement("div",{className:`${t}-message`},a),o&&s.createElement("div",{className:`${t}-description`},o),i&&s.createElement("div",{className:`${t}-actions`},i))};function Ole(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function Ile(e){return{motionName:`${e}-fade`}}function Rle(e,t,n){return typeof e<"u"?e:typeof(t==null?void 0:t.closeIcon)<"u"?t.closeIcon:n==null?void 0:n.closeIcon}var Mle=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=Yn(t),[r,a,o]=$le(t,n);return r(ee.createElement(Pz,{classNames:{list:oe(a,o,n)}},e))},jle=(e,{prefixCls:t,key:n})=>ee.createElement(_le,{prefixCls:t,key:n},e),Fle=ee.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:o,maxCount:i,rtl:l,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:m}=e,{getPrefixCls:g,getPopupContainer:h,notification:b,direction:p}=s.useContext(jt),[,S]=Ur(),C=a||g("notification"),x=I=>Ole(I,n??xN,r??xN),w=()=>oe({[`${C}-rtl`]:l??p==="rtl"}),$=()=>Ile(C),[E,R]=Oz({prefixCls:C,style:x,className:w,motion:$,closable:!0,closeIcon:kH(C),duration:d??Tle,getContainer:()=>(o==null?void 0:o())||(h==null?void 0:h())||document.body,maxCount:i,pauseOnHover:f,showProgress:m,onAllRemoved:c,renderNotifications:jle,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:S.margin}});return ee.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:C,notification:b})),R});function Dle(e){const t=ee.useRef(null);return ul(),[ee.useMemo(()=>{const r=l=>{var c;if(!t.current)return;const{open:u,prefixCls:d,notification:f}=t.current,m=`${d}-notice`,{message:g,description:h,icon:b,type:p,btn:S,actions:C,className:x,style:w,role:$="alert",closeIcon:E,closable:R}=l,I=Mle(l,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),O=C??S,T=kH(m,Rle(E,e,f));return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:Nle},I),{content:ee.createElement(Ple,{prefixCls:m,icon:b,type:p,message:g,description:h,actions:O,role:$}),className:oe(p&&`${m}-${p}`,x,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),w),closeIcon:T,closable:R??!!T}))},o={open:r,destroy:l=>{var c,u;l!==void 0?(c=t.current)===null||c===void 0||c.close(l):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{o[l]=c=>r(Object.assign(Object.assign({},c),{type:l}))}),o},[]),ee.createElement(Fle,Object.assign({key:"notification-holder"},e,{ref:t}))]}function kle(e){return Dle(e)}const WP=ee.createContext({}),AH=ee.createContext({message:{},notification:{},modal:{}}),Ale=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:a,fontFamily:o}=e;return{[t]:{color:n,fontSize:r,lineHeight:a,fontFamily:o,[`&${t}-rtl`]:{direction:"rtl"}}}},Lle=()=>({}),Ble=dn("App",Ale,Lle),zle=e=>{const{prefixCls:t,children:n,className:r,rootClassName:a,message:o,notification:i,style:l,component:c="div"}=e,{direction:u,getPrefixCls:d}=s.useContext(jt),f=d("app",t),[m,g,h]=Ble(f),b=oe(g,f,r,a,h,{[`${f}-rtl`]:u==="rtl"}),p=s.useContext(WP),S=ee.useMemo(()=>({message:Object.assign(Object.assign({},p.message),o),notification:Object.assign(Object.assign({},p.notification),i)}),[o,i,p.message,p.notification]),[C,x]=_z(S.message),[w,$]=kle(S.notification),[E,R]=DH(),I=ee.useMemo(()=>({message:C,notification:w,modal:E}),[C,w,E]);ul()(!(h&&c===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const O=c===!1?ee.Fragment:c,T={className:b,style:l};return m(ee.createElement(AH.Provider,{value:I},ee.createElement(WP.Provider,{value:S},ee.createElement(O,Object.assign({},c===!1?void 0:T),R,x,$,n))))},Hle=()=>ee.useContext(AH),ZR=zle;ZR.useApp=Hle;function LH(e){return t=>s.createElement(Rt,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},t)))}const nc=(e,t,n,r,a)=>LH(i=>{const{prefixCls:l,style:c}=i,u=s.useRef(null),[d,f]=s.useState(0),[m,g]=s.useState(0),[h,b]=Nt(!1,{value:i.open}),{getPrefixCls:p}=s.useContext(jt),S=p(r||"select",l);s.useEffect(()=>{if(b(!0),typeof ResizeObserver<"u"){const w=new ResizeObserver(E=>{const R=E[0].target;f(R.offsetHeight+8),g(R.offsetWidth)}),$=setInterval(()=>{var E;const R=a?`.${a(S)}`:`.${S}-dropdown`,I=(E=u.current)===null||E===void 0?void 0:E.querySelector(R);I&&(clearInterval($),w.observe(I))},10);return()=>{clearInterval($),w.disconnect()}}},[S]);let C=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},c),{margin:0}),open:h,visible:h,getPopupContainer:()=>u.current});n&&(C=n(C)),t&&Object.assign(C,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const x={paddingBottom:d,position:"relative",minWidth:m};return s.createElement("div",{ref:u,style:x},s.createElement(e,Object.assign({},C)))}),a1=(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 o1=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,i=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(a):r;return s.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),i==null||i(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:s.createElement("span",{className:oe(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},o))},Vle=function(t,n,r,a,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=ee.useMemo(function(){if(it(a)==="object")return a.clearIcon;if(o)return o},[a,o]),d=ee.useMemo(function(){return!!(!i&&a&&(r.length||l)&&!(c==="combobox"&&l===""))},[a,i,r.length,l,c]);return{allowClear:d,clearIcon:ee.createElement(o1,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},BH=s.createContext(null);function e4(){return s.useContext(BH)}function Wle(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=ce(t,2),r=n[0],a=n[1],o=s.useRef(null),i=function(){window.clearTimeout(o.current)};s.useEffect(function(){return i},[]);var l=function(u,d){i(),o.current=window.setTimeout(function(){a(u),d&&d()},e)};return[r,l,i]}function zH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Kle(e,t,n,r){var a=s.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function o(i){var l;if(!((l=a.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=i.target;c.shadowRoot&&i.composed&&(c=i.composedPath()[0]||c),a.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function qle(e){return e&&![ot.ESC,ot.SHIFT,ot.BACKSPACE,ot.TAB,ot.WIN_KEY,ot.ALT,ot.META,ot.WIN_KEY_RIGHT,ot.CTRL,ot.SEMICOLON,ot.EQUALS,ot.CAPS_LOCK,ot.CONTEXT_MENU,ot.F1,ot.F2,ot.F3,ot.F4,ot.F5,ot.F6,ot.F7,ot.F8,ot.F9,ot.F10,ot.F11,ot.F12].includes(e)}var Ule=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],td=void 0;function Gle(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,g=e.display,h=e.order,b=e.component,p=b===void 0?"div":b,S=Ue(e,Ule),C=i&&!g;function x(I){c(u,I)}s.useEffect(function(){return function(){x(null)}},[]);var w=o&&a!==td?o(a,{index:h}):m,$;r||($={opacity:C?0:1,height:C?0:td,overflowY:C?"hidden":td,order:i?h:td,pointerEvents:C?"none":td,position:C?"absolute":td});var E={};C&&(E["aria-hidden"]=!0);var R=s.createElement(p,Me({className:oe(!r&&n,d),style:P(P({},$),f)},E,S,{ref:t}),w);return i&&(R=s.createElement(Mr,{onResize:function(O){var T=O.offsetWidth;x(T)},disabled:l},R)),R}var Sd=s.forwardRef(Gle);Sd.displayName="Item";function Yle(e){if(typeof MessageChannel>"u")ln(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Xle(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],Yle(function(){Ua.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function nd(e,t){var n=s.useState(t),r=ce(n,2),a=r[0],o=r[1],i=Zt(function(l){e(function(){o(l)})});return[a,i]}var qb=ee.createContext(null),Qle=["component"],Jle=["className"],Zle=["className"],ese=function(t,n){var r=s.useContext(qb);if(!r){var a=t.component,o=a===void 0?"div":a,i=Ue(t,Qle);return s.createElement(o,Me({},i,{ref:n}))}var l=r.className,c=Ue(r,Jle),u=t.className,d=Ue(t,Zle);return s.createElement(qb.Provider,{value:null},s.createElement(Sd,Me({ref:n,className:oe(l,u)},c,d)))},HH=s.forwardRef(ese);HH.displayName="RawItem";var tse=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],VH="responsive",WH="invalidate";function nse(e){return"+ ".concat(e.length," ...")}function rse(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,g=e.className,h=e.maxCount,b=e.renderRest,p=e.renderRawRest,S=e.prefix,C=e.suffix,x=e.component,w=x===void 0?"div":x,$=e.itemComponent,E=e.onVisibleChange,R=Ue(e,tse),I=f==="full",O=Xle(),T=nd(O,null),_=ce(T,2),k=_[0],A=_[1],j=k||0,D=nd(O,new Map),F=ce(D,2),L=F[0],B=F[1],K=nd(O,0),W=ce(K,2),V=W[0],q=W[1],U=nd(O,0),G=ce(U,2),Y=G[0],J=G[1],Q=nd(O,0),Z=ce(Q,2),ne=Z[0],ae=Z[1],le=nd(O,0),re=ce(le,2),fe=re[0],ue=re[1],de=s.useState(null),ie=ce(de,2),se=ie[0],ve=ie[1],he=s.useState(null),Ce=ce(he,2),pe=Ce[0],Se=Ce[1],ge=s.useMemo(function(){return pe===null&&I?Number.MAX_SAFE_INTEGER:pe||0},[pe,k]),ye=s.useState(!1),xe=ce(ye,2),$e=xe[0],He=xe[1],Te="".concat(r,"-item"),Re=Math.max(V,Y),Fe=h===VH,je=o.length&&Fe,Ee=h===WH,Le=je||typeof h=="number"&&o.length>h,Pe=s.useMemo(function(){var Ye=o;return je?k===null&&I?Ye=o:Ye=o.slice(0,Math.min(o.length,j/d)):typeof h=="number"&&(Ye=o.slice(0,h)),Ye},[o,d,k,h,je]),ze=s.useMemo(function(){return je?o.slice(ge+1):o.slice(Pe.length)},[o,Pe,je,ge]),Oe=s.useCallback(function(Ye,Ne){var We;return typeof c=="function"?c(Ye):(We=c&&(Ye==null?void 0:Ye[c]))!==null&&We!==void 0?We:Ne},[c]),we=s.useCallback(i||function(Ye){return Ye},[i]);function _e(Ye,Ne,We){pe===Ye&&(Ne===void 0||Ne===se)||(Se(Ye),We||(He(Yej){_e(rt-1,Ye-ct-fe+Y);break}}C&&st(0)+fe>j&&ve(null)}},[j,L,Y,ne,fe,Oe,Pe]);var Ze=$e&&!!ze.length,vt={};se!==null&&je&&(vt={position:"absolute",left:se,top:0});var Ot={prefixCls:Te,responsive:je,component:$,invalidate:Ee},xt=l?function(Ye,Ne){var We=Oe(Ye,Ne);return s.createElement(qb.Provider,{key:We,value:P(P({},Ot),{},{order:Ne,item:Ye,itemKey:We,registerSize:Qe,display:Ne<=ge})},l(Ye,Ne))}:function(Ye,Ne){var We=Oe(Ye,Ne);return s.createElement(Sd,Me({},Ot,{order:Ne,key:We,item:Ye,renderItem:we,itemKey:We,registerSize:Qe,display:Ne<=ge}))},mt={order:Ze?ge:Number.MAX_SAFE_INTEGER,className:"".concat(Te,"-rest"),registerSize:lt,display:Ze},yt=b||nse,bt=p?s.createElement(qb.Provider,{value:P(P({},Ot),mt)},p(ze)):s.createElement(Sd,Me({},Ot,mt),typeof yt=="function"?yt(ze):yt),tt=s.createElement(w,Me({className:oe(!Ee&&r,g),style:m,ref:t},R),S&&s.createElement(Sd,Me({},Ot,{responsive:Fe,responsiveDisabled:!je,order:-1,className:"".concat(Te,"-prefix"),registerSize:Ke,display:!0}),S),Pe.map(xt),Le?bt:null,C&&s.createElement(Sd,Me({},Ot,{responsive:Fe,responsiveDisabled:!je,order:ge,className:"".concat(Te,"-suffix"),registerSize:et,display:!0,style:vt}),C));return Fe?s.createElement(Mr,{onResize:Be,disabled:!je},tt):tt}var _i=s.forwardRef(rse);_i.displayName="Overflow";_i.Item=HH;_i.RESPONSIVE=VH;_i.INVALIDATE=WH;function ase(e,t,n){var r=P(P({},e),t);return Object.keys(t).forEach(function(a){var o=t[a];typeof o=="function"&&(r[a]=function(){for(var i,l=arguments.length,c=new Array(l),u=0;ux&&(Ce="".concat(pe.slice(0,x),"..."))}var Se=function(ye){ye&&ye.stopPropagation(),I(de)};return typeof E=="function"?ne(ve,Ce,ie,he,Se):Z(de,Ce,ie,he,Se)},le=function(de){if(!a.length)return null;var ie=typeof $=="function"?$(de):$;return typeof E=="function"?ne(void 0,ie,!1,!1,void 0,!0):Z({title:ie},ie,!1)},re=s.createElement("div",{className:"".concat(Y,"-search"),style:{width:K},onFocus:function(){G(!0)},onBlur:function(){G(!1)}},s.createElement(KH,{ref:c,open:o,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:g,autoComplete:h,editable:Q,activeDescendantId:b,value:J,onKeyDown:_,onMouseDown:k,onChange:O,onPaste:T,onCompositionStart:A,onCompositionEnd:j,onBlur:D,tabIndex:p,attrs:ar(t,!0)}),s.createElement("span",{ref:F,className:"".concat(Y,"-search-mirror"),"aria-hidden":!0},J," ")),fe=s.createElement(_i,{prefixCls:"".concat(Y,"-overflow"),data:a,renderItem:ae,renderRest:le,suffix:re,itemKey:fse,maxCount:C});return s.createElement("span",{className:"".concat(Y,"-wrap")},fe,!a.length&&!J&&s.createElement("span",{className:"".concat(Y,"-placeholder")},u))},mse=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,g=t.placeholder,h=t.tabIndex,b=t.showSearch,p=t.searchValue,S=t.activeValue,C=t.maxLength,x=t.onInputKeyDown,w=t.onInputMouseDown,$=t.onInputChange,E=t.onInputPaste,R=t.onInputCompositionStart,I=t.onInputCompositionEnd,O=t.onInputBlur,T=t.title,_=s.useState(!1),k=ce(_,2),A=k[0],j=k[1],D=d==="combobox",F=D||b,L=m[0],B=p||"";D&&S&&!A&&(B=S),s.useEffect(function(){D&&j(!1)},[D,S]);var K=d!=="combobox"&&!f&&!b?!1:!!B,W=T===void 0?UH(L):T,V=s.useMemo(function(){return L?null:s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:K?{visibility:"hidden"}:void 0},g)},[L,K,g,r]);return s.createElement("span",{className:"".concat(r,"-selection-wrap")},s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(KH,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:i,autoFocus:l,autoComplete:c,editable:F,activeDescendantId:u,value:B,onKeyDown:x,onMouseDown:w,onChange:function(U){j(!0),$(U)},onPaste:E,onCompositionStart:R,onCompositionEnd:I,onBlur:O,tabIndex:h,attrs:ar(t,!0),maxLength:D?C:void 0})),!D&&L?s.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:K?{visibility:"hidden"}:void 0},L.label):null,V)},gse=function(t,n){var r=s.useRef(null),a=s.useRef(!1),o=t.prefixCls,i=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,g=t.onSearch,h=t.onSearchSubmit,b=t.onToggleOpen,p=t.onInputKeyDown,S=t.onInputBlur,C=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(W){r.current.focus(W)},blur:function(){r.current.blur()}}});var x=zH(0),w=ce(x,2),$=w[0],E=w[1],R=function(W){var V=W.which,q=r.current instanceof HTMLTextAreaElement;!q&&i&&(V===ot.UP||V===ot.DOWN)&&W.preventDefault(),p&&p(W),V===ot.ENTER&&l==="tags"&&!a.current&&!i&&(h==null||h(W.target.value)),!(q&&!i&&~[ot.UP,ot.DOWN,ot.LEFT,ot.RIGHT].indexOf(V))&&qle(V)&&b(!0)},I=function(){E(!0)},O=s.useRef(null),T=function(W){g(W,!0,a.current)!==!1&&b(!0)},_=function(){a.current=!0},k=function(W){a.current=!1,l!=="combobox"&&T(W.target.value)},A=function(W){var V=W.target.value;if(u&&O.current&&/[\r\n]/.test(O.current)){var q=O.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");V=V.replace(q,O.current)}O.current=null,T(V)},j=function(W){var V=W.clipboardData,q=V==null?void 0:V.getData("text");O.current=q||""},D=function(W){var V=W.target;if(V!==r.current){var q=document.body.style.msTouchAction!==void 0;q?setTimeout(function(){r.current.focus()}):r.current.focus()}},F=function(W){var V=$();W.target!==r.current&&!V&&!(l==="combobox"&&d)&&W.preventDefault(),(l!=="combobox"&&(!c||!V)||!i)&&(i&&m!==!1&&g("",!0,!1),b())},L={inputRef:r,onInputKeyDown:R,onInputMouseDown:I,onInputChange:A,onInputPaste:j,onInputCompositionStart:_,onInputCompositionEnd:k,onInputBlur:S},B=l==="multiple"||l==="tags"?s.createElement(vse,Me({},t,L)):s.createElement(mse,Me({},t,L));return s.createElement("div",{ref:C,className:"".concat(o,"-selector"),onClick:D,onMouseDown:F},f&&s.createElement("div",{className:"".concat(o,"-prefix")},f),B)},pse=s.forwardRef(gse);function hse(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,l=o.content,c=a.x,u=c===void 0?0:c,d=a.y,f=d===void 0?0:d,m=s.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],b=n.points[1],p=h[0],S=h[1],C=b[0],x=b[1];p===C||!["t","b"].includes(p)?g.top=f:p==="t"?g.top=0:g.bottom=0,S===x||!["l","r"].includes(S)?g.left=u:S==="l"?g.left=0:g.right=0}return s.createElement("div",{ref:m,className:oe("".concat(t,"-arrow"),i),style:g},l)}function bse(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?s.createElement(ga,Me({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var l=i.className;return s.createElement("div",{style:{zIndex:r},className:oe("".concat(t,"-mask"),l)})}):null}var yse=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Cse=s.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,g=e.arrow,h=e.arrowPos,b=e.align,p=e.motion,S=e.maskMotion,C=e.forceRender,x=e.getPopupContainer,w=e.autoDestroy,$=e.portal,E=e.zIndex,R=e.onMouseEnter,I=e.onMouseLeave,O=e.onPointerEnter,T=e.onPointerDownCapture,_=e.ready,k=e.offsetX,A=e.offsetY,j=e.offsetR,D=e.offsetB,F=e.onAlign,L=e.onPrepare,B=e.stretch,K=e.targetWidth,W=e.targetHeight,V=typeof n=="function"?n():n,q=c||u,U=(x==null?void 0:x.length)>0,G=s.useState(!x||!U),Y=ce(G,2),J=Y[0],Q=Y[1];if(fn(function(){!J&&U&&i&&Q(!0)},[J,U,i]),!J)return null;var Z="auto",ne={left:"-1000vw",top:"-1000vh",right:Z,bottom:Z};if(_||!c){var ae,le=b.points,re=b.dynamicInset||((ae=b._experimental)===null||ae===void 0?void 0:ae.dynamicInset),fe=re&&le[0][1]==="r",ue=re&&le[0][0]==="b";fe?(ne.right=j,ne.left=Z):(ne.left=k,ne.right=Z),ue?(ne.bottom=D,ne.top=Z):(ne.top=A,ne.bottom=Z)}var de={};return B&&(B.includes("height")&&W?de.height=W:B.includes("minHeight")&&W&&(de.minHeight=W),B.includes("width")&&K?de.width=K:B.includes("minWidth")&&K&&(de.minWidth=K)),c||(de.pointerEvents="none"),s.createElement($,{open:C||q,getContainer:x&&function(){return x(i)},autoDestroy:w},s.createElement(bse,{prefixCls:a,open:c,zIndex:E,mask:m,motion:S}),s.createElement(Mr,{onResize:F,disabled:!c},function(ie){return s.createElement(ga,Me({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(a,"-hidden")},p,{onAppearPrepare:L,onEnterPrepare:L,visible:c,onVisibleChanged:function(ve){var he;p==null||(he=p.onVisibleChanged)===null||he===void 0||he.call(p,ve),l(ve)}}),function(se,ve){var he=se.className,Ce=se.style,pe=oe(a,he,r);return s.createElement("div",{ref:Dr(ie,t,ve),className:pe,style:P(P(P(P({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},ne),de),Ce),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:R,onMouseLeave:I,onPointerEnter:O,onClick:f,onPointerDownCapture:T},g&&s.createElement(hse,{prefixCls:a,arrow:g,arrowPos:h,align:b}),s.createElement(yse,{cache:!c&&!d},V))})}))}),Sse=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Fi(n),o=s.useCallback(function(l){xm(t,r?r(l):l)},[r]),i=zi(o,Zs(n));return a?s.cloneElement(n,{ref:i}):n}),EN=s.createContext(null);function PN(e){return e?Array.isArray(e)?e:[e]:[]}function xse(e,t,n,r){return s.useMemo(function(){var a=PN(n??t),o=PN(r??t),i=new Set(a),l=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[i,l]},[e,t,n,r])}function wse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function $se(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Cv(e){return Fm(parseFloat(e),0)}function IN(e,t){var n=P({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=bg(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,l=a.borderTopWidth,c=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,g=r.clientHeight,h=r.offsetWidth,b=r.clientWidth,p=Cv(l),S=Cv(c),C=Cv(u),x=Cv(d),w=Fm(Math.round(f.width/h*1e3)/1e3),$=Fm(Math.round(f.height/m*1e3)/1e3),E=(h-b-C-x)*w,R=(m-g-p-S)*$,I=p*$,O=S*$,T=C*w,_=x*w,k=0,A=0;if(o==="clip"){var j=Cv(i);k=j*w,A=j*$}var D=f.x+T-k,F=f.y+I-A,L=D+f.width+2*k-T-_-E,B=F+f.height+2*A-I-O-R;n.left=Math.max(n.left,D),n.top=Math.max(n.top,F),n.right=Math.min(n.right,L),n.bottom=Math.min(n.bottom,B)}}),n}function RN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function MN(e,t){var n=t||[],r=ce(n,2),a=r[0],o=r[1];return[RN(e.width,a),RN(e.height,o)]}function TN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function rd(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function ps(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function Ese(e,t,n,r,a,o,i){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),c=ce(l,2),u=c[0],d=c[1],f=s.useRef(0),m=s.useMemo(function(){return t?KP(t):[]},[t]),g=s.useRef({}),h=function(){g.current={}};e||h();var b=Zt(function(){if(t&&n&&e){let er=function(Nr,Gr){var Pa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe,po=q.x+Nr,Iu=q.y+Gr,Ru=po+ue,Gt=Iu+fe,wn=Math.max(po,Pa.left),fr=Math.max(Iu,Pa.top),gr=Math.min(Ru,Pa.right),vr=Math.min(Gt,Pa.bottom);return Math.max(0,(gr-wn)*(vr-fr))},Or=function(){Kt=q.y+yt,Ut=Kt+fe,kt=q.x+mt,Pt=kt+ue};var Ln=er,or=Or,C,x,w,$,E=t,R=E.ownerDocument,I=bg(E),O=I.getComputedStyle(E),T=O.position,_=E.style.left,k=E.style.top,A=E.style.right,j=E.style.bottom,D=E.style.overflow,F=P(P({},a[r]),o),L=R.createElement("div");(C=E.parentElement)===null||C===void 0||C.appendChild(L),L.style.left="".concat(E.offsetLeft,"px"),L.style.top="".concat(E.offsetTop,"px"),L.style.position=T,L.style.height="".concat(E.offsetHeight,"px"),L.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 B;if(Array.isArray(n))B={x:n[0],y:n[1],width:0,height:0};else{var K,W,V=n.getBoundingClientRect();V.x=(K=V.x)!==null&&K!==void 0?K:V.left,V.y=(W=V.y)!==null&&W!==void 0?W:V.top,B={x:V.x,y:V.y,width:V.width,height:V.height}}var q=E.getBoundingClientRect(),U=I.getComputedStyle(E),G=U.height,Y=U.width;q.x=(x=q.x)!==null&&x!==void 0?x:q.left,q.y=(w=q.y)!==null&&w!==void 0?w:q.top;var J=R.documentElement,Q=J.clientWidth,Z=J.clientHeight,ne=J.scrollWidth,ae=J.scrollHeight,le=J.scrollTop,re=J.scrollLeft,fe=q.height,ue=q.width,de=B.height,ie=B.width,se={left:0,top:0,right:Q,bottom:Z},ve={left:-re,top:-le,right:ne-re,bottom:ae-le},he=F.htmlRegion,Ce="visible",pe="visibleFirst";he!=="scroll"&&he!==pe&&(he=Ce);var Se=he===pe,ge=IN(ve,m),ye=IN(se,m),xe=he===Ce?ye:ge,$e=Se?ye:xe;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var He=E.getBoundingClientRect();E.style.left=_,E.style.top=k,E.style.right=A,E.style.bottom=j,E.style.overflow=D,($=E.parentElement)===null||$===void 0||$.removeChild(L);var Te=Fm(Math.round(ue/parseFloat(Y)*1e3)/1e3),Re=Fm(Math.round(fe/parseFloat(G)*1e3)/1e3);if(Te===0||Re===0||Sm(n)&&!yf(n))return;var Fe=F.offset,je=F.targetOffset,Ee=MN(q,Fe),Le=ce(Ee,2),Pe=Le[0],ze=Le[1],Oe=MN(B,je),we=ce(Oe,2),_e=we[0],Be=we[1];B.x-=_e,B.y-=Be;var Qe=F.points||[],lt=ce(Qe,2),Ke=lt[0],et=lt[1],st=TN(et),Ze=TN(Ke),vt=rd(B,st),Ot=rd(q,Ze),xt=P({},F),mt=vt.x-Ot.x+Pe,yt=vt.y-Ot.y+ze,bt=er(mt,yt),tt=er(mt,yt,ye),Ye=rd(B,["t","l"]),Ne=rd(q,["t","l"]),We=rd(B,["b","r"]),rt=rd(q,["b","r"]),ct=F.overflow||{},At=ct.adjustX,pt=ct.adjustY,ft=ct.shiftX,ut=ct.shiftY,Xt=function(Gr){return typeof Gr=="boolean"?Gr:Gr>=0},Kt,Ut,kt,Pt;Or();var Lt=Xt(pt),nt=Ze[0]===st[0];if(Lt&&Ze[0]==="t"&&(Ut>$e.bottom||g.current.bt)){var St=yt;nt?St-=fe-de:St=Ye.y-rt.y-ze;var gt=er(mt,St),qe=er(mt,St,ye);gt>bt||gt===bt&&(!Se||qe>=tt)?(g.current.bt=!0,yt=St,ze=-ze,xt.points=[ps(Ze,0),ps(st,0)]):g.current.bt=!1}if(Lt&&Ze[0]==="b"&&(Kt<$e.top||g.current.tb)){var at=yt;nt?at+=fe-de:at=We.y-Ne.y-ze;var dt=er(mt,at),Tt=er(mt,at,ye);dt>bt||dt===bt&&(!Se||Tt>=tt)?(g.current.tb=!0,yt=at,ze=-ze,xt.points=[ps(Ze,0),ps(st,0)]):g.current.tb=!1}var Qt=Xt(At),Ct=Ze[1]===st[1];if(Qt&&Ze[1]==="l"&&(Pt>$e.right||g.current.rl)){var Mt=mt;Ct?Mt-=ue-ie:Mt=Ye.x-rt.x-Pe;var Vt=er(Mt,yt),mn=er(Mt,yt,ye);Vt>bt||Vt===bt&&(!Se||mn>=tt)?(g.current.rl=!0,mt=Mt,Pe=-Pe,xt.points=[ps(Ze,1),ps(st,1)]):g.current.rl=!1}if(Qt&&Ze[1]==="r"&&(kt<$e.left||g.current.lr)){var Mn=mt;Ct?Mn+=ue-ie:Mn=We.x-Ne.x-Pe;var yn=er(Mn,yt),cr=er(Mn,yt,ye);yn>bt||yn===bt&&(!Se||cr>=tt)?(g.current.lr=!0,mt=Mn,Pe=-Pe,xt.points=[ps(Ze,1),ps(st,1)]):g.current.lr=!1}Or();var ur=ft===!0?0:ft;typeof ur=="number"&&(ktye.right&&(mt-=Pt-ye.right-Pe,B.x>ye.right-ur&&(mt+=B.x-ye.right+ur)));var kr=ut===!0?0:ut;typeof kr=="number"&&(Ktye.bottom&&(yt-=Ut-ye.bottom-ze,B.y>ye.bottom-kr&&(yt+=B.y-ye.bottom+kr)));var yr=q.x+mt,Pr=yr+ue,mr=q.y+yt,Nn=mr+fe,Wt=B.x,Ht=Wt+ie,Tn=B.y,Bt=Tn+de,zt=Math.max(yr,Wt),Pn=Math.min(Pr,Ht),Jn=(zt+Pn)/2,Zn=Jn-yr,xn=Math.max(mr,Tn),Cr=Math.min(Nn,Bt),Tr=(xn+Cr)/2,Cn=Tr-mr;i==null||i(t,xt);var wt=He.right-q.x-(mt+q.width),Dt=He.bottom-q.y-(yt+q.height);Te===1&&(mt=Math.floor(mt),wt=Math.floor(wt)),Re===1&&(yt=Math.floor(yt),Dt=Math.floor(Dt));var On={ready:!0,offsetX:mt/Te,offsetY:yt/Re,offsetR:wt/Te,offsetB:Dt/Re,arrowX:Zn/Te,arrowY:Cn/Re,scaleX:Te,scaleY:Re,align:xt};d(On)}}),p=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&b()})},S=function(){d(function(x){return P(P({},x),{},{ready:!1})})};return fn(S,[r]),fn(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,p]}function Pse(e,t,n,r,a){fn(function(){if(e&&t&&n){let m=function(){r(),a()};var f=m,o=t,i=n,l=KP(o),c=KP(i),u=bg(i),d=new Set([u].concat(ke(l),ke(c)));return d.forEach(function(g){g.addEventListener("scroll",m,{passive:!0})}),u.addEventListener("resize",m,{passive:!0}),r(),function(){d.forEach(function(g){g.removeEventListener("scroll",m),u.removeEventListener("resize",m)})}}},[e,t,n])}function Ose(e,t,n,r,a,o,i,l){var c=s.useRef(e);c.current=e;var u=s.useRef(!1);s.useEffect(function(){if(t&&r&&(!a||o)){var f=function(){u.current=!1},m=function(p){var S;c.current&&!i(((S=p.composedPath)===null||S===void 0||(S=S.call(p))===null||S===void 0?void 0:S[0])||p.target)&&!u.current&&l(!1)},g=bg(r);g.addEventListener("pointerdown",f,!0),g.addEventListener("mousedown",m,!0),g.addEventListener("contextmenu",m,!0);var h=Hb(n);return h&&(h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0)),function(){g.removeEventListener("pointerdown",f,!0),g.removeEventListener("mousedown",m,!0),g.removeEventListener("contextmenu",m,!0),h&&(h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0))}}},[t,n,r,a,o]);function d(){u.current=!0}return d}var Ise=["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 Rse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gg,t=s.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,g=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,b=n.mouseEnterDelay,p=n.mouseLeaveDelay,S=p===void 0?.1:p,C=n.focusDelay,x=n.blurDelay,w=n.mask,$=n.maskClosable,E=$===void 0?!0:$,R=n.getPopupContainer,I=n.forceRender,O=n.autoDestroy,T=n.destroyPopupOnHide,_=n.popup,k=n.popupClassName,A=n.popupStyle,j=n.popupPlacement,D=n.builtinPlacements,F=D===void 0?{}:D,L=n.popupAlign,B=n.zIndex,K=n.stretch,W=n.getPopupClassNameFromAlign,V=n.fresh,q=n.alignPoint,U=n.onPopupClick,G=n.onPopupAlign,Y=n.arrow,J=n.popupMotion,Q=n.maskMotion,Z=n.popupTransitionName,ne=n.popupAnimation,ae=n.maskTransitionName,le=n.maskAnimation,re=n.className,fe=n.getTriggerDOMNode,ue=Ue(n,Ise),de=O||T||!1,ie=s.useState(!1),se=ce(ie,2),ve=se[0],he=se[1];fn(function(){he(a1())},[]);var Ce=s.useRef({}),pe=s.useContext(EN),Se=s.useMemo(function(){return{registerSubPopup:function(wn,fr){Ce.current[wn]=fr,pe==null||pe.registerSubPopup(wn,fr)}}},[pe]),ge=Sf(),ye=s.useState(null),xe=ce(ye,2),$e=xe[0],He=xe[1],Te=s.useRef(null),Re=Zt(function(Gt){Te.current=Gt,Sm(Gt)&&$e!==Gt&&He(Gt),pe==null||pe.registerSubPopup(ge,Gt)}),Fe=s.useState(null),je=ce(Fe,2),Ee=je[0],Le=je[1],Pe=s.useRef(null),ze=Zt(function(Gt){Sm(Gt)&&Ee!==Gt&&(Le(Gt),Pe.current=Gt)}),Oe=s.Children.only(i),we=(Oe==null?void 0:Oe.props)||{},_e={},Be=Zt(function(Gt){var wn,fr,gr=Ee;return(gr==null?void 0:gr.contains(Gt))||((wn=Hb(gr))===null||wn===void 0?void 0:wn.host)===Gt||Gt===gr||($e==null?void 0:$e.contains(Gt))||((fr=Hb($e))===null||fr===void 0?void 0:fr.host)===Gt||Gt===$e||Object.values(Ce.current).some(function(vr){return(vr==null?void 0:vr.contains(Gt))||Gt===vr})}),Qe=ON(o,J,ne,Z),lt=ON(o,Q,le,ae),Ke=s.useState(m||!1),et=ce(Ke,2),st=et[0],Ze=et[1],vt=f??st,Ot=Zt(function(Gt){f===void 0&&Ze(Gt)});fn(function(){Ze(f||!1)},[f]);var xt=s.useRef(vt);xt.current=vt;var mt=s.useRef([]);mt.current=[];var yt=Zt(function(Gt){var wn;Ot(Gt),((wn=mt.current[mt.current.length-1])!==null&&wn!==void 0?wn:vt)!==Gt&&(mt.current.push(Gt),g==null||g(Gt))}),bt=s.useRef(),tt=function(){clearTimeout(bt.current)},Ye=function(wn){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;tt(),fr===0?yt(wn):bt.current=setTimeout(function(){yt(wn)},fr*1e3)};s.useEffect(function(){return tt},[]);var Ne=s.useState(!1),We=ce(Ne,2),rt=We[0],ct=We[1];fn(function(Gt){(!Gt||vt)&&ct(!0)},[vt]);var At=s.useState(null),pt=ce(At,2),ft=pt[0],ut=pt[1],Xt=s.useState(null),Kt=ce(Xt,2),Ut=Kt[0],kt=Kt[1],Pt=function(wn){kt([wn.clientX,wn.clientY])},Lt=Ese(vt,$e,q&&Ut!==null?Ut:Ee,j,F,L,G),nt=ce(Lt,11),St=nt[0],gt=nt[1],qe=nt[2],at=nt[3],dt=nt[4],Tt=nt[5],Qt=nt[6],Ct=nt[7],Mt=nt[8],Vt=nt[9],mn=nt[10],Mn=xse(ve,c,u,d),yn=ce(Mn,2),cr=yn[0],ur=yn[1],kr=cr.has("click"),yr=ur.has("click")||ur.has("contextMenu"),Pr=Zt(function(){rt||mn()}),mr=function(){xt.current&&q&&yr&&Ye(!1)};Pse(vt,Ee,$e,Pr,mr),fn(function(){Pr()},[Ut,j]),fn(function(){vt&&!(F!=null&&F[j])&&Pr()},[JSON.stringify(L)]);var Nn=s.useMemo(function(){var Gt=$se(F,o,Vt,q);return oe(Gt,W==null?void 0:W(Vt))},[Vt,W,F,o,q]);s.useImperativeHandle(r,function(){return{nativeElement:Pe.current,popupElement:Te.current,forceAlign:Pr}});var Wt=s.useState(0),Ht=ce(Wt,2),Tn=Ht[0],Bt=Ht[1],zt=s.useState(0),Pn=ce(zt,2),Jn=Pn[0],Zn=Pn[1],xn=function(){if(K&&Ee){var wn=Ee.getBoundingClientRect();Bt(wn.width),Zn(wn.height)}},Cr=function(){xn(),Pr()},Tr=function(wn){ct(!1),mn(),h==null||h(wn)},Cn=function(){return new Promise(function(wn){xn(),ut(function(){return wn})})};fn(function(){ft&&(mn(),ft(),ut(null))},[ft]);function wt(Gt,wn,fr,gr){_e[Gt]=function(vr){var Mu;gr==null||gr(vr),Ye(wn,fr);for(var pl=arguments.length,es=new Array(pl>1?pl-1:0),gi=1;gi1?fr-1:0),vr=1;vr1?fr-1:0),vr=1;vr1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=GH(n,!1),i=o.label,l=o.value,c=o.options,u=o.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(g){if(m||!(c in g)){var h=g[l];a.push({key:NN(g,a.length),groupOption:m,data:g,label:g[i],value:h})}else{var b=g[u];b===void 0&&r&&(b=g.label),a.push({key:NN(g,a.length),group:!0,data:g,label:b}),d(g[c],!0)}})}return d(e,!1),a}function UP(e){var t=P({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Kn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Fse=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function l(c,u){var d=ER(u),f=d[0],m=d.slice(1);if(!f)return[c];var g=c.split(f);return a=a||g.length>1,g.reduce(function(h,b){return[].concat(ke(h),ke(l(b,m)))},[]).filter(Boolean)},i=o(t,n);return a?typeof r<"u"?i.slice(0,r):i:null},t4=s.createContext(null);function Dse(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return s.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,i=a.value;return["number","string"].includes(it(o))?o:i}).join(", ")),n.length>r?", ...":null)}var kse=["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"],Ase=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],GP=function(t){return t==="tags"||t==="multiple"},n4=s.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,i=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,g=e.notFoundContent,h=g===void 0?"Not Found":g,b=e.onClear,p=e.mode,S=e.disabled,C=e.loading,x=e.getInputElement,w=e.getRawInputElement,$=e.open,E=e.defaultOpen,R=e.onDropdownVisibleChange,I=e.activeValue,O=e.onActiveValueChange,T=e.activeDescendantId,_=e.searchValue,k=e.autoClearSearchValue,A=e.onSearch,j=e.onSearchSplit,D=e.tokenSeparators,F=e.allowClear,L=e.prefix,B=e.suffixIcon,K=e.clearIcon,W=e.OptionList,V=e.animation,q=e.transitionName,U=e.dropdownStyle,G=e.dropdownClassName,Y=e.dropdownMatchSelectWidth,J=e.dropdownRender,Q=e.dropdownAlign,Z=e.placement,ne=e.builtinPlacements,ae=e.getPopupContainer,le=e.showAction,re=le===void 0?[]:le,fe=e.onFocus,ue=e.onBlur,de=e.onKeyUp,ie=e.onKeyDown,se=e.onMouseDown,ve=Ue(e,kse),he=GP(p),Ce=(i!==void 0?i:he)||p==="combobox",pe=P({},ve);Ase.forEach(function(Wt){delete pe[Wt]}),u==null||u.forEach(function(Wt){delete pe[Wt]});var Se=s.useState(!1),ge=ce(Se,2),ye=ge[0],xe=ge[1];s.useEffect(function(){xe(a1())},[]);var $e=s.useRef(null),He=s.useRef(null),Te=s.useRef(null),Re=s.useRef(null),Fe=s.useRef(null),je=s.useRef(!1),Ee=Wle(),Le=ce(Ee,3),Pe=Le[0],ze=Le[1],Oe=Le[2];s.useImperativeHandle(t,function(){var Wt,Ht;return{focus:(Wt=Re.current)===null||Wt===void 0?void 0:Wt.focus,blur:(Ht=Re.current)===null||Ht===void 0?void 0:Ht.blur,scrollTo:function(Bt){var zt;return(zt=Fe.current)===null||zt===void 0?void 0:zt.scrollTo(Bt)},nativeElement:$e.current||He.current}});var we=s.useMemo(function(){var Wt;if(p!=="combobox")return _;var Ht=(Wt=d[0])===null||Wt===void 0?void 0:Wt.value;return typeof Ht=="string"||typeof Ht=="number"?String(Ht):""},[_,p,d]),_e=p==="combobox"&&typeof x=="function"&&x()||null,Be=typeof w=="function"&&w(),Qe=zi(He,Be==null||(n=Be.props)===null||n===void 0?void 0:n.ref),lt=s.useState(!1),Ke=ce(lt,2),et=Ke[0],st=Ke[1];fn(function(){st(!0)},[]);var Ze=Nt(!1,{defaultValue:E,value:$}),vt=ce(Ze,2),Ot=vt[0],xt=vt[1],mt=et?Ot:!1,yt=!h&&m;(S||yt&&mt&&p==="combobox")&&(mt=!1);var bt=yt?!1:mt,tt=s.useCallback(function(Wt){var Ht=Wt!==void 0?Wt:!mt;S||(xt(Ht),mt!==Ht&&(R==null||R(Ht)))},[S,mt,xt,R]),Ye=s.useMemo(function(){return(D||[]).some(function(Wt){return[` `,`\r -`].includes(Wt)})},[D]),Ne=s.useContext(HR)||{},We=Ne.maxCount,rt=Ne.rawValues,ct=function(Ht,Tn,Bt){if(!(he&&kP(We)&&(rt==null?void 0:rt.size)>=We)){var zt=!0,En=Ht;O==null||O(null);var Qn=yse(Ht,D,kP(We)?We-rt.size:void 0),Zn=Bt?null:Qn;return p!=="combobox"&&Zn&&(En="",j==null||j(Zn),tt(!1),zt=!1),k&&we!==En&&k(En,{source:Tn?"typing":"effect"}),zt}},At=function(Ht){!Ht||!Ht.trim()||k(Ht,{source:"submit"})};s.useEffect(function(){!mt&&!he&&p!=="combobox"&&ct("",!1,!1)},[mt]),s.useEffect(function(){Ot&&S&&xt(!1),S&&!je.current&&ze(!1)},[S]);var pt=wH(),ft=ce(pt,2),ut=ft[0],Xt=ft[1],Kt=s.useRef(!1),Ut=function(Ht){var Tn=ut(),Bt=Ht.key,zt=Bt==="Enter";if(zt&&(p!=="combobox"&&Ht.preventDefault(),mt||tt(!0)),Xt(!!we),Bt==="Backspace"&&!Tn&&he&&!we&&d.length){for(var En=ke(d),Qn=null,Zn=En.length-1;Zn>=0;Zn-=1){var Sn=En[Zn];if(!Sn.disabled){En.splice(Zn,1),Qn=Sn;break}}Qn&&f(En,{type:"remove",values:[Qn]})}for(var Cr=arguments.length,Mr=new Array(Cr>1?Cr-1:0),yn=1;yn1?Tn-1:0),zt=1;zt1?Qn-1:0),Sn=1;Sn"u"?"undefined":it(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const NH=(function(e,t,n,r){var a=s.useRef(!1),o=s.useRef(null);function i(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var l=s.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&f?(clearTimeout(o.current),a.current=!1):(!f||a.current)&&i(),!a.current&&f}});function Ose(e,t,n,r,a,o,i){var l=s.useRef(0),c=s.useRef(null),u=s.useRef(null),d=s.useRef(!1),f=NH(t,n,r,a);function m(C,x){if(on.cancel(c.current),!f(!1,x)){var w=C;if(!w._virtualHandled)w._virtualHandled=!0;else return;l.current+=x,u.current=x,b8||w.preventDefault(),c.current=on(function(){var $=d.current?10:1;i(l.current*$,!1),l.current=0})}}function g(C,x){i(x,!0),b8||C.preventDefault()}var h=s.useRef(null),b=s.useRef(null);function p(C){if(e){on.cancel(b.current),b.current=on(function(){h.current=null},2);var x=C.deltaX,w=C.deltaY,$=C.shiftKey,E=x,R=w;(h.current==="sx"||!h.current&&$&&w&&!x)&&(E=w,R=0,h.current="sx");var I=Math.abs(E),O=Math.abs(R);h.current===null&&(h.current=o&&I>O?"x":"y"),h.current==="y"?m(C,R):g(C,E)}}function S(C){e&&(d.current=C.detail===u.current)}return[p,S]}function Ise(e,t,n,r){var a=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=ce(a,2),i=o[0],l=o[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),g=i.get(f);if(m===void 0||g===void 0)for(var h=e.length,b=l.length;b0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){var S=!1;l.current.forEach(function(C,x){if(C&&C.offsetParent){var w=C.offsetHeight,$=getComputedStyle(C),E=$.marginTop,R=$.marginBottom,I=y8(E),O=y8(R),T=w+I+O;c.current.get(x)!==T&&(c.current.set(x,T),S=!0)}}),S&&i(function(C){return C+1})};if(g)h();else{u.current+=1;var b=u.current;Promise.resolve().then(function(){b===u.current&&h()})}}function m(g,h){var b=e(g);l.current.get(b),h?(l.current.set(b,h),f()):l.current.delete(b)}return s.useEffect(function(){return d},[]),[m,f,c.current,o]}var C8=14/15;function Tse(e,t,n){var r=s.useRef(!1),a=s.useRef(0),o=s.useRef(0),i=s.useRef(null),l=s.useRef(null),c,u=function(g){if(r.current){var h=Math.ceil(g.touches[0].pageX),b=Math.ceil(g.touches[0].pageY),p=a.current-h,S=o.current-b,C=Math.abs(p)>Math.abs(S);C?a.current=h:o.current=b;var x=n(C,C?p:S,!1,g);x&&g.preventDefault(),clearInterval(l.current),x&&(l.current=setInterval(function(){C?p*=C8:S*=C8;var w=Math.floor(C?p:S);(!n(C,w,!0)||Math.abs(w)<=.1)&&clearInterval(l.current)},16))}},d=function(){r.current=!1,c()},f=function(g){c(),g.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},dn(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(l.current)}},[e])}function S8(e){return Math.floor(Math.pow(e,.5))}function BP(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Nse(e,t,n){s.useEffect(function(){var r=t.current;if(e&&r){var a=!1,o,i,l=function(){on.cancel(o)},c=function m(){l(),o=on(function(){n(i),m()})},u=function(){a=!1,l()},d=function(g){if(!(g.target.draggable||g.button!==0)){var h=g;h._virtualHandled||(h._virtualHandled=!0,a=!0)}},f=function(g){if(a){var h=BP(g,!1),b=r.getBoundingClientRect(),p=b.top,S=b.bottom;if(h<=p){var C=p-h;i=-S8(C),c()}else if(h>=S){var x=h-S;i=S8(x),c()}else l()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",u),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",u),l()}}},[e])}var _se=10;function jse(e,t,n,r,a,o,i,l){var c=s.useRef(),u=s.useState(null),d=ce(u,2),f=d[0],m=d[1];return dn(function(){if(f&&f.times<_se){if(!e.current){m(function(K){return P({},K)});return}o();var g=f.targetAlign,h=f.originAlign,b=f.index,p=f.offset,S=e.current.clientHeight,C=!1,x=g,w=null;if(S){for(var $=g||h,E=0,R=0,I=0,O=Math.min(t.length-1,b),T=0;T<=O;T+=1){var N=a(t[T]);R=E;var A=n.get(N);I=R+(A===void 0?r:A),E=I}for(var k=$==="top"?p:S-p,j=O;j>=0;j-=1){var D=a(t[j]),F=n.get(D);if(F===void 0){C=!0;break}if(k-=F,k<=0)break}switch($){case"top":w=R-p;break;case"bottom":w=I-S+p;break;default:{var L=e.current.scrollTop,B=L+S;RB&&(x="bottom")}}w!==null&&i(w),w!==f.lastTop&&(C=!0)}C&&m(P(P({},f),{},{times:f.times+1,targetAlign:x,lastTop:w}))}},[f,e.current]),function(g){if(g==null){l();return}if(on.cancel(c.current),typeof g=="number")i(g);else if(g&&it(g)==="object"){var h,b=g.align;"index"in g?h=g.index:h=t.findIndex(function(C){return a(C)===g.key});var p=g.offset,S=p===void 0?0:p;m({times:0,index:h,offset:S,originAlign:b})}}}var x8=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,i=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,g=e.thumbStyle,h=e.showScrollBar,b=s.useState(!1),p=ce(b,2),S=p[0],C=p[1],x=s.useState(null),w=ce(x,2),$=w[0],E=w[1],R=s.useState(null),I=ce(R,2),O=I[0],T=I[1],N=!r,A=s.useRef(),k=s.useRef(),j=s.useState(h),D=ce(j,2),F=D[0],L=D[1],B=s.useRef(),K=function(){h===!0||h===!1||(clearTimeout(B.current),L(!0),B.current=setTimeout(function(){L(!1)},3e3))},W=o-f||0,V=f-d||0,q=s.useMemo(function(){if(a===0||W===0)return 0;var le=a/W;return le*V},[a,W,V]),U=function(re){re.stopPropagation(),re.preventDefault()},G=s.useRef({top:q,dragging:S,pageY:$,startTop:O});G.current={top:q,dragging:S,pageY:$,startTop:O};var Y=function(re){C(!0),E(BP(re,u)),T(G.current.top),i(),re.stopPropagation(),re.preventDefault()};s.useEffect(function(){var le=function(de){de.preventDefault()},re=A.current,fe=k.current;return re.addEventListener("touchstart",le,{passive:!1}),fe.addEventListener("touchstart",Y,{passive:!1}),function(){re.removeEventListener("touchstart",le),fe.removeEventListener("touchstart",Y)}},[]);var J=s.useRef();J.current=W;var Q=s.useRef();Q.current=V,s.useEffect(function(){if(S){var le,re=function(de){var ie=G.current,se=ie.dragging,ve=ie.pageY,he=ie.startTop;on.cancel(le);var Ce=A.current.getBoundingClientRect(),pe=f/(u?Ce.width:Ce.height);if(se){var Se=(BP(de,u)-ve)*pe,ge=he;!N&&u?ge-=Se:ge+=Se;var ye=J.current,xe=Q.current,$e=xe?ge/xe:0,He=Math.ceil($e*ye);He=Math.max(He,0),He=Math.min(He,ye),le=on(function(){c(He,u)})}},fe=function(){C(!1),l()};return window.addEventListener("mousemove",re,{passive:!0}),window.addEventListener("touchmove",re,{passive:!0}),window.addEventListener("mouseup",fe,{passive:!0}),window.addEventListener("touchend",fe,{passive:!0}),function(){window.removeEventListener("mousemove",re),window.removeEventListener("touchmove",re),window.removeEventListener("mouseup",fe),window.removeEventListener("touchend",fe),on.cancel(le)}}},[S]),s.useEffect(function(){return K(),function(){clearTimeout(B.current)}},[a]),s.useImperativeHandle(t,function(){return{delayHidden:K}});var Z="".concat(n,"-scrollbar"),ne={position:"absolute",visibility:F?null:"hidden"},ae={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(ne,{height:8,left:0,right:0,bottom:0}),Object.assign(ae,z({height:"100%",width:d},N?"left":"right",q))):(Object.assign(ne,z({width:8,top:0,bottom:0},N?"right":"left",0)),Object.assign(ae,{width:"100%",height:d,top:q})),s.createElement("div",{ref:A,className:oe(Z,z(z(z({},"".concat(Z,"-horizontal"),u),"".concat(Z,"-vertical"),!u),"".concat(Z,"-visible"),F)),style:P(P({},ne),m),onMouseDown:U,onMouseMove:K},s.createElement("div",{ref:k,className:oe("".concat(Z,"-thumb"),z({},"".concat(Z,"-thumb-moving"),S)),style:P(P({},ae),g),onMouseDown:Y}))}),Fse=20;function w8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Fse),Math.floor(n)}var Dse=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],kse=[],Ase={overflowY:"auto",overflowAnchor:"none"};function Lse(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,m=e.itemKey,g=e.virtual,h=e.direction,b=e.scrollWidth,p=e.component,S=p===void 0?"div":p,C=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,$=e.innerProps,E=e.extraRender,R=e.styles,I=e.showScrollBar,O=I===void 0?"optional":I,T=Ue(e,Dse),N=s.useCallback(function(nt){return typeof m=="function"?m(nt):nt==null?void 0:nt[m]},[m]),A=Mse(N),k=ce(A,4),j=k[0],D=k[1],F=k[2],L=k[3],B=!!(g!==!1&&o&&i),K=s.useMemo(function(){return Object.values(F.maps).reduce(function(nt,St){return nt+St},0)},[F.id,F.maps]),W=B&&d&&(Math.max(i*d.length,K)>o||!!b),V=h==="rtl",q=oe(r,z({},"".concat(r,"-rtl"),V),a),U=d||kse,G=s.useRef(),Y=s.useRef(),J=s.useRef(),Q=s.useState(0),Z=ce(Q,2),ne=Z[0],ae=Z[1],le=s.useState(0),re=ce(le,2),fe=re[0],ue=re[1],de=s.useState(!1),ie=ce(de,2),se=ie[0],ve=ie[1],he=function(){ve(!0)},Ce=function(){ve(!1)},pe={getKey:N};function Se(nt){ae(function(St){var gt;typeof nt=="function"?gt=nt(St):gt=nt;var qe=st(gt);return G.current.scrollTop=qe,qe})}var ge=s.useRef({start:0,end:U.length}),ye=s.useRef(),xe=Pse(U,N),$e=ce(xe,1),He=$e[0];ye.current=He;var Te=s.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:U.length-1,offset:void 0};if(!W){var nt;return{scrollHeight:((nt=Y.current)===null||nt===void 0?void 0:nt.offsetHeight)||0,start:0,end:U.length-1,offset:void 0}}for(var St=0,gt,qe,at,dt=U.length,Tt=0;Tt=ne&>===void 0&&(gt=Tt,qe=St),Vt>ne+o&&at===void 0&&(at=Tt),St=Vt}return gt===void 0&&(gt=0,qe=0,at=Math.ceil(o/i)),at===void 0&&(at=U.length-1),at=Math.min(at+1,U.length-1),{scrollHeight:St,start:gt,end:at,offset:qe}},[W,B,ne,U,L,o]),Re=Te.scrollHeight,Fe=Te.start,je=Te.end,Ee=Te.offset;ge.current.start=Fe,ge.current.end=je,s.useLayoutEffect(function(){var nt=F.getRecord();if(nt.size===1){var St=Array.from(nt.keys())[0],gt=nt.get(St),qe=U[Fe];if(qe&>===void 0){var at=N(qe);if(at===St){var dt=F.get(St),Tt=dt-i;Se(function(Qt){return Qt+Tt})}}}F.resetRecord()},[Re]);var Le=s.useState({width:0,height:o}),Pe=ce(Le,2),ze=Pe[0],Oe=Pe[1],we=function(St){Oe({width:St.offsetWidth,height:St.offsetHeight})},_e=s.useRef(),Be=s.useRef(),Qe=s.useMemo(function(){return w8(ze.width,b)},[ze.width,b]),lt=s.useMemo(function(){return w8(ze.height,Re)},[ze.height,Re]),Ke=Re-o,et=s.useRef(Ke);et.current=Ke;function st(nt){var St=nt;return Number.isNaN(et.current)||(St=Math.min(St,et.current)),St=Math.max(St,0),St}var Ze=ne<=0,vt=ne>=Ke,Ot=fe<=0,xt=fe>=b,mt=NH(Ze,vt,Ot,xt),yt=function(){return{x:V?-fe:fe,y:ne}},bt=s.useRef(yt()),tt=Zt(function(nt){if(x){var St=P(P({},yt()),nt);(bt.current.x!==St.x||bt.current.y!==St.y)&&(x(St),bt.current=St)}});function Ye(nt,St){var gt=nt;St?(Ua.flushSync(function(){ue(gt)}),tt()):Se(gt)}function Ne(nt){var St=nt.currentTarget.scrollTop;St!==ne&&Se(St),C==null||C(nt),tt()}var We=function(St){var gt=St,qe=b?b-ze.width:0;return gt=Math.max(gt,0),gt=Math.min(gt,qe),gt},rt=Zt(function(nt,St){St?(Ua.flushSync(function(){ue(function(gt){var qe=gt+(V?-nt:nt);return We(qe)})}),tt()):Se(function(gt){var qe=gt+nt;return qe})}),ct=Ose(B,Ze,vt,Ot,xt,!!b,rt),At=ce(ct,2),pt=At[0],ft=At[1];Tse(B,G,function(nt,St,gt,qe){var at=qe;return mt(nt,St,gt)?!1:!at||!at._virtualHandled?(at&&(at._virtualHandled=!0),pt({preventDefault:function(){},deltaX:nt?St:0,deltaY:nt?0:St}),!0):!1}),Nse(W,G,function(nt){Se(function(St){return St+nt})}),dn(function(){function nt(gt){var qe=Ze&>.detail<0,at=vt&>.detail>0;B&&!qe&&!at&>.preventDefault()}var St=G.current;return St.addEventListener("wheel",pt,{passive:!1}),St.addEventListener("DOMMouseScroll",ft,{passive:!0}),St.addEventListener("MozMousePixelScroll",nt,{passive:!1}),function(){St.removeEventListener("wheel",pt),St.removeEventListener("DOMMouseScroll",ft),St.removeEventListener("MozMousePixelScroll",nt)}},[B,Ze,vt]),dn(function(){if(b){var nt=We(fe);ue(nt),tt({x:nt})}},[ze.width,b]);var ut=function(){var St,gt;(St=_e.current)===null||St===void 0||St.delayHidden(),(gt=Be.current)===null||gt===void 0||gt.delayHidden()},Xt=jse(G,U,F,i,N,function(){return D(!0)},Se,ut);s.useImperativeHandle(t,function(){return{nativeElement:J.current,getScrollInfo:yt,scrollTo:function(St){function gt(qe){return qe&&it(qe)==="object"&&("left"in qe||"top"in qe)}gt(St)?(St.left!==void 0&&ue(We(St.left)),Xt(St.top)):Xt(St)}}}),dn(function(){if(w){var nt=U.slice(Fe,je+1);w(nt,U)}},[Fe,je,U]);var Kt=Ise(U,N,F,i),Ut=E==null?void 0:E({start:Fe,end:je,virtual:W,offsetX:fe,offsetY:Ee,rtl:V,getSize:Kt}),kt=$se(U,Fe,je,b,fe,j,f,pe),Pt=null;o&&(Pt=P(z({},c?"height":"maxHeight",o),Ase),B&&(Pt.overflowY="hidden",b&&(Pt.overflowX="hidden"),se&&(Pt.pointerEvents="none")));var Lt={};return V&&(Lt.dir="rtl"),s.createElement("div",Me({ref:J,style:P(P({},u),{},{position:"relative"}),className:q},Lt,T),s.createElement(Rr,{onResize:we},s.createElement(S,{className:"".concat(r,"-holder"),style:Pt,ref:G,onScroll:Ne,onMouseEnter:ut},s.createElement(TH,{prefixCls:r,height:Re,offsetX:fe,offsetY:Ee,scrollWidth:b,onInnerResize:D,ref:Y,innerProps:$,rtl:V,extra:Ut},kt))),W&&Re>o&&s.createElement(x8,{ref:_e,prefixCls:r,scrollOffset:ne,scrollRange:Re,rtl:V,onScroll:Ye,onStartMove:he,onStopMove:Ce,spinSize:lt,containerSize:ze.height,style:R==null?void 0:R.verticalScrollBar,thumbStyle:R==null?void 0:R.verticalScrollBarThumb,showScrollBar:O}),W&&b>ze.width&&s.createElement(x8,{ref:Be,prefixCls:r,scrollOffset:fe,scrollRange:b,rtl:V,onScroll:Ye,onStartMove:he,onStopMove:Ce,spinSize:Qe,containerSize:ze.width,horizontal:!0,style:R==null?void 0:R.horizontalScrollBar,thumbStyle:R==null?void 0:R.horizontalScrollBarThumb,showScrollBar:O}))}var e1=s.forwardRef(Lse);e1.displayName="List";function Bse(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var zse=["disabled","title","children","style","className"];function $8(e){return typeof e=="string"||typeof e=="number"}var Hse=function(t,n){var r=zR(),a=r.prefixCls,o=r.id,i=r.open,l=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,g=s.useContext(HR),h=g.maxCount,b=g.flattenOptions,p=g.onActiveValue,S=g.defaultActiveFirstOption,C=g.onSelect,x=g.menuItemSelectedIcon,w=g.rawValues,$=g.fieldNames,E=g.virtual,R=g.direction,I=g.listHeight,O=g.listItemHeight,T=g.optionRender,N="".concat(a,"-item"),A=Hl(function(){return b},[i,b],function(le,re){return re[0]&&le[1]!==re[1]}),k=s.useRef(null),j=s.useMemo(function(){return l&&kP(h)&&(w==null?void 0:w.size)>=h},[l,h,w==null?void 0:w.size]),D=function(re){re.preventDefault()},F=function(re){var fe;(fe=k.current)===null||fe===void 0||fe.scrollTo(typeof re=="number"?{index:re}:re)},L=s.useCallback(function(le){return c==="combobox"?!1:w.has(le)},[c,ke(w).toString(),w.size]),B=function(re){for(var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=A.length,de=0;de1&&arguments[1]!==void 0?arguments[1]:!1;q(re);var ue={source:fe?"keyboard":"mouse"},de=A[re];if(!de){p(null,-1,ue);return}p(de.value,re,ue)};s.useEffect(function(){U(S!==!1?B(0):-1)},[A.length,u]);var G=s.useCallback(function(le){return c==="combobox"?String(le).toLowerCase()===u.toLowerCase():w.has(le)},[c,u,ke(w).toString(),w.size]);s.useEffect(function(){var le=setTimeout(function(){if(!l&&i&&w.size===1){var fe=Array.from(w)[0],ue=A.findIndex(function(de){var ie=de.data;return u?String(ie.value).startsWith(u):ie.value===fe});ue!==-1&&(U(ue),F(ue))}});if(i){var re;(re=k.current)===null||re===void 0||re.scrollTo(void 0)}return function(){return clearTimeout(le)}},[i,u]);var Y=function(re){re!==void 0&&C(re,{selected:!w.has(re)}),l||d(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(re){var fe=re.which,ue=re.ctrlKey;switch(fe){case ot.N:case ot.P:case ot.UP:case ot.DOWN:{var de=0;if(fe===ot.UP?de=-1:fe===ot.DOWN?de=1:Bse()&&ue&&(fe===ot.N?de=1:fe===ot.P&&(de=-1)),de!==0){var ie=B(V+de,de);F(ie),U(ie,!0)}break}case ot.TAB:case ot.ENTER:{var se,ve=A[V];ve&&!(ve!=null&&(se=ve.data)!==null&&se!==void 0&&se.disabled)&&!j?Y(ve.value):Y(void 0),i&&re.preventDefault();break}case ot.ESC:d(!1),i&&re.stopPropagation()}},onKeyUp:function(){},scrollTo:function(re){F(re)}}}),A.length===0)return s.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(N,"-empty"),onMouseDown:D},f);var J=Object.keys($).map(function(le){return $[le]}),Q=function(re){return re.label};function Z(le,re){var fe=le.group;return{role:fe?"presentation":"option",id:"".concat(o,"_list_").concat(re)}}var ne=function(re){var fe=A[re];if(!fe)return null;var ue=fe.data||{},de=ue.value,ie=fe.group,se=dr(ue,!0),ve=Q(fe);return fe?s.createElement("div",Me({"aria-label":typeof ve=="string"&&!ie?ve:null},se,{key:re},Z(fe,re),{"aria-selected":G(de)}),de):null},ae={role:"listbox",id:"".concat(o,"_list")};return s.createElement(s.Fragment,null,E&&s.createElement("div",Me({},ae,{style:{height:0,width:0,overflow:"hidden"}}),ne(V-1),ne(V),ne(V+1)),s.createElement(e1,{itemKey:"key",ref:k,data:A,height:I,itemHeight:O,fullHeight:!1,onMouseDown:D,onScroll:m,virtual:E,direction:R,innerProps:E?null:ae},function(le,re){var fe=le.group,ue=le.groupOption,de=le.data,ie=le.label,se=le.value,ve=de.key;if(fe){var he,Ce=(he=de.title)!==null&&he!==void 0?he:$8(ie)?ie.toString():void 0;return s.createElement("div",{className:oe(N,"".concat(N,"-group"),de.className),title:Ce},ie!==void 0?ie:ve)}var pe=de.disabled,Se=de.title;de.children;var ge=de.style,ye=de.className,xe=Ue(de,zse),$e=nn(xe,J),He=L(se),Te=pe||!He&&j,Re="".concat(N,"-option"),Fe=oe(N,Re,ye,z(z(z(z({},"".concat(Re,"-grouped"),ue),"".concat(Re,"-active"),V===re&&!Te),"".concat(Re,"-disabled"),Te),"".concat(Re,"-selected"),He)),je=Q(le),Ee=!x||typeof x=="function"||He,Le=typeof je=="number"?je:je||se,Pe=$8(Le)?Le.toString():void 0;return Se!==void 0&&(Pe=Se),s.createElement("div",Me({},dr($e),E?{}:Z(le,re),{"aria-selected":G(se),className:Fe,title:Pe,onMouseMove:function(){V===re||Te||U(re)},onClick:function(){Te||Y(se)},style:ge}),s.createElement("div",{className:"".concat(Re,"-content")},typeof T=="function"?T(le,{index:re}):Le),s.isValidElement(x)||He,Ee&&s.createElement(Zy,{className:"".concat(N,"-option-state"),customizeIcon:x,customizeIconProps:{value:se,disabled:Te,isSelected:He}},He?"✓":null))}))},Vse=s.forwardRef(Hse);const Wse=(function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var o=n.current,i=o.values,l=o.options,c=e.map(function(f){if(f.label===void 0){var m;return P(P({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),a=s.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]});function gx(e,t){return IH(e).join("").toUpperCase().includes(t)}const Kse=(function(e,t,n,r,a){return s.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,l=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,h){return a?gx(h[a],d):h[o]?gx(h[i!=="children"?i:"label"],d):gx(h[l],d)},m=u?function(g){return AP(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var h=f(n,m(g));if(h)c.push(g);else{var b=g[o].filter(function(p){return f(n,m(p))});b.length&&c.push(P(P({},g),{},z({},o,b)))}return}f(n,m(g))&&c.push(g)}),c},[e,r,a,n,t])});var E8=0,qse=va();function Use(){var e;return qse?(e=E8,E8+=1):e="TEST_OR_SSR",e}function qR(e){var t=s.useState(),n=ce(t,2),r=n[0],a=n[1];return s.useEffect(function(){a("rc_select_".concat(Use()))},[]),e||r}var Gse=["children","value"],Yse=["children"];function Xse(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=Ue(r,Gse);return P({key:n,value:o!==void 0?o:n,children:a},i)}function _H(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return rr(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,l=a.props,c=l.children,u=Ue(l,Yse);return t||!o?Xse(n):P(P({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:_H(c)})}).filter(function(n){return n})}var Qse=function(t,n,r,a,o){return s.useMemo(function(){var i=t,l=!t;l&&(i=_H(n));var c=new Map,u=new Map,d=function(g,h,b){b&&typeof b=="string"&&g.set(h[b],h)},f=function m(g){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b0?tt(We.options):We.options}):We})},Le=s.useMemo(function(){return C?Ee(je):je},[je,C,ae]),Pe=s.useMemo(function(){return bse(Le,{fieldNames:Q,childrenAsData:Y})},[Le,Q,Y]),ze=function(Ye){var Ne=ie(Ye);if(Ce(Ne),W&&(Ne.length!==ye.length||Ne.some(function(ct,At){var pt;return((pt=ye[At])===null||pt===void 0?void 0:pt.value)!==(ct==null?void 0:ct.value)}))){var We=K?Ne:Ne.map(function(ct){return ct.value}),rt=Ne.map(function(ct){return AP(xe(ct.value))});W(G?We:We[0],G?rt:rt[0])}},Oe=s.useState(null),we=ce(Oe,2),_e=we[0],Be=we[1],Qe=s.useState(0),lt=ce(Qe,2),Ke=lt[0],et=lt[1],st=I!==void 0?I:r!=="combobox",Ze=s.useCallback(function(tt,Ye){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},We=Ne.source,rt=We===void 0?"keyboard":We;et(Ye),i&&r==="combobox"&&tt!==null&&rt==="keyboard"&&Be(String(tt))},[i,r]),vt=function(Ye,Ne,We){var rt=function(){var Pt,Lt=xe(Ye);return[K?{label:Lt==null?void 0:Lt[Q.label],value:Ye,key:(Pt=Lt==null?void 0:Lt.key)!==null&&Pt!==void 0?Pt:Ye}:Ye,AP(Lt)]};if(Ne&&g){var ct=rt(),At=ce(ct,2),pt=At[0],ft=At[1];g(pt,ft)}else if(!Ne&&h&&We!=="clear"){var ut=rt(),Xt=ce(ut,2),Kt=Xt[0],Ut=Xt[1];h(Kt,Ut)}},Ot=P8(function(tt,Ye){var Ne,We=G?Ye.selected:!0;We?Ne=G?[].concat(ke(ye),[tt]):[tt]:Ne=ye.filter(function(rt){return rt.value!==tt}),ze(Ne),vt(tt,We),r==="combobox"?Be(""):(!LP||m)&&(le(""),Be(""))}),xt=function(Ye,Ne){ze(Ye);var We=Ne.type,rt=Ne.values;(We==="remove"||We==="clear")&&rt.forEach(function(ct){vt(ct.value,!1,We)})},mt=function(Ye,Ne){if(le(Ye),Be(null),Ne.source==="submit"){var We=(Ye||"").trim();if(We){var rt=Array.from(new Set([].concat(ke(He),[We])));ze(rt),vt(We,!0),le("")}return}Ne.source!=="blur"&&(r==="combobox"&&ze(Ye),d==null||d(Ye))},yt=function(Ye){var Ne=Ye;r!=="tags"&&(Ne=Ye.map(function(rt){var ct=ue.get(rt);return ct==null?void 0:ct.value}).filter(function(rt){return rt!==void 0}));var We=Array.from(new Set([].concat(ke(He),ke(Ne))));ze(We),We.forEach(function(rt){vt(rt,!0)})},bt=s.useMemo(function(){var tt=T!==!1&&p!==!1;return P(P({},re),{},{flattenOptions:Pe,onActiveValue:Ze,defaultActiveFirstOption:st,onSelect:Ot,menuItemSelectedIcon:O,rawValues:He,fieldNames:Q,virtual:tt,direction:N,listHeight:k,listItemHeight:D,childrenAsData:Y,maxCount:V,optionRender:E})},[V,re,Pe,Ze,st,Ot,O,He,Q,T,p,N,k,D,Y,E]);return s.createElement(HR.Provider,{value:bt},s.createElement(VR,Me({},q,{id:U,prefixCls:o,ref:t,omitDomProps:Zse,mode:r,displayValues:$e,onDisplayValuesChange:xt,direction:N,searchValue:ae,onSearch:mt,autoClearSearchValue:m,onSearchSplit:yt,dropdownMatchSelectWidth:p,OptionList:Vse,emptyOptions:!Pe.length,activeValue:_e,activeDescendantId:"".concat(U,"_list_").concat(Ke)})))}),UR=tce;UR.Option=KR;UR.OptGroup=WR;function Di(e,t,n){return oe({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ul=(e,t)=>t||e,nce=()=>{const[,e]=qr(),[t]=Pa("Empty"),r=new gn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(t==null?void 0:t.description)||"Empty"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.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"}),s.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)"}),s.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"}),s.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"})),s.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"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},rce=()=>{const[,e]=qr(),[t]=Pa("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:o}=e,{borderColor:i,shadowColor:l,contentColor:c}=s.useMemo(()=>({borderColor:new gn(n).onBackground(o).toHexString(),shadowColor:new gn(r).onBackground(o).toHexString(),contentColor:new gn(a).onBackground(o).toHexString()}),[n,r,a,o]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(t==null?void 0:t.description)||"Empty"),s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:i},s.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"}),s.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:c}))))},ace=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},oce=un("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=tn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return ace(a)});var ice=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{className:n,rootClassName:r,prefixCls:a,image:o,description:i,children:l,imageStyle:c,style:u,classNames:d,styles:f}=e,m=ice(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:g,direction:h,className:b,style:p,classNames:S,styles:C,image:x}=lr("empty"),w=g("empty",a),[$,E,R]=oce(w),[I]=Pa("Empty"),O=typeof i<"u"?i:I==null?void 0:I.description,T=typeof O=="string"?O:"empty",N=(t=o??x)!==null&&t!==void 0?t:jH;let A=null;return typeof N=="string"?A=s.createElement("img",{draggable:!1,alt:T,src:N}):A=N,$(s.createElement("div",Object.assign({className:oe(E,R,w,b,{[`${w}-normal`]:N===FH,[`${w}-rtl`]:h==="rtl"},n,r,S.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),p),f==null?void 0:f.root),u)},m),s.createElement("div",{className:oe(`${w}-image`,S.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},c),C.image),f==null?void 0:f.image)},A),O&&s.createElement("div",{className:oe(`${w}-description`,S.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},C.description),f==null?void 0:f.description)},O),l&&s.createElement("div",{className:oe(`${w}-footer`,S.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},C.footer),f==null?void 0:f.footer)},l)))};xa.PRESENTED_IMAGE_DEFAULT=jH;xa.PRESENTED_IMAGE_SIMPLE=FH;const Cg=e=>{const{componentName:t}=e,{getPrefixCls:n}=s.useContext(jt),r=n("empty");switch(t){case"Table":case"List":return ee.createElement(xa,{image:xa.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ee.createElement(xa,{image:xa.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ee.createElement(xa,null)}},Gl=(e,t,n)=>{var r,a;const{variant:o,[e]:i}=s.useContext(jt),l=s.useContext(Jz),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=l??c)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const d=mee.includes(u);return[u,d]},lce=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function GR(e,t){return e||lce(t)}const O8=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},sce=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},wn(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,[` +`].includes(Wt)})},[D]),Ne=s.useContext(t4)||{},We=Ne.maxCount,rt=Ne.rawValues,ct=function(Ht,Tn,Bt){if(!(he&&qP(We)&&(rt==null?void 0:rt.size)>=We)){var zt=!0,Pn=Ht;O==null||O(null);var Jn=Fse(Ht,D,qP(We)?We-rt.size:void 0),Zn=Bt?null:Jn;return p!=="combobox"&&Zn&&(Pn="",j==null||j(Zn),tt(!1),zt=!1),A&&we!==Pn&&A(Pn,{source:Tn?"typing":"effect"}),zt}},At=function(Ht){!Ht||!Ht.trim()||A(Ht,{source:"submit"})};s.useEffect(function(){!mt&&!he&&p!=="combobox"&&ct("",!1,!1)},[mt]),s.useEffect(function(){Ot&&S&&xt(!1),S&&!je.current&&ze(!1)},[S]);var pt=zH(),ft=ce(pt,2),ut=ft[0],Xt=ft[1],Kt=s.useRef(!1),Ut=function(Ht){var Tn=ut(),Bt=Ht.key,zt=Bt==="Enter";if(zt&&(p!=="combobox"&&Ht.preventDefault(),mt||tt(!0)),Xt(!!we),Bt==="Backspace"&&!Tn&&he&&!we&&d.length){for(var Pn=ke(d),Jn=null,Zn=Pn.length-1;Zn>=0;Zn-=1){var xn=Pn[Zn];if(!xn.disabled){Pn.splice(Zn,1),Jn=xn;break}}Jn&&f(Pn,{type:"remove",values:[Jn]})}for(var Cr=arguments.length,Tr=new Array(Cr>1?Cr-1:0),Cn=1;Cn1?Tn-1:0),zt=1;zt1?Jn-1:0),xn=1;xn"u"?"undefined":it(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const XH=(function(e,t,n,r){var a=s.useRef(!1),o=s.useRef(null);function i(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var l=s.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&f?(clearTimeout(o.current),a.current=!1):(!f||a.current)&&i(),!a.current&&f}});function Vse(e,t,n,r,a,o,i){var l=s.useRef(0),c=s.useRef(null),u=s.useRef(null),d=s.useRef(!1),f=XH(t,n,r,a);function m(C,x){if(ln.cancel(c.current),!f(!1,x)){var w=C;if(!w._virtualHandled)w._virtualHandled=!0;else return;l.current+=x,u.current=x,_N||w.preventDefault(),c.current=ln(function(){var $=d.current?10:1;i(l.current*$,!1),l.current=0})}}function g(C,x){i(x,!0),_N||C.preventDefault()}var h=s.useRef(null),b=s.useRef(null);function p(C){if(e){ln.cancel(b.current),b.current=ln(function(){h.current=null},2);var x=C.deltaX,w=C.deltaY,$=C.shiftKey,E=x,R=w;(h.current==="sx"||!h.current&&$&&w&&!x)&&(E=w,R=0,h.current="sx");var I=Math.abs(E),O=Math.abs(R);h.current===null&&(h.current=o&&I>O?"x":"y"),h.current==="y"?m(C,R):g(C,E)}}function S(C){e&&(d.current=C.detail===u.current)}return[p,S]}function Wse(e,t,n,r){var a=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=ce(a,2),i=o[0],l=o[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=i.get(d),g=i.get(f);if(m===void 0||g===void 0)for(var h=e.length,b=l.length;b0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){var S=!1;l.current.forEach(function(C,x){if(C&&C.offsetParent){var w=C.offsetHeight,$=getComputedStyle(C),E=$.marginTop,R=$.marginBottom,I=jN(E),O=jN(R),T=w+I+O;c.current.get(x)!==T&&(c.current.set(x,T),S=!0)}}),S&&i(function(C){return C+1})};if(g)h();else{u.current+=1;var b=u.current;Promise.resolve().then(function(){b===u.current&&h()})}}function m(g,h){var b=e(g);l.current.get(b),h?(l.current.set(b,h),f()):l.current.delete(b)}return s.useEffect(function(){return d},[]),[m,f,c.current,o]}var FN=14/15;function Use(e,t,n){var r=s.useRef(!1),a=s.useRef(0),o=s.useRef(0),i=s.useRef(null),l=s.useRef(null),c,u=function(g){if(r.current){var h=Math.ceil(g.touches[0].pageX),b=Math.ceil(g.touches[0].pageY),p=a.current-h,S=o.current-b,C=Math.abs(p)>Math.abs(S);C?a.current=h:o.current=b;var x=n(C,C?p:S,!1,g);x&&g.preventDefault(),clearInterval(l.current),x&&(l.current=setInterval(function(){C?p*=FN:S*=FN;var w=Math.floor(C?p:S);(!n(C,w,!0)||Math.abs(w)<=.1)&&clearInterval(l.current)},16))}},d=function(){r.current=!1,c()},f=function(g){c(),g.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(g.touches[0].pageX),o.current=Math.ceil(g.touches[0].pageY),i.current=g.target,i.current.addEventListener("touchmove",u,{passive:!1}),i.current.addEventListener("touchend",d,{passive:!0}))};c=function(){i.current&&(i.current.removeEventListener("touchmove",u),i.current.removeEventListener("touchend",d))},fn(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(l.current)}},[e])}function DN(e){return Math.floor(Math.pow(e,.5))}function YP(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Gse(e,t,n){s.useEffect(function(){var r=t.current;if(e&&r){var a=!1,o,i,l=function(){ln.cancel(o)},c=function m(){l(),o=ln(function(){n(i),m()})},u=function(){a=!1,l()},d=function(g){if(!(g.target.draggable||g.button!==0)){var h=g;h._virtualHandled||(h._virtualHandled=!0,a=!0)}},f=function(g){if(a){var h=YP(g,!1),b=r.getBoundingClientRect(),p=b.top,S=b.bottom;if(h<=p){var C=p-h;i=-DN(C),c()}else if(h>=S){var x=h-S;i=DN(x),c()}else l()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",u),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",u),l()}}},[e])}var Yse=10;function Xse(e,t,n,r,a,o,i,l){var c=s.useRef(),u=s.useState(null),d=ce(u,2),f=d[0],m=d[1];return fn(function(){if(f&&f.times=0;j-=1){var D=a(t[j]),F=n.get(D);if(F===void 0){C=!0;break}if(A-=F,A<=0)break}switch($){case"top":w=R-p;break;case"bottom":w=I-S+p;break;default:{var L=e.current.scrollTop,B=L+S;RB&&(x="bottom")}}w!==null&&i(w),w!==f.lastTop&&(C=!0)}C&&m(P(P({},f),{},{times:f.times+1,targetAlign:x,lastTop:w}))}},[f,e.current]),function(g){if(g==null){l();return}if(ln.cancel(c.current),typeof g=="number")i(g);else if(g&&it(g)==="object"){var h,b=g.align;"index"in g?h=g.index:h=t.findIndex(function(C){return a(C)===g.key});var p=g.offset,S=p===void 0?0:p;m({times:0,index:h,offset:S,originAlign:b})}}}var kN=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,i=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,g=e.thumbStyle,h=e.showScrollBar,b=s.useState(!1),p=ce(b,2),S=p[0],C=p[1],x=s.useState(null),w=ce(x,2),$=w[0],E=w[1],R=s.useState(null),I=ce(R,2),O=I[0],T=I[1],_=!r,k=s.useRef(),A=s.useRef(),j=s.useState(h),D=ce(j,2),F=D[0],L=D[1],B=s.useRef(),K=function(){h===!0||h===!1||(clearTimeout(B.current),L(!0),B.current=setTimeout(function(){L(!1)},3e3))},W=o-f||0,V=f-d||0,q=s.useMemo(function(){if(a===0||W===0)return 0;var le=a/W;return le*V},[a,W,V]),U=function(re){re.stopPropagation(),re.preventDefault()},G=s.useRef({top:q,dragging:S,pageY:$,startTop:O});G.current={top:q,dragging:S,pageY:$,startTop:O};var Y=function(re){C(!0),E(YP(re,u)),T(G.current.top),i(),re.stopPropagation(),re.preventDefault()};s.useEffect(function(){var le=function(de){de.preventDefault()},re=k.current,fe=A.current;return re.addEventListener("touchstart",le,{passive:!1}),fe.addEventListener("touchstart",Y,{passive:!1}),function(){re.removeEventListener("touchstart",le),fe.removeEventListener("touchstart",Y)}},[]);var J=s.useRef();J.current=W;var Q=s.useRef();Q.current=V,s.useEffect(function(){if(S){var le,re=function(de){var ie=G.current,se=ie.dragging,ve=ie.pageY,he=ie.startTop;ln.cancel(le);var Ce=k.current.getBoundingClientRect(),pe=f/(u?Ce.width:Ce.height);if(se){var Se=(YP(de,u)-ve)*pe,ge=he;!_&&u?ge-=Se:ge+=Se;var ye=J.current,xe=Q.current,$e=xe?ge/xe:0,He=Math.ceil($e*ye);He=Math.max(He,0),He=Math.min(He,ye),le=ln(function(){c(He,u)})}},fe=function(){C(!1),l()};return window.addEventListener("mousemove",re,{passive:!0}),window.addEventListener("touchmove",re,{passive:!0}),window.addEventListener("mouseup",fe,{passive:!0}),window.addEventListener("touchend",fe,{passive:!0}),function(){window.removeEventListener("mousemove",re),window.removeEventListener("touchmove",re),window.removeEventListener("mouseup",fe),window.removeEventListener("touchend",fe),ln.cancel(le)}}},[S]),s.useEffect(function(){return K(),function(){clearTimeout(B.current)}},[a]),s.useImperativeHandle(t,function(){return{delayHidden:K}});var Z="".concat(n,"-scrollbar"),ne={position:"absolute",visibility:F?null:"hidden"},ae={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(ne,{height:8,left:0,right:0,bottom:0}),Object.assign(ae,z({height:"100%",width:d},_?"left":"right",q))):(Object.assign(ne,z({width:8,top:0,bottom:0},_?"right":"left",0)),Object.assign(ae,{width:"100%",height:d,top:q})),s.createElement("div",{ref:k,className:oe(Z,z(z(z({},"".concat(Z,"-horizontal"),u),"".concat(Z,"-vertical"),!u),"".concat(Z,"-visible"),F)),style:P(P({},ne),m),onMouseDown:U,onMouseMove:K},s.createElement("div",{ref:A,className:oe("".concat(Z,"-thumb"),z({},"".concat(Z,"-thumb-moving"),S)),style:P(P({},ae),g),onMouseDown:Y}))}),Qse=20;function AN(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Qse),Math.floor(n)}var Jse=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Zse=[],ece={overflowY:"auto",overflowAnchor:"none"};function tce(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,m=e.itemKey,g=e.virtual,h=e.direction,b=e.scrollWidth,p=e.component,S=p===void 0?"div":p,C=e.onScroll,x=e.onVirtualScroll,w=e.onVisibleChange,$=e.innerProps,E=e.extraRender,R=e.styles,I=e.showScrollBar,O=I===void 0?"optional":I,T=Ue(e,Jse),_=s.useCallback(function(nt){return typeof m=="function"?m(nt):nt==null?void 0:nt[m]},[m]),k=qse(_),A=ce(k,4),j=A[0],D=A[1],F=A[2],L=A[3],B=!!(g!==!1&&o&&i),K=s.useMemo(function(){return Object.values(F.maps).reduce(function(nt,St){return nt+St},0)},[F.id,F.maps]),W=B&&d&&(Math.max(i*d.length,K)>o||!!b),V=h==="rtl",q=oe(r,z({},"".concat(r,"-rtl"),V),a),U=d||Zse,G=s.useRef(),Y=s.useRef(),J=s.useRef(),Q=s.useState(0),Z=ce(Q,2),ne=Z[0],ae=Z[1],le=s.useState(0),re=ce(le,2),fe=re[0],ue=re[1],de=s.useState(!1),ie=ce(de,2),se=ie[0],ve=ie[1],he=function(){ve(!0)},Ce=function(){ve(!1)},pe={getKey:_};function Se(nt){ae(function(St){var gt;typeof nt=="function"?gt=nt(St):gt=nt;var qe=st(gt);return G.current.scrollTop=qe,qe})}var ge=s.useRef({start:0,end:U.length}),ye=s.useRef(),xe=Hse(U,_),$e=ce(xe,1),He=$e[0];ye.current=He;var Te=s.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:U.length-1,offset:void 0};if(!W){var nt;return{scrollHeight:((nt=Y.current)===null||nt===void 0?void 0:nt.offsetHeight)||0,start:0,end:U.length-1,offset:void 0}}for(var St=0,gt,qe,at,dt=U.length,Tt=0;Tt=ne&>===void 0&&(gt=Tt,qe=St),Vt>ne+o&&at===void 0&&(at=Tt),St=Vt}return gt===void 0&&(gt=0,qe=0,at=Math.ceil(o/i)),at===void 0&&(at=U.length-1),at=Math.min(at+1,U.length-1),{scrollHeight:St,start:gt,end:at,offset:qe}},[W,B,ne,U,L,o]),Re=Te.scrollHeight,Fe=Te.start,je=Te.end,Ee=Te.offset;ge.current.start=Fe,ge.current.end=je,s.useLayoutEffect(function(){var nt=F.getRecord();if(nt.size===1){var St=Array.from(nt.keys())[0],gt=nt.get(St),qe=U[Fe];if(qe&>===void 0){var at=_(qe);if(at===St){var dt=F.get(St),Tt=dt-i;Se(function(Qt){return Qt+Tt})}}}F.resetRecord()},[Re]);var Le=s.useState({width:0,height:o}),Pe=ce(Le,2),ze=Pe[0],Oe=Pe[1],we=function(St){Oe({width:St.offsetWidth,height:St.offsetHeight})},_e=s.useRef(),Be=s.useRef(),Qe=s.useMemo(function(){return AN(ze.width,b)},[ze.width,b]),lt=s.useMemo(function(){return AN(ze.height,Re)},[ze.height,Re]),Ke=Re-o,et=s.useRef(Ke);et.current=Ke;function st(nt){var St=nt;return Number.isNaN(et.current)||(St=Math.min(St,et.current)),St=Math.max(St,0),St}var Ze=ne<=0,vt=ne>=Ke,Ot=fe<=0,xt=fe>=b,mt=XH(Ze,vt,Ot,xt),yt=function(){return{x:V?-fe:fe,y:ne}},bt=s.useRef(yt()),tt=Zt(function(nt){if(x){var St=P(P({},yt()),nt);(bt.current.x!==St.x||bt.current.y!==St.y)&&(x(St),bt.current=St)}});function Ye(nt,St){var gt=nt;St?(Ua.flushSync(function(){ue(gt)}),tt()):Se(gt)}function Ne(nt){var St=nt.currentTarget.scrollTop;St!==ne&&Se(St),C==null||C(nt),tt()}var We=function(St){var gt=St,qe=b?b-ze.width:0;return gt=Math.max(gt,0),gt=Math.min(gt,qe),gt},rt=Zt(function(nt,St){St?(Ua.flushSync(function(){ue(function(gt){var qe=gt+(V?-nt:nt);return We(qe)})}),tt()):Se(function(gt){var qe=gt+nt;return qe})}),ct=Vse(B,Ze,vt,Ot,xt,!!b,rt),At=ce(ct,2),pt=At[0],ft=At[1];Use(B,G,function(nt,St,gt,qe){var at=qe;return mt(nt,St,gt)?!1:!at||!at._virtualHandled?(at&&(at._virtualHandled=!0),pt({preventDefault:function(){},deltaX:nt?St:0,deltaY:nt?0:St}),!0):!1}),Gse(W,G,function(nt){Se(function(St){return St+nt})}),fn(function(){function nt(gt){var qe=Ze&>.detail<0,at=vt&>.detail>0;B&&!qe&&!at&>.preventDefault()}var St=G.current;return St.addEventListener("wheel",pt,{passive:!1}),St.addEventListener("DOMMouseScroll",ft,{passive:!0}),St.addEventListener("MozMousePixelScroll",nt,{passive:!1}),function(){St.removeEventListener("wheel",pt),St.removeEventListener("DOMMouseScroll",ft),St.removeEventListener("MozMousePixelScroll",nt)}},[B,Ze,vt]),fn(function(){if(b){var nt=We(fe);ue(nt),tt({x:nt})}},[ze.width,b]);var ut=function(){var St,gt;(St=_e.current)===null||St===void 0||St.delayHidden(),(gt=Be.current)===null||gt===void 0||gt.delayHidden()},Xt=Xse(G,U,F,i,_,function(){return D(!0)},Se,ut);s.useImperativeHandle(t,function(){return{nativeElement:J.current,getScrollInfo:yt,scrollTo:function(St){function gt(qe){return qe&&it(qe)==="object"&&("left"in qe||"top"in qe)}gt(St)?(St.left!==void 0&&ue(We(St.left)),Xt(St.top)):Xt(St)}}}),fn(function(){if(w){var nt=U.slice(Fe,je+1);w(nt,U)}},[Fe,je,U]);var Kt=Wse(U,_,F,i),Ut=E==null?void 0:E({start:Fe,end:je,virtual:W,offsetX:fe,offsetY:Ee,rtl:V,getSize:Kt}),kt=Bse(U,Fe,je,b,fe,j,f,pe),Pt=null;o&&(Pt=P(z({},c?"height":"maxHeight",o),ece),B&&(Pt.overflowY="hidden",b&&(Pt.overflowX="hidden"),se&&(Pt.pointerEvents="none")));var Lt={};return V&&(Lt.dir="rtl"),s.createElement("div",Me({ref:J,style:P(P({},u),{},{position:"relative"}),className:q},Lt,T),s.createElement(Mr,{onResize:we},s.createElement(S,{className:"".concat(r,"-holder"),style:Pt,ref:G,onScroll:Ne,onMouseEnter:ut},s.createElement(YH,{prefixCls:r,height:Re,offsetX:fe,offsetY:Ee,scrollWidth:b,onInnerResize:D,ref:Y,innerProps:$,rtl:V,extra:Ut},kt))),W&&Re>o&&s.createElement(kN,{ref:_e,prefixCls:r,scrollOffset:ne,scrollRange:Re,rtl:V,onScroll:Ye,onStartMove:he,onStopMove:Ce,spinSize:lt,containerSize:ze.height,style:R==null?void 0:R.verticalScrollBar,thumbStyle:R==null?void 0:R.verticalScrollBarThumb,showScrollBar:O}),W&&b>ze.width&&s.createElement(kN,{ref:Be,prefixCls:r,scrollOffset:fe,scrollRange:b,rtl:V,onScroll:Ye,onStartMove:he,onStopMove:Ce,spinSize:Qe,containerSize:ze.width,horizontal:!0,style:R==null?void 0:R.horizontalScrollBar,thumbStyle:R==null?void 0:R.horizontalScrollBarThumb,showScrollBar:O}))}var i1=s.forwardRef(tce);i1.displayName="List";function nce(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var rce=["disabled","title","children","style","className"];function LN(e){return typeof e=="string"||typeof e=="number"}var ace=function(t,n){var r=e4(),a=r.prefixCls,o=r.id,i=r.open,l=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,g=s.useContext(t4),h=g.maxCount,b=g.flattenOptions,p=g.onActiveValue,S=g.defaultActiveFirstOption,C=g.onSelect,x=g.menuItemSelectedIcon,w=g.rawValues,$=g.fieldNames,E=g.virtual,R=g.direction,I=g.listHeight,O=g.listItemHeight,T=g.optionRender,_="".concat(a,"-item"),k=Hl(function(){return b},[i,b],function(le,re){return re[0]&&le[1]!==re[1]}),A=s.useRef(null),j=s.useMemo(function(){return l&&qP(h)&&(w==null?void 0:w.size)>=h},[l,h,w==null?void 0:w.size]),D=function(re){re.preventDefault()},F=function(re){var fe;(fe=A.current)===null||fe===void 0||fe.scrollTo(typeof re=="number"?{index:re}:re)},L=s.useCallback(function(le){return c==="combobox"?!1:w.has(le)},[c,ke(w).toString(),w.size]),B=function(re){for(var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=k.length,de=0;de1&&arguments[1]!==void 0?arguments[1]:!1;q(re);var ue={source:fe?"keyboard":"mouse"},de=k[re];if(!de){p(null,-1,ue);return}p(de.value,re,ue)};s.useEffect(function(){U(S!==!1?B(0):-1)},[k.length,u]);var G=s.useCallback(function(le){return c==="combobox"?String(le).toLowerCase()===u.toLowerCase():w.has(le)},[c,u,ke(w).toString(),w.size]);s.useEffect(function(){var le=setTimeout(function(){if(!l&&i&&w.size===1){var fe=Array.from(w)[0],ue=k.findIndex(function(de){var ie=de.data;return u?String(ie.value).startsWith(u):ie.value===fe});ue!==-1&&(U(ue),F(ue))}});if(i){var re;(re=A.current)===null||re===void 0||re.scrollTo(void 0)}return function(){return clearTimeout(le)}},[i,u]);var Y=function(re){re!==void 0&&C(re,{selected:!w.has(re)}),l||d(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(re){var fe=re.which,ue=re.ctrlKey;switch(fe){case ot.N:case ot.P:case ot.UP:case ot.DOWN:{var de=0;if(fe===ot.UP?de=-1:fe===ot.DOWN?de=1:nce()&&ue&&(fe===ot.N?de=1:fe===ot.P&&(de=-1)),de!==0){var ie=B(V+de,de);F(ie),U(ie,!0)}break}case ot.TAB:case ot.ENTER:{var se,ve=k[V];ve&&!(ve!=null&&(se=ve.data)!==null&&se!==void 0&&se.disabled)&&!j?Y(ve.value):Y(void 0),i&&re.preventDefault();break}case ot.ESC:d(!1),i&&re.stopPropagation()}},onKeyUp:function(){},scrollTo:function(re){F(re)}}}),k.length===0)return s.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(_,"-empty"),onMouseDown:D},f);var J=Object.keys($).map(function(le){return $[le]}),Q=function(re){return re.label};function Z(le,re){var fe=le.group;return{role:fe?"presentation":"option",id:"".concat(o,"_list_").concat(re)}}var ne=function(re){var fe=k[re];if(!fe)return null;var ue=fe.data||{},de=ue.value,ie=fe.group,se=ar(ue,!0),ve=Q(fe);return fe?s.createElement("div",Me({"aria-label":typeof ve=="string"&&!ie?ve:null},se,{key:re},Z(fe,re),{"aria-selected":G(de)}),de):null},ae={role:"listbox",id:"".concat(o,"_list")};return s.createElement(s.Fragment,null,E&&s.createElement("div",Me({},ae,{style:{height:0,width:0,overflow:"hidden"}}),ne(V-1),ne(V),ne(V+1)),s.createElement(i1,{itemKey:"key",ref:A,data:k,height:I,itemHeight:O,fullHeight:!1,onMouseDown:D,onScroll:m,virtual:E,direction:R,innerProps:E?null:ae},function(le,re){var fe=le.group,ue=le.groupOption,de=le.data,ie=le.label,se=le.value,ve=de.key;if(fe){var he,Ce=(he=de.title)!==null&&he!==void 0?he:LN(ie)?ie.toString():void 0;return s.createElement("div",{className:oe(_,"".concat(_,"-group"),de.className),title:Ce},ie!==void 0?ie:ve)}var pe=de.disabled,Se=de.title;de.children;var ge=de.style,ye=de.className,xe=Ue(de,rce),$e=nn(xe,J),He=L(se),Te=pe||!He&&j,Re="".concat(_,"-option"),Fe=oe(_,Re,ye,z(z(z(z({},"".concat(Re,"-grouped"),ue),"".concat(Re,"-active"),V===re&&!Te),"".concat(Re,"-disabled"),Te),"".concat(Re,"-selected"),He)),je=Q(le),Ee=!x||typeof x=="function"||He,Le=typeof je=="number"?je:je||se,Pe=LN(Le)?Le.toString():void 0;return Se!==void 0&&(Pe=Se),s.createElement("div",Me({},ar($e),E?{}:Z(le,re),{"aria-selected":G(se),className:Fe,title:Pe,onMouseMove:function(){V===re||Te||U(re)},onClick:function(){Te||Y(se)},style:ge}),s.createElement("div",{className:"".concat(Re,"-content")},typeof T=="function"?T(le,{index:re}):Le),s.isValidElement(x)||He,Ee&&s.createElement(o1,{className:"".concat(_,"-option-state"),customizeIcon:x,customizeIconProps:{value:se,disabled:Te,isSelected:He}},He?"✓":null))}))},oce=s.forwardRef(ace);const ice=(function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var o=n.current,i=o.values,l=o.options,c=e.map(function(f){if(f.label===void 0){var m;return P(P({},f),{},{label:(m=i.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||l.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),a=s.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]});function $x(e,t){return qH(e).join("").toUpperCase().includes(t)}const lce=(function(e,t,n,r,a){return s.useMemo(function(){if(!n||r===!1)return e;var o=t.options,i=t.label,l=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(g,h){return a?$x(h[a],d):h[o]?$x(h[i!=="children"?i:"label"],d):$x(h[l],d)},m=u?function(g){return UP(g)}:function(g){return g};return e.forEach(function(g){if(g[o]){var h=f(n,m(g));if(h)c.push(g);else{var b=g[o].filter(function(p){return f(n,m(p))});b.length&&c.push(P(P({},g),{},z({},o,b)))}return}f(n,m(g))&&c.push(g)}),c},[e,r,a,n,t])});var BN=0,sce=ma();function cce(){var e;return sce?(e=BN,BN+=1):e="TEST_OR_SSR",e}function o4(e){var t=s.useState(),n=ce(t,2),r=n[0],a=n[1];return s.useEffect(function(){a("rc_select_".concat(cce()))},[]),e||r}var uce=["children","value"],dce=["children"];function fce(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,i=Ue(r,uce);return P({key:n,value:o!==void 0?o:n,children:a},i)}function QH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return rr(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,l=a.props,c=l.children,u=Ue(l,dce);return t||!o?fce(n):P(P({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},u),{},{options:QH(c)})}).filter(function(n){return n})}var vce=function(t,n,r,a,o){return s.useMemo(function(){var i=t,l=!t;l&&(i=QH(n));var c=new Map,u=new Map,d=function(g,h,b){b&&typeof b=="string"&&g.set(h[b],h)},f=function m(g){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b0?tt(We.options):We.options}):We})},Le=s.useMemo(function(){return C?Ee(je):je},[je,C,ae]),Pe=s.useMemo(function(){return jse(Le,{fieldNames:Q,childrenAsData:Y})},[Le,Q,Y]),ze=function(Ye){var Ne=ie(Ye);if(Ce(Ne),W&&(Ne.length!==ye.length||Ne.some(function(ct,At){var pt;return((pt=ye[At])===null||pt===void 0?void 0:pt.value)!==(ct==null?void 0:ct.value)}))){var We=K?Ne:Ne.map(function(ct){return ct.value}),rt=Ne.map(function(ct){return UP(xe(ct.value))});W(G?We:We[0],G?rt:rt[0])}},Oe=s.useState(null),we=ce(Oe,2),_e=we[0],Be=we[1],Qe=s.useState(0),lt=ce(Qe,2),Ke=lt[0],et=lt[1],st=I!==void 0?I:r!=="combobox",Ze=s.useCallback(function(tt,Ye){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},We=Ne.source,rt=We===void 0?"keyboard":We;et(Ye),i&&r==="combobox"&&tt!==null&&rt==="keyboard"&&Be(String(tt))},[i,r]),vt=function(Ye,Ne,We){var rt=function(){var Pt,Lt=xe(Ye);return[K?{label:Lt==null?void 0:Lt[Q.label],value:Ye,key:(Pt=Lt==null?void 0:Lt.key)!==null&&Pt!==void 0?Pt:Ye}:Ye,UP(Lt)]};if(Ne&&g){var ct=rt(),At=ce(ct,2),pt=At[0],ft=At[1];g(pt,ft)}else if(!Ne&&h&&We!=="clear"){var ut=rt(),Xt=ce(ut,2),Kt=Xt[0],Ut=Xt[1];h(Kt,Ut)}},Ot=zN(function(tt,Ye){var Ne,We=G?Ye.selected:!0;We?Ne=G?[].concat(ke(ye),[tt]):[tt]:Ne=ye.filter(function(rt){return rt.value!==tt}),ze(Ne),vt(tt,We),r==="combobox"?Be(""):(!GP||m)&&(le(""),Be(""))}),xt=function(Ye,Ne){ze(Ye);var We=Ne.type,rt=Ne.values;(We==="remove"||We==="clear")&&rt.forEach(function(ct){vt(ct.value,!1,We)})},mt=function(Ye,Ne){if(le(Ye),Be(null),Ne.source==="submit"){var We=(Ye||"").trim();if(We){var rt=Array.from(new Set([].concat(ke(He),[We])));ze(rt),vt(We,!0),le("")}return}Ne.source!=="blur"&&(r==="combobox"&&ze(Ye),d==null||d(Ye))},yt=function(Ye){var Ne=Ye;r!=="tags"&&(Ne=Ye.map(function(rt){var ct=ue.get(rt);return ct==null?void 0:ct.value}).filter(function(rt){return rt!==void 0}));var We=Array.from(new Set([].concat(ke(He),ke(Ne))));ze(We),We.forEach(function(rt){vt(rt,!0)})},bt=s.useMemo(function(){var tt=T!==!1&&p!==!1;return P(P({},re),{},{flattenOptions:Pe,onActiveValue:Ze,defaultActiveFirstOption:st,onSelect:Ot,menuItemSelectedIcon:O,rawValues:He,fieldNames:Q,virtual:tt,direction:_,listHeight:A,listItemHeight:D,childrenAsData:Y,maxCount:V,optionRender:E})},[V,re,Pe,Ze,st,Ot,O,He,Q,T,p,_,A,D,Y,E]);return s.createElement(t4.Provider,{value:bt},s.createElement(n4,Me({},q,{id:U,prefixCls:o,ref:t,omitDomProps:gce,mode:r,displayValues:$e,onDisplayValuesChange:xt,direction:_,searchValue:ae,onSearch:mt,autoClearSearchValue:m,onSearchSplit:yt,dropdownMatchSelectWidth:p,OptionList:oce,emptyOptions:!Pe.length,activeValue:_e,activeDescendantId:"".concat(U,"_list_").concat(Ke)})))}),i4=hce;i4.Option=a4;i4.OptGroup=r4;function Ai(e,t,n){return oe({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ul=(e,t)=>t||e,bce=()=>{const[,e]=Ur(),[t]=Ea("Empty"),r=new pn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(t==null?void 0:t.description)||"Empty"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.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"}),s.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)"}),s.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"}),s.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"})),s.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"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},yce=()=>{const[,e]=Ur(),[t]=Ea("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:o}=e,{borderColor:i,shadowColor:l,contentColor:c}=s.useMemo(()=>({borderColor:new pn(n).onBackground(o).toHexString(),shadowColor:new pn(r).onBackground(o).toHexString(),contentColor:new pn(a).onBackground(o).toHexString()}),[n,r,a,o]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(t==null?void 0:t.description)||"Empty"),s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:i},s.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"}),s.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:c}))))},Cce=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Sce=dn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=en(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return Cce(a)});var xce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{className:n,rootClassName:r,prefixCls:a,image:o,description:i,children:l,imageStyle:c,style:u,classNames:d,styles:f}=e,m=xce(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:g,direction:h,className:b,style:p,classNames:S,styles:C,image:x}=sr("empty"),w=g("empty",a),[$,E,R]=Sce(w),[I]=Ea("Empty"),O=typeof i<"u"?i:I==null?void 0:I.description,T=typeof O=="string"?O:"empty",_=(t=o??x)!==null&&t!==void 0?t:JH;let k=null;return typeof _=="string"?k=s.createElement("img",{draggable:!1,alt:T,src:_}):k=_,$(s.createElement("div",Object.assign({className:oe(E,R,w,b,{[`${w}-normal`]:_===ZH,[`${w}-rtl`]:h==="rtl"},n,r,S.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),p),f==null?void 0:f.root),u)},m),s.createElement("div",{className:oe(`${w}-image`,S.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},c),C.image),f==null?void 0:f.image)},k),O&&s.createElement("div",{className:oe(`${w}-description`,S.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},C.description),f==null?void 0:f.description)},O),l&&s.createElement("div",{className:oe(`${w}-footer`,S.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},C.footer),f==null?void 0:f.footer)},l)))};$r.PRESENTED_IMAGE_DEFAULT=JH;$r.PRESENTED_IMAGE_SIMPLE=ZH;const Cg=e=>{const{componentName:t}=e,{getPrefixCls:n}=s.useContext(jt),r=n("empty");switch(t){case"Table":case"List":return ee.createElement($r,{image:$r.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ee.createElement($r,{image:$r.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ee.createElement($r,null)}},Gl=(e,t,n)=>{var r,a;const{variant:o,[e]:i}=s.useContext(jt),l=s.useContext(pH),c=i==null?void 0:i.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(a=(r=l??c)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const d=Nee.includes(u);return[u,d]},wce=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function l4(e,t){return e||wce(t)}const HN=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},$ce=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,i=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},$n(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}${l}bottomLeft, ${o}${l}bottomLeft - `]:{animationName:By},[` + `]:{animationName:qy},[` ${a}${l}topLeft, ${o}${l}topLeft, ${a}${l}topRight, ${o}${l}topRight - `]:{animationName:Hy},[`${i}${l}bottomLeft`]:{animationName:zy},[` + `]:{animationName:Gy},[`${i}${l}bottomLeft`]:{animationName:Uy},[` ${i}${l}topLeft, ${i}${l}topRight - `]:{animationName:Vy},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},O8(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"},ni),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},O8(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},al(e,"slide-up"),al(e,"slide-down"),Qd(e,"move-up"),Qd(e,"move-down")]},DH=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:me(t),itemLineHeight:me(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},cce=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},kH=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=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:d,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},su()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},uce=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=cce(e),l=t?`${n}-${t}`:"",c=DH(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},kH(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${me(r)} 0`,lineHeight:me(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:me(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:me(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${a}-item + ${a}-item, + `]:{animationName:Yy},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},HN(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"},ri),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},HN(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},ll(e,"slide-up"),ll(e,"slide-down"),Zd(e,"move-up"),Zd(e,"move-down")]},eV=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),i=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:i,itemHeight:me(t),itemLineHeight:me(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Ece=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},tV=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=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:d,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},cu()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},Pce=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,i=Ece(e),l=t?`${n}-${t}`:"",c=eV(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},tV(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${me(r)} 0`,lineHeight:me(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:me(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:me(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${a}-item + ${a}-item, ${n}-prefix + ${n}-selection-wrap - `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:me(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function px(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:me(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Ex(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[uce(e,t),a]}const dce=e=>{const{componentCls:t}=e,n=tn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=tn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[px(e),px(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},px(r,"lg")]};function hx(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},wn(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:me(o)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[Pce(e,t),a]}const Oce=e=>{const{componentCls:t}=e,n=en(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=en(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ex(e),Ex(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ex(r,"lg")]};function Px(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?`${n}-${t}`:"";return{[`${n}-single${i}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},$n(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:me(o)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{display:"block",padding:0,lineHeight:me(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-search, &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${me(r)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:me(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${me(r)}`,"&:after":{display:"none"}}}}}}}function fce(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[hx(e),hx(tn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${me(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${me(r)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:me(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${me(r)}`,"&:after":{display:"none"}}}}}}}function Ice(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Px(e),Px(en(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${me(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).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()}}}},hx(tn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const vce=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:g,colorBgContainer:h,colorFillSecondary:b,colorBgContainerDisabled:p,colorTextDisabled:S,colorPrimaryHover:C,colorPrimary:x,controlOutline:w}=e,$=l*2,E=r*2,R=Math.min(a-$,a-E),I=Math.min(o-$,o-E),O=Math.min(i-$,i-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:g,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:R,multipleItemHeightSM:I,multipleItemHeightLG:O,multipleSelectorBgDisabled:p,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:C,activeBorderColor:x,activeOutlineColor:w,selectAffixPadding:l}},AH=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${me(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${me(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},I8=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},AH(e,t))}),mce=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},AH(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),I8(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),I8(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:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),LH=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${me(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},R8=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},LH(e,t))}),gce=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},LH(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),R8(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),R8(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:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),pce=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${me(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:`${me(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}}}}),BH=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${me(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},M8=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},BH(e,t))}),hce=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},BH(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),M8(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),M8(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:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),bce=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},mce(e)),gce(e)),pce(e)),hce(e))}),yce=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"}}}},Cce=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"}}}},Sce=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,o={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},wn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},yce(e)),Cce(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ni),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ni),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},su()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":o,"&:hover":o}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},xce=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Sce(e),fce(e),dce(e),sce(e),{[`${t}-rtl`]:{direction:"rtl"}},nc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},YR=un("Select",(e,{rootPrefixCls:t})=>{const n=tn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[xce(n),bce(n)]},vce,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var wce={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"},$ce=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:wce}))},t1=s.forwardRef($ce),Ece={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"},Pce=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Ece}))},Ys=s.forwardRef(Pce),Oce={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"},Ice=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Oce}))},n1=s.forwardRef(Ice);function r1({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:o,hasFeedback:i,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}){const m=t??s.createElement(ul,null),g=S=>e===null&&!i&&!d?null:s.createElement(s.Fragment,null,c!==!1&&S,i&&u);let h=null;if(e!==void 0)h=g(e);else if(a)h=g(s.createElement(Ya,{spin:!0}));else{const S=`${l}-suffix`;h=({open:C,showSearch:x})=>g(C&&x?s.createElement(n1,{className:S}):s.createElement(Ys,{className:S}))}let b=null;n!==void 0?b=n:o?b=s.createElement(t1,null):b=null;let p=null;return r!==void 0?p=r:p=s.createElement(Li,null),{clearIcon:m,suffixIcon:h,itemIcon:b,removeIcon:p}}function XR(e){return ee.useMemo(()=>{if(e)return(...t)=>ee.createElement(oi,{space:!0},e.apply(void 0,t))},[e])}function QR(e,t){return t!==void 0?t:e!==null}var Rce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:l,bordered:c,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:g,listHeight:h=256,placement:b,listItemHeight:p,size:S,disabled:C,notFoundContent:x,status:w,builtinPlacements:$,dropdownMatchSelectWidth:E,popupMatchSelectWidth:R,direction:I,style:O,allowClear:T,variant:N,dropdownStyle:A,transitionName:k,tagRender:j,maxCount:D,prefix:F,dropdownRender:L,popupRender:B,onDropdownVisibleChange:K,onOpenChange:W,styles:V,classNames:q}=e,U=Rce(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:G,getPrefixCls:Y,renderEmpty:J,direction:Q,virtual:Z,popupMatchSelectWidth:ne,popupOverflow:ae}=s.useContext(jt),{showSearch:le,style:re,styles:fe,className:ue,classNames:de}=lr("select"),[,ie]=qr(),se=p??(ie==null?void 0:ie.controlHeight),ve=Y("select",l),he=Y(),Ce=I??Q,{compactSize:pe,compactItemClassnames:Se}=ko(ve,Ce),[ge,ye]=Gl("select",N,c),xe=Gn(ve),[$e,He,Te]=YR(ve,xe),Re=s.useMemo(()=>{const{mode:We}=e;if(We!=="combobox")return We===zH?"combobox":We},[e.mode]),Fe=Re==="multiple"||Re==="tags",je=QR(e.suffixIcon,e.showArrow),Ee=(n=R??E)!==null&&n!==void 0?n:ne,Le=((r=V==null?void 0:V.popup)===null||r===void 0?void 0:r.root)||((a=fe.popup)===null||a===void 0?void 0:a.root)||A,Pe=XR(B||L),ze=W||K,{status:Oe,hasFeedback:we,isFormItemInput:_e,feedbackIcon:Be}=s.useContext(zr),Qe=Ul(Oe,w);let lt;x!==void 0?lt=x:Re==="combobox"?lt=null:lt=(J==null?void 0:J("Select"))||s.createElement(Cg,{componentName:"Select"});const{suffixIcon:Ke,itemIcon:et,removeIcon:st,clearIcon:Ze}=r1(Object.assign(Object.assign({},U),{multiple:Fe,hasFeedback:we,feedbackIcon:Be,showSuffixIcon:je,prefixCls:ve,componentName:"Select"})),vt=T===!0?{clearIcon:Ze}:T,Ot=nn(U,["suffixIcon","itemIcon"]),xt=oe(((o=q==null?void 0:q.popup)===null||o===void 0?void 0:o.root)||((i=de==null?void 0:de.popup)===null||i===void 0?void 0:i.root)||m||g,{[`${ve}-dropdown-${Ce}`]:Ce==="rtl"},d,de.root,q==null?void 0:q.root,Te,xe,He),mt=$r(We=>{var rt;return(rt=S??pe)!==null&&rt!==void 0?rt:We}),yt=s.useContext(Lr),bt=C??yt,tt=oe({[`${ve}-lg`]:mt==="large",[`${ve}-sm`]:mt==="small",[`${ve}-rtl`]:Ce==="rtl",[`${ve}-${ge}`]:ye,[`${ve}-in-form-item`]:_e},Di(ve,Qe,we),Se,ue,u,de.root,q==null?void 0:q.root,d,Te,xe,He),Ye=s.useMemo(()=>b!==void 0?b:Ce==="rtl"?"bottomRight":"bottomLeft",[b,Ce]),[Ne]=ui("SelectLike",Le==null?void 0:Le.zIndex);return $e(s.createElement(UR,Object.assign({ref:t,virtual:Z,showSearch:le},Ot,{style:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),V==null?void 0:V.root),re),O),dropdownMatchSelectWidth:Ee,transitionName:ga(he,"slide-up",k),builtinPlacements:GR($,ae),listHeight:h,listItemHeight:se,mode:Re,prefixCls:ve,placement:Ye,direction:Ce,prefix:F,suffixIcon:Ke,menuItemSelectedIcon:et,removeIcon:st,allowClear:vt,notFoundContent:lt,className:tt,getPopupContainer:f||G,dropdownClassName:xt,disabled:bt,dropdownStyle:Object.assign(Object.assign({},Le),{zIndex:Ne}),maxCount:Fe?D:void 0,tagRender:Fe?j:void 0,dropdownRender:Pe,onDropdownVisibleChange:ze})))},dl=s.forwardRef(Mce),Tce=rc(dl,"dropdownAlign");dl.SECRET_COMBOBOX_MODE_DO_NOT_USE=zH;dl.Option=KR;dl.OptGroup=WR;dl._InternalPanelDoNotUseOrYouWillBeFired=Tce;const HH=(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)},VH=(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)},Jc=["xxl","xl","lg","md","sm","xs"],Nce=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)`}),_ce=e=>{const t=e,n=[].concat(Jc).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),i=`screen${o}Min`,l=`screen${o}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(a{if(t){for(const n of Jc)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},jce=()=>{const[,e]=qr(),t=Nce(_ce(e));return ee.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},register(){Object.entries(t).forEach(([o,i])=>{const l=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},a),{[o]:u}))},c=window.matchMedia(i);HH(c,l),this.matchHandlers[i]={mql:c,listener:l},l(c)})},unregister(){Object.values(t).forEach(o=>{const i=this.matchHandlers[o];VH(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[t])};function uu(e=!0,t={}){const n=s.useRef(t),[,r]=wR(),a=jce();return dn(()=>{const o=a.subscribe(i=>{n.current=i,e&&r()});return()=>a.unsubscribe(o)},[]),n.current}const zP=s.createContext({}),Fce=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:a,avatarColor:o,containerSize:i,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,iconFontSize:m,iconFontSizeLG:g,iconFontSizeSM:h,borderRadius:b,borderRadiusLG:p,borderRadiusSM:S,lineWidth:C,lineType:x}=e,w=($,E,R,I)=>({width:$,height:$,borderRadius:"50%",fontSize:E,[`&${n}-square`]:{borderRadius:I},[`&${n}-icon`]:{fontSize:R,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:a,border:`${me(C)} ${x} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),w(i,u,m,b)),{"&-lg":Object.assign({},w(l,d,g,p)),"&-sm":Object.assign({},w(c,f,h,S)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Dce=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:a}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:a}}}},kce=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:a,fontSizeLG:o,fontSizeXL:i,fontSizeHeading3:l,marginXS:c,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:a,textFontSizeLG:a,textFontSizeSM:a,iconFontSize:Math.round((o+i)/2),iconFontSizeLG:l,iconFontSizeSM:a,groupSpace:u,groupOverlapping:-c,groupBorderColor:d}},KH=un("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=tn(e,{avatarBg:n,avatarColor:t});return[Fce(r),Dce(r)]},kce);var Ace=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,shape:r,size:a,src:o,srcSet:i,icon:l,className:c,rootClassName:u,style:d,alt:f,draggable:m,children:g,crossOrigin:h,gap:b=4,onError:p}=e,S=Ace(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[C,x]=s.useState(1),[w,$]=s.useState(!1),[E,R]=s.useState(!0),I=s.useRef(null),O=s.useRef(null),T=Fr(t,I),{getPrefixCls:N,avatar:A}=s.useContext(jt),k=s.useContext(zP),j=()=>{if(!O.current||!I.current)return;const le=O.current.offsetWidth,re=I.current.offsetWidth;le!==0&&re!==0&&b*2{$(!0)},[]),s.useEffect(()=>{R(!0),x(1)},[o]),s.useEffect(j,[b]);const D=()=>{(p==null?void 0:p())!==!1&&R(!1)},F=$r(le=>{var re,fe;return(fe=(re=a??(k==null?void 0:k.size))!==null&&re!==void 0?re:le)!==null&&fe!==void 0?fe:"default"}),L=Object.keys(typeof F=="object"?F||{}:{}).some(le=>["xs","sm","md","lg","xl","xxl"].includes(le)),B=uu(L),K=s.useMemo(()=>{if(typeof F!="object")return{};const le=Jc.find(fe=>B[fe]),re=F[le];return re?{width:re,height:re,fontSize:re&&(l||g)?re/2:18}:{}},[B,F,l,g]),W=N("avatar",n),V=Gn(W),[q,U,G]=KH(W,V),Y=oe({[`${W}-lg`]:F==="large",[`${W}-sm`]:F==="small"}),J=s.isValidElement(o),Q=r||(k==null?void 0:k.shape)||"circle",Z=oe(W,Y,A==null?void 0:A.className,`${W}-${Q}`,{[`${W}-image`]:J||o&&E,[`${W}-icon`]:!!l},G,V,c,u,U),ne=typeof F=="number"?{width:F,height:F,fontSize:l?F/2:18}:{};let ae;if(typeof o=="string"&&E)ae=s.createElement("img",{src:o,draggable:m,srcSet:i,onError:D,alt:f,crossOrigin:h});else if(J)ae=o;else if(l)ae=l;else if(w||C!==1){const le=`scale(${C})`,re={msTransform:le,WebkitTransform:le,transform:le};ae=s.createElement(Rr,{onResize:j},s.createElement("span",{className:`${W}-string`,ref:O,style:re},g))}else ae=s.createElement("span",{className:`${W}-string`,style:{opacity:0},ref:O},g);return q(s.createElement("span",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ne),K),A==null?void 0:A.style),d),className:Z,ref:T}),ae))}),Jd=e=>e?typeof e=="function"?e():e:null;function JR(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.bodyClassName,i=e.className,l=e.style;return s.createElement("div",{className:oe("".concat(n,"-content"),i),style:l},s.createElement("div",{className:oe("".concat(n,"-inner"),o),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var nd={shiftX:64,adjustY:1},rd={adjustX:1,shiftY:!0},Uo=[0,0],Lce={left:{points:["cr","cl"],overflow:rd,offset:[-4,0],targetOffset:Uo},right:{points:["cl","cr"],overflow:rd,offset:[4,0],targetOffset:Uo},top:{points:["bc","tc"],overflow:nd,offset:[0,-4],targetOffset:Uo},bottom:{points:["tc","bc"],overflow:nd,offset:[0,4],targetOffset:Uo},topLeft:{points:["bl","tl"],overflow:nd,offset:[0,-4],targetOffset:Uo},leftTop:{points:["tr","tl"],overflow:rd,offset:[-4,0],targetOffset:Uo},topRight:{points:["br","tr"],overflow:nd,offset:[0,-4],targetOffset:Uo},rightTop:{points:["tl","tr"],overflow:rd,offset:[4,0],targetOffset:Uo},bottomRight:{points:["tr","br"],overflow:nd,offset:[0,4],targetOffset:Uo},rightBottom:{points:["bl","br"],overflow:rd,offset:[4,0],targetOffset:Uo},bottomLeft:{points:["tl","bl"],overflow:nd,offset:[0,4],targetOffset:Uo},leftBottom:{points:["br","bl"],overflow:rd,offset:[-4,0],targetOffset:Uo}},Bce=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],zce=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,l=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,g=t.children,h=t.onVisibleChange,b=t.afterVisibleChange,p=t.transitionName,S=t.animation,C=t.motion,x=t.placement,w=x===void 0?"right":x,$=t.align,E=$===void 0?{}:$,R=t.destroyTooltipOnHide,I=R===void 0?!1:R,O=t.defaultVisible,T=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var A=t.overlay,k=t.id,j=t.showArrow,D=j===void 0?!0:j,F=t.classNames,L=t.styles,B=Ue(t,Bce),K=Cf(k),W=s.useRef(null);s.useImperativeHandle(n,function(){return W.current});var V=P({},B);"visible"in t&&(V.popupVisible=t.visible);var q=function(){return s.createElement(JR,{key:"content",prefixCls:m,id:K,bodyClassName:F==null?void 0:F.body,overlayInnerStyle:P(P({},N),L==null?void 0:L.body)},A)},U=function(){var Y=s.Children.only(g),J=(Y==null?void 0:Y.props)||{},Q=P(P({},J),{},{"aria-describedby":A?K:null});return s.cloneElement(g,Q)};return s.createElement(yg,Me({popupClassName:oe(r,F==null?void 0:F.root),prefixCls:m,popup:q,action:o,builtinPlacements:Lce,popupPlacement:w,ref:W,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:p,popupAnimation:S,popupMotion:C,defaultPopupVisible:O,autoDestroy:I,mouseLeaveDelay:u,popupStyle:P(P({},d),L==null?void 0:L.root),mouseEnterDelay:l,arrow:D},V),U())};const Hce=s.forwardRef(zce);function a1(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,l=r*1/Math.sqrt(2),c=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*a-u,m=d,g=2*a-l,h=c,b=2*a-o,p=i,S=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),x=`polygon(${C}px 100%, 50% ${C}px, ${2*a-C}px 100%, ${C}px 100%)`,w=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${g} ${h} A ${r} ${r} 0 0 0 ${b} ${p} Z')`;return{arrowShadowWidth:S,arrowPath:w,arrowPolygon:x}}const UH=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${me(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},GH=8;function o1(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?GH:r}}function fh(e,t){return e?t:{}}function ZR(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},UH(e,t,a)),{"&:before":{background:t}})]},fh(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${me(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),fh(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${me(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),fh(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),fh(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function Vce(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const T8={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"]}},Wce={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"]}},Kce=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function YH(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,l=t/2,c={},u=o1({contentRadius:o,limitVerticalRadius:!0});return Object.keys(T8).forEach(d=>{const f=r&&Wce[d]||T8[d],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[d]=m,Kce.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-l-a;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=l+a;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-l-a;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=l+a;break}if(r)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-u.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":m.offset[0]=u.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":m.offset[1]=-u.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":m.offset[1]=u.arrowOffsetHorizontal*2-l;break}m.overflow=Vce(d,u,t,n),i&&(m.htmlRegion="visibleFirst")}),c}const qce=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:g}=e,h=t(i).add(g).add(m).equal(),b=t(i).mul(2).add(g).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:b,minHeight:c,padding:`${me(e.calc(d).div(2).equal())} ${me(f)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,GH)}},[`${n}-content`]:{position:"relative"}}),_y(e,(p,{darkColor:S})=>({[`&${n}-${p}`]:{[`${n}-inner`]:{backgroundColor:S},[`${n}-arrow`]:{"--antd-arrow-background-color":S}}}))),{"&-rtl":{direction:"rtl"}})},ZR(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Uce=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},o1({contentRadius:e.borderRadius,limitVerticalRadius:!0})),a1(tn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),XH=(e,t=!0)=>un("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,l=tn(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[qce(l),yf(r,"zoom-big-fast")]},Uce,{resetStyle:!1,injectStyle:t})(e),Gce=Us.map(e=>`${e}-inverse`),Yce=["success","processing","error","default","warning"];function i1(e,t=!0){return t?[].concat(ke(Gce),ke(Us)).includes(e):Us.includes(e)}function Xce(e){return Yce.includes(e)}function QH(e,t){const n=i1(t),r=oe({[`${e}-${t}`]:t&&n}),a={},o={},i=Ea(t).toRgb(),c=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=c,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const Qce=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:l}=s.useContext(jt),c=l("tooltip",t),[u,d,f]=XH(c),m=QH(c,o),g=m.arrowStyle,h=Object.assign(Object.assign({},i),m.overlayStyle),b=oe(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(s.createElement("div",{className:b,style:g},s.createElement("div",{className:`${c}-arrow`}),s.createElement(JR,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:h}),a)))};var Jce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:g,arrow:h=!0,title:b,overlay:p,builtinPlacements:S,arrowPointAtCenter:C=!1,autoAdjustOverflow:x=!0,motion:w,getPopupContainer:$,placement:E="top",mouseEnterDelay:R=.1,mouseLeaveDelay:I=.1,overlayStyle:O,rootClassName:T,overlayClassName:N,styles:A,classNames:k}=e,j=Jce(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"]),D=!!h,[,F]=qr(),{getPopupContainer:L,getPrefixCls:B,direction:K,className:W,style:V,classNames:q,styles:U}=lr("tooltip"),G=cl(),Y=s.useRef(null),J=()=>{var je;(je=Y.current)===null||je===void 0||je.forceAlign()};s.useImperativeHandle(t,()=>{var je,Ee;return{forceAlign:J,forcePopupAlign:()=>{G.deprecated(!1,"forcePopupAlign","forceAlign"),J()},nativeElement:(je=Y.current)===null||je===void 0?void 0:je.nativeElement,popupElement:(Ee=Y.current)===null||Ee===void 0?void 0:Ee.popupElement}});const[Q,Z]=_t(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ne=!b&&!p&&b!==0,ae=je=>{var Ee,Le;Z(ne?!1:je),ne||((Ee=e.onOpenChange)===null||Ee===void 0||Ee.call(e,je),(Le=e.onVisibleChange)===null||Le===void 0||Le.call(e,je))},le=s.useMemo(()=>{var je,Ee;let Le=C;return typeof h=="object"&&(Le=(Ee=(je=h.pointAtCenter)!==null&&je!==void 0?je:h.arrowPointAtCenter)!==null&&Ee!==void 0?Ee:C),S||YH({arrowPointAtCenter:Le,autoAdjustOverflow:x,arrowWidth:D?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS,visibleFirst:!0})},[C,h,S,F]),re=s.useMemo(()=>b===0?b:p||b||"",[p,b]),fe=s.createElement(oi,{space:!0},typeof re=="function"?re():re),ue=B("tooltip",a),de=B(),ie=e["data-popover-inject"];let se=Q;!("open"in e)&&!("visible"in e)&&ne&&(se=!1);const ve=s.isValidElement(u)&&!az(u)?u:s.createElement("span",null,u),he=ve.props,Ce=!he.className||typeof he.className=="string"?oe(he.className,o||`${ue}-open`):he.className,[pe,Se,ge]=XH(ue,!ie),ye=QH(ue,l),xe=ye.arrowStyle,$e=oe(N,{[`${ue}-rtl`]:K==="rtl"},ye.className,T,Se,ge,W,q.root,k==null?void 0:k.root),He=oe(q.body,k==null?void 0:k.body),[Te,Re]=ui("Tooltip",j.zIndex),Fe=s.createElement(Hce,Object.assign({},j,{zIndex:Te,showArrow:D,placement:E,mouseEnterDelay:R,mouseLeaveDelay:I,prefixCls:ue,classNames:{root:$e,body:He},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),U.root),V),O),A==null?void 0:A.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},U.body),c),A==null?void 0:A.body),ye.overlayStyle)},getTooltipContainer:$||i||L,ref:Y,builtinPlacements:le,overlay:fe,visible:se,onVisibleChange:ae,afterVisibleChange:d??f,arrowContent:s.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:ga(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:g??!!m}),se?Br(ve,{className:Ce}):ve);return pe(s.createElement(dg.Provider,{value:Re},Fe))}),Kn=Zce;Kn._InternalPanelDoNotUseOrYouWillBeFired=Qce;const eue=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:o,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:g,innerContentPadding:h,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},wn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,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:c,boxShadow:i,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:a,borderBottom:g,padding:b},[`${t}-inner-content`]:{color:n,padding:h}})},ZR(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},tue=e=>{const{componentCls:t}=e;return{[t]:Us.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},nue=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:o,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,g=m/2,h=m/2-t,b=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},a1(e)),o1({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${g}px ${b}px ${h}px`:0,titleBorderBottom:o?`${t}px ${u} ${d}`:"none",innerContentPadding:o?`${f}px ${b}px`:0})},JH=un("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=tn(e,{popoverBg:t,popoverColor:n});return[eue(r),tue(r),yf(r,"zoom-big")]},nue,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var rue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a!e&&!t?null:s.createElement(s.Fragment,null,e&&s.createElement("div",{className:`${n}-title`},e),t&&s.createElement("div",{className:`${n}-inner-content`},t)),aue=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:o="top",title:i,content:l,children:c}=e,u=Jd(i),d=Jd(l),f=oe(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return s.createElement("div",{className:f,style:a},s.createElement("div",{className:`${n}-arrow`}),s.createElement(JR,Object.assign({},e,{className:t,prefixCls:n}),c||s.createElement(ZH,{prefixCls:n,title:u,content:d})))},eV=e=>{const{prefixCls:t,className:n}=e,r=rue(e,["prefixCls","className"]),{getPrefixCls:a}=s.useContext(jt),o=a("popover",t),[i,l,c]=JH(o);return i(s.createElement(aue,Object.assign({},r,{prefixCls:o,hashId:l,className:oe(n,c)})))};var oue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,title:o,content:i,overlayClassName:l,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:g,overlayStyle:h={},styles:b,classNames:p}=e,S=oue(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:C,className:x,style:w,classNames:$,styles:E}=lr("popover"),R=C("popover",a),[I,O,T]=JH(R),N=C(),A=oe(l,O,T,x,$.root,p==null?void 0:p.root),k=oe($.body,p==null?void 0:p.body),[j,D]=_t(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=(V,q)=>{D(V,!0),g==null||g(V,q)},L=V=>{V.keyCode===ot.ESC&&F(!1,V)},B=V=>{F(V)},K=Jd(o),W=Jd(i);return I(s.createElement(Kn,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m},S,{prefixCls:R,classNames:{root:A,body:k},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),w),h),b==null?void 0:b.root),body:Object.assign(Object.assign({},E.body),b==null?void 0:b.body)},ref:t,open:j,onOpenChange:B,overlay:K||W?s.createElement(ZH,{prefixCls:R,title:K,content:W}):null,transitionName:ga(N,"zoom-big",S.transitionName),"data-popover-inject":!0}),Br(d,{onKeyDown:V=>{var q,U;s.isValidElement(d)&&((U=d==null?void 0:(q=d.props).onKeyDown)===null||U===void 0||U.call(q,V)),L(V)}})))}),Bi=iue;Bi._InternalPanelDoNotUseOrYouWillBeFired=eV;const N8=e=>{const{size:t,shape:n}=s.useContext(zP),r=s.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return s.createElement(zP.Provider,{value:r},e.children)},lue=e=>{var t,n,r,a;const{getPrefixCls:o,direction:i}=s.useContext(jt),{prefixCls:l,className:c,rootClassName:u,style:d,maxCount:f,maxStyle:m,size:g,shape:h,maxPopoverPlacement:b,maxPopoverTrigger:p,children:S,max:C}=e,x=o("avatar",l),w=`${x}-group`,$=Gn(x),[E,R,I]=KH(x,$),O=oe(w,{[`${w}-rtl`]:i==="rtl"},I,$,c,u,R),T=rr(S).map((k,j)=>Br(k,{key:`avatar-key-${j}`})),N=(C==null?void 0:C.count)||f,A=T.length;if(N&&N{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:o,textFontSizeSM:i,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:m,calc:g}=e,h=`${r}-scroll-number`,b=_y(e,(p,{darkColor:S})=>({[`&${t} ${t}-color-${p}`]:{background:S,[`&:not(${t}-count)`]:{color:S},"a:hover &":{background:S}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:o,lineHeight:me(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:g(d).div(2).equal(),boxShadow:`0 0 0 ${me(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:i,lineHeight:me(f),borderRadius:g(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${me(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${me(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:pue,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:due,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}}}),b),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:fue,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:vue,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:mue,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:gue,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},tV=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,o=t,i=n,l=e.colorTextLightSolid,c=e.colorError,u=e.colorErrorHover;return tn(e,{badgeFontHeight:o,badgeShadowSize:i,badgeTextColor:l,badgeColor:c,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},nV=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},bue=un("Badge",e=>{const t=tV(e);return hue(t)},nV),yue=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:o}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=_y(e,(u,{darkColor:d})=>({[`&${i}-color-${u}`]:{background:d,color:d}}));return{[l]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{position:"absolute",top:r,padding:`0 ${me(e.paddingXS)}`,color:e.colorPrimary,lineHeight:me(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${me(o(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${i}-placement-end`]:{insetInlineEnd:o(a).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:o(a).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Cue=un(["Badge","Ribbon"],e=>{const t=tV(e);return yue(t)},nV),Sue=e=>{const{className:t,prefixCls:n,style:r,color:a,children:o,text:i,placement:l="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=s.useContext(jt),f=u("ribbon",n),m=`${f}-wrapper`,[g,h,b]=Cue(f,m),p=i1(a,!1),S=oe(f,`${f}-placement-${l}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${a}`]:p},t),C={},x={};return a&&!p&&(C.background=a,x.color=a),g(s.createElement("div",{className:oe(m,c,h,b)},o,s.createElement("div",{className:oe(S,h),style:Object.assign(Object.assign({},C),r)},s.createElement("span",{className:`${f}-text`},i),s.createElement("div",{className:`${f}-corner`,style:x}))))},_8=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let o;return a&&(o={position:"absolute",top:`${a}00%`,left:0}),s.createElement("span",{style:o,className:oe(`${t}-only-unit`,{current:r})},n)};function xue(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const wue=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),o=Math.abs(n),[i,l]=s.useState(a),[c,u]=s.useState(o),d=()=>{l(a),u(o)};s.useEffect(()=>{const g=setTimeout(d,1e3);return()=>clearTimeout(g)},[a]);let f,m;if(i===a||Number.isNaN(a)||Number.isNaN(i))f=[s.createElement(_8,Object.assign({},e,{key:a,current:!0}))],m={transition:"none"};else{f=[];const g=a+10,h=[];for(let C=a;C<=g;C+=1)h.push(C);const b=cC%10===i);f=(b<0?h.slice(0,p+1):h.slice(p)).map((C,x)=>{const w=C%10;return s.createElement(_8,Object.assign({},e,{key:C,value:w,offset:b<0?x-p:x,current:x===p}))}),m={transform:`translateY(${-xue(i,a,b)}00%)`}}return s.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:d},f)};var $ue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,count:r,className:a,motionClassName:o,style:i,title:l,show:c,component:u="sup",children:d}=e,f=$ue(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=s.useContext(jt),g=m("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":c,style:i,className:oe(g,a,o),title:l});let b=r;if(r&&Number(r)%1===0){const p=String(r).split("");b=s.createElement("bdi",null,p.map((S,C)=>s.createElement(wue,{prefixCls:g,count:Number(r),value:S,key:p.length-C})))}return i!=null&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),d?Br(d,p=>({className:oe(`${g}-custom-component`,p==null?void 0:p.className,o)})):s.createElement(u,Object.assign({},h,{ref:t}),b)});var Pue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:l,scrollNumberPrefixCls:c,children:u,status:d,text:f,color:m,count:g=null,overflowCount:h=99,dot:b=!1,size:p="default",title:S,offset:C,style:x,className:w,rootClassName:$,classNames:E,styles:R,showZero:I=!1}=e,O=Pue(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:T,direction:N,badge:A}=s.useContext(jt),k=T("badge",l),[j,D,F]=bue(k),L=g>h?`${h}+`:g,B=L==="0"||L===0||f==="0"||f===0,K=g===null||B&&!I,W=(d!=null||m!=null)&&K,V=d!=null||!B,q=b&&!B,U=q?"":L,G=s.useMemo(()=>((U==null||U==="")&&(f==null||f==="")||B&&!I)&&!q,[U,B,I,q,f]),Y=s.useRef(g);G||(Y.current=g);const J=Y.current,Q=s.useRef(U);G||(Q.current=U);const Z=Q.current,ne=s.useRef(q);G||(ne.current=q);const ae=s.useMemo(()=>{if(!C)return Object.assign(Object.assign({},A==null?void 0:A.style),x);const he={marginTop:C[1]};return N==="rtl"?he.left=Number.parseInt(C[0],10):he.right=-Number.parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},he),A==null?void 0:A.style),x)},[N,C,x,A==null?void 0:A.style]),le=S??(typeof J=="string"||typeof J=="number"?J:void 0),re=!G&&(f===0?I:!!f&&f!==!0),fe=re?s.createElement("span",{className:`${k}-status-text`},f):null,ue=!J||typeof J!="object"?void 0:Br(J,he=>({style:Object.assign(Object.assign({},ae),he.style)})),de=i1(m,!1),ie=oe(E==null?void 0:E.indicator,(n=A==null?void 0:A.classNames)===null||n===void 0?void 0:n.indicator,{[`${k}-status-dot`]:W,[`${k}-status-${d}`]:!!d,[`${k}-color-${m}`]:de}),se={};m&&!de&&(se.color=m,se.background=m);const ve=oe(k,{[`${k}-status`]:W,[`${k}-not-a-wrapper`]:!u,[`${k}-rtl`]:N==="rtl"},w,$,A==null?void 0:A.className,(r=A==null?void 0:A.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,D,F);if(!u&&W&&(f||V||!K)){const he=ae.color;return j(s.createElement("span",Object.assign({},O,{className:ve,style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.root),(a=A==null?void 0:A.styles)===null||a===void 0?void 0:a.root),ae)}),s.createElement("span",{className:ie,style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.indicator),(o=A==null?void 0:A.styles)===null||o===void 0?void 0:o.indicator),se)}),re&&s.createElement("span",{style:{color:he},className:`${k}-status-text`},f)))}return j(s.createElement("span",Object.assign({ref:t},O,{className:ve,style:Object.assign(Object.assign({},(i=A==null?void 0:A.styles)===null||i===void 0?void 0:i.root),R==null?void 0:R.root)}),u,s.createElement(ma,{visible:!G,motionName:`${k}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:he})=>{var Ce,pe;const Se=T("scroll-number",c),ge=ne.current,ye=oe(E==null?void 0:E.indicator,(Ce=A==null?void 0:A.classNames)===null||Ce===void 0?void 0:Ce.indicator,{[`${k}-dot`]:ge,[`${k}-count`]:!ge,[`${k}-count-sm`]:p==="small",[`${k}-multiple-words`]:!ge&&Z&&Z.toString().length>1,[`${k}-status-${d}`]:!!d,[`${k}-color-${m}`]:de});let xe=Object.assign(Object.assign(Object.assign({},R==null?void 0:R.indicator),(pe=A==null?void 0:A.styles)===null||pe===void 0?void 0:pe.indicator),ae);return m&&!de&&(xe=xe||{},xe.background=m),s.createElement(Eue,{prefixCls:Se,show:!G,motionClassName:he,className:ye,count:Z,title:le,style:xe,key:"scrollNumber"},ue)}),fe))}),Oo=Oue;Oo.Ribbon=Sue;var Iue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Rue=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Iue}))},Wl=s.forwardRef(Rue),Mue=ot.ESC,Tue=ot.TAB;function Nue(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=s.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case Mue:l();break;case Tue:{var m=!1;i.current||(m=c()),m?f.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&on(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var _ue=s.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=s.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=Fr(t,ec(o));return ee.createElement(ee.Fragment,null,r&&ee.createElement("div",{className:"".concat(a,"-arrow")}),ee.cloneElement(o,{ref:_i(o)?i:void 0}))}),ad={adjustX:1,adjustY:1},od=[0,0],jue={topLeft:{points:["bl","tl"],overflow:ad,offset:[0,-4],targetOffset:od},top:{points:["bc","tc"],overflow:ad,offset:[0,-4],targetOffset:od},topRight:{points:["br","tr"],overflow:ad,offset:[0,-4],targetOffset:od},bottomLeft:{points:["tl","bl"],overflow:ad,offset:[0,4],targetOffset:od},bottom:{points:["tc","bc"],overflow:ad,offset:[0,4],targetOffset:od},bottomRight:{points:["tr","br"],overflow:ad,offset:[0,4],targetOffset:od}},Fue=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Due(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,g=m===void 0?jue:m,h=e.getPopupContainer,b=e.showAction,p=e.hideAction,S=e.overlayClassName,C=e.overlayStyle,x=e.visible,w=e.trigger,$=w===void 0?["hover"]:w,E=e.autoFocus,R=e.overlay,I=e.children,O=e.onVisibleChange,T=Ue(e,Fue),N=ee.useState(),A=ce(N,2),k=A[0],j=A[1],D="visible"in e?x:k,F=ee.useRef(null),L=ee.useRef(null),B=ee.useRef(null);ee.useImperativeHandle(t,function(){return F.current});var K=function(Z){j(Z),O==null||O(Z)};Nue({visible:D,triggerRef:B,onVisibleChange:K,autoFocus:E,overlayRef:L});var W=function(Z){var ne=e.onOverlayClick;j(!1),ne&&ne(Z)},V=function(){return ee.createElement(_ue,{ref:L,overlay:R,prefixCls:i,arrow:a})},q=function(){return typeof R=="function"?V:V()},U=function(){var Z=e.minOverlayWidthMatchTrigger,ne=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Z:!ne},G=function(){var Z=e.openClassName;return Z!==void 0?Z:"".concat(i,"-open")},Y=ee.cloneElement(I,{className:oe((n=I.props)===null||n===void 0?void 0:n.className,D&&G()),ref:_i(I)?Fr(B,ec(I)):void 0}),J=p;return!J&&$.indexOf("contextMenu")!==-1&&(J=["click"]),ee.createElement(yg,Me({builtinPlacements:g},T,{prefixCls:i,ref:F,popupClassName:oe(S,z({},"".concat(i,"-show-arrow"),a)),popupStyle:C,action:$,showAction:b,hideAction:J,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:D,stretch:U()?"minWidth":"",popup:q(),onPopupVisibleChange:K,onPopupClick:W,getPopupContainer:h}),Y)}const rV=ee.forwardRef(Due),kue=e=>typeof e!="object"&&typeof e!="function"||e===null;var aV=s.createContext(null);function oV(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function iV(e){var t=s.useContext(aV);return oV(t,e)}var Aue=["children","locked"],ki=s.createContext(null);function Lue(e,t){var n=P({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function km(e){var t=e.children,n=e.locked,r=Ue(e,Aue),a=s.useContext(ki),o=Hl(function(){return Lue(a,r)},[a,r],function(i,l){return!n&&(i[0]!==l[0]||!ei(i[1],l[1],!0))});return s.createElement(ki.Provider,{value:o},t)}var Bue=[],lV=s.createContext(null);function l1(){return s.useContext(lV)}var sV=s.createContext(Bue);function $f(e){var t=s.useContext(sV);return s.useMemo(function(){return e!==void 0?[].concat(ke(t),[e]):t},[t,e])}var cV=s.createContext(null),e4=s.createContext({});function j8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(bf(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function zue(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ke(e.querySelectorAll("*")).filter(function(r){return j8(r,t)});return j8(e,t)&&n.unshift(e),n}var HP=ot.LEFT,VP=ot.RIGHT,WP=ot.UP,B0=ot.DOWN,z0=ot.ENTER,uV=ot.ESC,Sv=ot.HOME,xv=ot.END,F8=[WP,B0,HP,VP];function Hue(e,t,n,r){var a,o="prev",i="next",l="children",c="parent";if(e==="inline"&&r===z0)return{inlineTrigger:!0};var u=z(z({},WP,o),B0,i),d=z(z(z(z({},HP,n?i:o),VP,n?o:i),B0,l),z0,l),f=z(z(z(z(z(z({},WP,o),B0,i),z0,l),uV,c),HP,n?l:c),VP,n?c:l),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},g=(a=m["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(g){case o:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function Vue(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function Wue(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function t4(e,t){var n=zue(e,!0);return n.filter(function(r){return t.has(r)})}function D8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=t4(e,t),o=a.length,i=a.findIndex(function(l){return n===l});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var KP=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(oV(n,i),"']"));l&&(r.add(l),o.set(l,i),a.set(i,l))}),{elements:r,key2element:a,element2key:o}};function Kue(e,t,n,r,a,o,i,l,c,u){var d=s.useRef(),f=s.useRef();f.current=t;var m=function(){on.cancel(d.current)};return s.useEffect(function(){return function(){m()}},[]),function(g){var h=g.which;if([].concat(F8,[z0,uV,Sv,xv]).includes(h)){var b=o(),p=KP(b,r),S=p,C=S.elements,x=S.key2element,w=S.element2key,$=x.get(t),E=Wue($,C),R=w.get(E),I=Hue(e,i(R,!0).length===1,n,h);if(!I&&h!==Sv&&h!==xv)return;(F8.includes(h)||[Sv,xv].includes(h))&&g.preventDefault();var O=function(L){if(L){var B=L,K=L.querySelector("a");K!=null&&K.getAttribute("href")&&(B=K);var W=w.get(L);l(W),m(),d.current=on(function(){f.current===W&&B.focus()})}};if([Sv,xv].includes(h)||I.sibling||!E){var T;!E||e==="inline"?T=a.current:T=Vue(E);var N,A=t4(T,C);h===Sv?N=A[0]:h===xv?N=A[A.length-1]:N=D8(T,C,E,I.offset),O(N)}else if(I.inlineTrigger)c(R);else if(I.offset>0)c(R,!0),m(),d.current=on(function(){p=KP(b,r);var F=E.getAttribute("aria-controls"),L=document.getElementById(F),B=D8(L,p.elements);O(B)},5);else if(I.offset<0){var k=i(R,!0),j=k[k.length-2],D=x.get(j);c(j,!1),O(D)}}u==null||u(g)}}function que(e){Promise.resolve().then(e)}var n4="__RC_UTIL_PATH_SPLIT__",k8=function(t){return t.join(n4)},Uue=function(t){return t.split(n4)},qP="rc-menu-more";function Gue(){var e=s.useState({}),t=ce(e,2),n=t[1],r=s.useRef(new Map),a=s.useRef(new Map),o=s.useState([]),i=ce(o,2),l=i[0],c=i[1],u=s.useRef(0),d=s.useRef(!1),f=function(){d.current||n({})},m=s.useCallback(function(x,w){var $=k8(w);a.current.set($,x),r.current.set(x,$),u.current+=1;var E=u.current;que(function(){E===u.current&&f()})},[]),g=s.useCallback(function(x,w){var $=k8(w);a.current.delete($),r.current.delete(x)},[]),h=s.useCallback(function(x){c(x)},[]),b=s.useCallback(function(x,w){var $=r.current.get(x)||"",E=Uue($);return w&&l.includes(E[0])&&E.unshift(qP),E},[l]),p=s.useCallback(function(x,w){return x.filter(function($){return $!==void 0}).some(function($){var E=b($,!0);return E.includes(w)})},[b]),S=function(){var w=ke(r.current.keys());return l.length&&w.push(qP),w},C=s.useCallback(function(x){var w="".concat(r.current.get(x)).concat(n4),$=new Set;return ke(a.current.keys()).forEach(function(E){E.startsWith(w)&&$.add(a.current.get(E))}),$},[]);return s.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:p,getKeyPath:b,getKeys:S,getSubPathKeys:C}}function Xv(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&(C.motionAppear=!1);var x=C.onVisibleChanged;return C.onVisibleChanged=function(w){return!m.current&&!w&&p(!0),x==null?void 0:x(w)},b?null:s.createElement(km,{mode:o,locked:!m.current},s.createElement(ma,Me({visible:S},C,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(w){var $=w.className,E=w.style;return s.createElement(r4,{id:t,className:$,style:E},a)}))}var dde=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],fde=["active"],vde=s.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,o=e.eventKey;e.warnKey;var i=e.disabled,l=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,g=e.popupStyle,h=e.onClick,b=e.onMouseEnter,p=e.onMouseLeave,S=e.onTitleClick,C=e.onTitleMouseEnter,x=e.onTitleMouseLeave,w=Ue(e,dde),$=iV(o),E=s.useContext(ki),R=E.prefixCls,I=E.mode,O=E.openKeys,T=E.disabled,N=E.overflowDisabled,A=E.activeKey,k=E.selectedKeys,j=E.itemIcon,D=E.expandIcon,F=E.onItemClick,L=E.onOpenChange,B=E.onActive,K=s.useContext(e4),W=K._internalRenderSubMenuItem,V=s.useContext(cV),q=V.isSubPathKey,U=$f(),G="".concat(R,"-submenu"),Y=T||i,J=s.useRef(),Q=s.useRef(),Z=u??j,ne=d??D,ae=O.includes(o),le=!N&&ae,re=q(k,o),fe=dV(o,Y,C,x),ue=fe.active,de=Ue(fe,fde),ie=s.useState(!1),se=ce(ie,2),ve=se[0],he=se[1],Ce=function(Oe){Y||he(Oe)},pe=function(Oe){Ce(!0),b==null||b({key:o,domEvent:Oe})},Se=function(Oe){Ce(!1),p==null||p({key:o,domEvent:Oe})},ge=s.useMemo(function(){return ue||(I!=="inline"?ve||q([A],o):!1)},[I,ue,A,ve,o,q]),ye=fV(U.length),xe=function(Oe){Y||(S==null||S({key:o,domEvent:Oe}),I==="inline"&&L(o,!ae))},$e=Xv(function(ze){h==null||h(Vb(ze)),F(ze)}),He=function(Oe){I!=="inline"&&L(o,Oe)},Te=function(){B(o)},Re=$&&"".concat($,"-popup"),Fe=s.useMemo(function(){return s.createElement(vV,{icon:I!=="horizontal"?ne:void 0,props:P(P({},e),{},{isOpen:le,isSubMenu:!0})},s.createElement("i",{className:"".concat(G,"-arrow")}))},[I,ne,e,le,G]),je=s.createElement("div",Me({role:"menuitem",style:ye,className:"".concat(G,"-title"),tabIndex:Y?null:-1,ref:J,title:typeof a=="string"?a:null,"data-menu-id":N&&$?null:$,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Re,"aria-disabled":Y,onClick:xe,onFocus:Te},de),a,Fe),Ee=s.useRef(I);if(I!=="inline"&&U.length>1?Ee.current="vertical":Ee.current=I,!N){var Le=Ee.current;je=s.createElement(cde,{mode:Le,prefixCls:G,visible:!l&&le&&I!=="inline",popupClassName:f,popupOffset:m,popupStyle:g,popup:s.createElement(km,{mode:Le==="horizontal"?"vertical":Le},s.createElement(r4,{id:Re,ref:Q},c)),disabled:Y,onVisibleChange:He},je)}var Pe=s.createElement(Ti.Item,Me({ref:t,role:"none"},w,{component:"li",style:n,className:oe(G,"".concat(G,"-").concat(I),r,z(z(z(z({},"".concat(G,"-open"),le),"".concat(G,"-active"),ge),"".concat(G,"-selected"),re),"".concat(G,"-disabled"),Y)),onMouseEnter:pe,onMouseLeave:Se}),je,!N&&s.createElement(ude,{id:Re,open:le,keyPath:U},c));return W&&(Pe=W(Pe,e,{selected:re,active:ge,open:le,disabled:Y})),s.createElement(km,{onItemClick:$e,mode:I==="horizontal"?"vertical":I,itemIcon:Z,expandIcon:ne},Pe)}),s1=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=$f(n),o=a4(r,a),i=l1();s.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var l;return i?l=o:l=s.createElement(vde,Me({ref:t},e),o),s.createElement(sV.Provider,{value:a},l)});function o4(e){var t=e.className,n=e.style,r=s.useContext(ki),a=r.prefixCls,o=l1();return o?null:s.createElement("li",{role:"separator",className:oe("".concat(a,"-item-divider"),t),style:n})}var mde=["className","title","eventKey","children"],gde=s.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=Ue(e,mde),i=s.useContext(ki),l=i.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",Me({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:oe(c,n)}),s.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(c,"-list")},a))}),i4=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=$f(n),o=a4(r,a),i=l1();return i?o:s.createElement(gde,Me({ref:t},nn(e,["warnKey"])),o)}),pde=["label","children","key","type","extra"];function UP(e,t,n){var r=t.item,a=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(l,c){if(l&&it(l)==="object"){var u=l,d=u.label,f=u.children,m=u.key,g=u.type,h=u.extra,b=Ue(u,pde),p=m??"tmp-".concat(c);return f||g==="group"?g==="group"?s.createElement(a,Me({key:p},b,{title:d}),UP(f,t,n)):s.createElement(o,Me({key:p},b,{title:d}),UP(f,t,n)):g==="divider"?s.createElement(i,Me({key:p},b)):s.createElement(r,Me({key:p},b,{extra:h}),d,(!!h||h===0)&&s.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(l){return l})}function L8(e,t,n,r,a){var o=e,i=P({divider:o4,item:Sg,group:i4,submenu:s1},r);return t&&(o=UP(t,i,a)),a4(o,n)}var hde=["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"],Cc=[],bde=s.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,o=a===void 0?"rc-menu":a,i=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,g=r.direction,h=r.id,b=r.mode,p=b===void 0?"vertical":b,S=r.inlineCollapsed,C=r.disabled,x=r.disabledOverflow,w=r.subMenuOpenDelay,$=w===void 0?.1:w,E=r.subMenuCloseDelay,R=E===void 0?.1:E,I=r.forceSubMenuRender,O=r.defaultOpenKeys,T=r.openKeys,N=r.activeKey,A=r.defaultActiveFirst,k=r.selectable,j=k===void 0?!0:k,D=r.multiple,F=D===void 0?!1:D,L=r.defaultSelectedKeys,B=r.selectedKeys,K=r.onSelect,W=r.onDeselect,V=r.inlineIndent,q=V===void 0?24:V,U=r.motion,G=r.defaultMotions,Y=r.triggerSubMenuAction,J=Y===void 0?"hover":Y,Q=r.builtinPlacements,Z=r.itemIcon,ne=r.expandIcon,ae=r.overflowedIndicator,le=ae===void 0?"...":ae,re=r.overflowedIndicatorPopupClassName,fe=r.getPopupContainer,ue=r.onClick,de=r.onOpenChange,ie=r.onKeyDown;r.openAnimation,r.openTransitionName;var se=r._internalRenderMenuItem,ve=r._internalRenderSubMenuItem,he=r._internalComponents,Ce=Ue(r,hde),pe=s.useMemo(function(){return[L8(m,f,Cc,he,o),L8(m,f,Cc,{},o)]},[m,f,he]),Se=ce(pe,2),ge=Se[0],ye=Se[1],xe=s.useState(!1),$e=ce(xe,2),He=$e[0],Te=$e[1],Re=s.useRef(),Fe=Xue(h),je=g==="rtl",Ee=_t(O,{value:T,postState:function(Wt){return Wt||Cc}}),Le=ce(Ee,2),Pe=Le[0],ze=Le[1],Oe=function(Wt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Tn(){ze(Wt),de==null||de(Wt)}Ht?Ua.flushSync(Tn):Tn()},we=s.useState(Pe),_e=ce(we,2),Be=_e[0],Qe=_e[1],lt=s.useRef(!1),Ke=s.useMemo(function(){return(p==="inline"||p==="vertical")&&S?["vertical",S]:[p,!1]},[p,S]),et=ce(Ke,2),st=et[0],Ze=et[1],vt=st==="inline",Ot=s.useState(st),xt=ce(Ot,2),mt=xt[0],yt=xt[1],bt=s.useState(Ze),tt=ce(bt,2),Ye=tt[0],Ne=tt[1];s.useEffect(function(){yt(st),Ne(Ze),lt.current&&(vt?ze(Be):Oe(Cc))},[st,Ze]);var We=s.useState(0),rt=ce(We,2),ct=rt[0],At=rt[1],pt=ct>=ge.length-1||mt!=="horizontal"||x;s.useEffect(function(){vt&&Qe(Pe)},[Pe]),s.useEffect(function(){return lt.current=!0,function(){lt.current=!1}},[]);var ft=Gue(),ut=ft.registerPath,Xt=ft.unregisterPath,Kt=ft.refreshOverflowKeys,Ut=ft.isSubPathKey,kt=ft.getKeyPath,Pt=ft.getKeys,Lt=ft.getSubPathKeys,nt=s.useMemo(function(){return{registerPath:ut,unregisterPath:Xt}},[ut,Xt]),St=s.useMemo(function(){return{isSubPathKey:Ut}},[Ut]);s.useEffect(function(){Kt(pt?Cc:ge.slice(ct+1).map(function(Nn){return Nn.key}))},[ct,pt]);var gt=_t(N||A&&((n=ge[0])===null||n===void 0?void 0:n.key),{value:N}),qe=ce(gt,2),at=qe[0],dt=qe[1],Tt=Xv(function(Nn){dt(Nn)}),Qt=Xv(function(){dt(void 0)});s.useImperativeHandle(t,function(){return{list:Re.current,focus:function(Wt){var Ht,Tn=Pt(),Bt=KP(Tn,Fe),zt=Bt.elements,En=Bt.key2element,Qn=Bt.element2key,Zn=t4(Re.current,zt),Sn=at??(Zn[0]?Qn.get(Zn[0]):(Ht=ge.find(function(yn){return!yn.props.disabled}))===null||Ht===void 0?void 0:Ht.key),Cr=En.get(Sn);if(Sn&&Cr){var Mr;Cr==null||(Mr=Cr.focus)===null||Mr===void 0||Mr.call(Cr,Wt)}}}});var Ct=_t(L||[],{value:B,postState:function(Wt){return Array.isArray(Wt)?Wt:Wt==null?Cc:[Wt]}}),Rt=ce(Ct,2),Vt=Rt[0],vn=Rt[1],Mn=function(Wt){if(j){var Ht=Wt.key,Tn=Vt.includes(Ht),Bt;F?Tn?Bt=Vt.filter(function(En){return En!==Ht}):Bt=[].concat(ke(Vt),[Ht]):Bt=[Ht],vn(Bt);var zt=P(P({},Wt),{},{selectedKeys:Bt});Tn?W==null||W(zt):K==null||K(zt)}!F&&Pe.length&&mt!=="inline"&&Oe(Cc)},bn=Xv(function(Nn){ue==null||ue(Vb(Nn)),Mn(Nn)}),sr=Xv(function(Nn,Wt){var Ht=Pe.filter(function(Bt){return Bt!==Nn});if(Wt)Ht.push(Nn);else if(mt!=="inline"){var Tn=Lt(Nn);Ht=Ht.filter(function(Bt){return!Tn.has(Bt)})}ei(Pe,Ht,!0)||Oe(Ht,!0)}),cr=function(Wt,Ht){var Tn=Ht??!Pe.includes(Wt);sr(Wt,Tn)},Dr=Kue(mt,at,je,Fe,Re,Pt,kt,dt,cr,ie);s.useEffect(function(){Te(!0)},[]);var yr=s.useMemo(function(){return{_internalRenderMenuItem:se,_internalRenderSubMenuItem:ve}},[se,ve]),Er=mt!=="horizontal"||x?ge:ge.map(function(Nn,Wt){return s.createElement(km,{key:Nn.key,overflowDisabled:Wt>ct},Nn)}),mr=s.createElement(Ti,Me({id:h,ref:Re,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Sg,className:oe(o,"".concat(o,"-root"),"".concat(o,"-").concat(mt),c,z(z({},"".concat(o,"-inline-collapsed"),Ye),"".concat(o,"-rtl"),je),i),dir:g,style:l,role:"menu",tabIndex:d,data:Er,renderRawItem:function(Wt){return Wt},renderRawRest:function(Wt){var Ht=Wt.length,Tn=Ht?ge.slice(-Ht):null;return s.createElement(s1,{eventKey:qP,title:le,disabled:pt,internalPopupClose:Ht===0,popupClassName:re},Tn)},maxCount:mt!=="horizontal"||x?Ti.INVALIDATE:Ti.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Wt){At(Wt)},onKeyDown:Dr},Ce));return s.createElement(e4.Provider,{value:yr},s.createElement(aV.Provider,{value:Fe},s.createElement(km,{prefixCls:o,rootClassName:i,mode:mt,openKeys:Pe,rtl:je,disabled:C,motion:He?U:null,defaultMotions:He?G:null,activeKey:at,onActive:Tt,onInactive:Qt,selectedKeys:Vt,inlineIndent:q,subMenuOpenDelay:$,subMenuCloseDelay:R,forceSubMenuRender:I,builtinPlacements:Q,triggerSubMenuAction:J,getPopupContainer:fe,itemIcon:Z,expandIcon:ne,onItemClick:bn,onOpenChange:sr},s.createElement(cV.Provider,{value:St},mr),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(lV.Provider,{value:nt},ye)))))}),Ef=bde;Ef.Item=Sg;Ef.SubMenu=s1;Ef.ItemGroup=i4;Ef.Divider=o4;var yde={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"},Cde=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:yde}))},Sde=s.forwardRef(Cde);const gV=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),xde=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:o,headerPadding:i,headerColor:l,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:i,color:l,lineHeight:me(o),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},pV=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:i,colorTextLightSolid:l,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},hV=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],bV=un("Layout",xde,pV,{deprecatedTokens:hV}),wde=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:o,triggerHeight:i,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:g,lightTriggerColor:h,lightTriggerBg:b,bodyBg:p}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:l,lineHeight:me(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${me(m)} ${me(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(d).mul(-1).equal(),borderRadius:`${me(m)} 0 0 ${me(m)}`}},"&-light":{background:g,[`${t}-trigger`]:{color:h,background:b},[`${t}-zero-width-trigger`]:{color:h,background:b,border:`1px solid ${p}`,borderInlineStart:0}}}}},$de=un(["Layout","Sider"],wde,pV,{deprecatedTokens:hV});var Ede=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),c1=s.createContext({}),Ode=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),yV=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:i=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:b,onBreakpoint:p}=e,S=Ede(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=s.useContext(gV),[x,w]=s.useState("collapsed"in e?e.collapsed:i),[$,E]=s.useState(!1);s.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const R=(Z,ne)=>{"collapsed"in e||w(Z),b==null||b(Z,ne)},{getPrefixCls:I,direction:O}=s.useContext(jt),T=I("layout-sider",n),[N,A,k]=$de(T),j=s.useRef(null);j.current=Z=>{E(Z.matches),p==null||p(Z.matches),x!==Z.matches&&R(Z.matches,"responsive")},s.useEffect(()=>{function Z(ae){var le;return(le=j.current)===null||le===void 0?void 0:le.call(j,ae)}let ne;return typeof(window==null?void 0:window.matchMedia)<"u"&&h&&h in B8&&(ne=window.matchMedia(`screen and (max-width: ${B8[h]})`),HH(ne,Z),Z(ne)),()=>{VH(ne,Z)}},[h]),s.useEffect(()=>{const Z=Ode("ant-sider-");return C.addSider(Z),()=>C.removeSider(Z)},[]);const D=()=>{R(!x,"clickTrigger")},F=nn(S,["collapsed"]),L=x?m:f,B=Pde(L)?`${L}px`:String(L),K=Number.parseFloat(String(m||0))===0?s.createElement("span",{onClick:D,className:oe(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${d?"right":"left"}`),style:g},a||s.createElement(Sde,null)):null,W=O==="rtl"==!d,U={expanded:W?s.createElement(ai,null):s.createElement(Wl,null),collapsed:W?s.createElement(Wl,null):s.createElement(ai,null)}[x?"collapsed":"expanded"],G=a!==null?K||s.createElement("div",{className:`${T}-trigger`,onClick:D,style:{width:B}},a||U):null,Y=Object.assign(Object.assign({},c),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),J=oe(T,`${T}-${l}`,{[`${T}-collapsed`]:!!x,[`${T}-has-trigger`]:u&&a!==null&&!K,[`${T}-below`]:!!$,[`${T}-zero-width`]:Number.parseFloat(B)===0},r,A,k),Q=s.useMemo(()=>({siderCollapsed:x}),[x]);return N(s.createElement(c1.Provider,{value:Q},s.createElement("aside",Object.assign({className:J},F,{style:Y,ref:t}),s.createElement("div",{className:`${T}-children`},o),u||$&&K?G:null)))});var Ide={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"},Rde=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Ide}))},l4=s.forwardRef(Rde);const Wb=s.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Mde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=Mde(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=s.useContext(jt),i=o("menu",t),l=oe({[`${i}-item-divider-dashed`]:!!r},n);return s.createElement(o4,Object.assign({className:l},a))},SV=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:i,extra:l}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=s.useContext(Wb),g=x=>{const w=r==null?void 0:r[0],$=s.createElement("span",{className:oe(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},r);return(!a||s.isValidElement(r)&&r.type==="span")&&r&&x&&u&&typeof w=="string"?s.createElement("div",{className:`${c}-inline-collapsed-noicon`},w.charAt(0)):$},{siderCollapsed:h}=s.useContext(c1);let b=o;typeof o>"u"?b=u?r:"":o===!1&&(b="");const p={title:b};!h&&!m&&(p.title=null,p.open=!1);const S=rr(r).length;let C=s.createElement(Sg,Object.assign({},nn(e,["title","icon","danger"]),{className:oe({[`${c}-item-danger`]:i,[`${c}-item-only-child`]:(a?S+1:S)===1},n),title:typeof o=="string"?o:void 0}),Br(a,{className:oe(s.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),g(m));return f||(C=s.createElement(Kn,Object.assign({},p,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),C)),C};var Tde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=Tde(e,["children"]),a=s.useContext(Kb),o=s.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=pJ(n),l=Ai(t,i?ec(n):null);return s.createElement(Kb.Provider,{value:o},s.createElement(oi,{space:!0},i?s.cloneElement(n,{ref:l}):n))}),Nde=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${me(o)} ${i} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Px(en(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Rce=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:g,colorBgContainer:h,colorFillSecondary:b,colorBgContainerDisabled:p,colorTextDisabled:S,colorPrimaryHover:C,colorPrimary:x,controlOutline:w}=e,$=l*2,E=r*2,R=Math.min(a-$,a-E),I=Math.min(o-$,o-E),O=Math.min(i-$,i-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:g,optionPadding:`${(a-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:i,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:R,multipleItemHeightSM:I,multipleItemHeightLG:O,multipleSelectorBgDisabled:p,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:C,activeBorderColor:x,activeOutlineColor:w,selectAffixPadding:l}},nV=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${me(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${me(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},VN=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},nV(e,t))}),Mce=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},nV(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),VN(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),VN(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:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),rV=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${me(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},WN=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},rV(e,t))}),Tce=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},rV(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),WN(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),WN(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:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Nce=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${me(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:`${me(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}}}}),aV=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${me(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},KN=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},aV(e,t))}),_ce=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},aV(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),KN(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),KN(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:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),jce=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Mce(e)),Tce(e)),Nce(e)),_ce(e))}),Fce=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"}}}},Dce=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"}}}},kce=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,o={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},$n(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Fce(e)),Dce(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ri),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ri),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},cu()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":o,"&:hover":o}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Ace=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},kce(e),Ice(e),Oce(e),$ce(e),{[`${t}-rtl`]:{direction:"rtl"}},tc(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},s4=dn("Select",(e,{rootPrefixCls:t})=>{const n=en(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Ace(n),jce(n)]},Rce,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Lce={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"},Bce=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Lce}))},l1=s.forwardRef(Bce),zce={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"},Hce=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:zce}))},Gs=s.forwardRef(Hce),Vce={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"},Wce=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Vce}))},s1=s.forwardRef(Wce);function c1({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:o,hasFeedback:i,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}){const m=t??s.createElement(dl,null),g=S=>e===null&&!i&&!d?null:s.createElement(s.Fragment,null,c!==!1&&S,i&&u);let h=null;if(e!==void 0)h=g(e);else if(a)h=g(s.createElement(Ya,{spin:!0}));else{const S=`${l}-suffix`;h=({open:C,showSearch:x})=>g(C&&x?s.createElement(s1,{className:S}):s.createElement(Gs,{className:S}))}let b=null;n!==void 0?b=n:o?b=s.createElement(l1,null):b=null;let p=null;return r!==void 0?p=r:p=s.createElement(Hi,null),{clearIcon:m,suffixIcon:h,itemIcon:b,removeIcon:p}}function c4(e){return ee.useMemo(()=>{if(e)return(...t)=>ee.createElement(ii,{space:!0},e.apply(void 0,t))},[e])}function u4(e,t){return t!==void 0?t:e!==null}var Kce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:l,bordered:c,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:g,listHeight:h=256,placement:b,listItemHeight:p,size:S,disabled:C,notFoundContent:x,status:w,builtinPlacements:$,dropdownMatchSelectWidth:E,popupMatchSelectWidth:R,direction:I,style:O,allowClear:T,variant:_,dropdownStyle:k,transitionName:A,tagRender:j,maxCount:D,prefix:F,dropdownRender:L,popupRender:B,onDropdownVisibleChange:K,onOpenChange:W,styles:V,classNames:q}=e,U=Kce(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:G,getPrefixCls:Y,renderEmpty:J,direction:Q,virtual:Z,popupMatchSelectWidth:ne,popupOverflow:ae}=s.useContext(jt),{showSearch:le,style:re,styles:fe,className:ue,classNames:de}=sr("select"),[,ie]=Ur(),se=p??(ie==null?void 0:ie.controlHeight),ve=Y("select",l),he=Y(),Ce=I??Q,{compactSize:pe,compactItemClassnames:Se}=Ao(ve,Ce),[ge,ye]=Gl("select",_,c),xe=Yn(ve),[$e,He,Te]=s4(ve,xe),Re=s.useMemo(()=>{const{mode:We}=e;if(We!=="combobox")return We===oV?"combobox":We},[e.mode]),Fe=Re==="multiple"||Re==="tags",je=u4(e.suffixIcon,e.showArrow),Ee=(n=R??E)!==null&&n!==void 0?n:ne,Le=((r=V==null?void 0:V.popup)===null||r===void 0?void 0:r.root)||((a=fe.popup)===null||a===void 0?void 0:a.root)||k,Pe=c4(B||L),ze=W||K,{status:Oe,hasFeedback:we,isFormItemInput:_e,feedbackIcon:Be}=s.useContext(Hr),Qe=Ul(Oe,w);let lt;x!==void 0?lt=x:Re==="combobox"?lt=null:lt=(J==null?void 0:J("Select"))||s.createElement(Cg,{componentName:"Select"});const{suffixIcon:Ke,itemIcon:et,removeIcon:st,clearIcon:Ze}=c1(Object.assign(Object.assign({},U),{multiple:Fe,hasFeedback:we,feedbackIcon:Be,showSuffixIcon:je,prefixCls:ve,componentName:"Select"})),vt=T===!0?{clearIcon:Ze}:T,Ot=nn(U,["suffixIcon","itemIcon"]),xt=oe(((o=q==null?void 0:q.popup)===null||o===void 0?void 0:o.root)||((i=de==null?void 0:de.popup)===null||i===void 0?void 0:i.root)||m||g,{[`${ve}-dropdown-${Ce}`]:Ce==="rtl"},d,de.root,q==null?void 0:q.root,Te,xe,He),mt=Er(We=>{var rt;return(rt=S??pe)!==null&&rt!==void 0?rt:We}),yt=s.useContext(Br),bt=C??yt,tt=oe({[`${ve}-lg`]:mt==="large",[`${ve}-sm`]:mt==="small",[`${ve}-rtl`]:Ce==="rtl",[`${ve}-${ge}`]:ye,[`${ve}-in-form-item`]:_e},Ai(ve,Qe,we),Se,ue,u,de.root,q==null?void 0:q.root,d,Te,xe,He),Ye=s.useMemo(()=>b!==void 0?b:Ce==="rtl"?"bottomRight":"bottomLeft",[b,Ce]),[Ne]=fi("SelectLike",Le==null?void 0:Le.zIndex);return $e(s.createElement(i4,Object.assign({ref:t,virtual:Z,showSearch:le},Ot,{style:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),V==null?void 0:V.root),re),O),dropdownMatchSelectWidth:Ee,transitionName:pa(he,"slide-up",A),builtinPlacements:l4($,ae),listHeight:h,listItemHeight:se,mode:Re,prefixCls:ve,placement:Ye,direction:Ce,prefix:F,suffixIcon:Ke,menuItemSelectedIcon:et,removeIcon:st,allowClear:vt,notFoundContent:lt,className:tt,getPopupContainer:f||G,dropdownClassName:xt,disabled:bt,dropdownStyle:Object.assign(Object.assign({},Le),{zIndex:Ne}),maxCount:Fe?D:void 0,tagRender:Fe?j:void 0,dropdownRender:Pe,onDropdownVisibleChange:ze})))},li=s.forwardRef(qce),Uce=nc(li,"dropdownAlign");li.SECRET_COMBOBOX_MODE_DO_NOT_USE=oV;li.Option=a4;li.OptGroup=r4;li._InternalPanelDoNotUseOrYouWillBeFired=Uce;const iV=(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)},lV=(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)},Jc=["xxl","xl","lg","md","sm","xs"],Gce=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)`}),Yce=e=>{const t=e,n=[].concat(Jc).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),i=`screen${o}Min`,l=`screen${o}`;if(!(t[i]<=t[l]))throw new Error(`${i}<=${l} fails : !(${t[i]}<=${t[l]})`);if(a{if(t){for(const n of Jc)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},Xce=()=>{const[,e]=Ur(),t=Gce(Yce(e));return ee.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return a=o,n.forEach(i=>i(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},register(){Object.entries(t).forEach(([o,i])=>{const l=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},a),{[o]:u}))},c=window.matchMedia(i);iV(c,l),this.matchHandlers[i]={mql:c,listener:l},l(c)})},unregister(){Object.values(t).forEach(o=>{const i=this.matchHandlers[o];lV(i==null?void 0:i.mql,i==null?void 0:i.listener)}),n.clear()}}},[t])};function du(e=!0,t={}){const n=s.useRef(t),[,r]=DR(),a=Xce();return fn(()=>{const o=a.subscribe(i=>{n.current=i,e&&r()});return()=>a.unsubscribe(o)},[]),n.current}const XP=s.createContext({}),Qce=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:a,avatarColor:o,containerSize:i,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,iconFontSize:m,iconFontSizeLG:g,iconFontSizeSM:h,borderRadius:b,borderRadiusLG:p,borderRadiusSM:S,lineWidth:C,lineType:x}=e,w=($,E,R,I)=>({width:$,height:$,borderRadius:"50%",fontSize:E,[`&${n}-square`]:{borderRadius:I},[`&${n}-icon`]:{fontSize:R,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:a,border:`${me(C)} ${x} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),w(i,u,m,b)),{"&-lg":Object.assign({},w(l,d,g,p)),"&-sm":Object.assign({},w(c,f,h,S)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},Jce=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:a}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:a}}}},Zce=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:a,fontSizeLG:o,fontSizeXL:i,fontSizeHeading3:l,marginXS:c,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:a,textFontSizeLG:a,textFontSizeSM:a,iconFontSize:Math.round((o+i)/2),iconFontSizeLG:l,iconFontSizeSM:a,groupSpace:u,groupOverlapping:-c,groupBorderColor:d}},cV=dn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=en(e,{avatarBg:n,avatarColor:t});return[Qce(r),Jce(r)]},Zce);var eue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,shape:r,size:a,src:o,srcSet:i,icon:l,className:c,rootClassName:u,style:d,alt:f,draggable:m,children:g,crossOrigin:h,gap:b=4,onError:p}=e,S=eue(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[C,x]=s.useState(1),[w,$]=s.useState(!1),[E,R]=s.useState(!0),I=s.useRef(null),O=s.useRef(null),T=Dr(t,I),{getPrefixCls:_,avatar:k}=s.useContext(jt),A=s.useContext(XP),j=()=>{if(!O.current||!I.current)return;const le=O.current.offsetWidth,re=I.current.offsetWidth;le!==0&&re!==0&&b*2{$(!0)},[]),s.useEffect(()=>{R(!0),x(1)},[o]),s.useEffect(j,[b]);const D=()=>{(p==null?void 0:p())!==!1&&R(!1)},F=Er(le=>{var re,fe;return(fe=(re=a??(A==null?void 0:A.size))!==null&&re!==void 0?re:le)!==null&&fe!==void 0?fe:"default"}),L=Object.keys(typeof F=="object"?F||{}:{}).some(le=>["xs","sm","md","lg","xl","xxl"].includes(le)),B=du(L),K=s.useMemo(()=>{if(typeof F!="object")return{};const le=Jc.find(fe=>B[fe]),re=F[le];return re?{width:re,height:re,fontSize:re&&(l||g)?re/2:18}:{}},[B,F,l,g]),W=_("avatar",n),V=Yn(W),[q,U,G]=cV(W,V),Y=oe({[`${W}-lg`]:F==="large",[`${W}-sm`]:F==="small"}),J=s.isValidElement(o),Q=r||(A==null?void 0:A.shape)||"circle",Z=oe(W,Y,k==null?void 0:k.className,`${W}-${Q}`,{[`${W}-image`]:J||o&&E,[`${W}-icon`]:!!l},G,V,c,u,U),ne=typeof F=="number"?{width:F,height:F,fontSize:l?F/2:18}:{};let ae;if(typeof o=="string"&&E)ae=s.createElement("img",{src:o,draggable:m,srcSet:i,onError:D,alt:f,crossOrigin:h});else if(J)ae=o;else if(l)ae=l;else if(w||C!==1){const le=`scale(${C})`,re={msTransform:le,WebkitTransform:le,transform:le};ae=s.createElement(Mr,{onResize:j},s.createElement("span",{className:`${W}-string`,ref:O,style:re},g))}else ae=s.createElement("span",{className:`${W}-string`,style:{opacity:0},ref:O},g);return q(s.createElement("span",Object.assign({},S,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ne),K),k==null?void 0:k.style),d),className:Z,ref:T}),ae))}),ef=e=>e?typeof e=="function"?e():e:null;function d4(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.bodyClassName,i=e.className,l=e.style;return s.createElement("div",{className:oe("".concat(n,"-content"),i),style:l},s.createElement("div",{className:oe("".concat(n,"-inner"),o),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var ad={shiftX:64,adjustY:1},od={adjustX:1,shiftY:!0},Go=[0,0],tue={left:{points:["cr","cl"],overflow:od,offset:[-4,0],targetOffset:Go},right:{points:["cl","cr"],overflow:od,offset:[4,0],targetOffset:Go},top:{points:["bc","tc"],overflow:ad,offset:[0,-4],targetOffset:Go},bottom:{points:["tc","bc"],overflow:ad,offset:[0,4],targetOffset:Go},topLeft:{points:["bl","tl"],overflow:ad,offset:[0,-4],targetOffset:Go},leftTop:{points:["tr","tl"],overflow:od,offset:[-4,0],targetOffset:Go},topRight:{points:["br","tr"],overflow:ad,offset:[0,-4],targetOffset:Go},rightTop:{points:["tl","tr"],overflow:od,offset:[4,0],targetOffset:Go},bottomRight:{points:["tr","br"],overflow:ad,offset:[0,4],targetOffset:Go},rightBottom:{points:["bl","br"],overflow:od,offset:[4,0],targetOffset:Go},bottomLeft:{points:["tl","bl"],overflow:ad,offset:[0,4],targetOffset:Go},leftBottom:{points:["br","bl"],overflow:od,offset:[-4,0],targetOffset:Go}},nue=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],rue=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,i=t.mouseEnterDelay,l=i===void 0?0:i,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,g=t.children,h=t.onVisibleChange,b=t.afterVisibleChange,p=t.transitionName,S=t.animation,C=t.motion,x=t.placement,w=x===void 0?"right":x,$=t.align,E=$===void 0?{}:$,R=t.destroyTooltipOnHide,I=R===void 0?!1:R,O=t.defaultVisible,T=t.getTooltipContainer,_=t.overlayInnerStyle;t.arrowContent;var k=t.overlay,A=t.id,j=t.showArrow,D=j===void 0?!0:j,F=t.classNames,L=t.styles,B=Ue(t,nue),K=Sf(A),W=s.useRef(null);s.useImperativeHandle(n,function(){return W.current});var V=P({},B);"visible"in t&&(V.popupVisible=t.visible);var q=function(){return s.createElement(d4,{key:"content",prefixCls:m,id:K,bodyClassName:F==null?void 0:F.body,overlayInnerStyle:P(P({},_),L==null?void 0:L.body)},k)},U=function(){var Y=s.Children.only(g),J=(Y==null?void 0:Y.props)||{},Q=P(P({},J),{},{"aria-describedby":k?K:null});return s.cloneElement(g,Q)};return s.createElement(yg,Me({popupClassName:oe(r,F==null?void 0:F.root),prefixCls:m,popup:q,action:o,builtinPlacements:tue,popupPlacement:w,ref:W,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:p,popupAnimation:S,popupMotion:C,defaultPopupVisible:O,autoDestroy:I,mouseLeaveDelay:u,popupStyle:P(P({},d),L==null?void 0:L.root),mouseEnterDelay:l,arrow:D},V),U())};const aue=s.forwardRef(rue);function u1(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,i=a,l=r*1/Math.sqrt(2),c=a-r*(1-1/Math.sqrt(2)),u=a-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*a-u,m=d,g=2*a-l,h=c,b=2*a-o,p=i,S=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),x=`polygon(${C}px 100%, 50% ${C}px, ${2*a-C}px 100%, ${C}px 100%)`,w=`path('M ${o} ${i} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${g} ${h} A ${r} ${r} 0 0 0 ${b} ${p} Z')`;return{arrowShadowWidth:S,arrowPath:w,arrowPolygon:x}}const dV=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:i,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${me(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},fV=8;function d1(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?fV:r}}function vh(e,t){return e?t:{}}function f4(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:i}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},dV(e,t,a)),{"&:before":{background:t}})]},vh(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${me(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),vh(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${me(i)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),vh(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),vh(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function oue(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const i=Object.assign(Object.assign({},o),a);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const qN={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"]}},iue={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"]}},lue=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function vV(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:i}=e,l=t/2,c={},u=d1({contentRadius:o,limitVerticalRadius:!0});return Object.keys(qN).forEach(d=>{const f=r&&iue[d]||qN[d],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[d]=m,lue.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-l-a;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=l+a;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-l-a;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=l+a;break}if(r)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-u.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":m.offset[0]=u.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":m.offset[1]=-u.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":m.offset[1]=u.arrowOffsetHorizontal*2-l;break}m.overflow=oue(d,u,t,n),i&&(m.htmlRegion="visibleFirst")}),c}const sue=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:g}=e,h=t(i).add(g).add(m).equal(),b=t(i).mul(2).add(g).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:b,minHeight:c,padding:`${me(e.calc(d).div(2).equal())} ${me(f)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(i,fV)}},[`${n}-content`]:{position:"relative"}}),Ly(e,(p,{darkColor:S})=>({[`&${n}-${p}`]:{[`${n}-inner`]:{backgroundColor:S},[`${n}-arrow`]:{"--antd-arrow-background-color":S}}}))),{"&-rtl":{direction:"rtl"}})},f4(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},cue=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},d1({contentRadius:e.borderRadius,limitVerticalRadius:!0})),u1(en(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),mV=(e,t=!0)=>dn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:i}=r,l=en(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:i});return[sue(l),Cf(r,"zoom-big-fast")]},cue,{resetStyle:!1,injectStyle:t})(e),uue=qs.map(e=>`${e}-inverse`),due=["success","processing","error","default","warning"];function f1(e,t=!0){return t?[].concat(ke(uue),ke(qs)).includes(e):qs.includes(e)}function fue(e){return due.includes(e)}function gV(e,t){const n=f1(t),r=oe({[`${e}-${t}`]:t&&n}),a={},o={},i=$a(t).toRgb(),c=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=c,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const vue=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:i}=e,{getPrefixCls:l}=s.useContext(jt),c=l("tooltip",t),[u,d,f]=mV(c),m=gV(c,o),g=m.arrowStyle,h=Object.assign(Object.assign({},i),m.overlayStyle),b=oe(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(s.createElement("div",{className:b,style:g},s.createElement("div",{className:`${c}-arrow`}),s.createElement(d4,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:h}),a)))};var mue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:i,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:g,arrow:h=!0,title:b,overlay:p,builtinPlacements:S,arrowPointAtCenter:C=!1,autoAdjustOverflow:x=!0,motion:w,getPopupContainer:$,placement:E="top",mouseEnterDelay:R=.1,mouseLeaveDelay:I=.1,overlayStyle:O,rootClassName:T,overlayClassName:_,styles:k,classNames:A}=e,j=mue(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"]),D=!!h,[,F]=Ur(),{getPopupContainer:L,getPrefixCls:B,direction:K,className:W,style:V,classNames:q,styles:U}=sr("tooltip"),G=ul(),Y=s.useRef(null),J=()=>{var je;(je=Y.current)===null||je===void 0||je.forceAlign()};s.useImperativeHandle(t,()=>{var je,Ee;return{forceAlign:J,forcePopupAlign:()=>{G.deprecated(!1,"forcePopupAlign","forceAlign"),J()},nativeElement:(je=Y.current)===null||je===void 0?void 0:je.nativeElement,popupElement:(Ee=Y.current)===null||Ee===void 0?void 0:Ee.popupElement}});const[Q,Z]=Nt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ne=!b&&!p&&b!==0,ae=je=>{var Ee,Le;Z(ne?!1:je),ne||((Ee=e.onOpenChange)===null||Ee===void 0||Ee.call(e,je),(Le=e.onVisibleChange)===null||Le===void 0||Le.call(e,je))},le=s.useMemo(()=>{var je,Ee;let Le=C;return typeof h=="object"&&(Le=(Ee=(je=h.pointAtCenter)!==null&&je!==void 0?je:h.arrowPointAtCenter)!==null&&Ee!==void 0?Ee:C),S||vV({arrowPointAtCenter:Le,autoAdjustOverflow:x,arrowWidth:D?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS,visibleFirst:!0})},[C,h,S,F]),re=s.useMemo(()=>b===0?b:p||b||"",[p,b]),fe=s.createElement(ii,{space:!0},typeof re=="function"?re():re),ue=B("tooltip",a),de=B(),ie=e["data-popover-inject"];let se=Q;!("open"in e)&&!("visible"in e)&&ne&&(se=!1);const ve=s.isValidElement(u)&&!xz(u)?u:s.createElement("span",null,u),he=ve.props,Ce=!he.className||typeof he.className=="string"?oe(he.className,o||`${ue}-open`):he.className,[pe,Se,ge]=mV(ue,!ie),ye=gV(ue,l),xe=ye.arrowStyle,$e=oe(_,{[`${ue}-rtl`]:K==="rtl"},ye.className,T,Se,ge,W,q.root,A==null?void 0:A.root),He=oe(q.body,A==null?void 0:A.body),[Te,Re]=fi("Tooltip",j.zIndex),Fe=s.createElement(aue,Object.assign({},j,{zIndex:Te,showArrow:D,placement:E,mouseEnterDelay:R,mouseLeaveDelay:I,prefixCls:ue,classNames:{root:$e,body:He},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xe),U.root),V),O),k==null?void 0:k.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},U.body),c),k==null?void 0:k.body),ye.overlayStyle)},getTooltipContainer:$||i||L,ref:Y,builtinPlacements:le,overlay:fe,visible:se,onVisibleChange:ae,afterVisibleChange:d??f,arrowContent:s.createElement("span",{className:`${ue}-arrow-content`}),motion:{motionName:pa(de,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:g??!!m}),se?zr(ve,{className:Ce}):ve);return pe(s.createElement(dg.Provider,{value:Re},Fe))}),Bn=gue;Bn._InternalPanelDoNotUseOrYouWillBeFired=vue;const pue=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:o,boxShadowSecondary:i,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:g,innerContentPadding:h,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},$n(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,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:c,boxShadow:i,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:a,borderBottom:g,padding:b},[`${t}-inner-content`]:{color:n,padding:h}})},f4(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},hue=e=>{const{componentCls:t}=e;return{[t]:qs.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},bue=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:o,zIndexPopupBase:i,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,g=m/2,h=m/2-t,b=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},u1(e)),d1({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:c,titlePadding:o?`${g}px ${b}px ${h}px`:0,titleBorderBottom:o?`${t}px ${u} ${d}`:"none",innerContentPadding:o?`${f}px ${b}px`:0})},pV=dn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=en(e,{popoverBg:t,popoverColor:n});return[pue(r),hue(r),Cf(r,"zoom-big")]},bue,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var yue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a!e&&!t?null:s.createElement(s.Fragment,null,e&&s.createElement("div",{className:`${n}-title`},e),t&&s.createElement("div",{className:`${n}-inner-content`},t)),Cue=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:o="top",title:i,content:l,children:c}=e,u=ef(i),d=ef(l),f=oe(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return s.createElement("div",{className:f,style:a},s.createElement("div",{className:`${n}-arrow`}),s.createElement(d4,Object.assign({},e,{className:t,prefixCls:n}),c||s.createElement(hV,{prefixCls:n,title:u,content:d})))},bV=e=>{const{prefixCls:t,className:n}=e,r=yue(e,["prefixCls","className"]),{getPrefixCls:a}=s.useContext(jt),o=a("popover",t),[i,l,c]=pV(o);return i(s.createElement(Cue,Object.assign({},r,{prefixCls:o,hashId:l,className:oe(n,c)})))};var Sue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,title:o,content:i,overlayClassName:l,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:g,overlayStyle:h={},styles:b,classNames:p}=e,S=Sue(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:C,className:x,style:w,classNames:$,styles:E}=sr("popover"),R=C("popover",a),[I,O,T]=pV(R),_=C(),k=oe(l,O,T,x,$.root,p==null?void 0:p.root),A=oe($.body,p==null?void 0:p.body),[j,D]=Nt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=(V,q)=>{D(V,!0),g==null||g(V,q)},L=V=>{V.keyCode===ot.ESC&&F(!1,V)},B=V=>{F(V)},K=ef(o),W=ef(i);return I(s.createElement(Bn,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m},S,{prefixCls:R,classNames:{root:k,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),w),h),b==null?void 0:b.root),body:Object.assign(Object.assign({},E.body),b==null?void 0:b.body)},ref:t,open:j,onOpenChange:B,overlay:K||W?s.createElement(hV,{prefixCls:R,title:K,content:W}):null,transitionName:pa(_,"zoom-big",S.transitionName),"data-popover-inject":!0}),zr(d,{onKeyDown:V=>{var q,U;s.isValidElement(d)&&((U=d==null?void 0:(q=d.props).onKeyDown)===null||U===void 0||U.call(q,V)),L(V)}})))}),Vi=xue;Vi._InternalPanelDoNotUseOrYouWillBeFired=bV;const UN=e=>{const{size:t,shape:n}=s.useContext(XP),r=s.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return s.createElement(XP.Provider,{value:r},e.children)},wue=e=>{var t,n,r,a;const{getPrefixCls:o,direction:i}=s.useContext(jt),{prefixCls:l,className:c,rootClassName:u,style:d,maxCount:f,maxStyle:m,size:g,shape:h,maxPopoverPlacement:b,maxPopoverTrigger:p,children:S,max:C}=e,x=o("avatar",l),w=`${x}-group`,$=Yn(x),[E,R,I]=cV(x,$),O=oe(w,{[`${w}-rtl`]:i==="rtl"},I,$,c,u,R),T=rr(S).map((A,j)=>zr(A,{key:`avatar-key-${j}`})),_=(C==null?void 0:C.count)||f,k=T.length;if(_&&_{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:a,textFontSize:o,textFontSizeSM:i,statusSize:l,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:m,calc:g}=e,h=`${r}-scroll-number`,b=Ly(e,(p,{darkColor:S})=>({[`&${t} ${t}-color-${p}`]:{background:S,[`&:not(${t}-count)`]:{color:S},"a:hover &":{background:S}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:o,lineHeight:me(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:g(d).div(2).equal(),boxShadow:`0 0 0 ${me(a)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:i,lineHeight:me(f),borderRadius:g(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${me(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${me(a)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Nue,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Oue,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}}}),b),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Iue,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Rue,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Mue,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Tue,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[h]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${h}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},yV=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:a}=e,o=t,i=n,l=e.colorTextLightSolid,c=e.colorError,u=e.colorErrorHover;return en(e,{badgeFontHeight:o,badgeShadowSize:i,badgeTextColor:l,badgeColor:c,badgeColorHover:u,badgeShadowColor:a,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},CV=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:a}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*a,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},jue=dn("Badge",e=>{const t=yV(e);return _ue(t)},CV),Fue=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:a,calc:o}=e,i=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=Ly(e,(u,{darkColor:d})=>({[`&${i}-color-${u}`]:{background:d,color:d}}));return{[l]:{position:"relative"},[i]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{position:"absolute",top:r,padding:`0 ${me(e.paddingXS)}`,color:e.colorPrimary,lineHeight:me(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${i}-text`]:{color:e.badgeTextColor},[`${i}-corner`]:{position:"absolute",top:"100%",width:a,height:a,color:"currentcolor",border:`${me(o(a).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${i}-placement-end`]:{insetInlineEnd:o(a).mul(-1).equal(),borderEndEndRadius:0,[`${i}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${i}-placement-start`]:{insetInlineStart:o(a).mul(-1).equal(),borderEndStartRadius:0,[`${i}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Due=dn(["Badge","Ribbon"],e=>{const t=yV(e);return Fue(t)},CV),kue=e=>{const{className:t,prefixCls:n,style:r,color:a,children:o,text:i,placement:l="end",rootClassName:c}=e,{getPrefixCls:u,direction:d}=s.useContext(jt),f=u("ribbon",n),m=`${f}-wrapper`,[g,h,b]=Due(f,m),p=f1(a,!1),S=oe(f,`${f}-placement-${l}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${a}`]:p},t),C={},x={};return a&&!p&&(C.background=a,x.color=a),g(s.createElement("div",{className:oe(m,c,h,b)},o,s.createElement("div",{className:oe(S,h),style:Object.assign(Object.assign({},C),r)},s.createElement("span",{className:`${f}-text`},i),s.createElement("div",{className:`${f}-corner`,style:x}))))},GN=e=>{const{prefixCls:t,value:n,current:r,offset:a=0}=e;let o;return a&&(o={position:"absolute",top:`${a}00%`,left:0}),s.createElement("span",{style:o,className:oe(`${t}-only-unit`,{current:r})},n)};function Aue(e,t,n){let r=e,a=0;for(;(r+10)%10!==t;)r+=n,a+=n;return a}const Lue=e=>{const{prefixCls:t,count:n,value:r}=e,a=Number(r),o=Math.abs(n),[i,l]=s.useState(a),[c,u]=s.useState(o),d=()=>{l(a),u(o)};s.useEffect(()=>{const g=setTimeout(d,1e3);return()=>clearTimeout(g)},[a]);let f,m;if(i===a||Number.isNaN(a)||Number.isNaN(i))f=[s.createElement(GN,Object.assign({},e,{key:a,current:!0}))],m={transition:"none"};else{f=[];const g=a+10,h=[];for(let C=a;C<=g;C+=1)h.push(C);const b=cC%10===i);f=(b<0?h.slice(0,p+1):h.slice(p)).map((C,x)=>{const w=C%10;return s.createElement(GN,Object.assign({},e,{key:C,value:w,offset:b<0?x-p:x,current:x===p}))}),m={transform:`translateY(${-Aue(i,a,b)}00%)`}}return s.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:d},f)};var Bue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,count:r,className:a,motionClassName:o,style:i,title:l,show:c,component:u="sup",children:d}=e,f=Bue(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=s.useContext(jt),g=m("scroll-number",n),h=Object.assign(Object.assign({},f),{"data-show":c,style:i,className:oe(g,a,o),title:l});let b=r;if(r&&Number(r)%1===0){const p=String(r).split("");b=s.createElement("bdi",null,p.map((S,C)=>s.createElement(Lue,{prefixCls:g,count:Number(r),value:S,key:p.length-C})))}return i!=null&&i.borderColor&&(h.style=Object.assign(Object.assign({},i),{boxShadow:`0 0 0 1px ${i.borderColor} inset`})),d?zr(d,p=>({className:oe(`${g}-custom-component`,p==null?void 0:p.className,o)})):s.createElement(u,Object.assign({},h,{ref:t}),b)});var Hue=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:l,scrollNumberPrefixCls:c,children:u,status:d,text:f,color:m,count:g=null,overflowCount:h=99,dot:b=!1,size:p="default",title:S,offset:C,style:x,className:w,rootClassName:$,classNames:E,styles:R,showZero:I=!1}=e,O=Hue(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:T,direction:_,badge:k}=s.useContext(jt),A=T("badge",l),[j,D,F]=jue(A),L=g>h?`${h}+`:g,B=L==="0"||L===0||f==="0"||f===0,K=g===null||B&&!I,W=(d!=null||m!=null)&&K,V=d!=null||!B,q=b&&!B,U=q?"":L,G=s.useMemo(()=>((U==null||U==="")&&(f==null||f==="")||B&&!I)&&!q,[U,B,I,q,f]),Y=s.useRef(g);G||(Y.current=g);const J=Y.current,Q=s.useRef(U);G||(Q.current=U);const Z=Q.current,ne=s.useRef(q);G||(ne.current=q);const ae=s.useMemo(()=>{if(!C)return Object.assign(Object.assign({},k==null?void 0:k.style),x);const he={marginTop:C[1]};return _==="rtl"?he.left=Number.parseInt(C[0],10):he.right=-Number.parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},he),k==null?void 0:k.style),x)},[_,C,x,k==null?void 0:k.style]),le=S??(typeof J=="string"||typeof J=="number"?J:void 0),re=!G&&(f===0?I:!!f&&f!==!0),fe=re?s.createElement("span",{className:`${A}-status-text`},f):null,ue=!J||typeof J!="object"?void 0:zr(J,he=>({style:Object.assign(Object.assign({},ae),he.style)})),de=f1(m,!1),ie=oe(E==null?void 0:E.indicator,(n=k==null?void 0:k.classNames)===null||n===void 0?void 0:n.indicator,{[`${A}-status-dot`]:W,[`${A}-status-${d}`]:!!d,[`${A}-color-${m}`]:de}),se={};m&&!de&&(se.color=m,se.background=m);const ve=oe(A,{[`${A}-status`]:W,[`${A}-not-a-wrapper`]:!u,[`${A}-rtl`]:_==="rtl"},w,$,k==null?void 0:k.className,(r=k==null?void 0:k.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,D,F);if(!u&&W&&(f||V||!K)){const he=ae.color;return j(s.createElement("span",Object.assign({},O,{className:ve,style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.root),(a=k==null?void 0:k.styles)===null||a===void 0?void 0:a.root),ae)}),s.createElement("span",{className:ie,style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.indicator),(o=k==null?void 0:k.styles)===null||o===void 0?void 0:o.indicator),se)}),re&&s.createElement("span",{style:{color:he},className:`${A}-status-text`},f)))}return j(s.createElement("span",Object.assign({ref:t},O,{className:ve,style:Object.assign(Object.assign({},(i=k==null?void 0:k.styles)===null||i===void 0?void 0:i.root),R==null?void 0:R.root)}),u,s.createElement(ga,{visible:!G,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:he})=>{var Ce,pe;const Se=T("scroll-number",c),ge=ne.current,ye=oe(E==null?void 0:E.indicator,(Ce=k==null?void 0:k.classNames)===null||Ce===void 0?void 0:Ce.indicator,{[`${A}-dot`]:ge,[`${A}-count`]:!ge,[`${A}-count-sm`]:p==="small",[`${A}-multiple-words`]:!ge&&Z&&Z.toString().length>1,[`${A}-status-${d}`]:!!d,[`${A}-color-${m}`]:de});let xe=Object.assign(Object.assign(Object.assign({},R==null?void 0:R.indicator),(pe=k==null?void 0:k.styles)===null||pe===void 0?void 0:pe.indicator),ae);return m&&!de&&(xe=xe||{},xe.background=m),s.createElement(zue,{prefixCls:Se,show:!G,motionClassName:he,className:ye,count:Z,title:le,style:xe,key:"scrollNumber"},ue)}),fe))}),Io=Vue;Io.Ribbon=kue;var Wue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Kue=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Wue}))},Wl=s.forwardRef(Kue),que=ot.ESC,Uue=ot.TAB;function Gue(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,i=s.useRef(!1),l=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),i.current=!0,!0):!1},u=function(f){switch(f.keyCode){case que:l();break;case Uue:{var m=!1;i.current||(m=c()),m?f.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),a&&ln(c,3),function(){window.removeEventListener("keydown",u),i.current=!1}):function(){i.current=!1}},[t])}var Yue=s.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=s.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),i=Dr(t,Zs(o));return ee.createElement(ee.Fragment,null,r&&ee.createElement("div",{className:"".concat(a,"-arrow")}),ee.cloneElement(o,{ref:Fi(o)?i:void 0}))}),id={adjustX:1,adjustY:1},ld=[0,0],Xue={topLeft:{points:["bl","tl"],overflow:id,offset:[0,-4],targetOffset:ld},top:{points:["bc","tc"],overflow:id,offset:[0,-4],targetOffset:ld},topRight:{points:["br","tr"],overflow:id,offset:[0,-4],targetOffset:ld},bottomLeft:{points:["tl","bl"],overflow:id,offset:[0,4],targetOffset:ld},bottom:{points:["tc","bc"],overflow:id,offset:[0,4],targetOffset:ld},bottomRight:{points:["tr","br"],overflow:id,offset:[0,4],targetOffset:ld}},Que=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Jue(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,i=o===void 0?"rc-dropdown":o,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,g=m===void 0?Xue:m,h=e.getPopupContainer,b=e.showAction,p=e.hideAction,S=e.overlayClassName,C=e.overlayStyle,x=e.visible,w=e.trigger,$=w===void 0?["hover"]:w,E=e.autoFocus,R=e.overlay,I=e.children,O=e.onVisibleChange,T=Ue(e,Que),_=ee.useState(),k=ce(_,2),A=k[0],j=k[1],D="visible"in e?x:A,F=ee.useRef(null),L=ee.useRef(null),B=ee.useRef(null);ee.useImperativeHandle(t,function(){return F.current});var K=function(Z){j(Z),O==null||O(Z)};Gue({visible:D,triggerRef:B,onVisibleChange:K,autoFocus:E,overlayRef:L});var W=function(Z){var ne=e.onOverlayClick;j(!1),ne&&ne(Z)},V=function(){return ee.createElement(Yue,{ref:L,overlay:R,prefixCls:i,arrow:a})},q=function(){return typeof R=="function"?V:V()},U=function(){var Z=e.minOverlayWidthMatchTrigger,ne=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Z:!ne},G=function(){var Z=e.openClassName;return Z!==void 0?Z:"".concat(i,"-open")},Y=ee.cloneElement(I,{className:oe((n=I.props)===null||n===void 0?void 0:n.className,D&&G()),ref:Fi(I)?Dr(B,Zs(I)):void 0}),J=p;return!J&&$.indexOf("contextMenu")!==-1&&(J=["click"]),ee.createElement(yg,Me({builtinPlacements:g},T,{prefixCls:i,ref:F,popupClassName:oe(S,z({},"".concat(i,"-show-arrow"),a)),popupStyle:C,action:$,showAction:b,hideAction:J,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:D,stretch:U()?"minWidth":"",popup:q(),onPopupVisibleChange:K,onPopupClick:W,getPopupContainer:h}),Y)}const SV=ee.forwardRef(Jue),Zue=e=>typeof e!="object"&&typeof e!="function"||e===null;var xV=s.createContext(null);function wV(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function $V(e){var t=s.useContext(xV);return wV(t,e)}var ede=["children","locked"],Li=s.createContext(null);function tde(e,t){var n=P({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function Dm(e){var t=e.children,n=e.locked,r=Ue(e,ede),a=s.useContext(Li),o=Hl(function(){return tde(a,r)},[a,r],function(i,l){return!n&&(i[0]!==l[0]||!ti(i[1],l[1],!0))});return s.createElement(Li.Provider,{value:o},t)}var nde=[],EV=s.createContext(null);function v1(){return s.useContext(EV)}var PV=s.createContext(nde);function Ef(e){var t=s.useContext(PV);return s.useMemo(function(){return e!==void 0?[].concat(ke(t),[e]):t},[t,e])}var OV=s.createContext(null),v4=s.createContext({});function YN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(yf(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),i=null;return a&&!Number.isNaN(o)?i=o:r&&i===null&&(i=0),r&&e.disabled&&(i=null),i!==null&&(i>=0||t&&i<0)}return!1}function rde(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ke(e.querySelectorAll("*")).filter(function(r){return YN(r,t)});return YN(e,t)&&n.unshift(e),n}var QP=ot.LEFT,JP=ot.RIGHT,ZP=ot.UP,W0=ot.DOWN,K0=ot.ENTER,IV=ot.ESC,Sv=ot.HOME,xv=ot.END,XN=[ZP,W0,QP,JP];function ade(e,t,n,r){var a,o="prev",i="next",l="children",c="parent";if(e==="inline"&&r===K0)return{inlineTrigger:!0};var u=z(z({},ZP,o),W0,i),d=z(z(z(z({},QP,n?i:o),JP,n?o:i),W0,l),K0,l),f=z(z(z(z(z(z({},ZP,o),W0,i),K0,l),IV,c),QP,n?l:c),JP,n?c:l),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},g=(a=m["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(g){case o:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function ode(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function ide(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function m4(e,t){var n=rde(e,!0);return n.filter(function(r){return t.has(r)})}function QN(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=m4(e,t),o=a.length,i=a.findIndex(function(l){return n===l});return r<0?i===-1?i=o-1:i-=1:r>0&&(i+=1),i=(i+o)%o,a[i]}var eO=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(i){var l=document.querySelector("[data-menu-id='".concat(wV(n,i),"']"));l&&(r.add(l),o.set(l,i),a.set(i,l))}),{elements:r,key2element:a,element2key:o}};function lde(e,t,n,r,a,o,i,l,c,u){var d=s.useRef(),f=s.useRef();f.current=t;var m=function(){ln.cancel(d.current)};return s.useEffect(function(){return function(){m()}},[]),function(g){var h=g.which;if([].concat(XN,[K0,IV,Sv,xv]).includes(h)){var b=o(),p=eO(b,r),S=p,C=S.elements,x=S.key2element,w=S.element2key,$=x.get(t),E=ide($,C),R=w.get(E),I=ade(e,i(R,!0).length===1,n,h);if(!I&&h!==Sv&&h!==xv)return;(XN.includes(h)||[Sv,xv].includes(h))&&g.preventDefault();var O=function(L){if(L){var B=L,K=L.querySelector("a");K!=null&&K.getAttribute("href")&&(B=K);var W=w.get(L);l(W),m(),d.current=ln(function(){f.current===W&&B.focus()})}};if([Sv,xv].includes(h)||I.sibling||!E){var T;!E||e==="inline"?T=a.current:T=ode(E);var _,k=m4(T,C);h===Sv?_=k[0]:h===xv?_=k[k.length-1]:_=QN(T,C,E,I.offset),O(_)}else if(I.inlineTrigger)c(R);else if(I.offset>0)c(R,!0),m(),d.current=ln(function(){p=eO(b,r);var F=E.getAttribute("aria-controls"),L=document.getElementById(F),B=QN(L,p.elements);O(B)},5);else if(I.offset<0){var A=i(R,!0),j=A[A.length-2],D=x.get(j);c(j,!1),O(D)}}u==null||u(g)}}function sde(e){Promise.resolve().then(e)}var g4="__RC_UTIL_PATH_SPLIT__",JN=function(t){return t.join(g4)},cde=function(t){return t.split(g4)},tO="rc-menu-more";function ude(){var e=s.useState({}),t=ce(e,2),n=t[1],r=s.useRef(new Map),a=s.useRef(new Map),o=s.useState([]),i=ce(o,2),l=i[0],c=i[1],u=s.useRef(0),d=s.useRef(!1),f=function(){d.current||n({})},m=s.useCallback(function(x,w){var $=JN(w);a.current.set($,x),r.current.set(x,$),u.current+=1;var E=u.current;sde(function(){E===u.current&&f()})},[]),g=s.useCallback(function(x,w){var $=JN(w);a.current.delete($),r.current.delete(x)},[]),h=s.useCallback(function(x){c(x)},[]),b=s.useCallback(function(x,w){var $=r.current.get(x)||"",E=cde($);return w&&l.includes(E[0])&&E.unshift(tO),E},[l]),p=s.useCallback(function(x,w){return x.filter(function($){return $!==void 0}).some(function($){var E=b($,!0);return E.includes(w)})},[b]),S=function(){var w=ke(r.current.keys());return l.length&&w.push(tO),w},C=s.useCallback(function(x){var w="".concat(r.current.get(x)).concat(g4),$=new Set;return ke(a.current.keys()).forEach(function(E){E.startsWith(w)&&$.add(a.current.get(E))}),$},[]);return s.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:g,refreshOverflowKeys:h,isSubPathKey:p,getKeyPath:b,getKeys:S,getSubPathKeys:C}}function Xv(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&(C.motionAppear=!1);var x=C.onVisibleChanged;return C.onVisibleChanged=function(w){return!m.current&&!w&&p(!0),x==null?void 0:x(w)},b?null:s.createElement(Dm,{mode:o,locked:!m.current},s.createElement(ga,Me({visible:S},C,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(w){var $=w.className,E=w.style;return s.createElement(p4,{id:t,className:$,style:E},a)}))}var Ode=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ide=["active"],Rde=s.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,o=e.eventKey;e.warnKey;var i=e.disabled,l=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,g=e.popupStyle,h=e.onClick,b=e.onMouseEnter,p=e.onMouseLeave,S=e.onTitleClick,C=e.onTitleMouseEnter,x=e.onTitleMouseLeave,w=Ue(e,Ode),$=$V(o),E=s.useContext(Li),R=E.prefixCls,I=E.mode,O=E.openKeys,T=E.disabled,_=E.overflowDisabled,k=E.activeKey,A=E.selectedKeys,j=E.itemIcon,D=E.expandIcon,F=E.onItemClick,L=E.onOpenChange,B=E.onActive,K=s.useContext(v4),W=K._internalRenderSubMenuItem,V=s.useContext(OV),q=V.isSubPathKey,U=Ef(),G="".concat(R,"-submenu"),Y=T||i,J=s.useRef(),Q=s.useRef(),Z=u??j,ne=d??D,ae=O.includes(o),le=!_&&ae,re=q(A,o),fe=RV(o,Y,C,x),ue=fe.active,de=Ue(fe,Ide),ie=s.useState(!1),se=ce(ie,2),ve=se[0],he=se[1],Ce=function(Oe){Y||he(Oe)},pe=function(Oe){Ce(!0),b==null||b({key:o,domEvent:Oe})},Se=function(Oe){Ce(!1),p==null||p({key:o,domEvent:Oe})},ge=s.useMemo(function(){return ue||(I!=="inline"?ve||q([k],o):!1)},[I,ue,k,ve,o,q]),ye=MV(U.length),xe=function(Oe){Y||(S==null||S({key:o,domEvent:Oe}),I==="inline"&&L(o,!ae))},$e=Xv(function(ze){h==null||h(Ub(ze)),F(ze)}),He=function(Oe){I!=="inline"&&L(o,Oe)},Te=function(){B(o)},Re=$&&"".concat($,"-popup"),Fe=s.useMemo(function(){return s.createElement(TV,{icon:I!=="horizontal"?ne:void 0,props:P(P({},e),{},{isOpen:le,isSubMenu:!0})},s.createElement("i",{className:"".concat(G,"-arrow")}))},[I,ne,e,le,G]),je=s.createElement("div",Me({role:"menuitem",style:ye,className:"".concat(G,"-title"),tabIndex:Y?null:-1,ref:J,title:typeof a=="string"?a:null,"data-menu-id":_&&$?null:$,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Re,"aria-disabled":Y,onClick:xe,onFocus:Te},de),a,Fe),Ee=s.useRef(I);if(I!=="inline"&&U.length>1?Ee.current="vertical":Ee.current=I,!_){var Le=Ee.current;je=s.createElement(Ede,{mode:Le,prefixCls:G,visible:!l&&le&&I!=="inline",popupClassName:f,popupOffset:m,popupStyle:g,popup:s.createElement(Dm,{mode:Le==="horizontal"?"vertical":Le},s.createElement(p4,{id:Re,ref:Q},c)),disabled:Y,onVisibleChange:He},je)}var Pe=s.createElement(_i.Item,Me({ref:t,role:"none"},w,{component:"li",style:n,className:oe(G,"".concat(G,"-").concat(I),r,z(z(z(z({},"".concat(G,"-open"),le),"".concat(G,"-active"),ge),"".concat(G,"-selected"),re),"".concat(G,"-disabled"),Y)),onMouseEnter:pe,onMouseLeave:Se}),je,!_&&s.createElement(Pde,{id:Re,open:le,keyPath:U},c));return W&&(Pe=W(Pe,e,{selected:re,active:ge,open:le,disabled:Y})),s.createElement(Dm,{onItemClick:$e,mode:I==="horizontal"?"vertical":I,itemIcon:Z,expandIcon:ne},Pe)}),m1=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Ef(n),o=h4(r,a),i=v1();s.useEffect(function(){if(i)return i.registerPath(n,a),function(){i.unregisterPath(n,a)}},[a]);var l;return i?l=o:l=s.createElement(Rde,Me({ref:t},e),o),s.createElement(PV.Provider,{value:a},l)});function b4(e){var t=e.className,n=e.style,r=s.useContext(Li),a=r.prefixCls,o=v1();return o?null:s.createElement("li",{role:"separator",className:oe("".concat(a,"-item-divider"),t),style:n})}var Mde=["className","title","eventKey","children"],Tde=s.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=Ue(e,Mde),i=s.useContext(Li),l=i.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",Me({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:oe(c,n)}),s.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(c,"-list")},a))}),y4=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Ef(n),o=h4(r,a),i=v1();return i?o:s.createElement(Tde,Me({ref:t},nn(e,["warnKey"])),o)}),Nde=["label","children","key","type","extra"];function nO(e,t,n){var r=t.item,a=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(l,c){if(l&&it(l)==="object"){var u=l,d=u.label,f=u.children,m=u.key,g=u.type,h=u.extra,b=Ue(u,Nde),p=m??"tmp-".concat(c);return f||g==="group"?g==="group"?s.createElement(a,Me({key:p},b,{title:d}),nO(f,t,n)):s.createElement(o,Me({key:p},b,{title:d}),nO(f,t,n)):g==="divider"?s.createElement(i,Me({key:p},b)):s.createElement(r,Me({key:p},b,{extra:h}),d,(!!h||h===0)&&s.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(l){return l})}function e5(e,t,n,r,a){var o=e,i=P({divider:b4,item:Sg,group:y4,submenu:m1},r);return t&&(o=nO(t,i,a)),h4(o,n)}var _de=["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"],yc=[],jde=s.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,o=a===void 0?"rc-menu":a,i=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,g=r.direction,h=r.id,b=r.mode,p=b===void 0?"vertical":b,S=r.inlineCollapsed,C=r.disabled,x=r.disabledOverflow,w=r.subMenuOpenDelay,$=w===void 0?.1:w,E=r.subMenuCloseDelay,R=E===void 0?.1:E,I=r.forceSubMenuRender,O=r.defaultOpenKeys,T=r.openKeys,_=r.activeKey,k=r.defaultActiveFirst,A=r.selectable,j=A===void 0?!0:A,D=r.multiple,F=D===void 0?!1:D,L=r.defaultSelectedKeys,B=r.selectedKeys,K=r.onSelect,W=r.onDeselect,V=r.inlineIndent,q=V===void 0?24:V,U=r.motion,G=r.defaultMotions,Y=r.triggerSubMenuAction,J=Y===void 0?"hover":Y,Q=r.builtinPlacements,Z=r.itemIcon,ne=r.expandIcon,ae=r.overflowedIndicator,le=ae===void 0?"...":ae,re=r.overflowedIndicatorPopupClassName,fe=r.getPopupContainer,ue=r.onClick,de=r.onOpenChange,ie=r.onKeyDown;r.openAnimation,r.openTransitionName;var se=r._internalRenderMenuItem,ve=r._internalRenderSubMenuItem,he=r._internalComponents,Ce=Ue(r,_de),pe=s.useMemo(function(){return[e5(m,f,yc,he,o),e5(m,f,yc,{},o)]},[m,f,he]),Se=ce(pe,2),ge=Se[0],ye=Se[1],xe=s.useState(!1),$e=ce(xe,2),He=$e[0],Te=$e[1],Re=s.useRef(),Fe=fde(h),je=g==="rtl",Ee=Nt(O,{value:T,postState:function(Wt){return Wt||yc}}),Le=ce(Ee,2),Pe=Le[0],ze=Le[1],Oe=function(Wt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Tn(){ze(Wt),de==null||de(Wt)}Ht?Ua.flushSync(Tn):Tn()},we=s.useState(Pe),_e=ce(we,2),Be=_e[0],Qe=_e[1],lt=s.useRef(!1),Ke=s.useMemo(function(){return(p==="inline"||p==="vertical")&&S?["vertical",S]:[p,!1]},[p,S]),et=ce(Ke,2),st=et[0],Ze=et[1],vt=st==="inline",Ot=s.useState(st),xt=ce(Ot,2),mt=xt[0],yt=xt[1],bt=s.useState(Ze),tt=ce(bt,2),Ye=tt[0],Ne=tt[1];s.useEffect(function(){yt(st),Ne(Ze),lt.current&&(vt?ze(Be):Oe(yc))},[st,Ze]);var We=s.useState(0),rt=ce(We,2),ct=rt[0],At=rt[1],pt=ct>=ge.length-1||mt!=="horizontal"||x;s.useEffect(function(){vt&&Qe(Pe)},[Pe]),s.useEffect(function(){return lt.current=!0,function(){lt.current=!1}},[]);var ft=ude(),ut=ft.registerPath,Xt=ft.unregisterPath,Kt=ft.refreshOverflowKeys,Ut=ft.isSubPathKey,kt=ft.getKeyPath,Pt=ft.getKeys,Lt=ft.getSubPathKeys,nt=s.useMemo(function(){return{registerPath:ut,unregisterPath:Xt}},[ut,Xt]),St=s.useMemo(function(){return{isSubPathKey:Ut}},[Ut]);s.useEffect(function(){Kt(pt?yc:ge.slice(ct+1).map(function(Nn){return Nn.key}))},[ct,pt]);var gt=Nt(_||k&&((n=ge[0])===null||n===void 0?void 0:n.key),{value:_}),qe=ce(gt,2),at=qe[0],dt=qe[1],Tt=Xv(function(Nn){dt(Nn)}),Qt=Xv(function(){dt(void 0)});s.useImperativeHandle(t,function(){return{list:Re.current,focus:function(Wt){var Ht,Tn=Pt(),Bt=eO(Tn,Fe),zt=Bt.elements,Pn=Bt.key2element,Jn=Bt.element2key,Zn=m4(Re.current,zt),xn=at??(Zn[0]?Jn.get(Zn[0]):(Ht=ge.find(function(Cn){return!Cn.props.disabled}))===null||Ht===void 0?void 0:Ht.key),Cr=Pn.get(xn);if(xn&&Cr){var Tr;Cr==null||(Tr=Cr.focus)===null||Tr===void 0||Tr.call(Cr,Wt)}}}});var Ct=Nt(L||[],{value:B,postState:function(Wt){return Array.isArray(Wt)?Wt:Wt==null?yc:[Wt]}}),Mt=ce(Ct,2),Vt=Mt[0],mn=Mt[1],Mn=function(Wt){if(j){var Ht=Wt.key,Tn=Vt.includes(Ht),Bt;F?Tn?Bt=Vt.filter(function(Pn){return Pn!==Ht}):Bt=[].concat(ke(Vt),[Ht]):Bt=[Ht],mn(Bt);var zt=P(P({},Wt),{},{selectedKeys:Bt});Tn?W==null||W(zt):K==null||K(zt)}!F&&Pe.length&&mt!=="inline"&&Oe(yc)},yn=Xv(function(Nn){ue==null||ue(Ub(Nn)),Mn(Nn)}),cr=Xv(function(Nn,Wt){var Ht=Pe.filter(function(Bt){return Bt!==Nn});if(Wt)Ht.push(Nn);else if(mt!=="inline"){var Tn=Lt(Nn);Ht=Ht.filter(function(Bt){return!Tn.has(Bt)})}ti(Pe,Ht,!0)||Oe(Ht,!0)}),ur=function(Wt,Ht){var Tn=Ht??!Pe.includes(Wt);cr(Wt,Tn)},kr=lde(mt,at,je,Fe,Re,Pt,kt,dt,ur,ie);s.useEffect(function(){Te(!0)},[]);var yr=s.useMemo(function(){return{_internalRenderMenuItem:se,_internalRenderSubMenuItem:ve}},[se,ve]),Pr=mt!=="horizontal"||x?ge:ge.map(function(Nn,Wt){return s.createElement(Dm,{key:Nn.key,overflowDisabled:Wt>ct},Nn)}),mr=s.createElement(_i,Me({id:h,ref:Re,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Sg,className:oe(o,"".concat(o,"-root"),"".concat(o,"-").concat(mt),c,z(z({},"".concat(o,"-inline-collapsed"),Ye),"".concat(o,"-rtl"),je),i),dir:g,style:l,role:"menu",tabIndex:d,data:Pr,renderRawItem:function(Wt){return Wt},renderRawRest:function(Wt){var Ht=Wt.length,Tn=Ht?ge.slice(-Ht):null;return s.createElement(m1,{eventKey:tO,title:le,disabled:pt,internalPopupClose:Ht===0,popupClassName:re},Tn)},maxCount:mt!=="horizontal"||x?_i.INVALIDATE:_i.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Wt){At(Wt)},onKeyDown:kr},Ce));return s.createElement(v4.Provider,{value:yr},s.createElement(xV.Provider,{value:Fe},s.createElement(Dm,{prefixCls:o,rootClassName:i,mode:mt,openKeys:Pe,rtl:je,disabled:C,motion:He?U:null,defaultMotions:He?G:null,activeKey:at,onActive:Tt,onInactive:Qt,selectedKeys:Vt,inlineIndent:q,subMenuOpenDelay:$,subMenuCloseDelay:R,forceSubMenuRender:I,builtinPlacements:Q,triggerSubMenuAction:J,getPopupContainer:fe,itemIcon:Z,expandIcon:ne,onItemClick:yn,onOpenChange:cr},s.createElement(OV.Provider,{value:St},mr),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(EV.Provider,{value:nt},ye)))))}),Pf=jde;Pf.Item=Sg;Pf.SubMenu=m1;Pf.ItemGroup=y4;Pf.Divider=b4;var Fde={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"},Dde=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Fde}))},kde=s.forwardRef(Dde);const _V=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Ade=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:o,headerPadding:i,headerColor:l,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:i,color:l,lineHeight:me(o),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},jV=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:i,colorTextLightSolid:l,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+i*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},FV=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],DV=dn("Layout",Ade,jV,{deprecatedTokens:FV}),Lde=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:o,triggerHeight:i,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:g,lightTriggerColor:h,lightTriggerBg:b,bodyBg:p}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:i},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:i,color:l,lineHeight:me(i),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${me(m)} ${me(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(d).mul(-1).equal(),borderRadius:`${me(m)} 0 0 ${me(m)}`}},"&-light":{background:g,[`${t}-trigger`]:{color:h,background:b},[`${t}-zero-width-trigger`]:{color:h,background:b,border:`1px solid ${p}`,borderInlineStart:0}}}}},Bde=dn(["Layout","Sider"],Lde,jV,{deprecatedTokens:FV});var zde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),g1=s.createContext({}),Vde=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),kV=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:i=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:h,onCollapse:b,onBreakpoint:p}=e,S=zde(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=s.useContext(_V),[x,w]=s.useState("collapsed"in e?e.collapsed:i),[$,E]=s.useState(!1);s.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const R=(Z,ne)=>{"collapsed"in e||w(Z),b==null||b(Z,ne)},{getPrefixCls:I,direction:O}=s.useContext(jt),T=I("layout-sider",n),[_,k,A]=Bde(T),j=s.useRef(null);j.current=Z=>{E(Z.matches),p==null||p(Z.matches),x!==Z.matches&&R(Z.matches,"responsive")},s.useEffect(()=>{function Z(ae){var le;return(le=j.current)===null||le===void 0?void 0:le.call(j,ae)}let ne;return typeof(window==null?void 0:window.matchMedia)<"u"&&h&&h in t5&&(ne=window.matchMedia(`screen and (max-width: ${t5[h]})`),iV(ne,Z),Z(ne)),()=>{lV(ne,Z)}},[h]),s.useEffect(()=>{const Z=Vde("ant-sider-");return C.addSider(Z),()=>C.removeSider(Z)},[]);const D=()=>{R(!x,"clickTrigger")},F=nn(S,["collapsed"]),L=x?m:f,B=Hde(L)?`${L}px`:String(L),K=Number.parseFloat(String(m||0))===0?s.createElement("span",{onClick:D,className:oe(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${d?"right":"left"}`),style:g},a||s.createElement(kde,null)):null,W=O==="rtl"==!d,U={expanded:W?s.createElement(oi,null):s.createElement(Wl,null),collapsed:W?s.createElement(Wl,null):s.createElement(oi,null)}[x?"collapsed":"expanded"],G=a!==null?K||s.createElement("div",{className:`${T}-trigger`,onClick:D,style:{width:B}},a||U):null,Y=Object.assign(Object.assign({},c),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),J=oe(T,`${T}-${l}`,{[`${T}-collapsed`]:!!x,[`${T}-has-trigger`]:u&&a!==null&&!K,[`${T}-below`]:!!$,[`${T}-zero-width`]:Number.parseFloat(B)===0},r,k,A),Q=s.useMemo(()=>({siderCollapsed:x}),[x]);return _(s.createElement(g1.Provider,{value:Q},s.createElement("aside",Object.assign({className:J},F,{style:Y,ref:t}),s.createElement("div",{className:`${T}-children`},o),u||$&&K?G:null)))});var Wde={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"},Kde=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Wde}))},p1=s.forwardRef(Kde);const Gb=s.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var qde=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=qde(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=s.useContext(jt),i=o("menu",t),l=oe({[`${i}-item-divider-dashed`]:!!r},n);return s.createElement(b4,Object.assign({className:l},a))},LV=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:i,extra:l}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=s.useContext(Gb),g=x=>{const w=r==null?void 0:r[0],$=s.createElement("span",{className:oe(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},r);return(!a||s.isValidElement(r)&&r.type==="span")&&r&&x&&u&&typeof w=="string"?s.createElement("div",{className:`${c}-inline-collapsed-noicon`},w.charAt(0)):$},{siderCollapsed:h}=s.useContext(g1);let b=o;typeof o>"u"?b=u?r:"":o===!1&&(b="");const p={title:b};!h&&!m&&(p.title=null,p.open=!1);const S=rr(r).length;let C=s.createElement(Sg,Object.assign({},nn(e,["title","icon","danger"]),{className:oe({[`${c}-item-danger`]:i,[`${c}-item-only-child`]:(a?S+1:S)===1},n),title:typeof o=="string"?o:void 0}),zr(a,{className:oe(s.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),g(m));return f||(C=s.createElement(Bn,Object.assign({},p,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),C)),C};var Ude=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=Ude(e,["children"]),a=s.useContext(Yb),o=s.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),i=jJ(n),l=zi(t,i?Zs(n):null);return s.createElement(Yb.Provider,{value:o},s.createElement(ii,{space:!0},i?s.cloneElement(n,{ref:l}):n))}),Gde=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:i,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${me(o)} ${i} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover, > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},_de=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${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(${me(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${me(t)})`}}}}),z8=e=>ri(e),H8=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:o,groupTitleColor:i,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:g,motionEaseInOut:h,motionEaseOut:b,itemPaddingInline:p,motionDurationMid:S,itemHoverColor:C,lineType:x,colorSplit:w,itemDisabledColor:$,dangerItemColor:E,dangerItemHoverColor:R,dangerItemSelectedColor:I,dangerItemActiveBg:O,dangerItemSelectedBg:T,popupBg:N,itemHoverBg:A,itemActiveBg:k,menuSubMenuBg:j,horizontalItemSelectedColor:D,horizontalItemSelectedBg:F,horizontalItemBorderRadius:L,horizontalItemHoverBg:B}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},z8(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},z8(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${$} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:R}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:T}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:N},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:N},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${me(d)} solid transparent`,transition:`border-color ${g} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:B,"&::after":{borderBottomWidth:d,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:F,"&:hover":{backgroundColor:F},"&::after":{borderBottomWidth:d,borderBottomColor:D}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${me(m)} ${x} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${me(f)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${b}`,`opacity ${S} ${b}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${h}`,`opacity ${S} ${h}`].join(",")}}}}}},V8=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:i,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(o).add(a).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:me(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Yde=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${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(${me(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${me(t)})`}}}}),n5=e=>ai(e),r5=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:o,groupTitleColor:i,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:g,motionEaseInOut:h,motionEaseOut:b,itemPaddingInline:p,motionDurationMid:S,itemHoverColor:C,lineType:x,colorSplit:w,itemDisabledColor:$,dangerItemColor:E,dangerItemHoverColor:R,dangerItemSelectedColor:I,dangerItemActiveBg:O,dangerItemSelectedBg:T,popupBg:_,itemHoverBg:k,itemActiveBg:A,menuSubMenuBg:j,horizontalItemSelectedColor:D,horizontalItemSelectedBg:F,horizontalItemBorderRadius:L,horizontalItemHoverBg:B}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},n5(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:i}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},n5(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${$} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:k},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:R}},[`&${n}-item:active`]:{background:O}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:T}},[`&${n}-submenu > ${n}`]:{backgroundColor:j},[`&${n}-popup > ${n}`]:{backgroundColor:_},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${me(d)} solid transparent`,transition:`border-color ${g} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:B,"&::after":{borderBottomWidth:d,borderBottomColor:D}},"&-selected":{color:D,backgroundColor:F,"&:hover":{backgroundColor:F},"&::after":{borderBottomWidth:d,borderBottomColor:D}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${me(m)} ${x} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${me(f)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${b}`,`opacity ${S} ${b}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${h}`,`opacity ${S} ${h}`].join(",")}}}}}},a5=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:i,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(o).add(a).add(i).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:me(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:me(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:d}}},jde=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:i,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:h,collapsedWidth:b,collapsedIconSize:p}=e,S={height:r,lineHeight:me(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},V8(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},V8(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${me(e.calc(i).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} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, + ${t}-submenu-title`]:{paddingInlineEnd:d}}},Xde=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:i,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:g,boxShadowSecondary:h,collapsedWidth:b,collapsedIconSize:p}=e,S={height:r,lineHeight:me(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},a5(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},a5(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${me(e.calc(i).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} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${me(e.calc(p).div(2).equal())} - ${me(u)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:me(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ni),{paddingInline:g})}}]},W8=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:i,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},su()),[`&${t}-item-only-child`]:{[`> ${i}, > ${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"}}}},K8=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${me(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${me(i)})`}}}}},Fde=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:i,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:b,lineType:p,groupTitleLineHeight:S,groupTitleFontSize:C}=e;return[{"":{[n]:Object.assign(Object.assign({},_m()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),_m()),{marginBottom:0,paddingInlineStart:0,fontSize:r,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",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${me(l)} ${me(c)}`,fontSize:C,lineHeight:S,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:p,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),W8(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${me(e.calc(r).mul(2).equal())} ${me(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},W8(e)),K8(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${i}`}})},"\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}}}),K8(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${me(b)})`},"&::after":{transform:`rotate(45deg) translateX(${me(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${me(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${me(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${me(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Dde=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:i,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:g,lineWidthBold:h,controlItemBgActive:b,colorBgTextHover:p,controlHeightLG:S,lineHeight:C,colorBgElevated:x,marginXXS:w,padding:$,fontSize:E,controlHeightSM:R,fontSizeLG:I,colorTextLightSolid:O,colorErrorHover:T}=e,N=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,A=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,k=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,j=new gn(O).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:d,itemBg:d,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:b,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:N,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:A,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:C,collapsedWidth:S*2,popupBg:x,itemMarginBlock:w,itemPaddingInline:$,horizontalLineHeight:`${S*1.15}px`,iconSize:E,iconMarginInlineEnd:R-E,collapsedIconSize:I,groupTitleFontSize:E,darkItemDisabledColor:new gn(O).setA(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:O,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:o,itemWidth:N?`calc(100% + ${A}px)`:`calc(100% - ${k*2}px)`}},kde=(e,t=e,n=!0)=>un("Menu",a=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:h,darkItemHoverBg:b,darkGroupTitleColor:p,darkItemHoverColor:S,darkItemDisabledColor:C,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:$,popupBg:E,darkPopupBg:R}=a,I=a.calc(l).div(7).mul(5).equal(),O=tn(a,{menuArrowSize:I,menuHorizontalHeight:a.calc(i).mul(1.15).equal(),menuArrowOffset:a.calc(I).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:E}),T=tn(O,{itemColor:c,itemHoverColor:S,groupTitleColor:p,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:R,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:$,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[Fde(O),Nde(O),jde(O),H8(O,"light"),H8(T,"dark"),_de(O),Ay(O),al(O,"slide-up"),al(O,"slide-down"),yf(O,"zoom-big")]},Dde,{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:n,unitless:{groupTitleLineHeight:!0}})(e,t),wV=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,i=s.useContext(Wb),{prefixCls:l,inlineCollapsed:c,theme:u}=i,d=$f();let f;if(!r)f=c&&!d.length&&a&&typeof a=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},a.charAt(0)):s.createElement("span",{className:`${l}-title-content`},a);else{const h=s.isValidElement(a)&&a.type==="span";f=s.createElement(s.Fragment,null,Br(r,{className:oe(s.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${l}-item-icon`)}),h?a:s.createElement("span",{className:`${l}-title-content`},a))}const m=s.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=ui("Menu");return s.createElement(Wb.Provider,{value:m},s.createElement(s1,Object.assign({},nn(e,["icon"]),{title:f,popupClassName:oe(l,n,`${l}-${o||u}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var Ade=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=s.useContext(Kb),a=r||{},{getPrefixCls:o,getPopupContainer:i,direction:l,menu:c}=s.useContext(jt),u=o(),{prefixCls:d,className:f,style:m,theme:g="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:p,siderCollapsed:S,rootClassName:C,mode:x,selectable:w,onClick:$,overflowedIndicatorPopupClassName:E}=e,R=Ade(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=nn(R,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:x});const O=Zt((...q)=>{var U;$==null||$.apply(void 0,q),(U=a.onClick)===null||U===void 0||U.call(a)}),T=a.mode||x,N=w??a.selectable,A=p??S,k={horizontal:{motionName:`${u}-slide-up`},inline:jm(u),other:{motionName:`${u}-zoom-big`}},j=o("menu",d||a.prefixCls),D=Gn(j),[F,L,B]=kde(j,D,!r),K=oe(`${j}-${g}`,c==null?void 0:c.className,f),W=s.useMemo(()=>{var q,U;if(typeof h=="function"||bx(h))return h||null;if(typeof a.expandIcon=="function"||bx(a.expandIcon))return a.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||bx(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const G=(q=h??(a==null?void 0:a.expandIcon))!==null&&q!==void 0?q:c==null?void 0:c.expandIcon;return Br(G,{className:oe(`${j}-submenu-expand-icon`,s.isValidElement(G)?(U=G.props)===null||U===void 0?void 0:U.className:void 0)})},[h,a==null?void 0:a.expandIcon,c==null?void 0:c.expandIcon,j]),V=s.useMemo(()=>({prefixCls:j,inlineCollapsed:A||!1,direction:l,firstLevel:!0,theme:g,mode:T,disableMenuItemTitleTooltip:b}),[j,A,l,b,g]);return F(s.createElement(Kb.Provider,{value:null},s.createElement(Wb.Provider,{value:V},s.createElement(Ef,Object.assign({getPopupContainer:i,overflowedIndicator:s.createElement(l4,null),overflowedIndicatorPopupClassName:oe(j,`${j}-${g}`,E),mode:T,selectable:N,onClick:O},I,{inlineCollapsed:A,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:K,prefixCls:j,direction:l,defaultMotions:k,expandIcon:W,ref:t,rootClassName:oe(C,L,a.rootClassName,B,D),_internalComponents:Lde})))))}),Yl=s.forwardRef((e,t)=>{const n=s.useRef(null),r=s.useContext(c1);return s.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),s.createElement(Bde,Object.assign({ref:n},e,r))});Yl.Item=SV;Yl.SubMenu=wV;Yl.Divider=CV;Yl.ItemGroup=i4;const zde=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},Hde=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:i,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:h,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:p,lineHeight:me(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},ri),{paddingInline:g})}}]},o5=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:i,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${i}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},cu()),[`&${t}-item-only-child`]:{[`> ${i}, > ${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"}}}},i5=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${me(e.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${me(i)})`}}}}},Qde=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:i,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:b,lineType:p,groupTitleLineHeight:S,groupTitleFontSize:C}=e;return[{"":{[n]:Object.assign(Object.assign({},Nm()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),Nm()),{marginBottom:0,paddingInlineStart:0,fontSize:r,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",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${me(l)} ${me(c)}`,fontSize:C,lineHeight:S,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${i}`,`background ${a} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:p,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),o5(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${me(e.calc(r).mul(2).equal())} ${me(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},o5(e)),i5(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${i}`}})},"\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}}}),i5(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${me(b)})`},"&::after":{transform:`rotate(45deg) translateX(${me(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${me(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${me(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${me(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},Jde=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:i,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:g,lineWidthBold:h,controlItemBgActive:b,colorBgTextHover:p,controlHeightLG:S,lineHeight:C,colorBgElevated:x,marginXXS:w,padding:$,fontSize:E,controlHeightSM:R,fontSizeLG:I,colorTextLightSolid:O,colorErrorHover:T}=e,_=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,k=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:g,A=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,j=new pn(O).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:d,itemBg:d,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:m,itemActiveBg:b,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:k,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:C,collapsedWidth:S*2,popupBg:x,itemMarginBlock:w,itemPaddingInline:$,horizontalLineHeight:`${S*1.15}px`,iconSize:E,iconMarginInlineEnd:R-E,collapsedIconSize:I,groupTitleFontSize:E,darkItemDisabledColor:new pn(O).setA(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:O,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:O,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:O,darkDangerItemActiveBg:o,itemWidth:_?`calc(100% + ${k}px)`:`calc(100% - ${A*2}px)`}},Zde=(e,t=e,n=!0)=>dn("Menu",a=>{const{colorBgElevated:o,controlHeightLG:i,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:g,darkDangerItemSelectedBg:h,darkItemHoverBg:b,darkGroupTitleColor:p,darkItemHoverColor:S,darkItemDisabledColor:C,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:$,popupBg:E,darkPopupBg:R}=a,I=a.calc(l).div(7).mul(5).equal(),O=en(a,{menuArrowSize:I,menuHorizontalHeight:a.calc(i).mul(1.15).equal(),menuArrowOffset:a.calc(I).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:E}),T=en(O,{itemColor:c,itemHoverColor:S,groupTitleColor:p,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:R,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:x,dangerItemSelectedColor:w,dangerItemActiveBg:$,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:g});return[Qde(O),Gde(O),Xde(O),r5(O,"light"),r5(T,"dark"),Yde(O),Wy(O),ll(O,"slide-up"),ll(O,"slide-down"),Cf(O,"zoom-big")]},Jde,{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:n,unitless:{groupTitleLineHeight:!0}})(e,t),zV=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,i=s.useContext(Gb),{prefixCls:l,inlineCollapsed:c,theme:u}=i,d=Ef();let f;if(!r)f=c&&!d.length&&a&&typeof a=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},a.charAt(0)):s.createElement("span",{className:`${l}-title-content`},a);else{const h=s.isValidElement(a)&&a.type==="span";f=s.createElement(s.Fragment,null,zr(r,{className:oe(s.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${l}-item-icon`)}),h?a:s.createElement("span",{className:`${l}-title-content`},a))}const m=s.useMemo(()=>Object.assign(Object.assign({},i),{firstLevel:!1}),[i]),[g]=fi("Menu");return s.createElement(Gb.Provider,{value:m},s.createElement(m1,Object.assign({},nn(e,["icon"]),{title:f,popupClassName:oe(l,n,`${l}-${o||u}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var efe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=s.useContext(Yb),a=r||{},{getPrefixCls:o,getPopupContainer:i,direction:l,menu:c}=s.useContext(jt),u=o(),{prefixCls:d,className:f,style:m,theme:g="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:p,siderCollapsed:S,rootClassName:C,mode:x,selectable:w,onClick:$,overflowedIndicatorPopupClassName:E}=e,R=efe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=nn(R,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:x});const O=Zt((...q)=>{var U;$==null||$.apply(void 0,q),(U=a.onClick)===null||U===void 0||U.call(a)}),T=a.mode||x,_=w??a.selectable,k=p??S,A={horizontal:{motionName:`${u}-slide-up`},inline:_m(u),other:{motionName:`${u}-zoom-big`}},j=o("menu",d||a.prefixCls),D=Yn(j),[F,L,B]=Zde(j,D,!r),K=oe(`${j}-${g}`,c==null?void 0:c.className,f),W=s.useMemo(()=>{var q,U;if(typeof h=="function"||Ox(h))return h||null;if(typeof a.expandIcon=="function"||Ox(a.expandIcon))return a.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||Ox(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const G=(q=h??(a==null?void 0:a.expandIcon))!==null&&q!==void 0?q:c==null?void 0:c.expandIcon;return zr(G,{className:oe(`${j}-submenu-expand-icon`,s.isValidElement(G)?(U=G.props)===null||U===void 0?void 0:U.className:void 0)})},[h,a==null?void 0:a.expandIcon,c==null?void 0:c.expandIcon,j]),V=s.useMemo(()=>({prefixCls:j,inlineCollapsed:k||!1,direction:l,firstLevel:!0,theme:g,mode:T,disableMenuItemTitleTooltip:b}),[j,k,l,b,g]);return F(s.createElement(Yb.Provider,{value:null},s.createElement(Gb.Provider,{value:V},s.createElement(Pf,Object.assign({getPopupContainer:i,overflowedIndicator:s.createElement(p1,null),overflowedIndicatorPopupClassName:oe(j,`${j}-${g}`,E),mode:T,selectable:_,onClick:O},I,{inlineCollapsed:k,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:K,prefixCls:j,direction:l,defaultMotions:A,expandIcon:W,ref:t,rootClassName:oe(C,L,a.rootClassName,B,D),_internalComponents:tfe})))))}),Yl=s.forwardRef((e,t)=>{const n=s.useRef(null),r=s.useContext(g1);return s.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),s.createElement(nfe,Object.assign({ref:n},e,r))});Yl.Item=LV;Yl.SubMenu=zV;Yl.Divider=AV;Yl.ItemGroup=y4;const rfe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},afe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:i,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:g,controlPaddingHorizontal:h,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${i}-btn`]:{[`& > ${l}-down, & > ${i}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${i}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomLeft, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomLeft, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottom, &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottom, &${i}-slide-down-enter${i}-slide-down-enter-active${t}-placement-bottomRight, - &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:By},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, + &${i}-slide-down-appear${i}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:qy},[`&${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topLeft, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topLeft, &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-top, &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-top, &${i}-slide-up-enter${i}-slide-up-enter-active${t}-placement-topRight, - &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Hy},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, + &${i}-slide-up-appear${i}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Gy},[`&${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomLeft, &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottom, - &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:zy},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, + &${i}-slide-down-leave${i}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Uy},[`&${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topLeft, &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-top, - &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Vy}}},ZR(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},wn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ga(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${me(u)} ${me(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${me(u)} ${me(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ga(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me(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:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${me(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[al(e,"slide-up"),al(e,"slide-down"),Qd(e,"move-up"),Qd(e,"move-down"),yf(e,"zoom-big")]]},Vde=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},o1({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),a1(e)),Wde=un("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=tn(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[Hde(o),zde(o)]},Vde,{resetStyle:!1}),xg=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:i,disabled:l,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:g,open:h,onOpenChange:b,visible:p,onVisibleChange:S,mouseEnterDelay:C=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:w=!0,placement:$="",overlay:E,transitionName:R,destroyOnHidden:I,destroyPopupOnHide:O}=e,{getPopupContainer:T,getPrefixCls:N,direction:A,dropdown:k}=s.useContext(jt),j=u||c;cl();const D=s.useMemo(()=>{const se=N();return R!==void 0?R:$.includes("top")?`${se}-slide-down`:`${se}-slide-up`},[N,$,R]),F=s.useMemo(()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:A==="rtl"?"bottomRight":"bottomLeft",[$,A]),L=N("dropdown",a),B=Gn(L),[K,W,V]=Wde(L,B),[,q]=qr(),U=s.Children.only(kue(o)?s.createElement("span",null,o):o),G=Br(U,{className:oe(`${L}-trigger`,{[`${L}-rtl`]:A==="rtl"},U.props.className),disabled:(t=U.props.disabled)!==null&&t!==void 0?t:l}),Y=l?[]:i,J=!!(Y!=null&&Y.includes("contextMenu")),[Q,Z]=_t(!1,{value:h??p}),ne=Zt(se=>{b==null||b(se,{source:"trigger"}),S==null||S(se),Z(se)}),ae=oe(f,m,W,V,B,k==null?void 0:k.className,{[`${L}-rtl`]:A==="rtl"}),le=YH({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:w,offset:q.marginXXS,arrowWidth:r?q.sizePopupArrow:0,borderRadius:q.borderRadius}),re=Zt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(b==null||b(!1,{source:"menu"}),Z(!1))}),fe=()=>{let se;return n!=null&&n.items?se=s.createElement(Yl,Object.assign({},n)):typeof E=="function"?se=E():se=E,j&&(se=j(se)),se=s.Children.only(typeof se=="string"?s.createElement("span",null,se):se),s.createElement(xV,{prefixCls:`${L}-menu`,rootClassName:oe(V,B),expandIcon:s.createElement("span",{className:`${L}-menu-submenu-arrow`},A==="rtl"?s.createElement(Wl,{className:`${L}-menu-submenu-arrow-icon`}):s.createElement(ai,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:re,validator:({mode:ve})=>{}},se)},[ue,de]=ui("Dropdown",g==null?void 0:g.zIndex);let ie=s.createElement(rV,Object.assign({alignPoint:J},nn(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:x,visible:Q,builtinPlacements:le,arrow:!!r,overlayClassName:ae,prefixCls:L,getPopupContainer:d||T,transitionName:D,trigger:Y,overlay:fe,placement:F,onVisibleChange:ne,overlayStyle:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.style),g),{zIndex:ue}),autoDestroy:I??O}),G);return ue&&(ie=s.createElement(dg.Provider,{value:de},ie)),K(ie)},Kde=rc(xg,"align",void 0,"dropdown",e=>e),qde=e=>s.createElement(Kde,Object.assign({},e),s.createElement("span",null));xg._InternalPanelDoNotUseOrYouWillBeFired=qde;const u1=({children:e})=>{const{getPrefixCls:t}=s.useContext(jt),n=t("breadcrumb");return s.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};u1.__ANT_BREADCRUMB_SEPARATOR=!0;var Ude=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at[a]||r)}function $V(e,t,n,r){if(n==null)return null;const{className:a,onClick:o}=t,i=Ude(t,["className","onClick"]),l=Object.assign(Object.assign({},dr(i,{data:!0,aria:!0})),{onClick:o});return r!==void 0?s.createElement("a",Object.assign({},l,{className:oe(`${e}-link`,a),href:r}),n):s.createElement("span",Object.assign({},l,{className:oe(`${e}-link`,a)}),n)}function Yde(e,t){return(r,a,o,i,l)=>{if(t)return t(r,a,o,i);const c=Gde(r,a);return $V(e,r,c,l)}}var GP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,separator:n="/",children:r,menu:a,overlay:o,dropdownProps:i,href:l}=e,u=(d=>{if(a||o){const f=Object.assign({},i);if(a){const m=a||{},{items:g}=m,h=GP(m,["items"]);f.menu=Object.assign(Object.assign({},h),{items:g==null?void 0:g.map((b,p)=>{var{key:S,title:C,label:x,path:w}=b,$=GP(b,["key","title","label","path"]);let E=x??C;return w&&(E=s.createElement("a",{href:`${l}${w}`},E)),Object.assign(Object.assign({},$),{key:S??p,label:E})})})}else o&&(f.overlay=o);return s.createElement(xg,Object.assign({placement:"bottom"},f),s.createElement("span",{className:`${t}-overlay-link`},d,s.createElement(Ys,null)))}return d})(r);return u!=null?s.createElement(s.Fragment,null,s.createElement("li",{className:`${t}-item`},u),n&&s.createElement(u1,null,n)):null},PV=e=>{const{prefixCls:t,children:n,href:r}=e,a=GP(e,["prefixCls","children","href"]),{getPrefixCls:o}=s.useContext(jt),i=o("breadcrumb",t);return s.createElement(EV,Object.assign({},a,{prefixCls:i}),$V(i,a,n,r))};PV.__ANT_BREADCRUMB_ITEM=!0;const Xde=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},wn(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[`${t}-item a`]:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${me(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Ga(e)),[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` + &${i}-slide-up-leave${i}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Yy}}},f4(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},$n(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ga(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${me(u)} ${me(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${me(u)} ${me(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ga(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me(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:g,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${me(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[ll(e,"slide-up"),ll(e,"slide-down"),Zd(e,"move-up"),Zd(e,"move-down"),Cf(e,"zoom-big")]]},ofe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},d1({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),u1(e)),ife=dn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=en(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[afe(o),rfe(o)]},ofe,{resetStyle:!1}),xg=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:i,disabled:l,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:g,open:h,onOpenChange:b,visible:p,onVisibleChange:S,mouseEnterDelay:C=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:w=!0,placement:$="",overlay:E,transitionName:R,destroyOnHidden:I,destroyPopupOnHide:O}=e,{getPopupContainer:T,getPrefixCls:_,direction:k,dropdown:A}=s.useContext(jt),j=u||c;ul();const D=s.useMemo(()=>{const se=_();return R!==void 0?R:$.includes("top")?`${se}-slide-down`:`${se}-slide-up`},[_,$,R]),F=s.useMemo(()=>$?$.includes("Center")?$.slice(0,$.indexOf("Center")):$:k==="rtl"?"bottomRight":"bottomLeft",[$,k]),L=_("dropdown",a),B=Yn(L),[K,W,V]=ife(L,B),[,q]=Ur(),U=s.Children.only(Zue(o)?s.createElement("span",null,o):o),G=zr(U,{className:oe(`${L}-trigger`,{[`${L}-rtl`]:k==="rtl"},U.props.className),disabled:(t=U.props.disabled)!==null&&t!==void 0?t:l}),Y=l?[]:i,J=!!(Y!=null&&Y.includes("contextMenu")),[Q,Z]=Nt(!1,{value:h??p}),ne=Zt(se=>{b==null||b(se,{source:"trigger"}),S==null||S(se),Z(se)}),ae=oe(f,m,W,V,B,A==null?void 0:A.className,{[`${L}-rtl`]:k==="rtl"}),le=vV({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:w,offset:q.marginXXS,arrowWidth:r?q.sizePopupArrow:0,borderRadius:q.borderRadius}),re=Zt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(b==null||b(!1,{source:"menu"}),Z(!1))}),fe=()=>{let se;return n!=null&&n.items?se=s.createElement(Yl,Object.assign({},n)):typeof E=="function"?se=E():se=E,j&&(se=j(se)),se=s.Children.only(typeof se=="string"?s.createElement("span",null,se):se),s.createElement(BV,{prefixCls:`${L}-menu`,rootClassName:oe(V,B),expandIcon:s.createElement("span",{className:`${L}-menu-submenu-arrow`},k==="rtl"?s.createElement(Wl,{className:`${L}-menu-submenu-arrow-icon`}):s.createElement(oi,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:re,validator:({mode:ve})=>{}},se)},[ue,de]=fi("Dropdown",g==null?void 0:g.zIndex);let ie=s.createElement(SV,Object.assign({alignPoint:J},nn(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:x,visible:Q,builtinPlacements:le,arrow:!!r,overlayClassName:ae,prefixCls:L,getPopupContainer:d||T,transitionName:D,trigger:Y,overlay:fe,placement:F,onVisibleChange:ne,overlayStyle:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),g),{zIndex:ue}),autoDestroy:I??O}),G);return ue&&(ie=s.createElement(dg.Provider,{value:de},ie)),K(ie)},lfe=nc(xg,"align",void 0,"dropdown",e=>e),sfe=e=>s.createElement(lfe,Object.assign({},e),s.createElement("span",null));xg._InternalPanelDoNotUseOrYouWillBeFired=sfe;const h1=({children:e})=>{const{getPrefixCls:t}=s.useContext(jt),n=t("breadcrumb");return s.createElement("li",{className:`${n}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};h1.__ANT_BREADCRUMB_SEPARATOR=!0;var cfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at[a]||r)}function HV(e,t,n,r){if(n==null)return null;const{className:a,onClick:o}=t,i=cfe(t,["className","onClick"]),l=Object.assign(Object.assign({},ar(i,{data:!0,aria:!0})),{onClick:o});return r!==void 0?s.createElement("a",Object.assign({},l,{className:oe(`${e}-link`,a),href:r}),n):s.createElement("span",Object.assign({},l,{className:oe(`${e}-link`,a)}),n)}function dfe(e,t){return(r,a,o,i,l)=>{if(t)return t(r,a,o,i);const c=ufe(r,a);return HV(e,r,c,l)}}var rO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,separator:n="/",children:r,menu:a,overlay:o,dropdownProps:i,href:l}=e,u=(d=>{if(a||o){const f=Object.assign({},i);if(a){const m=a||{},{items:g}=m,h=rO(m,["items"]);f.menu=Object.assign(Object.assign({},h),{items:g==null?void 0:g.map((b,p)=>{var{key:S,title:C,label:x,path:w}=b,$=rO(b,["key","title","label","path"]);let E=x??C;return w&&(E=s.createElement("a",{href:`${l}${w}`},E)),Object.assign(Object.assign({},$),{key:S??p,label:E})})})}else o&&(f.overlay=o);return s.createElement(xg,Object.assign({placement:"bottom"},f),s.createElement("span",{className:`${t}-overlay-link`},d,s.createElement(Gs,null)))}return d})(r);return u!=null?s.createElement(s.Fragment,null,s.createElement("li",{className:`${t}-item`},u),n&&s.createElement(h1,null,n)):null},WV=e=>{const{prefixCls:t,children:n,href:r}=e,a=rO(e,["prefixCls","children","href"]),{getPrefixCls:o}=s.useContext(jt),i=o("breadcrumb",t);return s.createElement(VV,Object.assign({},a,{prefixCls:i}),HV(i,a,n,r))};WV.__ANT_BREADCRUMB_ITEM=!0;const ffe=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},[`${t}-item a`]:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${me(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},Ga(e)),[`${t}-item:last-child`]:{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[` > ${n} + span, > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${me(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Qde=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),Jde=un("Breadcrumb",e=>{const t=tn(e,{});return Xde(t)},Qde);var q8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{breadcrumbName:i}=o,l=q8(o,["breadcrumbName"]);return Object.assign(Object.assign({},l),{title:i})})}),a}function efe(e,t){return s.useMemo(()=>e||(t?t.map(Zde):null),[e,t])}var tfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},s4=e=>{const{prefixCls:t,separator:n="/",style:r,className:a,rootClassName:o,routes:i,items:l,children:c,itemRender:u,params:d={}}=e,f=tfe(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:m,direction:g,breadcrumb:h}=s.useContext(jt);let b;const p=m("breadcrumb",t),[S,C,x]=Jde(p),w=efe(l,i),$=Yde(p,u);if(w&&w.length>0){const I=[],O=l||i;b=w.map((T,N)=>{const{path:A,key:k,type:j,menu:D,overlay:F,onClick:L,className:B,separator:K,dropdownProps:W}=T,V=nfe(d,A);V!==void 0&&I.push(V);const q=k??N;if(j==="separator")return s.createElement(u1,{key:q},K);const U={},G=N===w.length-1;D?U.menu=D:F&&(U.overlay=F);let{href:Y}=T;return I.length&&V!==void 0&&(Y=`#/${I.join("/")}`),s.createElement(EV,Object.assign({key:q},U,dr(T,{data:!0,aria:!0}),{className:B,dropdownProps:W,href:Y,separator:G?"":n,onClick:L,prefixCls:p}),$(T,d,O,I,Y))})}else if(c){const I=rr(c).length;b=rr(c).map((O,T)=>{if(!O)return O;const N=T===I-1;return Br(O,{separator:N?"":n,key:T})})}const E=oe(p,h==null?void 0:h.className,{[`${p}-rtl`]:g==="rtl"},a,o,C,x),R=Object.assign(Object.assign({},h==null?void 0:h.style),r);return S(s.createElement("nav",Object.assign({className:E,style:R},f),s.createElement("ol",null,b)))};s4.Item=PV;s4.Separator=u1;var H0={exports:{}},rfe=H0.exports,U8;function OV(){return U8||(U8=1,(function(e,t){(function(n,r){e.exports=r()})(rfe,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",l="minute",c="hour",u="day",d="week",f="month",m="quarter",g="year",h="date",b="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|YYYY|YY|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,C={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(j){var D=["th","st","nd","rd"],F=j%100;return"["+j+(D[(F-20)%10]||D[F]||D[0])+"]"}},x=function(j,D,F){var L=String(j);return!L||L.length>=D?j:""+Array(D+1-L.length).join(F)+j},w={s:x,z:function(j){var D=-j.utcOffset(),F=Math.abs(D),L=Math.floor(F/60),B=F%60;return(D<=0?"+":"-")+x(L,2,"0")+":"+x(B,2,"0")},m:function j(D,F){if(D.date()1)return j(W[0])}else{var V=D.name;E[V]=D,B=V}return!L&&B&&($=B),B||!L&&$},T=function(j,D){if(I(j))return j.clone();var F=typeof D=="object"?D:{};return F.date=j,F.args=arguments,new A(F)},N=w;N.l=O,N.i=I,N.w=function(j,D){return T(j,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var A=(function(){function j(F){this.$L=O(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[R]=!0}var D=j.prototype;return D.parse=function(F){this.$d=(function(L){var B=L.date,K=L.utc;if(B===null)return new Date(NaN);if(N.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var W=B.match(p);if(W){var V=W[2]-1||0,q=(W[7]||"0").substring(0,3);return K?new Date(Date.UTC(W[1],V,W[3]||1,W[4]||0,W[5]||0,W[6]||0,q)):new Date(W[1],V,W[3]||1,W[4]||0,W[5]||0,W[6]||0,q)}}return new Date(B)})(F),this.init()},D.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},D.$utils=function(){return N},D.isValid=function(){return this.$d.toString()!==b},D.isSame=function(F,L){var B=T(F);return this.startOf(L)<=B&&B<=this.endOf(L)},D.isAfter=function(F,L){return T(F)25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var m=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(m,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(K0)),K0.exports}var vfe=ffe();const c4=an(vfe);var q0={exports:{}},mfe=q0.exports,Q8;function gfe(){return Q8||(Q8=1,(function(e,t){(function(n,r){e.exports=r()})(mfe,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}}))})(q0)),q0.exports}var pfe=gfe();const hfe=an(pfe);var U0={exports:{}},bfe=U0.exports,J8;function yfe(){return J8||(J8=1,(function(e,t){(function(n,r){e.exports=r()})(bfe,(function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),d=(i||"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((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}}));return o.bind(this)(d)}}}))})(U0)),U0.exports}var Cfe=yfe();const MV=an(Cfe);var G0={exports:{}},Sfe=G0.exports,Z8;function xfe(){return Z8||(Z8=1,(function(e,t){(function(n,r){e.exports=r()})(Sfe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(S){this[p]=+S}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var C=S.match(/([+-]|\d\d)/g),x=60*C[1]+(+C[2]||0);return x===0?0:C[0]==="+"?-x:x})(p)}],m=function(p){var S=c[p];return S&&(S.indexOf?S:S.s.concat(S.f))},g=function(p,S){var C,x=c.meridiem;if(x){for(var w=1;w<=24;w+=1)if(p.indexOf(x(w,0,S))>-1){C=w>12;break}}else C=p===(S?"pm":"PM");return C},h={A:[l,function(p){this.afternoon=g(p,!1)}],a:[l,function(p){this.afternoon=g(p,!0)}],Q:[a,function(p){this.month=3*(p-1)+1}],S:[a,function(p){this.milliseconds=100*+p}],SS:[o,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[o,d("day")],Do:[l,function(p){var S=c.ordinal,C=p.match(/\d+/);if(this.day=C[0],S)for(var x=1;x<=31;x+=1)S(x).replace(/\[|\]/g,"")===p&&(this.day=x)}],w:[i,d("week")],ww:[o,d("week")],M:[i,d("month")],MM:[o,d("month")],MMM:[l,function(p){var S=m("months"),C=(m("monthsShort")||S.map((function(x){return x.slice(0,3)}))).indexOf(p)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[l,function(p){var S=m("months").indexOf(p)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(p){this.year=u(p)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function b(p){var S,C;S=p,C=c&&c.formats;for(var x=(p=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,N,A){var k=A&&A.toUpperCase();return N||C[A]||n[A]||C[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(j,D,F){return D||F.slice(1)}))}))).match(r),w=x.length,$=0;$-1)return new Date((B==="X"?1e3:1)*L);var V=b(B)(L),q=V.year,U=V.month,G=V.day,Y=V.hours,J=V.minutes,Q=V.seconds,Z=V.milliseconds,ne=V.zone,ae=V.week,le=new Date,re=G||(q||U?1:le.getDate()),fe=q||le.getFullYear(),ue=0;q&&!U||(ue=U>0?U-1:le.getMonth());var de,ie=Y||0,se=J||0,ve=Q||0,he=Z||0;return ne?new Date(Date.UTC(fe,ue,re,ie,se,ve,he+60*ne.offset*1e3)):K?new Date(Date.UTC(fe,ue,re,ie,se,ve,he)):(de=new Date(fe,ue,re,ie,se,ve,he),ae&&(de=W(de).week(ae).toDate()),de)}catch{return new Date("")}})(E,O,R,C),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),A&&E!=this.format(O)&&(this.$d=new Date("")),c={}}else if(O instanceof Array)for(var j=O.length,D=1;D<=j;D+=1){I[1]=O[D-1];var F=C.apply(this,I);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}D===j&&(this.$d=new Date(""))}else w.call(this,$)}}}))})(G0)),G0.exports}var wfe=xfe();const TV=an(wfe);In.extend(TV);In.extend(MV);In.extend(IV);In.extend(RV);In.extend(c4);In.extend(hfe);In.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var $fe={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"},Sc=function(t){var n=$fe[t];return n||t.split("_")[0]},Efe={getNow:function(){var t=In();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return In(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.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,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return In().locale(Sc(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Sc(t)).weekday(0)},getWeek:function(t,n){return n.locale(Sc(t)).week()},getShortWeekDays:function(t){return In().locale(Sc(t)).localeData().weekdaysMin()},getShortMonths:function(t){return In().locale(Sc(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Sc(t)).format(r)},parse:function(t,n,r){for(var a=Sc(t),o=0;o2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=s.useState([!1,!1]),a=ce(r,2),o=a[0],i=a[1],l=function(d,f){i(function(m){return fm(m,f,d)})},c=s.useMemo(function(){return o.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,o,t,n]);return[c,l]}function kV(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function Ife(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,g=e.yearFormat,h=e.cellYearFormat,b=e.cellQuarterFormat,p=e.dayFormat,S=e.cellDateFormat,C=kV(t,n,r,a,o);return P(P({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(C),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||C,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:S||p||"D"})}function AV(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return ee.useMemo(function(){return Ife(e,n,r,a,o,i)},[e,n,r,a,o,i])}function wv(e,t,n){return n??t.some(function(r){return e.includes(r)})}var Rfe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Mfe(e){var t=d1(e,Rfe),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=it(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function Tfe(e){return e&&typeof e=="string"}function LV(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function BV(e,t,n,r,a){var o=t,i=n,l=r;if(!e&&!o&&!i&&!l&&!a)o=!0,i=!0,l=!0;else if(e){var c,u,d,f=[o,i,l].some(function(h){return h===!1}),m=[o,i,l].some(function(h){return h===!0}),g=f?!0:!m;o=(c=o)!==null&&c!==void 0?c:g,i=(u=i)!==null&&u!==void 0?u:g,l=(d=l)!==null&&d!==void 0?d:g}return[o,i,l,a]}function zV(e){var t=e.showTime,n=Mfe(e),r=ce(n,2),a=r[0],o=r[1],i=t&&it(t)==="object"?t:{},l=P(P({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),c=l.showMillisecond,u=l.showHour,d=l.showMinute,f=l.showSecond,m=LV(u,d,f,c),g=BV(m,u,d,f,c),h=ce(g,3);return u=h[0],d=h[1],f=h[2],[l,P(P({},l),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),l.format,o]}function HV(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,l=_V(e,a,null),c=l,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function oa(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function qb(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,l){n?r=e[i](r,e[a[l]](n)):r=e[i](r,0)}),r}function Ffe(e,t,n,r,a){var o=Zt(function(i,l){return!!(n&&n(i,l)||r&&e.isAfter(r,i)&&!Aa(e,t,r,i,l.type)||a&&e.isAfter(i,a)&&!Aa(e,t,a,i,l.type))});return o}function Dfe(e,t,n){return s.useMemo(function(){var r=_V(e,t,n),a=du(r),o=a[0],i=it(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),i]},[e,t,n])}function kfe(e,t,n){return typeof e[0]=="function"||n?!0:t}function Afe(e,t,n,r){var a=Zt(function(o,i){var l=P({type:t},i);if(delete l.activeIndex,!e.isValidate(o)||n&&n(o,l))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,o,u,{from:l.from}))||{},f=d.disabledHours,m=d.disabledMinutes,g=d.disabledSeconds,h=d.disabledMilliseconds,b=r.disabledHours,p=r.disabledMinutes,S=r.disabledSeconds,C=f||b,x=m||p,w=g||S,$=e.getHour(o),E=e.getMinute(o),R=e.getSecond(o),I=e.getMillisecond(o);if(C&&C().includes($)||x&&x($).includes(E)||w&&w($,E).includes(R)||h&&h($,E,R).includes(I))return!0}return!1});return a}function mh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=s.useMemo(function(){var r=e&&du(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function KV(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,l=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,m=e.order,g=m===void 0?!0:m,h=e.components,b=h===void 0?{}:h,p=e.inputRender,S=e.allowClear,C=e.clearIcon,x=e.needConfirm,w=e.multiple,$=e.format,E=e.inputReadOnly,R=e.disabledDate,I=e.minDate,O=e.maxDate,T=e.showTime,N=e.value,A=e.defaultValue,k=e.pickerValue,j=e.defaultPickerValue,D=mh(N),F=mh(A),L=mh(k),B=mh(j),K=o==="date"&&T?"datetime":o,W=K==="time"||K==="datetime",V=W||w,q=x??W,U=zV(e),G=ce(U,4),Y=G[0],J=G[1],Q=G[2],Z=G[3],ne=AV(r,J),ae=s.useMemo(function(){return HV(K,Q,Z,Y,ne)},[K,Q,Z,Y,ne]),le=s.useMemo(function(){return P(P({},e),{},{prefixCls:l,locale:ne,picker:o,styles:u,classNames:f,order:g,components:P({input:p},b),clearIcon:Nfe(l,S,C),showTime:ae,value:D,defaultValue:F,pickerValue:L,defaultPickerValue:B},t==null?void 0:t())},[e]),re=Dfe(K,ne,$),fe=ce(re,2),ue=fe[0],de=fe[1],ie=kfe(ue,E,w),se=Ffe(n,r,R,I,O),ve=Afe(n,o,se,ae),he=s.useMemo(function(){return P(P({},le),{},{needConfirm:q,inputReadOnly:ie,disabledDate:se})},[le,q,ie,se]);return[he,K,V,ue,de,ve]}function Lfe(e,t,n){var r=_t(t,{value:e}),a=ce(r,2),o=a[0],i=a[1],l=ee.useRef(e),c=ee.useRef(),u=function(){on.cancel(c.current)},d=Zt(function(){i(l.current),n&&o!==l.current&&n(l.current)}),f=Zt(function(m,g){u(),l.current=m,m||g?d():c.current=on(d)});return ee.useEffect(function(){return u},[]),[o,f]}function qV(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(d){return d})?!1:e,o=Lfe(a,t||!1,r),i=ce(o,2),l=i[0],c=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&c(d,f.force)}return[l,u]}function UV(e){var t=s.useRef();return s.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function GV(e,t){return s.useMemo(function(){return e||(t?(Wn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ce(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function m4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=s.useRef(t);r.current=t,Hc(function(){if(e)r.current(e);else{var a=on(function(){r.current(e)},n);return function(){on.cancel(a)}}},[e])}function YV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=s.useState(0),a=ce(r,2),o=a[0],i=a[1],l=s.useState(!1),c=ce(l,2),u=c[0],d=c[1],f=s.useRef([]),m=s.useRef(null),g=s.useRef(null),h=function(w){m.current=w},b=function(w){return m.current===w},p=function(w){d(w)},S=function(w){return w&&(g.current=w),g.current},C=function(w){var $=f.current,E=new Set($.filter(function(I){return w[I]||t[I]})),R=$[$.length-1]===0?1:0;return E.size>=2||e[R]?null:R};return m4(u||n,function(){u||(f.current=[],h(null))}),s.useEffect(function(){u&&f.current.push(o)},[u,o]),[u,p,S,o,i,C,f.current,h,b]}function Bfe(e,t,n,r,a,o){var i=n[n.length-1],l=function(u,d){var f=ce(e,2),m=f[0],g=f[1],h=P(P({},d),{},{from:jV(e,n)});return i===1&&t[0]&&m&&!Aa(r,a,m,u,h.type)&&r.isAfter(m,u)||i===0&&t[1]&&g&&!Aa(r,a,g,u,h.type)&&r.isAfter(u,g)?!0:o==null?void 0:o(u,h)};return l}function Jv(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Cx=[];function XV(e,t,n,r,a,o,i,l){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Cx,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Cx,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Cx,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,h=i==="time",b=o||0,p=function(L){var B=e.getNow();return h&&(B=qb(e,B)),c[L]||n[L]||B},S=ce(u,2),C=S[0],x=S[1],w=_t(function(){return p(0)},{value:C}),$=ce(w,2),E=$[0],R=$[1],I=_t(function(){return p(1)},{value:x}),O=ce(I,2),T=O[0],N=O[1],A=s.useMemo(function(){var F=[E,T][b];return h?F:qb(e,F,d[b])},[h,E,T,b,e,d]),k=function(L){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",K=[R,N][b];K(L);var W=[E,T];W[b]=L,f&&(!Aa(e,t,E,W[0],i)||!Aa(e,t,T,W[1],i))&&f(W,{source:B,range:b===1?"end":"start",mode:r})},j=function(L,B){if(l){var K={date:"month",week:"month",month:"year",quarter:"year"},W=K[i];if(W&&!Aa(e,t,L,B,W))return Jv(e,i,B,-1);if(i==="year"&&L){var V=Math.floor(e.getYear(L)/10),q=Math.floor(e.getYear(B)/10);if(V!==q)return Jv(e,i,B,-1)}}return B},D=s.useRef(null);return dn(function(){if(a&&!c[b]){var F=h?null:e.getNow();if(D.current!==null&&D.current!==b?F=[E,T][b^1]:n[b]?F=b===0?n[0]:j(n[0],n[1]):n[b^1]&&(F=n[b^1]),F){m&&e.isAfter(m,F)&&(F=m);var L=l?Jv(e,i,F,1):F;g&&e.isAfter(L,g)&&(F=l?Jv(e,i,g,-1):g),k(F,"reset")}}},[a,b,n[b]]),s.useEffect(function(){a?D.current=b:D.current=null},[a,b]),dn(function(){a&&c&&c[b]&&k(c[b],"reset")},[a,b]),[A,k]}function QV(e,t){var n=s.useRef(e),r=s.useState({}),a=ce(r,2),o=a[1],i=function(u){return u&&t!==void 0?t:n.current},l=function(u){n.current=u,o({})};return[i,l,i(!0)]}var zfe=[];function JV(e,t,n){var r=function(i){return i.map(function(l){return oa(l,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,l){for(var c=Math.max(i.length,l.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],l=n>=1?n|0:1,c=e;c<=t;c+=l){var u=a.includes(c);(!u||!r)&&i.push({label:u4(c,o),value:c,disabled:u})}return i}function g4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,l=r.minuteStep,c=l===void 0?1:l,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,m=f===void 0?100:f,g=r.hideDisabledOptions,h=r.disabledTime,b=r.disabledHours,p=r.disabledMinutes,S=r.disabledSeconds,C=s.useMemo(function(){return n||e.getNow()},[n,e]),x=s.useCallback(function(B){var K=(h==null?void 0:h(B))||{};return[K.disabledHours||b||gh,K.disabledMinutes||p||gh,K.disabledSeconds||S||gh,K.disabledMilliseconds||gh]},[h,b,p,S]),w=s.useMemo(function(){return x(C)},[C,x]),$=ce(w,4),E=$[0],R=$[1],I=$[2],O=$[3],T=s.useCallback(function(B,K,W,V){var q=ph(0,23,i,g,B()),U=a?q.map(function(Q){return P(P({},Q),{},{label:u4(Q.value%12||12,2)})}):q,G=function(Z){return ph(0,59,c,g,K(Z))},Y=function(Z,ne){return ph(0,59,d,g,W(Z,ne))},J=function(Z,ne,ae){return ph(0,999,m,g,V(Z,ne,ae),3)};return[U,G,Y,J]},[g,i,a,m,c,d]),N=s.useMemo(function(){return T(E,R,I,O)},[T,E,R,I,O]),A=ce(N,4),k=A[0],j=A[1],D=A[2],F=A[3],L=function(K,W){var V=function(){return k},q=j,U=D,G=F;if(W){var Y=x(W),J=ce(Y,4),Q=J[0],Z=J[1],ne=J[2],ae=J[3],le=T(Q,Z,ne,ae),re=ce(le,4),fe=re[0],ue=re[1],de=re[2],ie=re[3];V=function(){return fe},q=ue,U=de,G=ie}var se=Vfe(K,V,q,U,G,e);return se};return[L,k,j,D,F]}function Wfe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,l=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=s.useContext(zi),g=m.prefixCls,h=m.locale,b=m.button,p=b===void 0?"button":b,S=d.getNow(),C=g4(d,o,S),x=ce(C,1),w=x[0],$=r==null?void 0:r(t),E=f(S,{type:t}),R=function(){if(!E){var j=w(S);l(j)}},I="".concat(g,"-now"),O="".concat(I,"-btn"),T=a&&s.createElement("li",{className:I},s.createElement("a",{className:oe(O,E&&"".concat(O,"-disabled")),"aria-disabled":E,onClick:R},n==="date"?h.today:h.now)),N=u&&s.createElement("li",{className:"".concat(g,"-ok")},s.createElement(p,{disabled:c,onClick:i},h.ok)),A=(T||N)&&s.createElement("ul",{className:"".concat(g,"-ranges")},T,N);return!$&&!A?null:s.createElement("div",{className:"".concat(g,"-footer")},$&&s.createElement("div",{className:"".concat(g,"-footer-extra")},$),A)}function rW(e,t,n){function r(a,o){var i=a.findIndex(function(c){return Aa(e,t,c,o,n)});if(i===-1)return[].concat(ke(a),[o]);var l=ke(a);return l.splice(i,1),l}return r}var fu=s.createContext(null);function v1(){return s.useContext(fu)}function Pf(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,l=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,g=e.pickerValue,h=e.onSelect,b=e.prevIcon,p=e.nextIcon,S=e.superPrevIcon,C=e.superNextIcon,x=r.getNow(),w={now:x,values:m,pickerValue:g,prefixCls:n,disabledDate:o,minDate:i,maxDate:l,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:b,nextIcon:p,superPrevIcon:S,superNextIcon:C};return[w,x]}var Vs=s.createContext({});function wg(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,l=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,g=e.disabledDate,h=v1(),b=h.prefixCls,p=h.panelType,S=h.now,C=h.disabledDate,x=h.cellRender,w=h.onHover,$=h.hoverValue,E=h.hoverRangeValue,R=h.generateConfig,I=h.values,O=h.locale,T=h.onSelect,N=g||C,A="".concat(b,"-cell"),k=s.useContext(Vs),j=k.onCellDblClick,D=function(U){return I.some(function(G){return G&&Aa(R,O,U,G,p)})},F=[],L=0;L1&&arguments[1]!==void 0?arguments[1]:!1;Se(ze),p==null||p(ze),Oe&&ge(ze)},xe=function(ze,Oe){ne(ze),Oe&&ye(Oe),ge(Oe,ze)},$e=function(ze){if(ve(ze),ye(ze),Z!==w){var Oe=["decade","year"],we=[].concat(Oe,["month"]),_e={quarter:[].concat(Oe,["quarter"]),week:[].concat(ke(we),["week"]),date:[].concat(ke(we),["date"])},Be=_e[w]||we,Qe=Be.indexOf(Z),lt=Be[Qe+1];lt&&xe(lt,ze)}},He=s.useMemo(function(){var Pe,ze;if(Array.isArray(R)){var Oe=ce(R,2);Pe=Oe[0],ze=Oe[1]}else Pe=R;return!Pe&&!ze?null:(Pe=Pe||ze,ze=ze||Pe,a.isAfter(Pe,ze)?[ze,Pe]:[Pe,ze])},[R,a]),Te=d4(I,O,T),Re=A[ae]||nve[ae]||m1,Fe=s.useContext(Vs),je=s.useMemo(function(){return P(P({},Fe),{},{hideHeader:k})},[Fe,k]),Ee="".concat(j,"-panel"),Le=d1(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return s.createElement(Vs.Provider,{value:je},s.createElement("div",{ref:D,tabIndex:c,className:oe(Ee,z({},"".concat(Ee,"-rtl"),o==="rtl"))},s.createElement(Re,Me({},Le,{showTime:G,prefixCls:j,locale:q,generateConfig:a,onModeChange:xe,pickerValue:pe,onPickerValueChange:function(ze){ye(ze,!0)},value:ie[0],onSelect:$e,values:ie,cellRender:Te,hoverRangeValue:He,hoverValue:E}))))}var Sx=s.memo(s.forwardRef(rve));function ave(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,l=e.range,c=e.hoverValue,u=s.useContext(zi),d=u.prefixCls,f=u.generateConfig,m=s.useCallback(function(C,x){return Jv(f,t,C,x)},[f,t]),g=s.useMemo(function(){return m(r,1)},[r,m]),h=function(x){a(m(x,-1))},b={onCellDblClick:function(){o&&i()}},p=t==="time",S=P(P({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:p});return l?S.hoverRangeValue=c:S.hoverValue=c,n?s.createElement("div",{className:"".concat(d,"-panels")},s.createElement(Vs.Provider,{value:P(P({},b),{},{hideNext:!0})},s.createElement(Sx,S)),s.createElement(Vs.Provider,{value:P(P({},b),{},{hidePrev:!0})},s.createElement(Sx,Me({},S,{pickerValue:g,onPickerValueChange:h})))):s.createElement(Vs.Provider,{value:P({},b)},s.createElement(Sx,S))}function t5(e){return typeof e=="function"?e():e}function ove(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?s.createElement("div",{className:"".concat(t,"-presets")},s.createElement("ul",null,n.map(function(o,i){var l=o.label,c=o.value;return s.createElement("li",{key:i,onClick:function(){r(t5(c))},onMouseEnter:function(){a(t5(c))},onMouseLeave:function(){a(null)}},l)}))):null}function oW(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,l=e.activeInfo,c=l===void 0?[0,0,0]:l,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,g=e.onBlur,h=e.onPanelMouseDown,b=e.direction,p=e.value,S=e.onSelect,C=e.isInvalid,x=e.defaultOpenValue,w=e.onOk,$=e.onSubmit,E=s.useContext(zi),R=E.prefixCls,I="".concat(R,"-panel"),O=b==="rtl",T=s.useRef(null),N=s.useRef(null),A=s.useState(0),k=ce(A,2),j=k[0],D=k[1],F=s.useState(0),L=ce(F,2),B=L[0],K=L[1],W=s.useState(0),V=ce(W,2),q=V[0],U=V[1],G=function($e){$e.width&&D($e.width)},Y=ce(c,3),J=Y[0],Q=Y[1],Z=Y[2],ne=s.useState(0),ae=ce(ne,2),le=ae[0],re=ae[1];s.useEffect(function(){re(10)},[J]),s.useEffect(function(){if(o&&N.current){var xe,$e=((xe=T.current)===null||xe===void 0?void 0:xe.offsetWidth)||0,He=N.current.getBoundingClientRect();if(!He.height||He.right<0){re(function(je){return Math.max(0,je-1)});return}var Te=(O?Q-$e:J)-He.left;if(U(Te),j&&j=l&&n<=c)return o;var u=Math.min(Math.abs(n-l),Math.abs(n-c));u0?Ot:xt));var tt=bt+st,Ye=xt-Ot+1;return String(Ot+(Ye+tt-Ot)%Ye)};switch(ze){case"Backspace":case"Delete":Oe="",we=Be;break;case"ArrowLeft":Oe="",Qe(-1);break;case"ArrowRight":Oe="",Qe(1);break;case"ArrowUp":Oe="",we=lt(1);break;case"ArrowDown":Oe="",we=lt(-1);break;default:isNaN(Number(ze))||(Oe=V+ze,we=Oe);break}if(Oe!==null&&(q(Oe),Oe.length>=_e&&(Qe(1),q(""))),we!==null){var Ke=le.slice(0,se)+u4(we,_e)+le.slice(ve);Ce(Ke.slice(0,i.length))}ae({})},je=s.useRef();dn(function(){if(!(!k||!i||ge.current)){if(!ue.match(le)){Ce(i);return}return fe.current.setSelectionRange(se,ve),je.current=on(function(){fe.current.setSelectionRange(se,ve)}),function(){on.cancel(je.current)}}},[ue,i,k,le,Y,se,ve,ne,Ce]);var Ee=i?{onFocus:$e,onBlur:Te,onKeyDown:Fe,onMouseDown:ye,onMouseUp:xe,onPaste:Se}:{};return s.createElement("div",{ref:re,className:oe(T,z(z({},"".concat(T,"-active"),n&&a),"".concat(T,"-placeholder"),u))},s.createElement(O,Me({ref:fe,"aria-invalid":b,autoComplete:"off"},S,{onKeyDown:Re,onBlur:He},Ee,{value:le,onChange:pe})),s.createElement(g1,{type:"suffix",icon:o}),p)}),fve=["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"],vve=["index"];function mve(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,o=e.suffixIcon,i=e.separator,l=i===void 0?"~":i,c=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,m=e.style,g=e.onClick,h=e.onClear,b=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var p=e.disabled,S=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var x=e.onActiveInfo;e.placement;var w=e.onMouseDown;e.required,e["aria-required"];var $=e.autoFocus,E=e.tabIndex,R=Ue(e,fve),I=C==="rtl",O=s.useContext(zi),T=O.prefixCls,N=s.useMemo(function(){if(typeof n=="string")return[n];var ne=n||{};return[ne.start,ne.end]},[n]),A=s.useRef(),k=s.useRef(),j=s.useRef(),D=function(ae){var le;return(le=[k,j][ae])===null||le===void 0?void 0:le.current};s.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(ae){if(it(ae)==="object"){var le,re=ae||{},fe=re.index,ue=fe===void 0?0:fe,de=Ue(re,vve);(le=D(ue))===null||le===void 0||le.focus(de)}else{var ie;(ie=D(ae??0))===null||ie===void 0||ie.focus()}},blur:function(){var ae,le;(ae=D(0))===null||ae===void 0||ae.blur(),(le=D(1))===null||le===void 0||le.blur()}}});var F=lW(R),L=s.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),B=iW(P(P({},e),{},{id:N,placeholder:L})),K=ce(B,1),W=K[0],V=s.useState({position:"absolute",width:0}),q=ce(V,2),U=q[0],G=q[1],Y=Zt(function(){var ne=D(c);if(ne){var ae=ne.nativeElement.getBoundingClientRect(),le=A.current.getBoundingClientRect(),re=ae.left-le.left;G(function(fe){return P(P({},fe),{},{width:ae.width,left:re})}),x([ae.left,ae.right,le.width])}});s.useEffect(function(){Y()},[c]);var J=a&&(b[0]&&!p[0]||b[1]&&!p[1]),Q=$&&!p[0],Z=$&&!Q&&!p[1];return s.createElement(Rr,{onResize:Y},s.createElement("div",Me({},F,{className:oe(T,"".concat(T,"-range"),z(z(z(z({},"".concat(T,"-focused"),u),"".concat(T,"-disabled"),p.every(function(ne){return ne})),"".concat(T,"-invalid"),S.some(function(ne){return ne})),"".concat(T,"-rtl"),I),f),style:m,ref:A,onClick:g,onMouseDown:function(ae){var le=ae.target;le!==k.current.inputElement&&le!==j.current.inputElement&&ae.preventDefault(),w==null||w(ae)}}),r&&s.createElement("div",{className:"".concat(T,"-prefix")},r),s.createElement(QP,Me({ref:k},W(0),{autoFocus:Q,tabIndex:E,"date-range":"start"})),s.createElement("div",{className:"".concat(T,"-range-separator")},l),s.createElement(QP,Me({ref:j},W(1),{autoFocus:Z,tabIndex:E,"date-range":"end"})),s.createElement("div",{className:"".concat(T,"-active-bar"),style:U}),s.createElement(g1,{type:"suffix",icon:o}),J&&s.createElement(XP,{icon:a,onClear:h})))}var gve=s.forwardRef(mve);function r5(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function bh(e){return e===1?"end":"start"}function pve(e,t){var n=KV(e,function(){var yn=e.disabled,wt=e.allowEmpty,Dt=r5(yn,!1),Pn=r5(wt,!1);return{disabled:Dt,allowEmpty:Pn}}),r=ce(n,6),a=r[0],o=r[1],i=r[2],l=r[3],c=r[4],u=r[5],d=a.prefixCls,f=a.styles,m=a.classNames,g=a.defaultValue,h=a.value,b=a.needConfirm,p=a.onKeyDown,S=a.disabled,C=a.allowEmpty,x=a.disabledDate,w=a.minDate,$=a.maxDate,E=a.defaultOpen,R=a.open,I=a.onOpenChange,O=a.locale,T=a.generateConfig,N=a.picker,A=a.showNow,k=a.showToday,j=a.showTime,D=a.mode,F=a.onPanelChange,L=a.onCalendarChange,B=a.onOk,K=a.defaultPickerValue,W=a.pickerValue,V=a.onPickerValueChange,q=a.inputReadOnly,U=a.suffixIcon,G=a.onFocus,Y=a.onBlur,J=a.presets,Q=a.ranges,Z=a.components,ne=a.cellRender,ae=a.dateRender,le=a.monthCellRender,re=a.onClick,fe=UV(t),ue=qV(R,E,S,I),de=ce(ue,2),ie=de[0],se=de[1],ve=function(wt,Dt){(S.some(function(Pn){return!Pn})||!wt)&&se(wt,Dt)},he=eW(T,O,l,!0,!1,g,h,L,B),Ce=ce(he,5),pe=Ce[0],Se=Ce[1],ge=Ce[2],ye=Ce[3],xe=Ce[4],$e=ge(),He=YV(S,C,ie),Te=ce(He,9),Re=Te[0],Fe=Te[1],je=Te[2],Ee=Te[3],Le=Te[4],Pe=Te[5],ze=Te[6],Oe=Te[7],we=Te[8],_e=function(wt,Dt){Fe(!0),G==null||G(wt,{range:bh(Dt??Ee)})},Be=function(wt,Dt){Fe(!1),Y==null||Y(wt,{range:bh(Dt??Ee)})},Qe=s.useMemo(function(){if(!j)return null;var yn=j.disabledTime,wt=yn?function(Dt){var Pn=bh(Ee),An=jV($e,ze,Ee);return yn(Dt,Pn,{from:An})}:void 0;return P(P({},j),{},{disabledTime:wt})},[j,Ee,$e,ze]),lt=_t([N,N],{value:D}),Ke=ce(lt,2),et=Ke[0],st=Ke[1],Ze=et[Ee]||N,vt=Ze==="date"&&Qe?"datetime":Ze,Ot=vt===N&&vt!=="time",xt=nW(N,Ze,A,k,!0),mt=tW(a,pe,Se,ge,ye,S,l,Re,ie,u),yt=ce(mt,2),bt=yt[0],tt=yt[1],Ye=Bfe($e,S,ze,T,O,x),Ne=DV($e,u,C),We=ce(Ne,2),rt=We[0],ct=We[1],At=XV(T,O,$e,et,ie,Ee,o,Ot,K,W,Qe==null?void 0:Qe.defaultOpenValue,V,w,$),pt=ce(At,2),ft=pt[0],ut=pt[1],Xt=Zt(function(yn,wt,Dt){var Pn=fm(et,Ee,wt);if((Pn[0]!==et[0]||Pn[1]!==et[1])&&st(Pn),F&&Dt!==!1){var An=ke($e);yn&&(An[Ee]=yn),F(An,Pn)}}),Kt=function(wt,Dt){return fm($e,Dt,wt)},Ut=function(wt,Dt){var Pn=$e;wt&&(Pn=Kt(wt,Ee)),Oe(Ee);var An=Pe(Pn);ye(Pn),bt(Ee,An===null),An===null?ve(!1,{force:!0}):Dt||fe.current.focus({index:An})},kt=function(wt){var Dt,Pn=wt.target.getRootNode();if(!fe.current.nativeElement.contains((Dt=Pn.activeElement)!==null&&Dt!==void 0?Dt:document.activeElement)){var An=S.findIndex(function(ar){return!ar});An>=0&&fe.current.focus({index:An})}ve(!0),re==null||re(wt)},Pt=function(){tt(null),ve(!1,{force:!0})},Lt=s.useState(null),nt=ce(Lt,2),St=nt[0],gt=nt[1],qe=s.useState(null),at=ce(qe,2),dt=at[0],Tt=at[1],Qt=s.useMemo(function(){return dt||$e},[$e,dt]);s.useEffect(function(){ie||Tt(null)},[ie]);var Ct=s.useState([0,0,0]),Rt=ce(Ct,2),Vt=Rt[0],vn=Rt[1],Mn=GV(J,Q),bn=function(wt){Tt(wt),gt("preset")},sr=function(wt){var Dt=tt(wt);Dt&&ve(!1,{force:!0})},cr=function(wt){Ut(wt)},Dr=function(wt){Tt(wt?Kt(wt,Ee):null),gt("cell")},yr=function(wt){ve(!0),_e(wt)},Er=function(){je("panel")},mr=function(wt){var Dt=fm($e,Ee,wt);ye(Dt),!b&&!i&&o===vt&&Ut(wt)},Nn=function(){ve(!1)},Wt=d4(ne,ae,le,bh(Ee)),Ht=$e[Ee]||null,Tn=Zt(function(yn){return u(yn,{activeIndex:Ee})}),Bt=s.useMemo(function(){var yn=dr(a,!1),wt=nn(a,[].concat(ke(Object.keys(yn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return wt},[a]),zt=s.createElement(oW,Me({},Bt,{showNow:xt,showTime:Qe,range:!0,multiplePanel:Ot,activeInfo:Vt,disabledDate:Ye,onFocus:yr,onBlur:Be,onPanelMouseDown:Er,picker:N,mode:Ze,internalMode:vt,onPanelChange:Xt,format:c,value:Ht,isInvalid:Tn,onChange:null,onSelect:mr,pickerValue:ft,defaultOpenValue:du(j==null?void 0:j.defaultOpenValue)[Ee],onPickerValueChange:ut,hoverValue:Qt,onHover:Dr,needConfirm:b,onSubmit:Ut,onOk:xe,presets:Mn,onPresetHover:bn,onPresetSubmit:sr,onNow:cr,cellRender:Wt})),En=function(wt,Dt){var Pn=Kt(wt,Dt);ye(Pn)},Qn=function(){je("input")},Zn=function(wt,Dt){var Pn=ze.length,An=ze[Pn-1];if(Pn&&An!==Dt&&b&&!C[An]&&!we(An)&&$e[An]){fe.current.focus({index:An});return}je("input"),ve(!0,{inherit:!0}),Ee!==Dt&&ie&&!b&&i&&Ut(null,!0),Le(Dt),_e(wt,Dt)},Sn=function(wt,Dt){if(ve(!1),!b&&je()==="input"){var Pn=Pe($e);bt(Ee,Pn===null)}Be(wt,Dt)},Cr=function(wt,Dt){wt.key==="Tab"&&Ut(null,!0),p==null||p(wt,Dt)},Mr=s.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:T,button:Z.button,input:Z.input}},[d,O,T,Z.button,Z.input]);return dn(function(){ie&&Ee!==void 0&&Xt(null,N,!1)},[ie,Ee,N]),dn(function(){var yn=je();!ie&&yn==="input"&&(ve(!1),Ut(null,!0)),!ie&&i&&!b&&yn==="panel"&&(ve(!0),Ut())},[ie]),s.createElement(zi.Provider,{value:Mr},s.createElement(NV,Me({},FV(a),{popupElement:zt,popupStyle:f.popup,popupClassName:m.popup,visible:ie,onClose:Nn,range:!0}),s.createElement(gve,Me({},a,{ref:fe,suffixIcon:U,activeIndex:Re||ie?Ee:null,activeHelp:!!dt,allHelp:!!dt&&St==="preset",focused:Re,onFocus:Zn,onBlur:Sn,onKeyDown:Cr,onSubmit:Ut,value:Qt,maskFormat:c,onChange:En,onInputChange:Qn,format:l,inputReadOnly:q,disabled:S,open:ie,onOpenChange:ve,onClick:kt,onClear:Pt,invalid:rt,onInvalid:ct,onActiveInfo:vn}))))}var hve=s.forwardRef(pve);function bve(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,i=e.formatDate,l=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function g(p,S){return s.createElement("span",{className:oe("".concat(f,"-item")),title:typeof p=="string"?p:null},s.createElement("span",{className:"".concat(f,"-item-content")},p),!l&&S&&s.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:S,className:"".concat(f,"-item-remove")},o))}function h(p){var S=i(p),C=function(w){w&&w.stopPropagation(),r(p)};return g(S,C)}function b(p){var S="+ ".concat(p.length," ...");return g(S)}return s.createElement("div",{className:d},s.createElement(Ti,{prefixCls:m,data:n,renderItem:h,renderRest:b,itemKey:function(S){return i(S)},maxCount:c}),!n.length&&s.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var yve=["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 Cve(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var l=e.locale,c=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,m=e.onClick,g=e.onClear,h=e.internalPicker,b=e.value,p=e.onChange,S=e.onSubmit;e.onInputChange;var C=e.multiple,x=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var w=e.disabled,$=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var R=e.onMouseDown;e.required,e["aria-required"];var I=e.autoFocus,O=e.tabIndex,T=e.removeIcon,N=Ue(e,yve),A=E==="rtl",k=s.useContext(zi),j=k.prefixCls,D=s.useRef(),F=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:D.current,focus:function(Q){var Z;(Z=F.current)===null||Z===void 0||Z.focus(Q)},blur:function(){var Q;(Q=F.current)===null||Q===void 0||Q.blur()}}});var L=lW(N),B=function(Q){p([Q])},K=function(Q){var Z=b.filter(function(ne){return ne&&!Aa(c,l,ne,Q,h)});p(Z),n||S()},W=iW(P(P({},e),{},{onChange:B}),function(J){var Q=J.valueTexts;return{value:Q[0]||"",active:i}}),V=ce(W,2),q=V[0],U=V[1],G=!!(a&&b.length&&!w),Y=C?s.createElement(s.Fragment,null,s.createElement(bve,{prefixCls:j,value:b,onRemove:K,formatDate:U,maxTagCount:x,disabled:w,removeIcon:T,placeholder:u}),s.createElement("input",{className:"".concat(j,"-multiple-input"),value:b.map(U).join(","),ref:F,readOnly:!0,autoFocus:I,tabIndex:O}),s.createElement(g1,{type:"suffix",icon:o}),G&&s.createElement(XP,{icon:a,onClear:g})):s.createElement(QP,Me({ref:F},q(),{autoFocus:I,tabIndex:O,suffixIcon:o,clearIcon:G&&s.createElement(XP,{icon:a,onClear:g}),showActiveCls:!1}));return s.createElement("div",Me({},L,{className:oe(j,z(z(z(z(z({},"".concat(j,"-multiple"),C),"".concat(j,"-focused"),i),"".concat(j,"-disabled"),w),"".concat(j,"-invalid"),$),"".concat(j,"-rtl"),A),d),style:f,ref:D,onClick:m,onMouseDown:function(Q){var Z,ne=Q.target;ne!==((Z=F.current)===null||Z===void 0?void 0:Z.inputElement)&&Q.preventDefault(),R==null||R(Q)}}),r&&s.createElement("div",{className:"".concat(j,"-prefix")},r),Y)}var Sve=s.forwardRef(Cve);function xve(e,t){var n=KV(e),r=ce(n,6),a=r[0],o=r[1],i=r[2],l=r[3],c=r[4],u=r[5],d=a,f=d.prefixCls,m=d.styles,g=d.classNames,h=d.order,b=d.defaultValue,p=d.value,S=d.needConfirm,C=d.onChange,x=d.onKeyDown,w=d.disabled,$=d.disabledDate,E=d.minDate,R=d.maxDate,I=d.defaultOpen,O=d.open,T=d.onOpenChange,N=d.locale,A=d.generateConfig,k=d.picker,j=d.showNow,D=d.showToday,F=d.showTime,L=d.mode,B=d.onPanelChange,K=d.onCalendarChange,W=d.onOk,V=d.multiple,q=d.defaultPickerValue,U=d.pickerValue,G=d.onPickerValueChange,Y=d.inputReadOnly,J=d.suffixIcon,Q=d.removeIcon,Z=d.onFocus,ne=d.onBlur,ae=d.presets,le=d.components,re=d.cellRender,fe=d.dateRender,ue=d.monthCellRender,de=d.onClick,ie=UV(t);function se(Bt){return Bt===null?null:V?Bt:Bt[0]}var ve=rW(A,N,o),he=qV(O,I,[w],T),Ce=ce(he,2),pe=Ce[0],Se=Ce[1],ge=function(zt,En,Qn){if(K){var Zn=P({},Qn);delete Zn.range,K(se(zt),se(En),Zn)}},ye=function(zt){W==null||W(se(zt))},xe=eW(A,N,l,!1,h,b,p,ge,ye),$e=ce(xe,5),He=$e[0],Te=$e[1],Re=$e[2],Fe=$e[3],je=$e[4],Ee=Re(),Le=YV([w]),Pe=ce(Le,4),ze=Pe[0],Oe=Pe[1],we=Pe[2],_e=Pe[3],Be=function(zt){Oe(!0),Z==null||Z(zt,{})},Qe=function(zt){Oe(!1),ne==null||ne(zt,{})},lt=_t(k,{value:L}),Ke=ce(lt,2),et=Ke[0],st=Ke[1],Ze=et==="date"&&F?"datetime":et,vt=nW(k,et,j,D),Ot=C&&function(Bt,zt){C(se(Bt),se(zt))},xt=tW(P(P({},a),{},{onChange:Ot}),He,Te,Re,Fe,[],l,ze,pe,u),mt=ce(xt,2),yt=mt[1],bt=DV(Ee,u),tt=ce(bt,2),Ye=tt[0],Ne=tt[1],We=s.useMemo(function(){return Ye.some(function(Bt){return Bt})},[Ye]),rt=function(zt,En){if(G){var Qn=P(P({},En),{},{mode:En.mode[0]});delete Qn.range,G(zt[0],Qn)}},ct=XV(A,N,Ee,[et],pe,_e,o,!1,q,U,du(F==null?void 0:F.defaultOpenValue),rt,E,R),At=ce(ct,2),pt=At[0],ft=At[1],ut=Zt(function(Bt,zt,En){if(st(zt),B&&En!==!1){var Qn=Bt||Ee[Ee.length-1];B(Qn,zt)}}),Xt=function(){yt(Re()),Se(!1,{force:!0})},Kt=function(zt){!w&&!ie.current.nativeElement.contains(document.activeElement)&&ie.current.focus(),Se(!0),de==null||de(zt)},Ut=function(){yt(null),Se(!1,{force:!0})},kt=s.useState(null),Pt=ce(kt,2),Lt=Pt[0],nt=Pt[1],St=s.useState(null),gt=ce(St,2),qe=gt[0],at=gt[1],dt=s.useMemo(function(){var Bt=[qe].concat(ke(Ee)).filter(function(zt){return zt});return V?Bt:Bt.slice(0,1)},[Ee,qe,V]),Tt=s.useMemo(function(){return!V&&qe?[qe]:Ee.filter(function(Bt){return Bt})},[Ee,qe,V]);s.useEffect(function(){pe||at(null)},[pe]);var Qt=GV(ae),Ct=function(zt){at(zt),nt("preset")},Rt=function(zt){var En=V?ve(Re(),zt):[zt],Qn=yt(En);Qn&&!V&&Se(!1,{force:!0})},Vt=function(zt){Rt(zt)},vn=function(zt){at(zt),nt("cell")},Mn=function(zt){Se(!0),Be(zt)},bn=function(zt){if(we("panel"),!(V&&Ze!==k)){var En=V?ve(Re(),zt):[zt];Fe(En),!S&&!i&&o===Ze&&Xt()}},sr=function(){Se(!1)},cr=d4(re,fe,ue),Dr=s.useMemo(function(){var Bt=dr(a,!1),zt=nn(a,[].concat(ke(Object.keys(Bt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return P(P({},zt),{},{multiple:a.multiple})},[a]),yr=s.createElement(oW,Me({},Dr,{showNow:vt,showTime:F,disabledDate:$,onFocus:Mn,onBlur:Qe,picker:k,mode:et,internalMode:Ze,onPanelChange:ut,format:c,value:Ee,isInvalid:u,onChange:null,onSelect:bn,pickerValue:pt,defaultOpenValue:F==null?void 0:F.defaultOpenValue,onPickerValueChange:ft,hoverValue:dt,onHover:vn,needConfirm:S,onSubmit:Xt,onOk:je,presets:Qt,onPresetHover:Ct,onPresetSubmit:Rt,onNow:Vt,cellRender:cr})),Er=function(zt){Fe(zt)},mr=function(){we("input")},Nn=function(zt){we("input"),Se(!0,{inherit:!0}),Be(zt)},Wt=function(zt){Se(!1),Qe(zt)},Ht=function(zt,En){zt.key==="Tab"&&Xt(),x==null||x(zt,En)},Tn=s.useMemo(function(){return{prefixCls:f,locale:N,generateConfig:A,button:le.button,input:le.input}},[f,N,A,le.button,le.input]);return dn(function(){pe&&_e!==void 0&&ut(null,k,!1)},[pe,_e,k]),dn(function(){var Bt=we();!pe&&Bt==="input"&&(Se(!1),Xt()),!pe&&i&&!S&&Bt==="panel"&&Xt()},[pe]),s.createElement(zi.Provider,{value:Tn},s.createElement(NV,Me({},FV(a),{popupElement:yr,popupStyle:m.popup,popupClassName:g.popup,visible:pe,onClose:sr}),s.createElement(Sve,Me({},a,{ref:ie,suffixIcon:J,removeIcon:Q,activeHelp:!!qe,allHelp:!!qe&&Lt==="preset",focused:ze,onFocus:Nn,onBlur:Wt,onKeyDown:Ht,onSubmit:Xt,value:Tt,maskFormat:c,onChange:Er,onInputChange:mr,internalPicker:o,format:l,inputReadOnly:Y,disabled:w,open:pe,onOpenChange:Se,onClick:Kt,onClear:Ut,invalid:We,onInvalid:function(zt){Ne(zt,0)}}))))}var wve=s.forwardRef(xve);const sW=s.createContext(null),$ve=sW.Provider,cW=s.createContext(null),Eve=cW.Provider;var Pve=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],uW=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,g=e.onChange,h=Ue(e,Pve),b=s.useRef(null),p=s.useRef(null),S=_t(u,{value:i}),C=ce(S,2),x=C[0],w=C[1];s.useImperativeHandle(t,function(){return{focus:function(I){var O;(O=b.current)===null||O===void 0||O.focus(I)},blur:function(){var I;(I=b.current)===null||I===void 0||I.blur()},input:b.current,nativeElement:p.current}});var $=oe(r,a,z(z({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),l)),E=function(I){l||("checked"in e||w(I.target.checked),g==null||g({target:P(P({},e),{},{type:f,checked:I.target.checked}),stopPropagation:function(){I.stopPropagation()},preventDefault:function(){I.preventDefault()},nativeEvent:I.nativeEvent}))};return s.createElement("span",{className:$,title:m,style:o,ref:p},s.createElement("input",Me({},h,{className:"".concat(r,"-input"),ref:b,onChange:E,disabled:l,checked:!!x,type:f})),s.createElement("span",{className:"".concat(r,"-inner")}))});function dW(e){const t=ee.useRef(null),n=()=>{on.cancel(t.current),t.current=null};return[()=>{n(),t.current=on(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const Ove=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},wn(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Ive=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:g,dotColorDisabled:h,lineType:b,radioColor:p,radioBgColor:S,calc:C}=e,x=`${t}-inner`,$=C(a).sub(C(4).mul(2)),E=C(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},wn(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,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:`${me(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},wn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:ri(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:C(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:p,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${C($).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},Rve=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:m,controlHeightSM:g,paddingXS:h,borderRadius:b,borderRadiusSM:p,borderRadiusLG:S,buttonCheckedBg:C,buttonSolidCheckedColor:x,colorTextDisabled:w,colorBgContainerDisabled:$,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:R,colorPrimary:I,colorPrimaryHover:O,colorPrimaryActive:T,buttonSolidCheckedBg:N,buttonSolidCheckedHoverBg:A,buttonSolidCheckedActiveBg:k,calc:j}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:me(j(n).sub(j(a).mul(2)).equal()),background:d,border:`${me(a)} ${o} ${i}`,borderBlockStartWidth:j(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:j(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${me(a)} ${o} ${i}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${r}-group-large &`]:{height:m,fontSize:f,lineHeight:me(j(m).sub(j(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${r}-group-small &`]:{height:g,paddingInline:j(h).sub(a).equal(),paddingBlock:0,lineHeight:me(j(g).sub(j(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":ri(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:I,background:C,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:N,borderColor:N,"&:hover":{color:x,background:A,borderColor:A},"&:active":{color:x,background:k,borderColor:k}},"&-disabled":{color:w,backgroundColor:$,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:$,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:E,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Mve=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:g,colorWhite:h}=e,b=4,p=o,S=t?p-b*2:p-(b+a)*2;return{radioSize:p,dotSize:S,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?l:f}},fW=un("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${me(n)} ${t}`,o=tn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Ove(o),Ive(o),Rve(o)]},Mve,{unitless:{radioSize:!0,dotSize:!0}});var Tve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=s.useContext(sW),o=s.useContext(cW),{getPrefixCls:i,direction:l,radio:c}=s.useContext(jt),u=s.useRef(null),d=Fr(t,u),{isFormItemInput:f}=s.useContext(zr),m=F=>{var L,B;(L=e.onChange)===null||L===void 0||L.call(e,F),(B=a==null?void 0:a.onChange)===null||B===void 0||B.call(a,F)},{prefixCls:g,className:h,rootClassName:b,children:p,style:S,title:C}=e,x=Tve(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",g),$=((a==null?void 0:a.optionType)||o)==="button",E=$?`${w}-button`:w,R=Gn(w),[I,O,T]=fW(w,R),N=Object.assign({},x),A=s.useContext(Lr);a&&(N.name=a.name,N.onChange=m,N.checked=e.value===a.value,N.disabled=(n=N.disabled)!==null&&n!==void 0?n:a.disabled),N.disabled=(r=N.disabled)!==null&&r!==void 0?r:A;const k=oe(`${E}-wrapper`,{[`${E}-wrapper-checked`]:N.checked,[`${E}-wrapper-disabled`]:N.disabled,[`${E}-wrapper-rtl`]:l==="rtl",[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!(a!=null&&a.block)},c==null?void 0:c.className,h,b,O,T,R),[j,D]=dW(N.onClick);return I(s.createElement(vg,{component:"Radio",disabled:N.disabled},s.createElement("label",{className:k,style:Object.assign(Object.assign({},c==null?void 0:c.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:j},s.createElement(uW,Object.assign({},N,{className:oe(N.className,{[Dy]:!$}),type:"radio",prefixCls:E,ref:d,onClick:D})),p!==void 0?s.createElement("span",{className:`${E}-label`},p):null)))},Ub=s.forwardRef(Nve),_ve=["parentNode"],jve="form_item";function vm(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function vW(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:_ve.includes(n)?`${jve}_${n}`:n}function mW(e,t,n,r,a,o){let i=r;return o!==void 0?i=o:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||a&&n.validated)&&(i="success"),i}var Fve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const i=JP(a);o?n.current[i]=o:delete n.current[i]}},scrollToField:(a,o={})=>{const{focus:i}=o,l=Fve(o,["focus"]),c=a5(a,r);c&&(ine(c,Object.assign({scrollMode:"if-needed",block:"nearest"},l)),i&&r.focusField(a))},focusField:a=>{var o,i;const l=r.getFieldInstance(a);typeof(l==null?void 0:l.focus)=="function"?l.focus():(i=(o=a5(a,r))===null||o===void 0?void 0:o.focus)===null||i===void 0||i.call(o)},getFieldInstance:a=>{const o=JP(a);return n.current[o]}}),[e,t]);return[r]}const Dve=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(jt),{name:a}=s.useContext(zr),o=Cf(JP(a)),{prefixCls:i,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:m,size:g,style:h,id:b,optionType:p,name:S=o,defaultValue:C,value:x,block:w=!1,onChange:$,onMouseEnter:E,onMouseLeave:R,onFocus:I,onBlur:O}=e,[T,N]=_t(C,{value:x}),A=s.useCallback(U=>{const G=T,Y=U.target.value;"value"in e||N(Y),Y!==G&&($==null||$(U))},[T,N,$]),k=n("radio",i),j=`${k}-group`,D=Gn(k),[F,L,B]=fW(k,D);let K=m;u&&u.length>0&&(K=u.map(U=>typeof U=="string"||typeof U=="number"?s.createElement(Ub,{key:U.toString(),prefixCls:k,disabled:f,value:U,checked:T===U},U):s.createElement(Ub,{key:`radio-group-value-options-${U.value}`,prefixCls:k,disabled:U.disabled||f,value:U.value,checked:T===U.value,title:U.title,style:U.style,className:U.className,id:U.id,required:U.required},U.label)));const W=$r(g),V=oe(j,`${j}-${d}`,{[`${j}-${W}`]:W,[`${j}-rtl`]:r==="rtl",[`${j}-block`]:w},l,c,L,B,D),q=s.useMemo(()=>({onChange:A,value:T,disabled:f,name:S,optionType:p,block:w}),[A,T,f,S,p,w]);return F(s.createElement("div",Object.assign({},dr(e,{aria:!0,data:!0}),{className:V,style:h,onMouseEnter:E,onMouseLeave:R,onFocus:I,onBlur:O,id:b,ref:t}),s.createElement($ve,{value:q},K)))}),kve=s.memo(Dve);var Ave=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=s.useContext(jt),{prefixCls:r}=e,a=Ave(e,["prefixCls"]),o=n("radio",r);return s.createElement(Eve,{value:"button"},s.createElement(Ub,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},Bve=s.forwardRef(Lve),If=Ub;If.Button=Bve;If.Group=kve;If.__ANT_RADIO=!0;function vu(e){return tn(e,{inputAffixPadding:e.paddingXXS})}const mu=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:h,controlOutlineWidth:b,controlOutline:p,colorErrorOutline:S,colorWarningOutline:C,colorBgContainer:x,inputFontSize:w,inputFontSizeLG:$,inputFontSizeSM:E}=e,R=w||n,I=E||R,O=$||l,T=Math.round((t-R*r)/2*10)/10-a,N=Math.round((o-I*r)/2*10)/10-a,A=Math.ceil((i-O*c)/2*10)/10-a;return{paddingBlock:Math.max(T,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(A,0),paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:m,activeBorderColor:h,hoverBorderColor:g,activeShadow:`0 0 0 ${b}px ${p}`,errorActiveShadow:`0 0 0 ${b}px ${S}`,warningActiveShadow:`0 0 0 ${b}px ${C}`,hoverBg:x,activeBg:x,inputFontSize:R,inputFontSizeLG:O,inputFontSizeSM:I}},zve=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),p1=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({},zve(tn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),p4=(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}}),o5=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},p4(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),h4=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p4(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},p1(e))}),o5(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),o5(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),i5=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),pW=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},i5(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),i5(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},p1(e))}})}),b4=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},hW=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},l5=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},hW(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),y4=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hW(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},p1(e))}),l5(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),l5(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),s5=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),bW=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},s5(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),s5(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:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),yW=(e,t)=>({background:e.colorBgContainer,borderWidth:`${me(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}}),c5=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},yW(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`}}),C4=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},yW(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"}}),c5(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),c5(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),S4=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),CW=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${me(t)} ${me(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},x4=e=>({padding:`${me(e.paddingBlockSM)} ${me(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),$g=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${me(e.paddingBlock)} ${me(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},S4(e.colorTextPlaceholder)),{"&-lg":Object.assign({},CW(e)),"&-sm":Object.assign({},x4(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),SW=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},CW(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},x4(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${me(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${me(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${me(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${me(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${me(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},_m()),{[`${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},[` + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${me(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},vfe=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),mfe=dn("Breadcrumb",e=>{const t=en(e,{});return ffe(t)},vfe);var l5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{breadcrumbName:i}=o,l=l5(o,["breadcrumbName"]);return Object.assign(Object.assign({},l),{title:i})})}),a}function pfe(e,t){return s.useMemo(()=>e||(t?t.map(gfe):null),[e,t])}var hfe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(t===void 0)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{n=n.replace(`:${r}`,e[r])}),n},C4=e=>{const{prefixCls:t,separator:n="/",style:r,className:a,rootClassName:o,routes:i,items:l,children:c,itemRender:u,params:d={}}=e,f=hfe(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:m,direction:g,breadcrumb:h}=s.useContext(jt);let b;const p=m("breadcrumb",t),[S,C,x]=mfe(p),w=pfe(l,i),$=dfe(p,u);if(w&&w.length>0){const I=[],O=l||i;b=w.map((T,_)=>{const{path:k,key:A,type:j,menu:D,overlay:F,onClick:L,className:B,separator:K,dropdownProps:W}=T,V=bfe(d,k);V!==void 0&&I.push(V);const q=A??_;if(j==="separator")return s.createElement(h1,{key:q},K);const U={},G=_===w.length-1;D?U.menu=D:F&&(U.overlay=F);let{href:Y}=T;return I.length&&V!==void 0&&(Y=`#/${I.join("/")}`),s.createElement(VV,Object.assign({key:q},U,ar(T,{data:!0,aria:!0}),{className:B,dropdownProps:W,href:Y,separator:G?"":n,onClick:L,prefixCls:p}),$(T,d,O,I,Y))})}else if(c){const I=rr(c).length;b=rr(c).map((O,T)=>{if(!O)return O;const _=T===I-1;return zr(O,{separator:_?"":n,key:T})})}const E=oe(p,h==null?void 0:h.className,{[`${p}-rtl`]:g==="rtl"},a,o,C,x),R=Object.assign(Object.assign({},h==null?void 0:h.style),r);return S(s.createElement("nav",Object.assign({className:E,style:R},f),s.createElement("ol",null,b)))};C4.Item=WV;C4.Separator=h1;var q0={exports:{}},yfe=q0.exports,s5;function KV(){return s5||(s5=1,(function(e,t){(function(n,r){e.exports=r()})(yfe,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",i="second",l="minute",c="hour",u="day",d="week",f="month",m="quarter",g="year",h="date",b="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|YYYY|YY|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,C={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(j){var D=["th","st","nd","rd"],F=j%100;return"["+j+(D[(F-20)%10]||D[F]||D[0])+"]"}},x=function(j,D,F){var L=String(j);return!L||L.length>=D?j:""+Array(D+1-L.length).join(F)+j},w={s:x,z:function(j){var D=-j.utcOffset(),F=Math.abs(D),L=Math.floor(F/60),B=F%60;return(D<=0?"+":"-")+x(L,2,"0")+":"+x(B,2,"0")},m:function j(D,F){if(D.date()1)return j(W[0])}else{var V=D.name;E[V]=D,B=V}return!L&&B&&($=B),B||!L&&$},T=function(j,D){if(I(j))return j.clone();var F=typeof D=="object"?D:{};return F.date=j,F.args=arguments,new k(F)},_=w;_.l=O,_.i=I,_.w=function(j,D){return T(j,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var k=(function(){function j(F){this.$L=O(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[R]=!0}var D=j.prototype;return D.parse=function(F){this.$d=(function(L){var B=L.date,K=L.utc;if(B===null)return new Date(NaN);if(_.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var W=B.match(p);if(W){var V=W[2]-1||0,q=(W[7]||"0").substring(0,3);return K?new Date(Date.UTC(W[1],V,W[3]||1,W[4]||0,W[5]||0,W[6]||0,q)):new Date(W[1],V,W[3]||1,W[4]||0,W[5]||0,W[6]||0,q)}}return new Date(B)})(F),this.init()},D.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},D.$utils=function(){return _},D.isValid=function(){return this.$d.toString()!==b},D.isSame=function(F,L){var B=T(F);return this.startOf(L)<=B&&B<=this.endOf(L)},D.isAfter=function(F,L){return T(F)25){var d=i(this).startOf(r).add(1,r).date(u),f=i(this).endOf(n);if(d.isBefore(f))return 1}var m=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(m,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(Y0)),Y0.exports}var Rfe=Ife();const S4=rn(Rfe);var X0={exports:{}},Mfe=X0.exports,f5;function Tfe(){return f5||(f5=1,(function(e,t){(function(n,r){e.exports=r()})(Mfe,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),i=this.year();return o===1&&a===11?i+1:a===0&&o>=52?i-1:i}}}))})(X0)),X0.exports}var Nfe=Tfe();const _fe=rn(Nfe);var Q0={exports:{}},jfe=Q0.exports,v5;function Ffe(){return v5||(v5=1,(function(e,t){(function(n,r){e.exports=r()})(jfe,(function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return o.bind(this)(i);var u=this.$utils(),d=(i||"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((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),f==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return f}}));return o.bind(this)(d)}}}))})(Q0)),Q0.exports}var Dfe=Ffe();const GV=rn(Dfe);var J0={exports:{}},kfe=J0.exports,m5;function Afe(){return m5||(m5=1,(function(e,t){(function(n,r){e.exports=r()})(kfe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,c={},u=function(p){return(p=+p)+(p>68?1900:2e3)},d=function(p){return function(S){this[p]=+S}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var C=S.match(/([+-]|\d\d)/g),x=60*C[1]+(+C[2]||0);return x===0?0:C[0]==="+"?-x:x})(p)}],m=function(p){var S=c[p];return S&&(S.indexOf?S:S.s.concat(S.f))},g=function(p,S){var C,x=c.meridiem;if(x){for(var w=1;w<=24;w+=1)if(p.indexOf(x(w,0,S))>-1){C=w>12;break}}else C=p===(S?"pm":"PM");return C},h={A:[l,function(p){this.afternoon=g(p,!1)}],a:[l,function(p){this.afternoon=g(p,!0)}],Q:[a,function(p){this.month=3*(p-1)+1}],S:[a,function(p){this.milliseconds=100*+p}],SS:[o,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[o,d("day")],Do:[l,function(p){var S=c.ordinal,C=p.match(/\d+/);if(this.day=C[0],S)for(var x=1;x<=31;x+=1)S(x).replace(/\[|\]/g,"")===p&&(this.day=x)}],w:[i,d("week")],ww:[o,d("week")],M:[i,d("month")],MM:[o,d("month")],MMM:[l,function(p){var S=m("months"),C=(m("monthsShort")||S.map((function(x){return x.slice(0,3)}))).indexOf(p)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[l,function(p){var S=m("months").indexOf(p)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(p){this.year=u(p)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function b(p){var S,C;S=p,C=c&&c.formats;for(var x=(p=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,_,k){var A=k&&k.toUpperCase();return _||C[k]||n[k]||C[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(j,D,F){return D||F.slice(1)}))}))).match(r),w=x.length,$=0;$-1)return new Date((B==="X"?1e3:1)*L);var V=b(B)(L),q=V.year,U=V.month,G=V.day,Y=V.hours,J=V.minutes,Q=V.seconds,Z=V.milliseconds,ne=V.zone,ae=V.week,le=new Date,re=G||(q||U?1:le.getDate()),fe=q||le.getFullYear(),ue=0;q&&!U||(ue=U>0?U-1:le.getMonth());var de,ie=Y||0,se=J||0,ve=Q||0,he=Z||0;return ne?new Date(Date.UTC(fe,ue,re,ie,se,ve,he+60*ne.offset*1e3)):K?new Date(Date.UTC(fe,ue,re,ie,se,ve,he)):(de=new Date(fe,ue,re,ie,se,ve,he),ae&&(de=W(de).week(ae).toDate()),de)}catch{return new Date("")}})(E,O,R,C),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),k&&E!=this.format(O)&&(this.$d=new Date("")),c={}}else if(O instanceof Array)for(var j=O.length,D=1;D<=j;D+=1){I[1]=O[D-1];var F=C.apply(this,I);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}D===j&&(this.$d=new Date(""))}else w.call(this,$)}}}))})(J0)),J0.exports}var Lfe=Afe();const YV=rn(Lfe);In.extend(YV);In.extend(GV);In.extend(qV);In.extend(UV);In.extend(S4);In.extend(_fe);In.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var i=(o||"").replace("Wo","wo");return r.bind(this)(i)}});var Bfe={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"},Cc=function(t){var n=Bfe[t];return n||t.split("_")[0]},zfe={getNow:function(){var t=In();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return In(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.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,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return In().locale(Cc(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Cc(t)).weekday(0)},getWeek:function(t,n){return n.locale(Cc(t)).week()},getShortWeekDays:function(t){return In().locale(Cc(t)).localeData().weekdaysMin()},getShortMonths:function(t){return In().locale(Cc(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Cc(t)).format(r)},parse:function(t,n,r){for(var a=Cc(t),o=0;o2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=s.useState([!1,!1]),a=ce(r,2),o=a[0],i=a[1],l=function(d,f){i(function(m){return fm(m,f,d)})},c=s.useMemo(function(){return o.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,o,t,n]);return[c,l]}function tW(e,t,n,r,a){var o="",i=[];return e&&i.push(a?"hh":"HH"),t&&i.push("mm"),n&&i.push("ss"),o=i.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function Wfe(e,t,n,r,a,o){var i=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,g=e.yearFormat,h=e.cellYearFormat,b=e.cellQuarterFormat,p=e.dayFormat,S=e.cellDateFormat,C=tW(t,n,r,a,o);return P(P({},e),{},{fieldDateTimeFormat:i||"YYYY-MM-DD ".concat(C),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||C,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:S||p||"D"})}function nW(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,i=t.use12Hours;return ee.useMemo(function(){return Wfe(e,n,r,a,o,i)},[e,n,r,a,o,i])}function wv(e,t,n){return n??t.some(function(r){return e.includes(r)})}var Kfe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function qfe(e){var t=b1(e,Kfe),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=it(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function Ufe(e){return e&&typeof e=="string"}function rW(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function aW(e,t,n,r,a){var o=t,i=n,l=r;if(!e&&!o&&!i&&!l&&!a)o=!0,i=!0,l=!0;else if(e){var c,u,d,f=[o,i,l].some(function(h){return h===!1}),m=[o,i,l].some(function(h){return h===!0}),g=f?!0:!m;o=(c=o)!==null&&c!==void 0?c:g,i=(u=i)!==null&&u!==void 0?u:g,l=(d=l)!==null&&d!==void 0?d:g}return[o,i,l,a]}function oW(e){var t=e.showTime,n=qfe(e),r=ce(n,2),a=r[0],o=r[1],i=t&&it(t)==="object"?t:{},l=P(P({defaultOpenValue:i.defaultOpenValue||i.defaultValue},a),i),c=l.showMillisecond,u=l.showHour,d=l.showMinute,f=l.showSecond,m=rW(u,d,f,c),g=aW(m,u,d,f,c),h=ce(g,3);return u=h[0],d=h[1],f=h[2],[l,P(P({},l),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:c}),l.format,o]}function iW(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var i=r,l=QV(e,a,null),c=l,u=[t,n],d=0;d1&&(i=t.addDate(i,-7)),i}function ia(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function Xb(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(i,l){n?r=e[i](r,e[a[l]](n)):r=e[i](r,0)}),r}function Qfe(e,t,n,r,a){var o=Zt(function(i,l){return!!(n&&n(i,l)||r&&e.isAfter(r,i)&&!ka(e,t,r,i,l.type)||a&&e.isAfter(i,a)&&!ka(e,t,a,i,l.type))});return o}function Jfe(e,t,n){return s.useMemo(function(){var r=QV(e,t,n),a=fu(r),o=a[0],i=it(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(l){return typeof l=="string"||typeof l=="function"?l:l.format}),i]},[e,t,n])}function Zfe(e,t,n){return typeof e[0]=="function"||n?!0:t}function eve(e,t,n,r){var a=Zt(function(o,i){var l=P({type:t},i);if(delete l.activeIndex,!e.isValidate(o)||n&&n(o,l))return!0;if((t==="date"||t==="time")&&r){var c,u=i&&i.activeIndex===1?"end":"start",d=((c=r.disabledTime)===null||c===void 0?void 0:c.call(r,o,u,{from:l.from}))||{},f=d.disabledHours,m=d.disabledMinutes,g=d.disabledSeconds,h=d.disabledMilliseconds,b=r.disabledHours,p=r.disabledMinutes,S=r.disabledSeconds,C=f||b,x=m||p,w=g||S,$=e.getHour(o),E=e.getMinute(o),R=e.getSecond(o),I=e.getMillisecond(o);if(C&&C().includes($)||x&&x($).includes(E)||w&&w($,E).includes(R)||h&&h($,E,R).includes(I))return!0}return!1});return a}function gh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=s.useMemo(function(){var r=e&&fu(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function cW(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,i=e.prefixCls,l=i===void 0?"rc-picker":i,c=e.styles,u=c===void 0?{}:c,d=e.classNames,f=d===void 0?{}:d,m=e.order,g=m===void 0?!0:m,h=e.components,b=h===void 0?{}:h,p=e.inputRender,S=e.allowClear,C=e.clearIcon,x=e.needConfirm,w=e.multiple,$=e.format,E=e.inputReadOnly,R=e.disabledDate,I=e.minDate,O=e.maxDate,T=e.showTime,_=e.value,k=e.defaultValue,A=e.pickerValue,j=e.defaultPickerValue,D=gh(_),F=gh(k),L=gh(A),B=gh(j),K=o==="date"&&T?"datetime":o,W=K==="time"||K==="datetime",V=W||w,q=x??W,U=oW(e),G=ce(U,4),Y=G[0],J=G[1],Q=G[2],Z=G[3],ne=nW(r,J),ae=s.useMemo(function(){return iW(K,Q,Z,Y,ne)},[K,Q,Z,Y,ne]),le=s.useMemo(function(){return P(P({},e),{},{prefixCls:l,locale:ne,picker:o,styles:u,classNames:f,order:g,components:P({input:p},b),clearIcon:Gfe(l,S,C),showTime:ae,value:D,defaultValue:F,pickerValue:L,defaultPickerValue:B},t==null?void 0:t())},[e]),re=Jfe(K,ne,$),fe=ce(re,2),ue=fe[0],de=fe[1],ie=Zfe(ue,E,w),se=Qfe(n,r,R,I,O),ve=eve(n,o,se,ae),he=s.useMemo(function(){return P(P({},le),{},{needConfirm:q,inputReadOnly:ie,disabledDate:se})},[le,q,ie,se]);return[he,K,V,ue,de,ve]}function tve(e,t,n){var r=Nt(t,{value:e}),a=ce(r,2),o=a[0],i=a[1],l=ee.useRef(e),c=ee.useRef(),u=function(){ln.cancel(c.current)},d=Zt(function(){i(l.current),n&&o!==l.current&&n(l.current)}),f=Zt(function(m,g){u(),l.current=m,m||g?d():c.current=ln(d)});return ee.useEffect(function(){return u},[]),[o,f]}function uW(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(d){return d})?!1:e,o=tve(a,t||!1,r),i=ce(o,2),l=i[0],c=i[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||l)&&c(d,f.force)}return[l,u]}function dW(e){var t=s.useRef();return s.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function fW(e,t){return s.useMemo(function(){return e||(t?(Kn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ce(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function P4(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=s.useRef(t);r.current=t,Hc(function(){if(e)r.current(e);else{var a=ln(function(){r.current(e)},n);return function(){ln.cancel(a)}}},[e])}function vW(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=s.useState(0),a=ce(r,2),o=a[0],i=a[1],l=s.useState(!1),c=ce(l,2),u=c[0],d=c[1],f=s.useRef([]),m=s.useRef(null),g=s.useRef(null),h=function(w){m.current=w},b=function(w){return m.current===w},p=function(w){d(w)},S=function(w){return w&&(g.current=w),g.current},C=function(w){var $=f.current,E=new Set($.filter(function(I){return w[I]||t[I]})),R=$[$.length-1]===0?1:0;return E.size>=2||e[R]?null:R};return P4(u||n,function(){u||(f.current=[],h(null))}),s.useEffect(function(){u&&f.current.push(o)},[u,o]),[u,p,S,o,i,C,f.current,h,b]}function nve(e,t,n,r,a,o){var i=n[n.length-1],l=function(u,d){var f=ce(e,2),m=f[0],g=f[1],h=P(P({},d),{},{from:JV(e,n)});return i===1&&t[0]&&m&&!ka(r,a,m,u,h.type)&&r.isAfter(m,u)||i===0&&t[1]&&g&&!ka(r,a,g,u,h.type)&&r.isAfter(u,g)?!0:o==null?void 0:o(u,h)};return l}function Jv(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Rx=[];function mW(e,t,n,r,a,o,i,l){var c=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Rx,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Rx,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Rx,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,g=arguments.length>13?arguments[13]:void 0,h=i==="time",b=o||0,p=function(L){var B=e.getNow();return h&&(B=Xb(e,B)),c[L]||n[L]||B},S=ce(u,2),C=S[0],x=S[1],w=Nt(function(){return p(0)},{value:C}),$=ce(w,2),E=$[0],R=$[1],I=Nt(function(){return p(1)},{value:x}),O=ce(I,2),T=O[0],_=O[1],k=s.useMemo(function(){var F=[E,T][b];return h?F:Xb(e,F,d[b])},[h,E,T,b,e,d]),A=function(L){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",K=[R,_][b];K(L);var W=[E,T];W[b]=L,f&&(!ka(e,t,E,W[0],i)||!ka(e,t,T,W[1],i))&&f(W,{source:B,range:b===1?"end":"start",mode:r})},j=function(L,B){if(l){var K={date:"month",week:"month",month:"year",quarter:"year"},W=K[i];if(W&&!ka(e,t,L,B,W))return Jv(e,i,B,-1);if(i==="year"&&L){var V=Math.floor(e.getYear(L)/10),q=Math.floor(e.getYear(B)/10);if(V!==q)return Jv(e,i,B,-1)}}return B},D=s.useRef(null);return fn(function(){if(a&&!c[b]){var F=h?null:e.getNow();if(D.current!==null&&D.current!==b?F=[E,T][b^1]:n[b]?F=b===0?n[0]:j(n[0],n[1]):n[b^1]&&(F=n[b^1]),F){m&&e.isAfter(m,F)&&(F=m);var L=l?Jv(e,i,F,1):F;g&&e.isAfter(L,g)&&(F=l?Jv(e,i,g,-1):g),A(F,"reset")}}},[a,b,n[b]]),s.useEffect(function(){a?D.current=b:D.current=null},[a,b]),fn(function(){a&&c&&c[b]&&A(c[b],"reset")},[a,b]),[k,A]}function gW(e,t){var n=s.useRef(e),r=s.useState({}),a=ce(r,2),o=a[1],i=function(u){return u&&t!==void 0?t:n.current},l=function(u){n.current=u,o({})};return[i,l,i(!0)]}var rve=[];function pW(e,t,n){var r=function(i){return i.map(function(l){return ia(l,{generateConfig:e,locale:t,format:n[0]})})},a=function(i,l){for(var c=Math.max(i.length,l.length),u=-1,d=0;d2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,i=[],l=n>=1?n|0:1,c=e;c<=t;c+=l){var u=a.includes(c);(!u||!r)&&i.push({label:x4(c,o),value:c,disabled:u})}return i}function O4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,i=o===void 0?1:o,l=r.minuteStep,c=l===void 0?1:l,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,m=f===void 0?100:f,g=r.hideDisabledOptions,h=r.disabledTime,b=r.disabledHours,p=r.disabledMinutes,S=r.disabledSeconds,C=s.useMemo(function(){return n||e.getNow()},[n,e]),x=s.useCallback(function(B){var K=(h==null?void 0:h(B))||{};return[K.disabledHours||b||ph,K.disabledMinutes||p||ph,K.disabledSeconds||S||ph,K.disabledMilliseconds||ph]},[h,b,p,S]),w=s.useMemo(function(){return x(C)},[C,x]),$=ce(w,4),E=$[0],R=$[1],I=$[2],O=$[3],T=s.useCallback(function(B,K,W,V){var q=hh(0,23,i,g,B()),U=a?q.map(function(Q){return P(P({},Q),{},{label:x4(Q.value%12||12,2)})}):q,G=function(Z){return hh(0,59,c,g,K(Z))},Y=function(Z,ne){return hh(0,59,d,g,W(Z,ne))},J=function(Z,ne,ae){return hh(0,999,m,g,V(Z,ne,ae),3)};return[U,G,Y,J]},[g,i,a,m,c,d]),_=s.useMemo(function(){return T(E,R,I,O)},[T,E,R,I,O]),k=ce(_,4),A=k[0],j=k[1],D=k[2],F=k[3],L=function(K,W){var V=function(){return A},q=j,U=D,G=F;if(W){var Y=x(W),J=ce(Y,4),Q=J[0],Z=J[1],ne=J[2],ae=J[3],le=T(Q,Z,ne,ae),re=ce(le,4),fe=re[0],ue=re[1],de=re[2],ie=re[3];V=function(){return fe},q=ue,U=de,G=ie}var se=ove(K,V,q,U,G,e);return se};return[L,A,j,D,F]}function ive(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,i=e.onSubmit,l=e.onNow,c=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=s.useContext(Wi),g=m.prefixCls,h=m.locale,b=m.button,p=b===void 0?"button":b,S=d.getNow(),C=O4(d,o,S),x=ce(C,1),w=x[0],$=r==null?void 0:r(t),E=f(S,{type:t}),R=function(){if(!E){var j=w(S);l(j)}},I="".concat(g,"-now"),O="".concat(I,"-btn"),T=a&&s.createElement("li",{className:I},s.createElement("a",{className:oe(O,E&&"".concat(O,"-disabled")),"aria-disabled":E,onClick:R},n==="date"?h.today:h.now)),_=u&&s.createElement("li",{className:"".concat(g,"-ok")},s.createElement(p,{disabled:c,onClick:i},h.ok)),k=(T||_)&&s.createElement("ul",{className:"".concat(g,"-ranges")},T,_);return!$&&!k?null:s.createElement("div",{className:"".concat(g,"-footer")},$&&s.createElement("div",{className:"".concat(g,"-footer-extra")},$),k)}function SW(e,t,n){function r(a,o){var i=a.findIndex(function(c){return ka(e,t,c,o,n)});if(i===-1)return[].concat(ke(a),[o]);var l=ke(a);return l.splice(i,1),l}return r}var vu=s.createContext(null);function C1(){return s.useContext(vu)}function Of(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,i=e.minDate,l=e.maxDate,c=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,g=e.pickerValue,h=e.onSelect,b=e.prevIcon,p=e.nextIcon,S=e.superPrevIcon,C=e.superNextIcon,x=r.getNow(),w={now:x,values:m,pickerValue:g,prefixCls:n,disabledDate:o,minDate:i,maxDate:l,cellRender:c,hoverValue:u,hoverRangeValue:d,onHover:f,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:b,nextIcon:p,superPrevIcon:S,superNextIcon:C};return[w,x]}var Hs=s.createContext({});function wg(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,i=e.rowClassName,l=e.titleFormat,c=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,g=e.disabledDate,h=C1(),b=h.prefixCls,p=h.panelType,S=h.now,C=h.disabledDate,x=h.cellRender,w=h.onHover,$=h.hoverValue,E=h.hoverRangeValue,R=h.generateConfig,I=h.values,O=h.locale,T=h.onSelect,_=g||C,k="".concat(b,"-cell"),A=s.useContext(Hs),j=A.onCellDblClick,D=function(U){return I.some(function(G){return G&&ka(R,O,U,G,p)})},F=[],L=0;L1&&arguments[1]!==void 0?arguments[1]:!1;Se(ze),p==null||p(ze),Oe&&ge(ze)},xe=function(ze,Oe){ne(ze),Oe&&ye(Oe),ge(Oe,ze)},$e=function(ze){if(ve(ze),ye(ze),Z!==w){var Oe=["decade","year"],we=[].concat(Oe,["month"]),_e={quarter:[].concat(Oe,["quarter"]),week:[].concat(ke(we),["week"]),date:[].concat(ke(we),["date"])},Be=_e[w]||we,Qe=Be.indexOf(Z),lt=Be[Qe+1];lt&&xe(lt,ze)}},He=s.useMemo(function(){var Pe,ze;if(Array.isArray(R)){var Oe=ce(R,2);Pe=Oe[0],ze=Oe[1]}else Pe=R;return!Pe&&!ze?null:(Pe=Pe||ze,ze=ze||Pe,a.isAfter(Pe,ze)?[ze,Pe]:[Pe,ze])},[R,a]),Te=w4(I,O,T),Re=k[ae]||bve[ae]||S1,Fe=s.useContext(Hs),je=s.useMemo(function(){return P(P({},Fe),{},{hideHeader:A})},[Fe,A]),Ee="".concat(j,"-panel"),Le=b1(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return s.createElement(Hs.Provider,{value:je},s.createElement("div",{ref:D,tabIndex:c,className:oe(Ee,z({},"".concat(Ee,"-rtl"),o==="rtl"))},s.createElement(Re,Me({},Le,{showTime:G,prefixCls:j,locale:q,generateConfig:a,onModeChange:xe,pickerValue:pe,onPickerValueChange:function(ze){ye(ze,!0)},value:ie[0],onSelect:$e,values:ie,cellRender:Te,hoverRangeValue:He,hoverValue:E}))))}var Mx=s.memo(s.forwardRef(yve));function Cve(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,i=e.onSubmit,l=e.range,c=e.hoverValue,u=s.useContext(Wi),d=u.prefixCls,f=u.generateConfig,m=s.useCallback(function(C,x){return Jv(f,t,C,x)},[f,t]),g=s.useMemo(function(){return m(r,1)},[r,m]),h=function(x){a(m(x,-1))},b={onCellDblClick:function(){o&&i()}},p=t==="time",S=P(P({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:p});return l?S.hoverRangeValue=c:S.hoverValue=c,n?s.createElement("div",{className:"".concat(d,"-panels")},s.createElement(Hs.Provider,{value:P(P({},b),{},{hideNext:!0})},s.createElement(Mx,S)),s.createElement(Hs.Provider,{value:P(P({},b),{},{hidePrev:!0})},s.createElement(Mx,Me({},S,{pickerValue:g,onPickerValueChange:h})))):s.createElement(Hs.Provider,{value:P({},b)},s.createElement(Mx,S))}function p5(e){return typeof e=="function"?e():e}function Sve(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?s.createElement("div",{className:"".concat(t,"-presets")},s.createElement("ul",null,n.map(function(o,i){var l=o.label,c=o.value;return s.createElement("li",{key:i,onClick:function(){r(p5(c))},onMouseEnter:function(){a(p5(c))},onMouseLeave:function(){a(null)}},l)}))):null}function wW(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,i=e.multiple,l=e.activeInfo,c=l===void 0?[0,0,0]:l,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,g=e.onBlur,h=e.onPanelMouseDown,b=e.direction,p=e.value,S=e.onSelect,C=e.isInvalid,x=e.defaultOpenValue,w=e.onOk,$=e.onSubmit,E=s.useContext(Wi),R=E.prefixCls,I="".concat(R,"-panel"),O=b==="rtl",T=s.useRef(null),_=s.useRef(null),k=s.useState(0),A=ce(k,2),j=A[0],D=A[1],F=s.useState(0),L=ce(F,2),B=L[0],K=L[1],W=s.useState(0),V=ce(W,2),q=V[0],U=V[1],G=function($e){$e.width&&D($e.width)},Y=ce(c,3),J=Y[0],Q=Y[1],Z=Y[2],ne=s.useState(0),ae=ce(ne,2),le=ae[0],re=ae[1];s.useEffect(function(){re(10)},[J]),s.useEffect(function(){if(o&&_.current){var xe,$e=((xe=T.current)===null||xe===void 0?void 0:xe.offsetWidth)||0,He=_.current.getBoundingClientRect();if(!He.height||He.right<0){re(function(je){return Math.max(0,je-1)});return}var Te=(O?Q-$e:J)-He.left;if(U(Te),j&&j=l&&n<=c)return o;var u=Math.min(Math.abs(n-l),Math.abs(n-c));u0?Ot:xt));var tt=bt+st,Ye=xt-Ot+1;return String(Ot+(Ye+tt-Ot)%Ye)};switch(ze){case"Backspace":case"Delete":Oe="",we=Be;break;case"ArrowLeft":Oe="",Qe(-1);break;case"ArrowRight":Oe="",Qe(1);break;case"ArrowUp":Oe="",we=lt(1);break;case"ArrowDown":Oe="",we=lt(-1);break;default:isNaN(Number(ze))||(Oe=V+ze,we=Oe);break}if(Oe!==null&&(q(Oe),Oe.length>=_e&&(Qe(1),q(""))),we!==null){var Ke=le.slice(0,se)+x4(we,_e)+le.slice(ve);Ce(Ke.slice(0,i.length))}ae({})},je=s.useRef();fn(function(){if(!(!A||!i||ge.current)){if(!ue.match(le)){Ce(i);return}return fe.current.setSelectionRange(se,ve),je.current=ln(function(){fe.current.setSelectionRange(se,ve)}),function(){ln.cancel(je.current)}}},[ue,i,A,le,Y,se,ve,ne,Ce]);var Ee=i?{onFocus:$e,onBlur:Te,onKeyDown:Fe,onMouseDown:ye,onMouseUp:xe,onPaste:Se}:{};return s.createElement("div",{ref:re,className:oe(T,z(z({},"".concat(T,"-active"),n&&a),"".concat(T,"-placeholder"),u))},s.createElement(O,Me({ref:fe,"aria-invalid":b,autoComplete:"off"},S,{onKeyDown:Re,onBlur:He},Ee,{value:le,onChange:pe})),s.createElement(x1,{type:"suffix",icon:o}),p)}),Ive=["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"],Rve=["index"];function Mve(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,o=e.suffixIcon,i=e.separator,l=i===void 0?"~":i,c=e.activeIndex;e.activeHelp,e.allHelp;var u=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,f=e.className,m=e.style,g=e.onClick,h=e.onClear,b=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var p=e.disabled,S=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var x=e.onActiveInfo;e.placement;var w=e.onMouseDown;e.required,e["aria-required"];var $=e.autoFocus,E=e.tabIndex,R=Ue(e,Ive),I=C==="rtl",O=s.useContext(Wi),T=O.prefixCls,_=s.useMemo(function(){if(typeof n=="string")return[n];var ne=n||{};return[ne.start,ne.end]},[n]),k=s.useRef(),A=s.useRef(),j=s.useRef(),D=function(ae){var le;return(le=[A,j][ae])===null||le===void 0?void 0:le.current};s.useImperativeHandle(t,function(){return{nativeElement:k.current,focus:function(ae){if(it(ae)==="object"){var le,re=ae||{},fe=re.index,ue=fe===void 0?0:fe,de=Ue(re,Rve);(le=D(ue))===null||le===void 0||le.focus(de)}else{var ie;(ie=D(ae??0))===null||ie===void 0||ie.focus()}},blur:function(){var ae,le;(ae=D(0))===null||ae===void 0||ae.blur(),(le=D(1))===null||le===void 0||le.blur()}}});var F=EW(R),L=s.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),B=$W(P(P({},e),{},{id:_,placeholder:L})),K=ce(B,1),W=K[0],V=s.useState({position:"absolute",width:0}),q=ce(V,2),U=q[0],G=q[1],Y=Zt(function(){var ne=D(c);if(ne){var ae=ne.nativeElement.getBoundingClientRect(),le=k.current.getBoundingClientRect(),re=ae.left-le.left;G(function(fe){return P(P({},fe),{},{width:ae.width,left:re})}),x([ae.left,ae.right,le.width])}});s.useEffect(function(){Y()},[c]);var J=a&&(b[0]&&!p[0]||b[1]&&!p[1]),Q=$&&!p[0],Z=$&&!Q&&!p[1];return s.createElement(Mr,{onResize:Y},s.createElement("div",Me({},F,{className:oe(T,"".concat(T,"-range"),z(z(z(z({},"".concat(T,"-focused"),u),"".concat(T,"-disabled"),p.every(function(ne){return ne})),"".concat(T,"-invalid"),S.some(function(ne){return ne})),"".concat(T,"-rtl"),I),f),style:m,ref:k,onClick:g,onMouseDown:function(ae){var le=ae.target;le!==A.current.inputElement&&le!==j.current.inputElement&&ae.preventDefault(),w==null||w(ae)}}),r&&s.createElement("div",{className:"".concat(T,"-prefix")},r),s.createElement(iO,Me({ref:A},W(0),{autoFocus:Q,tabIndex:E,"date-range":"start"})),s.createElement("div",{className:"".concat(T,"-range-separator")},l),s.createElement(iO,Me({ref:j},W(1),{autoFocus:Z,tabIndex:E,"date-range":"end"})),s.createElement("div",{className:"".concat(T,"-active-bar"),style:U}),s.createElement(x1,{type:"suffix",icon:o}),J&&s.createElement(oO,{icon:a,onClear:h})))}var Tve=s.forwardRef(Mve);function b5(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function yh(e){return e===1?"end":"start"}function Nve(e,t){var n=cW(e,function(){var Cn=e.disabled,wt=e.allowEmpty,Dt=b5(Cn,!1),On=b5(wt,!1);return{disabled:Dt,allowEmpty:On}}),r=ce(n,6),a=r[0],o=r[1],i=r[2],l=r[3],c=r[4],u=r[5],d=a.prefixCls,f=a.styles,m=a.classNames,g=a.defaultValue,h=a.value,b=a.needConfirm,p=a.onKeyDown,S=a.disabled,C=a.allowEmpty,x=a.disabledDate,w=a.minDate,$=a.maxDate,E=a.defaultOpen,R=a.open,I=a.onOpenChange,O=a.locale,T=a.generateConfig,_=a.picker,k=a.showNow,A=a.showToday,j=a.showTime,D=a.mode,F=a.onPanelChange,L=a.onCalendarChange,B=a.onOk,K=a.defaultPickerValue,W=a.pickerValue,V=a.onPickerValueChange,q=a.inputReadOnly,U=a.suffixIcon,G=a.onFocus,Y=a.onBlur,J=a.presets,Q=a.ranges,Z=a.components,ne=a.cellRender,ae=a.dateRender,le=a.monthCellRender,re=a.onClick,fe=dW(t),ue=uW(R,E,S,I),de=ce(ue,2),ie=de[0],se=de[1],ve=function(wt,Dt){(S.some(function(On){return!On})||!wt)&&se(wt,Dt)},he=bW(T,O,l,!0,!1,g,h,L,B),Ce=ce(he,5),pe=Ce[0],Se=Ce[1],ge=Ce[2],ye=Ce[3],xe=Ce[4],$e=ge(),He=vW(S,C,ie),Te=ce(He,9),Re=Te[0],Fe=Te[1],je=Te[2],Ee=Te[3],Le=Te[4],Pe=Te[5],ze=Te[6],Oe=Te[7],we=Te[8],_e=function(wt,Dt){Fe(!0),G==null||G(wt,{range:yh(Dt??Ee)})},Be=function(wt,Dt){Fe(!1),Y==null||Y(wt,{range:yh(Dt??Ee)})},Qe=s.useMemo(function(){if(!j)return null;var Cn=j.disabledTime,wt=Cn?function(Dt){var On=yh(Ee),Ln=JV($e,ze,Ee);return Cn(Dt,On,{from:Ln})}:void 0;return P(P({},j),{},{disabledTime:wt})},[j,Ee,$e,ze]),lt=Nt([_,_],{value:D}),Ke=ce(lt,2),et=Ke[0],st=Ke[1],Ze=et[Ee]||_,vt=Ze==="date"&&Qe?"datetime":Ze,Ot=vt===_&&vt!=="time",xt=CW(_,Ze,k,A,!0),mt=yW(a,pe,Se,ge,ye,S,l,Re,ie,u),yt=ce(mt,2),bt=yt[0],tt=yt[1],Ye=nve($e,S,ze,T,O,x),Ne=eW($e,u,C),We=ce(Ne,2),rt=We[0],ct=We[1],At=mW(T,O,$e,et,ie,Ee,o,Ot,K,W,Qe==null?void 0:Qe.defaultOpenValue,V,w,$),pt=ce(At,2),ft=pt[0],ut=pt[1],Xt=Zt(function(Cn,wt,Dt){var On=fm(et,Ee,wt);if((On[0]!==et[0]||On[1]!==et[1])&&st(On),F&&Dt!==!1){var Ln=ke($e);Cn&&(Ln[Ee]=Cn),F(Ln,On)}}),Kt=function(wt,Dt){return fm($e,Dt,wt)},Ut=function(wt,Dt){var On=$e;wt&&(On=Kt(wt,Ee)),Oe(Ee);var Ln=Pe(On);ye(On),bt(Ee,Ln===null),Ln===null?ve(!1,{force:!0}):Dt||fe.current.focus({index:Ln})},kt=function(wt){var Dt,On=wt.target.getRootNode();if(!fe.current.nativeElement.contains((Dt=On.activeElement)!==null&&Dt!==void 0?Dt:document.activeElement)){var Ln=S.findIndex(function(or){return!or});Ln>=0&&fe.current.focus({index:Ln})}ve(!0),re==null||re(wt)},Pt=function(){tt(null),ve(!1,{force:!0})},Lt=s.useState(null),nt=ce(Lt,2),St=nt[0],gt=nt[1],qe=s.useState(null),at=ce(qe,2),dt=at[0],Tt=at[1],Qt=s.useMemo(function(){return dt||$e},[$e,dt]);s.useEffect(function(){ie||Tt(null)},[ie]);var Ct=s.useState([0,0,0]),Mt=ce(Ct,2),Vt=Mt[0],mn=Mt[1],Mn=fW(J,Q),yn=function(wt){Tt(wt),gt("preset")},cr=function(wt){var Dt=tt(wt);Dt&&ve(!1,{force:!0})},ur=function(wt){Ut(wt)},kr=function(wt){Tt(wt?Kt(wt,Ee):null),gt("cell")},yr=function(wt){ve(!0),_e(wt)},Pr=function(){je("panel")},mr=function(wt){var Dt=fm($e,Ee,wt);ye(Dt),!b&&!i&&o===vt&&Ut(wt)},Nn=function(){ve(!1)},Wt=w4(ne,ae,le,yh(Ee)),Ht=$e[Ee]||null,Tn=Zt(function(Cn){return u(Cn,{activeIndex:Ee})}),Bt=s.useMemo(function(){var Cn=ar(a,!1),wt=nn(a,[].concat(ke(Object.keys(Cn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return wt},[a]),zt=s.createElement(wW,Me({},Bt,{showNow:xt,showTime:Qe,range:!0,multiplePanel:Ot,activeInfo:Vt,disabledDate:Ye,onFocus:yr,onBlur:Be,onPanelMouseDown:Pr,picker:_,mode:Ze,internalMode:vt,onPanelChange:Xt,format:c,value:Ht,isInvalid:Tn,onChange:null,onSelect:mr,pickerValue:ft,defaultOpenValue:fu(j==null?void 0:j.defaultOpenValue)[Ee],onPickerValueChange:ut,hoverValue:Qt,onHover:kr,needConfirm:b,onSubmit:Ut,onOk:xe,presets:Mn,onPresetHover:yn,onPresetSubmit:cr,onNow:ur,cellRender:Wt})),Pn=function(wt,Dt){var On=Kt(wt,Dt);ye(On)},Jn=function(){je("input")},Zn=function(wt,Dt){var On=ze.length,Ln=ze[On-1];if(On&&Ln!==Dt&&b&&!C[Ln]&&!we(Ln)&&$e[Ln]){fe.current.focus({index:Ln});return}je("input"),ve(!0,{inherit:!0}),Ee!==Dt&&ie&&!b&&i&&Ut(null,!0),Le(Dt),_e(wt,Dt)},xn=function(wt,Dt){if(ve(!1),!b&&je()==="input"){var On=Pe($e);bt(Ee,On===null)}Be(wt,Dt)},Cr=function(wt,Dt){wt.key==="Tab"&&Ut(null,!0),p==null||p(wt,Dt)},Tr=s.useMemo(function(){return{prefixCls:d,locale:O,generateConfig:T,button:Z.button,input:Z.input}},[d,O,T,Z.button,Z.input]);return fn(function(){ie&&Ee!==void 0&&Xt(null,_,!1)},[ie,Ee,_]),fn(function(){var Cn=je();!ie&&Cn==="input"&&(ve(!1),Ut(null,!0)),!ie&&i&&!b&&Cn==="panel"&&(ve(!0),Ut())},[ie]),s.createElement(Wi.Provider,{value:Tr},s.createElement(XV,Me({},ZV(a),{popupElement:zt,popupStyle:f.popup,popupClassName:m.popup,visible:ie,onClose:Nn,range:!0}),s.createElement(Tve,Me({},a,{ref:fe,suffixIcon:U,activeIndex:Re||ie?Ee:null,activeHelp:!!dt,allHelp:!!dt&&St==="preset",focused:Re,onFocus:Zn,onBlur:xn,onKeyDown:Cr,onSubmit:Ut,value:Qt,maskFormat:c,onChange:Pn,onInputChange:Jn,format:l,inputReadOnly:q,disabled:S,open:ie,onOpenChange:ve,onClick:kt,onClear:Pt,invalid:rt,onInvalid:ct,onActiveInfo:mn}))))}var _ve=s.forwardRef(Nve);function jve(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,i=e.formatDate,l=e.disabled,c=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function g(p,S){return s.createElement("span",{className:oe("".concat(f,"-item")),title:typeof p=="string"?p:null},s.createElement("span",{className:"".concat(f,"-item-content")},p),!l&&S&&s.createElement("span",{onMouseDown:function(x){x.preventDefault()},onClick:S,className:"".concat(f,"-item-remove")},o))}function h(p){var S=i(p),C=function(w){w&&w.stopPropagation(),r(p)};return g(S,C)}function b(p){var S="+ ".concat(p.length," ...");return g(S)}return s.createElement("div",{className:d},s.createElement(_i,{prefixCls:m,data:n,renderItem:h,renderRest:b,itemKey:function(S){return i(S)},maxCount:c}),!n.length&&s.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var Fve=["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 Dve(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var i=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var l=e.locale,c=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,m=e.onClick,g=e.onClear,h=e.internalPicker,b=e.value,p=e.onChange,S=e.onSubmit;e.onInputChange;var C=e.multiple,x=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var w=e.disabled,$=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var R=e.onMouseDown;e.required,e["aria-required"];var I=e.autoFocus,O=e.tabIndex,T=e.removeIcon,_=Ue(e,Fve),k=E==="rtl",A=s.useContext(Wi),j=A.prefixCls,D=s.useRef(),F=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:D.current,focus:function(Q){var Z;(Z=F.current)===null||Z===void 0||Z.focus(Q)},blur:function(){var Q;(Q=F.current)===null||Q===void 0||Q.blur()}}});var L=EW(_),B=function(Q){p([Q])},K=function(Q){var Z=b.filter(function(ne){return ne&&!ka(c,l,ne,Q,h)});p(Z),n||S()},W=$W(P(P({},e),{},{onChange:B}),function(J){var Q=J.valueTexts;return{value:Q[0]||"",active:i}}),V=ce(W,2),q=V[0],U=V[1],G=!!(a&&b.length&&!w),Y=C?s.createElement(s.Fragment,null,s.createElement(jve,{prefixCls:j,value:b,onRemove:K,formatDate:U,maxTagCount:x,disabled:w,removeIcon:T,placeholder:u}),s.createElement("input",{className:"".concat(j,"-multiple-input"),value:b.map(U).join(","),ref:F,readOnly:!0,autoFocus:I,tabIndex:O}),s.createElement(x1,{type:"suffix",icon:o}),G&&s.createElement(oO,{icon:a,onClear:g})):s.createElement(iO,Me({ref:F},q(),{autoFocus:I,tabIndex:O,suffixIcon:o,clearIcon:G&&s.createElement(oO,{icon:a,onClear:g}),showActiveCls:!1}));return s.createElement("div",Me({},L,{className:oe(j,z(z(z(z(z({},"".concat(j,"-multiple"),C),"".concat(j,"-focused"),i),"".concat(j,"-disabled"),w),"".concat(j,"-invalid"),$),"".concat(j,"-rtl"),k),d),style:f,ref:D,onClick:m,onMouseDown:function(Q){var Z,ne=Q.target;ne!==((Z=F.current)===null||Z===void 0?void 0:Z.inputElement)&&Q.preventDefault(),R==null||R(Q)}}),r&&s.createElement("div",{className:"".concat(j,"-prefix")},r),Y)}var kve=s.forwardRef(Dve);function Ave(e,t){var n=cW(e),r=ce(n,6),a=r[0],o=r[1],i=r[2],l=r[3],c=r[4],u=r[5],d=a,f=d.prefixCls,m=d.styles,g=d.classNames,h=d.order,b=d.defaultValue,p=d.value,S=d.needConfirm,C=d.onChange,x=d.onKeyDown,w=d.disabled,$=d.disabledDate,E=d.minDate,R=d.maxDate,I=d.defaultOpen,O=d.open,T=d.onOpenChange,_=d.locale,k=d.generateConfig,A=d.picker,j=d.showNow,D=d.showToday,F=d.showTime,L=d.mode,B=d.onPanelChange,K=d.onCalendarChange,W=d.onOk,V=d.multiple,q=d.defaultPickerValue,U=d.pickerValue,G=d.onPickerValueChange,Y=d.inputReadOnly,J=d.suffixIcon,Q=d.removeIcon,Z=d.onFocus,ne=d.onBlur,ae=d.presets,le=d.components,re=d.cellRender,fe=d.dateRender,ue=d.monthCellRender,de=d.onClick,ie=dW(t);function se(Bt){return Bt===null?null:V?Bt:Bt[0]}var ve=SW(k,_,o),he=uW(O,I,[w],T),Ce=ce(he,2),pe=Ce[0],Se=Ce[1],ge=function(zt,Pn,Jn){if(K){var Zn=P({},Jn);delete Zn.range,K(se(zt),se(Pn),Zn)}},ye=function(zt){W==null||W(se(zt))},xe=bW(k,_,l,!1,h,b,p,ge,ye),$e=ce(xe,5),He=$e[0],Te=$e[1],Re=$e[2],Fe=$e[3],je=$e[4],Ee=Re(),Le=vW([w]),Pe=ce(Le,4),ze=Pe[0],Oe=Pe[1],we=Pe[2],_e=Pe[3],Be=function(zt){Oe(!0),Z==null||Z(zt,{})},Qe=function(zt){Oe(!1),ne==null||ne(zt,{})},lt=Nt(A,{value:L}),Ke=ce(lt,2),et=Ke[0],st=Ke[1],Ze=et==="date"&&F?"datetime":et,vt=CW(A,et,j,D),Ot=C&&function(Bt,zt){C(se(Bt),se(zt))},xt=yW(P(P({},a),{},{onChange:Ot}),He,Te,Re,Fe,[],l,ze,pe,u),mt=ce(xt,2),yt=mt[1],bt=eW(Ee,u),tt=ce(bt,2),Ye=tt[0],Ne=tt[1],We=s.useMemo(function(){return Ye.some(function(Bt){return Bt})},[Ye]),rt=function(zt,Pn){if(G){var Jn=P(P({},Pn),{},{mode:Pn.mode[0]});delete Jn.range,G(zt[0],Jn)}},ct=mW(k,_,Ee,[et],pe,_e,o,!1,q,U,fu(F==null?void 0:F.defaultOpenValue),rt,E,R),At=ce(ct,2),pt=At[0],ft=At[1],ut=Zt(function(Bt,zt,Pn){if(st(zt),B&&Pn!==!1){var Jn=Bt||Ee[Ee.length-1];B(Jn,zt)}}),Xt=function(){yt(Re()),Se(!1,{force:!0})},Kt=function(zt){!w&&!ie.current.nativeElement.contains(document.activeElement)&&ie.current.focus(),Se(!0),de==null||de(zt)},Ut=function(){yt(null),Se(!1,{force:!0})},kt=s.useState(null),Pt=ce(kt,2),Lt=Pt[0],nt=Pt[1],St=s.useState(null),gt=ce(St,2),qe=gt[0],at=gt[1],dt=s.useMemo(function(){var Bt=[qe].concat(ke(Ee)).filter(function(zt){return zt});return V?Bt:Bt.slice(0,1)},[Ee,qe,V]),Tt=s.useMemo(function(){return!V&&qe?[qe]:Ee.filter(function(Bt){return Bt})},[Ee,qe,V]);s.useEffect(function(){pe||at(null)},[pe]);var Qt=fW(ae),Ct=function(zt){at(zt),nt("preset")},Mt=function(zt){var Pn=V?ve(Re(),zt):[zt],Jn=yt(Pn);Jn&&!V&&Se(!1,{force:!0})},Vt=function(zt){Mt(zt)},mn=function(zt){at(zt),nt("cell")},Mn=function(zt){Se(!0),Be(zt)},yn=function(zt){if(we("panel"),!(V&&Ze!==A)){var Pn=V?ve(Re(),zt):[zt];Fe(Pn),!S&&!i&&o===Ze&&Xt()}},cr=function(){Se(!1)},ur=w4(re,fe,ue),kr=s.useMemo(function(){var Bt=ar(a,!1),zt=nn(a,[].concat(ke(Object.keys(Bt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return P(P({},zt),{},{multiple:a.multiple})},[a]),yr=s.createElement(wW,Me({},kr,{showNow:vt,showTime:F,disabledDate:$,onFocus:Mn,onBlur:Qe,picker:A,mode:et,internalMode:Ze,onPanelChange:ut,format:c,value:Ee,isInvalid:u,onChange:null,onSelect:yn,pickerValue:pt,defaultOpenValue:F==null?void 0:F.defaultOpenValue,onPickerValueChange:ft,hoverValue:dt,onHover:mn,needConfirm:S,onSubmit:Xt,onOk:je,presets:Qt,onPresetHover:Ct,onPresetSubmit:Mt,onNow:Vt,cellRender:ur})),Pr=function(zt){Fe(zt)},mr=function(){we("input")},Nn=function(zt){we("input"),Se(!0,{inherit:!0}),Be(zt)},Wt=function(zt){Se(!1),Qe(zt)},Ht=function(zt,Pn){zt.key==="Tab"&&Xt(),x==null||x(zt,Pn)},Tn=s.useMemo(function(){return{prefixCls:f,locale:_,generateConfig:k,button:le.button,input:le.input}},[f,_,k,le.button,le.input]);return fn(function(){pe&&_e!==void 0&&ut(null,A,!1)},[pe,_e,A]),fn(function(){var Bt=we();!pe&&Bt==="input"&&(Se(!1),Xt()),!pe&&i&&!S&&Bt==="panel"&&Xt()},[pe]),s.createElement(Wi.Provider,{value:Tn},s.createElement(XV,Me({},ZV(a),{popupElement:yr,popupStyle:m.popup,popupClassName:g.popup,visible:pe,onClose:cr}),s.createElement(kve,Me({},a,{ref:ie,suffixIcon:J,removeIcon:Q,activeHelp:!!qe,allHelp:!!qe&&Lt==="preset",focused:ze,onFocus:Nn,onBlur:Wt,onKeyDown:Ht,onSubmit:Xt,value:Tt,maskFormat:c,onChange:Pr,onInputChange:mr,internalPicker:o,format:l,inputReadOnly:Y,disabled:w,open:pe,onOpenChange:Se,onClick:Kt,onClear:Ut,invalid:We,onInvalid:function(zt){Ne(zt,0)}}))))}var Lve=s.forwardRef(Ave);const PW=s.createContext(null),Bve=PW.Provider,OW=s.createContext(null),zve=OW.Provider;var Hve=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],IW=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,i=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,g=e.onChange,h=Ue(e,Hve),b=s.useRef(null),p=s.useRef(null),S=Nt(u,{value:i}),C=ce(S,2),x=C[0],w=C[1];s.useImperativeHandle(t,function(){return{focus:function(I){var O;(O=b.current)===null||O===void 0||O.focus(I)},blur:function(){var I;(I=b.current)===null||I===void 0||I.blur()},input:b.current,nativeElement:p.current}});var $=oe(r,a,z(z({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),l)),E=function(I){l||("checked"in e||w(I.target.checked),g==null||g({target:P(P({},e),{},{type:f,checked:I.target.checked}),stopPropagation:function(){I.stopPropagation()},preventDefault:function(){I.preventDefault()},nativeEvent:I.nativeEvent}))};return s.createElement("span",{className:$,title:m,style:o,ref:p},s.createElement("input",Me({},h,{className:"".concat(r,"-input"),ref:b,onChange:E,disabled:l,checked:!!x,type:f})),s.createElement("span",{className:"".concat(r,"-inner")}))});function RW(e){const t=ee.useRef(null),n=()=>{ln.cancel(t.current),t.current=null};return[()=>{n(),t.current=ln(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const Vve=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},$n(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},Wve=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:i,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:g,dotColorDisabled:h,lineType:b,radioColor:p,radioBgColor:S,calc:C}=e,x=`${t}-inner`,$=C(a).sub(C(4).mul(2)),E=C(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},$n(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,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:`${me(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},$n(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:ai(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:C(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:p,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${C($).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},Kve=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:i,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:m,controlHeightSM:g,paddingXS:h,borderRadius:b,borderRadiusSM:p,borderRadiusLG:S,buttonCheckedBg:C,buttonSolidCheckedColor:x,colorTextDisabled:w,colorBgContainerDisabled:$,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:R,colorPrimary:I,colorPrimaryHover:O,colorPrimaryActive:T,buttonSolidCheckedBg:_,buttonSolidCheckedHoverBg:k,buttonSolidCheckedActiveBg:A,calc:j}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:me(j(n).sub(j(a).mul(2)).equal()),background:d,border:`${me(a)} ${o} ${i}`,borderBlockStartWidth:j(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:j(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${me(a)} ${o} ${i}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${r}-group-large &`]:{height:m,fontSize:f,lineHeight:me(j(m).sub(j(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${r}-group-small &`]:{height:g,paddingInline:j(h).sub(a).equal(),paddingBlock:0,lineHeight:me(j(g).sub(j(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p}},"&:hover":{position:"relative",color:I},"&:has(:focus-visible)":ai(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:I,background:C,borderColor:I,"&::before":{backgroundColor:I},"&:first-child":{borderColor:I},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:x,background:_,borderColor:_,"&:hover":{color:x,background:k,borderColor:k},"&:active":{color:x,background:A,borderColor:A}},"&-disabled":{color:w,backgroundColor:$,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:w,backgroundColor:$,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:E,borderColor:i,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},qve=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:i,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:g,colorWhite:h}=e,b=4,p=o,S=t?p-b*2:p-(b+a)*2;return{radioSize:p,dotSize:S,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:g,buttonBg:l,buttonCheckedBg:l,buttonColor:i,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?l:f}},MW=dn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${me(n)} ${t}`,o=en(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Vve(o),Wve(o),Kve(o)]},qve,{unitless:{radioSize:!0,dotSize:!0}});var Uve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=s.useContext(PW),o=s.useContext(OW),{getPrefixCls:i,direction:l,radio:c}=s.useContext(jt),u=s.useRef(null),d=Dr(t,u),{isFormItemInput:f}=s.useContext(Hr),m=F=>{var L,B;(L=e.onChange)===null||L===void 0||L.call(e,F),(B=a==null?void 0:a.onChange)===null||B===void 0||B.call(a,F)},{prefixCls:g,className:h,rootClassName:b,children:p,style:S,title:C}=e,x=Uve(e,["prefixCls","className","rootClassName","children","style","title"]),w=i("radio",g),$=((a==null?void 0:a.optionType)||o)==="button",E=$?`${w}-button`:w,R=Yn(w),[I,O,T]=MW(w,R),_=Object.assign({},x),k=s.useContext(Br);a&&(_.name=a.name,_.onChange=m,_.checked=e.value===a.value,_.disabled=(n=_.disabled)!==null&&n!==void 0?n:a.disabled),_.disabled=(r=_.disabled)!==null&&r!==void 0?r:k;const A=oe(`${E}-wrapper`,{[`${E}-wrapper-checked`]:_.checked,[`${E}-wrapper-disabled`]:_.disabled,[`${E}-wrapper-rtl`]:l==="rtl",[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!(a!=null&&a.block)},c==null?void 0:c.className,h,b,O,T,R),[j,D]=RW(_.onClick);return I(s.createElement(vg,{component:"Radio",disabled:_.disabled},s.createElement("label",{className:A,style:Object.assign(Object.assign({},c==null?void 0:c.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:j},s.createElement(IW,Object.assign({},_,{className:oe(_.className,{[Hy]:!$}),type:"radio",prefixCls:E,ref:d,onClick:D})),p!==void 0?s.createElement("span",{className:`${E}-label`},p):null)))},Qb=s.forwardRef(Gve),Yve=["parentNode"],Xve="form_item";function vm(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function TW(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Yve.includes(n)?`${Xve}_${n}`:n}function NW(e,t,n,r,a,o){let i=r;return o!==void 0?i=o:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||a&&n.validated)&&(i="success"),i}var Qve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ae??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const i=lO(a);o?n.current[i]=o:delete n.current[i]}},scrollToField:(a,o={})=>{const{focus:i}=o,l=Qve(o,["focus"]),c=y5(a,r);c&&(xne(c,Object.assign({scrollMode:"if-needed",block:"nearest"},l)),i&&r.focusField(a))},focusField:a=>{var o,i;const l=r.getFieldInstance(a);typeof(l==null?void 0:l.focus)=="function"?l.focus():(i=(o=y5(a,r))===null||o===void 0?void 0:o.focus)===null||i===void 0||i.call(o)},getFieldInstance:a=>{const o=lO(a);return n.current[o]}}),[e,t]);return[r]}const Jve=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(jt),{name:a}=s.useContext(Hr),o=Sf(lO(a)),{prefixCls:i,className:l,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:m,size:g,style:h,id:b,optionType:p,name:S=o,defaultValue:C,value:x,block:w=!1,onChange:$,onMouseEnter:E,onMouseLeave:R,onFocus:I,onBlur:O}=e,[T,_]=Nt(C,{value:x}),k=s.useCallback(U=>{const G=T,Y=U.target.value;"value"in e||_(Y),Y!==G&&($==null||$(U))},[T,_,$]),A=n("radio",i),j=`${A}-group`,D=Yn(A),[F,L,B]=MW(A,D);let K=m;u&&u.length>0&&(K=u.map(U=>typeof U=="string"||typeof U=="number"?s.createElement(Qb,{key:U.toString(),prefixCls:A,disabled:f,value:U,checked:T===U},U):s.createElement(Qb,{key:`radio-group-value-options-${U.value}`,prefixCls:A,disabled:U.disabled||f,value:U.value,checked:T===U.value,title:U.title,style:U.style,className:U.className,id:U.id,required:U.required},U.label)));const W=Er(g),V=oe(j,`${j}-${d}`,{[`${j}-${W}`]:W,[`${j}-rtl`]:r==="rtl",[`${j}-block`]:w},l,c,L,B,D),q=s.useMemo(()=>({onChange:k,value:T,disabled:f,name:S,optionType:p,block:w}),[k,T,f,S,p,w]);return F(s.createElement("div",Object.assign({},ar(e,{aria:!0,data:!0}),{className:V,style:h,onMouseEnter:E,onMouseLeave:R,onFocus:I,onBlur:O,id:b,ref:t}),s.createElement(Bve,{value:q},K)))}),Zve=s.memo(Jve);var eme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=s.useContext(jt),{prefixCls:r}=e,a=eme(e,["prefixCls"]),o=n("radio",r);return s.createElement(zve,{value:"button"},s.createElement(Qb,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},nme=s.forwardRef(tme),Rf=Qb;Rf.Button=nme;Rf.Group=Zve;Rf.__ANT_RADIO=!0;function mu(e){return en(e,{inputAffixPadding:e.paddingXXS})}const gu=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:i,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:g,colorPrimary:h,controlOutlineWidth:b,controlOutline:p,colorErrorOutline:S,colorWarningOutline:C,colorBgContainer:x,inputFontSize:w,inputFontSizeLG:$,inputFontSizeSM:E}=e,R=w||n,I=E||R,O=$||l,T=Math.round((t-R*r)/2*10)/10-a,_=Math.round((o-I*r)/2*10)/10-a,k=Math.ceil((i-O*c)/2*10)/10-a;return{paddingBlock:Math.max(T,0),paddingBlockSM:Math.max(_,0),paddingBlockLG:Math.max(k,0),paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:m,activeBorderColor:h,hoverBorderColor:g,activeShadow:`0 0 0 ${b}px ${p}`,errorActiveShadow:`0 0 0 ${b}px ${S}`,warningActiveShadow:`0 0 0 ${b}px ${C}`,hoverBg:x,activeBg:x,inputFontSize:R,inputFontSizeLG:O,inputFontSizeSM:I}},rme=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),w1=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({},rme(en(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),I4=(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}}),C5=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},I4(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),R4=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},I4(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},w1(e))}),C5(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),C5(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),S5=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),jW=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},S5(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),S5(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},w1(e))}})}),M4=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},FW=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},x5=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},FW(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),T4=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},FW(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},w1(e))}),x5(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),x5(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),w5=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),DW=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},w5(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),w5(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:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),kW=(e,t)=>({background:e.colorBgContainer,borderWidth:`${me(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}}),$5=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},kW(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`}}),N4=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kW(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"}}),$5(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),$5(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),_4=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),AW=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${me(t)} ${me(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},j4=e=>({padding:`${me(e.paddingBlockSM)} ${me(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),$g=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${me(e.paddingBlock)} ${me(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},_4(e.colorTextPlaceholder)),{"&-lg":Object.assign({},AW(e)),"&-sm":Object.assign({},j4(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),LW=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},AW(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},j4(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${me(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${me(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${me(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${me(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${me(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Nm()),{[`${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, & > ${n}-picker-range @@ -291,51 +291,51 @@ html body { & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Hve=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),$g(e)),h4(e)),y4(e)),b4(e)),C4(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Vve=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 ${me(e.inputAffixPadding)}`}}}},Wve=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:l}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},$g(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Vve(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${l}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},Kve=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},wn(e)),SW(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},pW(e)),bW(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}}})})}},qve=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-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,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},ame=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,i=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),$g(e)),R4(e)),T4(e)),M4(e)),N4(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},ome=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 ${me(e.inputAffixPadding)}`}}}},ime=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:i,iconCls:l}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},$g(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),ome(e)),{[`${l}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${l}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},lme=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},$n(e)),LW(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},jW(e)),DW(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}}})})}},sme=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-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,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, - ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Uve=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},xW=un(["Input","Shared"],e=>{const t=tn(e,vu(e));return[Hve(t),Wve(t)]},mu,{resetFont:!1}),wW=un(["Input","Component"],e=>{const t=tn(e,vu(e));return[Kve(t),qve(t),Uve(t),nc(t)]},mu,{resetFont:!1}),wx=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=DH(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:me(o.itemLineHeight)}}}]},Gve=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=tn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=tn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[wx(a,"small"),wx(e),wx(o,"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"}}},kH(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Yve=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:l,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:g,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:me(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},cme=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},BW=dn(["Input","Shared"],e=>{const t=en(e,mu(e));return[ame(t),ime(t)]},gu,{resetFont:!1}),zW=dn(["Input","Component"],e=>{const t=en(e,mu(e));return[lme(t),sme(t),cme(t),tc(t)]},gu,{resetFont:!1}),Nx=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=eV(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:me(o.itemLineHeight)}}}]},ume=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=en(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=en(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Nx(a,"small"),Nx(e),Nx(o,"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"}}},tV(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},dme=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:i,lineWidth:l,lineType:c,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:g,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:me(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:i}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${me(l)} ${c} ${u}`,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:d}},[`&-in-view${t}-selected, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:h}},[`&-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) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:m,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:g}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},Xve=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:i,paddingSM:l,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:g,colorPrimary:h,colorTextHeading:b,colorSplit:p,pickerControlIconBorderWidth:S,colorIcon:C,textHeight:x,motionDurationMid:w,colorIconHover:$,fontWeightStrong:E,cellHeight:R,pickerCellPaddingVertical:I,colorTextDisabled:O,colorText:T,fontSize:N,motionDurationSlow:A,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:j,borderRadiusSM:D,colorTextLightSolid:F,cellHoverBg:L,timeColumnHeight:B,timeColumnWidth:K,timeCellHeight:W,controlItemBgActive:V,marginXXS:q,pickerDatePanelPaddingHorizontal:U,pickerControlIconMargin:G}=e,Y=e.calc(i).mul(7).add(e.calc(U).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:g,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:h}},[`&-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) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:m,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:g}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},fme=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:i,paddingSM:l,paddingXS:c,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:g,colorPrimary:h,colorTextHeading:b,colorSplit:p,pickerControlIconBorderWidth:S,colorIcon:C,textHeight:x,motionDurationMid:w,colorIconHover:$,fontWeightStrong:E,cellHeight:R,pickerCellPaddingVertical:I,colorTextDisabled:O,colorText:T,fontSize:_,motionDurationSlow:k,withoutTimeCellHeight:A,pickerQuarterPanelContentHeight:j,borderRadiusSM:D,colorTextLightSolid:F,cellHoverBg:L,timeColumnHeight:B,timeColumnWidth:K,timeCellHeight:W,controlItemBgActive:V,marginXXS:q,pickerDatePanelPaddingHorizontal:U,pickerControlIconMargin:G}=e,Y=e.calc(i).mul(7).add(e.calc(U).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:g,outline:"none","&-focused":{borderColor:h},"&-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:Y},"&-header":{display:"flex",padding:`0 ${me(c)}`,color:b,borderBottom:`${me(f)} ${m} ${p}`,"> *":{flex:"none"},button:{padding:0,color:C,lineHeight:me(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:$},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:me(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:S,borderInlineStartWidth:S,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:G,insetInlineStart:G,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:S,borderInlineStartWidth:S,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:R,fontWeight:"normal"},th:{height:e.calc(R).add(e.calc(I).mul(2)).equal(),color:T,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${me(I)} 0`,color:O,cursor:"pointer","&-in-view":{color:T}},Yve(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[r]:{padding:`0 ${me(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:j}},"&-decade-panel":{[r]:{padding:`0 ${me(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${me(c)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${me(c)} ${me(U)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child:before":{borderStartEndRadius:D,borderEndEndRadius:D}},"&:hover td:before":{background:L},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new gn(F).setA(.5).toHexString()},[r]:{color:F}}},"&-range-hover td:before":{background:V}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${me(c)} ${me(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${me(f)} ${m} ${p}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${A}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:B},"&-column":{flex:"1 0 auto",width:K,margin:`${me(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,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% - ${me(W)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${me(f)} ${m} ${p}`},"&-active":{background:new gn(V).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:q,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(K).sub(e.calc(q).mul(2)).equal(),height:W,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(K).sub(W).div(2).equal(),color:T,lineHeight:me(W),borderRadius:D,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:L}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},Qve=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${me(r)} ${u} ${d}`,"&-extra":{padding:`0 ${me(a)}`,lineHeight:me(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${me(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:me(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:me(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Jve=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},Zve=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,l=o*2,c=i*2,u=Math.min(n-l,n-c),d=Math.min(r-l,r-c),f=Math.min(a-l,a-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new gn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new gn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},eme=e=>Object.assign(Object.assign(Object.assign(Object.assign({},mu(e)),Zve(e)),a1(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),tme=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},h4(e)),C4(e)),y4(e)),b4(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},$x=(e,t)=>({padding:`${me(e)} ${me(t)}`}),nme=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},rme=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:l,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,colorTextQuaternary:m,fontSizeLG:g,inputFontSizeLG:h,fontSizeSM:b,inputFontSizeSM:p,controlHeightSM:S,paddingInlineSM:C,paddingXS:x,marginXS:w,colorIcon:$,lineWidthBold:E,colorPrimary:R,motionDurationSlow:I,zIndexPopup:O,paddingXXS:T,sizePopupArrow:N,colorBgElevated:A,borderRadiusLG:k,boxShadowSecondary:j,borderRadiusSM:D,colorSplit:F,cellHoverBg:L,presetsWidth:B,presetsMaxWidth:K,boxShadowPopoverArrow:W,fontHeight:V,lineHeightLG:q}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},wn(e)),$x(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-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 ${u}`},S4(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},$x(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??g,lineHeight:q}}),"&-small":Object.assign(Object.assign({},$x(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:p??b}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(x).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:$}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:m,fontSize:g,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:$},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:E,background:R,opacity:0,transition:`all ${I} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${me(x)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:C}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},wn(e)),Xve(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:O,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft, + ${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:Y},"&-header":{display:"flex",padding:`0 ${me(c)}`,color:b,borderBottom:`${me(f)} ${m} ${p}`,"> *":{flex:"none"},button:{padding:0,color:C,lineHeight:me(x),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:$},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:me(x),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:S,borderInlineStartWidth:S,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:G,insetInlineStart:G,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:S,borderInlineStartWidth:S,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:R,fontWeight:"normal"},th:{height:e.calc(R).add(e.calc(I).mul(2)).equal(),color:T,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${me(I)} 0`,color:O,cursor:"pointer","&-in-view":{color:T}},dme(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(A).mul(4).equal()},[r]:{padding:`0 ${me(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:j}},"&-decade-panel":{[r]:{padding:`0 ${me(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${me(c)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${me(c)} ${me(U)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child:before":{borderStartEndRadius:D,borderEndEndRadius:D}},"&:hover td:before":{background:L},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new pn(F).setA(.5).toHexString()},[r]:{color:F}}},"&-range-hover td:before":{background:V}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${me(c)} ${me(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${me(f)} ${m} ${p}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${k}`},"&-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:B},"&-column":{flex:"1 0 auto",width:K,margin:`${me(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,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% - ${me(W)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${me(f)} ${m} ${p}`},"&-active":{background:new pn(V).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:q,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(K).sub(e.calc(q).mul(2)).equal(),height:W,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(K).sub(W).div(2).equal(),color:T,lineHeight:me(W),borderRadius:D,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:L}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:O,background:"transparent",cursor:"not-allowed"}}}}}}}}},vme=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:i,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${me(r)} ${u} ${d}`,"&-extra":{padding:`0 ${me(a)}`,lineHeight:me(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${me(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:me(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:me(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:i,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},mme=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},gme=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:i}=e,l=o*2,c=i*2,u=Math.min(n-l,n-c),d=Math.min(r-l,r-c),f=Math.min(a-l,a-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new pn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new pn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},pme=e=>Object.assign(Object.assign(Object.assign(Object.assign({},gu(e)),gme(e)),u1(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),hme=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},R4(e)),N4(e)),T4(e)),M4(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${me(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},_x=(e,t)=>({padding:`${me(e)} ${me(t)}`}),bme=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},yme=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:o,lineType:i,colorBorder:l,borderRadius:c,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,colorTextQuaternary:m,fontSizeLG:g,inputFontSizeLG:h,fontSizeSM:b,inputFontSizeSM:p,controlHeightSM:S,paddingInlineSM:C,paddingXS:x,marginXS:w,colorIcon:$,lineWidthBold:E,colorPrimary:R,motionDurationSlow:I,zIndexPopup:O,paddingXXS:T,sizePopupArrow:_,colorBgElevated:k,borderRadiusLG:A,boxShadowSecondary:j,borderRadiusSM:D,colorSplit:F,cellHoverBg:L,presetsWidth:B,presetsMaxWidth:K,boxShadowPopoverArrow:W,fontHeight:V,lineHeightLG:q}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},$n(e)),_x(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-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 ${u}`},_4(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},_x(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??g,lineHeight:q}}),"&-small":Object.assign(Object.assign({},_x(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:p??b}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(x).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:$}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:m,fontSize:g,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:$},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:E,background:R,opacity:0,transition:`all ${I} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${me(x)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:C}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},$n(e)),fme(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:O,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft, &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft, &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topLeft, &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight, &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft, - &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Hy},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, + &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Gy},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight, &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft, - &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:By},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft, - &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Vy},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft, - &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:zy},[`${n}-panel > ${n}-time-panel`]:{paddingTop:T},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-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 ${I} ease-out`},UH(e,A,W)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:A,borderRadius:k,boxShadow:j,transition:`margin ${I}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:K,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${me(o)} ${i} ${F}`,li:Object.assign(Object.assign({},ni),{borderRadius:D,paddingInline:x,paddingBlock:e.calc(S).sub(V).div(2).equal(),cursor:"pointer",transition:`all ${I}`,"+ li":{marginTop:w},"&:hover":{background:L}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${me(e.calc(N).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},al(e,"slide-up"),al(e,"slide-down"),Qd(e,"move-up"),Qd(e,"move-down")]},$W=un("DatePicker",e=>{const t=tn(vu(e),Jve(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Qve(t),rme(t),tme(t),nme(t),Gve(t),nc(e,{focusElCls:`${e.componentCls}-focused`})]},eme);var ame={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"},ome=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:ame}))},EW=s.forwardRef(ome);const h1=s.createContext(null);var ime=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,l=i.size,c=i.align,u=c===void 0?"center":c,d=s.useState(),f=ce(d,2),m=f[0],g=f[1],h=s.useRef(),b=ee.useCallback(function(S){return typeof l=="function"?l(S):typeof l=="number"?l:S},[l]);function p(){on.cancel(h.current)}return s.useEffect(function(){var S={};if(n)if(r){S.width=b(n.width);var C=a?"right":"left";u==="start"&&(S[C]=n[C]),u==="center"&&(S[C]=n[C]+n.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[C]=n[C]+n.width,S.transform="translateX(-100%)")}else S.height=b(n.height),u==="start"&&(S.top=n.top),u==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return p(),h.current=on(function(){var x=m&&S&&Object.keys(S).every(function(w){var $=S[w],E=m[w];return typeof $=="number"&&typeof E=="number"?Math.round($)===Math.round(E):$===E});x||g(S)}),p},[JSON.stringify(n),r,a,u,b]),{style:m}},u5={width:0,height:0,left:0,top:0};function lme(e,t,n){return s.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||u5,i=o.left+o.width,l=0;lj?(A=T,E.current="x"):(A=N,E.current="y"),t(-A,-A)&&O.preventDefault()}var I=s.useRef(null);I.current={onTouchStart:x,onTouchMove:w,onTouchEnd:$,onWheel:R},s.useEffect(function(){function O(k){I.current.onTouchStart(k)}function T(k){I.current.onTouchMove(k)}function N(k){I.current.onTouchEnd(k)}function A(k){I.current.onWheel(k)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",N,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",A,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",N)}},[])}function PW(e){var t=s.useState(0),n=ce(t,2),r=n[0],a=n[1],o=s.useRef(0),i=s.useRef();return i.current=e,Hc(function(){var l;(l=i.current)===null||l===void 0||l.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function ume(e){var t=s.useRef([]),n=s.useState({}),r=ce(n,2),a=r[1],o=s.useRef(typeof e=="function"?e():e),i=PW(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,a({})});function l(c){t.current.push(c),i()}return[o.current,l]}var m5={width:0,height:0,left:0,top:0,right:0};function dme(e,t,n,r,a,o,i){var l=i.tabs,c=i.tabPosition,u=i.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),s.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,h=g,b=0;bMath.floor(m+t)){h=b-1;break}}for(var S=0,C=g-1;C>=0;C-=1){var x=e.get(l[C].key)||m5;if(x[f]h?[0,-1]:[S,h]},[e,t,r,a,o,m,c,l.map(function(g){return g.key}).join("_"),u])}function g5(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var fme="TABS_DQ";function OW(e){return String(e).replace(/"/g,fme)}function w4(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var IW=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),p5=s.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return it(a)==="object"&&!s.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?s.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),vme=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,i=e.mobile,l=e.more,c=l===void 0?{}:l,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,g=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,p=e.getPopupContainer,S=e.popupClassName,C=s.useState(!1),x=ce(C,2),w=x[0],$=x[1],E=s.useState(null),R=ce(E,2),I=R[0],O=R[1],T=c.icon,N=T===void 0?"More":T,A="".concat(r,"-more-popup"),k="".concat(n,"-dropdown"),j=I!==null?"".concat(A,"-").concat(I):null,D=o==null?void 0:o.dropdownAriaLabel;function F(U,G){U.preventDefault(),U.stopPropagation(),f.onEdit("remove",{key:G,event:U})}var L=s.createElement(Ef,{onClick:function(G){var Y=G.key,J=G.domEvent;b(Y,J),$(!1)},prefixCls:"".concat(k,"-menu"),id:A,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[I],"aria-label":D!==void 0?D:"expanded dropdown"},a.map(function(U){var G=U.closable,Y=U.disabled,J=U.closeIcon,Q=U.key,Z=U.label,ne=w4(G,J,f,Y);return s.createElement(Sg,{key:Q,id:"".concat(A,"-").concat(Q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Q),disabled:Y},s.createElement("span",null,Z),ne&&s.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(k,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),F(le,Q)}},J||f.removeIcon||"×"))}));function B(U){for(var G=a.filter(function(ne){return!ne.disabled}),Y=G.findIndex(function(ne){return ne.key===I})||0,J=G.length,Q=0;Qdt?"left":"right"})}),k=ce(A,2),j=k[0],D=k[1],F=d5(0,function(at,dt){!N&&b&&b({direction:at>dt?"top":"bottom"})}),L=ce(F,2),B=L[0],K=L[1],W=s.useState([0,0]),V=ce(W,2),q=V[0],U=V[1],G=s.useState([0,0]),Y=ce(G,2),J=Y[0],Q=Y[1],Z=s.useState([0,0]),ne=ce(Z,2),ae=ne[0],le=ne[1],re=s.useState([0,0]),fe=ce(re,2),ue=fe[0],de=fe[1],ie=ume(new Map),se=ce(ie,2),ve=se[0],he=se[1],Ce=lme(x,ve,J[0]),pe=yh(q,N),Se=yh(J,N),ge=yh(ae,N),ye=yh(ue,N),xe=Math.floor(pe)Re?Re:at}var je=s.useRef(null),Ee=s.useState(),Le=ce(Ee,2),Pe=Le[0],ze=Le[1];function Oe(){ze(Date.now())}function we(){je.current&&clearTimeout(je.current)}cme(R,function(at,dt){function Tt(Qt,Ct){Qt(function(Rt){var Vt=Fe(Rt+Ct);return Vt})}return xe?(N?Tt(D,at):Tt(K,dt),we(),Oe(),!0):!1}),s.useEffect(function(){return we(),Pe&&(je.current=setTimeout(function(){ze(0)},100)),we},[Pe]);var _e=dme(Ce,$e,N?j:B,Se,ge,ye,P(P({},e),{},{tabs:x})),Be=ce(_e,2),Qe=Be[0],lt=Be[1],Ke=Zt(function(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,dt=Ce.get(at)||{width:0,height:0,left:0,right:0,top:0};if(N){var Tt=j;l?dt.rightj+$e&&(Tt=dt.right+dt.width-$e):dt.left<-j?Tt=-dt.left:dt.left+dt.width>-j+$e&&(Tt=-(dt.left+dt.width-$e)),K(0),D(Fe(Tt))}else{var Qt=B;dt.top<-B?Qt=-dt.top:dt.top+dt.height>-B+$e&&(Qt=-(dt.top+dt.height-$e)),D(0),K(Fe(Qt))}}),et=s.useState(),st=ce(et,2),Ze=st[0],vt=st[1],Ot=s.useState(!1),xt=ce(Ot,2),mt=xt[0],yt=xt[1],bt=x.filter(function(at){return!at.disabled}).map(function(at){return at.key}),tt=function(dt){var Tt=bt.indexOf(Ze||i),Qt=bt.length,Ct=(Tt+dt+Qt)%Qt,Rt=bt[Ct];vt(Rt)},Ye=function(dt,Tt){var Qt=bt.indexOf(dt),Ct=x.find(function(Vt){return Vt.key===dt}),Rt=w4(Ct==null?void 0:Ct.closable,Ct==null?void 0:Ct.closeIcon,u,Ct==null?void 0:Ct.disabled);Rt&&(Tt.preventDefault(),Tt.stopPropagation(),u.onEdit("remove",{key:dt,event:Tt}),Qt===bt.length-1?tt(-1):tt(1))},Ne=function(dt,Tt){yt(!0),Tt.button===1&&Ye(dt,Tt)},We=function(dt){var Tt=dt.code,Qt=l&&N,Ct=bt[0],Rt=bt[bt.length-1];switch(Tt){case"ArrowLeft":{N&&tt(Qt?1:-1);break}case"ArrowRight":{N&&tt(Qt?-1:1);break}case"ArrowUp":{dt.preventDefault(),N||tt(-1);break}case"ArrowDown":{dt.preventDefault(),N||tt(1);break}case"Home":{dt.preventDefault(),vt(Ct);break}case"End":{dt.preventDefault(),vt(Rt);break}case"Enter":case"Space":{dt.preventDefault(),h(Ze??i,dt);break}case"Backspace":case"Delete":{Ye(Ze,dt);break}}},rt={};N?rt[l?"marginRight":"marginLeft"]=m:rt.marginTop=m;var ct=x.map(function(at,dt){var Tt=at.key;return s.createElement(gme,{id:a,prefixCls:C,key:Tt,tab:at,style:dt===0?void 0:rt,closable:at.closable,editable:u,active:Tt===i,focus:Tt===Ze,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:bt.length,currentPosition:dt+1,onClick:function(Ct){h(Tt,Ct)},onKeyDown:We,onFocus:function(){mt||vt(Tt),Ke(Tt),Oe(),R.current&&(l||(R.current.scrollLeft=0),R.current.scrollTop=0)},onBlur:function(){vt(void 0)},onMouseDown:function(Ct){return Ne(Tt,Ct)},onMouseUp:function(){yt(!1)}})}),At=function(){return he(function(){var dt,Tt=new Map,Qt=(dt=I.current)===null||dt===void 0?void 0:dt.getBoundingClientRect();return x.forEach(function(Ct){var Rt,Vt=Ct.key,vn=(Rt=I.current)===null||Rt===void 0?void 0:Rt.querySelector('[data-node-key="'.concat(OW(Vt),'"]'));if(vn){var Mn=pme(vn,Qt),bn=ce(Mn,4),sr=bn[0],cr=bn[1],Dr=bn[2],yr=bn[3];Tt.set(Vt,{width:sr,height:cr,left:Dr,top:yr})}}),Tt})};s.useEffect(function(){At()},[x.map(function(at){return at.key}).join("_")]);var pt=PW(function(){var at=id(w),dt=id($),Tt=id(E);U([at[0]-dt[0]-Tt[0],at[1]-dt[1]-Tt[1]]);var Qt=id(T);le(Qt);var Ct=id(O);de(Ct);var Rt=id(I);Q([Rt[0]-Qt[0],Rt[1]-Qt[1]]),At()}),ft=x.slice(0,Qe),ut=x.slice(lt+1),Xt=[].concat(ke(ft),ke(ut)),Kt=Ce.get(i),Ut=ime({activeTabOffset:Kt,horizontal:N,indicator:p,rtl:l}),kt=Ut.style;s.useEffect(function(){Ke()},[i,Te,Re,g5(Kt),g5(Ce),N]),s.useEffect(function(){pt()},[l]);var Pt=!!Xt.length,Lt="".concat(C,"-nav-wrap"),nt,St,gt,qe;return N?l?(St=j>0,nt=j!==Re):(nt=j<0,St=j!==Te):(gt=B<0,qe=B!==Te),s.createElement(Rr,{onResize:pt},s.createElement("div",{ref:Ai(t,w),role:"tablist","aria-orientation":N?"horizontal":"vertical",className:oe("".concat(C,"-nav"),n),style:r,onKeyDown:function(){Oe()}},s.createElement(p5,{ref:$,position:"left",extra:c,prefixCls:C}),s.createElement(Rr,{onResize:pt},s.createElement("div",{className:oe(Lt,z(z(z(z({},"".concat(Lt,"-ping-left"),nt),"".concat(Lt,"-ping-right"),St),"".concat(Lt,"-ping-top"),gt),"".concat(Lt,"-ping-bottom"),qe)),ref:R},s.createElement(Rr,{onResize:pt},s.createElement("div",{ref:I,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(B,"px)"),transition:Pe?"none":void 0}},ct,s.createElement(IW,{ref:T,prefixCls:C,locale:d,editable:u,style:P(P({},ct.length===0?void 0:rt),{},{visibility:Pt?"hidden":null})}),s.createElement("div",{className:oe("".concat(C,"-ink-bar"),z({},"".concat(C,"-ink-bar-animated"),o.inkBar)),style:kt}))))),s.createElement(mme,Me({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:O,prefixCls:C,tabs:Xt,className:!Pt&&He,tabMoving:!!Pe})),s.createElement(p5,{ref:E,position:"right",extra:c,prefixCls:C})))}),RW=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,l=e.tabKey,c=e.children;return s.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!i,style:a,className:oe(n,i&&"".concat(n,"-active"),r),ref:t},c)}),hme=["renderTabBar"],bme=["label","key"],yme=function(t){var n=t.renderTabBar,r=Ue(t,hme),a=s.useContext(h1),o=a.tabs;if(n){var i=P(P({},r),{},{panes:o.map(function(l){var c=l.label,u=l.key,d=Ue(l,bme);return s.createElement(RW,Me({tab:c,key:u,tabKey:u},d))})});return n(i,h5)}return s.createElement(h5,r)},Cme=["key","forceRender","style","className","destroyInactiveTabPane"],Sme=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,l=s.useContext(h1),c=l.prefixCls,u=l.tabs,d=a.tabPane,f="".concat(c,"-tabpane");return s.createElement("div",{className:oe("".concat(c,"-content-holder"))},s.createElement("div",{className:oe("".concat(c,"-content"),"".concat(c,"-content-").concat(o),z({},"".concat(c,"-content-animated"),d))},u.map(function(m){var g=m.key,h=m.forceRender,b=m.style,p=m.className,S=m.destroyInactiveTabPane,C=Ue(m,Cme),x=g===r;return s.createElement(ma,Me({key:g,visible:x,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(w,$){var E=w.style,R=w.className;return s.createElement(RW,Me({},C,{prefixCls:f,id:n,tabKey:g,animated:d,active:x,style:P(P({},b),E),className:oe(p,R),ref:$}))})})))};function xme(){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=P({inkBar:!0},it(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var wme=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],b5=0,$me=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,g=m===void 0?"top":m,h=e.tabBarGutter,b=e.tabBarStyle,p=e.tabBarExtraContent,S=e.locale,C=e.more,x=e.destroyInactiveTabPane,w=e.renderTabBar,$=e.onChange,E=e.onTabClick,R=e.onTabScroll,I=e.getPopupContainer,O=e.popupClassName,T=e.indicator,N=Ue(e,wme),A=s.useMemo(function(){return(i||[]).filter(function(ue){return ue&&it(ue)==="object"&&"key"in ue})},[i]),k=l==="rtl",j=xme(f),D=s.useState(!1),F=ce(D,2),L=F[0],B=F[1];s.useEffect(function(){B(Jy())},[]);var K=_t(function(){var ue;return(ue=A[0])===null||ue===void 0?void 0:ue.key},{value:c,defaultValue:u}),W=ce(K,2),V=W[0],q=W[1],U=s.useState(function(){return A.findIndex(function(ue){return ue.key===V})}),G=ce(U,2),Y=G[0],J=G[1];s.useEffect(function(){var ue=A.findIndex(function(ie){return ie.key===V});if(ue===-1){var de;ue=Math.max(0,Math.min(Y,A.length-1)),q((de=A[ue])===null||de===void 0?void 0:de.key)}J(ue)},[A.map(function(ue){return ue.key}).join("_"),V,Y]);var Q=_t(null,{value:n}),Z=ce(Q,2),ne=Z[0],ae=Z[1];s.useEffect(function(){n||(ae("rc-tabs-".concat(b5)),b5+=1)},[]);function le(ue,de){E==null||E(ue,de);var ie=ue!==V;q(ue),ie&&($==null||$(ue))}var re={id:ne,activeKey:V,animated:j,tabPosition:g,rtl:k,mobile:L},fe=P(P({},re),{},{editable:d,locale:S,more:C,tabBarGutter:h,onTabClick:le,onTabScroll:R,extra:p,style:b,panes:null,getPopupContainer:I,popupClassName:O,indicator:T});return s.createElement(h1.Provider,{value:{tabs:A,prefixCls:a}},s.createElement("div",Me({ref:t,id:n,className:oe(a,"".concat(a,"-").concat(g),z(z(z({},"".concat(a,"-mobile"),L),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),k),o)},N),s.createElement(yme,Me({},fe,{renderTabBar:w})),s.createElement(Sme,Me({destroyInactiveTabPane:x},re,{animated:j}))))});const Eme={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Pme(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},Eme),{motionName:ga(e,"switch")})),n}var Ome=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function Rme(e,t){if(e)return e.map(r=>{var a;const o=(a=r.destroyOnHidden)!==null&&a!==void 0?a:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:o})});const n=rr(t).map(r=>{if(s.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:l}=i,c=Ome(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:l})}return null});return Ime(n)}const Mme=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[al(e,"slide-up"),al(e,"slide-down")]]},Tme=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${me(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ri(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:me(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${me(e.borderRadiusLG)} ${me(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${me(e.borderRadiusLG)} ${me(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:me(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me(e.borderRadiusLG)} 0 0 ${me(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 ${me(e.borderRadiusLG)} ${me(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Nme=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},wn(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:`${me(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ni),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${me(e.paddingXXS)} ${me(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:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},_me=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:l}=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:`${me(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:qy},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft, + &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Yy},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft, + &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Uy},[`${n}-panel > ${n}-time-panel`]:{paddingTop:T},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-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 ${I} ease-out`},dV(e,k,W)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:k,borderRadius:A,boxShadow:j,transition:`margin ${I}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:K,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${me(o)} ${i} ${F}`,li:Object.assign(Object.assign({},ri),{borderRadius:D,paddingInline:x,paddingBlock:e.calc(S).sub(V).div(2).equal(),cursor:"pointer",transition:`all ${I}`,"+ li":{marginTop:w},"&:hover":{background:L}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${me(e.calc(_).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},ll(e,"slide-up"),ll(e,"slide-down"),Zd(e,"move-up"),Zd(e,"move-down")]},HW=dn("DatePicker",e=>{const t=en(mu(e),mme(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[vme(t),yme(t),hme(t),bme(t),ume(t),tc(e,{focusElCls:`${e.componentCls}-focused`})]},pme);var Cme={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"},Sme=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Cme}))},VW=s.forwardRef(Sme);const $1=s.createContext(null);var xme=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,i=o===void 0?{}:o,l=i.size,c=i.align,u=c===void 0?"center":c,d=s.useState(),f=ce(d,2),m=f[0],g=f[1],h=s.useRef(),b=ee.useCallback(function(S){return typeof l=="function"?l(S):typeof l=="number"?l:S},[l]);function p(){ln.cancel(h.current)}return s.useEffect(function(){var S={};if(n)if(r){S.width=b(n.width);var C=a?"right":"left";u==="start"&&(S[C]=n[C]),u==="center"&&(S[C]=n[C]+n.width/2,S.transform=a?"translateX(50%)":"translateX(-50%)"),u==="end"&&(S[C]=n[C]+n.width,S.transform="translateX(-100%)")}else S.height=b(n.height),u==="start"&&(S.top=n.top),u==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),u==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return p(),h.current=ln(function(){var x=m&&S&&Object.keys(S).every(function(w){var $=S[w],E=m[w];return typeof $=="number"&&typeof E=="number"?Math.round($)===Math.round(E):$===E});x||g(S)}),p},[JSON.stringify(n),r,a,u,b]),{style:m}},E5={width:0,height:0,left:0,top:0};function wme(e,t,n){return s.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||E5,i=o.left+o.width,l=0;lj?(k=T,E.current="x"):(k=_,E.current="y"),t(-k,-k)&&O.preventDefault()}var I=s.useRef(null);I.current={onTouchStart:x,onTouchMove:w,onTouchEnd:$,onWheel:R},s.useEffect(function(){function O(A){I.current.onTouchStart(A)}function T(A){I.current.onTouchMove(A)}function _(A){I.current.onTouchEnd(A)}function k(A){I.current.onWheel(A)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",_,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",k,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",_)}},[])}function WW(e){var t=s.useState(0),n=ce(t,2),r=n[0],a=n[1],o=s.useRef(0),i=s.useRef();return i.current=e,Hc(function(){var l;(l=i.current)===null||l===void 0||l.call(i)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function Pme(e){var t=s.useRef([]),n=s.useState({}),r=ce(n,2),a=r[1],o=s.useRef(typeof e=="function"?e():e),i=WW(function(){var c=o.current;t.current.forEach(function(u){c=u(c)}),t.current=[],o.current=c,a({})});function l(c){t.current.push(c),i()}return[o.current,l]}var R5={width:0,height:0,left:0,top:0,right:0};function Ome(e,t,n,r,a,o,i){var l=i.tabs,c=i.tabPosition,u=i.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),s.useMemo(function(){if(!l.length)return[0,0];for(var g=l.length,h=g,b=0;bMath.floor(m+t)){h=b-1;break}}for(var S=0,C=g-1;C>=0;C-=1){var x=e.get(l[C].key)||R5;if(x[f]h?[0,-1]:[S,h]},[e,t,r,a,o,m,c,l.map(function(g){return g.key}).join("_"),u])}function M5(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Ime="TABS_DQ";function KW(e){return String(e).replace(/"/g,Ime)}function F4(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var qW=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),T5=s.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,i={};return it(a)==="object"&&!s.isValidElement(a)?i=a:i.right=a,n==="right"&&(o=i.right),n==="left"&&(o=i.left),o?s.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),Rme=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,i=e.mobile,l=e.more,c=l===void 0?{}:l,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,g=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,p=e.getPopupContainer,S=e.popupClassName,C=s.useState(!1),x=ce(C,2),w=x[0],$=x[1],E=s.useState(null),R=ce(E,2),I=R[0],O=R[1],T=c.icon,_=T===void 0?"More":T,k="".concat(r,"-more-popup"),A="".concat(n,"-dropdown"),j=I!==null?"".concat(k,"-").concat(I):null,D=o==null?void 0:o.dropdownAriaLabel;function F(U,G){U.preventDefault(),U.stopPropagation(),f.onEdit("remove",{key:G,event:U})}var L=s.createElement(Pf,{onClick:function(G){var Y=G.key,J=G.domEvent;b(Y,J),$(!1)},prefixCls:"".concat(A,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[I],"aria-label":D!==void 0?D:"expanded dropdown"},a.map(function(U){var G=U.closable,Y=U.disabled,J=U.closeIcon,Q=U.key,Z=U.label,ne=F4(G,J,f,Y);return s.createElement(Sg,{key:Q,id:"".concat(k,"-").concat(Q),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Q),disabled:Y},s.createElement("span",null,Z),ne&&s.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(le){le.stopPropagation(),F(le,Q)}},J||f.removeIcon||"×"))}));function B(U){for(var G=a.filter(function(ne){return!ne.disabled}),Y=G.findIndex(function(ne){return ne.key===I})||0,J=G.length,Q=0;Qdt?"left":"right"})}),A=ce(k,2),j=A[0],D=A[1],F=P5(0,function(at,dt){!_&&b&&b({direction:at>dt?"top":"bottom"})}),L=ce(F,2),B=L[0],K=L[1],W=s.useState([0,0]),V=ce(W,2),q=V[0],U=V[1],G=s.useState([0,0]),Y=ce(G,2),J=Y[0],Q=Y[1],Z=s.useState([0,0]),ne=ce(Z,2),ae=ne[0],le=ne[1],re=s.useState([0,0]),fe=ce(re,2),ue=fe[0],de=fe[1],ie=Pme(new Map),se=ce(ie,2),ve=se[0],he=se[1],Ce=wme(x,ve,J[0]),pe=Ch(q,_),Se=Ch(J,_),ge=Ch(ae,_),ye=Ch(ue,_),xe=Math.floor(pe)Re?Re:at}var je=s.useRef(null),Ee=s.useState(),Le=ce(Ee,2),Pe=Le[0],ze=Le[1];function Oe(){ze(Date.now())}function we(){je.current&&clearTimeout(je.current)}Eme(R,function(at,dt){function Tt(Qt,Ct){Qt(function(Mt){var Vt=Fe(Mt+Ct);return Vt})}return xe?(_?Tt(D,at):Tt(K,dt),we(),Oe(),!0):!1}),s.useEffect(function(){return we(),Pe&&(je.current=setTimeout(function(){ze(0)},100)),we},[Pe]);var _e=Ome(Ce,$e,_?j:B,Se,ge,ye,P(P({},e),{},{tabs:x})),Be=ce(_e,2),Qe=Be[0],lt=Be[1],Ke=Zt(function(){var at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i,dt=Ce.get(at)||{width:0,height:0,left:0,right:0,top:0};if(_){var Tt=j;l?dt.rightj+$e&&(Tt=dt.right+dt.width-$e):dt.left<-j?Tt=-dt.left:dt.left+dt.width>-j+$e&&(Tt=-(dt.left+dt.width-$e)),K(0),D(Fe(Tt))}else{var Qt=B;dt.top<-B?Qt=-dt.top:dt.top+dt.height>-B+$e&&(Qt=-(dt.top+dt.height-$e)),D(0),K(Fe(Qt))}}),et=s.useState(),st=ce(et,2),Ze=st[0],vt=st[1],Ot=s.useState(!1),xt=ce(Ot,2),mt=xt[0],yt=xt[1],bt=x.filter(function(at){return!at.disabled}).map(function(at){return at.key}),tt=function(dt){var Tt=bt.indexOf(Ze||i),Qt=bt.length,Ct=(Tt+dt+Qt)%Qt,Mt=bt[Ct];vt(Mt)},Ye=function(dt,Tt){var Qt=bt.indexOf(dt),Ct=x.find(function(Vt){return Vt.key===dt}),Mt=F4(Ct==null?void 0:Ct.closable,Ct==null?void 0:Ct.closeIcon,u,Ct==null?void 0:Ct.disabled);Mt&&(Tt.preventDefault(),Tt.stopPropagation(),u.onEdit("remove",{key:dt,event:Tt}),Qt===bt.length-1?tt(-1):tt(1))},Ne=function(dt,Tt){yt(!0),Tt.button===1&&Ye(dt,Tt)},We=function(dt){var Tt=dt.code,Qt=l&&_,Ct=bt[0],Mt=bt[bt.length-1];switch(Tt){case"ArrowLeft":{_&&tt(Qt?1:-1);break}case"ArrowRight":{_&&tt(Qt?-1:1);break}case"ArrowUp":{dt.preventDefault(),_||tt(-1);break}case"ArrowDown":{dt.preventDefault(),_||tt(1);break}case"Home":{dt.preventDefault(),vt(Ct);break}case"End":{dt.preventDefault(),vt(Mt);break}case"Enter":case"Space":{dt.preventDefault(),h(Ze??i,dt);break}case"Backspace":case"Delete":{Ye(Ze,dt);break}}},rt={};_?rt[l?"marginRight":"marginLeft"]=m:rt.marginTop=m;var ct=x.map(function(at,dt){var Tt=at.key;return s.createElement(Tme,{id:a,prefixCls:C,key:Tt,tab:at,style:dt===0?void 0:rt,closable:at.closable,editable:u,active:Tt===i,focus:Tt===Ze,renderWrapper:g,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:bt.length,currentPosition:dt+1,onClick:function(Ct){h(Tt,Ct)},onKeyDown:We,onFocus:function(){mt||vt(Tt),Ke(Tt),Oe(),R.current&&(l||(R.current.scrollLeft=0),R.current.scrollTop=0)},onBlur:function(){vt(void 0)},onMouseDown:function(Ct){return Ne(Tt,Ct)},onMouseUp:function(){yt(!1)}})}),At=function(){return he(function(){var dt,Tt=new Map,Qt=(dt=I.current)===null||dt===void 0?void 0:dt.getBoundingClientRect();return x.forEach(function(Ct){var Mt,Vt=Ct.key,mn=(Mt=I.current)===null||Mt===void 0?void 0:Mt.querySelector('[data-node-key="'.concat(KW(Vt),'"]'));if(mn){var Mn=Nme(mn,Qt),yn=ce(Mn,4),cr=yn[0],ur=yn[1],kr=yn[2],yr=yn[3];Tt.set(Vt,{width:cr,height:ur,left:kr,top:yr})}}),Tt})};s.useEffect(function(){At()},[x.map(function(at){return at.key}).join("_")]);var pt=WW(function(){var at=sd(w),dt=sd($),Tt=sd(E);U([at[0]-dt[0]-Tt[0],at[1]-dt[1]-Tt[1]]);var Qt=sd(T);le(Qt);var Ct=sd(O);de(Ct);var Mt=sd(I);Q([Mt[0]-Qt[0],Mt[1]-Qt[1]]),At()}),ft=x.slice(0,Qe),ut=x.slice(lt+1),Xt=[].concat(ke(ft),ke(ut)),Kt=Ce.get(i),Ut=xme({activeTabOffset:Kt,horizontal:_,indicator:p,rtl:l}),kt=Ut.style;s.useEffect(function(){Ke()},[i,Te,Re,M5(Kt),M5(Ce),_]),s.useEffect(function(){pt()},[l]);var Pt=!!Xt.length,Lt="".concat(C,"-nav-wrap"),nt,St,gt,qe;return _?l?(St=j>0,nt=j!==Re):(nt=j<0,St=j!==Te):(gt=B<0,qe=B!==Te),s.createElement(Mr,{onResize:pt},s.createElement("div",{ref:zi(t,w),role:"tablist","aria-orientation":_?"horizontal":"vertical",className:oe("".concat(C,"-nav"),n),style:r,onKeyDown:function(){Oe()}},s.createElement(T5,{ref:$,position:"left",extra:c,prefixCls:C}),s.createElement(Mr,{onResize:pt},s.createElement("div",{className:oe(Lt,z(z(z(z({},"".concat(Lt,"-ping-left"),nt),"".concat(Lt,"-ping-right"),St),"".concat(Lt,"-ping-top"),gt),"".concat(Lt,"-ping-bottom"),qe)),ref:R},s.createElement(Mr,{onResize:pt},s.createElement("div",{ref:I,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(B,"px)"),transition:Pe?"none":void 0}},ct,s.createElement(qW,{ref:T,prefixCls:C,locale:d,editable:u,style:P(P({},ct.length===0?void 0:rt),{},{visibility:Pt?"hidden":null})}),s.createElement("div",{className:oe("".concat(C,"-ink-bar"),z({},"".concat(C,"-ink-bar-animated"),o.inkBar)),style:kt}))))),s.createElement(Mme,Me({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:O,prefixCls:C,tabs:Xt,className:!Pt&&He,tabMoving:!!Pe})),s.createElement(T5,{ref:E,position:"right",extra:c,prefixCls:C})))}),UW=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,i=e.active,l=e.tabKey,c=e.children;return s.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!i,style:a,className:oe(n,i&&"".concat(n,"-active"),r),ref:t},c)}),_me=["renderTabBar"],jme=["label","key"],Fme=function(t){var n=t.renderTabBar,r=Ue(t,_me),a=s.useContext($1),o=a.tabs;if(n){var i=P(P({},r),{},{panes:o.map(function(l){var c=l.label,u=l.key,d=Ue(l,jme);return s.createElement(UW,Me({tab:c,key:u,tabKey:u},d))})});return n(i,N5)}return s.createElement(N5,r)},Dme=["key","forceRender","style","className","destroyInactiveTabPane"],kme=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,i=t.destroyInactiveTabPane,l=s.useContext($1),c=l.prefixCls,u=l.tabs,d=a.tabPane,f="".concat(c,"-tabpane");return s.createElement("div",{className:oe("".concat(c,"-content-holder"))},s.createElement("div",{className:oe("".concat(c,"-content"),"".concat(c,"-content-").concat(o),z({},"".concat(c,"-content-animated"),d))},u.map(function(m){var g=m.key,h=m.forceRender,b=m.style,p=m.className,S=m.destroyInactiveTabPane,C=Ue(m,Dme),x=g===r;return s.createElement(ga,Me({key:g,visible:x,forceRender:h,removeOnLeave:!!(i||S),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(w,$){var E=w.style,R=w.className;return s.createElement(UW,Me({},C,{prefixCls:f,id:n,tabKey:g,animated:d,active:x,style:P(P({},b),E),className:oe(p,R),ref:$}))})})))};function Ame(){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=P({inkBar:!0},it(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Lme=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],_5=0,Bme=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,i=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,g=m===void 0?"top":m,h=e.tabBarGutter,b=e.tabBarStyle,p=e.tabBarExtraContent,S=e.locale,C=e.more,x=e.destroyInactiveTabPane,w=e.renderTabBar,$=e.onChange,E=e.onTabClick,R=e.onTabScroll,I=e.getPopupContainer,O=e.popupClassName,T=e.indicator,_=Ue(e,Lme),k=s.useMemo(function(){return(i||[]).filter(function(ue){return ue&&it(ue)==="object"&&"key"in ue})},[i]),A=l==="rtl",j=Ame(f),D=s.useState(!1),F=ce(D,2),L=F[0],B=F[1];s.useEffect(function(){B(a1())},[]);var K=Nt(function(){var ue;return(ue=k[0])===null||ue===void 0?void 0:ue.key},{value:c,defaultValue:u}),W=ce(K,2),V=W[0],q=W[1],U=s.useState(function(){return k.findIndex(function(ue){return ue.key===V})}),G=ce(U,2),Y=G[0],J=G[1];s.useEffect(function(){var ue=k.findIndex(function(ie){return ie.key===V});if(ue===-1){var de;ue=Math.max(0,Math.min(Y,k.length-1)),q((de=k[ue])===null||de===void 0?void 0:de.key)}J(ue)},[k.map(function(ue){return ue.key}).join("_"),V,Y]);var Q=Nt(null,{value:n}),Z=ce(Q,2),ne=Z[0],ae=Z[1];s.useEffect(function(){n||(ae("rc-tabs-".concat(_5)),_5+=1)},[]);function le(ue,de){E==null||E(ue,de);var ie=ue!==V;q(ue),ie&&($==null||$(ue))}var re={id:ne,activeKey:V,animated:j,tabPosition:g,rtl:A,mobile:L},fe=P(P({},re),{},{editable:d,locale:S,more:C,tabBarGutter:h,onTabClick:le,onTabScroll:R,extra:p,style:b,panes:null,getPopupContainer:I,popupClassName:O,indicator:T});return s.createElement($1.Provider,{value:{tabs:k,prefixCls:a}},s.createElement("div",Me({ref:t,id:n,className:oe(a,"".concat(a,"-").concat(g),z(z(z({},"".concat(a,"-mobile"),L),"".concat(a,"-editable"),d),"".concat(a,"-rtl"),A),o)},_),s.createElement(Fme,Me({},fe,{renderTabBar:w})),s.createElement(kme,Me({destroyInactiveTabPane:x},re,{animated:j}))))});const zme={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Hme(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},zme),{motionName:pa(e,"switch")})),n}var Vme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);at)}function Kme(e,t){if(e)return e.map(r=>{var a;const o=(a=r.destroyOnHidden)!==null&&a!==void 0?a:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:o})});const n=rr(t).map(r=>{if(s.isValidElement(r)){const{key:a,props:o}=r,i=o||{},{tab:l}=i,c=Vme(i,["tab"]);return Object.assign(Object.assign({key:String(a)},c),{label:l})}return null});return Wme(n)}const qme=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[ll(e,"slide-up"),ll(e,"slide-down")]]},Ume=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${me(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ai(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:me(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${me(e.borderRadiusLG)} ${me(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${me(e.borderRadiusLG)} ${me(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:me(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me(e.borderRadiusLG)} 0 0 ${me(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 ${me(e.borderRadiusLG)} ${me(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Gme=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},$n(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:`${me(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},ri),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${me(e.paddingXXS)} ${me(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:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Yme=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:i,calc:l}=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:`${me(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:me(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},jme=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:o,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${me(e.borderRadius)} ${me(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${me(e.borderRadius)} ${me(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${me(e.borderRadius)} ${me(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me(e.borderRadius)} 0 0 ${me(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},Fme=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-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}},Ga(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:ri(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},Dme=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:me(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:me(e.marginXS)},marginLeft:{_skip_check_:!0,value:me(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},kme=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},background:"transparent",border:`${me(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${me(e.borderRadiusLG)} ${me(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},Ga(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Fme(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ga(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"}}}}}},Ame=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:o}=e,i=t||o,l=n||a,c=r||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:l,cardHeightLG:c,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-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}},Lme=un("Tabs",e=>{const t=tn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${me(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${me(e.horizontalItemGutter)}`});return[jme(t),Dme(t),_me(t),Nme(t),Tme(t),kme(t),Mme(t)]},Ame),Bme=()=>null;var zme=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i,l,c,u,d,f,m;const{type:g,className:h,rootClassName:b,size:p,onEdit:S,hideAdd:C,centered:x,addIcon:w,removeIcon:$,moreIcon:E,more:R,popupClassName:I,children:O,items:T,animated:N,style:A,indicatorSize:k,indicator:j,destroyInactiveTabPane:D,destroyOnHidden:F}=e,L=zme(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:B}=L,{direction:K,tabs:W,getPrefixCls:V,getPopupContainer:q}=s.useContext(jt),U=V("tabs",B),G=Gn(U),[Y,J,Q]=Lme(U,G),Z=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:Z.current}));let ne;g==="editable-card"&&(ne={onEdit:(ie,{key:se,event:ve})=>{S==null||S(ie==="add"?ve:se,ie)},removeIcon:(n=$??(W==null?void 0:W.removeIcon))!==null&&n!==void 0?n:s.createElement(Li,null),addIcon:(w??(W==null?void 0:W.addIcon))||s.createElement(EW,null),showAdd:C!==!0});const ae=V(),le=$r(p),re=Rme(T,O),fe=Pme(U,N),ue=Object.assign(Object.assign({},W==null?void 0:W.style),A),de={align:(r=j==null?void 0:j.align)!==null&&r!==void 0?r:(a=W==null?void 0:W.indicator)===null||a===void 0?void 0:a.align,size:(c=(i=(o=j==null?void 0:j.size)!==null&&o!==void 0?o:k)!==null&&i!==void 0?i:(l=W==null?void 0:W.indicator)===null||l===void 0?void 0:l.size)!==null&&c!==void 0?c:W==null?void 0:W.indicatorSize};return Y(s.createElement($me,Object.assign({ref:Z,direction:K,getPopupContainer:q},L,{items:re,className:oe({[`${U}-${le}`]:le,[`${U}-card`]:["card","editable-card"].includes(g),[`${U}-editable-card`]:g==="editable-card",[`${U}-centered`]:x},W==null?void 0:W.className,h,b,J,Q,G),popupClassName:oe(I,J,Q,G),style:ue,editable:ne,more:Object.assign({icon:(m=(f=(d=(u=W==null?void 0:W.more)===null||u===void 0?void 0:u.icon)!==null&&d!==void 0?d:W==null?void 0:W.moreIcon)!==null&&f!==void 0?f:E)!==null&&m!==void 0?m:s.createElement(l4,null),transitionName:`${ae}-slide-up`},R),prefixCls:U,animated:fe,indicator:de,destroyInactiveTabPane:F??D})))}),il=Hme;il.TabPane=Bme;function Vme(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,i=r.noLeading,l=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function g(){d&&clearTimeout(d)}function h(p){var S=p||{},C=S.upcomingOnly,x=C===void 0?!1:C;g(),f=!x}function b(){for(var p=arguments.length,S=new Array(p),C=0;Ce?l?(m=Date.now(),o||(d=setTimeout(u?E:$,e))):$():o!==!0&&(d=setTimeout(u?E:$,u===void 0?e-w:e))}return b.cancel=h,b}function Wme(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return Vme(e,t,{debounceMode:o!==!1})}var Rf=s.createContext({}),Ed="__rc_cascader_search_mark__",Kme=function(t,n,r){var a=r.label,o=a===void 0?"":a;return n.some(function(i){return String(i[o]).toLowerCase().includes(t.toLowerCase())})},qme=function(t,n,r,a){return n.map(function(o){return o[a.label]}).join(" / ")},Ume=function(t,n,r,a,o,i){var l=o.filter,c=l===void 0?Kme:l,u=o.render,d=u===void 0?qme:u,f=o.limit,m=f===void 0?50:f,g=o.sort;return s.useMemo(function(){var h=[];if(!t)return[];function b(p,S){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;p.forEach(function(x){if(!(!g&&m!==!1&&m>0&&h.length>=m)){var w=[].concat(ke(S),[x]),$=x[r.children],E=C||x.disabled;if((!$||$.length===0||i)&&c(t,w,{label:r.label})){var R;h.push(P(P({},x),{},(R={disabled:E},z(R,r.label,d(t,w,a,r)),z(R,Ed,w),z(R,r.children,void 0),R)))}$&&b(x[r.children],w,E)}})}return b(n,[]),g&&h.sort(function(p,S){return g(p[Ed],S[Ed],t,r)}),m!==!1&&m>0?h.slice(0,m):h},[t,n,r,a,d,i,c,g,m])},$4="__RC_CASCADER_SPLIT__",MW="SHOW_PARENT",TW="SHOW_CHILD";function Ni(e){return e.join($4)}function Zd(e){return e.map(Ni)}function Gme(e){return e.split($4)}function NW(e){var t=e||{},n=t.label,r=t.value,a=t.children,o=r||"value";return{label:n||"label",value:o,key:o,children:a||"children"}}function Zv(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function Yme(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function _W(e,t){return e.map(function(n){var r;return(r=n[Ed])===null||r===void 0?void 0:r.map(function(a){return a[t.value]})})}function Xme(e){return Array.isArray(e)&&Array.isArray(e[0])}function Gb(e){return e?Xme(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function jW(e,t,n){var r=new Set(e),a=t();return e.filter(function(o){var i=a[o],l=i?i.parent:null,c=i?i.children:null;return i&&i.node.disabled?!0:n===TW?!(c&&c.some(function(u){return u.key&&r.has(u.key)})):!(l&&!l.node.disabled&&r.has(l.key))})}function ef(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t,o=[],i=function(){var u,d,f,m=e[l],g=(u=a)===null||u===void 0?void 0:u.findIndex(function(b){var p=b[n.value];return r?String(p)===String(m):p===m}),h=g!==-1?(d=a)===null||d===void 0?void 0:d[g]:null;o.push({value:(f=h==null?void 0:h[n.value])!==null&&f!==void 0?f:m,index:g,option:h}),a=h==null?void 0:h[n.children]},l=0;l1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,g){for(var h=DW(f?f.pos:"0",g),b=Eg(m[o],h),p,S=0;S1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),ege(e,function(g){var h=g.node,b=g.index,p=g.pos,S=g.key,C=g.parentPos,x=g.level,w=g.nodes,$={node:h,nodes:w,index:b,key:S,pos:p,level:x},E=Eg(S,p);d[p]=$,f[E]=$,$.parent=d[C],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,m)},{externalGetKey:u,childrenPropName:i,fieldNames:l}),a&&a(m),m}function mm(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=so(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function Yr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,g=e.eventKey,h=P(P({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:g});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Wn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}const tge=(function(e,t){var n=s.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=s.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Pg(e,{fieldNames:t,initWrapper:function(o){return P(P({},o),{},{pathKeyEntities:{}})},processEntity:function(o,i){var l=o.nodes.map(function(c){return c[t.value]}).join($4);i.pathKeyEntities[l]=o,o.key=l}})),n.current.info.pathKeyEntities},[t,e]);return r});function AW(e,t){var n=s.useMemo(function(){return t||[]},[t]),r=tge(n,e),a=s.useCallback(function(o){var i=r();return o.map(function(l){var c=i[l].nodes;return c.map(function(u){return u[e.value]})})},[r,e]);return[n,r,a]}function nge(e){return s.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&it(e)==="object"&&(t=P(P({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function LW(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function rge(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function age(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var l=t.get(i)||new Set;l.forEach(function(f){var m=f.key,g=f.node,h=f.children,b=h===void 0?[]:h;a.has(m)&&!r(g)&&b.filter(function(p){return!r(p.node)}).forEach(function(p){a.add(p.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var h=!0,b=!1;(m.children||[]).filter(function(p){return!r(p.node)}).forEach(function(p){var S=p.key,C=a.has(S);h&&!C&&(h=!1),!b&&(C||o.has(S))&&(b=!0)}),h&&a.add(m.key),b&&o.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(LW(o,a))}}function oge(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(m){var g=m.key,h=m.node,b=m.children,p=b===void 0?[]:b;!o.has(g)&&!i.has(g)&&!a(h)&&p.filter(function(S){return!a(S.node)}).forEach(function(S){o.delete(S.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var g=m.parent,h=m.node;if(!(a(h)||!m.parent||u.has(m.parent.key))){if(a(m.parent.node)){u.add(g.key);return}var b=!0,p=!1;(g.children||[]).filter(function(S){return!a(S.node)}).forEach(function(S){var C=S.key,x=o.has(C);b&&!x&&(b=!1),!p&&(x||i.has(C))&&(p=!0)}),b||o.delete(g.key),p&&i.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(LW(i,o))}}function Zo(e,t,n,r){var a=[],o;r?o=r:o=rge;var i=new Set(e.filter(function(d){var f=!!so(n,d);return f||a.push(d),f})),l=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,g=l.get(m);g||(g=new Set,l.set(m,g)),g.add(f),c=Math.max(c,m)}),Wn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=age(i,l,c,o):u=oge(i,t.halfCheckedKeys,l,c,o),u}function BW(e,t,n,r,a,o,i,l){return function(c){if(!e)t(c);else{var u=Ni(c),d=Zd(n),f=Zd(r),m=d.includes(u),g=a.some(function(E){return Ni(E)===u}),h=n,b=a;if(g&&!m)b=a.filter(function(E){return Ni(E)!==u});else{var p=m?d.filter(function(E){return E!==u}):[].concat(ke(d),[u]),S=o(),C;if(m){var x=Zo(p,{halfCheckedKeys:f},S);C=x.checkedKeys}else{var w=Zo(p,!0,S);C=w.checkedKeys}var $=jW(C,o,l);h=i($)}t([].concat(ke(b),ke(h)))}}}function zW(e,t,n,r,a){return s.useMemo(function(){var o=a(t),i=ce(o,2),l=i[0],c=i[1];if(!e||!t.length)return[l,[],c];var u=Zd(l),d=n(),f=Zo(u,!0,d),m=f.checkedKeys,g=f.halfCheckedKeys;return[r(m),r(g),c]},[e,t,n,r,a])}var ige=s.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function lge(e){var t,n=e.prefixCls,r=e.checked,a=e.halfChecked,o=e.disabled,i=e.onClick,l=e.disableCheckbox,c=s.useContext(Rf),u=c.checkable,d=typeof u!="boolean"?u:null;return s.createElement("span",{className:oe("".concat(n),(t={},z(t,"".concat(n,"-checked"),r),z(t,"".concat(n,"-indeterminate"),!r&&a),z(t,"".concat(n,"-disabled"),o||l),t)),onClick:i},d)}var HW="__cascader_fix_label__";function sge(e){var t=e.prefixCls,n=e.multiple,r=e.options,a=e.activeValue,o=e.prevValuePath,i=e.onToggleOpen,l=e.onSelect,c=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,m=e.isSelectable,g=e.disabled,h="".concat(t,"-menu"),b="".concat(t,"-menu-item"),p=s.useContext(Rf),S=p.fieldNames,C=p.changeOnSelect,x=p.expandTrigger,w=p.expandIcon,$=p.loadingIcon,E=p.dropdownMenuColumnStyle,R=p.optionRender,I=x==="hover",O=function(A){return g||A},T=s.useMemo(function(){return r.map(function(N){var A,k=N.disabled,j=N.disableCheckbox,D=N[Ed],F=(A=N[HW])!==null&&A!==void 0?A:N[S.label],L=N[S.value],B=Zv(N,S),K=D?D.map(function(G){return G[S.value]}):[].concat(ke(o),[L]),W=Ni(K),V=f.includes(W),q=u.has(W),U=d.has(W);return{disabled:k,label:F,value:L,isLeaf:B,isLoading:V,checked:q,halfChecked:U,option:N,disableCheckbox:j,fullPath:K,fullPathKey:W}})},[r,u,S,d,f,o]);return s.createElement("ul",{className:h,role:"menu"},T.map(function(N){var A,k=N.disabled,j=N.label,D=N.value,F=N.isLeaf,L=N.isLoading,B=N.checked,K=N.halfChecked,W=N.option,V=N.fullPath,q=N.fullPathKey,U=N.disableCheckbox,G=function(){if(!O(k)){var Z=ke(V);I&&F&&Z.pop(),c(Z)}},Y=function(){m(W)&&!O(k)&&l(V,F)},J;return typeof W.title=="string"?J=W.title:typeof j=="string"&&(J=j),s.createElement("li",{key:q,className:oe(b,(A={},z(A,"".concat(b,"-expand"),!F),z(A,"".concat(b,"-active"),a===D||a===q),z(A,"".concat(b,"-disabled"),O(k)),z(A,"".concat(b,"-loading"),L),A)),style:E,role:"menuitemcheckbox",title:J,"aria-checked":B,"data-path-key":q,onClick:function(){G(),!U&&(!n||F)&&Y()},onDoubleClick:function(){C&&i(!1)},onMouseEnter:function(){I&&G()},onMouseDown:function(Z){Z.preventDefault()}},n&&s.createElement(lge,{prefixCls:"".concat(t,"-checkbox"),checked:B,halfChecked:K,disabled:O(k)||U,disableCheckbox:U,onClick:function(Z){U||(Z.stopPropagation(),Y())}}),s.createElement("div",{className:"".concat(b,"-content")},R?R(W):j),!L&&w&&!F&&s.createElement("div",{className:"".concat(b,"-expand-icon")},w),L&&$&&s.createElement("div",{className:"".concat(b,"-loading-icon")},$))}))}var cge=function(t,n){var r=s.useContext(Rf),a=r.values,o=a[0],i=s.useState([]),l=ce(i,2),c=l[0],u=l[1];return s.useEffect(function(){t||u(o||[])},[n,o]),[c,u]};const uge=(function(e,t,n,r,a,o,i){var l=i.direction,c=i.searchValue,u=i.toggleOpen,d=i.open,f=l==="rtl",m=s.useMemo(function(){for(var E=-1,R=t,I=[],O=[],T=r.length,N=_W(t,n),A=function(L){var B=R.findIndex(function(K,W){return(N[W]?Ni(N[W]):K[n.value])===r[L]});if(B===-1)return 1;E=B,I.push(E),O.push(r[L]),R=R[E][n.children]},k=0;k1){var R=h.slice(0,-1);C(R)}else u(!1)},$=function(){var R,I=((R=p[b])===null||R===void 0?void 0:R[n.children])||[],O=I.find(function(N){return!N.disabled});if(O){var T=[].concat(ke(h),[O[n.value]]);C(T)}};s.useImperativeHandle(e,function(){return{onKeyDown:function(R){var I=R.which;switch(I){case ot.UP:case ot.DOWN:{var O=0;I===ot.UP?O=-1:I===ot.DOWN&&(O=1),O!==0&&x(O);break}case ot.LEFT:{if(c)break;f?$():w();break}case ot.RIGHT:{if(c)break;f?w():$();break}case ot.BACKSPACE:{c||w();break}case ot.ENTER:{if(h.length){var T=p[b],N=(T==null?void 0:T[Ed])||[];N.length?o(N.map(function(A){return A[n.value]}),N[N.length-1]):o(h,p[b])}break}case ot.ESC:u(!1),d&&R.stopPropagation()}},onKeyUp:function(){}}})});var VW=s.forwardRef(function(e,t){var n,r,a,o=e.prefixCls,i=e.multiple,l=e.searchValue,c=e.toggleOpen,u=e.notFoundContent,d=e.direction,f=e.open,m=e.disabled,g=s.useRef(null),h=d==="rtl",b=s.useContext(Rf),p=b.options,S=b.values,C=b.halfValues,x=b.fieldNames,w=b.changeOnSelect,$=b.onSelect,E=b.searchOptions,R=b.dropdownPrefixCls,I=b.loadData,O=b.expandTrigger,T=R||o,N=s.useState([]),A=ce(N,2),k=A[0],j=A[1],D=function(ue){if(!(!I||l)){var de=ef(ue,p,x),ie=de.map(function(he){var Ce=he.option;return Ce}),se=ie[ie.length-1];if(se&&!Zv(se,x)){var ve=Ni(ue);j(function(he){return[].concat(ke(he),[ve])}),I(ie)}}};s.useEffect(function(){k.length&&k.forEach(function(fe){var ue=Gme(fe),de=ef(ue,p,x,!0).map(function(se){var ve=se.option;return ve}),ie=de[de.length-1];(!ie||ie[x.children]||Zv(ie,x))&&j(function(se){return se.filter(function(ve){return ve!==fe})})})},[p,k,x]);var F=s.useMemo(function(){return new Set(Zd(S))},[S]),L=s.useMemo(function(){return new Set(Zd(C))},[C]),B=cge(i,f),K=ce(B,2),W=K[0],V=K[1],q=function(ue){V(ue),D(ue)},U=function(ue){if(m)return!1;var de=ue.disabled,ie=Zv(ue,x);return!de&&(ie||w||i)},G=function(ue,de){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$(ue),!i&&(de||w&&(O==="hover"||ie))&&c(!1)},Y=s.useMemo(function(){return l?E:p},[l,E,p]),J=s.useMemo(function(){for(var fe=[{options:Y}],ue=Y,de=_W(ue,x),ie=function(){var he=W[se],Ce=ue.find(function(Se,ge){return(de[ge]?Ni(de[ge]):Se[x.value])===he}),pe=Ce==null?void 0:Ce[x.children];if(!(pe!=null&&pe.length))return 1;ue=pe,fe.push({options:pe})},se=0;se":S,x=n.loadingIcon,w=n.direction,$=n.notFoundContent,E=$===void 0?"Not Found":$,R=n.disabled,I=!!c,O=_t(u,{value:d,postState:Gb}),T=ce(O,2),N=T[0],A=T[1],k=s.useMemo(function(){return NW(f)},[JSON.stringify(f)]),j=AW(k,l),D=ce(j,3),F=D[0],L=D[1],B=D[2],K=FW(F,k),W=zW(I,N,L,B,K),V=ce(W,3),q=V[0],U=V[1],G=V[2],Y=Zt(function(le){if(A(le),g){var re=Gb(le),fe=re.map(function(ie){return ef(ie,F,k).map(function(se){return se.option})}),ue=I?re:re[0],de=I?fe:fe[0];g(ue,de)}}),J=BW(I,Y,q,U,G,L,B,h),Q=Zt(function(le){J(le)}),Z=s.useMemo(function(){return{options:F,fieldNames:k,values:q,halfValues:U,changeOnSelect:m,onSelect:Q,checkable:c,searchOptions:[],dropdownPrefixCls:void 0,loadData:b,expandTrigger:p,expandIcon:C,loadingIcon:x,dropdownMenuColumnStyle:void 0}},[F,k,q,U,m,Q,c,b,p,C,x]),ne="".concat(a,"-panel"),ae=!F.length;return s.createElement(Rf.Provider,{value:Z},s.createElement("div",{className:oe(ne,(t={},z(t,"".concat(ne,"-rtl"),w==="rtl"),z(t,"".concat(ne,"-empty"),ae),t),i),style:o},ae?E:s.createElement(VW,{prefixCls:a,searchValue:"",multiple:I,toggleOpen:fge,open:!0,direction:w,disabled:R})))}var vge=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Og=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-cascader":r,o=e.fieldNames,i=e.defaultValue,l=e.value,c=e.changeOnSelect,u=e.onChange,d=e.displayRender,f=e.checkable,m=e.autoClearSearchValue,g=m===void 0?!0:m,h=e.searchValue,b=e.onSearch,p=e.showSearch,S=e.expandTrigger,C=e.options,x=e.dropdownPrefixCls,w=e.loadData,$=e.popupVisible,E=e.open,R=e.popupClassName,I=e.dropdownClassName,O=e.dropdownMenuColumnStyle,T=e.dropdownStyle,N=e.popupPlacement,A=e.placement,k=e.onDropdownVisibleChange,j=e.onPopupVisibleChange,D=e.onOpenChange,F=e.expandIcon,L=F===void 0?">":F,B=e.loadingIcon,K=e.children,W=e.dropdownMatchSelectWidth,V=W===void 0?!1:W,q=e.showCheckedStrategy,U=q===void 0?MW:q,G=e.optionRender,Y=Ue(e,vge),J=qR(n),Q=!!f,Z=_t(i,{value:l,postState:Gb}),ne=ce(Z,2),ae=ne[0],le=ne[1],re=s.useMemo(function(){return NW(o)},[JSON.stringify(o)]),fe=AW(re,C),ue=ce(fe,3),de=ue[0],ie=ue[1],se=ue[2],ve=_t("",{value:h,postState:function(xt){return xt||""}}),he=ce(ve,2),Ce=he[0],pe=he[1],Se=function(xt,mt){pe(xt),mt.source!=="blur"&&b&&b(xt)},ge=nge(p),ye=ce(ge,2),xe=ye[0],$e=ye[1],He=Ume(Ce,de,re,x||a,$e,c||Q),Te=FW(de,re),Re=zW(Q,ae,ie,se,Te),Fe=ce(Re,3),je=Fe[0],Ee=Fe[1],Le=Fe[2],Pe=s.useMemo(function(){var Ot=Zd(je),xt=jW(Ot,ie,U);return[].concat(ke(Le),ke(se(xt)))},[je,ie,se,Le,U]),ze=Qme(Pe,de,re,Q,d),Oe=Zt(function(Ot){if(le(Ot),u){var xt=Gb(Ot),mt=xt.map(function(tt){return ef(tt,de,re).map(function(Ye){return Ye.option})}),yt=Q?xt:xt[0],bt=Q?mt:mt[0];u(yt,bt)}}),we=BW(Q,Oe,je,Ee,Le,ie,se,U),_e=Zt(function(Ot){(!Q||g)&&pe(""),we(Ot)}),Be=function(xt,mt){if(mt.type==="clear"){Oe([]);return}var yt=mt.values[0],bt=yt.valueCells;_e(bt)},Qe=E!==void 0?E:$,lt=I||R,Ke=A||N,et=function(xt){D==null||D(xt),k==null||k(xt),j==null||j(xt)},st=s.useMemo(function(){return{options:de,fieldNames:re,values:je,halfValues:Ee,changeOnSelect:c,onSelect:_e,checkable:f,searchOptions:He,dropdownPrefixCls:x,loadData:w,expandTrigger:S,expandIcon:L,loadingIcon:B,dropdownMenuColumnStyle:O,optionRender:G}},[de,re,je,Ee,c,_e,f,He,x,w,S,L,B,O,G]),Ze=!(Ce?He:de).length,vt=Ce&&$e.matchInputWidth||Ze?{}:{minWidth:"auto"};return s.createElement(Rf.Provider,{value:st},s.createElement(VR,Me({},Y,{ref:t,id:J,prefixCls:a,autoClearSearchValue:g,dropdownMatchSelectWidth:V,dropdownStyle:P(P({},vt),T),displayValues:ze,onDisplayValuesChange:Be,mode:Q?"multiple":void 0,searchValue:Ce,onSearch:Se,showSearch:xe,OptionList:dge,emptyOptions:Ze,open:Qe,dropdownClassName:lt,placement:Ke,onDropdownVisibleChange:et,getRawInputElement:function(){return K}})))});Og.SHOW_PARENT=MW;Og.SHOW_CHILD=TW;Og.Panel=WW;function KW(e,t){const{getPrefixCls:n,direction:r,renderEmpty:a}=s.useContext(jt),o=t||r,i=n("select",e),l=n("cascader",e);return[i,l,o,a]}function qW(e,t){return s.useMemo(()=>t?s.createElement("span",{className:`${e}-checkbox-inner`}):!1,[e,t])}const UW=(e,t,n)=>{let r=n;n||(r=t?s.createElement(Wl,null):s.createElement(ai,null));const a=s.useMemo(()=>s.createElement("span",{className:`${e}-menu-item-loading-icon`},s.createElement(Ya,{spin:!0})),[e]);return s.useMemo(()=>[r,a],[r,a])},mge=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},wn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},wn(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},wn(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`]:ri(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${me(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:`${me(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}})},{[` + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${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:me(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Xme=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:o,horizontalItemPaddingSM:i,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${me(e.borderRadius)} ${me(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${me(e.borderRadius)} ${me(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${me(e.borderRadius)} ${me(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me(e.borderRadius)} 0 0 ${me(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},Qme=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:i,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-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}},Ga(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:ai(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:o}}}},Jme=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:me(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:me(e.marginXS)},marginLeft:{_skip_check_:!0,value:me(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Zme=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:a},background:"transparent",border:`${me(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${me(e.borderRadiusLG)} ${me(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:i}},Ga(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Qme(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ga(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"}}}}}},ege=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:o}=e,i=t||o,l=n||a,c=r||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:i,cardHeightSM:l,cardHeightLG:c,cardPadding:`${(i-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-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}},tge=dn("Tabs",e=>{const t=en(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${me(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${me(e.horizontalItemGutter)}`});return[Xme(t),Jme(t),Yme(t),Gme(t),Ume(t),Zme(t),qme(t)]},ege),nge=()=>null;var rge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i,l,c,u,d,f,m;const{type:g,className:h,rootClassName:b,size:p,onEdit:S,hideAdd:C,centered:x,addIcon:w,removeIcon:$,moreIcon:E,more:R,popupClassName:I,children:O,items:T,animated:_,style:k,indicatorSize:A,indicator:j,destroyInactiveTabPane:D,destroyOnHidden:F}=e,L=rge(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:B}=L,{direction:K,tabs:W,getPrefixCls:V,getPopupContainer:q}=s.useContext(jt),U=V("tabs",B),G=Yn(U),[Y,J,Q]=tge(U,G),Z=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:Z.current}));let ne;g==="editable-card"&&(ne={onEdit:(ie,{key:se,event:ve})=>{S==null||S(ie==="add"?ve:se,ie)},removeIcon:(n=$??(W==null?void 0:W.removeIcon))!==null&&n!==void 0?n:s.createElement(Hi,null),addIcon:(w??(W==null?void 0:W.addIcon))||s.createElement(VW,null),showAdd:C!==!0});const ae=V(),le=Er(p),re=Kme(T,O),fe=Hme(U,_),ue=Object.assign(Object.assign({},W==null?void 0:W.style),k),de={align:(r=j==null?void 0:j.align)!==null&&r!==void 0?r:(a=W==null?void 0:W.indicator)===null||a===void 0?void 0:a.align,size:(c=(i=(o=j==null?void 0:j.size)!==null&&o!==void 0?o:A)!==null&&i!==void 0?i:(l=W==null?void 0:W.indicator)===null||l===void 0?void 0:l.size)!==null&&c!==void 0?c:W==null?void 0:W.indicatorSize};return Y(s.createElement(Bme,Object.assign({ref:Z,direction:K,getPopupContainer:q},L,{items:re,className:oe({[`${U}-${le}`]:le,[`${U}-card`]:["card","editable-card"].includes(g),[`${U}-editable-card`]:g==="editable-card",[`${U}-centered`]:x},W==null?void 0:W.className,h,b,J,Q,G),popupClassName:oe(I,J,Q,G),style:ue,editable:ne,more:Object.assign({icon:(m=(f=(d=(u=W==null?void 0:W.more)===null||u===void 0?void 0:u.icon)!==null&&d!==void 0?d:W==null?void 0:W.moreIcon)!==null&&f!==void 0?f:E)!==null&&m!==void 0?m:s.createElement(p1,null),transitionName:`${ae}-slide-up`},R),prefixCls:U,animated:fe,indicator:de,destroyInactiveTabPane:F??D})))}),Bi=age;Bi.TabPane=nge;function oge(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,i=r.noLeading,l=i===void 0?!1:i,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function g(){d&&clearTimeout(d)}function h(p){var S=p||{},C=S.upcomingOnly,x=C===void 0?!1:C;g(),f=!x}function b(){for(var p=arguments.length,S=new Array(p),C=0;Ce?l?(m=Date.now(),o||(d=setTimeout(u?E:$,e))):$():o!==!0&&(d=setTimeout(u?E:$,u===void 0?e-w:e))}return b.cancel=h,b}function ige(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return oge(e,t,{debounceMode:o!==!1})}var Mf=s.createContext({}),Od="__rc_cascader_search_mark__",lge=function(t,n,r){var a=r.label,o=a===void 0?"":a;return n.some(function(i){return String(i[o]).toLowerCase().includes(t.toLowerCase())})},sge=function(t,n,r,a){return n.map(function(o){return o[a.label]}).join(" / ")},cge=function(t,n,r,a,o,i){var l=o.filter,c=l===void 0?lge:l,u=o.render,d=u===void 0?sge:u,f=o.limit,m=f===void 0?50:f,g=o.sort;return s.useMemo(function(){var h=[];if(!t)return[];function b(p,S){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;p.forEach(function(x){if(!(!g&&m!==!1&&m>0&&h.length>=m)){var w=[].concat(ke(S),[x]),$=x[r.children],E=C||x.disabled;if((!$||$.length===0||i)&&c(t,w,{label:r.label})){var R;h.push(P(P({},x),{},(R={disabled:E},z(R,r.label,d(t,w,a,r)),z(R,Od,w),z(R,r.children,void 0),R)))}$&&b(x[r.children],w,E)}})}return b(n,[]),g&&h.sort(function(p,S){return g(p[Od],S[Od],t,r)}),m!==!1&&m>0?h.slice(0,m):h},[t,n,r,a,d,i,c,g,m])},D4="__RC_CASCADER_SPLIT__",GW="SHOW_PARENT",YW="SHOW_CHILD";function ji(e){return e.join(D4)}function tf(e){return e.map(ji)}function uge(e){return e.split(D4)}function XW(e){var t=e||{},n=t.label,r=t.value,a=t.children,o=r||"value";return{label:n||"label",value:o,key:o,children:a||"children"}}function Zv(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function dge(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function QW(e,t){return e.map(function(n){var r;return(r=n[Od])===null||r===void 0?void 0:r.map(function(a){return a[t.value]})})}function fge(e){return Array.isArray(e)&&Array.isArray(e[0])}function Jb(e){return e?fge(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function JW(e,t,n){var r=new Set(e),a=t();return e.filter(function(o){var i=a[o],l=i?i.parent:null,c=i?i.children:null;return i&&i.node.disabled?!0:n===YW?!(c&&c.some(function(u){return u.key&&r.has(u.key)})):!(l&&!l.node.disabled&&r.has(l.key))})}function nf(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=t,o=[],i=function(){var u,d,f,m=e[l],g=(u=a)===null||u===void 0?void 0:u.findIndex(function(b){var p=b[n.value];return r?String(p)===String(m):p===m}),h=g!==-1?(d=a)===null||d===void 0?void 0:d[g]:null;o.push({value:(f=h==null?void 0:h[n.value])!==null&&f!==void 0?f:m,index:g,option:h}),a=h==null?void 0:h[n.children]},l=0;l1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,g){for(var h=eK(f?f.pos:"0",g),b=Eg(m[o],h),p,S=0;S1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,i=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),pge(e,function(g){var h=g.node,b=g.index,p=g.pos,S=g.key,C=g.parentPos,x=g.level,w=g.nodes,$={node:h,nodes:w,index:b,key:S,pos:p,level:x},E=Eg(S,p);d[p]=$,f[E]=$,$.parent=d[C],$.parent&&($.parent.children=$.parent.children||[],$.parent.children.push($)),r&&r($,m)},{externalGetKey:u,childrenPropName:i,fieldNames:l}),a&&a(m),m}function mm(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,i=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=co(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:i.indexOf(e)!==-1,halfChecked:l.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function Xr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,i=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,g=e.eventKey,h=P(P({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:i,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:g});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Kn(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}const hge=(function(e,t){var n=s.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=s.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=Pg(e,{fieldNames:t,initWrapper:function(o){return P(P({},o),{},{pathKeyEntities:{}})},processEntity:function(o,i){var l=o.nodes.map(function(c){return c[t.value]}).join(D4);i.pathKeyEntities[l]=o,o.key=l}})),n.current.info.pathKeyEntities},[t,e]);return r});function nK(e,t){var n=s.useMemo(function(){return t||[]},[t]),r=hge(n,e),a=s.useCallback(function(o){var i=r();return o.map(function(l){var c=i[l].nodes;return c.map(function(u){return u[e.value]})})},[r,e]);return[n,r,a]}function bge(e){return s.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&it(e)==="object"&&(t=P(P({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function rK(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function yge(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function Cge(e,t,n,r){for(var a=new Set(e),o=new Set,i=0;i<=n;i+=1){var l=t.get(i)||new Set;l.forEach(function(f){var m=f.key,g=f.node,h=f.children,b=h===void 0?[]:h;a.has(m)&&!r(g)&&b.filter(function(p){return!r(p.node)}).forEach(function(p){a.add(p.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,g=f.node;if(!(r(g)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var h=!0,b=!1;(m.children||[]).filter(function(p){return!r(p.node)}).forEach(function(p){var S=p.key,C=a.has(S);h&&!C&&(h=!1),!b&&(C||o.has(S))&&(b=!0)}),h&&a.add(m.key),b&&o.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(rK(o,a))}}function Sge(e,t,n,r,a){for(var o=new Set(e),i=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(m){var g=m.key,h=m.node,b=m.children,p=b===void 0?[]:b;!o.has(g)&&!i.has(g)&&!a(h)&&p.filter(function(S){return!a(S.node)}).forEach(function(S){o.delete(S.key)})})}i=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var g=m.parent,h=m.node;if(!(a(h)||!m.parent||u.has(m.parent.key))){if(a(m.parent.node)){u.add(g.key);return}var b=!0,p=!1;(g.children||[]).filter(function(S){return!a(S.node)}).forEach(function(S){var C=S.key,x=o.has(C);b&&!x&&(b=!1),!p&&(x||i.has(C))&&(p=!0)}),b||o.delete(g.key),p&&i.add(g.key),u.add(g.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(rK(i,o))}}function ei(e,t,n,r){var a=[],o;r?o=r:o=yge;var i=new Set(e.filter(function(d){var f=!!co(n,d);return f||a.push(d),f})),l=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,g=l.get(m);g||(g=new Set,l.set(m,g)),g.add(f),c=Math.max(c,m)}),Kn(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=Cge(i,l,c,o):u=Sge(i,t.halfCheckedKeys,l,c,o),u}function aK(e,t,n,r,a,o,i,l){return function(c){if(!e)t(c);else{var u=ji(c),d=tf(n),f=tf(r),m=d.includes(u),g=a.some(function(E){return ji(E)===u}),h=n,b=a;if(g&&!m)b=a.filter(function(E){return ji(E)!==u});else{var p=m?d.filter(function(E){return E!==u}):[].concat(ke(d),[u]),S=o(),C;if(m){var x=ei(p,{halfCheckedKeys:f},S);C=x.checkedKeys}else{var w=ei(p,!0,S);C=w.checkedKeys}var $=JW(C,o,l);h=i($)}t([].concat(ke(b),ke(h)))}}}function oK(e,t,n,r,a){return s.useMemo(function(){var o=a(t),i=ce(o,2),l=i[0],c=i[1];if(!e||!t.length)return[l,[],c];var u=tf(l),d=n(),f=ei(u,!0,d),m=f.checkedKeys,g=f.halfCheckedKeys;return[r(m),r(g),c]},[e,t,n,r,a])}var xge=s.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function wge(e){var t,n=e.prefixCls,r=e.checked,a=e.halfChecked,o=e.disabled,i=e.onClick,l=e.disableCheckbox,c=s.useContext(Mf),u=c.checkable,d=typeof u!="boolean"?u:null;return s.createElement("span",{className:oe("".concat(n),(t={},z(t,"".concat(n,"-checked"),r),z(t,"".concat(n,"-indeterminate"),!r&&a),z(t,"".concat(n,"-disabled"),o||l),t)),onClick:i},d)}var iK="__cascader_fix_label__";function $ge(e){var t=e.prefixCls,n=e.multiple,r=e.options,a=e.activeValue,o=e.prevValuePath,i=e.onToggleOpen,l=e.onSelect,c=e.onActive,u=e.checkedSet,d=e.halfCheckedSet,f=e.loadingKeys,m=e.isSelectable,g=e.disabled,h="".concat(t,"-menu"),b="".concat(t,"-menu-item"),p=s.useContext(Mf),S=p.fieldNames,C=p.changeOnSelect,x=p.expandTrigger,w=p.expandIcon,$=p.loadingIcon,E=p.dropdownMenuColumnStyle,R=p.optionRender,I=x==="hover",O=function(k){return g||k},T=s.useMemo(function(){return r.map(function(_){var k,A=_.disabled,j=_.disableCheckbox,D=_[Od],F=(k=_[iK])!==null&&k!==void 0?k:_[S.label],L=_[S.value],B=Zv(_,S),K=D?D.map(function(G){return G[S.value]}):[].concat(ke(o),[L]),W=ji(K),V=f.includes(W),q=u.has(W),U=d.has(W);return{disabled:A,label:F,value:L,isLeaf:B,isLoading:V,checked:q,halfChecked:U,option:_,disableCheckbox:j,fullPath:K,fullPathKey:W}})},[r,u,S,d,f,o]);return s.createElement("ul",{className:h,role:"menu"},T.map(function(_){var k,A=_.disabled,j=_.label,D=_.value,F=_.isLeaf,L=_.isLoading,B=_.checked,K=_.halfChecked,W=_.option,V=_.fullPath,q=_.fullPathKey,U=_.disableCheckbox,G=function(){if(!O(A)){var Z=ke(V);I&&F&&Z.pop(),c(Z)}},Y=function(){m(W)&&!O(A)&&l(V,F)},J;return typeof W.title=="string"?J=W.title:typeof j=="string"&&(J=j),s.createElement("li",{key:q,className:oe(b,(k={},z(k,"".concat(b,"-expand"),!F),z(k,"".concat(b,"-active"),a===D||a===q),z(k,"".concat(b,"-disabled"),O(A)),z(k,"".concat(b,"-loading"),L),k)),style:E,role:"menuitemcheckbox",title:J,"aria-checked":B,"data-path-key":q,onClick:function(){G(),!U&&(!n||F)&&Y()},onDoubleClick:function(){C&&i(!1)},onMouseEnter:function(){I&&G()},onMouseDown:function(Z){Z.preventDefault()}},n&&s.createElement(wge,{prefixCls:"".concat(t,"-checkbox"),checked:B,halfChecked:K,disabled:O(A)||U,disableCheckbox:U,onClick:function(Z){U||(Z.stopPropagation(),Y())}}),s.createElement("div",{className:"".concat(b,"-content")},R?R(W):j),!L&&w&&!F&&s.createElement("div",{className:"".concat(b,"-expand-icon")},w),L&&$&&s.createElement("div",{className:"".concat(b,"-loading-icon")},$))}))}var Ege=function(t,n){var r=s.useContext(Mf),a=r.values,o=a[0],i=s.useState([]),l=ce(i,2),c=l[0],u=l[1];return s.useEffect(function(){t||u(o||[])},[n,o]),[c,u]};const Pge=(function(e,t,n,r,a,o,i){var l=i.direction,c=i.searchValue,u=i.toggleOpen,d=i.open,f=l==="rtl",m=s.useMemo(function(){for(var E=-1,R=t,I=[],O=[],T=r.length,_=QW(t,n),k=function(L){var B=R.findIndex(function(K,W){return(_[W]?ji(_[W]):K[n.value])===r[L]});if(B===-1)return 1;E=B,I.push(E),O.push(r[L]),R=R[E][n.children]},A=0;A1){var R=h.slice(0,-1);C(R)}else u(!1)},$=function(){var R,I=((R=p[b])===null||R===void 0?void 0:R[n.children])||[],O=I.find(function(_){return!_.disabled});if(O){var T=[].concat(ke(h),[O[n.value]]);C(T)}};s.useImperativeHandle(e,function(){return{onKeyDown:function(R){var I=R.which;switch(I){case ot.UP:case ot.DOWN:{var O=0;I===ot.UP?O=-1:I===ot.DOWN&&(O=1),O!==0&&x(O);break}case ot.LEFT:{if(c)break;f?$():w();break}case ot.RIGHT:{if(c)break;f?w():$();break}case ot.BACKSPACE:{c||w();break}case ot.ENTER:{if(h.length){var T=p[b],_=(T==null?void 0:T[Od])||[];_.length?o(_.map(function(k){return k[n.value]}),_[_.length-1]):o(h,p[b])}break}case ot.ESC:u(!1),d&&R.stopPropagation()}},onKeyUp:function(){}}})});var lK=s.forwardRef(function(e,t){var n,r,a,o=e.prefixCls,i=e.multiple,l=e.searchValue,c=e.toggleOpen,u=e.notFoundContent,d=e.direction,f=e.open,m=e.disabled,g=s.useRef(null),h=d==="rtl",b=s.useContext(Mf),p=b.options,S=b.values,C=b.halfValues,x=b.fieldNames,w=b.changeOnSelect,$=b.onSelect,E=b.searchOptions,R=b.dropdownPrefixCls,I=b.loadData,O=b.expandTrigger,T=R||o,_=s.useState([]),k=ce(_,2),A=k[0],j=k[1],D=function(ue){if(!(!I||l)){var de=nf(ue,p,x),ie=de.map(function(he){var Ce=he.option;return Ce}),se=ie[ie.length-1];if(se&&!Zv(se,x)){var ve=ji(ue);j(function(he){return[].concat(ke(he),[ve])}),I(ie)}}};s.useEffect(function(){A.length&&A.forEach(function(fe){var ue=uge(fe),de=nf(ue,p,x,!0).map(function(se){var ve=se.option;return ve}),ie=de[de.length-1];(!ie||ie[x.children]||Zv(ie,x))&&j(function(se){return se.filter(function(ve){return ve!==fe})})})},[p,A,x]);var F=s.useMemo(function(){return new Set(tf(S))},[S]),L=s.useMemo(function(){return new Set(tf(C))},[C]),B=Ege(i,f),K=ce(B,2),W=K[0],V=K[1],q=function(ue){V(ue),D(ue)},U=function(ue){if(m)return!1;var de=ue.disabled,ie=Zv(ue,x);return!de&&(ie||w||i)},G=function(ue,de){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$(ue),!i&&(de||w&&(O==="hover"||ie))&&c(!1)},Y=s.useMemo(function(){return l?E:p},[l,E,p]),J=s.useMemo(function(){for(var fe=[{options:Y}],ue=Y,de=QW(ue,x),ie=function(){var he=W[se],Ce=ue.find(function(Se,ge){return(de[ge]?ji(de[ge]):Se[x.value])===he}),pe=Ce==null?void 0:Ce[x.children];if(!(pe!=null&&pe.length))return 1;ue=pe,fe.push({options:pe})},se=0;se":S,x=n.loadingIcon,w=n.direction,$=n.notFoundContent,E=$===void 0?"Not Found":$,R=n.disabled,I=!!c,O=Nt(u,{value:d,postState:Jb}),T=ce(O,2),_=T[0],k=T[1],A=s.useMemo(function(){return XW(f)},[JSON.stringify(f)]),j=nK(A,l),D=ce(j,3),F=D[0],L=D[1],B=D[2],K=ZW(F,A),W=oK(I,_,L,B,K),V=ce(W,3),q=V[0],U=V[1],G=V[2],Y=Zt(function(le){if(k(le),g){var re=Jb(le),fe=re.map(function(ie){return nf(ie,F,A).map(function(se){return se.option})}),ue=I?re:re[0],de=I?fe:fe[0];g(ue,de)}}),J=aK(I,Y,q,U,G,L,B,h),Q=Zt(function(le){J(le)}),Z=s.useMemo(function(){return{options:F,fieldNames:A,values:q,halfValues:U,changeOnSelect:m,onSelect:Q,checkable:c,searchOptions:[],dropdownPrefixCls:void 0,loadData:b,expandTrigger:p,expandIcon:C,loadingIcon:x,dropdownMenuColumnStyle:void 0}},[F,A,q,U,m,Q,c,b,p,C,x]),ne="".concat(a,"-panel"),ae=!F.length;return s.createElement(Mf.Provider,{value:Z},s.createElement("div",{className:oe(ne,(t={},z(t,"".concat(ne,"-rtl"),w==="rtl"),z(t,"".concat(ne,"-empty"),ae),t),i),style:o},ae?E:s.createElement(lK,{prefixCls:a,searchValue:"",multiple:I,toggleOpen:Ige,open:!0,direction:w,disabled:R})))}var Rge=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Og=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-cascader":r,o=e.fieldNames,i=e.defaultValue,l=e.value,c=e.changeOnSelect,u=e.onChange,d=e.displayRender,f=e.checkable,m=e.autoClearSearchValue,g=m===void 0?!0:m,h=e.searchValue,b=e.onSearch,p=e.showSearch,S=e.expandTrigger,C=e.options,x=e.dropdownPrefixCls,w=e.loadData,$=e.popupVisible,E=e.open,R=e.popupClassName,I=e.dropdownClassName,O=e.dropdownMenuColumnStyle,T=e.dropdownStyle,_=e.popupPlacement,k=e.placement,A=e.onDropdownVisibleChange,j=e.onPopupVisibleChange,D=e.onOpenChange,F=e.expandIcon,L=F===void 0?">":F,B=e.loadingIcon,K=e.children,W=e.dropdownMatchSelectWidth,V=W===void 0?!1:W,q=e.showCheckedStrategy,U=q===void 0?GW:q,G=e.optionRender,Y=Ue(e,Rge),J=o4(n),Q=!!f,Z=Nt(i,{value:l,postState:Jb}),ne=ce(Z,2),ae=ne[0],le=ne[1],re=s.useMemo(function(){return XW(o)},[JSON.stringify(o)]),fe=nK(re,C),ue=ce(fe,3),de=ue[0],ie=ue[1],se=ue[2],ve=Nt("",{value:h,postState:function(xt){return xt||""}}),he=ce(ve,2),Ce=he[0],pe=he[1],Se=function(xt,mt){pe(xt),mt.source!=="blur"&&b&&b(xt)},ge=bge(p),ye=ce(ge,2),xe=ye[0],$e=ye[1],He=cge(Ce,de,re,x||a,$e,c||Q),Te=ZW(de,re),Re=oK(Q,ae,ie,se,Te),Fe=ce(Re,3),je=Fe[0],Ee=Fe[1],Le=Fe[2],Pe=s.useMemo(function(){var Ot=tf(je),xt=JW(Ot,ie,U);return[].concat(ke(Le),ke(se(xt)))},[je,ie,se,Le,U]),ze=vge(Pe,de,re,Q,d),Oe=Zt(function(Ot){if(le(Ot),u){var xt=Jb(Ot),mt=xt.map(function(tt){return nf(tt,de,re).map(function(Ye){return Ye.option})}),yt=Q?xt:xt[0],bt=Q?mt:mt[0];u(yt,bt)}}),we=aK(Q,Oe,je,Ee,Le,ie,se,U),_e=Zt(function(Ot){(!Q||g)&&pe(""),we(Ot)}),Be=function(xt,mt){if(mt.type==="clear"){Oe([]);return}var yt=mt.values[0],bt=yt.valueCells;_e(bt)},Qe=E!==void 0?E:$,lt=I||R,Ke=k||_,et=function(xt){D==null||D(xt),A==null||A(xt),j==null||j(xt)},st=s.useMemo(function(){return{options:de,fieldNames:re,values:je,halfValues:Ee,changeOnSelect:c,onSelect:_e,checkable:f,searchOptions:He,dropdownPrefixCls:x,loadData:w,expandTrigger:S,expandIcon:L,loadingIcon:B,dropdownMenuColumnStyle:O,optionRender:G}},[de,re,je,Ee,c,_e,f,He,x,w,S,L,B,O,G]),Ze=!(Ce?He:de).length,vt=Ce&&$e.matchInputWidth||Ze?{}:{minWidth:"auto"};return s.createElement(Mf.Provider,{value:st},s.createElement(n4,Me({},Y,{ref:t,id:J,prefixCls:a,autoClearSearchValue:g,dropdownMatchSelectWidth:V,dropdownStyle:P(P({},vt),T),displayValues:ze,onDisplayValuesChange:Be,mode:Q?"multiple":void 0,searchValue:Ce,onSearch:Se,showSearch:xe,OptionList:Oge,emptyOptions:Ze,open:Qe,dropdownClassName:lt,placement:Ke,onDropdownVisibleChange:et,getRawInputElement:function(){return K}})))});Og.SHOW_PARENT=GW;Og.SHOW_CHILD=YW;Og.Panel=sK;function cK(e,t){const{getPrefixCls:n,direction:r,renderEmpty:a}=s.useContext(jt),o=t||r,i=n("select",e),l=n("cascader",e);return[i,l,o,a]}function uK(e,t){return s.useMemo(()=>t?s.createElement("span",{className:`${e}-checkbox-inner`}):!1,[e,t])}const dK=(e,t,n)=>{let r=n;n||(r=t?s.createElement(Wl,null):s.createElement(oi,null));const a=s.useMemo(()=>s.createElement("span",{className:`${e}-menu-item-loading-icon`},s.createElement(Ya,{spin:!0})),[e]);return s.useMemo(()=>[r,a],[r,a])},Mge=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},$n(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},$n(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},$n(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`]:ai(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${me(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:`${me(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}})},{[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` ${n}-checked:not(${n}-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}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function b1(e,t){const n=tn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return mge(n)}const GW=un("Checkbox",(e,{prefixCls:t})=>[b1(t,e)]),YW=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,a=` + `]:{[`&: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}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function E1(e,t){const n=en(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return Mge(n)}const fK=dn("Checkbox",(e,{prefixCls:t})=>[E1(t,e)]),vK=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,a=` &${r}-expand ${r}-expand-icon, ${r}-loading-icon -`;return[b1(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},ni),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},gge=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},YW(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},nc(e)]},XW=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},QW=un("Cascader",gge,XW,{unitless:{optionSelectedFontWeight:!0}}),pge=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[YW(e),{display:"inline-flex",border:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},hge=k9(["Cascader","Panel"],pge,XW);function bge(e){const{prefixCls:t,className:n,multiple:r,rootClassName:a,notFoundContent:o,direction:i,expandIcon:l,disabled:c}=e,u=s.useContext(Lr),d=c??u,[f,m,g,h]=KW(t,i),b=Gn(m),[p,S,C]=QW(m,b);hge(m);const x=g==="rtl",[w,$]=UW(f,x,l),E=o||(h==null?void 0:h("Cascader"))||s.createElement(Cg,{componentName:"Cascader"}),R=qW(m,r);return p(s.createElement(WW,Object.assign({},e,{checkable:R,prefixCls:m,className:oe(n,S,a,C,b),notFoundContent:E,direction:g,expandIcon:w,loadingIcon:$,disabled:d})))}var yge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ac===0?[l]:[].concat(ke(i),[t,l]),[]),a=[];let o=0;return r.forEach((i,l)=>{const c=o+i.length;let u=e.slice(o,c);o=c,l%2===1&&(u=s.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${l}`},u)),a.push(u)}),a}const wge=(e,t,n,r)=>{const a=[],o=e.toLowerCase();return t.forEach((i,l)=>{l!==0&&a.push(" / ");let c=i[r.label];const u=typeof c;(u==="string"||u==="number")&&(c=xge(String(c),o,n)),a.push(c)}),a},Mf=s.forwardRef((e,t)=>{var n,r,a,o;const{prefixCls:i,size:l,disabled:c,className:u,rootClassName:d,multiple:f,bordered:m=!0,transitionName:g,choiceTransitionName:h="",popupClassName:b,dropdownClassName:p,expandIcon:S,placement:C,showSearch:x,allowClear:w=!0,notFoundContent:$,direction:E,getPopupContainer:R,status:I,showArrow:O,builtinPlacements:T,style:N,variant:A,dropdownRender:k,onDropdownVisibleChange:j,dropdownMenuColumnStyle:D,popupRender:F,dropdownStyle:L,popupMenuColumnStyle:B,onOpenChange:K,styles:W,classNames:V}=e,q=yge(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),U=nn(q,["suffixIcon"]),{getPrefixCls:G,getPopupContainer:Y,className:J,style:Q,classNames:Z,styles:ne}=lr("cascader"),{popupOverflow:ae}=s.useContext(jt),{status:le,hasFeedback:re,isFormItemInput:fe,feedbackIcon:ue}=s.useContext(zr),de=Ul(le,I),[ie,se,ve,he]=KW(i,E),Ce=ve==="rtl",pe=G(),Se=Gn(ie),[ge,ye,xe]=YR(ie,Se),$e=Gn(se),[He]=QW(se,$e),{compactSize:Te,compactItemClassnames:Re}=ko(ie,E),[Fe,je]=Gl("cascader",A,m),Ee=$||(he==null?void 0:he("Cascader"))||s.createElement(Cg,{componentName:"Cascader"}),Le=oe(((n=V==null?void 0:V.popup)===null||n===void 0?void 0:n.root)||((r=Z.popup)===null||r===void 0?void 0:r.root)||b||p,`${se}-dropdown`,{[`${se}-dropdown-rtl`]:ve==="rtl"},d,Se,Z.root,V==null?void 0:V.root,$e,ye,xe),Pe=XR(F||k),ze=B||D,Oe=K||j,we=((a=W==null?void 0:W.popup)===null||a===void 0?void 0:a.root)||((o=ne.popup)===null||o===void 0?void 0:o.root)||L,_e=s.useMemo(()=>{if(!x)return x;let Ye={render:wge};return typeof x=="object"&&(Ye=Object.assign(Object.assign({},Ye),x)),Ye},[x]),Be=$r(Ye=>{var Ne;return(Ne=l??Te)!==null&&Ne!==void 0?Ne:Ye}),Qe=s.useContext(Lr),lt=c??Qe,[Ke,et]=UW(ie,Ce,S),st=qW(se,f),Ze=QR(e.suffixIcon,O),{suffixIcon:vt,removeIcon:Ot,clearIcon:xt}=r1(Object.assign(Object.assign({},e),{hasFeedback:re,feedbackIcon:ue,showSuffixIcon:Ze,multiple:f,prefixCls:ie,componentName:"Cascader"})),mt=s.useMemo(()=>C!==void 0?C:Ce?"bottomRight":"bottomLeft",[C,Ce]),yt=w===!0?{clearIcon:xt}:w,[bt]=ui("SelectLike",we==null?void 0:we.zIndex),tt=s.createElement(Og,Object.assign({prefixCls:ie,className:oe(!i&&se,{[`${ie}-lg`]:Be==="large",[`${ie}-sm`]:Be==="small",[`${ie}-rtl`]:Ce,[`${ie}-${Fe}`]:je,[`${ie}-in-form-item`]:fe},Di(ie,de,re),Re,J,u,d,V==null?void 0:V.root,Z.root,Se,$e,ye,xe),disabled:lt,style:Object.assign(Object.assign(Object.assign(Object.assign({},ne.root),W==null?void 0:W.root),Q),N)},U,{builtinPlacements:GR(T,ae),direction:ve,placement:mt,notFoundContent:Ee,allowClear:yt,showSearch:_e,expandIcon:Ke,suffixIcon:vt,removeIcon:Ot,loadingIcon:et,checkable:st,dropdownClassName:Le,dropdownPrefixCls:i||se,dropdownStyle:Object.assign(Object.assign({},we),{zIndex:bt}),dropdownRender:Pe,dropdownMenuColumnStyle:ze,onOpenChange:Oe,choiceTransitionName:ga(pe,"",h),transitionName:ga(pe,"slide-up",g),getPopupContainer:R||Y,ref:t}));return He(ge(tt))}),$ge=rc(Mf,"dropdownAlign",e=>nn(e,["visible"]));Mf.SHOW_PARENT=Sge;Mf.SHOW_CHILD=Cge;Mf.Panel=bge;Mf._InternalPanelDoNotUseOrYouWillBeFired=$ge;const JW=ee.createContext(null);var Ege=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:o,children:i,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,g=Ege(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:b,checkbox:p}=s.useContext(jt),S=s.useContext(JW),{isFormItemInput:C}=s.useContext(zr),x=s.useContext(Lr),w=(n=(S==null?void 0:S.disabled)||m)!==null&&n!==void 0?n:x,$=s.useRef(g.value),E=s.useRef(null),R=Fr(t,E);s.useEffect(()=>{S==null||S.registerValue(g.value)},[]),s.useEffect(()=>{if(!f)return g.value!==$.current&&(S==null||S.cancelValue($.current),S==null||S.registerValue(g.value),$.current=g.value),()=>S==null?void 0:S.cancelValue(g.value)},[g.value]),s.useEffect(()=>{var B;!((B=E.current)===null||B===void 0)&&B.input&&(E.current.input.indeterminate=l)},[l]);const I=h("checkbox",r),O=Gn(I),[T,N,A]=GW(I,O),k=Object.assign({},g);S&&!f&&(k.onChange=(...B)=>{g.onChange&&g.onChange.apply(g,B),S.toggleOption&&S.toggleOption({label:i,value:g.value})},k.name=S.name,k.checked=S.value.includes(g.value));const j=oe(`${I}-wrapper`,{[`${I}-rtl`]:b==="rtl",[`${I}-wrapper-checked`]:k.checked,[`${I}-wrapper-disabled`]:w,[`${I}-wrapper-in-form-item`]:C},p==null?void 0:p.className,a,o,A,O,N),D=oe({[`${I}-indeterminate`]:l},Dy,N),[F,L]=dW(k.onClick);return T(s.createElement(vg,{component:"Checkbox",disabled:w},s.createElement("label",{className:j,style:Object.assign(Object.assign({},p==null?void 0:p.style),c),onMouseEnter:u,onMouseLeave:d,onClick:F},s.createElement(uW,Object.assign({},k,{onClick:L,prefixCls:I,className:D,disabled:w,ref:R})),i!=null&&s.createElement("span",{className:`${I}-label`},i))))},ZW=s.forwardRef(Pge);var Oge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:i,rootClassName:l,style:c,onChange:u}=e,d=Oge(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=s.useContext(jt),[g,h]=s.useState(d.value||n||[]),[b,p]=s.useState([]);s.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const S=s.useMemo(()=>a.map(D=>typeof D=="string"||typeof D=="number"?{label:D,value:D}:D),[a]),C=D=>{p(F=>F.filter(L=>L!==D))},x=D=>{p(F=>[].concat(ke(F),[D]))},w=D=>{const F=g.indexOf(D.value),L=ke(g);F===-1?L.push(D.value):L.splice(F,1),"value"in d||h(L),u==null||u(L.filter(B=>b.includes(B)).sort((B,K)=>{const W=S.findIndex(q=>q.value===B),V=S.findIndex(q=>q.value===K);return W-V}))},$=f("checkbox",o),E=`${$}-group`,R=Gn($),[I,O,T]=GW($,R),N=nn(d,["value","disabled"]),A=a.length?S.map(D=>s.createElement(ZW,{prefixCls:$,key:D.value.toString(),disabled:"disabled"in D?D.disabled:d.disabled,value:D.value,checked:g.includes(D.value),onChange:D.onChange,className:oe(`${E}-item`,D.className),style:D.style,title:D.title,id:D.id,required:D.required},D.label)):r,k=s.useMemo(()=>({toggleOption:w,value:g,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:C}),[w,g,d.disabled,d.name,x,C]),j=oe(E,{[`${E}-rtl`]:m==="rtl"},i,l,T,R,O);return I(s.createElement("div",Object.assign({className:j,style:c},N,{ref:t}),s.createElement(JW.Provider,{value:k},A)))}),Xs=ZW;Xs.Group=Ige;Xs.__ANT_CHECKBOX=!0;const eK=s.createContext({});var Rge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=s.useContext(jt),{gutter:a,wrap:o}=s.useContext(eK),{prefixCls:i,span:l,order:c,offset:u,push:d,pull:f,className:m,children:g,flex:h,style:b}=e,p=Rge(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",i),[C,x,w]=Fie(S),$={};let E={};Mge.forEach(O=>{let T={};const N=e[O];typeof N=="number"?T.span=N:typeof N=="object"&&(T=N||{}),delete p[O],E=Object.assign(Object.assign({},E),{[`${S}-${O}-${T.span}`]:T.span!==void 0,[`${S}-${O}-order-${T.order}`]:T.order||T.order===0,[`${S}-${O}-offset-${T.offset}`]:T.offset||T.offset===0,[`${S}-${O}-push-${T.push}`]:T.push||T.push===0,[`${S}-${O}-pull-${T.pull}`]:T.pull||T.pull===0,[`${S}-rtl`]:r==="rtl"}),T.flex&&(E[`${S}-${O}-flex`]=!0,$[`--${S}-${O}-flex`]=y5(T.flex))});const R=oe(S,{[`${S}-${l}`]:l!==void 0,[`${S}-order-${c}`]:c,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},m,E,x,w),I={};if(a!=null&&a[0]){const O=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;I.paddingLeft=O,I.paddingRight=O}return h&&(I.flex=y5(h),o===!1&&!I.minWidth&&(I.minWidth=0)),C(s.createElement("div",Object.assign({},p,{style:Object.assign(Object.assign(Object.assign({},I),b),$),className:R,ref:t}),g))});function Tge(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((o,i)=>{if(typeof o=="object"&&o!==null)for(let l=0;l{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{a()},[JSON.stringify(e),t]),n}const Pi=s.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:l,gutter:c=0,wrap:u}=e,d=Nge(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=s.useContext(jt),g=uu(!0,null),h=C5(a,g),b=C5(r,g),p=f("row",n),[S,C,x]=jie(p),w=Tge(c,g),$=oe(p,{[`${p}-no-wrap`]:u===!1,[`${p}-${b}`]:b,[`${p}-${h}`]:h,[`${p}-rtl`]:m==="rtl"},o,C,x),E={};if(w!=null&&w[0]){const T=typeof w[0]=="number"?`${w[0]/-2}px`:`calc(${w[0]} / -2)`;E.marginLeft=T,E.marginRight=T}const[R,I]=w;E.rowGap=I;const O=s.useMemo(()=>({gutter:[R,I],wrap:u}),[R,I,u]);return S(s.createElement(eK.Provider,{value:O},s.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},E),i),ref:t}),l)))}),_ge=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},jge=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:i,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},wn(e)),{borderBlockStart:`${me(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${me(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${me(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${me(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${me(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${me(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:r,borderStyle:"dotted",borderWidth:`${me(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:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Fge=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Dge=un("Divider",e=>{const t=tn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[jge(t),_ge(t)]},Fge,{unitless:{orientationMargin:!0}});var kge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,className:r,style:a}=lr("divider"),{prefixCls:o,type:i="horizontal",orientation:l="center",orientationMargin:c,className:u,rootClassName:d,children:f,dashed:m,variant:g="solid",plain:h,style:b,size:p}=e,S=kge(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),C=t("divider",o),[x,w,$]=Dge(C),E=$r(p),R=Age[E],I=!!f,O=s.useMemo(()=>l==="left"?n==="rtl"?"end":"start":l==="right"?n==="rtl"?"start":"end":l,[n,l]),T=O==="start"&&c!=null,N=O==="end"&&c!=null,A=oe(C,r,w,$,`${C}-${i}`,{[`${C}-with-text`]:I,[`${C}-with-text-${O}`]:I,[`${C}-dashed`]:!!m,[`${C}-${g}`]:g!=="solid",[`${C}-plain`]:!!h,[`${C}-rtl`]:n==="rtl",[`${C}-no-default-orientation-margin-start`]:T,[`${C}-no-default-orientation-margin-end`]:N,[`${C}-${R}`]:!!R},u,d),k=s.useMemo(()=>typeof c=="number"?c:/^\d+$/.test(c)?Number(c):c,[c]),j={marginInlineStart:T?k:void 0,marginInlineEnd:N?k:void 0};return x(s.createElement("div",Object.assign({className:A,style:Object.assign(Object.assign({},a),b)},S,{role:"separator"}),f&&i!=="vertical"&&s.createElement("span",{className:`${C}-inner-text`,style:j},f)))};var S5=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Xi=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Lge(e){var t=e.prefixCls,n=e.containerRef,r=e.value,a=e.getValueIndex,o=e.motionName,i=e.onMotionStart,l=e.onMotionEnd,c=e.direction,u=e.vertical,d=u===void 0?!1:u,f=s.useRef(null),m=s.useState(r),g=ce(m,2),h=g[0],b=g[1],p=function(D){var F,L=a(D),B=(F=n.current)===null||F===void 0?void 0:F.querySelectorAll(".".concat(t,"-item"))[L];return(B==null?void 0:B.offsetParent)&&B},S=s.useState(null),C=ce(S,2),x=C[0],w=C[1],$=s.useState(null),E=ce($,2),R=E[0],I=E[1];dn(function(){if(h!==r){var j=p(h),D=p(r),F=S5(j,d),L=S5(D,d);b(r),w(F),I(L),j&&D?i():l()}},[r]);var O=s.useMemo(function(){if(d){var j;return Xi((j=x==null?void 0:x.top)!==null&&j!==void 0?j:0)}return Xi(c==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[d,c,x]),T=s.useMemo(function(){if(d){var j;return Xi((j=R==null?void 0:R.top)!==null&&j!==void 0?j:0)}return Xi(c==="rtl"?-(R==null?void 0:R.right):R==null?void 0:R.left)},[d,c,R]),N=function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},A=function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},k=function(){w(null),I(null),l()};return!x||!R?null:s.createElement(ma,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:N,onAppearActive:A,onVisibleChanged:k},function(j,D){var F=j.className,L=j.style,B=P(P({},L),{},{"--thumb-start-left":O,"--thumb-start-width":Xi(x==null?void 0:x.width),"--thumb-active-left":T,"--thumb-active-width":Xi(R==null?void 0:R.width),"--thumb-start-top":O,"--thumb-start-height":Xi(x==null?void 0:x.height),"--thumb-active-top":T,"--thumb-active-height":Xi(R==null?void 0:R.height)}),K={ref:Fr(f,D),style:B,className:oe("".concat(t,"-thumb"),F)};return s.createElement("div",K)})}var Bge=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function zge(e){if(typeof e.title<"u")return e.title;if(it(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Hge(e){return e.map(function(t){if(it(t)==="object"&&t!==null){var n=zge(t);return P(P({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Vge=function(t){var n=t.prefixCls,r=t.className,a=t.disabled,o=t.checked,i=t.label,l=t.title,c=t.value,u=t.name,d=t.onChange,f=t.onFocus,m=t.onBlur,g=t.onKeyDown,h=t.onKeyUp,b=t.onMouseDown,p=function(C){a||d(C,c)};return s.createElement("label",{className:oe(r,z({},"".concat(n,"-item-disabled"),a)),onMouseDown:b},s.createElement("input",{name:u,className:"".concat(n,"-item-input"),type:"radio",disabled:a,checked:o,onChange:p,onFocus:f,onBlur:m,onKeyDown:g,onKeyUp:h}),s.createElement("div",{className:"".concat(n,"-item-label"),title:l},i))},Wge=s.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-segmented":r,o=e.direction,i=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,d=e.defaultValue,f=e.value,m=e.name,g=e.onChange,h=e.className,b=h===void 0?"":h,p=e.motionName,S=p===void 0?"thumb-motion":p,C=Ue(e,Bge),x=s.useRef(null),w=s.useMemo(function(){return Fr(x,t)},[x,t]),$=s.useMemo(function(){return Hge(c)},[c]),E=_t((n=$[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),R=ce(E,2),I=R[0],O=R[1],T=s.useState(!1),N=ce(T,2),A=N[0],k=N[1],j=function(le,re){O(re),g==null||g(re)},D=nn(C,["children"]),F=s.useState(!1),L=ce(F,2),B=L[0],K=L[1],W=s.useState(!1),V=ce(W,2),q=V[0],U=V[1],G=function(){U(!0)},Y=function(){U(!1)},J=function(){K(!1)},Q=function(le){le.key==="Tab"&&K(!0)},Z=function(le){var re=$.findIndex(function(ie){return ie.value===I}),fe=$.length,ue=(re+le+fe)%fe,de=$[ue];de&&(O(de.value),g==null||g(de.value))},ne=function(le){switch(le.key){case"ArrowLeft":case"ArrowUp":Z(-1);break;case"ArrowRight":case"ArrowDown":Z(1);break}};return s.createElement("div",Me({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0,"aria-orientation":i?"vertical":"horizontal"},D,{className:oe(a,z(z(z({},"".concat(a,"-rtl"),o==="rtl"),"".concat(a,"-disabled"),u),"".concat(a,"-vertical"),i),b),ref:w}),s.createElement("div",{className:"".concat(a,"-group")},s.createElement(Lge,{vertical:i,prefixCls:a,value:I,containerRef:x,motionName:"".concat(a,"-").concat(S),direction:o,getValueIndex:function(le){return $.findIndex(function(re){return re.value===le})},onMotionStart:function(){k(!0)},onMotionEnd:function(){k(!1)}}),$.map(function(ae){return s.createElement(Vge,Me({},ae,{name:m,key:ae.value,prefixCls:a,className:oe(ae.className,"".concat(a,"-item"),z(z({},"".concat(a,"-item-selected"),ae.value===I&&!A),"".concat(a,"-item-focused"),q&&B&&ae.value===I)),checked:ae.value===I,onChange:j,onFocus:G,onBlur:Y,onKeyDown:ne,onKeyUp:Q,onMouseDown:J,disabled:!!u||!!ae.disabled}))})))}),Kge=Wge;function x5(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function w5(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const qge=Object.assign({overflow:"hidden"},ni),Uge=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),Ga(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${me(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},w5(e)),{color:e.itemSelectedColor}),"&-focused":ri(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:me(n),padding:`0 ${me(e.segmentedPaddingHorizontal)}`},qge),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},w5(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${me(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:me(r),padding:`0 ${me(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:me(a),padding:`0 ${me(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),x5(`&-disabled ${t}-item`,e)),x5(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},Gge=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:a,colorFill:o,lineWidthBold:i,colorBgLayout:l}=e;return{trackPadding:i,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:a,itemActiveBg:o,itemSelectedColor:n}},Yge=un("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=tn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return Uge(r)},Gge);var $5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=Cf(),{prefixCls:r,className:a,rootClassName:o,block:i,options:l=[],size:c="middle",style:u,vertical:d,shape:f="default",name:m=n}=e,g=$5(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:h,direction:b,className:p,style:S}=lr("segmented"),C=h("segmented",r),[x,w,$]=Yge(C),E=$r(c),R=s.useMemo(()=>l.map(T=>{if(Xge(T)){const{icon:N,label:A}=T,k=$5(T,["icon","label"]);return Object.assign(Object.assign({},k),{label:s.createElement(s.Fragment,null,s.createElement("span",{className:`${C}-item-icon`},N),A&&s.createElement("span",null,A))})}return T}),[l,C]),I=oe(a,o,p,{[`${C}-block`]:i,[`${C}-sm`]:E==="small",[`${C}-lg`]:E==="large",[`${C}-vertical`]:d,[`${C}-shape-${f}`]:f==="round"},w,$),O=Object.assign(Object.assign({},S),u);return x(s.createElement(Kge,Object.assign({},g,{name:m,className:I,style:O,options:R,ref:t,prefixCls:C,direction:b,vertical:d})))}),nK=Qge,rK=ee.createContext({}),aK=ee.createContext({}),oK=({prefixCls:e,value:t,onChange:n})=>{const r=()=>{if(n&&t&&!t.cleared){const a=t.toHsb();a.a=0;const o=Ea(a);o.cleared=!0,n(o)}};return ee.createElement("div",{className:`${e}-clear`,onClick:r})},iK="hex",lK="rgb",sK="hsb";var Jge={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"},Zge=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Jge}))},epe=s.forwardRef(Zge);function ZP(){return typeof BigInt=="function"}function cK(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Kc(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(l).concat(r)}}function y1(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function uK(e){var t=e.toLowerCase().split("e"),n=ce(t,2),r=n[0],a=n[1],o=a===void 0?"0":a,i=r.startsWith("-"),l=i?r.slice(1):r,c=l.split("."),u=ce(c,2),d=u[0],f=d===void 0?"0":d,m=u[1],g=m===void 0?"":m,h="".concat(f).concat(g).replace(/^0+/,"")||"0";return{decimal:g,digits:h,exponent:Number(o),integer:f,negative:i}}function tpe(e){var t=e.decimal,n=e.digits,r=e.exponent,a=e.integer,o=e.negative;if(n==="0")return"0";var i=a.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,c=i||-l,u=c+r,d="";return u<=0?d="0.".concat("0".repeat(-u)).concat(n):u>=n.length?d="".concat(n).concat("0".repeat(u-n.length)):d="".concat(n.slice(0,u),".").concat(n.slice(u)),"".concat(o?"-":"").concat(d)}function dK(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function Ec(e){var t=String(e);return y1(e)?dK(uK(t)):t.includes(".")&&E4(t)?t.length-t.indexOf(".")-1:0}function C1(e){var t=String(e);if(y1(e)){if(e>Number.MAX_SAFE_INTEGER)return String(ZP()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e100?tpe(n):e.toFixed(r)}return Kc(t).fullStr}function E4(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var npe=(function(){function e(t){if(or(this,e),z(this,"origin",""),z(this,"negative",void 0),z(this,"integer",void 0),z(this,"decimal",void 0),z(this,"decimalLen",void 0),z(this,"empty",void 0),z(this,"nan",void 0),cK(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(y1(n)&&(n=Number(n)),n=typeof n=="string"?n:C1(n),E4(n)){var r=Kc(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var o=a[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return ir(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,a){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(o),l=n.alignDecimal(o),c=r(i,l).toString(),u=a(o),d=Kc(c),f=d.negativeStr,m=d.trimStr,g="".concat(f).concat(m.padStart(u+1,"0"));return new e("".concat(g.slice(0,-u),".").concat(g.slice(-u)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(a,o){return a+o},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,o){return a*o},function(a){return a*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Kc("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),rpe=(function(){function e(t){if(or(this,e),z(this,"origin",""),z(this,"number",void 0),z(this,"empty",void 0),cK(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return ir(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;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 n?this.isInvalidate()?"":y1(this.number)&&Ec(this.number)>100?String(this.number):C1(this.number):this.origin}}]),e})();function Si(e){return ZP()?new npe(e):new rpe(e)}function X0(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Kc(e),o=a.negativeStr,i=a.integerStr,l=a.decimalStr,c="".concat(t).concat(l),u="".concat(o).concat(i);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=Si(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d));return X0(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function ape(e){return!!(e.addonBefore||e.addonAfter)}function ope(e){return!!(e.prefix||e.suffix||e.allowClear)}function E5(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Yb(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=E5(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=E5(t,e,r),n(a);return}n(a)}}function P4(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var O4=ee.forwardRef(function(e,t){var n,r,a,o=e.inputElement,i=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,g=e.style,h=e.disabled,b=e.readOnly,p=e.focused,S=e.triggerFocus,C=e.allowClear,x=e.value,w=e.handleReset,$=e.hidden,E=e.classes,R=e.classNames,I=e.dataAttrs,O=e.styles,T=e.components,N=e.onClear,A=i??o,k=(T==null?void 0:T.affixWrapper)||"span",j=(T==null?void 0:T.groupWrapper)||"span",D=(T==null?void 0:T.wrapper)||"span",F=(T==null?void 0:T.groupAddon)||"span",L=s.useRef(null),B=function(de){var ie;(ie=L.current)!==null&&ie!==void 0&&ie.contains(de.target)&&(S==null||S())},K=ope(e),W=s.cloneElement(A,{value:x,className:oe((n=A.props)===null||n===void 0?void 0:n.className,!K&&(R==null?void 0:R.variant))||null}),V=s.useRef(null);if(ee.useImperativeHandle(t,function(){return{nativeElement:V.current||L.current}}),K){var q=null;if(C){var U=!h&&!b&&x,G="".concat(l,"-clear-icon"),Y=it(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";q=ee.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){w==null||w(de),N==null||N()},onMouseDown:function(de){return de.preventDefault()},className:oe(G,z(z({},"".concat(G,"-hidden"),!U),"".concat(G,"-has-suffix"),!!u))},Y)}var J="".concat(l,"-affix-wrapper"),Q=oe(J,z(z(z(z(z({},"".concat(l,"-disabled"),h),"".concat(J,"-disabled"),h),"".concat(J,"-focused"),p),"".concat(J,"-readonly"),b),"".concat(J,"-input-with-clear-btn"),u&&C&&x),E==null?void 0:E.affixWrapper,R==null?void 0:R.affixWrapper,R==null?void 0:R.variant),Z=(u||C)&&ee.createElement("span",{className:oe("".concat(l,"-suffix"),R==null?void 0:R.suffix),style:O==null?void 0:O.suffix},q,u);W=ee.createElement(k,Me({className:Q,style:O==null?void 0:O.affixWrapper,onClick:B},I==null?void 0:I.affixWrapper,{ref:L}),c&&ee.createElement("span",{className:oe("".concat(l,"-prefix"),R==null?void 0:R.prefix),style:O==null?void 0:O.prefix},c),W,Z)}if(ape(e)){var ne="".concat(l,"-group"),ae="".concat(ne,"-addon"),le="".concat(ne,"-wrapper"),re=oe("".concat(l,"-wrapper"),ne,E==null?void 0:E.wrapper,R==null?void 0:R.wrapper),fe=oe(le,z({},"".concat(le,"-disabled"),h),E==null?void 0:E.group,R==null?void 0:R.groupWrapper);W=ee.createElement(j,{className:fe,ref:V},ee.createElement(D,{className:re},d&&ee.createElement(F,{className:ae},d),W,f&&ee.createElement(F,{className:ae},f)))}return ee.cloneElement(W,{className:oe((r=W.props)===null||r===void 0?void 0:r.className,m)||null,style:P(P({},(a=W.props)===null||a===void 0?void 0:a.style),g),hidden:$})}),ipe=["show"];function fK(e,t){return s.useMemo(function(){var n={};t&&(n.show=it(t)==="object"&&t.formatter?t.formatter:!!t),n=P(P({},n),e);var r=n,a=r.show,o=Ue(r,ipe);return P(P({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var lpe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],spe=s.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,g=e.className,h=e.maxLength,b=e.suffix,p=e.showCount,S=e.count,C=e.type,x=C===void 0?"text":C,w=e.classes,$=e.classNames,E=e.styles,R=e.onCompositionStart,I=e.onCompositionEnd,O=Ue(e,lpe),T=s.useState(!1),N=ce(T,2),A=N[0],k=N[1],j=s.useRef(!1),D=s.useRef(!1),F=s.useRef(null),L=s.useRef(null),B=function(ye){F.current&&P4(F.current,ye)},K=_t(e.defaultValue,{value:e.value}),W=ce(K,2),V=W[0],q=W[1],U=V==null?"":String(V),G=s.useState(null),Y=ce(G,2),J=Y[0],Q=Y[1],Z=fK(S,p),ne=Z.max||h,ae=Z.strategy(U),le=!!ne&&ae>ne;s.useImperativeHandle(t,function(){var ge;return{focus:B,blur:function(){var xe;(xe=F.current)===null||xe===void 0||xe.blur()},setSelectionRange:function(xe,$e,He){var Te;(Te=F.current)===null||Te===void 0||Te.setSelectionRange(xe,$e,He)},select:function(){var xe;(xe=F.current)===null||xe===void 0||xe.select()},input:F.current,nativeElement:((ge=L.current)===null||ge===void 0?void 0:ge.nativeElement)||F.current}}),s.useEffect(function(){D.current&&(D.current=!1),k(function(ge){return ge&&f?!1:ge})},[f]);var re=function(ye,xe,$e){var He=xe;if(!j.current&&Z.exceedFormatter&&Z.max&&Z.strategy(xe)>Z.max){if(He=Z.exceedFormatter(xe,{max:Z.max}),xe!==He){var Te,Re;Q([((Te=F.current)===null||Te===void 0?void 0:Te.selectionStart)||0,((Re=F.current)===null||Re===void 0?void 0:Re.selectionEnd)||0])}}else if($e.source==="compositionEnd")return;q(He),F.current&&Yb(F.current,ye,r,He)};s.useEffect(function(){if(J){var ge;(ge=F.current)===null||ge===void 0||ge.setSelectionRange.apply(ge,ke(J))}},[J]);var fe=function(ye){re(ye,ye.target.value,{source:"change"})},ue=function(ye){j.current=!1,re(ye,ye.currentTarget.value,{source:"compositionEnd"}),I==null||I(ye)},de=function(ye){i&&ye.key==="Enter"&&!D.current&&(D.current=!0,i(ye)),l==null||l(ye)},ie=function(ye){ye.key==="Enter"&&(D.current=!1),c==null||c(ye)},se=function(ye){k(!0),a==null||a(ye)},ve=function(ye){D.current&&(D.current=!1),k(!1),o==null||o(ye)},he=function(ye){q(""),B(),F.current&&Yb(F.current,ye,r)},Ce=le&&"".concat(d,"-out-of-range"),pe=function(){var ye=nn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ee.createElement("input",Me({autoComplete:n},ye,{onChange:fe,onFocus:se,onBlur:ve,onKeyDown:de,onKeyUp:ie,className:oe(d,z({},"".concat(d,"-disabled"),f),$==null?void 0:$.input),style:E==null?void 0:E.input,ref:F,size:m,type:x,onCompositionStart:function($e){j.current=!0,R==null||R($e)},onCompositionEnd:ue}))},Se=function(){var ye=Number(ne)>0;if(b||Z.show){var xe=Z.showFormatter?Z.showFormatter({value:U,count:ae,maxLength:ne}):"".concat(ae).concat(ye?" / ".concat(ne):"");return ee.createElement(ee.Fragment,null,Z.show&&ee.createElement("span",{className:oe("".concat(d,"-show-count-suffix"),z({},"".concat(d,"-show-count-has-suffix"),!!b),$==null?void 0:$.count),style:P({},E==null?void 0:E.count)},xe),b)}return null};return ee.createElement(O4,Me({},O,{prefixCls:d,className:oe(g,Ce),handleReset:he,value:U,focused:A,triggerFocus:B,suffix:Se(),disabled:f,classes:w,classNames:$,styles:E,ref:L}),pe())});function cpe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function upe(e,t){var n=s.useRef(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,l=e.value,c=l.substring(0,o),u=l.substring(i);n.current={start:o,end:i,value:l,beforeTxt:c,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,l=i.beforeTxt,c=i.afterTxt,u=i.start,d=o.length;if(o.startsWith(l))d=l.length;else if(o.endsWith(c))d=o.length-n.current.afterTxt.length;else{var f=l[u-1],m=o.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(g){Wn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,a]}var dpe=function(){var t=s.useState(!1),n=ce(t,2),r=n[0],a=n[1];return dn(function(){a(Jy())},[]),r},fpe=200,vpe=600;function mpe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,l=s.useRef(),c=s.useRef([]),u=s.useRef();u.current=i;var d=function(){clearTimeout(l.current)},f=function(x,w){x.preventDefault(),d(),u.current(w);function $(){u.current(w),l.current=setTimeout($,fpe)}l.current=setTimeout($,vpe)};s.useEffect(function(){return function(){d(),c.current.forEach(function(C){return on.cancel(C)})}},[]);var m=dpe();if(m)return null;var g="".concat(t,"-handler"),h=oe(g,"".concat(g,"-up"),z({},"".concat(g,"-up-disabled"),a)),b=oe(g,"".concat(g,"-down"),z({},"".concat(g,"-down-disabled"),o)),p=function(){return c.current.push(on(d))},S={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return s.createElement("div",{className:"".concat(g,"-wrap")},s.createElement("span",Me({},S,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||s.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),s.createElement("span",Me({},S,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:b}),r||s.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function P5(e){var t=typeof e=="number"?C1(e):Kc(e).fullStr,n=t.includes(".");return n?Kc(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const gpe=(function(){var e=s.useRef(0),t=function(){on.cancel(e.current)};return s.useEffect(function(){return t},[]),function(n){t(),e.current=on(function(){n()})}});var ppe=["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"],hpe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],O5=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},I5=function(t){var n=Si(t);return n.isInvalidate()?null:n},bpe=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,l=e.step,c=l===void 0?1:l,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,g=e.upHandler,h=e.downHandler,b=e.keyboard,p=e.changeOnWheel,S=p===void 0?!1:p,C=e.controls,x=C===void 0?!0:C;e.classNames;var w=e.stringMode,$=e.parser,E=e.formatter,R=e.precision,I=e.decimalSeparator,O=e.onChange,T=e.onInput,N=e.onPressEnter,A=e.onStep,k=e.changeOnBlur,j=k===void 0?!0:k,D=e.domRef,F=Ue(e,ppe),L="".concat(n,"-input"),B=s.useRef(null),K=s.useState(!1),W=ce(K,2),V=W[0],q=W[1],U=s.useRef(!1),G=s.useRef(!1),Y=s.useRef(!1),J=s.useState(function(){return Si(d??u)}),Q=ce(J,2),Z=Q[0],ne=Q[1];function ae(Ke){d===void 0&&ne(Ke)}var le=s.useCallback(function(Ke,et){if(!et)return R>=0?R:Math.max(Ec(Ke),Ec(c))},[R,c]),re=s.useCallback(function(Ke){var et=String(Ke);if($)return $(et);var st=et;return I&&(st=st.replace(I,".")),st.replace(/[^\w.-]+/g,"")},[$,I]),fe=s.useRef(""),ue=s.useCallback(function(Ke,et){if(E)return E(Ke,{userTyping:et,input:String(fe.current)});var st=typeof Ke=="number"?C1(Ke):Ke;if(!et){var Ze=le(st,et);if(E4(st)&&(I||Ze>=0)){var vt=I||".";st=X0(st,vt,Ze)}}return st},[E,le,I]),de=s.useState(function(){var Ke=u??d;return Z.isInvalidate()&&["string","number"].includes(it(Ke))?Number.isNaN(Ke)?"":Ke:ue(Z.toString(),!1)}),ie=ce(de,2),se=ie[0],ve=ie[1];fe.current=se;function he(Ke,et){ve(ue(Ke.isInvalidate()?Ke.toString(!1):Ke.toString(!et),et))}var Ce=s.useMemo(function(){return I5(i)},[i,R]),pe=s.useMemo(function(){return I5(o)},[o,R]),Se=s.useMemo(function(){return!Ce||!Z||Z.isInvalidate()?!1:Ce.lessEquals(Z)},[Ce,Z]),ge=s.useMemo(function(){return!pe||!Z||Z.isInvalidate()?!1:Z.lessEquals(pe)},[pe,Z]),ye=upe(B.current,V),xe=ce(ye,2),$e=xe[0],He=xe[1],Te=function(et){return Ce&&!et.lessEquals(Ce)?Ce:pe&&!pe.lessEquals(et)?pe:null},Re=function(et){return!Te(et)},Fe=function(et,st){var Ze=et,vt=Re(Ze)||Ze.isEmpty();if(!Ze.isEmpty()&&!st&&(Ze=Te(Ze)||Ze,vt=!0),!m&&!f&&vt){var Ot=Ze.toString(),xt=le(Ot,st);return xt>=0&&(Ze=Si(X0(Ot,".",xt)),Re(Ze)||(Ze=Si(X0(Ot,".",xt,!0)))),Ze.equals(Z)||(ae(Ze),O==null||O(Ze.isEmpty()?null:O5(w,Ze)),d===void 0&&he(Ze,st)),Ze}return Z},je=gpe(),Ee=function Ke(et){if($e(),fe.current=et,ve(et),!G.current){var st=re(et),Ze=Si(st);Ze.isNaN()||Fe(Ze,!0)}T==null||T(et),je(function(){var vt=et;$||(vt=et.replace(/。/g,".")),vt!==et&&Ke(vt)})},Le=function(){G.current=!0},Pe=function(){G.current=!1,Ee(B.current.value)},ze=function(et){Ee(et.target.value)},Oe=function(et){var st;if(!(et&&Se||!et&&ge)){U.current=!1;var Ze=Si(Y.current?P5(c):c);et||(Ze=Ze.negate());var vt=(Z||Si(0)).add(Ze.toString()),Ot=Fe(vt,!1);A==null||A(O5(w,Ot),{offset:Y.current?P5(c):c,type:et?"up":"down"}),(st=B.current)===null||st===void 0||st.focus()}},we=function(et){var st=Si(re(se)),Ze;st.isNaN()?Ze=Fe(Z,et):Ze=Fe(st,et),d!==void 0?he(Z,!1):Ze.isNaN()||he(Ze,!1)},_e=function(){U.current=!0},Be=function(et){var st=et.key,Ze=et.shiftKey;U.current=!0,Y.current=Ze,st==="Enter"&&(G.current||(U.current=!1),we(!1),N==null||N(et)),b!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(st)&&(Oe(st==="Up"||st==="ArrowUp"),et.preventDefault())},Qe=function(){U.current=!1,Y.current=!1};s.useEffect(function(){if(S&&V){var Ke=function(Ze){Oe(Ze.deltaY<0),Ze.preventDefault()},et=B.current;if(et)return et.addEventListener("wheel",Ke,{passive:!1}),function(){return et.removeEventListener("wheel",Ke)}}});var lt=function(){j&&we(!1),q(!1),U.current=!1};return Hc(function(){Z.isInvalidate()||he(Z,!1)},[R,E]),Hc(function(){var Ke=Si(d);ne(Ke);var et=Si(re(se));(!Ke.equals(et)||!U.current||E)&&he(Ke,U.current)},[d]),Hc(function(){E&&He()},[se]),s.createElement("div",{ref:D,className:oe(n,r,z(z(z(z(z({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),Z.isNaN()),"".concat(n,"-out-of-range"),!Z.isInvalidate()&&!Re(Z))),style:a,onFocus:function(){q(!0)},onBlur:lt,onKeyDown:Be,onKeyUp:Qe,onCompositionStart:Le,onCompositionEnd:Pe,onBeforeInput:_e},x&&s.createElement(mpe,{prefixCls:n,upNode:g,downNode:h,upDisabled:Se,downDisabled:ge,onStep:Oe}),s.createElement("div",{className:"".concat(L,"-wrap")},s.createElement("input",Me({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":Z.isInvalidate()?null:Z.toString(),step:c},F,{ref:Fr(B,t),className:L,value:se,onChange:ze,disabled:f,readOnly:m}))))}),ype=s.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,g=Ue(e,hpe),h=s.useRef(null),b=s.useRef(null),p=s.useRef(null),S=function(x){p.current&&P4(p.current,x)};return s.useImperativeHandle(t,function(){return cpe(p.current,{focus:S,nativeElement:h.current.nativeElement||b.current})}),s.createElement(O4,{className:f,triggerFocus:S,prefixCls:o,value:i,disabled:n,style:r,prefix:l,suffix:c,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},s.createElement(bpe,Me({prefixCls:o,disabled:n,ref:p,domRef:b,className:m==null?void 0:m.input},g)))});const Cpe=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},mu(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new gn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},R5=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},Spe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:l,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:g,colorIcon:h,motionDurationMid:b,handleHoverColor:p,handleOpacity:S,paddingInline:C,paddingBlock:x,handleBg:w,handleActiveBg:$,colorTextDisabled:E,borderRadiusSM:R,borderRadiusLG:I,controlWidth:O,handleBorderColor:T,filledHandleBg:N,lineHeightLG:A,calc:k}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),$g(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:a}),h4(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${me(n)} ${r} ${T}`}}})),y4(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${me(n)} ${r} ${T}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),C4(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${me(n)} ${r} ${T}`}}})),b4(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:A,borderRadius:I,[`input${t}-input`]:{height:k(l).sub(k(n).mul(2)).equal(),padding:`${me(m)} ${me(g)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:R,[`input${t}-input`]:{height:k(c).sub(k(n).mul(2)).equal(),padding:`${me(f)} ${me(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},wn(e)),SW(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:I,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:R}}},pW(e)),bW(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({},wn(e)),{width:"100%",padding:`${me(x)} ${me(C)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),S4(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:S,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` +`;return[E1(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},ri),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},Tge=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},vK(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},tc(e)]},mK=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},gK=dn("Cascader",Tge,mK,{unitless:{optionSelectedFontWeight:!0}}),Nge=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[vK(e),{display:"inline-flex",border:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},_ge=tz(["Cascader","Panel"],Nge,mK);function jge(e){const{prefixCls:t,className:n,multiple:r,rootClassName:a,notFoundContent:o,direction:i,expandIcon:l,disabled:c}=e,u=s.useContext(Br),d=c??u,[f,m,g,h]=cK(t,i),b=Yn(m),[p,S,C]=gK(m,b);_ge(m);const x=g==="rtl",[w,$]=dK(f,x,l),E=o||(h==null?void 0:h("Cascader"))||s.createElement(Cg,{componentName:"Cascader"}),R=uK(m,r);return p(s.createElement(sK,Object.assign({},e,{checkable:R,prefixCls:m,className:oe(n,S,a,C,b),notFoundContent:E,direction:g,expandIcon:w,loadingIcon:$,disabled:d})))}var Fge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ac===0?[l]:[].concat(ke(i),[t,l]),[]),a=[];let o=0;return r.forEach((i,l)=>{const c=o+i.length;let u=e.slice(o,c);o=c,l%2===1&&(u=s.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${l}`},u)),a.push(u)}),a}const Lge=(e,t,n,r)=>{const a=[],o=e.toLowerCase();return t.forEach((i,l)=>{l!==0&&a.push(" / ");let c=i[r.label];const u=typeof c;(u==="string"||u==="number")&&(c=Age(String(c),o,n)),a.push(c)}),a},Tf=s.forwardRef((e,t)=>{var n,r,a,o;const{prefixCls:i,size:l,disabled:c,className:u,rootClassName:d,multiple:f,bordered:m=!0,transitionName:g,choiceTransitionName:h="",popupClassName:b,dropdownClassName:p,expandIcon:S,placement:C,showSearch:x,allowClear:w=!0,notFoundContent:$,direction:E,getPopupContainer:R,status:I,showArrow:O,builtinPlacements:T,style:_,variant:k,dropdownRender:A,onDropdownVisibleChange:j,dropdownMenuColumnStyle:D,popupRender:F,dropdownStyle:L,popupMenuColumnStyle:B,onOpenChange:K,styles:W,classNames:V}=e,q=Fge(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),U=nn(q,["suffixIcon"]),{getPrefixCls:G,getPopupContainer:Y,className:J,style:Q,classNames:Z,styles:ne}=sr("cascader"),{popupOverflow:ae}=s.useContext(jt),{status:le,hasFeedback:re,isFormItemInput:fe,feedbackIcon:ue}=s.useContext(Hr),de=Ul(le,I),[ie,se,ve,he]=cK(i,E),Ce=ve==="rtl",pe=G(),Se=Yn(ie),[ge,ye,xe]=s4(ie,Se),$e=Yn(se),[He]=gK(se,$e),{compactSize:Te,compactItemClassnames:Re}=Ao(ie,E),[Fe,je]=Gl("cascader",k,m),Ee=$||(he==null?void 0:he("Cascader"))||s.createElement(Cg,{componentName:"Cascader"}),Le=oe(((n=V==null?void 0:V.popup)===null||n===void 0?void 0:n.root)||((r=Z.popup)===null||r===void 0?void 0:r.root)||b||p,`${se}-dropdown`,{[`${se}-dropdown-rtl`]:ve==="rtl"},d,Se,Z.root,V==null?void 0:V.root,$e,ye,xe),Pe=c4(F||A),ze=B||D,Oe=K||j,we=((a=W==null?void 0:W.popup)===null||a===void 0?void 0:a.root)||((o=ne.popup)===null||o===void 0?void 0:o.root)||L,_e=s.useMemo(()=>{if(!x)return x;let Ye={render:Lge};return typeof x=="object"&&(Ye=Object.assign(Object.assign({},Ye),x)),Ye},[x]),Be=Er(Ye=>{var Ne;return(Ne=l??Te)!==null&&Ne!==void 0?Ne:Ye}),Qe=s.useContext(Br),lt=c??Qe,[Ke,et]=dK(ie,Ce,S),st=uK(se,f),Ze=u4(e.suffixIcon,O),{suffixIcon:vt,removeIcon:Ot,clearIcon:xt}=c1(Object.assign(Object.assign({},e),{hasFeedback:re,feedbackIcon:ue,showSuffixIcon:Ze,multiple:f,prefixCls:ie,componentName:"Cascader"})),mt=s.useMemo(()=>C!==void 0?C:Ce?"bottomRight":"bottomLeft",[C,Ce]),yt=w===!0?{clearIcon:xt}:w,[bt]=fi("SelectLike",we==null?void 0:we.zIndex),tt=s.createElement(Og,Object.assign({prefixCls:ie,className:oe(!i&&se,{[`${ie}-lg`]:Be==="large",[`${ie}-sm`]:Be==="small",[`${ie}-rtl`]:Ce,[`${ie}-${Fe}`]:je,[`${ie}-in-form-item`]:fe},Ai(ie,de,re),Re,J,u,d,V==null?void 0:V.root,Z.root,Se,$e,ye,xe),disabled:lt,style:Object.assign(Object.assign(Object.assign(Object.assign({},ne.root),W==null?void 0:W.root),Q),_)},U,{builtinPlacements:l4(T,ae),direction:ve,placement:mt,notFoundContent:Ee,allowClear:yt,showSearch:_e,expandIcon:Ke,suffixIcon:vt,removeIcon:Ot,loadingIcon:et,checkable:st,dropdownClassName:Le,dropdownPrefixCls:i||se,dropdownStyle:Object.assign(Object.assign({},we),{zIndex:bt}),dropdownRender:Pe,dropdownMenuColumnStyle:ze,onOpenChange:Oe,choiceTransitionName:pa(pe,"",h),transitionName:pa(pe,"slide-up",g),getPopupContainer:R||Y,ref:t}));return He(ge(tt))}),Bge=nc(Tf,"dropdownAlign",e=>nn(e,["visible"]));Tf.SHOW_PARENT=kge;Tf.SHOW_CHILD=Dge;Tf.Panel=jge;Tf._InternalPanelDoNotUseOrYouWillBeFired=Bge;const pK=ee.createContext(null);var zge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:o,children:i,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,g=zge(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:b,checkbox:p}=s.useContext(jt),S=s.useContext(pK),{isFormItemInput:C}=s.useContext(Hr),x=s.useContext(Br),w=(n=(S==null?void 0:S.disabled)||m)!==null&&n!==void 0?n:x,$=s.useRef(g.value),E=s.useRef(null),R=Dr(t,E);s.useEffect(()=>{S==null||S.registerValue(g.value)},[]),s.useEffect(()=>{if(!f)return g.value!==$.current&&(S==null||S.cancelValue($.current),S==null||S.registerValue(g.value),$.current=g.value),()=>S==null?void 0:S.cancelValue(g.value)},[g.value]),s.useEffect(()=>{var B;!((B=E.current)===null||B===void 0)&&B.input&&(E.current.input.indeterminate=l)},[l]);const I=h("checkbox",r),O=Yn(I),[T,_,k]=fK(I,O),A=Object.assign({},g);S&&!f&&(A.onChange=(...B)=>{g.onChange&&g.onChange.apply(g,B),S.toggleOption&&S.toggleOption({label:i,value:g.value})},A.name=S.name,A.checked=S.value.includes(g.value));const j=oe(`${I}-wrapper`,{[`${I}-rtl`]:b==="rtl",[`${I}-wrapper-checked`]:A.checked,[`${I}-wrapper-disabled`]:w,[`${I}-wrapper-in-form-item`]:C},p==null?void 0:p.className,a,o,k,O,_),D=oe({[`${I}-indeterminate`]:l},Hy,_),[F,L]=RW(A.onClick);return T(s.createElement(vg,{component:"Checkbox",disabled:w},s.createElement("label",{className:j,style:Object.assign(Object.assign({},p==null?void 0:p.style),c),onMouseEnter:u,onMouseLeave:d,onClick:F},s.createElement(IW,Object.assign({},A,{onClick:L,prefixCls:I,className:D,disabled:w,ref:R})),i!=null&&s.createElement("span",{className:`${I}-label`},i))))},hK=s.forwardRef(Hge);var Vge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:i,rootClassName:l,style:c,onChange:u}=e,d=Vge(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=s.useContext(jt),[g,h]=s.useState(d.value||n||[]),[b,p]=s.useState([]);s.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const S=s.useMemo(()=>a.map(D=>typeof D=="string"||typeof D=="number"?{label:D,value:D}:D),[a]),C=D=>{p(F=>F.filter(L=>L!==D))},x=D=>{p(F=>[].concat(ke(F),[D]))},w=D=>{const F=g.indexOf(D.value),L=ke(g);F===-1?L.push(D.value):L.splice(F,1),"value"in d||h(L),u==null||u(L.filter(B=>b.includes(B)).sort((B,K)=>{const W=S.findIndex(q=>q.value===B),V=S.findIndex(q=>q.value===K);return W-V}))},$=f("checkbox",o),E=`${$}-group`,R=Yn($),[I,O,T]=fK($,R),_=nn(d,["value","disabled"]),k=a.length?S.map(D=>s.createElement(hK,{prefixCls:$,key:D.value.toString(),disabled:"disabled"in D?D.disabled:d.disabled,value:D.value,checked:g.includes(D.value),onChange:D.onChange,className:oe(`${E}-item`,D.className),style:D.style,title:D.title,id:D.id,required:D.required},D.label)):r,A=s.useMemo(()=>({toggleOption:w,value:g,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:C}),[w,g,d.disabled,d.name,x,C]),j=oe(E,{[`${E}-rtl`]:m==="rtl"},i,l,T,R,O);return I(s.createElement("div",Object.assign({className:j,style:c},_,{ref:t}),s.createElement(pK.Provider,{value:A},k)))}),Ys=hK;Ys.Group=Wge;Ys.__ANT_CHECKBOX=!0;const bK=s.createContext({});var Kge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=s.useContext(jt),{gutter:a,wrap:o}=s.useContext(bK),{prefixCls:i,span:l,order:c,offset:u,push:d,pull:f,className:m,children:g,flex:h,style:b}=e,p=Kge(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",i),[C,x,w]=Qie(S),$={};let E={};qge.forEach(O=>{let T={};const _=e[O];typeof _=="number"?T.span=_:typeof _=="object"&&(T=_||{}),delete p[O],E=Object.assign(Object.assign({},E),{[`${S}-${O}-${T.span}`]:T.span!==void 0,[`${S}-${O}-order-${T.order}`]:T.order||T.order===0,[`${S}-${O}-offset-${T.offset}`]:T.offset||T.offset===0,[`${S}-${O}-push-${T.push}`]:T.push||T.push===0,[`${S}-${O}-pull-${T.pull}`]:T.pull||T.pull===0,[`${S}-rtl`]:r==="rtl"}),T.flex&&(E[`${S}-${O}-flex`]=!0,$[`--${S}-${O}-flex`]=j5(T.flex))});const R=oe(S,{[`${S}-${l}`]:l!==void 0,[`${S}-order-${c}`]:c,[`${S}-offset-${u}`]:u,[`${S}-push-${d}`]:d,[`${S}-pull-${f}`]:f},m,E,x,w),I={};if(a!=null&&a[0]){const O=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;I.paddingLeft=O,I.paddingRight=O}return h&&(I.flex=j5(h),o===!1&&!I.minWidth&&(I.minWidth=0)),C(s.createElement("div",Object.assign({},p,{style:Object.assign(Object.assign(Object.assign({},I),b),$),className:R,ref:t}),g))});function Uge(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((o,i)=>{if(typeof o=="object"&&o!==null)for(let l=0;l{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{a()},[JSON.stringify(e),t]),n}const Ii=s.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:i,children:l,gutter:c=0,wrap:u}=e,d=Gge(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=s.useContext(jt),g=du(!0,null),h=F5(a,g),b=F5(r,g),p=f("row",n),[S,C,x]=Xie(p),w=Uge(c,g),$=oe(p,{[`${p}-no-wrap`]:u===!1,[`${p}-${b}`]:b,[`${p}-${h}`]:h,[`${p}-rtl`]:m==="rtl"},o,C,x),E={};if(w!=null&&w[0]){const T=typeof w[0]=="number"?`${w[0]/-2}px`:`calc(${w[0]} / -2)`;E.marginLeft=T,E.marginRight=T}const[R,I]=w;E.rowGap=I;const O=s.useMemo(()=>({gutter:[R,I],wrap:u}),[R,I,u]);return S(s.createElement(bK.Provider,{value:O},s.createElement("div",Object.assign({},d,{className:$,style:Object.assign(Object.assign({},E),i),ref:t}),l)))}),Yge=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Xge=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:i,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{borderBlockStart:`${me(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${me(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${me(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${me(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${me(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${me(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:r,borderStyle:"dotted",borderWidth:`${me(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:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Qge=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Jge=dn("Divider",e=>{const t=en(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Xge(t),Yge(t)]},Qge,{unitless:{orientationMargin:!0}});var Zge=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,className:r,style:a}=sr("divider"),{prefixCls:o,type:i="horizontal",orientation:l="center",orientationMargin:c,className:u,rootClassName:d,children:f,dashed:m,variant:g="solid",plain:h,style:b,size:p}=e,S=Zge(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),C=t("divider",o),[x,w,$]=Jge(C),E=Er(p),R=epe[E],I=!!f,O=s.useMemo(()=>l==="left"?n==="rtl"?"end":"start":l==="right"?n==="rtl"?"start":"end":l,[n,l]),T=O==="start"&&c!=null,_=O==="end"&&c!=null,k=oe(C,r,w,$,`${C}-${i}`,{[`${C}-with-text`]:I,[`${C}-with-text-${O}`]:I,[`${C}-dashed`]:!!m,[`${C}-${g}`]:g!=="solid",[`${C}-plain`]:!!h,[`${C}-rtl`]:n==="rtl",[`${C}-no-default-orientation-margin-start`]:T,[`${C}-no-default-orientation-margin-end`]:_,[`${C}-${R}`]:!!R},u,d),A=s.useMemo(()=>typeof c=="number"?c:/^\d+$/.test(c)?Number(c):c,[c]),j={marginInlineStart:T?A:void 0,marginInlineEnd:_?A:void 0};return x(s.createElement("div",Object.assign({className:k,style:Object.assign(Object.assign({},a),b)},S,{role:"separator"}),f&&i!=="vertical"&&s.createElement("span",{className:`${C}-inner-text`,style:j},f)))};var D5=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},Ji=function(t){return t!==void 0?"".concat(t,"px"):void 0};function tpe(e){var t=e.prefixCls,n=e.containerRef,r=e.value,a=e.getValueIndex,o=e.motionName,i=e.onMotionStart,l=e.onMotionEnd,c=e.direction,u=e.vertical,d=u===void 0?!1:u,f=s.useRef(null),m=s.useState(r),g=ce(m,2),h=g[0],b=g[1],p=function(D){var F,L=a(D),B=(F=n.current)===null||F===void 0?void 0:F.querySelectorAll(".".concat(t,"-item"))[L];return(B==null?void 0:B.offsetParent)&&B},S=s.useState(null),C=ce(S,2),x=C[0],w=C[1],$=s.useState(null),E=ce($,2),R=E[0],I=E[1];fn(function(){if(h!==r){var j=p(h),D=p(r),F=D5(j,d),L=D5(D,d);b(r),w(F),I(L),j&&D?i():l()}},[r]);var O=s.useMemo(function(){if(d){var j;return Ji((j=x==null?void 0:x.top)!==null&&j!==void 0?j:0)}return Ji(c==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[d,c,x]),T=s.useMemo(function(){if(d){var j;return Ji((j=R==null?void 0:R.top)!==null&&j!==void 0?j:0)}return Ji(c==="rtl"?-(R==null?void 0:R.right):R==null?void 0:R.left)},[d,c,R]),_=function(){return d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},k=function(){return d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},A=function(){w(null),I(null),l()};return!x||!R?null:s.createElement(ga,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:_,onAppearActive:k,onVisibleChanged:A},function(j,D){var F=j.className,L=j.style,B=P(P({},L),{},{"--thumb-start-left":O,"--thumb-start-width":Ji(x==null?void 0:x.width),"--thumb-active-left":T,"--thumb-active-width":Ji(R==null?void 0:R.width),"--thumb-start-top":O,"--thumb-start-height":Ji(x==null?void 0:x.height),"--thumb-active-top":T,"--thumb-active-height":Ji(R==null?void 0:R.height)}),K={ref:Dr(f,D),style:B,className:oe("".concat(t,"-thumb"),F)};return s.createElement("div",K)})}var npe=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function rpe(e){if(typeof e.title<"u")return e.title;if(it(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function ape(e){return e.map(function(t){if(it(t)==="object"&&t!==null){var n=rpe(t);return P(P({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var ope=function(t){var n=t.prefixCls,r=t.className,a=t.disabled,o=t.checked,i=t.label,l=t.title,c=t.value,u=t.name,d=t.onChange,f=t.onFocus,m=t.onBlur,g=t.onKeyDown,h=t.onKeyUp,b=t.onMouseDown,p=function(C){a||d(C,c)};return s.createElement("label",{className:oe(r,z({},"".concat(n,"-item-disabled"),a)),onMouseDown:b},s.createElement("input",{name:u,className:"".concat(n,"-item-input"),type:"radio",disabled:a,checked:o,onChange:p,onFocus:f,onBlur:m,onKeyDown:g,onKeyUp:h}),s.createElement("div",{className:"".concat(n,"-item-label"),title:l},i))},ipe=s.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-segmented":r,o=e.direction,i=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,d=e.defaultValue,f=e.value,m=e.name,g=e.onChange,h=e.className,b=h===void 0?"":h,p=e.motionName,S=p===void 0?"thumb-motion":p,C=Ue(e,npe),x=s.useRef(null),w=s.useMemo(function(){return Dr(x,t)},[x,t]),$=s.useMemo(function(){return ape(c)},[c]),E=Nt((n=$[0])===null||n===void 0?void 0:n.value,{value:f,defaultValue:d}),R=ce(E,2),I=R[0],O=R[1],T=s.useState(!1),_=ce(T,2),k=_[0],A=_[1],j=function(le,re){O(re),g==null||g(re)},D=nn(C,["children"]),F=s.useState(!1),L=ce(F,2),B=L[0],K=L[1],W=s.useState(!1),V=ce(W,2),q=V[0],U=V[1],G=function(){U(!0)},Y=function(){U(!1)},J=function(){K(!1)},Q=function(le){le.key==="Tab"&&K(!0)},Z=function(le){var re=$.findIndex(function(ie){return ie.value===I}),fe=$.length,ue=(re+le+fe)%fe,de=$[ue];de&&(O(de.value),g==null||g(de.value))},ne=function(le){switch(le.key){case"ArrowLeft":case"ArrowUp":Z(-1);break;case"ArrowRight":case"ArrowDown":Z(1);break}};return s.createElement("div",Me({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0,"aria-orientation":i?"vertical":"horizontal"},D,{className:oe(a,z(z(z({},"".concat(a,"-rtl"),o==="rtl"),"".concat(a,"-disabled"),u),"".concat(a,"-vertical"),i),b),ref:w}),s.createElement("div",{className:"".concat(a,"-group")},s.createElement(tpe,{vertical:i,prefixCls:a,value:I,containerRef:x,motionName:"".concat(a,"-").concat(S),direction:o,getValueIndex:function(le){return $.findIndex(function(re){return re.value===le})},onMotionStart:function(){A(!0)},onMotionEnd:function(){A(!1)}}),$.map(function(ae){return s.createElement(ope,Me({},ae,{name:m,key:ae.value,prefixCls:a,className:oe(ae.className,"".concat(a,"-item"),z(z({},"".concat(a,"-item-selected"),ae.value===I&&!k),"".concat(a,"-item-focused"),q&&B&&ae.value===I)),checked:ae.value===I,onChange:j,onFocus:G,onBlur:Y,onKeyDown:ne,onKeyUp:Q,onMouseDown:J,disabled:!!u||!!ae.disabled}))})))}),lpe=ipe;function k5(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function A5(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const spe=Object.assign({overflow:"hidden"},ri),cpe=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),Ga(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${me(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},A5(e)),{color:e.itemSelectedColor}),"&-focused":ai(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:me(n),padding:`0 ${me(e.segmentedPaddingHorizontal)}`},spe),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},A5(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${me(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:me(r),padding:`0 ${me(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:me(a),padding:`0 ${me(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),k5(`&-disabled ${t}-item`,e)),k5(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},upe=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:a,colorFill:o,lineWidthBold:i,colorBgLayout:l}=e;return{trackPadding:i,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:a,itemActiveBg:o,itemSelectedColor:n}},dpe=dn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=en(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return cpe(r)},upe);var L5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=Sf(),{prefixCls:r,className:a,rootClassName:o,block:i,options:l=[],size:c="middle",style:u,vertical:d,shape:f="default",name:m=n}=e,g=L5(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:h,direction:b,className:p,style:S}=sr("segmented"),C=h("segmented",r),[x,w,$]=dpe(C),E=Er(c),R=s.useMemo(()=>l.map(T=>{if(fpe(T)){const{icon:_,label:k}=T,A=L5(T,["icon","label"]);return Object.assign(Object.assign({},A),{label:s.createElement(s.Fragment,null,s.createElement("span",{className:`${C}-item-icon`},_),k&&s.createElement("span",null,k))})}return T}),[l,C]),I=oe(a,o,p,{[`${C}-block`]:i,[`${C}-sm`]:E==="small",[`${C}-lg`]:E==="large",[`${C}-vertical`]:d,[`${C}-shape-${f}`]:f==="round"},w,$),O=Object.assign(Object.assign({},S),u);return x(s.createElement(lpe,Object.assign({},g,{name:m,className:I,style:O,options:R,ref:t,prefixCls:C,direction:b,vertical:d})))}),CK=vpe,SK=ee.createContext({}),xK=ee.createContext({}),wK=({prefixCls:e,value:t,onChange:n})=>{const r=()=>{if(n&&t&&!t.cleared){const a=t.toHsb();a.a=0;const o=$a(a);o.cleared=!0,n(o)}};return ee.createElement("div",{className:`${e}-clear`,onClick:r})},$K="hex",EK="rgb",PK="hsb";var mpe={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"},gpe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:mpe}))},ppe=s.forwardRef(gpe);function sO(){return typeof BigInt=="function"}function OK(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Kc(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",i=a[1]||"0";o==="0"&&i==="0"&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:o,decimalStr:i,fullStr:"".concat(l).concat(r)}}function P1(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function IK(e){var t=e.toLowerCase().split("e"),n=ce(t,2),r=n[0],a=n[1],o=a===void 0?"0":a,i=r.startsWith("-"),l=i?r.slice(1):r,c=l.split("."),u=ce(c,2),d=u[0],f=d===void 0?"0":d,m=u[1],g=m===void 0?"":m,h="".concat(f).concat(g).replace(/^0+/,"")||"0";return{decimal:g,digits:h,exponent:Number(o),integer:f,negative:i}}function hpe(e){var t=e.decimal,n=e.digits,r=e.exponent,a=e.integer,o=e.negative;if(n==="0")return"0";var i=a.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,c=i||-l,u=c+r,d="";return u<=0?d="0.".concat("0".repeat(-u)).concat(n):u>=n.length?d="".concat(n).concat("0".repeat(u-n.length)):d="".concat(n.slice(0,u),".").concat(n.slice(u)),"".concat(o?"-":"").concat(d)}function RK(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}function $c(e){var t=String(e);return P1(e)?RK(IK(t)):t.includes(".")&&k4(t)?t.length-t.indexOf(".")-1:0}function O1(e){var t=String(e);if(P1(e)){if(e>Number.MAX_SAFE_INTEGER)return String(sO()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e100?hpe(n):e.toFixed(r)}return Kc(t).fullStr}function k4(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var bpe=(function(){function e(t){if(ir(this,e),z(this,"origin",""),z(this,"negative",void 0),z(this,"integer",void 0),z(this,"decimal",void 0),z(this,"decimalLen",void 0),z(this,"empty",void 0),z(this,"nan",void 0),OK(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(P1(n)&&(n=Number(n)),n=typeof n=="string"?n:O1(n),k4(n)){var r=Kc(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var o=a[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return lr(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,a){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(o),l=n.alignDecimal(o),c=r(i,l).toString(),u=a(o),d=Kc(c),f=d.negativeStr,m=d.trimStr,g="".concat(f).concat(m.padStart(u+1,"0"));return new e("".concat(g.slice(0,-u),".").concat(g.slice(-u)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(a,o){return a+o},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,o){return a*o},function(a){return a*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Kc("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),ype=(function(){function e(t){if(ir(this,e),z(this,"origin",""),z(this,"number",void 0),z(this,"empty",void 0),OK(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return lr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;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 n?this.isInvalidate()?"":P1(this.number)&&$c(this.number)>100?String(this.number):O1(this.number):this.origin}}]),e})();function $i(e){return sO()?new bpe(e):new ype(e)}function eb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Kc(e),o=a.negativeStr,i=a.integerStr,l=a.decimalStr,c="".concat(t).concat(l),u="".concat(o).concat(i);if(n>=0){var d=Number(l[n]);if(d>=5&&!r){var f=$i(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-d));return eb(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return c===".0"?u:"".concat(u).concat(c)}function Cpe(e){return!!(e.addonBefore||e.addonAfter)}function Spe(e){return!!(e.prefix||e.suffix||e.allowClear)}function B5(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Zb(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=B5(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=B5(t,e,r),n(a);return}n(a)}}function A4(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var L4=ee.forwardRef(function(e,t){var n,r,a,o=e.inputElement,i=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,g=e.style,h=e.disabled,b=e.readOnly,p=e.focused,S=e.triggerFocus,C=e.allowClear,x=e.value,w=e.handleReset,$=e.hidden,E=e.classes,R=e.classNames,I=e.dataAttrs,O=e.styles,T=e.components,_=e.onClear,k=i??o,A=(T==null?void 0:T.affixWrapper)||"span",j=(T==null?void 0:T.groupWrapper)||"span",D=(T==null?void 0:T.wrapper)||"span",F=(T==null?void 0:T.groupAddon)||"span",L=s.useRef(null),B=function(de){var ie;(ie=L.current)!==null&&ie!==void 0&&ie.contains(de.target)&&(S==null||S())},K=Spe(e),W=s.cloneElement(k,{value:x,className:oe((n=k.props)===null||n===void 0?void 0:n.className,!K&&(R==null?void 0:R.variant))||null}),V=s.useRef(null);if(ee.useImperativeHandle(t,function(){return{nativeElement:V.current||L.current}}),K){var q=null;if(C){var U=!h&&!b&&x,G="".concat(l,"-clear-icon"),Y=it(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";q=ee.createElement("button",{type:"button",tabIndex:-1,onClick:function(de){w==null||w(de),_==null||_()},onMouseDown:function(de){return de.preventDefault()},className:oe(G,z(z({},"".concat(G,"-hidden"),!U),"".concat(G,"-has-suffix"),!!u))},Y)}var J="".concat(l,"-affix-wrapper"),Q=oe(J,z(z(z(z(z({},"".concat(l,"-disabled"),h),"".concat(J,"-disabled"),h),"".concat(J,"-focused"),p),"".concat(J,"-readonly"),b),"".concat(J,"-input-with-clear-btn"),u&&C&&x),E==null?void 0:E.affixWrapper,R==null?void 0:R.affixWrapper,R==null?void 0:R.variant),Z=(u||C)&&ee.createElement("span",{className:oe("".concat(l,"-suffix"),R==null?void 0:R.suffix),style:O==null?void 0:O.suffix},q,u);W=ee.createElement(A,Me({className:Q,style:O==null?void 0:O.affixWrapper,onClick:B},I==null?void 0:I.affixWrapper,{ref:L}),c&&ee.createElement("span",{className:oe("".concat(l,"-prefix"),R==null?void 0:R.prefix),style:O==null?void 0:O.prefix},c),W,Z)}if(Cpe(e)){var ne="".concat(l,"-group"),ae="".concat(ne,"-addon"),le="".concat(ne,"-wrapper"),re=oe("".concat(l,"-wrapper"),ne,E==null?void 0:E.wrapper,R==null?void 0:R.wrapper),fe=oe(le,z({},"".concat(le,"-disabled"),h),E==null?void 0:E.group,R==null?void 0:R.groupWrapper);W=ee.createElement(j,{className:fe,ref:V},ee.createElement(D,{className:re},d&&ee.createElement(F,{className:ae},d),W,f&&ee.createElement(F,{className:ae},f)))}return ee.cloneElement(W,{className:oe((r=W.props)===null||r===void 0?void 0:r.className,m)||null,style:P(P({},(a=W.props)===null||a===void 0?void 0:a.style),g),hidden:$})}),xpe=["show"];function MK(e,t){return s.useMemo(function(){var n={};t&&(n.show=it(t)==="object"&&t.formatter?t.formatter:!!t),n=P(P({},n),e);var r=n,a=r.show,o=Ue(r,xpe);return P(P({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(i){return i.length}})},[e,t])}var wpe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],$pe=s.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,i=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,g=e.className,h=e.maxLength,b=e.suffix,p=e.showCount,S=e.count,C=e.type,x=C===void 0?"text":C,w=e.classes,$=e.classNames,E=e.styles,R=e.onCompositionStart,I=e.onCompositionEnd,O=Ue(e,wpe),T=s.useState(!1),_=ce(T,2),k=_[0],A=_[1],j=s.useRef(!1),D=s.useRef(!1),F=s.useRef(null),L=s.useRef(null),B=function(ye){F.current&&A4(F.current,ye)},K=Nt(e.defaultValue,{value:e.value}),W=ce(K,2),V=W[0],q=W[1],U=V==null?"":String(V),G=s.useState(null),Y=ce(G,2),J=Y[0],Q=Y[1],Z=MK(S,p),ne=Z.max||h,ae=Z.strategy(U),le=!!ne&&ae>ne;s.useImperativeHandle(t,function(){var ge;return{focus:B,blur:function(){var xe;(xe=F.current)===null||xe===void 0||xe.blur()},setSelectionRange:function(xe,$e,He){var Te;(Te=F.current)===null||Te===void 0||Te.setSelectionRange(xe,$e,He)},select:function(){var xe;(xe=F.current)===null||xe===void 0||xe.select()},input:F.current,nativeElement:((ge=L.current)===null||ge===void 0?void 0:ge.nativeElement)||F.current}}),s.useEffect(function(){D.current&&(D.current=!1),A(function(ge){return ge&&f?!1:ge})},[f]);var re=function(ye,xe,$e){var He=xe;if(!j.current&&Z.exceedFormatter&&Z.max&&Z.strategy(xe)>Z.max){if(He=Z.exceedFormatter(xe,{max:Z.max}),xe!==He){var Te,Re;Q([((Te=F.current)===null||Te===void 0?void 0:Te.selectionStart)||0,((Re=F.current)===null||Re===void 0?void 0:Re.selectionEnd)||0])}}else if($e.source==="compositionEnd")return;q(He),F.current&&Zb(F.current,ye,r,He)};s.useEffect(function(){if(J){var ge;(ge=F.current)===null||ge===void 0||ge.setSelectionRange.apply(ge,ke(J))}},[J]);var fe=function(ye){re(ye,ye.target.value,{source:"change"})},ue=function(ye){j.current=!1,re(ye,ye.currentTarget.value,{source:"compositionEnd"}),I==null||I(ye)},de=function(ye){i&&ye.key==="Enter"&&!D.current&&(D.current=!0,i(ye)),l==null||l(ye)},ie=function(ye){ye.key==="Enter"&&(D.current=!1),c==null||c(ye)},se=function(ye){A(!0),a==null||a(ye)},ve=function(ye){D.current&&(D.current=!1),A(!1),o==null||o(ye)},he=function(ye){q(""),B(),F.current&&Zb(F.current,ye,r)},Ce=le&&"".concat(d,"-out-of-range"),pe=function(){var ye=nn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ee.createElement("input",Me({autoComplete:n},ye,{onChange:fe,onFocus:se,onBlur:ve,onKeyDown:de,onKeyUp:ie,className:oe(d,z({},"".concat(d,"-disabled"),f),$==null?void 0:$.input),style:E==null?void 0:E.input,ref:F,size:m,type:x,onCompositionStart:function($e){j.current=!0,R==null||R($e)},onCompositionEnd:ue}))},Se=function(){var ye=Number(ne)>0;if(b||Z.show){var xe=Z.showFormatter?Z.showFormatter({value:U,count:ae,maxLength:ne}):"".concat(ae).concat(ye?" / ".concat(ne):"");return ee.createElement(ee.Fragment,null,Z.show&&ee.createElement("span",{className:oe("".concat(d,"-show-count-suffix"),z({},"".concat(d,"-show-count-has-suffix"),!!b),$==null?void 0:$.count),style:P({},E==null?void 0:E.count)},xe),b)}return null};return ee.createElement(L4,Me({},O,{prefixCls:d,className:oe(g,Ce),handleReset:he,value:U,focused:k,triggerFocus:B,suffix:Se(),disabled:f,classes:w,classNames:$,styles:E,ref:L}),pe())});function Epe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function Ppe(e,t){var n=s.useRef(null);function r(){try{var o=e.selectionStart,i=e.selectionEnd,l=e.value,c=l.substring(0,o),u=l.substring(i);n.current={start:o,end:i,value:l,beforeTxt:c,afterTxt:u}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,i=n.current,l=i.beforeTxt,c=i.afterTxt,u=i.start,d=o.length;if(o.startsWith(l))d=l.length;else if(o.endsWith(c))d=o.length-n.current.afterTxt.length;else{var f=l[u-1],m=o.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(g){Kn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,a]}var Ope=function(){var t=s.useState(!1),n=ce(t,2),r=n[0],a=n[1];return fn(function(){a(a1())},[]),r},Ipe=200,Rpe=600;function Mpe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,i=e.onStep,l=s.useRef(),c=s.useRef([]),u=s.useRef();u.current=i;var d=function(){clearTimeout(l.current)},f=function(x,w){x.preventDefault(),d(),u.current(w);function $(){u.current(w),l.current=setTimeout($,Ipe)}l.current=setTimeout($,Rpe)};s.useEffect(function(){return function(){d(),c.current.forEach(function(C){return ln.cancel(C)})}},[]);var m=Ope();if(m)return null;var g="".concat(t,"-handler"),h=oe(g,"".concat(g,"-up"),z({},"".concat(g,"-up-disabled"),a)),b=oe(g,"".concat(g,"-down"),z({},"".concat(g,"-down-disabled"),o)),p=function(){return c.current.push(ln(d))},S={unselectable:"on",role:"button",onMouseUp:p,onMouseLeave:p};return s.createElement("div",{className:"".concat(g,"-wrap")},s.createElement("span",Me({},S,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||s.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),s.createElement("span",Me({},S,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:b}),r||s.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function z5(e){var t=typeof e=="number"?O1(e):Kc(e).fullStr,n=t.includes(".");return n?Kc(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Tpe=(function(){var e=s.useRef(0),t=function(){ln.cancel(e.current)};return s.useEffect(function(){return t},[]),function(n){t(),e.current=ln(function(){n()})}});var Npe=["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"],_pe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],H5=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},V5=function(t){var n=$i(t);return n.isInvalidate()?null:n},jpe=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,i=e.max,l=e.step,c=l===void 0?1:l,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,g=e.upHandler,h=e.downHandler,b=e.keyboard,p=e.changeOnWheel,S=p===void 0?!1:p,C=e.controls,x=C===void 0?!0:C;e.classNames;var w=e.stringMode,$=e.parser,E=e.formatter,R=e.precision,I=e.decimalSeparator,O=e.onChange,T=e.onInput,_=e.onPressEnter,k=e.onStep,A=e.changeOnBlur,j=A===void 0?!0:A,D=e.domRef,F=Ue(e,Npe),L="".concat(n,"-input"),B=s.useRef(null),K=s.useState(!1),W=ce(K,2),V=W[0],q=W[1],U=s.useRef(!1),G=s.useRef(!1),Y=s.useRef(!1),J=s.useState(function(){return $i(d??u)}),Q=ce(J,2),Z=Q[0],ne=Q[1];function ae(Ke){d===void 0&&ne(Ke)}var le=s.useCallback(function(Ke,et){if(!et)return R>=0?R:Math.max($c(Ke),$c(c))},[R,c]),re=s.useCallback(function(Ke){var et=String(Ke);if($)return $(et);var st=et;return I&&(st=st.replace(I,".")),st.replace(/[^\w.-]+/g,"")},[$,I]),fe=s.useRef(""),ue=s.useCallback(function(Ke,et){if(E)return E(Ke,{userTyping:et,input:String(fe.current)});var st=typeof Ke=="number"?O1(Ke):Ke;if(!et){var Ze=le(st,et);if(k4(st)&&(I||Ze>=0)){var vt=I||".";st=eb(st,vt,Ze)}}return st},[E,le,I]),de=s.useState(function(){var Ke=u??d;return Z.isInvalidate()&&["string","number"].includes(it(Ke))?Number.isNaN(Ke)?"":Ke:ue(Z.toString(),!1)}),ie=ce(de,2),se=ie[0],ve=ie[1];fe.current=se;function he(Ke,et){ve(ue(Ke.isInvalidate()?Ke.toString(!1):Ke.toString(!et),et))}var Ce=s.useMemo(function(){return V5(i)},[i,R]),pe=s.useMemo(function(){return V5(o)},[o,R]),Se=s.useMemo(function(){return!Ce||!Z||Z.isInvalidate()?!1:Ce.lessEquals(Z)},[Ce,Z]),ge=s.useMemo(function(){return!pe||!Z||Z.isInvalidate()?!1:Z.lessEquals(pe)},[pe,Z]),ye=Ppe(B.current,V),xe=ce(ye,2),$e=xe[0],He=xe[1],Te=function(et){return Ce&&!et.lessEquals(Ce)?Ce:pe&&!pe.lessEquals(et)?pe:null},Re=function(et){return!Te(et)},Fe=function(et,st){var Ze=et,vt=Re(Ze)||Ze.isEmpty();if(!Ze.isEmpty()&&!st&&(Ze=Te(Ze)||Ze,vt=!0),!m&&!f&&vt){var Ot=Ze.toString(),xt=le(Ot,st);return xt>=0&&(Ze=$i(eb(Ot,".",xt)),Re(Ze)||(Ze=$i(eb(Ot,".",xt,!0)))),Ze.equals(Z)||(ae(Ze),O==null||O(Ze.isEmpty()?null:H5(w,Ze)),d===void 0&&he(Ze,st)),Ze}return Z},je=Tpe(),Ee=function Ke(et){if($e(),fe.current=et,ve(et),!G.current){var st=re(et),Ze=$i(st);Ze.isNaN()||Fe(Ze,!0)}T==null||T(et),je(function(){var vt=et;$||(vt=et.replace(/。/g,".")),vt!==et&&Ke(vt)})},Le=function(){G.current=!0},Pe=function(){G.current=!1,Ee(B.current.value)},ze=function(et){Ee(et.target.value)},Oe=function(et){var st;if(!(et&&Se||!et&&ge)){U.current=!1;var Ze=$i(Y.current?z5(c):c);et||(Ze=Ze.negate());var vt=(Z||$i(0)).add(Ze.toString()),Ot=Fe(vt,!1);k==null||k(H5(w,Ot),{offset:Y.current?z5(c):c,type:et?"up":"down"}),(st=B.current)===null||st===void 0||st.focus()}},we=function(et){var st=$i(re(se)),Ze;st.isNaN()?Ze=Fe(Z,et):Ze=Fe(st,et),d!==void 0?he(Z,!1):Ze.isNaN()||he(Ze,!1)},_e=function(){U.current=!0},Be=function(et){var st=et.key,Ze=et.shiftKey;U.current=!0,Y.current=Ze,st==="Enter"&&(G.current||(U.current=!1),we(!1),_==null||_(et)),b!==!1&&!G.current&&["Up","ArrowUp","Down","ArrowDown"].includes(st)&&(Oe(st==="Up"||st==="ArrowUp"),et.preventDefault())},Qe=function(){U.current=!1,Y.current=!1};s.useEffect(function(){if(S&&V){var Ke=function(Ze){Oe(Ze.deltaY<0),Ze.preventDefault()},et=B.current;if(et)return et.addEventListener("wheel",Ke,{passive:!1}),function(){return et.removeEventListener("wheel",Ke)}}});var lt=function(){j&&we(!1),q(!1),U.current=!1};return Hc(function(){Z.isInvalidate()||he(Z,!1)},[R,E]),Hc(function(){var Ke=$i(d);ne(Ke);var et=$i(re(se));(!Ke.equals(et)||!U.current||E)&&he(Ke,U.current)},[d]),Hc(function(){E&&He()},[se]),s.createElement("div",{ref:D,className:oe(n,r,z(z(z(z(z({},"".concat(n,"-focused"),V),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),Z.isNaN()),"".concat(n,"-out-of-range"),!Z.isInvalidate()&&!Re(Z))),style:a,onFocus:function(){q(!0)},onBlur:lt,onKeyDown:Be,onKeyUp:Qe,onCompositionStart:Le,onCompositionEnd:Pe,onBeforeInput:_e},x&&s.createElement(Mpe,{prefixCls:n,upNode:g,downNode:h,upDisabled:Se,downDisabled:ge,onStep:Oe}),s.createElement("div",{className:"".concat(L,"-wrap")},s.createElement("input",Me({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":Z.isInvalidate()?null:Z.toString(),step:c},F,{ref:Dr(B,t),className:L,value:se,onChange:ze,disabled:f,readOnly:m}))))}),Fpe=s.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,i=e.value,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,g=Ue(e,_pe),h=s.useRef(null),b=s.useRef(null),p=s.useRef(null),S=function(x){p.current&&A4(p.current,x)};return s.useImperativeHandle(t,function(){return Epe(p.current,{focus:S,nativeElement:h.current.nativeElement||b.current})}),s.createElement(L4,{className:f,triggerFocus:S,prefixCls:o,value:i,disabled:n,style:r,prefix:l,suffix:c,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},s.createElement(jpe,Me({prefixCls:o,disabled:n,ref:p,domRef:b,className:m==null?void 0:m.input},g)))});const Dpe=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},gu(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new pn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},W5=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},kpe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:i,controlHeightLG:l,controlHeightSM:c,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:g,colorIcon:h,motionDurationMid:b,handleHoverColor:p,handleOpacity:S,paddingInline:C,paddingBlock:x,handleBg:w,handleActiveBg:$,colorTextDisabled:E,borderRadiusSM:R,borderRadiusLG:I,controlWidth:O,handleBorderColor:T,filledHandleBg:_,lineHeightLG:k,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),$g(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:a}),R4(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${me(n)} ${r} ${T}`}}})),T4(e,{[`${t}-handler-wrap`]:{background:_,[`${t}-handler-down`]:{borderBlockStart:`${me(n)} ${r} ${T}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),N4(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${me(n)} ${r} ${T}`}}})),M4(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,lineHeight:k,borderRadius:I,[`input${t}-input`]:{height:A(l).sub(A(n).mul(2)).equal(),padding:`${me(m)} ${me(g)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:R,[`input${t}-input`]:{height:A(c).sub(A(n).mul(2)).equal(),padding:`${me(f)} ${me(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},$n(e)),LW(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:I,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:R}}},jW(e)),DW(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({},$n(e)),{width:"100%",padding:`${me(x)} ${me(C)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),_4(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:S,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,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:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${me(n)} ${r} ${T}`,transition:`all ${b} linear`,"&:active":{background:$},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},su()),{color:h,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},R5(e,"lg")),R5(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + `]:{color:p}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},cu()),{color:h,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},W5(e,"lg")),W5(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}})}]},xpe=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${me(n)} 0`}},$g(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${me(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${t}-input`]:{padding:`${me(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:r,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(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},wpe=un("InputNumber",e=>{const t=tn(e,vu(e));return[Spe(t),xpe(t),nc(t)]},Cpe,{unitless:{handleOpacity:!0},resetFont:!1});var $pe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=s.useContext(jt),a=s.useRef(null);s.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:l,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,suffix:g,bordered:h,readOnly:b,status:p,controls:S,variant:C}=e,x=$pe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",u),$=Gn(w),[E,R,I]=wpe(w,$),{compactSize:O,compactItemClassnames:T}=ko(w,r);let N=s.createElement(epe,{className:`${w}-handler-up-inner`}),A=s.createElement(Ys,{className:`${w}-handler-down-inner`});const k=typeof S=="boolean"?S:void 0;typeof S=="object"&&(N=typeof S.upIcon>"u"?N:s.createElement("span",{className:`${w}-handler-up-inner`},S.upIcon),A=typeof S.downIcon>"u"?A:s.createElement("span",{className:`${w}-handler-down-inner`},S.downIcon));const{hasFeedback:j,status:D,isFormItemInput:F,feedbackIcon:L}=s.useContext(zr),B=Ul(D,p),K=$r(Z=>{var ne;return(ne=l??O)!==null&&ne!==void 0?ne:Z}),W=s.useContext(Lr),V=c??W,[q,U]=Gl("inputNumber",C,h),G=j&&s.createElement(s.Fragment,null,L),Y=oe({[`${w}-lg`]:K==="large",[`${w}-sm`]:K==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:F},R),J=`${w}-group`,Q=s.createElement(ype,Object.assign({ref:a,disabled:V,className:oe(I,$,o,i,T),upHandler:N,downHandler:A,prefixCls:w,readOnly:b,controls:k,prefix:m,suffix:G||g,addonBefore:d&&s.createElement(oi,{form:!0,space:!0},d),addonAfter:f&&s.createElement(oi,{form:!0,space:!0},f),classNames:{input:Y,variant:oe({[`${w}-${q}`]:U},Di(w,B,j)),affixWrapper:oe({[`${w}-affix-wrapper-sm`]:K==="small",[`${w}-affix-wrapper-lg`]:K==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:S===!1||V||b},R),wrapper:oe({[`${J}-rtl`]:r==="rtl"},R),groupWrapper:oe({[`${w}-group-wrapper-sm`]:K==="small",[`${w}-group-wrapper-lg`]:K==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${q}`]:U},Di(`${w}-group-wrapper`,B,j),R)}},x));return E(Q)}),ll=vK,Epe=e=>s.createElement(Mt,{theme:{components:{InputNumber:{handleVisible:!0}}}},s.createElement(vK,Object.assign({},e)));ll._InternalPanelDoNotUseOrYouWillBeFired=Epe;const qc=({prefixCls:e,min:t=0,max:n=100,value:r,onChange:a,className:o,formatter:i})=>{const l=`${e}-steppers`,[c,u]=s.useState(0),d=Number.isNaN(r)?c:r;return ee.createElement(ll,{className:oe(l,o),min:t,max:n,value:d,formatter:i,size:"small",onChange:f=>{u(f||0),a==null||a(f)}})},Ppe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-alpha-input`,[a,o]=s.useState(()=>Ea(t||"#000")),i=t||a,l=c=>{const u=i.toHsb();u.a=(c||0)/100;const d=Ea(u);o(d),n==null||n(d)};return ee.createElement(qc,{value:NR(i),prefixCls:e,formatter:c=>`${c}%`,className:r,onChange:l})},mK=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ee.createElement(ul,null)}),t};function gK(e,t){const n=s.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,i,l;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return s.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function Ope(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Ipe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,bordered:r=!0,status:a,size:o,disabled:i,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:g,style:h,styles:b,rootClassName:p,onChange:S,classNames:C,variant:x,_skipAddonWarning:w}=e,$=Ipe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:E,direction:R,allowClear:I,autoComplete:O,className:T,style:N,classNames:A,styles:k}=lr("input"),j=E("input",n),D=s.useRef(null),F=Gn(j),[L,B,K]=xW(j,p),[W]=wW(j,F),{compactSize:V,compactItemClassnames:q}=ko(j,R),U=$r(he=>{var Ce;return(Ce=o??V)!==null&&Ce!==void 0?Ce:he}),G=ee.useContext(Lr),Y=i??G,{status:J,hasFeedback:Q,feedbackIcon:Z}=s.useContext(zr),ne=Ul(J,a),ae=Ope(e)||!!Q;s.useRef(ae);const le=gK(D,!0),re=he=>{le(),l==null||l(he)},fe=he=>{le(),c==null||c(he)},ue=he=>{le(),S==null||S(he)},de=(Q||u)&&ee.createElement(ee.Fragment,null,u,Q&&Z),ie=mK(d??I),[se,ve]=Gl("input",x,r);return L(W(ee.createElement(spe,Object.assign({ref:Fr(t,D),prefixCls:j,autoComplete:O},$,{disabled:Y,onBlur:re,onFocus:fe,style:Object.assign(Object.assign({},N),h),styles:Object.assign(Object.assign({},k),b),suffix:de,allowClear:ie,className:oe(g,p,K,F,q,T),onChange:ue,addonBefore:m&&ee.createElement(oi,{form:!0,space:!0},m),addonAfter:f&&ee.createElement(oi,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},C),A),{input:oe({[`${j}-sm`]:U==="small",[`${j}-lg`]:U==="large",[`${j}-rtl`]:R==="rtl"},C==null?void 0:C.input,A.input,B),variant:oe({[`${j}-${se}`]:ve},Di(j,ne)),affixWrapper:oe({[`${j}-affix-wrapper-sm`]:U==="small",[`${j}-affix-wrapper-lg`]:U==="large",[`${j}-affix-wrapper-rtl`]:R==="rtl"},B),wrapper:oe({[`${j}-group-rtl`]:R==="rtl"},B),groupWrapper:oe({[`${j}-group-wrapper-sm`]:U==="small",[`${j}-group-wrapper-lg`]:U==="large",[`${j}-group-wrapper-rtl`]:R==="rtl",[`${j}-group-wrapper-${se}`]:ve},Di(`${j}-group-wrapper`,ne,Q),B)})}))))}),Rpe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Mpe=e=>Rpe.test(`#${e}`),Tpe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hex-input`,[a,o]=s.useState(()=>t?Gv(t.toHexString()):void 0);s.useEffect(()=>{t&&o(Gv(t.toHexString()))},[t]);const i=l=>{const c=l.target.value;o(Gv(c)),Mpe(Gv(c,!0))&&(n==null||n(Ea(c)))};return ee.createElement(Tf,{className:r,value:a,prefix:"#",onChange:i,size:"small"})},Npe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hsb-input`,[a,o]=s.useState(()=>Ea(t||"#000")),i=t||a,l=(c,u)=>{const d=i.toHsb();d[u]=u==="h"?c:(c||0)/100;const f=Ea(d);o(f),n==null||n(f)};return ee.createElement("div",{className:r},ee.createElement(qc,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:e,className:r,formatter:c=>A0(c||0).toString(),onChange:c=>l(Number(c),"h")}),ee.createElement(qc,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:e,className:r,formatter:c=>`${A0(c||0)}%`,onChange:c=>l(Number(c),"s")}),ee.createElement(qc,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:e,className:r,formatter:c=>`${A0(c||0)}%`,onChange:c=>l(Number(c),"b")}))},_pe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-rgb-input`,[a,o]=s.useState(()=>Ea(t||"#000")),i=t||a,l=(c,u)=>{const d=i.toRgb();d[u]=c||0;const f=Ea(d);o(f),n==null||n(f)};return ee.createElement("div",{className:r},ee.createElement(qc,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:e,className:r,onChange:c=>l(Number(c),"r")}),ee.createElement(qc,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:e,className:r,onChange:c=>l(Number(c),"g")}),ee.createElement(qc,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:e,className:r,onChange:c=>l(Number(c),"b")}))},jpe=[iK,sK,lK].map(e=>({value:e,label:e.toUpperCase()})),Fpe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:a,onFormatChange:o,onChange:i,disabledFormat:l}=e,[c,u]=_t(iK,{value:n,onChange:o}),d=`${t}-input`,f=g=>{u(g)},m=s.useMemo(()=>{const g={value:r,prefixCls:t,onChange:i};switch(c){case sK:return ee.createElement(Npe,Object.assign({},g));case lK:return ee.createElement(_pe,Object.assign({},g));default:return ee.createElement(Tpe,Object.assign({},g))}},[c,t,r,i]);return ee.createElement("div",{className:`${d}-container`},!l&&ee.createElement(dl,{value:c,variant:"borderless",getPopupContainer:g=>g,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:jpe}),ee.createElement("div",{className:d},m),!a&&ee.createElement(Ppe,{prefixCls:t,value:r,onChange:i}))};function eO(e,t,n){return(e-t)/(n-t)}function I4(e,t,n,r){var a=eO(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function Pc(e,t){return Array.isArray(e)?e[t]:e}var gu=s.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),pK=s.createContext({}),Dpe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],M5=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,l=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,m=e.onChangeComplete,g=e.onFocus,h=e.onMouseEnter,b=Ue(e,Dpe),p=s.useContext(gu),S=p.min,C=p.max,x=p.direction,w=p.disabled,$=p.keyboard,E=p.range,R=p.tabIndex,I=p.ariaLabelForHandle,O=p.ariaLabelledByForHandle,T=p.ariaRequired,N=p.ariaValueTextFormatterForHandle,A=p.styles,k=p.classNames,j="".concat(n,"-handle"),D=function(Y){w||o(Y,a)},F=function(Y){g==null||g(Y,a)},L=function(Y){h(Y,a)},B=function(Y){if(!w&&$){var J=null;switch(Y.which||Y.keyCode){case ot.LEFT:J=x==="ltr"||x==="btt"?-1:1;break;case ot.RIGHT:J=x==="ltr"||x==="btt"?1:-1;break;case ot.UP:J=x!=="ttb"?1:-1;break;case ot.DOWN:J=x!=="ttb"?-1:1;break;case ot.HOME:J="min";break;case ot.END:J="max";break;case ot.PAGE_UP:J=2;break;case ot.PAGE_DOWN:J=-2;break;case ot.BACKSPACE:case ot.DELETE:i==null||i(a);break}J!==null&&(Y.preventDefault(),f(J,a))}},K=function(Y){switch(Y.which||Y.keyCode){case ot.LEFT:case ot.RIGHT:case ot.UP:case ot.DOWN:case ot.HOME:case ot.END:case ot.PAGE_UP:case ot.PAGE_DOWN:m==null||m();break}},W=I4(x,r,S,C),V={};if(a!==null){var q;V={tabIndex:w?null:Pc(R,a),role:"slider","aria-valuemin":S,"aria-valuemax":C,"aria-valuenow":r,"aria-disabled":w,"aria-label":Pc(I,a),"aria-labelledby":Pc(O,a),"aria-required":Pc(T,a),"aria-valuetext":(q=Pc(N,a))===null||q===void 0?void 0:q(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:D,onTouchStart:D,onFocus:F,onMouseEnter:L,onKeyDown:B,onKeyUp:K}}var U=s.createElement("div",Me({ref:t,className:oe(j,z(z(z({},"".concat(j,"-").concat(a+1),a!==null&&E),"".concat(j,"-dragging"),u),"".concat(j,"-dragging-delete"),d),k.handle),style:P(P(P({},W),l),A.handle)},V,b));return c&&(U=c(U,{index:a,prefixCls:n,value:r,dragging:u,draggingDelete:d})),U}),kpe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],Ape=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,l=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,m=Ue(e,kpe),g=s.useRef({}),h=s.useState(!1),b=ce(h,2),p=b[0],S=b[1],C=s.useState(-1),x=ce(C,2),w=x[0],$=x[1],E=function(N){$(N),S(!0)},R=function(N,A){E(A),f==null||f(N)},I=function(N,A){E(A)};s.useImperativeHandle(t,function(){return{focus:function(N){var A;(A=g.current[N])===null||A===void 0||A.focus()},hideHelp:function(){Ua.flushSync(function(){S(!1)})}}});var O=P({prefixCls:n,onStartMove:a,onOffsetChange:o,render:l,onFocus:R,onMouseEnter:I},m);return s.createElement(s.Fragment,null,i.map(function(T,N){var A=u===N;return s.createElement(M5,Me({ref:function(j){j?g.current[N]=j:delete g.current[N]},dragging:A,draggingDelete:A&&d,style:Pc(r,N),key:N,value:T,valueIndex:N},O))}),c&&p&&s.createElement(M5,Me({key:"a11y"},O,{value:i[w],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Lpe=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,l=s.useContext(gu),c=l.min,u=l.max,d=l.direction,f=l.includedStart,m=l.includedEnd,g=l.included,h="".concat(n,"-text"),b=I4(d,o,c,u);return s.createElement("span",{className:oe(h,z({},"".concat(h,"-active"),g&&f<=o&&o<=m)),style:P(P({},b),r),onMouseDown:function(S){S.stopPropagation()},onClick:function(){i(o)}},a)},Bpe=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?s.createElement("div",{className:o},r.map(function(i){var l=i.value,c=i.style,u=i.label;return s.createElement(Lpe,{key:l,prefixCls:o,style:c,value:l,onClick:a},u)})):null},zpe=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=s.useContext(gu),l=i.min,c=i.max,u=i.direction,d=i.included,f=i.includedStart,m=i.includedEnd,g="".concat(n,"-dot"),h=d&&f<=r&&r<=m,b=P(P({},I4(u,r,l,c)),typeof a=="function"?a(r):a);return h&&(b=P(P({},b),typeof o=="function"?o(r):o)),s.createElement("span",{className:oe(g,z({},"".concat(g,"-active"),h)),style:b})},Hpe=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,l=s.useContext(gu),c=l.min,u=l.max,d=l.step,f=s.useMemo(function(){var m=new Set;if(r.forEach(function(h){m.add(h.value)}),a&&d!==null)for(var g=c;g<=u;)m.add(g),g+=d;return Array.from(m)},[c,u,d,a,r]);return s.createElement("div",{className:"".concat(n,"-step")},f.map(function(m){return s.createElement(zpe,{prefixCls:n,key:m,value:m,style:o,activeStyle:i})}))},T5=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,l=t.onStartMove,c=t.replaceCls,u=s.useContext(gu),d=u.direction,f=u.min,m=u.max,g=u.disabled,h=u.range,b=u.classNames,p="".concat(n,"-track"),S=eO(a,f,m),C=eO(o,f,m),x=function(R){!g&&l&&l(R,-1)},w={};switch(d){case"rtl":w.right="".concat(S*100,"%"),w.width="".concat(C*100-S*100,"%");break;case"btt":w.bottom="".concat(S*100,"%"),w.height="".concat(C*100-S*100,"%");break;case"ttb":w.top="".concat(S*100,"%"),w.height="".concat(C*100-S*100,"%");break;default:w.left="".concat(S*100,"%"),w.width="".concat(C*100-S*100,"%")}var $=c||oe(p,z(z({},"".concat(p,"-").concat(i+1),i!==null&&h),"".concat(n,"-track-draggable"),l),b.track);return s.createElement("div",{className:$,style:P(P({},w),r),onMouseDown:x,onTouchStart:x})},Vpe=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,l=s.useContext(gu),c=l.included,u=l.range,d=l.min,f=l.styles,m=l.classNames,g=s.useMemo(function(){if(!u){if(a.length===0)return[];var b=o??d,p=a[0];return[{start:Math.min(b,p),end:Math.max(b,p)}]}for(var S=[],C=0;CWpe&&d3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof b=="number"){var C,x=h[p],w=x+b,$=[];r.forEach(function(T){$.push(T.value)}),$.push(e,t),$.push(l(x));var E=b>0?1:-1;S==="unit"?$.push(l(x+E*n)):$.push(l(w)),$=$.filter(function(T){return T!==null}).filter(function(T){return b<0?T<=x:T>=x}),S==="unit"&&($=$.filter(function(T){return T!==x}));var R=S==="unit"?x:w;C=$[0];var I=Math.abs(C-R);if($.forEach(function(T){var N=Math.abs(T-R);N1){var O=ke(h);return O[p]=C,g(O,b-E,p,S)}return C}else{if(b==="min")return e;if(b==="max")return t}},d=function(h,b,p){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",C=h[p],x=u(h,b,p,S);return{value:x,changed:x!==C}},f=function(h){return o===null&&h===0||typeof o=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",C=h.map(c),x=C[p],w=u(C,b,p,S);if(C[p]=w,a===!1){var $=o||0;p>0&&C[p-1]!==x&&(C[p]=Math.max(C[p],C[p-1]+$)),p0;O-=1)for(var T=!0;f(C[O]-C[O-1])&&T;){var N=d(C,-1,O-1);C[O-1]=N.value,T=N.changed}for(var A=C.length-1;A>0;A-=1)for(var k=!0;f(C[A]-C[A-1])&&k;){var j=d(C,-1,A-1);C[A-1]=j.value,k=j.changed}for(var D=0;D=0?L:!1},[L,je]),Le=s.useMemo(function(){return Object.keys(Z||{}).map(function(gt){var qe=Z[gt],at={value:Number(gt)};return qe&&it(qe)==="object"&&!s.isValidElement(qe)&&("label"in qe||"style"in qe)?(at.style=qe.style,at.label=qe.label):at.label=qe,at}).filter(function(gt){var qe=gt.label;return qe||typeof qe=="number"}).sort(function(gt,qe){return gt.value-qe.value})},[Z]),Pe=qpe(Re,Fe,je,Le,D,Ee),ze=ce(Pe,2),Oe=ze[0],we=ze[1],_e=_t(R,{value:E}),Be=ce(_e,2),Qe=Be[0],lt=Be[1],Ke=s.useMemo(function(){var gt=Qe==null?[]:Array.isArray(Qe)?Qe:[Qe],qe=ce(gt,1),at=qe[0],dt=at===void 0?Re:at,Tt=Qe===null?[]:[dt];if(ye){if(Tt=ke(gt),O||Qe===void 0){var Qt=O>=0?O+1:2;for(Tt=Tt.slice(0,Qt);Tt.length=0&&he.current.focus(gt)}pt(null)},[At]);var ut=s.useMemo(function(){return $e&&je===null?!1:$e},[$e,je]),Xt=Zt(function(gt,qe){Ye(gt,qe),N==null||N(et(Ke))}),Kt=mt!==-1;s.useEffect(function(){if(!Kt){var gt=Ke.lastIndexOf(yt);he.current.focus(gt)}},[Kt]);var Ut=s.useMemo(function(){return ke(tt).sort(function(gt,qe){return gt-qe})},[tt]),kt=s.useMemo(function(){return ye?[Ut[0],Ut[Ut.length-1]]:[Re,Ut[0]]},[Ut,ye,Re]),Pt=ce(kt,2),Lt=Pt[0],nt=Pt[1];s.useImperativeHandle(t,function(){return{focus:function(){he.current.focus(0)},blur:function(){var qe,at=document,dt=at.activeElement;(qe=Ce.current)!==null&&qe!==void 0&&qe.contains(dt)&&(dt==null||dt.blur())}}}),s.useEffect(function(){g&&he.current.focus(0)},[]);var St=s.useMemo(function(){return{min:Re,max:Fe,direction:pe,disabled:d,keyboard:m,step:je,included:V,includedStart:Lt,includedEnd:nt,range:ye,tabIndex:ue,ariaLabelForHandle:de,ariaLabelledByForHandle:ie,ariaRequired:se,ariaValueTextFormatterForHandle:ve,styles:l||{},classNames:i||{}}},[Re,Fe,pe,d,m,je,V,Lt,nt,ye,ue,de,ie,se,ve,l,i]);return s.createElement(gu.Provider,{value:St},s.createElement("div",{ref:Ce,className:oe(r,a,z(z(z(z({},"".concat(r,"-disabled"),d),"".concat(r,"-vertical"),K),"".concat(r,"-horizontal"),!K),"".concat(r,"-with-marks"),Le.length)),style:o,onMouseDown:We,id:c},s.createElement("div",{className:oe("".concat(r,"-rail"),i==null?void 0:i.rail),style:P(P({},Y),l==null?void 0:l.rail)}),re!==!1&&s.createElement(Vpe,{prefixCls:r,style:U,values:Ke,startPoint:q,onStartMove:ut?Xt:void 0}),s.createElement(Hpe,{prefixCls:r,marks:Le,dots:ne,style:J,activeStyle:Q}),s.createElement(Ape,{ref:he,prefixCls:r,style:G,values:tt,draggingIndex:mt,draggingDelete:bt,onStartMove:Xt,onOffsetChange:ft,onFocus:h,onBlur:b,handleRender:ae,activeHandleRender:le,onChangeComplete:Ze,onDelete:xe?vt:void 0}),s.createElement(Bpe,{prefixCls:r,marks:Le,onClick:Ne})))});const hK=s.createContext({}),_5=s.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:a}=e,o=s.useRef(null),i=n&&!r,l=s.useRef(null);function c(){on.cancel(l.current),l.current=null}function u(){l.current=on(()=>{var d;(d=o.current)===null||d===void 0||d.forceAlign(),l.current=null})}return s.useEffect(()=>(i?u():c(),c),[i,e.title,a]),s.createElement(Kn,Object.assign({ref:Fr(o,t)},e,{open:i}))}),Ype=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:l,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:m,handleActiveOutlineColor:g,handleLineWidth:h,handleLineWidthHover:b,motionDurationMid:p}=e;return{[t]:Object.assign(Object.assign({},wn(e)),{position:"relative",height:r,margin:`${me(i)} ${me(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${me(o)} ${me(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${p}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${p}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${me(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(h).mul(-1).equal(),insetBlockStart:u(h).mul(-1).equal(),width:u(d).add(u(h).mul(2)).equal(),height:u(d).add(u(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${me(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` + `]:{color:E}})}]},Ape=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:i,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${me(n)} 0`}},$g(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:i,paddingInlineStart:c,[`input${t}-input`]:{padding:`${me(d)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:u,[`input${t}-input`]:{padding:`${me(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:r,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(r).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},Lpe=dn("InputNumber",e=>{const t=en(e,mu(e));return[kpe(t),Ape(t),tc(t)]},Dpe,{unitless:{handleOpacity:!0},resetFont:!1});var Bpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=s.useContext(jt),a=s.useRef(null);s.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:i,size:l,disabled:c,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,suffix:g,bordered:h,readOnly:b,status:p,controls:S,variant:C}=e,x=Bpe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",u),$=Yn(w),[E,R,I]=Lpe(w,$),{compactSize:O,compactItemClassnames:T}=Ao(w,r);let _=s.createElement(ppe,{className:`${w}-handler-up-inner`}),k=s.createElement(Gs,{className:`${w}-handler-down-inner`});const A=typeof S=="boolean"?S:void 0;typeof S=="object"&&(_=typeof S.upIcon>"u"?_:s.createElement("span",{className:`${w}-handler-up-inner`},S.upIcon),k=typeof S.downIcon>"u"?k:s.createElement("span",{className:`${w}-handler-down-inner`},S.downIcon));const{hasFeedback:j,status:D,isFormItemInput:F,feedbackIcon:L}=s.useContext(Hr),B=Ul(D,p),K=Er(Z=>{var ne;return(ne=l??O)!==null&&ne!==void 0?ne:Z}),W=s.useContext(Br),V=c??W,[q,U]=Gl("inputNumber",C,h),G=j&&s.createElement(s.Fragment,null,L),Y=oe({[`${w}-lg`]:K==="large",[`${w}-sm`]:K==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:F},R),J=`${w}-group`,Q=s.createElement(Fpe,Object.assign({ref:a,disabled:V,className:oe(I,$,o,i,T),upHandler:_,downHandler:k,prefixCls:w,readOnly:b,controls:A,prefix:m,suffix:G||g,addonBefore:d&&s.createElement(ii,{form:!0,space:!0},d),addonAfter:f&&s.createElement(ii,{form:!0,space:!0},f),classNames:{input:Y,variant:oe({[`${w}-${q}`]:U},Ai(w,B,j)),affixWrapper:oe({[`${w}-affix-wrapper-sm`]:K==="small",[`${w}-affix-wrapper-lg`]:K==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:S===!1||V||b},R),wrapper:oe({[`${J}-rtl`]:r==="rtl"},R),groupWrapper:oe({[`${w}-group-wrapper-sm`]:K==="small",[`${w}-group-wrapper-lg`]:K==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${q}`]:U},Ai(`${w}-group-wrapper`,B,j),R)}},x));return E(Q)}),cl=TK,zpe=e=>s.createElement(Rt,{theme:{components:{InputNumber:{handleVisible:!0}}}},s.createElement(TK,Object.assign({},e)));cl._InternalPanelDoNotUseOrYouWillBeFired=zpe;const qc=({prefixCls:e,min:t=0,max:n=100,value:r,onChange:a,className:o,formatter:i})=>{const l=`${e}-steppers`,[c,u]=s.useState(0),d=Number.isNaN(r)?c:r;return ee.createElement(cl,{className:oe(l,o),min:t,max:n,value:d,formatter:i,size:"small",onChange:f=>{u(f||0),a==null||a(f)}})},Hpe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-alpha-input`,[a,o]=s.useState(()=>$a(t||"#000")),i=t||a,l=c=>{const u=i.toHsb();u.a=(c||0)/100;const d=$a(u);o(d),n==null||n(d)};return ee.createElement(qc,{value:KR(i),prefixCls:e,formatter:c=>`${c}%`,className:r,onChange:l})},NK=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ee.createElement(dl,null)}),t};function _K(e,t){const n=s.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,i,l;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return s.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function Vpe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Wpe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,bordered:r=!0,status:a,size:o,disabled:i,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:g,style:h,styles:b,rootClassName:p,onChange:S,classNames:C,variant:x,_skipAddonWarning:w}=e,$=Wpe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:E,direction:R,allowClear:I,autoComplete:O,className:T,style:_,classNames:k,styles:A}=sr("input"),j=E("input",n),D=s.useRef(null),F=Yn(j),[L,B,K]=BW(j,p),[W]=zW(j,F),{compactSize:V,compactItemClassnames:q}=Ao(j,R),U=Er(he=>{var Ce;return(Ce=o??V)!==null&&Ce!==void 0?Ce:he}),G=ee.useContext(Br),Y=i??G,{status:J,hasFeedback:Q,feedbackIcon:Z}=s.useContext(Hr),ne=Ul(J,a),ae=Vpe(e)||!!Q;s.useRef(ae);const le=_K(D,!0),re=he=>{le(),l==null||l(he)},fe=he=>{le(),c==null||c(he)},ue=he=>{le(),S==null||S(he)},de=(Q||u)&&ee.createElement(ee.Fragment,null,u,Q&&Z),ie=NK(d??I),[se,ve]=Gl("input",x,r);return L(W(ee.createElement($pe,Object.assign({ref:Dr(t,D),prefixCls:j,autoComplete:O},$,{disabled:Y,onBlur:re,onFocus:fe,style:Object.assign(Object.assign({},_),h),styles:Object.assign(Object.assign({},A),b),suffix:de,allowClear:ie,className:oe(g,p,K,F,q,T),onChange:ue,addonBefore:m&&ee.createElement(ii,{form:!0,space:!0},m),addonAfter:f&&ee.createElement(ii,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},C),k),{input:oe({[`${j}-sm`]:U==="small",[`${j}-lg`]:U==="large",[`${j}-rtl`]:R==="rtl"},C==null?void 0:C.input,k.input,B),variant:oe({[`${j}-${se}`]:ve},Ai(j,ne)),affixWrapper:oe({[`${j}-affix-wrapper-sm`]:U==="small",[`${j}-affix-wrapper-lg`]:U==="large",[`${j}-affix-wrapper-rtl`]:R==="rtl"},B),wrapper:oe({[`${j}-group-rtl`]:R==="rtl"},B),groupWrapper:oe({[`${j}-group-wrapper-sm`]:U==="small",[`${j}-group-wrapper-lg`]:U==="large",[`${j}-group-wrapper-rtl`]:R==="rtl",[`${j}-group-wrapper-${se}`]:ve},Ai(`${j}-group-wrapper`,ne,Q),B)})}))))}),Kpe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,qpe=e=>Kpe.test(`#${e}`),Upe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hex-input`,[a,o]=s.useState(()=>t?Gv(t.toHexString()):void 0);s.useEffect(()=>{t&&o(Gv(t.toHexString()))},[t]);const i=l=>{const c=l.target.value;o(Gv(c)),qpe(Gv(c,!0))&&(n==null||n($a(c)))};return ee.createElement(Nf,{className:r,value:a,prefix:"#",onChange:i,size:"small"})},Gpe=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-hsb-input`,[a,o]=s.useState(()=>$a(t||"#000")),i=t||a,l=(c,u)=>{const d=i.toHsb();d[u]=u==="h"?c:(c||0)/100;const f=$a(d);o(f),n==null||n(f)};return ee.createElement("div",{className:r},ee.createElement(qc,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:e,className:r,formatter:c=>H0(c||0).toString(),onChange:c=>l(Number(c),"h")}),ee.createElement(qc,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:e,className:r,formatter:c=>`${H0(c||0)}%`,onChange:c=>l(Number(c),"s")}),ee.createElement(qc,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:e,className:r,formatter:c=>`${H0(c||0)}%`,onChange:c=>l(Number(c),"b")}))},Ype=({prefixCls:e,value:t,onChange:n})=>{const r=`${e}-rgb-input`,[a,o]=s.useState(()=>$a(t||"#000")),i=t||a,l=(c,u)=>{const d=i.toRgb();d[u]=c||0;const f=$a(d);o(f),n==null||n(f)};return ee.createElement("div",{className:r},ee.createElement(qc,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:e,className:r,onChange:c=>l(Number(c),"r")}),ee.createElement(qc,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:e,className:r,onChange:c=>l(Number(c),"g")}),ee.createElement(qc,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:e,className:r,onChange:c=>l(Number(c),"b")}))},Xpe=[$K,PK,EK].map(e=>({value:e,label:e.toUpperCase()})),Qpe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:a,onFormatChange:o,onChange:i,disabledFormat:l}=e,[c,u]=Nt($K,{value:n,onChange:o}),d=`${t}-input`,f=g=>{u(g)},m=s.useMemo(()=>{const g={value:r,prefixCls:t,onChange:i};switch(c){case PK:return ee.createElement(Gpe,Object.assign({},g));case EK:return ee.createElement(Ype,Object.assign({},g));default:return ee.createElement(Upe,Object.assign({},g))}},[c,t,r,i]);return ee.createElement("div",{className:`${d}-container`},!l&&ee.createElement(li,{value:c,variant:"borderless",getPopupContainer:g=>g,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:Xpe}),ee.createElement("div",{className:d},m),!a&&ee.createElement(Hpe,{prefixCls:t,value:r,onChange:i}))};function cO(e,t,n){return(e-t)/(n-t)}function B4(e,t,n,r){var a=cO(t,n,r),o={};switch(e){case"rtl":o.right="".concat(a*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(a*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(a*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(a*100,"%"),o.transform="translateX(-50%)";break}return o}function Ec(e,t){return Array.isArray(e)?e[t]:e}var pu=s.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),jK=s.createContext({}),Jpe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],K5=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,a=e.valueIndex,o=e.onStartMove,i=e.onDelete,l=e.style,c=e.render,u=e.dragging,d=e.draggingDelete,f=e.onOffsetChange,m=e.onChangeComplete,g=e.onFocus,h=e.onMouseEnter,b=Ue(e,Jpe),p=s.useContext(pu),S=p.min,C=p.max,x=p.direction,w=p.disabled,$=p.keyboard,E=p.range,R=p.tabIndex,I=p.ariaLabelForHandle,O=p.ariaLabelledByForHandle,T=p.ariaRequired,_=p.ariaValueTextFormatterForHandle,k=p.styles,A=p.classNames,j="".concat(n,"-handle"),D=function(Y){w||o(Y,a)},F=function(Y){g==null||g(Y,a)},L=function(Y){h(Y,a)},B=function(Y){if(!w&&$){var J=null;switch(Y.which||Y.keyCode){case ot.LEFT:J=x==="ltr"||x==="btt"?-1:1;break;case ot.RIGHT:J=x==="ltr"||x==="btt"?1:-1;break;case ot.UP:J=x!=="ttb"?1:-1;break;case ot.DOWN:J=x!=="ttb"?-1:1;break;case ot.HOME:J="min";break;case ot.END:J="max";break;case ot.PAGE_UP:J=2;break;case ot.PAGE_DOWN:J=-2;break;case ot.BACKSPACE:case ot.DELETE:i==null||i(a);break}J!==null&&(Y.preventDefault(),f(J,a))}},K=function(Y){switch(Y.which||Y.keyCode){case ot.LEFT:case ot.RIGHT:case ot.UP:case ot.DOWN:case ot.HOME:case ot.END:case ot.PAGE_UP:case ot.PAGE_DOWN:m==null||m();break}},W=B4(x,r,S,C),V={};if(a!==null){var q;V={tabIndex:w?null:Ec(R,a),role:"slider","aria-valuemin":S,"aria-valuemax":C,"aria-valuenow":r,"aria-disabled":w,"aria-label":Ec(I,a),"aria-labelledby":Ec(O,a),"aria-required":Ec(T,a),"aria-valuetext":(q=Ec(_,a))===null||q===void 0?void 0:q(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:D,onTouchStart:D,onFocus:F,onMouseEnter:L,onKeyDown:B,onKeyUp:K}}var U=s.createElement("div",Me({ref:t,className:oe(j,z(z(z({},"".concat(j,"-").concat(a+1),a!==null&&E),"".concat(j,"-dragging"),u),"".concat(j,"-dragging-delete"),d),A.handle),style:P(P(P({},W),l),k.handle)},V,b));return c&&(U=c(U,{index:a,prefixCls:n,value:r,dragging:u,draggingDelete:d})),U}),Zpe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],ehe=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.onStartMove,o=e.onOffsetChange,i=e.values,l=e.handleRender,c=e.activeHandleRender,u=e.draggingIndex,d=e.draggingDelete,f=e.onFocus,m=Ue(e,Zpe),g=s.useRef({}),h=s.useState(!1),b=ce(h,2),p=b[0],S=b[1],C=s.useState(-1),x=ce(C,2),w=x[0],$=x[1],E=function(_){$(_),S(!0)},R=function(_,k){E(k),f==null||f(_)},I=function(_,k){E(k)};s.useImperativeHandle(t,function(){return{focus:function(_){var k;(k=g.current[_])===null||k===void 0||k.focus()},hideHelp:function(){Ua.flushSync(function(){S(!1)})}}});var O=P({prefixCls:n,onStartMove:a,onOffsetChange:o,render:l,onFocus:R,onMouseEnter:I},m);return s.createElement(s.Fragment,null,i.map(function(T,_){var k=u===_;return s.createElement(K5,Me({ref:function(j){j?g.current[_]=j:delete g.current[_]},dragging:k,draggingDelete:k&&d,style:Ec(r,_),key:_,value:T,valueIndex:_},O))}),c&&p&&s.createElement(K5,Me({key:"a11y"},O,{value:i[w],valueIndex:null,dragging:u!==-1,draggingDelete:d,render:c,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),the=function(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,l=s.useContext(pu),c=l.min,u=l.max,d=l.direction,f=l.includedStart,m=l.includedEnd,g=l.included,h="".concat(n,"-text"),b=B4(d,o,c,u);return s.createElement("span",{className:oe(h,z({},"".concat(h,"-active"),g&&f<=o&&o<=m)),style:P(P({},b),r),onMouseDown:function(S){S.stopPropagation()},onClick:function(){i(o)}},a)},nhe=function(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?s.createElement("div",{className:o},r.map(function(i){var l=i.value,c=i.style,u=i.label;return s.createElement(the,{key:l,prefixCls:o,style:c,value:l,onClick:a},u)})):null},rhe=function(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=s.useContext(pu),l=i.min,c=i.max,u=i.direction,d=i.included,f=i.includedStart,m=i.includedEnd,g="".concat(n,"-dot"),h=d&&f<=r&&r<=m,b=P(P({},B4(u,r,l,c)),typeof a=="function"?a(r):a);return h&&(b=P(P({},b),typeof o=="function"?o(r):o)),s.createElement("span",{className:oe(g,z({},"".concat(g,"-active"),h)),style:b})},ahe=function(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,l=s.useContext(pu),c=l.min,u=l.max,d=l.step,f=s.useMemo(function(){var m=new Set;if(r.forEach(function(h){m.add(h.value)}),a&&d!==null)for(var g=c;g<=u;)m.add(g),g+=d;return Array.from(m)},[c,u,d,a,r]);return s.createElement("div",{className:"".concat(n,"-step")},f.map(function(m){return s.createElement(rhe,{prefixCls:n,key:m,value:m,style:o,activeStyle:i})}))},q5=function(t){var n=t.prefixCls,r=t.style,a=t.start,o=t.end,i=t.index,l=t.onStartMove,c=t.replaceCls,u=s.useContext(pu),d=u.direction,f=u.min,m=u.max,g=u.disabled,h=u.range,b=u.classNames,p="".concat(n,"-track"),S=cO(a,f,m),C=cO(o,f,m),x=function(R){!g&&l&&l(R,-1)},w={};switch(d){case"rtl":w.right="".concat(S*100,"%"),w.width="".concat(C*100-S*100,"%");break;case"btt":w.bottom="".concat(S*100,"%"),w.height="".concat(C*100-S*100,"%");break;case"ttb":w.top="".concat(S*100,"%"),w.height="".concat(C*100-S*100,"%");break;default:w.left="".concat(S*100,"%"),w.width="".concat(C*100-S*100,"%")}var $=c||oe(p,z(z({},"".concat(p,"-").concat(i+1),i!==null&&h),"".concat(n,"-track-draggable"),l),b.track);return s.createElement("div",{className:$,style:P(P({},w),r),onMouseDown:x,onTouchStart:x})},ohe=function(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,l=s.useContext(pu),c=l.included,u=l.range,d=l.min,f=l.styles,m=l.classNames,g=s.useMemo(function(){if(!u){if(a.length===0)return[];var b=o??d,p=a[0];return[{start:Math.min(b,p),end:Math.max(b,p)}]}for(var S=[],C=0;Cihe&&d3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof b=="number"){var C,x=h[p],w=x+b,$=[];r.forEach(function(T){$.push(T.value)}),$.push(e,t),$.push(l(x));var E=b>0?1:-1;S==="unit"?$.push(l(x+E*n)):$.push(l(w)),$=$.filter(function(T){return T!==null}).filter(function(T){return b<0?T<=x:T>=x}),S==="unit"&&($=$.filter(function(T){return T!==x}));var R=S==="unit"?x:w;C=$[0];var I=Math.abs(C-R);if($.forEach(function(T){var _=Math.abs(T-R);_1){var O=ke(h);return O[p]=C,g(O,b-E,p,S)}return C}else{if(b==="min")return e;if(b==="max")return t}},d=function(h,b,p){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",C=h[p],x=u(h,b,p,S);return{value:x,changed:x!==C}},f=function(h){return o===null&&h===0||typeof o=="number"&&h3&&arguments[3]!==void 0?arguments[3]:"unit",C=h.map(c),x=C[p],w=u(C,b,p,S);if(C[p]=w,a===!1){var $=o||0;p>0&&C[p-1]!==x&&(C[p]=Math.max(C[p],C[p-1]+$)),p0;O-=1)for(var T=!0;f(C[O]-C[O-1])&&T;){var _=d(C,-1,O-1);C[O-1]=_.value,T=_.changed}for(var k=C.length-1;k>0;k-=1)for(var A=!0;f(C[k]-C[k-1])&&A;){var j=d(C,-1,k-1);C[k-1]=j.value,A=j.changed}for(var D=0;D=0?L:!1},[L,je]),Le=s.useMemo(function(){return Object.keys(Z||{}).map(function(gt){var qe=Z[gt],at={value:Number(gt)};return qe&&it(qe)==="object"&&!s.isValidElement(qe)&&("label"in qe||"style"in qe)?(at.style=qe.style,at.label=qe.label):at.label=qe,at}).filter(function(gt){var qe=gt.label;return qe||typeof qe=="number"}).sort(function(gt,qe){return gt.value-qe.value})},[Z]),Pe=she(Re,Fe,je,Le,D,Ee),ze=ce(Pe,2),Oe=ze[0],we=ze[1],_e=Nt(R,{value:E}),Be=ce(_e,2),Qe=Be[0],lt=Be[1],Ke=s.useMemo(function(){var gt=Qe==null?[]:Array.isArray(Qe)?Qe:[Qe],qe=ce(gt,1),at=qe[0],dt=at===void 0?Re:at,Tt=Qe===null?[]:[dt];if(ye){if(Tt=ke(gt),O||Qe===void 0){var Qt=O>=0?O+1:2;for(Tt=Tt.slice(0,Qt);Tt.length=0&&he.current.focus(gt)}pt(null)},[At]);var ut=s.useMemo(function(){return $e&&je===null?!1:$e},[$e,je]),Xt=Zt(function(gt,qe){Ye(gt,qe),_==null||_(et(Ke))}),Kt=mt!==-1;s.useEffect(function(){if(!Kt){var gt=Ke.lastIndexOf(yt);he.current.focus(gt)}},[Kt]);var Ut=s.useMemo(function(){return ke(tt).sort(function(gt,qe){return gt-qe})},[tt]),kt=s.useMemo(function(){return ye?[Ut[0],Ut[Ut.length-1]]:[Re,Ut[0]]},[Ut,ye,Re]),Pt=ce(kt,2),Lt=Pt[0],nt=Pt[1];s.useImperativeHandle(t,function(){return{focus:function(){he.current.focus(0)},blur:function(){var qe,at=document,dt=at.activeElement;(qe=Ce.current)!==null&&qe!==void 0&&qe.contains(dt)&&(dt==null||dt.blur())}}}),s.useEffect(function(){g&&he.current.focus(0)},[]);var St=s.useMemo(function(){return{min:Re,max:Fe,direction:pe,disabled:d,keyboard:m,step:je,included:V,includedStart:Lt,includedEnd:nt,range:ye,tabIndex:ue,ariaLabelForHandle:de,ariaLabelledByForHandle:ie,ariaRequired:se,ariaValueTextFormatterForHandle:ve,styles:l||{},classNames:i||{}}},[Re,Fe,pe,d,m,je,V,Lt,nt,ye,ue,de,ie,se,ve,l,i]);return s.createElement(pu.Provider,{value:St},s.createElement("div",{ref:Ce,className:oe(r,a,z(z(z(z({},"".concat(r,"-disabled"),d),"".concat(r,"-vertical"),K),"".concat(r,"-horizontal"),!K),"".concat(r,"-with-marks"),Le.length)),style:o,onMouseDown:We,id:c},s.createElement("div",{className:oe("".concat(r,"-rail"),i==null?void 0:i.rail),style:P(P({},Y),l==null?void 0:l.rail)}),re!==!1&&s.createElement(ohe,{prefixCls:r,style:U,values:Ke,startPoint:q,onStartMove:ut?Xt:void 0}),s.createElement(ahe,{prefixCls:r,marks:Le,dots:ne,style:J,activeStyle:Q}),s.createElement(ehe,{ref:he,prefixCls:r,style:G,values:tt,draggingIndex:mt,draggingDelete:bt,onStartMove:Xt,onOffsetChange:ft,onFocus:h,onBlur:b,handleRender:ae,activeHandleRender:le,onChangeComplete:Ze,onDelete:xe?vt:void 0}),s.createElement(nhe,{prefixCls:r,marks:Le,onClick:Ne})))});const FK=s.createContext({}),G5=s.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:a}=e,o=s.useRef(null),i=n&&!r,l=s.useRef(null);function c(){ln.cancel(l.current),l.current=null}function u(){l.current=ln(()=>{var d;(d=o.current)===null||d===void 0||d.forceAlign(),l.current=null})}return s.useEffect(()=>(i?u():c(),c),[i,e.title,a]),s.createElement(Bn,Object.assign({ref:Dr(o,t)},e,{open:i}))}),dhe=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:a,marginFull:o,marginPart:i,colorFillContentHover:l,handleColorDisabled:c,calc:u,handleSize:d,handleSizeHover:f,handleActiveColor:m,handleActiveOutlineColor:g,handleLineWidth:h,handleLineWidthHover:b,motionDurationMid:p}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{position:"relative",height:r,margin:`${me(i)} ${me(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${me(o)} ${me(i)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${p}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${p}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${me(h)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:u(h).mul(-1).equal(),insetBlockStart:u(h).mul(-1).equal(),width:u(d).add(u(h).mul(2)).equal(),height:u(d).add(u(h).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${me(h)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${p}, inset-block-start ${p}, width ${p}, @@ -347,14 +347,14 @@ html body { `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${me(h)} ${c}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},bK=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:l}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",g=l(r).mul(3).sub(a).div(2).equal(),h=l(a).sub(r).div(2).equal(),b=t?{borderWidth:`${me(h)} 0`,transform:`translateY(${me(l(h).mul(-1).equal())})`}:{borderWidth:`0 ${me(h)}`,transform:`translateX(${me(e.calc(h).mul(-1).equal())})`};return{[c]:r,[d]:l(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},b),[`${n}-handle`]:{[f]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[m]:l(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[m]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(o).div(2).equal()}}},Xpe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},bK(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Qpe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},bK(e,!1)),{height:"100%"})}},Jpe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,l=new gn(i).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:l,handleColorDisabled:new gn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},Zpe=un("Slider",e=>{const t=tn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[Ype(t),Xpe(t),Qpe(t)]},Jpe);function Px(){const[e,t]=s.useState(!1),n=s.useRef(null),r=()=>{on.cancel(n.current)},a=o=>{r(),o?t(o):n.current=on(()=>{t(o)})};return s.useEffect(()=>r,[]),[e,a]}var ehe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);atypeof n=="number"?n.toString():""}const yK=ee.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:l,tooltipPrefixCls:c,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:m,tooltip:g={},onChangeComplete:h,classNames:b,styles:p}=e,S=ehe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:C}=e,{getPrefixCls:x,direction:w,className:$,style:E,classNames:R,styles:I,getPopupContainer:O}=lr("slider"),T=ee.useContext(Lr),N=l??T,{handleRender:A,direction:k}=ee.useContext(hK),D=(k||w)==="rtl",[F,L]=Px(),[B,K]=Px(),W=Object.assign({},g),{open:V,placement:q,getPopupContainer:U,prefixCls:G,formatter:Y}=W,J=V??d,Q=(F||B)&&J!==!1,Z=the(Y,u),[ne,ae]=Px(),le=ye=>{h==null||h(ye),ae(!1)},re=(ye,xe)=>ye||(xe?D?"left":"right":"top"),fe=x("slider",n),[ue,de,ie]=Zpe(fe),se=oe(a,$,R.root,b==null?void 0:b.root,o,{[`${fe}-rtl`]:D,[`${fe}-lock`]:ne},de,ie);D&&!S.vertical&&(S.reverse=!S.reverse),ee.useEffect(()=>{const ye=()=>{on(()=>{K(!1)},1)};return document.addEventListener("mouseup",ye),()=>{document.removeEventListener("mouseup",ye)}},[]);const ve=r&&!J,he=A||((ye,xe)=>{const{index:$e}=xe,He=ye.props;function Te(Ee,Le,Pe){var ze,Oe,we,_e;Pe&&((Oe=(ze=S)[Ee])===null||Oe===void 0||Oe.call(ze,Le)),(_e=(we=He)[Ee])===null||_e===void 0||_e.call(we,Le)}const Re=Object.assign(Object.assign({},He),{onMouseEnter:Ee=>{L(!0),Te("onMouseEnter",Ee)},onMouseLeave:Ee=>{L(!1),Te("onMouseLeave",Ee)},onMouseDown:Ee=>{K(!0),ae(!0),Te("onMouseDown",Ee)},onFocus:Ee=>{var Le;K(!0),(Le=S.onFocus)===null||Le===void 0||Le.call(S,Ee),Te("onFocus",Ee,!0)},onBlur:Ee=>{var Le;K(!1),(Le=S.onBlur)===null||Le===void 0||Le.call(S,Ee),Te("onBlur",Ee,!0)}}),Fe=ee.cloneElement(ye,Re),je=(!!J||Q)&&Z!==null;return ve?Fe:ee.createElement(_5,Object.assign({},W,{prefixCls:x("tooltip",G??c),title:Z?Z(xe.value):"",value:xe.value,open:je,placement:re(q??m,C),key:$e,classNames:{root:`${fe}-tooltip`},getPopupContainer:U||f||O}),Fe)}),Ce=ve?(ye,xe)=>{const $e=ee.cloneElement(ye,{style:Object.assign(Object.assign({},ye.props.style),{visibility:"hidden"})});return ee.createElement(_5,Object.assign({},W,{prefixCls:x("tooltip",G??c),title:Z?Z(xe.value):"",open:Z!==null&&Q,placement:re(q??m,C),key:"tooltip",classNames:{root:`${fe}-tooltip`},getPopupContainer:U||f||O,draggingDelete:xe.draggingDelete}),$e)}:void 0,pe=Object.assign(Object.assign(Object.assign(Object.assign({},I.root),E),p==null?void 0:p.root),i),Se=Object.assign(Object.assign({},I.tracks),p==null?void 0:p.tracks),ge=oe(R.tracks,b==null?void 0:b.tracks);return ue(ee.createElement(Gpe,Object.assign({},S,{classNames:Object.assign({handle:oe(R.handle,b==null?void 0:b.handle),rail:oe(R.rail,b==null?void 0:b.rail),track:oe(R.track,b==null?void 0:b.track)},ge?{tracks:ge}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},I.handle),p==null?void 0:p.handle),rail:Object.assign(Object.assign({},I.rail),p==null?void 0:p.rail),track:Object.assign(Object.assign({},I.track),p==null?void 0:p.track)},Object.keys(Se).length?{tracks:Se}:{}),step:S.step,range:r,className:se,style:pe,disabled:N,ref:t,prefixCls:fe,handleRender:he,activeHandleRender:Ce,onChangeComplete:le})))});var nhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,colors:n,type:r,color:a,range:o=!1,className:i,activeIndex:l,onActive:c,onDragStart:u,onDragChange:d,onKeyDelete:f}=e,m=nhe(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),g=Object.assign(Object.assign({},m),{track:!1}),h=s.useMemo(()=>`linear-gradient(90deg, ${n.map(E=>`${E.color} ${E.percent}%`).join(", ")})`,[n]),b=s.useMemo(()=>!a||!r?null:r==="alpha"?a.toRgbString():`hsl(${a.toHsb().h}, 100%, 50%)`,[a,r]),p=Zt(u),S=Zt(d),C=s.useMemo(()=>({onDragStart:p,onDragChange:S}),[]),x=Zt(($,E)=>{const{onFocus:R,style:I,className:O,onKeyDown:T}=$.props,N=Object.assign({},I);return r==="gradient"&&(N.background=Tz(n,E.value)),s.cloneElement($,{onFocus:A=>{c==null||c(E.index),R==null||R(A)},style:N,className:oe(O,{[`${t}-slider-handle-active`]:l===E.index}),onKeyDown:A=>{(A.key==="Delete"||A.key==="Backspace")&&f&&f(E.index),T==null||T(A)}})}),w=s.useMemo(()=>({direction:"ltr",handleRender:x}),[]);return s.createElement(hK.Provider,{value:w},s.createElement(pK.Provider,{value:C},s.createElement(yK,Object.assign({},g,{className:oe(i,`${t}-slider`),tooltip:{open:!1},range:{editable:o,minCount:2},styles:{rail:{background:h},handle:b?{background:b}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},rhe=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,a=i=>n(i[0]),o=i=>r(i[0]);return s.createElement(CK,Object.assign({},e,{value:[t],onChange:a,onChangeComplete:o}))};function j5(e){return ke(e).sort((t,n)=>t.percent-n.percent)}const ahe=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:a,onActive:o,activeIndex:i,onGradientDragging:l,colors:c}=e,u=n==="gradient",d=s.useMemo(()=>c.map(S=>({percent:S.percent,color:S.color.toRgbString()})),[c]),f=s.useMemo(()=>d.map(S=>S.percent),[d]),m=s.useRef(d),g=({rawValues:S,draggingIndex:C,draggingValue:x})=>{if(S.length>d.length){const w=Tz(d,x),$=ke(d);$.splice(C,0,{percent:x,color:w}),m.current=$}else m.current=d;l(!0),r(new Mo(j5(m.current)),!0)},h=({deleteIndex:S,draggingIndex:C,draggingValue:x})=>{let w=ke(m.current);S!==-1?w.splice(S,1):(w[C]=Object.assign(Object.assign({},w[C]),{percent:x}),w=j5(w)),r(new Mo(w),!0)},b=S=>{const C=ke(d);C.splice(S,1);const x=new Mo(C);r(x),a(x)},p=S=>{a(new Mo(d)),i>=S.length&&o(S.length-1),l(!1)};return u?s.createElement(CK,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:p,disabled:!1,type:"gradient",activeIndex:i,onActive:o,onDragStart:g,onDragChange:h,onKeyDelete:b}):null},ohe=s.memo(ahe);var ihe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const e=s.useContext(rK),{mode:t,onModeChange:n,modeOptions:r,prefixCls:a,allowClear:o,value:i,disabledAlpha:l,onChange:c,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:m}=e,g=ihe(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),h=ee.useMemo(()=>i.cleared?[{percent:0,color:new Mo("")},{percent:100,color:new Mo("")}]:i.getColors(),[i]),b=!i.isGradient(),[p,S]=ee.useState(i);dn(()=>{var j;b||S((j=h[f])===null||j===void 0?void 0:j.color)},[b,h,m,f]);const C=ee.useMemo(()=>{var j;return b?i:m?p:(j=h[f])===null||j===void 0?void 0:j.color},[h,i,f,b,p,m]),[x,w]=ee.useState(C),[$,E]=wR(),R=x!=null&&x.equals(C)?C:x;dn(()=>{w(C)},[$,C==null?void 0:C.toHexString()]);const I=(j,D)=>{let F=Ea(j);if(i.cleared){const B=F.toRgb();if(!B.r&&!B.g&&!B.b&&D){const{type:K,value:W=0}=D;F=new Mo({h:K==="hue"?W:0,s:1,b:1,a:K==="alpha"?W/100:1})}else F=L0(F)}if(t==="single")return F;const L=ke(h);return L[f]=Object.assign(Object.assign({},L[f]),{color:F}),new Mo(L)},O=(j,D,F)=>{const L=I(j,F);w(L.isGradient()?L.getColors()[f].color:L),c(L,D)},T=(j,D)=>{d(I(j,D)),E()},N=j=>{c(I(j))};let A=null;const k=r.length>1;return(o||k)&&(A=ee.createElement("div",{className:`${a}-operation`},k&&ee.createElement(nK,{size:"small",options:r,value:t,onChange:n}),ee.createElement(oK,Object.assign({prefixCls:a,value:i,onChange:j=>{c(j),u==null||u()}},g)))),ee.createElement(ee.Fragment,null,A,ee.createElement(ohe,Object.assign({},e,{colors:h})),ee.createElement(_re,{prefixCls:a,value:R==null?void 0:R.toHsb(),disabledAlpha:l,onChange:(j,D)=>{O(j,!0,D)},onChangeComplete:(j,D)=>{T(j,D)},components:lhe}),ee.createElement(Fpe,Object.assign({value:C,onChange:N,prefixCls:a,disabledAlpha:l},g)))},D5=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=s.useContext(aK);return Array.isArray(n)?ee.createElement(Pae,{value:t,presets:n,prefixCls:e,onChange:r}):null},she=e=>{const{prefixCls:t,presets:n,panelRender:r,value:a,onChange:o,onClear:i,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:g,onActive:h,format:b,onFormatChange:p,gradientDragging:S,onGradientDragging:C,disabledFormat:x}=e,w=`${t}-inner`,$=ee.useMemo(()=>({prefixCls:t,value:a,onChange:o,onClear:i,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:g,onActive:h,format:b,onFormatChange:p,gradientDragging:S,onGradientDragging:C,disabledFormat:x}),[t,a,o,i,l,c,u,d,f,m,g,h,b,p,S,C,x]),E=ee.useMemo(()=>({prefixCls:t,value:a,presets:n,onChange:o}),[t,a,n,o]),R=ee.createElement("div",{className:`${w}-content`},ee.createElement(F5,null),Array.isArray(n)&&ee.createElement(tK,null),ee.createElement(D5,null));return ee.createElement(rK.Provider,{value:$},ee.createElement(aK.Provider,{value:E},ee.createElement("div",{className:w},typeof r=="function"?r(R,{components:{Picker:F5,Presets:D5}}):R)))};var che=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{color:n,prefixCls:r,open:a,disabled:o,format:i,className:l,showText:c,activeIndex:u}=e,d=che(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,m=`${f}-text`,g=`${m}-cell`,[h]=Pa("ColorPicker"),b=ee.useMemo(()=>{if(!c)return"";if(typeof c=="function")return c(n);if(n.cleared)return h.transparent;if(n.isGradient())return n.getColors().map((x,w)=>{const $=u!==-1&&u!==w;return ee.createElement("span",{key:w,className:oe(g,$&&`${g}-inactive`)},x.color.toRgbString()," ",x.percent,"%")});const S=n.toHexString().toUpperCase(),C=NR(n);switch(i){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return C<100?`${S.slice(0,7)},${C}%`:S}},[n,i,c,u,h.transparent,g]),p=s.useMemo(()=>n.cleared?ee.createElement(oK,{prefixCls:r}):ee.createElement(RR,{prefixCls:r,color:n.toCssString()}),[n,r]);return ee.createElement("div",Object.assign({ref:t,className:oe(f,l,{[`${f}-active`]:a,[`${f}-disabled`]:o})},dr(d)),p,c&&ee.createElement("div",{className:m},b))});function dhe(e,t,n){const[r]=Pa("ColorPicker"),[a,o]=_t(e,{value:t}),[i,l]=s.useState("single"),[c,u]=s.useMemo(()=>{const b=(Array.isArray(n)?n:[n]).filter(x=>x);b.length||b.push("single");const p=new Set(b),S=[],C=(x,w)=>{p.has(x)&&S.push({label:w,value:x})};return C("single",r.singleColor),C("gradient",r.gradientColor),[S,p]},[n,r.singleColor,r.gradientColor]),[d,f]=s.useState(null),m=Zt(b=>{f(b),o(b)}),g=s.useMemo(()=>{const b=Ea(a||"");return b.equals(d)?d:b},[a,d]),h=s.useMemo(()=>{var b;return u.has(i)?i:(b=c[0])===null||b===void 0?void 0:b.value},[u,i,c]);return s.useEffect(()=>{l(g.isGradient()?"gradient":"single")},[g]),[g,m,h,l,c]}const SK=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),k5=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:a,lineWidth:o,colorFillSecondary:i}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:a,flex:"none"},SK("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${me(o)} ${i}`,borderRadius:"inherit"}})}},fhe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:a,colorPickerAlphaInputWidth:o,marginXXS:i,paddingXXS:l,controlHeightSM:c,marginXS:u,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:g,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:a,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:g}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${me(o)}`,marginInlineStart:i},[`${t}-format-select${n}-select`]:{marginInlineEnd:u,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(i).equal(),fontSize:r,lineHeight:me(c)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:a},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${me(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:me(e.calc(c).sub(e.calc(h).mul(2)).equal())},[`${n}-input-prefix`]:{color:m}}}}}},vhe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:a,marginSM:o,colorBgElevated:i,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:u}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:a,inset:0},marginBottom:o},[`${t}-handler`]:{width:u,height:u,border:`${me(c)} solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${a}, 0 0 0 1px ${l}`}}},mhe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:a,colorPickerPresetColorSize:o,fontSizeSM:i,colorText:l,lineHeightSM:c,lineWidth:u,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:g,paddingXS:h,fontHeightSM:b}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:b,color:r,paddingInlineEnd:a}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${me(h)} 0`},"&-label":{fontSize:i,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(g).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:o,height:o,"&::before":{content:'""',pointerEvents:"none",width:e.calc(o).add(e.calc(u).mul(4)).equal(),height:e.calc(o).add(e.calc(u).mul(4)).equal(),position:"absolute",top:e.calc(u).mul(-2).equal(),insetInlineStart:e.calc(u).mul(-2).equal(),borderRadius:d,border:`${me(u)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(o).div(13).mul(5).equal(),height:e.calc(o).div(13).mul(8).equal(),border:`${me(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:i,color:r}}}},ghe=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:a,lineWidthBold:o,colorPickerHandlerSizeSM:i,colorPickerSliderHeight:l,marginSM:c,marginXS:u}=e,d=e.calc(i).sub(e.calc(o).mul(2).equal()).equal(),f=e.calc(i).add(e.calc(o).mul(2).equal()).equal(),m={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[SK(me(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:i,height:i,border:`${me(o)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${a}`,outline:"none",insetInlineStart:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":m}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:u,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":m}}}},tO=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${me(e.controlOutlineWidth)} ${n}`,outline:0}),phe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},A5=(e,t,n)=>{const{componentCls:r,borderRadiusSM:a,lineWidth:o,colorSplit:i,colorBorder:l,red6:c}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:a,border:`${me(o)} solid ${i}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},hhe=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:a,colorWarningHover:o,colorErrorOutline:i,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},tO(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},tO(e,r,l))}}},bhe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:a,controlHeightXS:o,borderRadius:i,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:u,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:u,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:i},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:me(o)}}}},yhe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:a,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:u,borderRadius:d,marginXS:f,marginSM:m,controlHeight:g,controlHeightSM:h,colorBgTextActive:b,colorPickerPresetColorSize:p,colorPickerPreviewSize:S,lineWidth:C,colorBorder:x,paddingXXS:w,fontSize:$,colorPrimaryHover:E,controlOutline:R}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${me(m)} 0 ${me(f)}`}},[`${n}-panel`]:Object.assign({},vhe(e))},ghe(e)),k5(e,S)),fhe(e)),mhe(e)),A5(e,p,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:g,minHeight:g,borderRadius:d,border:`${me(C)} solid ${x}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${o}`,background:i,padding:e.calc(w).sub(C).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(w).sub(C)).equal(),fontSize:$,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:E},[`&${n}-trigger-active`]:Object.assign({},tO(e,a,R)),"&-disabled":{color:l,background:u,cursor:"not-allowed","&:hover":{borderColor:b},[`${n}-trigger-text`]:{color:l}}},A5(e,h)),k5(e,h)),hhe(e)),bhe(e))},phe(e))},nc(e,{focusElCls:`${n}-trigger-active`})]},Che=un("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,a=tn(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return yhe(a)});var She=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{mode:t,value:n,defaultValue:r,format:a,defaultFormat:o,allowClear:i=!1,presets:l,children:c,trigger:u="click",open:d,disabled:f,placement:m="bottomLeft",arrow:g=!0,panelRender:h,showText:b,style:p,className:S,size:C,rootClassName:x,prefixCls:w,styles:$,disabledAlpha:E=!1,onFormatChange:R,onChange:I,onClear:O,onOpenChange:T,onChangeComplete:N,getPopupContainer:A,autoAdjustOverflow:k=!0,destroyTooltipOnHide:j,destroyOnHidden:D,disabledFormat:F}=e,L=She(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","destroyOnHidden","disabledFormat"]),{getPrefixCls:B,direction:K,colorPicker:W}=s.useContext(jt),V=s.useContext(Lr),q=f??V,[U,G]=_t(!1,{value:d,postState:we=>!q&&we,onChange:T}),[Y,J]=_t(a,{value:a,defaultValue:o,onChange:R}),Q=B("color-picker",w),[Z,ne,ae,le,re]=dhe(r,n,t),fe=s.useMemo(()=>NR(Z)<100,[Z]),[ue,de]=ee.useState(null),ie=we=>{if(N){let _e=Ea(we);E&&fe&&(_e=L0(we)),N(_e)}},se=(we,_e)=>{let Be=Ea(we);E&&fe&&(Be=L0(Be)),ne(Be),de(null),I&&I(Be,Be.toCssString()),_e||ie(Be)},[ve,he]=ee.useState(0),[Ce,pe]=ee.useState(!1),Se=we=>{if(le(we),we==="single"&&Z.isGradient())he(0),se(new Mo(Z.getColors()[0].color)),de(Z);else if(we==="gradient"&&!Z.isGradient()){const _e=fe?L0(Z):Z;se(new Mo(ue||[{percent:0,color:_e},{percent:100,color:_e}]))}},{status:ge}=ee.useContext(zr),{compactSize:ye,compactItemClassnames:xe}=ko(Q,K),$e=$r(we=>{var _e;return(_e=C??ye)!==null&&_e!==void 0?_e:we}),He=Gn(Q),[Te,Re,Fe]=Che(Q,He),je={[`${Q}-rtl`]:K},Ee=oe(x,Fe,He,je),Le=oe(Di(Q,ge),{[`${Q}-sm`]:$e==="small",[`${Q}-lg`]:$e==="large"},xe,W==null?void 0:W.className,Ee,S,Re),Pe=oe(Q,Ee),ze={open:U,trigger:u,placement:m,arrow:g,rootClassName:x,getPopupContainer:A,autoAdjustOverflow:k,destroyOnHidden:D??!!j},Oe=Object.assign(Object.assign({},W==null?void 0:W.style),p);return Te(ee.createElement(Bi,Object.assign({style:$==null?void 0:$.popup,styles:{body:$==null?void 0:$.popupOverlayInner},onOpenChange:we=>{(!we||!q)&&G(we)},content:ee.createElement(oi,{form:!0},ee.createElement(she,{mode:ae,onModeChange:Se,modeOptions:re,prefixCls:Q,value:Z,allowClear:i,disabled:q,disabledAlpha:E,presets:l,panelRender:h,format:Y,onFormatChange:J,onChange:se,onChangeComplete:ie,onClear:O,activeIndex:ve,onActive:he,gradientDragging:Ce,onGradientDragging:pe,disabledFormat:F})),classNames:{root:Pe}},ze),c||ee.createElement(uhe,Object.assign({activeIndex:U?ve:-1,open:U,className:Le,style:Oe,prefixCls:Q,disabled:q,showText:b,format:Y},L,{color:Z}))))},xhe=rc(R4,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);R4._InternalPanelDoNotUseOrYouWillBeFired=xhe;var whe={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"},$he=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:whe}))},Ehe=s.forwardRef($he);const xK=(e,t,n,r,a)=>{const{classNames:o,styles:i}=lr(e),[l,c]=xne([o,t],[i,n],{popup:{_default:"root"}});return s.useMemo(()=>{var u,d;const f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:oe((u=l.popup)===null||u===void 0?void 0:u.root,r)})}),m=Object.assign(Object.assign({},c),{popup:Object.assign(Object.assign({},c.popup),{root:Object.assign(Object.assign({},(d=c.popup)===null||d===void 0?void 0:d.root),a)})});return[f,m]},[l,c,r,a])};function Phe(e,t,n){return n!==void 0?n: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 Ohe(e,t,n){return n!==void 0?n: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 wK(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=r1(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[s.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[Ihe,Rhe]=["week","WeekPicker"],[Mhe,The]=["month","MonthPicker"],[Nhe,_he]=["year","YearPicker"],[jhe,Fhe]=["quarter","QuarterPicker"],[M4,L5]=["time","TimePicker"];var Dhe={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"},khe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Dhe}))},Ahe=s.forwardRef(khe),Lhe={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"},Bhe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Lhe}))},zhe=s.forwardRef(Bhe);const $K=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ee.createElement(ee.Fragment,null,e===M4?ee.createElement(zhe,null):ee.createElement(Ahe,null),t&&n):r,Hhe=e=>s.createElement(jn,Object.assign({size:"small",type:"primary"},e));function EK(e){return s.useMemo(()=>Object.assign({button:Hhe},e),[e])}var Vhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:l,className:c,style:u,placement:d,size:f,disabled:m,bordered:g=!0,placeholder:h,popupStyle:b,popupClassName:p,dropdownClassName:S,status:C,rootClassName:x,variant:w,picker:$,styles:E,classNames:R,suffixIcon:I}=n,O=Vhe(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),T=$===M4?"timePicker":"datePicker",N=s.useRef(null),{getPrefixCls:A,direction:k,getPopupContainer:j,rangePicker:D}=s.useContext(jt),F=A("picker",o),{compactSize:L,compactItemClassnames:B}=ko(F,k),K=A(),[W,V]=Gl("rangePicker",w,g),q=Gn(F),[U,G,Y]=$W(F,q),[J,Q]=xK(T,R,E,p||S,b),[Z]=wK(n,F),ne=EK(l),ae=$r(pe=>{var Se;return(Se=f??L)!==null&&Se!==void 0?Se:pe}),le=s.useContext(Lr),re=m??le,fe=s.useContext(zr),{hasFeedback:ue,status:de,feedbackIcon:ie}=fe,se=s.createElement($K,{picker:$,hasFeedback:ue,feedbackIcon:ie,suffixIcon:I});s.useImperativeHandle(r,()=>N.current);const[ve]=Pa("Calendar",vb),he=Object.assign(Object.assign({},ve),n.locale),[Ce]=ui("DatePicker",(a=Q.popup.root)===null||a===void 0?void 0:a.zIndex);return U(s.createElement(oi,{space:!0},s.createElement(hve,Object.assign({separator:s.createElement("span",{"aria-label":"to",className:`${F}-separator`},s.createElement(Ehe,null)),disabled:re,ref:N,placement:d,placeholder:Ohe(he,$,h),suffixIcon:se,prevIcon:s.createElement("span",{className:`${F}-prev-icon`}),nextIcon:s.createElement("span",{className:`${F}-next-icon`}),superPrevIcon:s.createElement("span",{className:`${F}-super-prev-icon`}),superNextIcon:s.createElement("span",{className:`${F}-super-next-icon`}),transitionName:`${K}-slide-up`,picker:$},O,{className:oe({[`${F}-${ae}`]:ae,[`${F}-${W}`]:V},Di(F,Ul(de,C),ue),G,B,c,D==null?void 0:D.className,Y,q,x,J.root),style:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),u),Q.root),locale:he.lang,prefixCls:F,getPopupContainer:i||j,generateConfig:e,components:ne,direction:k,classNames:{popup:oe(G,Y,q,x,J.popup.root)},styles:{popup:Object.assign(Object.assign({},Q.popup.root),{zIndex:Ce})},allowClear:Z}))))});var Khe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const t=(c,u)=>{const d=u===L5?"timePicker":"datePicker";return s.forwardRef((m,g)=>{var h;const{prefixCls:b,getPopupContainer:p,components:S,style:C,className:x,rootClassName:w,size:$,bordered:E,placement:R,placeholder:I,popupStyle:O,popupClassName:T,dropdownClassName:N,disabled:A,status:k,variant:j,onCalendarChange:D,styles:F,classNames:L,suffixIcon:B}=m,K=Khe(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:W,direction:V,getPopupContainer:q,[d]:U}=s.useContext(jt),G=W("picker",b),{compactSize:Y,compactItemClassnames:J}=ko(G,V),Q=s.useRef(null),[Z,ne]=Gl("datePicker",j,E),ae=Gn(G),[le,re,fe]=$W(G,ae);s.useImperativeHandle(g,()=>Q.current);const ue={showToday:!0},de=c||m.picker,ie=W(),{onSelect:se,multiple:ve}=K,he=se&&c==="time"&&!ve,Ce=(we,_e,Be)=>{D==null||D(we,_e,Be),he&&se(we)},[pe,Se]=xK(d,L,F,T||N,O),[ge,ye]=wK(m,G),xe=EK(S),$e=$r(we=>{var _e;return(_e=$??Y)!==null&&_e!==void 0?_e:we}),He=s.useContext(Lr),Te=A??He,Re=s.useContext(zr),{hasFeedback:Fe,status:je,feedbackIcon:Ee}=Re,Le=s.createElement($K,{picker:de,hasFeedback:Fe,feedbackIcon:Ee,suffixIcon:B}),[Pe]=Pa("DatePicker",vb),ze=Object.assign(Object.assign({},Pe),m.locale),[Oe]=ui("DatePicker",(h=Se.popup.root)===null||h===void 0?void 0:h.zIndex);return le(s.createElement(oi,{space:!0},s.createElement(wve,Object.assign({ref:Q,placeholder:Phe(ze,de,I),suffixIcon:Le,placement:R,prevIcon:s.createElement("span",{className:`${G}-prev-icon`}),nextIcon:s.createElement("span",{className:`${G}-next-icon`}),superPrevIcon:s.createElement("span",{className:`${G}-super-prev-icon`}),superNextIcon:s.createElement("span",{className:`${G}-super-next-icon`}),transitionName:`${ie}-slide-up`,picker:c,onCalendarChange:Ce},ue,K,{locale:ze.lang,className:oe({[`${G}-${$e}`]:$e,[`${G}-${Z}`]:ne},Di(G,Ul(je,k),Fe),re,J,U==null?void 0:U.className,x,fe,ae,w,pe.root),style:Object.assign(Object.assign(Object.assign({},U==null?void 0:U.style),C),Se.root),prefixCls:G,getPopupContainer:p||q,generateConfig:e,components:xe,direction:V,disabled:Te,classNames:{popup:oe(re,fe,ae,w,pe.popup.root)},styles:{popup:Object.assign(Object.assign({},Se.popup.root),{zIndex:Oe})},allowClear:ge,removeIcon:ye}))))})},n=t(),r=t(Ihe,Rhe),a=t(Mhe,The),o=t(Nhe,_he),i=t(jhe,Fhe),l=t(M4,L5);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:l,QuarterPicker:i}},PK=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=qhe(e),l=Whe(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=l,c.TimePicker=o,c.QuarterPicker=i,c},ii=PK(Efe),Uhe=rc(ii,"popupAlign",void 0,"picker");ii._InternalPanelDoNotUseOrYouWillBeFired=Uhe;const Ghe=rc(ii.RangePicker,"popupAlign",void 0,"picker");ii._InternalRangePanelDoNotUseOrYouWillBeFired=Ghe;ii.generatePicker=PK;const Yhe={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},T4=ee.createContext({});var Xhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);arr(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function Jhe(e,t,n){const r=s.useMemo(()=>t||Qhe(n),[t,n]);return s.useMemo(()=>r.map(o=>{var{span:i}=o,l=Xhe(o,["span"]);return i==="filled"?Object.assign(Object.assign({},l),{filled:!0}):Object.assign(Object.assign({},l),{span:typeof i=="number"?i:WH(e,i)})}),[r,e])}var Zhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ai).forEach(i=>{const{filled:l}=i,c=Zhe(i,["filled"]);if(l){r.push(c),n.push(r),r=[],o=0;return}const u=t-o;o+=i.span||1,o>=t?(o>t?(a=!0,r.push(Object.assign(Object.assign({},c),{span:u}))):r.push(c),n.push(r),r=[],o=0):r.push(c)}),r.length>0&&n.push(r),n=n.map(i=>{const l=i.reduce((c,u)=>c+(u.span||1),0);if(l{const[n,r]=s.useMemo(()=>e0e(t,e),[t,e]);return n},n0e=({children:e})=>e,Ch=e=>e!=null,Ox=e=>{const{itemPrefixCls:t,component:n,span:r,className:a,style:o,labelStyle:i,contentStyle:l,bordered:c,label:u,content:d,colon:f,type:m,styles:g}=e,h=n,{classNames:b}=s.useContext(T4),p=Object.assign(Object.assign({},i),g==null?void 0:g.label),S=Object.assign(Object.assign({},l),g==null?void 0:g.content);return c?s.createElement(h,{colSpan:r,style:o,className:oe(a,{[`${t}-item-${m}`]:m==="label"||m==="content",[b==null?void 0:b.label]:(b==null?void 0:b.label)&&m==="label",[b==null?void 0:b.content]:(b==null?void 0:b.content)&&m==="content"})},Ch(u)&&s.createElement("span",{style:p},u),Ch(d)&&s.createElement("span",{style:S},d)):s.createElement(h,{colSpan:r,style:o,className:oe(`${t}-item`,a)},s.createElement("div",{className:`${t}-item-container`},Ch(u)&&s.createElement("span",{style:p,className:oe(`${t}-item-label`,b==null?void 0:b.label,{[`${t}-item-no-colon`]:!f})},u),Ch(d)&&s.createElement("span",{style:S,className:oe(`${t}-item-content`,b==null?void 0:b.content)},d)))};function Ix(e,{colon:t,prefixCls:n,bordered:r},{component:a,type:o,showLabel:i,showContent:l,labelStyle:c,contentStyle:u,styles:d}){return e.map(({label:f,children:m,prefixCls:g=n,className:h,style:b,labelStyle:p,contentStyle:S,span:C=1,key:x,styles:w},$)=>typeof a=="string"?s.createElement(Ox,{key:`${o}-${x||$}`,className:h,style:b,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),p),w==null?void 0:w.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),S),w==null?void 0:w.content)},span:C,colon:t,component:a,itemPrefixCls:g,bordered:r,label:i?f:null,content:l?m:null,type:o}):[s.createElement(Ox,{key:`label-${x||$}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),b),p),w==null?void 0:w.label),span:1,colon:t,component:a[0],itemPrefixCls:g,bordered:r,label:f,type:"label"}),s.createElement(Ox,{key:`content-${x||$}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),b),S),w==null?void 0:w.content),span:C*2-1,component:a[1],itemPrefixCls:g,bordered:r,content:m,type:"content"})])}const r0e=e=>{const t=s.useContext(T4),{prefixCls:n,vertical:r,row:a,index:o,bordered:i}=e;return r?s.createElement(s.Fragment,null,s.createElement("tr",{key:`label-${o}`,className:`${n}-row`},Ix(a,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),s.createElement("tr",{key:`content-${o}`,className:`${n}-row`},Ix(a,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):s.createElement("tr",{key:o,className:`${n}-row`},Ix(a,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},a0e=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${me(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:`${me(e.padding)} ${me(e.paddingLG)}`,borderInlineEnd:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${me(e.paddingSM)} ${me(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${me(e.paddingXS)} ${me(e.padding)}`}}}}}},o0e=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:a,colonMarginRight:o,colonMarginLeft:i,titleMarginBottom:l}=e;return{[t]:Object.assign(Object.assign(Object.assign({},wn(e)),a0e(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:Object.assign(Object.assign({},ni),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,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:`${me(i)} ${me(o)}`},[`&${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}}}})}},i0e=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}),l0e=un("Descriptions",e=>{const t=tn(e,{});return o0e(t)},i0e);var s0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,title:n,extra:r,column:a,colon:o=!0,bordered:i,layout:l,children:c,className:u,rootClassName:d,style:f,size:m,labelStyle:g,contentStyle:h,styles:b,items:p,classNames:S}=e,C=s0e(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:x,direction:w,className:$,style:E,classNames:R,styles:I}=lr("descriptions"),O=x("descriptions",t),T=uu(),N=s.useMemo(()=>{var K;return typeof a=="number"?a:(K=WH(T,Object.assign(Object.assign({},Yhe),a)))!==null&&K!==void 0?K:3},[T,a]),A=Jhe(T,p,c),k=$r(m),j=t0e(N,A),[D,F,L]=l0e(O),B=s.useMemo(()=>({labelStyle:g,contentStyle:h,styles:{content:Object.assign(Object.assign({},I.content),b==null?void 0:b.content),label:Object.assign(Object.assign({},I.label),b==null?void 0:b.label)},classNames:{label:oe(R.label,S==null?void 0:S.label),content:oe(R.content,S==null?void 0:S.content)}}),[g,h,b,S,R,I]);return D(s.createElement(T4.Provider,{value:B},s.createElement("div",Object.assign({className:oe(O,$,R.root,S==null?void 0:S.root,{[`${O}-${k}`]:k&&k!=="default",[`${O}-bordered`]:!!i,[`${O}-rtl`]:w==="rtl"},u,d,F,L),style:Object.assign(Object.assign(Object.assign(Object.assign({},E),I.root),b==null?void 0:b.root),f)},C),(n||r)&&s.createElement("div",{className:oe(`${O}-header`,R.header,S==null?void 0:S.header),style:Object.assign(Object.assign({},I.header),b==null?void 0:b.header)},n&&s.createElement("div",{className:oe(`${O}-title`,R.title,S==null?void 0:S.title),style:Object.assign(Object.assign({},I.title),b==null?void 0:b.title)},n),r&&s.createElement("div",{className:oe(`${O}-extra`,R.extra,S==null?void 0:S.extra),style:Object.assign(Object.assign({},I.extra),b==null?void 0:b.extra)},r)),s.createElement("div",{className:`${O}-view`},s.createElement("table",null,s.createElement("tbody",null,j.map((K,W)=>s.createElement(r0e,{key:W,index:W,colon:o,prefixCls:O,vertical:l==="vertical",bordered:i,row:K}))))))))};Sa.Item=n0e;var B5=s.createContext(null),OK=s.createContext({}),c0e=["prefixCls","className","containerRef"],u0e=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,o=Ue(t,c0e),i=s.useContext(OK),l=i.panel,c=Ai(l,a);return s.createElement("div",Me({className:oe("".concat(n,"-content"),r),role:"dialog",ref:c},dr(t,{aria:!0}),{"aria-modal":"true"},o))};function z5(e){return typeof e=="string"&&String(Number(e))===e?(Wn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var H5={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function d0e(e,t){var n,r,a,o=e.prefixCls,i=e.open,l=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,m=e.keyboard,g=e.classNames,h=e.rootClassName,b=e.rootStyle,p=e.zIndex,S=e.className,C=e.id,x=e.style,w=e.motion,$=e.width,E=e.height,R=e.children,I=e.mask,O=e.maskClosable,T=e.maskMotion,N=e.maskClassName,A=e.maskStyle,k=e.afterOpenChange,j=e.onClose,D=e.onMouseEnter,F=e.onMouseOver,L=e.onMouseLeave,B=e.onClick,K=e.onKeyDown,W=e.onKeyUp,V=e.styles,q=e.drawerRender,U=s.useRef(),G=s.useRef(),Y=s.useRef();s.useImperativeHandle(t,function(){return U.current});var J=function(Se){var ge=Se.keyCode,ye=Se.shiftKey;switch(ge){case ot.TAB:{if(ge===ot.TAB){if(!ye&&document.activeElement===Y.current){var xe;(xe=G.current)===null||xe===void 0||xe.focus({preventScroll:!0})}else if(ye&&document.activeElement===G.current){var $e;($e=Y.current)===null||$e===void 0||$e.focus({preventScroll:!0})}}break}case ot.ESC:{j&&m&&(Se.stopPropagation(),j(Se));break}}};s.useEffect(function(){if(i&&f){var pe;(pe=U.current)===null||pe===void 0||pe.focus({preventScroll:!0})}},[i]);var Q=s.useState(!1),Z=ce(Q,2),ne=Z[0],ae=Z[1],le=s.useContext(B5),re;typeof u=="boolean"?re=u?{}:{distance:0}:re=u||{};var fe=(n=(r=(a=re)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:le==null?void 0:le.pushDistance)!==null&&n!==void 0?n:180,ue=s.useMemo(function(){return{pushDistance:fe,push:function(){ae(!0)},pull:function(){ae(!1)}}},[fe]);s.useEffect(function(){if(i){var pe;le==null||(pe=le.push)===null||pe===void 0||pe.call(le)}else{var Se;le==null||(Se=le.pull)===null||Se===void 0||Se.call(le)}},[i]),s.useEffect(function(){return function(){var pe;le==null||(pe=le.pull)===null||pe===void 0||pe.call(le)}},[]);var de=s.createElement(ma,Me({key:"mask"},T,{visible:I&&i}),function(pe,Se){var ge=pe.className,ye=pe.style;return s.createElement("div",{className:oe("".concat(o,"-mask"),ge,g==null?void 0:g.mask,N),style:P(P(P({},ye),A),V==null?void 0:V.mask),onClick:O&&i?j:void 0,ref:Se})}),ie=typeof w=="function"?w(l):w,se={};if(ne&&fe)switch(l){case"top":se.transform="translateY(".concat(fe,"px)");break;case"bottom":se.transform="translateY(".concat(-fe,"px)");break;case"left":se.transform="translateX(".concat(fe,"px)");break;default:se.transform="translateX(".concat(-fe,"px)");break}l==="left"||l==="right"?se.width=z5($):se.height=z5(E);var ve={onMouseEnter:D,onMouseOver:F,onMouseLeave:L,onClick:B,onKeyDown:K,onKeyUp:W},he=s.createElement(ma,Me({key:"panel"},ie,{visible:i,forceRender:d,onVisibleChanged:function(Se){k==null||k(Se)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(pe,Se){var ge=pe.className,ye=pe.style,xe=s.createElement(u0e,Me({id:C,containerRef:Se,prefixCls:o,className:oe(S,g==null?void 0:g.content),style:P(P({},x),V==null?void 0:V.content)},dr(e,{aria:!0}),ve),R);return s.createElement("div",Me({className:oe("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,ge),style:P(P(P({},se),ye),V==null?void 0:V.wrapper)},dr(e,{data:!0})),q?q(xe):xe)}),Ce=P({},b);return p&&(Ce.zIndex=p),s.createElement(B5.Provider,{value:ue},s.createElement("div",{className:oe(o,"".concat(o,"-").concat(l),h,z(z({},"".concat(o,"-open"),i),"".concat(o,"-inline"),c)),style:Ce,tabIndex:-1,ref:U,onKeyDown:J},de,s.createElement("div",{tabIndex:0,ref:G,style:H5,"aria-hidden":"true","data-sentinel":"start"}),he,s.createElement("div",{tabIndex:0,ref:Y,style:H5,"aria-hidden":"true","data-sentinel":"end"})))}var f0e=s.forwardRef(d0e),v0e=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,i=t.placement,l=i===void 0?"right":i,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,f=d===void 0?!0:d,m=t.width,g=m===void 0?378:m,h=t.mask,b=h===void 0?!0:h,p=t.maskClosable,S=p===void 0?!0:p,C=t.getContainer,x=t.forceRender,w=t.afterOpenChange,$=t.destroyOnClose,E=t.onMouseEnter,R=t.onMouseOver,I=t.onMouseLeave,O=t.onClick,T=t.onKeyDown,N=t.onKeyUp,A=t.panelRef,k=s.useState(!1),j=ce(k,2),D=j[0],F=j[1],L=s.useState(!1),B=ce(L,2),K=B[0],W=B[1];dn(function(){W(!0)},[]);var V=K?r:!1,q=s.useRef(),U=s.useRef();dn(function(){V&&(U.current=document.activeElement)},[V]);var G=function(ne){var ae;if(F(ne),w==null||w(ne),!ne&&U.current&&!((ae=q.current)!==null&&ae!==void 0&&ae.contains(U.current))){var le;(le=U.current)===null||le===void 0||le.focus({preventScroll:!0})}},Y=s.useMemo(function(){return{panel:A}},[A]);if(!x&&!D&&!V&&$)return null;var J={onMouseEnter:E,onMouseOver:R,onMouseLeave:I,onClick:O,onKeyDown:T,onKeyUp:N},Q=P(P({},t),{},{open:V,prefixCls:o,placement:l,autoFocus:u,keyboard:f,width:g,mask:b,maskClosable:S,inline:C===!1,afterOpenChange:G,ref:q},J);return s.createElement(OK.Provider,{value:Y},s.createElement(gg,{open:V||x||D,autoDestroy:!1,getContainer:C,autoLock:b&&(V||D)},s.createElement(f0e,Q)))};const IK=e=>{var t,n;const{prefixCls:r,ariaId:a,title:o,footer:i,extra:l,closable:c,loading:u,onClose:d,headerStyle:f,bodyStyle:m,footerStyle:g,children:h,classNames:b,styles:p}=e,S=lr("drawer");let C;c===!1?C=void 0:c===void 0||c===!0?C="start":C=(c==null?void 0:c.placement)==="end"?"end":"start";const x=s.useCallback(I=>s.createElement("button",{type:"button",onClick:d,className:oe(`${r}-close`,{[`${r}-close-${C}`]:C==="end"})},I),[d,r,C]),[w,$]=xR(Xd(e),Xd(S),{closable:!0,closeIconRender:x}),E=()=>{var I,O;return!o&&!w?null:s.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(I=S.styles)===null||I===void 0?void 0:I.header),f),p==null?void 0:p.header),className:oe(`${r}-header`,{[`${r}-header-close-only`]:w&&!o&&!l},(O=S.classNames)===null||O===void 0?void 0:O.header,b==null?void 0:b.header)},s.createElement("div",{className:`${r}-header-title`},C==="start"&&$,o&&s.createElement("div",{className:`${r}-title`,id:a},o)),l&&s.createElement("div",{className:`${r}-extra`},l),C==="end"&&$)},R=()=>{var I,O;if(!i)return null;const T=`${r}-footer`;return s.createElement("div",{className:oe(T,(I=S.classNames)===null||I===void 0?void 0:I.footer,b==null?void 0:b.footer),style:Object.assign(Object.assign(Object.assign({},(O=S.styles)===null||O===void 0?void 0:O.footer),g),p==null?void 0:p.footer)},i)};return s.createElement(s.Fragment,null,E(),s.createElement("div",{className:oe(`${r}-body`,b==null?void 0:b.body,(t=S.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=S.styles)===null||n===void 0?void 0:n.body),m),p==null?void 0:p.body)},u?s.createElement(ql,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),R())},m0e=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},RK=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),MK=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},RK({opacity:e},{opacity:1})),g0e=(e,t)=>[MK(.7,t),RK({transform:m0e(e)},{transform:"none"})],p0e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:MK(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:g0e(a,n)}),{})}}},h0e=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:l,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:m,lineWidth:g,lineType:h,colorSplit:b,marginXS:p,colorIcon:S,colorIconHover:C,colorBgTextHover:x,colorBgTextActive:w,colorText:$,fontWeightStrong:E,footerPaddingBlock:R,footerPaddingInline:I,calc:O}=e,T=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:$,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[T]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${T}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${T}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${T}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${T}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${me(u)} ${me(d)}`,fontSize:f,lineHeight:m,borderBottom:`${me(g)} ${h} ${b}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:O(f).add(c).equal(),height:O(f).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:S,fontWeight:E,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:p},[`&:not(${n}-close-end)`]:{marginInlineEnd:p},"&:hover":{color:C,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:w}},Ga(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:m},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${me(R)} ${me(I)}`,borderTop:`${me(g)} ${h} ${b}`},"&-rtl":{direction:"rtl"}}}},b0e=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),TK=un("Drawer",e=>{const t=tn(e,{});return[h0e(t),p0e(t)]},b0e);var NK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:i=y0e,open:l,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:f,panelRef:m=null,style:g,className:h,"aria-labelledby":b,visible:p,afterVisibleChange:S,maskStyle:C,drawerStyle:x,contentWrapperStyle:w,destroyOnClose:$,destroyOnHidden:E}=e,R=NK(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),I=Cf(),O=R.title?I:void 0,{getPopupContainer:T,getPrefixCls:N,direction:A,className:k,style:j,classNames:D,styles:F}=lr("drawer"),L=N("drawer",d),[B,K,W]=TK(L),V=f===void 0&&T?()=>T(document.body):f,q=oe({"no-mask":!o,[`${L}-rtl`]:A==="rtl"},t,K,W),U=s.useMemo(()=>n??(a==="large"?736:378),[n,a]),G=s.useMemo(()=>r??(a==="large"?736:378),[r,a]),Y={motionName:ga(L,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},J=fe=>({motionName:ga(L,`panel-motion-${fe}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Q=eH(),Z=Fr(m,Q),[ne,ae]=ui("Drawer",R.zIndex),{classNames:le={},styles:re={}}=R;return B(s.createElement(oi,{form:!0,space:!0},s.createElement(dg.Provider,{value:ae},s.createElement(v0e,Object.assign({prefixCls:L,onClose:u,maskMotion:Y,motion:J},R,{classNames:{mask:oe(le.mask,D.mask),content:oe(le.content,D.content),wrapper:oe(le.wrapper,D.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},re.mask),C),F.mask),content:Object.assign(Object.assign(Object.assign({},re.content),x),F.content),wrapper:Object.assign(Object.assign(Object.assign({},re.wrapper),w),F.wrapper)},open:l??p,mask:o,push:i,width:U,height:G,style:Object.assign(Object.assign({},j),g),className:oe(k,h),rootClassName:q,getContainer:V,afterOpenChange:c??S,panelRef:Z,zIndex:ne,"aria-labelledby":b??O,destroyOnClose:E??$}),s.createElement(IK,Object.assign({prefixCls:L},R,{ariaId:O,onClose:u}))))))},C0e=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=NK(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=s.useContext(jt),l=i("drawer",t),[c,u,d]=TK(l),f=oe(l,`${l}-pure`,`${l}-${a}`,u,d,r);return c(s.createElement("div",{className:f,style:n},s.createElement(IK,Object.assign({prefixCls:l},o))))};N4._InternalPanelDoNotUseOrYouWillBeFired=C0e;function V5(e){return["small","middle","large"].includes(e)}function W5(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const S0e=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:o,fontSizeLG:i,fontSizeSM:l,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:"solid",borderColor:a,borderRadius:n,"&-large":{fontSize:i,borderRadius:c},"&-small":{paddingInline:o,borderRadius:u,fontSize:l},"&-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}},nc(e,{focus:!1})]}},x0e=un(["Space","Addon"],e=>[S0e(e)]);var w0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{className:n,children:r,style:a,prefixCls:o}=e,i=w0e(e,["className","children","style","prefixCls"]),{getPrefixCls:l,direction:c}=ee.useContext(jt),u=l("space-addon",o),[d,f,m]=x0e(u),{compactItemClassnames:g,compactSize:h}=ko(u,c),b=oe(u,f,g,m,{[`${u}-${h}`]:h},n);return d(ee.createElement("div",Object.assign({ref:t,className:b,style:a},i),r))}),_K=ee.createContext({latestIndex:0}),E0e=_K.Provider,P0e=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:o}=s.useContext(_K);return n==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:e,style:a},n),t{const{componentCls:t,antCls:n}=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 > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},I0e=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}}}},R0e=un("Space",e=>{const t=tn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[O0e(t),I0e(t)]},()=>({}),{resetStyle:!1});var M0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{getPrefixCls:r,direction:a,size:o,className:i,style:l,classNames:c,styles:u}=lr("space"),{size:d=o??"small",align:f,className:m,rootClassName:g,children:h,direction:b="horizontal",prefixCls:p,split:S,style:C,wrap:x=!1,classNames:w,styles:$}=e,E=M0e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[R,I]=Array.isArray(d)?d:[d,d],O=V5(I),T=V5(R),N=W5(I),A=W5(R),k=rr(h,{keepEmpty:!0}),j=f===void 0&&b==="horizontal"?"center":f,D=r("space",p),[F,L,B]=R0e(D),K=oe(D,i,L,`${D}-${b}`,{[`${D}-rtl`]:a==="rtl",[`${D}-align-${j}`]:j,[`${D}-gap-row-${I}`]:O,[`${D}-gap-col-${R}`]:T},m,g,B),W=oe(`${D}-item`,(n=w==null?void 0:w.item)!==null&&n!==void 0?n:c.item),V=Object.assign(Object.assign({},u.item),$==null?void 0:$.item),q=k.map((Y,J)=>{const Q=(Y==null?void 0:Y.key)||`${W}-${J}`;return s.createElement(P0e,{className:W,key:Q,index:J,split:S,style:V},Y)}),U=s.useMemo(()=>({latestIndex:k.reduce((J,Q,Z)=>Q!=null?Z:J,0)}),[k]);if(k.length===0)return null;const G={};return x&&(G.flexWrap="wrap"),!T&&A&&(G.columnGap=R),!O&&N&&(G.rowGap=I),F(s.createElement("div",Object.assign({ref:t,className:K,style:Object.assign(Object.assign(Object.assign({},G),l),C)},E),s.createElement(E0e,{value:U},q)))}),Jn=T0e;Jn.Compact=mre;Jn.Addon=$0e;var N0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(jt),{prefixCls:a,type:o="default",danger:i,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:g,arrow:h,autoFocus:b,overlay:p,trigger:S,align:C,open:x,onOpenChange:w,placement:$,getPopupContainer:E,href:R,icon:I=s.createElement(l4,null),title:O,buttonsRender:T=le=>le,mouseEnterDelay:N,mouseLeaveDelay:A,overlayClassName:k,overlayStyle:j,destroyOnHidden:D,destroyPopupOnHide:F,dropdownRender:L,popupRender:B}=e,K=N0e(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"]),W=n("dropdown",a),V=`${W}-button`,U={menu:g,arrow:h,autoFocus:b,align:C,disabled:l,trigger:l?[]:S,onOpenChange:w,getPopupContainer:E||t,mouseEnterDelay:N,mouseLeaveDelay:A,overlayClassName:k,overlayStyle:j,destroyOnHidden:D,popupRender:B||L},{compactSize:G,compactItemClassnames:Y}=ko(W,r),J=oe(V,Y,m);"destroyPopupOnHide"in e&&(U.destroyPopupOnHide=F),"overlay"in e&&(U.overlay=p),"open"in e&&(U.open=x),"placement"in e?U.placement=$:U.placement=r==="rtl"?"bottomLeft":"bottomRight";const Q=s.createElement(jn,{type:o,danger:i,disabled:l,loading:c,onClick:u,htmlType:d,href:R,title:O},f),Z=s.createElement(jn,{type:o,danger:i,icon:I}),[ne,ae]=T([Q,Z]);return s.createElement(Jn.Compact,Object.assign({className:J,size:G,block:!0},K),ne,s.createElement(xg,Object.assign({},U),ae))};jK.__ANT_BUTTON=!0;const Nf=xg;Nf.Button=jK;function _0e(e){return e==null?null:typeof e=="object"&&!s.isValidElement(e)?e:{title:e}}function Xb(e){const[t,n]=s.useState(e);return s.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const j0e=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},DK=(e,t)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:o,marginFull:i,calc:l}=e,c=t?"paddingBlock":"paddingInline",u=t?"width":"height",d=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",g=l(r).mul(3).sub(a).div(2).equal(),h=l(a).sub(r).div(2).equal(),b=t?{borderWidth:`${me(h)} 0`,transform:`translateY(${me(l(h).mul(-1).equal())})`}:{borderWidth:`0 ${me(h)}`,transform:`translateX(${me(e.calc(h).mul(-1).equal())})`};return{[c]:r,[d]:l(r).mul(3).equal(),[`${n}-rail`]:{[u]:"100%",[d]:r},[`${n}-track,${n}-tracks`]:{[d]:r},[`${n}-track-draggable`]:Object.assign({},b),[`${n}-handle`]:{[f]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[m]:l(r).mul(3).add(t?0:i).equal(),[u]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[m]:r,[u]:"100%",[d]:r},[`${n}-dot`]:{position:"absolute",[f]:l(r).sub(o).div(2).equal()}}},fhe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},DK(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},vhe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},DK(e,!1)),{height:"100%"})}},mhe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,a=e.lineWidth+1,o=e.lineWidth+1*1.5,i=e.colorPrimary,l=new pn(i).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:l,handleColorDisabled:new pn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},ghe=dn("Slider",e=>{const t=en(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[dhe(t),fhe(t),vhe(t)]},mhe);function Fx(){const[e,t]=s.useState(!1),n=s.useRef(null),r=()=>{ln.cancel(n.current)},a=o=>{r(),o?t(o):n.current=ln(()=>{t(o)})};return s.useEffect(()=>r,[]),[e,a]}var phe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);atypeof n=="number"?n.toString():""}const kK=ee.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:a,rootClassName:o,style:i,disabled:l,tooltipPrefixCls:c,tipFormatter:u,tooltipVisible:d,getTooltipPopupContainer:f,tooltipPlacement:m,tooltip:g={},onChangeComplete:h,classNames:b,styles:p}=e,S=phe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:C}=e,{getPrefixCls:x,direction:w,className:$,style:E,classNames:R,styles:I,getPopupContainer:O}=sr("slider"),T=ee.useContext(Br),_=l??T,{handleRender:k,direction:A}=ee.useContext(FK),D=(A||w)==="rtl",[F,L]=Fx(),[B,K]=Fx(),W=Object.assign({},g),{open:V,placement:q,getPopupContainer:U,prefixCls:G,formatter:Y}=W,J=V??d,Q=(F||B)&&J!==!1,Z=hhe(Y,u),[ne,ae]=Fx(),le=ye=>{h==null||h(ye),ae(!1)},re=(ye,xe)=>ye||(xe?D?"left":"right":"top"),fe=x("slider",n),[ue,de,ie]=ghe(fe),se=oe(a,$,R.root,b==null?void 0:b.root,o,{[`${fe}-rtl`]:D,[`${fe}-lock`]:ne},de,ie);D&&!S.vertical&&(S.reverse=!S.reverse),ee.useEffect(()=>{const ye=()=>{ln(()=>{K(!1)},1)};return document.addEventListener("mouseup",ye),()=>{document.removeEventListener("mouseup",ye)}},[]);const ve=r&&!J,he=k||((ye,xe)=>{const{index:$e}=xe,He=ye.props;function Te(Ee,Le,Pe){var ze,Oe,we,_e;Pe&&((Oe=(ze=S)[Ee])===null||Oe===void 0||Oe.call(ze,Le)),(_e=(we=He)[Ee])===null||_e===void 0||_e.call(we,Le)}const Re=Object.assign(Object.assign({},He),{onMouseEnter:Ee=>{L(!0),Te("onMouseEnter",Ee)},onMouseLeave:Ee=>{L(!1),Te("onMouseLeave",Ee)},onMouseDown:Ee=>{K(!0),ae(!0),Te("onMouseDown",Ee)},onFocus:Ee=>{var Le;K(!0),(Le=S.onFocus)===null||Le===void 0||Le.call(S,Ee),Te("onFocus",Ee,!0)},onBlur:Ee=>{var Le;K(!1),(Le=S.onBlur)===null||Le===void 0||Le.call(S,Ee),Te("onBlur",Ee,!0)}}),Fe=ee.cloneElement(ye,Re),je=(!!J||Q)&&Z!==null;return ve?Fe:ee.createElement(G5,Object.assign({},W,{prefixCls:x("tooltip",G??c),title:Z?Z(xe.value):"",value:xe.value,open:je,placement:re(q??m,C),key:$e,classNames:{root:`${fe}-tooltip`},getPopupContainer:U||f||O}),Fe)}),Ce=ve?(ye,xe)=>{const $e=ee.cloneElement(ye,{style:Object.assign(Object.assign({},ye.props.style),{visibility:"hidden"})});return ee.createElement(G5,Object.assign({},W,{prefixCls:x("tooltip",G??c),title:Z?Z(xe.value):"",open:Z!==null&&Q,placement:re(q??m,C),key:"tooltip",classNames:{root:`${fe}-tooltip`},getPopupContainer:U||f||O,draggingDelete:xe.draggingDelete}),$e)}:void 0,pe=Object.assign(Object.assign(Object.assign(Object.assign({},I.root),E),p==null?void 0:p.root),i),Se=Object.assign(Object.assign({},I.tracks),p==null?void 0:p.tracks),ge=oe(R.tracks,b==null?void 0:b.tracks);return ue(ee.createElement(uhe,Object.assign({},S,{classNames:Object.assign({handle:oe(R.handle,b==null?void 0:b.handle),rail:oe(R.rail,b==null?void 0:b.rail),track:oe(R.track,b==null?void 0:b.track)},ge?{tracks:ge}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},I.handle),p==null?void 0:p.handle),rail:Object.assign(Object.assign({},I.rail),p==null?void 0:p.rail),track:Object.assign(Object.assign({},I.track),p==null?void 0:p.track)},Object.keys(Se).length?{tracks:Se}:{}),step:S.step,range:r,className:se,style:pe,disabled:_,ref:t,prefixCls:fe,handleRender:he,activeHandleRender:Ce,onChangeComplete:le})))});var bhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,colors:n,type:r,color:a,range:o=!1,className:i,activeIndex:l,onActive:c,onDragStart:u,onDragChange:d,onKeyDelete:f}=e,m=bhe(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),g=Object.assign(Object.assign({},m),{track:!1}),h=s.useMemo(()=>`linear-gradient(90deg, ${n.map(E=>`${E.color} ${E.percent}%`).join(", ")})`,[n]),b=s.useMemo(()=>!a||!r?null:r==="alpha"?a.toRgbString():`hsl(${a.toHsb().h}, 100%, 50%)`,[a,r]),p=Zt(u),S=Zt(d),C=s.useMemo(()=>({onDragStart:p,onDragChange:S}),[]),x=Zt(($,E)=>{const{onFocus:R,style:I,className:O,onKeyDown:T}=$.props,_=Object.assign({},I);return r==="gradient"&&(_.background=Yz(n,E.value)),s.cloneElement($,{onFocus:k=>{c==null||c(E.index),R==null||R(k)},style:_,className:oe(O,{[`${t}-slider-handle-active`]:l===E.index}),onKeyDown:k=>{(k.key==="Delete"||k.key==="Backspace")&&f&&f(E.index),T==null||T(k)}})}),w=s.useMemo(()=>({direction:"ltr",handleRender:x}),[]);return s.createElement(FK.Provider,{value:w},s.createElement(jK.Provider,{value:C},s.createElement(kK,Object.assign({},g,{className:oe(i,`${t}-slider`),tooltip:{open:!1},range:{editable:o,minCount:2},styles:{rail:{background:h},handle:b?{background:b}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},yhe=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,a=i=>n(i[0]),o=i=>r(i[0]);return s.createElement(AK,Object.assign({},e,{value:[t],onChange:a,onChangeComplete:o}))};function Y5(e){return ke(e).sort((t,n)=>t.percent-n.percent)}const Che=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:a,onActive:o,activeIndex:i,onGradientDragging:l,colors:c}=e,u=n==="gradient",d=s.useMemo(()=>c.map(S=>({percent:S.percent,color:S.color.toRgbString()})),[c]),f=s.useMemo(()=>d.map(S=>S.percent),[d]),m=s.useRef(d),g=({rawValues:S,draggingIndex:C,draggingValue:x})=>{if(S.length>d.length){const w=Yz(d,x),$=ke(d);$.splice(C,0,{percent:x,color:w}),m.current=$}else m.current=d;l(!0),r(new To(Y5(m.current)),!0)},h=({deleteIndex:S,draggingIndex:C,draggingValue:x})=>{let w=ke(m.current);S!==-1?w.splice(S,1):(w[C]=Object.assign(Object.assign({},w[C]),{percent:x}),w=Y5(w)),r(new To(w),!0)},b=S=>{const C=ke(d);C.splice(S,1);const x=new To(C);r(x),a(x)},p=S=>{a(new To(d)),i>=S.length&&o(S.length-1),l(!1)};return u?s.createElement(AK,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:f,range:!0,onChangeComplete:p,disabled:!1,type:"gradient",activeIndex:i,onActive:o,onDragStart:g,onDragChange:h,onKeyDelete:b}):null},She=s.memo(Che);var xhe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const e=s.useContext(SK),{mode:t,onModeChange:n,modeOptions:r,prefixCls:a,allowClear:o,value:i,disabledAlpha:l,onChange:c,onClear:u,onChangeComplete:d,activeIndex:f,gradientDragging:m}=e,g=xhe(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),h=ee.useMemo(()=>i.cleared?[{percent:0,color:new To("")},{percent:100,color:new To("")}]:i.getColors(),[i]),b=!i.isGradient(),[p,S]=ee.useState(i);fn(()=>{var j;b||S((j=h[f])===null||j===void 0?void 0:j.color)},[b,h,m,f]);const C=ee.useMemo(()=>{var j;return b?i:m?p:(j=h[f])===null||j===void 0?void 0:j.color},[h,i,f,b,p,m]),[x,w]=ee.useState(C),[$,E]=DR(),R=x!=null&&x.equals(C)?C:x;fn(()=>{w(C)},[$,C==null?void 0:C.toHexString()]);const I=(j,D)=>{let F=$a(j);if(i.cleared){const B=F.toRgb();if(!B.r&&!B.g&&!B.b&&D){const{type:K,value:W=0}=D;F=new To({h:K==="hue"?W:0,s:1,b:1,a:K==="alpha"?W/100:1})}else F=V0(F)}if(t==="single")return F;const L=ke(h);return L[f]=Object.assign(Object.assign({},L[f]),{color:F}),new To(L)},O=(j,D,F)=>{const L=I(j,F);w(L.isGradient()?L.getColors()[f].color:L),c(L,D)},T=(j,D)=>{d(I(j,D)),E()},_=j=>{c(I(j))};let k=null;const A=r.length>1;return(o||A)&&(k=ee.createElement("div",{className:`${a}-operation`},A&&ee.createElement(CK,{size:"small",options:r,value:t,onChange:n}),ee.createElement(wK,Object.assign({prefixCls:a,value:i,onChange:j=>{c(j),u==null||u()}},g)))),ee.createElement(ee.Fragment,null,k,ee.createElement(She,Object.assign({},e,{colors:h})),ee.createElement(Yre,{prefixCls:a,value:R==null?void 0:R.toHsb(),disabledAlpha:l,onChange:(j,D)=>{O(j,!0,D)},onChangeComplete:(j,D)=>{T(j,D)},components:whe}),ee.createElement(Qpe,Object.assign({value:C,onChange:_,prefixCls:a,disabledAlpha:l},g)))},Q5=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=s.useContext(xK);return Array.isArray(n)?ee.createElement(Hae,{value:t,presets:n,prefixCls:e,onChange:r}):null},$he=e=>{const{prefixCls:t,presets:n,panelRender:r,value:a,onChange:o,onClear:i,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:g,onActive:h,format:b,onFormatChange:p,gradientDragging:S,onGradientDragging:C,disabledFormat:x}=e,w=`${t}-inner`,$=ee.useMemo(()=>({prefixCls:t,value:a,onChange:o,onClear:i,allowClear:l,disabledAlpha:c,mode:u,onModeChange:d,modeOptions:f,onChangeComplete:m,activeIndex:g,onActive:h,format:b,onFormatChange:p,gradientDragging:S,onGradientDragging:C,disabledFormat:x}),[t,a,o,i,l,c,u,d,f,m,g,h,b,p,S,C,x]),E=ee.useMemo(()=>({prefixCls:t,value:a,presets:n,onChange:o}),[t,a,n,o]),R=ee.createElement("div",{className:`${w}-content`},ee.createElement(X5,null),Array.isArray(n)&&ee.createElement(yK,null),ee.createElement(Q5,null));return ee.createElement(SK.Provider,{value:$},ee.createElement(xK.Provider,{value:E},ee.createElement("div",{className:w},typeof r=="function"?r(R,{components:{Picker:X5,Presets:Q5}}):R)))};var Ehe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{color:n,prefixCls:r,open:a,disabled:o,format:i,className:l,showText:c,activeIndex:u}=e,d=Ehe(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,m=`${f}-text`,g=`${m}-cell`,[h]=Ea("ColorPicker"),b=ee.useMemo(()=>{if(!c)return"";if(typeof c=="function")return c(n);if(n.cleared)return h.transparent;if(n.isGradient())return n.getColors().map((x,w)=>{const $=u!==-1&&u!==w;return ee.createElement("span",{key:w,className:oe(g,$&&`${g}-inactive`)},x.color.toRgbString()," ",x.percent,"%")});const S=n.toHexString().toUpperCase(),C=KR(n);switch(i){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return C<100?`${S.slice(0,7)},${C}%`:S}},[n,i,c,u,h.transparent,g]),p=s.useMemo(()=>n.cleared?ee.createElement(wK,{prefixCls:r}):ee.createElement(HR,{prefixCls:r,color:n.toCssString()}),[n,r]);return ee.createElement("div",Object.assign({ref:t,className:oe(f,l,{[`${f}-active`]:a,[`${f}-disabled`]:o})},ar(d)),p,c&&ee.createElement("div",{className:m},b))});function Ohe(e,t,n){const[r]=Ea("ColorPicker"),[a,o]=Nt(e,{value:t}),[i,l]=s.useState("single"),[c,u]=s.useMemo(()=>{const b=(Array.isArray(n)?n:[n]).filter(x=>x);b.length||b.push("single");const p=new Set(b),S=[],C=(x,w)=>{p.has(x)&&S.push({label:w,value:x})};return C("single",r.singleColor),C("gradient",r.gradientColor),[S,p]},[n,r.singleColor,r.gradientColor]),[d,f]=s.useState(null),m=Zt(b=>{f(b),o(b)}),g=s.useMemo(()=>{const b=$a(a||"");return b.equals(d)?d:b},[a,d]),h=s.useMemo(()=>{var b;return u.has(i)?i:(b=c[0])===null||b===void 0?void 0:b.value},[u,i,c]);return s.useEffect(()=>{l(g.isGradient()?"gradient":"single")},[g]),[g,m,h,l,c]}const LK=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),J5=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:a,lineWidth:o,colorFillSecondary:i}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:a,flex:"none"},LK("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${me(o)} ${i}`,borderRadius:"inherit"}})}},Ihe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:a,colorPickerAlphaInputWidth:o,marginXXS:i,paddingXXS:l,controlHeightSM:c,marginXS:u,fontSizeIcon:d,paddingXS:f,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:g,lineWidth:h}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:a,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:g}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${me(o)}`,marginInlineStart:i},[`${t}-format-select${n}-select`]:{marginInlineEnd:u,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(d).add(i).equal(),fontSize:r,lineHeight:me(c)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:a},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:i,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:i,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${me(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:me(e.calc(c).sub(e.calc(h).mul(2)).equal())},[`${n}-input-prefix`]:{color:m}}}}}},Rhe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:a,marginSM:o,colorBgElevated:i,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:u}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:a,inset:0},marginBottom:o},[`${t}-handler`]:{width:u,height:u,border:`${me(c)} solid ${i}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${a}, 0 0 0 1px ${l}`}}},Mhe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:a,colorPickerPresetColorSize:o,fontSizeSM:i,colorText:l,lineHeightSM:c,lineWidth:u,borderRadius:d,colorFill:f,colorWhite:m,marginXXS:g,paddingXS:h,fontHeightSM:b}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:b,color:r,paddingInlineEnd:a}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${me(h)} 0`},"&-label":{fontSize:i,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(g).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:o,height:o,"&::before":{content:'""',pointerEvents:"none",width:e.calc(o).add(e.calc(u).mul(4)).equal(),height:e.calc(o).add(e.calc(u).mul(4)).equal(),position:"absolute",top:e.calc(u).mul(-2).equal(),insetInlineStart:e.calc(u).mul(-2).equal(),borderRadius:d,border:`${me(u)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(o).div(13).mul(5).equal(),height:e.calc(o).div(13).mul(8).equal(),border:`${me(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:i,color:r}}}},The=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:a,lineWidthBold:o,colorPickerHandlerSizeSM:i,colorPickerSliderHeight:l,marginSM:c,marginXS:u}=e,d=e.calc(i).sub(e.calc(o).mul(2).equal()).equal(),f=e.calc(i).add(e.calc(o).mul(2).equal()).equal(),m={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[LK(me(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:d,height:d,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:i,height:i,border:`${me(o)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${a}`,outline:"none",insetInlineStart:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":m}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:u,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":m}}}},uO=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${me(e.controlOutlineWidth)} ${n}`,outline:0}),Nhe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},Z5=(e,t,n)=>{const{componentCls:r,borderRadiusSM:a,lineWidth:o,colorSplit:i,colorBorder:l,red6:c}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:a,border:`${me(o)} solid ${i}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},_he=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:a,colorWarningHover:o,colorErrorOutline:i,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:a},[`&${t}-trigger-active`]:Object.assign({},uO(e,n,i))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},uO(e,r,l))}}},jhe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:a,controlHeightXS:o,borderRadius:i,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:u,fontSizeLG:d}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:u,[`${t}-color-block, ${t}-clear`]:{width:a,height:a,borderRadius:i},[`${t}-trigger-text`]:{fontSize:d}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:me(o)}}}},Fhe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:a,motionDurationMid:o,colorBgElevated:i,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:u,borderRadius:d,marginXS:f,marginSM:m,controlHeight:g,controlHeightSM:h,colorBgTextActive:b,colorPickerPresetColorSize:p,colorPickerPreviewSize:S,lineWidth:C,colorBorder:x,paddingXXS:w,fontSize:$,colorPrimaryHover:E,controlOutline:R}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${me(m)} 0 ${me(f)}`}},[`${n}-panel`]:Object.assign({},Rhe(e))},The(e)),J5(e,S)),Ihe(e)),Mhe(e)),Z5(e,p,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:g,minHeight:g,borderRadius:d,border:`${me(C)} solid ${x}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${o}`,background:i,padding:e.calc(w).sub(C).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(w).sub(C)).equal(),fontSize:$,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:E},[`&${n}-trigger-active`]:Object.assign({},uO(e,a,R)),"&-disabled":{color:l,background:u,cursor:"not-allowed","&:hover":{borderColor:b},[`${n}-trigger-text`]:{color:l}}},Z5(e,h)),J5(e,h)),_he(e)),jhe(e))},Nhe(e))},tc(e,{focusElCls:`${n}-trigger-active`})]},Dhe=dn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,a=en(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return Fhe(a)});var khe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{mode:t,value:n,defaultValue:r,format:a,defaultFormat:o,allowClear:i=!1,presets:l,children:c,trigger:u="click",open:d,disabled:f,placement:m="bottomLeft",arrow:g=!0,panelRender:h,showText:b,style:p,className:S,size:C,rootClassName:x,prefixCls:w,styles:$,disabledAlpha:E=!1,onFormatChange:R,onChange:I,onClear:O,onOpenChange:T,onChangeComplete:_,getPopupContainer:k,autoAdjustOverflow:A=!0,destroyTooltipOnHide:j,destroyOnHidden:D,disabledFormat:F}=e,L=khe(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","destroyOnHidden","disabledFormat"]),{getPrefixCls:B,direction:K,colorPicker:W}=s.useContext(jt),V=s.useContext(Br),q=f??V,[U,G]=Nt(!1,{value:d,postState:we=>!q&&we,onChange:T}),[Y,J]=Nt(a,{value:a,defaultValue:o,onChange:R}),Q=B("color-picker",w),[Z,ne,ae,le,re]=Ohe(r,n,t),fe=s.useMemo(()=>KR(Z)<100,[Z]),[ue,de]=ee.useState(null),ie=we=>{if(_){let _e=$a(we);E&&fe&&(_e=V0(we)),_(_e)}},se=(we,_e)=>{let Be=$a(we);E&&fe&&(Be=V0(Be)),ne(Be),de(null),I&&I(Be,Be.toCssString()),_e||ie(Be)},[ve,he]=ee.useState(0),[Ce,pe]=ee.useState(!1),Se=we=>{if(le(we),we==="single"&&Z.isGradient())he(0),se(new To(Z.getColors()[0].color)),de(Z);else if(we==="gradient"&&!Z.isGradient()){const _e=fe?V0(Z):Z;se(new To(ue||[{percent:0,color:_e},{percent:100,color:_e}]))}},{status:ge}=ee.useContext(Hr),{compactSize:ye,compactItemClassnames:xe}=Ao(Q,K),$e=Er(we=>{var _e;return(_e=C??ye)!==null&&_e!==void 0?_e:we}),He=Yn(Q),[Te,Re,Fe]=Dhe(Q,He),je={[`${Q}-rtl`]:K},Ee=oe(x,Fe,He,je),Le=oe(Ai(Q,ge),{[`${Q}-sm`]:$e==="small",[`${Q}-lg`]:$e==="large"},xe,W==null?void 0:W.className,Ee,S,Re),Pe=oe(Q,Ee),ze={open:U,trigger:u,placement:m,arrow:g,rootClassName:x,getPopupContainer:k,autoAdjustOverflow:A,destroyOnHidden:D??!!j},Oe=Object.assign(Object.assign({},W==null?void 0:W.style),p);return Te(ee.createElement(Vi,Object.assign({style:$==null?void 0:$.popup,styles:{body:$==null?void 0:$.popupOverlayInner},onOpenChange:we=>{(!we||!q)&&G(we)},content:ee.createElement(ii,{form:!0},ee.createElement($he,{mode:ae,onModeChange:Se,modeOptions:re,prefixCls:Q,value:Z,allowClear:i,disabled:q,disabledAlpha:E,presets:l,panelRender:h,format:Y,onFormatChange:J,onChange:se,onChangeComplete:ie,onClear:O,activeIndex:ve,onActive:he,gradientDragging:Ce,onGradientDragging:pe,disabledFormat:F})),classNames:{root:Pe}},ze),c||ee.createElement(Phe,Object.assign({activeIndex:U?ve:-1,open:U,className:Le,style:Oe,prefixCls:Q,disabled:q,showText:b,format:Y},L,{color:Z}))))},Ahe=nc(z4,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);z4._InternalPanelDoNotUseOrYouWillBeFired=Ahe;var Lhe={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"},Bhe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Lhe}))},zhe=s.forwardRef(Bhe);const BK=(e,t,n,r,a)=>{const{classNames:o,styles:i}=sr(e),[l,c]=Ane([o,t],[i,n],{popup:{_default:"root"}});return s.useMemo(()=>{var u,d;const f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:oe((u=l.popup)===null||u===void 0?void 0:u.root,r)})}),m=Object.assign(Object.assign({},c),{popup:Object.assign(Object.assign({},c.popup),{root:Object.assign(Object.assign({},(d=c.popup)===null||d===void 0?void 0:d.root),a)})});return[f,m]},[l,c,r,a])};function Hhe(e,t,n){return n!==void 0?n: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 Vhe(e,t,n){return n!==void 0?n: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 zK(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=c1(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[s.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[Whe,Khe]=["week","WeekPicker"],[qhe,Uhe]=["month","MonthPicker"],[Ghe,Yhe]=["year","YearPicker"],[Xhe,Qhe]=["quarter","QuarterPicker"],[H4,e_]=["time","TimePicker"];var Jhe={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"},Zhe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Jhe}))},e0e=s.forwardRef(Zhe),t0e={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"},n0e=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:t0e}))},r0e=s.forwardRef(n0e);const HK=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ee.createElement(ee.Fragment,null,e===H4?ee.createElement(r0e,null):ee.createElement(e0e,null),t&&n):r,a0e=e=>s.createElement(_n,Object.assign({size:"small",type:"primary"},e));function VK(e){return s.useMemo(()=>Object.assign({button:a0e},e),[e])}var o0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:i,components:l,className:c,style:u,placement:d,size:f,disabled:m,bordered:g=!0,placeholder:h,popupStyle:b,popupClassName:p,dropdownClassName:S,status:C,rootClassName:x,variant:w,picker:$,styles:E,classNames:R,suffixIcon:I}=n,O=o0e(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),T=$===H4?"timePicker":"datePicker",_=s.useRef(null),{getPrefixCls:k,direction:A,getPopupContainer:j,rangePicker:D}=s.useContext(jt),F=k("picker",o),{compactSize:L,compactItemClassnames:B}=Ao(F,A),K=k(),[W,V]=Gl("rangePicker",w,g),q=Yn(F),[U,G,Y]=HW(F,q),[J,Q]=BK(T,R,E,p||S,b),[Z]=zK(n,F),ne=VK(l),ae=Er(pe=>{var Se;return(Se=f??L)!==null&&Se!==void 0?Se:pe}),le=s.useContext(Br),re=m??le,fe=s.useContext(Hr),{hasFeedback:ue,status:de,feedbackIcon:ie}=fe,se=s.createElement(HK,{picker:$,hasFeedback:ue,feedbackIcon:ie,suffixIcon:I});s.useImperativeHandle(r,()=>_.current);const[ve]=Ea("Calendar",hb),he=Object.assign(Object.assign({},ve),n.locale),[Ce]=fi("DatePicker",(a=Q.popup.root)===null||a===void 0?void 0:a.zIndex);return U(s.createElement(ii,{space:!0},s.createElement(_ve,Object.assign({separator:s.createElement("span",{"aria-label":"to",className:`${F}-separator`},s.createElement(zhe,null)),disabled:re,ref:_,placement:d,placeholder:Vhe(he,$,h),suffixIcon:se,prevIcon:s.createElement("span",{className:`${F}-prev-icon`}),nextIcon:s.createElement("span",{className:`${F}-next-icon`}),superPrevIcon:s.createElement("span",{className:`${F}-super-prev-icon`}),superNextIcon:s.createElement("span",{className:`${F}-super-next-icon`}),transitionName:`${K}-slide-up`,picker:$},O,{className:oe({[`${F}-${ae}`]:ae,[`${F}-${W}`]:V},Ai(F,Ul(de,C),ue),G,B,c,D==null?void 0:D.className,Y,q,x,J.root),style:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),u),Q.root),locale:he.lang,prefixCls:F,getPopupContainer:i||j,generateConfig:e,components:ne,direction:A,classNames:{popup:oe(G,Y,q,x,J.popup.root)},styles:{popup:Object.assign(Object.assign({},Q.popup.root),{zIndex:Ce})},allowClear:Z}))))});var l0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const t=(c,u)=>{const d=u===e_?"timePicker":"datePicker";return s.forwardRef((m,g)=>{var h;const{prefixCls:b,getPopupContainer:p,components:S,style:C,className:x,rootClassName:w,size:$,bordered:E,placement:R,placeholder:I,popupStyle:O,popupClassName:T,dropdownClassName:_,disabled:k,status:A,variant:j,onCalendarChange:D,styles:F,classNames:L,suffixIcon:B}=m,K=l0e(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:W,direction:V,getPopupContainer:q,[d]:U}=s.useContext(jt),G=W("picker",b),{compactSize:Y,compactItemClassnames:J}=Ao(G,V),Q=s.useRef(null),[Z,ne]=Gl("datePicker",j,E),ae=Yn(G),[le,re,fe]=HW(G,ae);s.useImperativeHandle(g,()=>Q.current);const ue={showToday:!0},de=c||m.picker,ie=W(),{onSelect:se,multiple:ve}=K,he=se&&c==="time"&&!ve,Ce=(we,_e,Be)=>{D==null||D(we,_e,Be),he&&se(we)},[pe,Se]=BK(d,L,F,T||_,O),[ge,ye]=zK(m,G),xe=VK(S),$e=Er(we=>{var _e;return(_e=$??Y)!==null&&_e!==void 0?_e:we}),He=s.useContext(Br),Te=k??He,Re=s.useContext(Hr),{hasFeedback:Fe,status:je,feedbackIcon:Ee}=Re,Le=s.createElement(HK,{picker:de,hasFeedback:Fe,feedbackIcon:Ee,suffixIcon:B}),[Pe]=Ea("DatePicker",hb),ze=Object.assign(Object.assign({},Pe),m.locale),[Oe]=fi("DatePicker",(h=Se.popup.root)===null||h===void 0?void 0:h.zIndex);return le(s.createElement(ii,{space:!0},s.createElement(Lve,Object.assign({ref:Q,placeholder:Hhe(ze,de,I),suffixIcon:Le,placement:R,prevIcon:s.createElement("span",{className:`${G}-prev-icon`}),nextIcon:s.createElement("span",{className:`${G}-next-icon`}),superPrevIcon:s.createElement("span",{className:`${G}-super-prev-icon`}),superNextIcon:s.createElement("span",{className:`${G}-super-next-icon`}),transitionName:`${ie}-slide-up`,picker:c,onCalendarChange:Ce},ue,K,{locale:ze.lang,className:oe({[`${G}-${$e}`]:$e,[`${G}-${Z}`]:ne},Ai(G,Ul(je,A),Fe),re,J,U==null?void 0:U.className,x,fe,ae,w,pe.root),style:Object.assign(Object.assign(Object.assign({},U==null?void 0:U.style),C),Se.root),prefixCls:G,getPopupContainer:p||q,generateConfig:e,components:xe,direction:V,disabled:Te,classNames:{popup:oe(re,fe,ae,w,pe.popup.root)},styles:{popup:Object.assign(Object.assign({},Se.popup.root),{zIndex:Oe})},allowClear:ge,removeIcon:ye}))))})},n=t(),r=t(Whe,Khe),a=t(qhe,Uhe),o=t(Ghe,Yhe),i=t(Xhe,Qhe),l=t(H4,e_);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:l,QuarterPicker:i}},WK=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:i}=s0e(e),l=i0e(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=a,c.RangePicker=l,c.TimePicker=o,c.QuarterPicker=i,c},si=WK(zfe),c0e=nc(si,"popupAlign",void 0,"picker");si._InternalPanelDoNotUseOrYouWillBeFired=c0e;const u0e=nc(si.RangePicker,"popupAlign",void 0,"picker");si._InternalRangePanelDoNotUseOrYouWillBeFired=u0e;si.generatePicker=WK;const d0e={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},V4=ee.createContext({});var f0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);arr(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function m0e(e,t,n){const r=s.useMemo(()=>t||v0e(n),[t,n]);return s.useMemo(()=>r.map(o=>{var{span:i}=o,l=f0e(o,["span"]);return i==="filled"?Object.assign(Object.assign({},l),{filled:!0}):Object.assign(Object.assign({},l),{span:typeof i=="number"?i:sV(e,i)})}),[r,e])}var g0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);ai).forEach(i=>{const{filled:l}=i,c=g0e(i,["filled"]);if(l){r.push(c),n.push(r),r=[],o=0;return}const u=t-o;o+=i.span||1,o>=t?(o>t?(a=!0,r.push(Object.assign(Object.assign({},c),{span:u}))):r.push(c),n.push(r),r=[],o=0):r.push(c)}),r.length>0&&n.push(r),n=n.map(i=>{const l=i.reduce((c,u)=>c+(u.span||1),0);if(l{const[n,r]=s.useMemo(()=>p0e(t,e),[t,e]);return n},b0e=({children:e})=>e,Sh=e=>e!=null,Dx=e=>{const{itemPrefixCls:t,component:n,span:r,className:a,style:o,labelStyle:i,contentStyle:l,bordered:c,label:u,content:d,colon:f,type:m,styles:g}=e,h=n,{classNames:b}=s.useContext(V4),p=Object.assign(Object.assign({},i),g==null?void 0:g.label),S=Object.assign(Object.assign({},l),g==null?void 0:g.content);return c?s.createElement(h,{colSpan:r,style:o,className:oe(a,{[`${t}-item-${m}`]:m==="label"||m==="content",[b==null?void 0:b.label]:(b==null?void 0:b.label)&&m==="label",[b==null?void 0:b.content]:(b==null?void 0:b.content)&&m==="content"})},Sh(u)&&s.createElement("span",{style:p},u),Sh(d)&&s.createElement("span",{style:S},d)):s.createElement(h,{colSpan:r,style:o,className:oe(`${t}-item`,a)},s.createElement("div",{className:`${t}-item-container`},Sh(u)&&s.createElement("span",{style:p,className:oe(`${t}-item-label`,b==null?void 0:b.label,{[`${t}-item-no-colon`]:!f})},u),Sh(d)&&s.createElement("span",{style:S,className:oe(`${t}-item-content`,b==null?void 0:b.content)},d)))};function kx(e,{colon:t,prefixCls:n,bordered:r},{component:a,type:o,showLabel:i,showContent:l,labelStyle:c,contentStyle:u,styles:d}){return e.map(({label:f,children:m,prefixCls:g=n,className:h,style:b,labelStyle:p,contentStyle:S,span:C=1,key:x,styles:w},$)=>typeof a=="string"?s.createElement(Dx,{key:`${o}-${x||$}`,className:h,style:b,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),p),w==null?void 0:w.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),S),w==null?void 0:w.content)},span:C,colon:t,component:a,itemPrefixCls:g,bordered:r,label:i?f:null,content:l?m:null,type:o}):[s.createElement(Dx,{key:`label-${x||$}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),b),p),w==null?void 0:w.label),span:1,colon:t,component:a[0],itemPrefixCls:g,bordered:r,label:f,type:"label"}),s.createElement(Dx,{key:`content-${x||$}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),b),S),w==null?void 0:w.content),span:C*2-1,component:a[1],itemPrefixCls:g,bordered:r,content:m,type:"content"})])}const y0e=e=>{const t=s.useContext(V4),{prefixCls:n,vertical:r,row:a,index:o,bordered:i}=e;return r?s.createElement(s.Fragment,null,s.createElement("tr",{key:`label-${o}`,className:`${n}-row`},kx(a,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),s.createElement("tr",{key:`content-${o}`,className:`${n}-row`},kx(a,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):s.createElement("tr",{key:o,className:`${n}-row`},kx(a,e,Object.assign({component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},C0e=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${me(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:`${me(e.padding)} ${me(e.paddingLG)}`,borderInlineEnd:`${me(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${me(e.paddingSM)} ${me(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${me(e.paddingXS)} ${me(e.padding)}`}}}}}},S0e=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:a,colonMarginRight:o,colonMarginLeft:i,titleMarginBottom:l}=e;return{[t]:Object.assign(Object.assign(Object.assign({},$n(e)),C0e(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:Object.assign(Object.assign({},ri),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,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:`${me(i)} ${me(o)}`},[`&${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}}}})}},x0e=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}),w0e=dn("Descriptions",e=>{const t=en(e,{});return S0e(t)},x0e);var $0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,title:n,extra:r,column:a,colon:o=!0,bordered:i,layout:l,children:c,className:u,rootClassName:d,style:f,size:m,labelStyle:g,contentStyle:h,styles:b,items:p,classNames:S}=e,C=$0e(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:x,direction:w,className:$,style:E,classNames:R,styles:I}=sr("descriptions"),O=x("descriptions",t),T=du(),_=s.useMemo(()=>{var K;return typeof a=="number"?a:(K=sV(T,Object.assign(Object.assign({},d0e),a)))!==null&&K!==void 0?K:3},[T,a]),k=m0e(T,p,c),A=Er(m),j=h0e(_,k),[D,F,L]=w0e(O),B=s.useMemo(()=>({labelStyle:g,contentStyle:h,styles:{content:Object.assign(Object.assign({},I.content),b==null?void 0:b.content),label:Object.assign(Object.assign({},I.label),b==null?void 0:b.label)},classNames:{label:oe(R.label,S==null?void 0:S.label),content:oe(R.content,S==null?void 0:S.content)}}),[g,h,b,S,R,I]);return D(s.createElement(V4.Provider,{value:B},s.createElement("div",Object.assign({className:oe(O,$,R.root,S==null?void 0:S.root,{[`${O}-${A}`]:A&&A!=="default",[`${O}-bordered`]:!!i,[`${O}-rtl`]:w==="rtl"},u,d,F,L),style:Object.assign(Object.assign(Object.assign(Object.assign({},E),I.root),b==null?void 0:b.root),f)},C),(n||r)&&s.createElement("div",{className:oe(`${O}-header`,R.header,S==null?void 0:S.header),style:Object.assign(Object.assign({},I.header),b==null?void 0:b.header)},n&&s.createElement("div",{className:oe(`${O}-title`,R.title,S==null?void 0:S.title),style:Object.assign(Object.assign({},I.title),b==null?void 0:b.title)},n),r&&s.createElement("div",{className:oe(`${O}-extra`,R.extra,S==null?void 0:S.extra),style:Object.assign(Object.assign({},I.extra),b==null?void 0:b.extra)},r)),s.createElement("div",{className:`${O}-view`},s.createElement("table",null,s.createElement("tbody",null,j.map((K,W)=>s.createElement(y0e,{key:W,index:W,colon:o,prefixCls:O,vertical:l==="vertical",bordered:i,row:K}))))))))};Wa.Item=b0e;var t_=s.createContext(null),KK=s.createContext({}),E0e=["prefixCls","className","containerRef"],P0e=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,o=Ue(t,E0e),i=s.useContext(KK),l=i.panel,c=zi(l,a);return s.createElement("div",Me({className:oe("".concat(n,"-content"),r),role:"dialog",ref:c},ar(t,{aria:!0}),{"aria-modal":"true"},o))};function n_(e){return typeof e=="string"&&String(Number(e))===e?(Kn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var r_={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function O0e(e,t){var n,r,a,o=e.prefixCls,i=e.open,l=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,m=e.keyboard,g=e.classNames,h=e.rootClassName,b=e.rootStyle,p=e.zIndex,S=e.className,C=e.id,x=e.style,w=e.motion,$=e.width,E=e.height,R=e.children,I=e.mask,O=e.maskClosable,T=e.maskMotion,_=e.maskClassName,k=e.maskStyle,A=e.afterOpenChange,j=e.onClose,D=e.onMouseEnter,F=e.onMouseOver,L=e.onMouseLeave,B=e.onClick,K=e.onKeyDown,W=e.onKeyUp,V=e.styles,q=e.drawerRender,U=s.useRef(),G=s.useRef(),Y=s.useRef();s.useImperativeHandle(t,function(){return U.current});var J=function(Se){var ge=Se.keyCode,ye=Se.shiftKey;switch(ge){case ot.TAB:{if(ge===ot.TAB){if(!ye&&document.activeElement===Y.current){var xe;(xe=G.current)===null||xe===void 0||xe.focus({preventScroll:!0})}else if(ye&&document.activeElement===G.current){var $e;($e=Y.current)===null||$e===void 0||$e.focus({preventScroll:!0})}}break}case ot.ESC:{j&&m&&(Se.stopPropagation(),j(Se));break}}};s.useEffect(function(){if(i&&f){var pe;(pe=U.current)===null||pe===void 0||pe.focus({preventScroll:!0})}},[i]);var Q=s.useState(!1),Z=ce(Q,2),ne=Z[0],ae=Z[1],le=s.useContext(t_),re;typeof u=="boolean"?re=u?{}:{distance:0}:re=u||{};var fe=(n=(r=(a=re)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:le==null?void 0:le.pushDistance)!==null&&n!==void 0?n:180,ue=s.useMemo(function(){return{pushDistance:fe,push:function(){ae(!0)},pull:function(){ae(!1)}}},[fe]);s.useEffect(function(){if(i){var pe;le==null||(pe=le.push)===null||pe===void 0||pe.call(le)}else{var Se;le==null||(Se=le.pull)===null||Se===void 0||Se.call(le)}},[i]),s.useEffect(function(){return function(){var pe;le==null||(pe=le.pull)===null||pe===void 0||pe.call(le)}},[]);var de=s.createElement(ga,Me({key:"mask"},T,{visible:I&&i}),function(pe,Se){var ge=pe.className,ye=pe.style;return s.createElement("div",{className:oe("".concat(o,"-mask"),ge,g==null?void 0:g.mask,_),style:P(P(P({},ye),k),V==null?void 0:V.mask),onClick:O&&i?j:void 0,ref:Se})}),ie=typeof w=="function"?w(l):w,se={};if(ne&&fe)switch(l){case"top":se.transform="translateY(".concat(fe,"px)");break;case"bottom":se.transform="translateY(".concat(-fe,"px)");break;case"left":se.transform="translateX(".concat(fe,"px)");break;default:se.transform="translateX(".concat(-fe,"px)");break}l==="left"||l==="right"?se.width=n_($):se.height=n_(E);var ve={onMouseEnter:D,onMouseOver:F,onMouseLeave:L,onClick:B,onKeyDown:K,onKeyUp:W},he=s.createElement(ga,Me({key:"panel"},ie,{visible:i,forceRender:d,onVisibleChanged:function(Se){A==null||A(Se)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(pe,Se){var ge=pe.className,ye=pe.style,xe=s.createElement(P0e,Me({id:C,containerRef:Se,prefixCls:o,className:oe(S,g==null?void 0:g.content),style:P(P({},x),V==null?void 0:V.content)},ar(e,{aria:!0}),ve),R);return s.createElement("div",Me({className:oe("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,ge),style:P(P(P({},se),ye),V==null?void 0:V.wrapper)},ar(e,{data:!0})),q?q(xe):xe)}),Ce=P({},b);return p&&(Ce.zIndex=p),s.createElement(t_.Provider,{value:ue},s.createElement("div",{className:oe(o,"".concat(o,"-").concat(l),h,z(z({},"".concat(o,"-open"),i),"".concat(o,"-inline"),c)),style:Ce,tabIndex:-1,ref:U,onKeyDown:J},de,s.createElement("div",{tabIndex:0,ref:G,style:r_,"aria-hidden":"true","data-sentinel":"start"}),he,s.createElement("div",{tabIndex:0,ref:Y,style:r_,"aria-hidden":"true","data-sentinel":"end"})))}var I0e=s.forwardRef(O0e),R0e=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,o=a===void 0?"rc-drawer":a,i=t.placement,l=i===void 0?"right":i,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,f=d===void 0?!0:d,m=t.width,g=m===void 0?378:m,h=t.mask,b=h===void 0?!0:h,p=t.maskClosable,S=p===void 0?!0:p,C=t.getContainer,x=t.forceRender,w=t.afterOpenChange,$=t.destroyOnClose,E=t.onMouseEnter,R=t.onMouseOver,I=t.onMouseLeave,O=t.onClick,T=t.onKeyDown,_=t.onKeyUp,k=t.panelRef,A=s.useState(!1),j=ce(A,2),D=j[0],F=j[1],L=s.useState(!1),B=ce(L,2),K=B[0],W=B[1];fn(function(){W(!0)},[]);var V=K?r:!1,q=s.useRef(),U=s.useRef();fn(function(){V&&(U.current=document.activeElement)},[V]);var G=function(ne){var ae;if(F(ne),w==null||w(ne),!ne&&U.current&&!((ae=q.current)!==null&&ae!==void 0&&ae.contains(U.current))){var le;(le=U.current)===null||le===void 0||le.focus({preventScroll:!0})}},Y=s.useMemo(function(){return{panel:k}},[k]);if(!x&&!D&&!V&&$)return null;var J={onMouseEnter:E,onMouseOver:R,onMouseLeave:I,onClick:O,onKeyDown:T,onKeyUp:_},Q=P(P({},t),{},{open:V,prefixCls:o,placement:l,autoFocus:u,keyboard:f,width:g,mask:b,maskClosable:S,inline:C===!1,afterOpenChange:G,ref:q},J);return s.createElement(KK.Provider,{value:Y},s.createElement(gg,{open:V||x||D,autoDestroy:!1,getContainer:C,autoLock:b&&(V||D)},s.createElement(I0e,Q)))};const qK=e=>{var t,n;const{prefixCls:r,ariaId:a,title:o,footer:i,extra:l,closable:c,loading:u,onClose:d,headerStyle:f,bodyStyle:m,footerStyle:g,children:h,classNames:b,styles:p}=e,S=sr("drawer");let C;c===!1?C=void 0:c===void 0||c===!0?C="start":C=(c==null?void 0:c.placement)==="end"?"end":"start";const x=s.useCallback(I=>s.createElement("button",{type:"button",onClick:d,className:oe(`${r}-close`,{[`${r}-close-${C}`]:C==="end"})},I),[d,r,C]),[w,$]=FR(Jd(e),Jd(S),{closable:!0,closeIconRender:x}),E=()=>{var I,O;return!o&&!w?null:s.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(I=S.styles)===null||I===void 0?void 0:I.header),f),p==null?void 0:p.header),className:oe(`${r}-header`,{[`${r}-header-close-only`]:w&&!o&&!l},(O=S.classNames)===null||O===void 0?void 0:O.header,b==null?void 0:b.header)},s.createElement("div",{className:`${r}-header-title`},C==="start"&&$,o&&s.createElement("div",{className:`${r}-title`,id:a},o)),l&&s.createElement("div",{className:`${r}-extra`},l),C==="end"&&$)},R=()=>{var I,O;if(!i)return null;const T=`${r}-footer`;return s.createElement("div",{className:oe(T,(I=S.classNames)===null||I===void 0?void 0:I.footer,b==null?void 0:b.footer),style:Object.assign(Object.assign(Object.assign({},(O=S.styles)===null||O===void 0?void 0:O.footer),g),p==null?void 0:p.footer)},i)};return s.createElement(s.Fragment,null,E(),s.createElement("div",{className:oe(`${r}-body`,b==null?void 0:b.body,(t=S.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=S.styles)===null||n===void 0?void 0:n.body),m),p==null?void 0:p.body)},u?s.createElement(ql,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),R())},M0e=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},UK=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),GK=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},UK({opacity:e},{opacity:1})),T0e=(e,t)=>[GK(.7,t),UK({transform:M0e(e)},{transform:"none"})],N0e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:GK(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:T0e(a,n)}),{})}}},_0e=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:o,motionDurationSlow:i,motionDurationMid:l,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:m,lineWidth:g,lineType:h,colorSplit:b,marginXS:p,colorIcon:S,colorIconHover:C,colorBgTextHover:x,colorBgTextActive:w,colorText:$,fontWeightStrong:E,footerPaddingBlock:R,footerPaddingInline:I,calc:O}=e,T=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:$,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:a,pointerEvents:"auto"},[T]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${T}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${T}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${T}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${T}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${me(u)} ${me(d)}`,fontSize:f,lineHeight:m,borderBottom:`${me(g)} ${h} ${b}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:O(f).add(c).equal(),height:O(f).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:S,fontWeight:E,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:p},[`&:not(${n}-close-end)`]:{marginInlineEnd:p},"&:hover":{color:C,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:w}},Ga(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:m},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${me(R)} ${me(I)}`,borderTop:`${me(g)} ${h} ${b}`},"&-rtl":{direction:"rtl"}}}},j0e=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),YK=dn("Drawer",e=>{const t=en(e,{});return[_0e(t),N0e(t)]},j0e);var XK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{rootClassName:t,width:n,height:r,size:a="default",mask:o=!0,push:i=F0e,open:l,afterOpenChange:c,onClose:u,prefixCls:d,getContainer:f,panelRef:m=null,style:g,className:h,"aria-labelledby":b,visible:p,afterVisibleChange:S,maskStyle:C,drawerStyle:x,contentWrapperStyle:w,destroyOnClose:$,destroyOnHidden:E}=e,R=XK(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),I=Sf(),O=R.title?I:void 0,{getPopupContainer:T,getPrefixCls:_,direction:k,className:A,style:j,classNames:D,styles:F}=sr("drawer"),L=_("drawer",d),[B,K,W]=YK(L),V=f===void 0&&T?()=>T(document.body):f,q=oe({"no-mask":!o,[`${L}-rtl`]:k==="rtl"},t,K,W),U=s.useMemo(()=>n??(a==="large"?736:378),[n,a]),G=s.useMemo(()=>r??(a==="large"?736:378),[r,a]),Y={motionName:pa(L,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},J=fe=>({motionName:pa(L,`panel-motion-${fe}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Q=bH(),Z=Dr(m,Q),[ne,ae]=fi("Drawer",R.zIndex),{classNames:le={},styles:re={}}=R;return B(s.createElement(ii,{form:!0,space:!0},s.createElement(dg.Provider,{value:ae},s.createElement(R0e,Object.assign({prefixCls:L,onClose:u,maskMotion:Y,motion:J},R,{classNames:{mask:oe(le.mask,D.mask),content:oe(le.content,D.content),wrapper:oe(le.wrapper,D.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},re.mask),C),F.mask),content:Object.assign(Object.assign(Object.assign({},re.content),x),F.content),wrapper:Object.assign(Object.assign(Object.assign({},re.wrapper),w),F.wrapper)},open:l??p,mask:o,push:i,width:U,height:G,style:Object.assign(Object.assign({},j),g),className:oe(A,h),rootClassName:q,getContainer:V,afterOpenChange:c??S,panelRef:Z,zIndex:ne,"aria-labelledby":b??O,destroyOnClose:E??$}),s.createElement(qK,Object.assign({prefixCls:L},R,{ariaId:O,onClose:u}))))))},D0e=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,o=XK(e,["prefixCls","style","className","placement"]),{getPrefixCls:i}=s.useContext(jt),l=i("drawer",t),[c,u,d]=YK(l),f=oe(l,`${l}-pure`,`${l}-${a}`,u,d,r);return c(s.createElement("div",{className:f,style:n},s.createElement(qK,Object.assign({prefixCls:l},o))))};km._InternalPanelDoNotUseOrYouWillBeFired=D0e;function a_(e){return["small","middle","large"].includes(e)}function o_(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const k0e=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:o,fontSizeLG:i,fontSizeSM:l,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:"solid",borderColor:a,borderRadius:n,"&-large":{fontSize:i,borderRadius:c},"&-small":{paddingInline:o,borderRadius:u,fontSize:l},"&-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}},tc(e,{focus:!1})]}},A0e=dn(["Space","Addon"],e=>[k0e(e)]);var L0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{className:n,children:r,style:a,prefixCls:o}=e,i=L0e(e,["className","children","style","prefixCls"]),{getPrefixCls:l,direction:c}=ee.useContext(jt),u=l("space-addon",o),[d,f,m]=A0e(u),{compactItemClassnames:g,compactSize:h}=Ao(u,c),b=oe(u,f,g,m,{[`${u}-${h}`]:h},n);return d(ee.createElement("div",Object.assign({ref:t,className:b,style:a},i),r))}),QK=ee.createContext({latestIndex:0}),z0e=QK.Provider,H0e=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:o}=s.useContext(QK);return n==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:e,style:a},n),t{const{componentCls:t,antCls:n}=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 > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},W0e=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}}}},K0e=dn("Space",e=>{const t=en(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[V0e(t),W0e(t)]},()=>({}),{resetStyle:!1});var q0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{getPrefixCls:r,direction:a,size:o,className:i,style:l,classNames:c,styles:u}=sr("space"),{size:d=o??"small",align:f,className:m,rootClassName:g,children:h,direction:b="horizontal",prefixCls:p,split:S,style:C,wrap:x=!1,classNames:w,styles:$}=e,E=q0e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[R,I]=Array.isArray(d)?d:[d,d],O=a_(I),T=a_(R),_=o_(I),k=o_(R),A=rr(h,{keepEmpty:!0}),j=f===void 0&&b==="horizontal"?"center":f,D=r("space",p),[F,L,B]=K0e(D),K=oe(D,i,L,`${D}-${b}`,{[`${D}-rtl`]:a==="rtl",[`${D}-align-${j}`]:j,[`${D}-gap-row-${I}`]:O,[`${D}-gap-col-${R}`]:T},m,g,B),W=oe(`${D}-item`,(n=w==null?void 0:w.item)!==null&&n!==void 0?n:c.item),V=Object.assign(Object.assign({},u.item),$==null?void 0:$.item),q=A.map((Y,J)=>{const Q=(Y==null?void 0:Y.key)||`${W}-${J}`;return s.createElement(H0e,{className:W,key:Q,index:J,split:S,style:V},Y)}),U=s.useMemo(()=>({latestIndex:A.reduce((J,Q,Z)=>Q!=null?Z:J,0)}),[A]);if(A.length===0)return null;const G={};return x&&(G.flexWrap="wrap"),!T&&k&&(G.columnGap=R),!O&&_&&(G.rowGap=I),F(s.createElement("div",Object.assign({ref:t,className:K,style:Object.assign(Object.assign(Object.assign({},G),l),C)},E),s.createElement(z0e,{value:U},q)))}),qn=U0e;qn.Compact=Mre;qn.Addon=B0e;var G0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(jt),{prefixCls:a,type:o="default",danger:i,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:g,arrow:h,autoFocus:b,overlay:p,trigger:S,align:C,open:x,onOpenChange:w,placement:$,getPopupContainer:E,href:R,icon:I=s.createElement(p1,null),title:O,buttonsRender:T=le=>le,mouseEnterDelay:_,mouseLeaveDelay:k,overlayClassName:A,overlayStyle:j,destroyOnHidden:D,destroyPopupOnHide:F,dropdownRender:L,popupRender:B}=e,K=G0e(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"]),W=n("dropdown",a),V=`${W}-button`,U={menu:g,arrow:h,autoFocus:b,align:C,disabled:l,trigger:l?[]:S,onOpenChange:w,getPopupContainer:E||t,mouseEnterDelay:_,mouseLeaveDelay:k,overlayClassName:A,overlayStyle:j,destroyOnHidden:D,popupRender:B||L},{compactSize:G,compactItemClassnames:Y}=Ao(W,r),J=oe(V,Y,m);"destroyPopupOnHide"in e&&(U.destroyPopupOnHide=F),"overlay"in e&&(U.overlay=p),"open"in e&&(U.open=x),"placement"in e?U.placement=$:U.placement=r==="rtl"?"bottomLeft":"bottomRight";const Q=s.createElement(_n,{type:o,danger:i,disabled:l,loading:c,onClick:u,htmlType:d,href:R,title:O},f),Z=s.createElement(_n,{type:o,danger:i,icon:I}),[ne,ae]=T([Q,Z]);return s.createElement(qn.Compact,Object.assign({className:J,size:G,block:!0},K),ne,s.createElement(xg,Object.assign({},U),ae))};JK.__ANT_BUTTON=!0;const hu=xg;hu.Button=JK;function Y0e(e){return e==null?null:typeof e=="object"&&!s.isValidElement(e)?e:{title:e}}function ey(e){const[t,n]=s.useState(e);return s.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const X0e=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, opacity ${e.motionDurationFast} ${e.motionEaseInOut}, - transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},F0e=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${me(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 ${me(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),K5=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},D0e=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},wn(e)),F0e(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},K5(e,e.controlHeightSM)),"&-large":Object.assign({},K5(e,e.controlHeightLG))})}},k0e=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:o,labelColor:i,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},wn(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:c,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,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:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&: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:TR,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Oc=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),A0e=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label, - ${t}-col-xl-24${n}-label`]:Oc(e)}}},L0e=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},B0e=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Oc(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},z0e=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},Q0e=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${me(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 ${me(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),i_=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},J0e=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},$n(e)),Q0e(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},i_(e,e.controlHeightSM)),"&-large":Object.assign({},i_(e,e.controlHeightLG))})}},Z0e=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:o,labelColor:i,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},$n(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:c,color:i,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,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:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&: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:WR,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Pc=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),ebe=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label, + ${t}-col-xl-24${n}-label`]:Pc(e)}}},tbe=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},nbe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Pc(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},rbe=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, ${r}-col-24${n}-label, - ${r}-col-xl-24${n}-label`]:Oc(e)},[`@media (max-width: ${me(e.screenXSMax)})`]:[B0e(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Oc(e)}}}],[`@media (max-width: ${me(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Oc(e)}}},[`@media (max-width: ${me(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Oc(e)}}},[`@media (max-width: ${me(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Oc(e)}}}}},H0e=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}),FK=(e,t)=>tn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),_4=un("Form",(e,{rootPrefixCls:t})=>{const n=FK(e,t);return[D0e(n),k0e(n),j0e(n),A0e(n),L0e(n),z0e(n),Ay(n),TR]},H0e,{order:-1e3}),q5=[];function Rx(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const DK=({help:e,helpStatus:t,errors:n=q5,warnings:r=q5,className:a,fieldId:o,onVisibleChanged:i})=>{const{prefixCls:l}=s.useContext(LR),c=`${l}-item-explain`,u=Gn(l),[d,f,m]=_4(l,u),g=s.useMemo(()=>jm(l),[l]),h=Xb(n),b=Xb(r),p=s.useMemo(()=>e!=null?[Rx(e,"help",t)]:[].concat(ke(h.map((x,w)=>Rx(x,"error","error",w))),ke(b.map((x,w)=>Rx(x,"warning","warning",w)))),[e,t,h,b]),S=s.useMemo(()=>{const x={};return p.forEach(({key:w})=>{x[w]=(x[w]||0)+1}),p.map((w,$)=>Object.assign(Object.assign({},w),{key:x[w.key]>1?`${w.key}-fallback-${$}`:w.key}))},[p]),C={};return o&&(C.id=`${o}_help`),d(s.createElement(ma,{motionDeadline:g.motionDeadline,motionName:`${l}-show-help`,visible:!!S.length,onVisibleChanged:i},x=>{const{className:w,style:$}=x;return s.createElement("div",Object.assign({},C,{className:oe(c,w,m,u,a,f),style:$}),s.createElement(G9,Object.assign({keys:S},jm(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:R,error:I,errorStatus:O,className:T,style:N}=E;return s.createElement("div",{key:R,className:oe(T,{[`${c}-${O}`]:O}),style:N},I)}))}))};var V0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=s.useContext(Lr),{getPrefixCls:r,direction:a,requiredMark:o,colon:i,scrollToFirstError:l,className:c,style:u}=lr("form"),{prefixCls:d,className:f,rootClassName:m,size:g,disabled:h=n,form:b,colon:p,labelAlign:S,labelWrap:C,labelCol:x,wrapperCol:w,hideRequiredMark:$,layout:E="horizontal",scrollToFirstError:R,requiredMark:I,onFinishFailed:O,name:T,style:N,feedbackIcons:A,variant:k}=e,j=V0e(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),D=$r(g),F=s.useContext(S9),L=s.useMemo(()=>I!==void 0?I:$?!1:o!==void 0?o:!0,[$,I,o]),B=p??i,K=r("form",d),W=Gn(K),[V,q,U]=_4(K,W),G=oe(K,`${K}-${E}`,{[`${K}-hide-required-mark`]:L===!1,[`${K}-rtl`]:a==="rtl",[`${K}-${D}`]:D},U,W,q,c,f,m),[Y]=gW(b),{__INTERNAL__:J}=Y;J.name=T;const Q=s.useMemo(()=>({name:T,labelAlign:S,labelCol:x,labelWrap:C,wrapperCol:w,layout:E,colon:B,requiredMark:L,itemRef:J.itemRef,form:Y,feedbackIcons:A}),[T,S,x,w,E,B,L,Y,A]),Z=s.useRef(null);s.useImperativeHandle(t,()=>{var le;return Object.assign(Object.assign({},Y),{nativeElement:(le=Z.current)===null||le===void 0?void 0:le.nativeElement})});const ne=(le,re)=>{if(le){let fe={block:"nearest"};typeof le=="object"&&(fe=Object.assign(Object.assign({},fe),le)),Y.scrollToField(re,fe)}},ae=le=>{if(O==null||O(le),le.errorFields.length){const re=le.errorFields[0].name;if(R!==void 0){ne(R,re);return}l!==void 0&&ne(l,re)}};return V(s.createElement(Jz.Provider,{value:k},s.createElement(hR,{disabled:h},s.createElement(Xc.Provider,{value:D},s.createElement(Xz,{validateMessages:F},s.createElement(Vl.Provider,{value:Q},s.createElement(Qz,{status:!0},s.createElement(Sf,Object.assign({id:T},j,{name:T,onFinishFailed:ae,form:Y,ref:Z,style:Object.assign(Object.assign({},u),N),className:G})))))))))},K0e=s.forwardRef(W0e);function q0e(e){if(typeof e=="function")return e;const t=rr(e);return t.length<=1?t[0]:t}const kK=()=>{const{status:e,errors:t=[],warnings:n=[]}=s.useContext(zr);return{status:e,errors:t,warnings:n}};kK.Context=zr;function U0e(e){const[t,n]=s.useState(e),r=s.useRef(null),a=s.useRef([]),o=s.useRef(!1);s.useEffect(()=>(o.current=!1,()=>{o.current=!0,on.cancel(r.current),r.current=null}),[]);function i(l){o.current||(r.current===null&&(a.current=[],r.current=on(()=>{r.current=null,n(c=>{let u=c;return a.current.forEach(d=>{u=d(u)}),u})})),a.current.push(l))}return[t,i]}function G0e(){const{itemRef:e}=s.useContext(Vl),t=s.useRef({});function n(r,a){const o=a&&typeof a=="object"&&ec(a),i=r.join("_");return(t.current.name!==i||t.current.originRef!==o)&&(t.current.name=i,t.current.originRef=o,t.current.ref=Fr(e(r),o)),t.current.ref}return n}const Y0e=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},X0e=pf(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=FK(e,t);return Y0e(n)});var Q0e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:o,errors:i,warnings:l,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:g,label:h}=e,b=`${t}-item`,p=s.useContext(Vl),S=s.useMemo(()=>{let j=Object.assign({},a||p.wrapperCol||{});return h===null&&!r&&!a&&p.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(F=>{const L=F?[F]:[],B=Un(p.labelCol,L),K=typeof B=="object"?B:{},W=Un(j,L),V=typeof W=="object"?W:{};"span"in K&&!("offset"in V)&&K.span{const{labelCol:j,wrapperCol:D}=p;return Q0e(p,["labelCol","wrapperCol"])},[p]),w=s.useRef(null),[$,E]=s.useState(0);dn(()=>{u&&w.current?E(w.current.clientHeight):E(0)},[u]);const R=s.createElement("div",{className:`${b}-control-input`},s.createElement("div",{className:`${b}-control-input-content`},o)),I=s.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=m!==null||i.length||l.length?s.createElement(LR.Provider,{value:I},s.createElement(DK,{fieldId:f,errors:i,warnings:l,help:d,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:g})):null,T={};f&&(T.id=`${f}_extra`);const N=u?s.createElement("div",Object.assign({},T,{className:`${b}-extra`,ref:w}),u):null,A=O||N?s.createElement("div",{className:`${b}-additional`,style:m?{minHeight:m+$}:{}},O,N):null,k=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:R,errorList:O,extra:N}):s.createElement(s.Fragment,null,R,A);return s.createElement(Vl.Provider,{value:x},s.createElement(Xr,Object.assign({},S,{className:C}),k),s.createElement(X0e,{prefixCls:t}))};var ebe={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"},tbe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:ebe}))},AK=s.forwardRef(tbe),nbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var d;const[f]=Pa("Form"),{labelAlign:m,labelCol:g,labelWrap:h,colon:b}=s.useContext(Vl);if(!t)return null;const p=r||g||{},S=a||m,C=`${e}-item-label`,x=oe(C,S==="left"&&`${C}-left`,p.className,{[`${C}-wrap`]:!!h});let w=t;const $=o===!0||b!==!1&&o!==!1;$&&!u&&typeof t=="string"&&t.trim()&&(w=t.replace(/[:|:]\s*$/,""));const R=_0e(c);if(R){const{icon:k=s.createElement(AK,null)}=R,j=nbe(R,["icon"]),D=s.createElement(Kn,Object.assign({},j),s.cloneElement(k,{className:`${e}-item-tooltip`,title:"",onClick:F=>{F.preventDefault()},tabIndex:null}));w=s.createElement(s.Fragment,null,w,D)}const I=l==="optional",O=typeof l=="function",T=l===!1;O?w=l(w,{required:!!i}):I&&!i&&(w=s.createElement(s.Fragment,null,w,s.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=ji.Form)===null||d===void 0?void 0:d.optional))));let N;T?N="hidden":(I||O)&&(N="optional");const A=oe({[`${e}-item-required`]:i,[`${e}-item-required-mark-${N}`]:N,[`${e}-item-no-colon`]:!$});return s.createElement(Xr,Object.assign({},p,{className:x}),s.createElement("label",{htmlFor:n,className:A,title:typeof t=="string"?t:""},w))},abe={success:cu,warning:tc,error:ul,validating:Ya};function LK({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:o,meta:i,noStyle:l,name:c}){const u=`${o}-item`,{feedbackIcons:d}=s.useContext(Vl),f=mW(t,n,i,null,!!r,a),{isFormItemInput:m,status:g,hasFeedback:h,feedbackIcon:b,name:p}=s.useContext(zr),S=s.useMemo(()=>{var C;let x;if(r){const $=r!==!0&&r.icons||d,E=f&&((C=$==null?void 0:$({status:f,errors:t,warnings:n}))===null||C===void 0?void 0:C[f]),R=f?abe[f]:null;x=E!==!1&&R?s.createElement("span",{className:oe(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},E||s.createElement(R,null)):null}const w={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:x,isFormItemInput:!0,name:c};return l&&(w.status=(f??g)||"",w.isFormItemInput=m,w.hasFeedback=!!(r??h),w.feedbackIcon=r!==void 0?w.feedbackIcon:b,w.name=c??p),w},[f,r,l,m,g]);return s.createElement(zr.Provider,{value:S},e)}var obe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(k&&O.current){const V=getComputedStyle(O.current);F(Number.parseInt(V.marginBottom,10))}},[k,j]);const L=V=>{V||F(null)},K=((V=!1)=>{const q=V?T:u.errors,U=V?N:u.warnings;return mW(q,U,u,"",!!d,c)})(),W=oe(w,n,r,{[`${w}-with-help`]:A||T.length||N.length,[`${w}-has-feedback`]:K&&d,[`${w}-has-success`]:K==="success",[`${w}-has-warning`]:K==="warning",[`${w}-has-error`]:K==="error",[`${w}-is-validating`]:K==="validating",[`${w}-hidden`]:f,[`${w}-${R}`]:R});return s.createElement("div",{className:W,style:a,ref:O},s.createElement(Pi,Object.assign({className:`${w}-row`},nn(x,["_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"])),s.createElement(rbe,Object.assign({htmlFor:g},e,{requiredMark:$,required:h??b,prefixCls:t,vertical:I})),s.createElement(Z0e,Object.assign({},e,u,{errors:T,warnings:N,prefixCls:t,status:K,help:o,marginBottom:D,onErrorVisibleChanged:L}),s.createElement(Yz.Provider,{value:p},s.createElement(LK,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:K,name:C},m)))),!!D&&s.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-D}}))}const lbe="__SPLIT__";function sbe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],i=t[a];return o===i||typeof o=="function"||typeof i=="function"})}const cbe=s.memo(({children:e})=>e,(e,t)=>sbe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function U5(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ube(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:i,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:g,hidden:h,help:b,layout:p}=e,{getPrefixCls:S}=s.useContext(jt),{name:C}=s.useContext(Vl),x=q0e(c),w=typeof x=="function",$=s.useContext(Yz),{validateTrigger:E}=s.useContext(Gs),R=g!==void 0?g:E,I=t!=null,O=S("form",o),T=Gn(O),[N,A,k]=_4(O,T);cl();const j=s.useContext(Fm),D=s.useRef(null),[F,L]=U0e({}),[B,K]=Qc(()=>U5()),W=Q=>{const Z=j==null?void 0:j.getKey(Q.name);if(K(Q.destroy?U5():Q,!0),n&&b!==!1&&$){let ne=Q.name;if(Q.destroy)ne=D.current||ne;else if(Z!==void 0){const[ae,le]=Z;ne=[ae].concat(ke(le)),D.current=ne}$(Q,ne)}},V=(Q,Z)=>{L(ne=>{const ae=Object.assign({},ne),re=[].concat(ke(Q.name.slice(0,-1)),ke(Z)).join(lbe);return Q.destroy?delete ae[re]:ae[re]=Q,ae})},[q,U]=s.useMemo(()=>{const Q=ke(B.errors),Z=ke(B.warnings);return Object.values(F).forEach(ne=>{Q.push.apply(Q,ke(ne.errors||[])),Z.push.apply(Z,ke(ne.warnings||[]))}),[Q,Z]},[F,B.errors,B.warnings]),G=G0e();function Y(Q,Z,ne){return n&&!h?s.createElement(LK,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:q,warnings:U,noStyle:!0,name:t},Q):s.createElement(ibe,Object.assign({key:"row"},e,{className:oe(r,k,T,A),prefixCls:O,fieldId:Z,isRequired:ne,errors:q,warnings:U,meta:B,onSubItemMetaChange:V,layout:p,name:t}),Q)}if(!I&&!w&&!a)return N(Y(x));let J={};return typeof d=="string"?J.label=d:t&&(J.label=String(t)),f&&(J=Object.assign(Object.assign({},J),f)),N(s.createElement(kR,Object.assign({},e,{messageVariables:J,trigger:m,validateTrigger:R,onMetaChange:W}),(Q,Z,ne)=>{const ae=vm(t).length&&Z?Z.name:[],le=vW(ae,C),re=u!==void 0?u:!!(l!=null&&l.some(de=>{if(de&&typeof de=="object"&&de.required&&!de.warningOnly)return!0;if(typeof de=="function"){const ie=de(ne);return(ie==null?void 0:ie.required)&&!(ie!=null&&ie.warningOnly)}return!1})),fe=Object.assign({},Q);let ue=null;if(Array.isArray(x)&&I)ue=x;else if(!(w&&(!(i||a)||I))){if(!(a&&!w&&!I))if(s.isValidElement(x)){const de=Object.assign(Object.assign({},x.props),fe);if(de.id||(de.id=le),b||q.length>0||U.length>0||e.extra){const ve=[];(b||q.length>0)&&ve.push(`${le}_help`),e.extra&&ve.push(`${le}_extra`),de["aria-describedby"]=ve.join(" ")}q.length>0&&(de["aria-invalid"]="true"),re&&(de["aria-required"]="true"),_i(x)&&(de.ref=G(ae,x)),new Set([].concat(ke(vm(m)),ke(vm(R)))).forEach(ve=>{de[ve]=(...he)=>{var Ce,pe,Se,ge,ye;(Se=fe[ve])===null||Se===void 0||(Ce=Se).call.apply(Ce,[fe].concat(he)),(ye=(ge=x.props)[ve])===null||ye===void 0||(pe=ye).call.apply(pe,[ge].concat(he))}});const se=[de["aria-required"],de["aria-invalid"],de["aria-describedby"]];ue=s.createElement(cbe,{control:fe,update:x,childProps:se},Br(x,de))}else w&&(i||a)&&!I?ue=x(ne):ue=x}return Y(ue,le,re)}))}const BK=ube;BK.useStatus=kK;var dbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,children:n}=e,r=dbe(e,["prefixCls","children"]);const{getPrefixCls:a}=s.useContext(jt),o=a("form",t),i=s.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return s.createElement(Kz,Object.assign({},r),(l,c,u)=>s.createElement(LR.Provider,{value:i},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function vbe(){const{form:e}=s.useContext(Vl);return e}const Fn=K0e;Fn.Item=BK;Fn.List=fbe;Fn.ErrorList=DK;Fn.useForm=gW;Fn.useFormInstance=vbe;Fn.useWatch=Gz;Fn.Provider=Xz;Fn.create=()=>{};var mbe={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"},gbe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:mbe}))},j4=s.forwardRef(gbe);function zK(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function pbe(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function As(e,t,n,r){var a=Cm.unstable_batchedUpdates?function(i){Cm.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var Ig=s.createContext(null),hbe=function(t){var n=t.visible,r=t.maskTransitionName,a=t.getContainer,o=t.prefixCls,i=t.rootClassName,l=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,m=t.transform,g=t.count,h=t.scale,b=t.minScale,p=t.maxScale,S=t.closeIcon,C=t.onActive,x=t.onClose,w=t.onZoomIn,$=t.onZoomOut,E=t.onRotateRight,R=t.onRotateLeft,I=t.onFlipX,O=t.onFlipY,T=t.onReset,N=t.toolbarRender,A=t.zIndex,k=t.image,j=s.useContext(Ig),D=l.rotateLeft,F=l.rotateRight,L=l.zoomIn,B=l.zoomOut,K=l.close,W=l.left,V=l.right,q=l.flipX,U=l.flipY,G="".concat(o,"-operations-operation");s.useEffect(function(){var ie=function(ve){ve.keyCode===ot.ESC&&x()};return n&&window.addEventListener("keydown",ie),function(){window.removeEventListener("keydown",ie)}},[n]);var Y=function(se,ve){se.preventDefault(),se.stopPropagation(),C(ve)},J=s.useCallback(function(ie){var se=ie.type,ve=ie.disabled,he=ie.onClick,Ce=ie.icon;return s.createElement("div",{key:se,className:oe(G,"".concat(o,"-operations-operation-").concat(se),z({},"".concat(o,"-operations-operation-disabled"),!!ve)),onClick:he},Ce)},[G,o]),Q=u?J({icon:W,onClick:function(se){return Y(se,-1)},type:"prev",disabled:f===0}):void 0,Z=u?J({icon:V,onClick:function(se){return Y(se,1)},type:"next",disabled:f===g-1}):void 0,ne=J({icon:U,onClick:O,type:"flipY"}),ae=J({icon:q,onClick:I,type:"flipX"}),le=J({icon:D,onClick:R,type:"rotateLeft"}),re=J({icon:F,onClick:E,type:"rotateRight"}),fe=J({icon:B,onClick:$,type:"zoomOut",disabled:h<=b}),ue=J({icon:L,onClick:w,type:"zoomIn",disabled:h===p}),de=s.createElement("div",{className:"".concat(o,"-operations")},ne,ae,le,re,fe,ue);return s.createElement(ma,{visible:n,motionName:r},function(ie){var se=ie.className,ve=ie.style;return s.createElement(gg,{open:!0,getContainer:a??document.body},s.createElement("div",{className:oe("".concat(o,"-operations-wrapper"),se,i),style:P(P({},ve),{},{zIndex:A})},S===null?null:s.createElement("button",{className:"".concat(o,"-close"),onClick:x},S||K),u&&s.createElement(s.Fragment,null,s.createElement("div",{className:oe("".concat(o,"-switch-left"),z({},"".concat(o,"-switch-left-disabled"),f===0)),onClick:function(Ce){return Y(Ce,-1)}},W),s.createElement("div",{className:oe("".concat(o,"-switch-right"),z({},"".concat(o,"-switch-right-disabled"),f===g-1)),onClick:function(Ce){return Y(Ce,1)}},V)),s.createElement("div",{className:"".concat(o,"-footer")},d&&s.createElement("div",{className:"".concat(o,"-progress")},c?c(f+1,g):s.createElement("bdi",null,"".concat(f+1," / ").concat(g))),N?N(de,P(P({icons:{prevIcon:Q,nextIcon:Z,flipYIcon:ne,flipXIcon:ae,rotateLeftIcon:le,rotateRightIcon:re,zoomOutIcon:fe,zoomInIcon:ue},actions:{onActive:C,onFlipY:O,onFlipX:I,onRotateLeft:R,onRotateRight:E,onZoomOut:$,onZoomIn:w,onReset:T,onClose:x},transform:m},j?{current:f,total:g}:{}),{},{image:k})):de)))})},Sh={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function bbe(e,t,n,r){var a=s.useRef(null),o=s.useRef([]),i=s.useState(Sh),l=ce(i,2),c=l[0],u=l[1],d=function(h){u(Sh),ei(Sh,c)||r==null||r({transform:Sh,action:h})},f=function(h,b){a.current===null&&(o.current=[],a.current=on(function(){u(function(p){var S=p;return o.current.forEach(function(C){S=P(P({},S),C)}),a.current=null,r==null||r({transform:S,action:b}),S})})),o.current.push(P(P({},c),h))},m=function(h,b,p,S,C){var x=e.current,w=x.width,$=x.height,E=x.offsetWidth,R=x.offsetHeight,I=x.offsetLeft,O=x.offsetTop,T=h,N=c.scale*h;N>n?(N=n,T=n/c.scale):Nr){if(t>0)return z({},e,o);if(t<0&&ar)return z({},e,t<0?o:-o);return{}}function HK(e,t,n,r){var a=zK(),o=a.width,i=a.height,l=null;return e<=o&&t<=i?l={x:0,y:0}:(e>o||t>i)&&(l=P(P({},G5("x",n,e,o)),G5("y",r,t,i))),l}var Cd=1,ybe=1;function Cbe(e,t,n,r,a,o,i){var l=a.rotate,c=a.scale,u=a.x,d=a.y,f=s.useState(!1),m=ce(f,2),g=m[0],h=m[1],b=s.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),p=function($){!t||$.button!==0||($.preventDefault(),$.stopPropagation(),b.current={diffX:$.pageX-u,diffY:$.pageY-d,transformX:u,transformY:d},h(!0))},S=function($){n&&g&&o({x:$.pageX-b.current.diffX,y:$.pageY-b.current.diffY},"move")},C=function(){if(n&&g){h(!1);var $=b.current,E=$.transformX,R=$.transformY,I=u!==E&&d!==R;if(!I)return;var O=e.current.offsetWidth*c,T=e.current.offsetHeight*c,N=e.current.getBoundingClientRect(),A=N.left,k=N.top,j=l%180!==0,D=HK(j?T:O,j?O:T,A,k);D&&o(P({},D),"dragRebound")}},x=function($){if(!(!n||$.deltaY==0)){var E=Math.abs($.deltaY/100),R=Math.min(E,ybe),I=Cd+R*r;$.deltaY>0&&(I=Cd/I),i(I,"wheel",$.clientX,$.clientY)}};return s.useEffect(function(){var w,$,E,R;if(t){E=As(window,"mouseup",C,!1),R=As(window,"mousemove",S,!1);try{window.top!==window.self&&(w=As(window.top,"mouseup",C,!1),$=As(window.top,"mousemove",S,!1))}catch{}}return function(){var I,O,T,N;(I=E)===null||I===void 0||I.remove(),(O=R)===null||O===void 0||O.remove(),(T=w)===null||T===void 0||T.remove(),(N=$)===null||N===void 0||N.remove()}},[n,g,u,d,l,t]),{isMoving:g,onMouseDown:p,onMouseMove:S,onMouseUp:C,onWheel:x}}function Sbe(e){return new Promise(function(t){if(!e){t(!1);return}var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function VK(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,a=s.useState(n?"loading":"normal"),o=ce(a,2),i=o[0],l=o[1],c=s.useRef(!1),u=i==="error";s.useEffect(function(){var g=!0;return Sbe(t).then(function(h){!h&&g&&l("error")}),function(){g=!1}},[t]),s.useEffect(function(){n&&!c.current?l("loading"):u&&l("normal")},[t]);var d=function(){l("normal")},f=function(h){c.current=!1,i==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(c.current=!0,d())},m=u&&r?{src:r}:{onLoad:d,src:t};return[f,m,i]}function Qb(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function xbe(e,t,n,r){var a=Qb(e,n),o=Qb(t,r);if(a===0&&o===0)return[e.x,e.y];var i=a/(a+o),l=e.x+i*(t.x-e.x),c=e.y+i*(t.y-e.y);return[l,c]}function wbe(e,t,n,r,a,o,i){var l=a.rotate,c=a.scale,u=a.x,d=a.y,f=s.useState(!1),m=ce(f,2),g=m[0],h=m[1],b=s.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),p=function($){b.current=P(P({},b.current),$)},S=function($){if(t){$.stopPropagation(),h(!0);var E=$.touches,R=E===void 0?[]:E;R.length>1?p({point1:{x:R[0].clientX,y:R[0].clientY},point2:{x:R[1].clientX,y:R[1].clientY},eventType:"touchZoom"}):p({point1:{x:R[0].clientX-u,y:R[0].clientY-d},eventType:"move"})}},C=function($){var E=$.touches,R=E===void 0?[]:E,I=b.current,O=I.point1,T=I.point2,N=I.eventType;if(R.length>1&&N==="touchZoom"){var A={x:R[0].clientX,y:R[0].clientY},k={x:R[1].clientX,y:R[1].clientY},j=xbe(O,T,A,k),D=ce(j,2),F=D[0],L=D[1],B=Qb(A,k)/Qb(O,T);i(B,"touchZoom",F,L,!0),p({point1:A,point2:k,eventType:"touchZoom"})}else N==="move"&&(o({x:R[0].clientX-O.x,y:R[0].clientY-O.y},"move"),p({eventType:"move"}))},x=function(){if(n){if(g&&h(!1),p({eventType:"none"}),r>c)return o({x:0,y:0,scale:r},"touchZoom");var $=e.current.offsetWidth*c,E=e.current.offsetHeight*c,R=e.current.getBoundingClientRect(),I=R.left,O=R.top,T=l%180!==0,N=HK(T?E:$,T?$:E,I,O);N&&o(P({},N),"dragRebound")}};return s.useEffect(function(){var w;return n&&t&&(w=As(window,"touchmove",function($){return $.preventDefault()},{passive:!1})),function(){var $;($=w)===null||$===void 0||$.remove()}},[n,t]),{isTouching:g,onTouchStart:S,onTouchMove:C,onTouchEnd:x}}var $be=["fallback","src","imgRef"],Ebe=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Pbe=function(t){var n=t.fallback,r=t.src,a=t.imgRef,o=Ue(t,$be),i=VK({src:r,fallback:n}),l=ce(i,2),c=l[0],u=l[1];return ee.createElement("img",Me({ref:function(f){a.current=f,c(f)}},o,u))},WK=function(t){var n=t.prefixCls,r=t.src,a=t.alt,o=t.imageInfo,i=t.fallback,l=t.movable,c=l===void 0?!0:l,u=t.onClose,d=t.visible,f=t.icons,m=f===void 0?{}:f,g=t.rootClassName,h=t.closeIcon,b=t.getContainer,p=t.current,S=p===void 0?0:p,C=t.count,x=C===void 0?1:C,w=t.countRender,$=t.scaleStep,E=$===void 0?.5:$,R=t.minScale,I=R===void 0?1:R,O=t.maxScale,T=O===void 0?50:O,N=t.transitionName,A=N===void 0?"zoom":N,k=t.maskTransitionName,j=k===void 0?"fade":k,D=t.imageRender,F=t.imgCommonProps,L=t.toolbarRender,B=t.onTransform,K=t.onChange,W=Ue(t,Ebe),V=s.useRef(),q=s.useContext(Ig),U=q&&x>1,G=q&&x>=1,Y=s.useState(!0),J=ce(Y,2),Q=J[0],Z=J[1],ne=bbe(V,I,T,B),ae=ne.transform,le=ne.resetTransform,re=ne.updateTransform,fe=ne.dispatchZoomChange,ue=Cbe(V,c,d,E,ae,re,fe),de=ue.isMoving,ie=ue.onMouseDown,se=ue.onWheel,ve=wbe(V,c,d,I,ae,re,fe),he=ve.isTouching,Ce=ve.onTouchStart,pe=ve.onTouchMove,Se=ve.onTouchEnd,ge=ae.rotate,ye=ae.scale,xe=oe(z({},"".concat(n,"-moving"),de));s.useEffect(function(){Q||Z(!0)},[Q]);var $e=function(){le("close")},He=function(){fe(Cd+E,"zoomIn")},Te=function(){fe(Cd/(Cd+E),"zoomOut")},Re=function(){re({rotate:ge+90},"rotateRight")},Fe=function(){re({rotate:ge-90},"rotateLeft")},je=function(){re({flipX:!ae.flipX},"flipX")},Ee=function(){re({flipY:!ae.flipY},"flipY")},Le=function(){le("reset")},Pe=function(Qe){var lt=S+Qe;!Number.isInteger(lt)||lt<0||lt>x-1||(Z(!1),le(Qe<0?"prev":"next"),K==null||K(lt,S))},ze=function(Qe){!d||!U||(Qe.keyCode===ot.LEFT?Pe(-1):Qe.keyCode===ot.RIGHT&&Pe(1))},Oe=function(Qe){d&&(ye!==1?re({x:0,y:0,scale:1},"doubleClick"):fe(Cd+E,"doubleClick",Qe.clientX,Qe.clientY))};s.useEffect(function(){var Be=As(window,"keydown",ze,!1);return function(){Be.remove()}},[d,U,S]);var we=ee.createElement(Pbe,Me({},F,{width:t.width,height:t.height,imgRef:V,className:"".concat(n,"-img"),alt:a,style:{transform:"translate3d(".concat(ae.x,"px, ").concat(ae.y,"px, 0) scale3d(").concat(ae.flipX?"-":"").concat(ye,", ").concat(ae.flipY?"-":"").concat(ye,", 1) rotate(").concat(ge,"deg)"),transitionDuration:(!Q||he)&&"0s"},fallback:i,src:r,onWheel:se,onMouseDown:ie,onDoubleClick:Oe,onTouchStart:Ce,onTouchMove:pe,onTouchEnd:Se,onTouchCancel:Se})),_e=P({url:r,alt:a},o);return ee.createElement(ee.Fragment,null,ee.createElement(FR,Me({transitionName:A,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:n,onClose:u,visible:d,classNames:{wrapper:xe},rootClassName:g,getContainer:b},W,{afterClose:$e}),ee.createElement("div",{className:"".concat(n,"-img-wrapper")},D?D(we,P({transform:ae,image:_e},q?{current:S}:{})):we)),ee.createElement(hbe,{visible:d,transform:ae,maskTransitionName:j,closeIcon:h,getContainer:b,prefixCls:n,rootClassName:g,icons:m,countRender:w,showSwitch:U,showProgress:G,current:S,count:x,scale:ye,minScale:I,maxScale:T,toolbarRender:L,onActive:Pe,onZoomIn:He,onZoomOut:Te,onRotateRight:Re,onRotateLeft:Fe,onFlipX:je,onFlipY:Ee,onClose:u,onReset:Le,zIndex:W.zIndex!==void 0?W.zIndex+1:void 0,image:_e}))},nO=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Obe(e){var t=s.useState({}),n=ce(t,2),r=n[0],a=n[1],o=s.useCallback(function(l,c){return a(function(u){return P(P({},u),{},z({},l,c))}),function(){a(function(u){var d=P({},u);return delete d[l],d})}},[]),i=s.useMemo(function(){return e?e.map(function(l){if(typeof l=="string")return{data:{src:l}};var c={};return Object.keys(l).forEach(function(u){["src"].concat(ke(nO)).includes(u)&&(c[u]=l[u])}),{data:c}}):Object.keys(r).reduce(function(l,c){var u=r[c],d=u.canPreview,f=u.data;return d&&l.push({data:f,id:c}),l},[])},[e,r]);return[i,o,!!e]}var Ibe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Rbe=["src"],Mbe=function(t){var n,r=t.previewPrefixCls,a=r===void 0?"rc-image-preview":r,o=t.children,i=t.icons,l=i===void 0?{}:i,c=t.items,u=t.preview,d=t.fallback,f=it(u)==="object"?u:{},m=f.visible,g=f.onVisibleChange,h=f.getContainer,b=f.current,p=f.movable,S=f.minScale,C=f.maxScale,x=f.countRender,w=f.closeIcon,$=f.onChange,E=f.onTransform,R=f.toolbarRender,I=f.imageRender,O=Ue(f,Ibe),T=Obe(c),N=ce(T,3),A=N[0],k=N[1],j=N[2],D=_t(0,{value:b}),F=ce(D,2),L=F[0],B=F[1],K=s.useState(!1),W=ce(K,2),V=W[0],q=W[1],U=((n=A[L])===null||n===void 0?void 0:n.data)||{},G=U.src,Y=Ue(U,Rbe),J=_t(!!m,{value:m,onChange:function(he,Ce){g==null||g(he,Ce,L)}}),Q=ce(J,2),Z=Q[0],ne=Q[1],ae=s.useState(null),le=ce(ae,2),re=le[0],fe=le[1],ue=s.useCallback(function(ve,he,Ce,pe){var Se=j?A.findIndex(function(ge){return ge.data.src===he}):A.findIndex(function(ge){return ge.id===ve});B(Se<0?0:Se),ne(!0),fe({x:Ce,y:pe}),q(!0)},[A,j]);s.useEffect(function(){Z?V||B(0):q(!1)},[Z]);var de=function(he,Ce){B(he),$==null||$(he,Ce)},ie=function(){ne(!1),fe(null)},se=s.useMemo(function(){return{register:k,onPreview:ue}},[k,ue]);return s.createElement(Ig.Provider,{value:se},o,s.createElement(WK,Me({"aria-hidden":!Z,movable:p,visible:Z,prefixCls:a,closeIcon:w,onClose:ie,mousePosition:re,imgCommonProps:Y,src:G,fallback:d,icons:l,minScale:S,maxScale:C,getContainer:h,current:L,count:A.length,countRender:x,onTransform:E,toolbarRender:R,imageRender:I,onChange:de},O)))},Y5=0;function Tbe(e,t){var n=s.useState(function(){return Y5+=1,String(Y5)}),r=ce(n,1),a=r[0],o=s.useContext(Ig),i={data:t,canPreview:e};return s.useEffect(function(){if(o)return o.register(a,i)},[]),s.useEffect(function(){o&&o.register(a,i)},[e,t]),a}var Nbe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],_be=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],F4=function(t){var n=t.src,r=t.alt,a=t.onPreviewClose,o=t.prefixCls,i=o===void 0?"rc-image":o,l=t.previewPrefixCls,c=l===void 0?"".concat(i,"-preview"):l,u=t.placeholder,d=t.fallback,f=t.width,m=t.height,g=t.style,h=t.preview,b=h===void 0?!0:h,p=t.className,S=t.onClick,C=t.onError,x=t.wrapperClassName,w=t.wrapperStyle,$=t.rootClassName,E=Ue(t,Nbe),R=u&&u!==!0,I=it(b)==="object"?b:{},O=I.src,T=I.visible,N=T===void 0?void 0:T,A=I.onVisibleChange,k=A===void 0?a:A,j=I.getContainer,D=j===void 0?void 0:j,F=I.mask,L=I.maskClassName,B=I.movable,K=I.icons,W=I.scaleStep,V=I.minScale,q=I.maxScale,U=I.imageRender,G=I.toolbarRender,Y=Ue(I,_be),J=O??n,Q=_t(!!N,{value:N,onChange:k}),Z=ce(Q,2),ne=Z[0],ae=Z[1],le=VK({src:n,isCustomPlaceholder:R,fallback:d}),re=ce(le,3),fe=re[0],ue=re[1],de=re[2],ie=s.useState(null),se=ce(ie,2),ve=se[0],he=se[1],Ce=s.useContext(Ig),pe=!!b,Se=function(){ae(!1),he(null)},ge=oe(i,x,$,z({},"".concat(i,"-error"),de==="error")),ye=s.useMemo(function(){var Te={};return nO.forEach(function(Re){t[Re]!==void 0&&(Te[Re]=t[Re])}),Te},nO.map(function(Te){return t[Te]})),xe=s.useMemo(function(){return P(P({},ye),{},{src:J})},[J,ye]),$e=Tbe(pe,xe),He=function(Re){var Fe=pbe(Re.target),je=Fe.left,Ee=Fe.top;Ce?Ce.onPreview($e,J,je,Ee):(he({x:je,y:Ee}),ae(!0)),S==null||S(Re)};return s.createElement(s.Fragment,null,s.createElement("div",Me({},E,{className:ge,onClick:pe?He:S,style:P({width:f,height:m},w)}),s.createElement("img",Me({},ye,{className:oe("".concat(i,"-img"),z({},"".concat(i,"-img-placeholder"),u===!0),p),style:P({height:m},g),ref:fe},ue,{width:f,height:m,onError:C})),de==="loading"&&s.createElement("div",{"aria-hidden":"true",className:"".concat(i,"-placeholder")},u),F&&pe&&s.createElement("div",{className:oe("".concat(i,"-mask"),L),style:{display:(g==null?void 0:g.display)==="none"?"none":void 0}},F)),!Ce&&pe&&s.createElement(WK,Me({"aria-hidden":!ne,visible:ne,prefixCls:c,onClose:Se,mousePosition:ve,src:J,alt:r,imageInfo:{width:f,height:m},fallback:d,getContainer:D,icons:K,movable:B,scaleStep:W,minScale:V,maxScale:q,rootClassName:$,imageRender:U,imgCommonProps:ye,toolbarRender:G},Y)))};F4.PreviewGroup=Mbe;var jbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Fbe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:jbe}))},Dbe=s.forwardRef(Fbe),kbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Abe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:kbe}))},Lbe=s.forwardRef(Abe),Bbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},zbe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Bbe}))},X5=s.forwardRef(zbe),Hbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Vbe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Hbe}))},Wbe=s.forwardRef(Vbe),Kbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},qbe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Kbe}))},Ube=s.forwardRef(qbe);const rO=e=>({position:e||"absolute",inset:0}),Gbe=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:o,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new gn("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},ni),{padding:`0 ${me(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},Ybe=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:o,paddingLG:i,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,m=new gn(n).setA(.1),g=m.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:f,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${me(i)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},Xbe=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:o,motionDurationSlow:i}=e,l=new gn(t).setA(.1),c=l.clone().setA(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},Qbe=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},rO()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},rO()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Ybe(e),Xbe(e)]}]},Jbe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Gbe(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},rO())}}},Zbe=e=>{const{previewCls:t}=e;return{[`${t}-root`]:yf(e,"zoom"),"&":Rz(e,!0)}},eye=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new gn(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new gn(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new gn(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),KK=un("Image",e=>{const t=`${e.componentCls}-preview`,n=tn(e,{previewCls:t,modalMaskBg:new gn("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Jbe(n),Qbe(n),aH(tn(n,{componentCls:t})),Zbe(n)]},eye);var tye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{previewPrefixCls:t,preview:n}=e,r=tye(e,["previewPrefixCls","preview"]);const{getPrefixCls:a,direction:o}=s.useContext(jt),i=a("image",t),l=`${i}-preview`,c=a(),u=Gn(i),[d,f,m]=KK(i,u),[g]=ui("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=s.useMemo(()=>Object.assign(Object.assign({},qK),{left:o==="rtl"?s.createElement(ai,null):s.createElement(Wl,null),right:o==="rtl"?s.createElement(Wl,null):s.createElement(ai,null)}),[o]),b=s.useMemo(()=>{var p;if(n===!1)return n;const S=typeof n=="object"?n:{},C=oe(f,m,u,(p=S.rootClassName)!==null&&p!==void 0?p:"");return Object.assign(Object.assign({},S),{transitionName:ga(c,"zoom",S.transitionName),maskTransitionName:ga(c,"fade",S.maskTransitionName),rootClassName:C,zIndex:g})},[n,c,g,f,m,u]);return d(s.createElement(F4.PreviewGroup,Object.assign({preview:b,previewPrefixCls:l,icons:h},r)))};var Q5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,preview:n,className:r,rootClassName:a,style:o,fallback:i}=e,l=Q5(e,["prefixCls","preview","className","rootClassName","style","fallback"]),{getPrefixCls:c,getPopupContainer:u,className:d,style:f,preview:m,fallback:g}=lr("image"),[h]=Pa("Image"),b=c("image",t),p=c(),S=Gn(b),[C,x,w]=KK(b,S),$=oe(a,x,w,S),E=oe(r,x,d),[R]=ui("ImagePreview",typeof n=="object"?n.zIndex:void 0),I=s.useMemo(()=>{if(n===!1)return n;const N=typeof n=="object"?n:{},{getContainer:A,closeIcon:k,rootClassName:j,destroyOnClose:D,destroyOnHidden:F}=N,L=Q5(N,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:s.createElement("div",{className:`${b}-mask-info`},s.createElement(j4,null),h==null?void 0:h.preview),icons:qK},L),{destroyOnClose:F??D,rootClassName:oe($,j),getContainer:A??u,transitionName:ga(p,"zoom",N.transitionName),maskTransitionName:ga(p,"fade",N.maskTransitionName),zIndex:R,closeIcon:k??(m==null?void 0:m.closeIcon)})},[n,h,m==null?void 0:m.closeIcon]),O=Object.assign(Object.assign({},f),o),T=i??g;return C(s.createElement(F4,Object.assign({prefixCls:b,preview:I,rootClassName:$,className:E,style:O,fallback:T},l)))};UK.PreviewGroup=nye;const rye=e=>{const{getPrefixCls:t,direction:n}=s.useContext(jt),{prefixCls:r,className:a}=e,o=t("input-group",r),i=t("input"),[l,c,u]=wW(i),d=oe(o,u,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,a),f=s.useContext(zr),m=s.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(s.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(zr.Provider,{value:m},e.children)))},aye=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${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}}}},oye=un(["Input","OTP"],e=>{const t=tn(e,vu(e));return aye(t)},mu);var iye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{className:n,value:r,onChange:a,onActiveChange:o,index:i,mask:l}=e,c=iye(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=s.useContext(jt),d=u("otp"),f=typeof l=="string"?l:r,m=s.useRef(null);s.useImperativeHandle(t,()=>m.current);const g=p=>{a(i,p.target.value)},h=()=>{on(()=>{var p;const S=(p=m.current)===null||p===void 0?void 0:p.input;document.activeElement===S&&S&&S.select()})},b=p=>{const{key:S,ctrlKey:C,metaKey:x}=p;S==="ArrowLeft"?o(i-1):S==="ArrowRight"?o(i+1):S==="z"&&(C||x)?p.preventDefault():S==="Backspace"&&!r&&o(i-1),h()};return s.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&s.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),s.createElement(Tf,Object.assign({"aria-label":`OTP Input ${i+1}`,type:l===!0?"password":"text"},c,{ref:m,value:r,onInput:g,onFocus:h,onKeyDown:b,onMouseDown:h,onMouseUp:h,className:oe(n,{[`${d}-mask-input`]:l})})))});var sye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?s.createElement("span",{className:`${n}-separator`},a):null},uye=s.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:i,onChange:l,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:g,mask:h,type:b,onInput:p,inputMode:S}=e,C=sye(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:w}=s.useContext(jt),$=x("otp",n),E=dr(C,{aria:!0,data:!0,attr:!0}),[R,I,O]=oye($),T=$r(G=>a??G),N=s.useContext(zr),A=Ul(N.status,m),k=s.useMemo(()=>Object.assign(Object.assign({},N),{status:A,hasFeedback:!1,feedbackIcon:null}),[N,A]),j=s.useRef(null),D=s.useRef({});s.useImperativeHandle(t,()=>({focus:()=>{var G;(G=D.current[0])===null||G===void 0||G.focus()},blur:()=>{var G;for(let Y=0;Yc?c(G):G,[L,B]=s.useState(()=>xh(F(o||"")));s.useEffect(()=>{i!==void 0&&B(xh(i))},[i]);const K=Zt(G=>{B(G),p&&p(G),l&&G.length===r&&G.every(Y=>Y)&&G.some((Y,J)=>L[J]!==Y)&&l(G.join(""))}),W=Zt((G,Y)=>{let J=ke(L);for(let Z=0;Z=0&&!J[Z];Z-=1)J.pop();const Q=F(J.map(Z=>Z||" ").join(""));return J=xh(Q).map((Z,ne)=>Z===" "&&!J[ne]?J[ne]:Z),J}),V=(G,Y)=>{var J;const Q=W(G,Y),Z=Math.min(G+Y.length,r-1);Z!==G&&Q[G]!==void 0&&((J=D.current[Z])===null||J===void 0||J.focus()),K(Q)},q=G=>{var Y;(Y=D.current[G])===null||Y===void 0||Y.focus()},U={variant:d,disabled:f,status:A,mask:h,type:b,inputMode:S};return R(s.createElement("div",Object.assign({},E,{ref:j,className:oe($,{[`${$}-sm`]:T==="small",[`${$}-lg`]:T==="large",[`${$}-rtl`]:w==="rtl"},O,I),role:"group"}),s.createElement(zr.Provider,{value:k},Array.from({length:r}).map((G,Y)=>{const J=`otp-${Y}`,Q=L[Y]||"";return s.createElement(s.Fragment,{key:J},s.createElement(lye,Object.assign({ref:Z=>{D.current[Y]=Z},index:Y,size:T,htmlSize:1,className:`${$}-input`,onChange:V,value:Q,onActiveChange:q,autoFocus:Y===0&&g},U)),Ye?s.createElement(j4,null):s.createElement(GK,null),gye={click:"onClick",hover:"onMouseOver"},pye=s.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=mye,suffix:i}=e,l=s.useContext(Lr),c=n??l,u=typeof a=="object"&&a.visible!==void 0,[d,f]=s.useState(()=>u?a.visible:!1),m=s.useRef(null);s.useEffect(()=>{u&&f(a.visible)},[u,a]);const g=gK(m),h=()=>{var N;if(c)return;d&&g();const A=!d;f(A),typeof a=="object"&&((N=a.onVisibleChange)===null||N===void 0||N.call(a,A))},b=N=>{const A=gye[r]||"",k=o(d),j={[A]:h,className:`${N}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return s.cloneElement(s.isValidElement(k)?k:s.createElement("span",null,k),j)},{className:p,prefixCls:S,inputPrefixCls:C,size:x}=e,w=vye(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=s.useContext(jt),E=$("input",C),R=$("input-password",S),I=a&&b(R),O=oe(R,p,{[`${R}-${x}`]:!!x}),T=Object.assign(Object.assign({},nn(w,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:O,prefixCls:E,suffix:s.createElement(s.Fragment,null,I,i)});return x&&(T.size=x),s.createElement(Tf,Object.assign({ref:Fr(t,m)},T))});var hye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:i,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:g,onCompositionEnd:h,variant:b,onPressEnter:p}=e,S=hye(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:C,direction:x}=s.useContext(jt),w=s.useRef(!1),$=C("input-search",n),E=C("input",r),{compactSize:R}=ko($,x),I=$r(U=>{var G;return(G=o??R)!==null&&G!==void 0?G:U}),O=s.useRef(null),T=U=>{U!=null&&U.target&&U.type==="click"&&f&&f(U.target.value,U,{source:"clear"}),m==null||m(U)},N=U=>{var G;document.activeElement===((G=O.current)===null||G===void 0?void 0:G.input)&&U.preventDefault()},A=U=>{var G,Y;f&&f((Y=(G=O.current)===null||G===void 0?void 0:G.input)===null||Y===void 0?void 0:Y.value,U,{source:"input"})},k=U=>{w.current||u||(p==null||p(U),A(U))},j=typeof l=="boolean"?s.createElement(n1,null):null,D=`${$}-button`;let F;const L=l||{},B=L.type&&L.type.__ANT_BUTTON===!0;B||L.type==="button"?F=Br(L,Object.assign({onMouseDown:N,onClick:U=>{var G,Y;(Y=(G=L==null?void 0:L.props)===null||G===void 0?void 0:G.onClick)===null||Y===void 0||Y.call(G,U),A(U)},key:"enterButton"},B?{className:D,size:I}:{})):F=s.createElement(jn,{className:D,color:l?"primary":"default",size:I,disabled:d,key:"enterButton",onMouseDown:N,onClick:A,loading:u,icon:j,variant:b==="borderless"||b==="filled"||b==="underlined"?"text":l?"solid":void 0},l),c&&(F=[F,Br(c,{key:"addonAfter"})]);const K=oe($,{[`${$}-rtl`]:x==="rtl",[`${$}-${I}`]:!!I,[`${$}-with-button`]:!!l},a),W=U=>{w.current=!0,g==null||g(U)},V=U=>{w.current=!1,h==null||h(U)},q=Object.assign(Object.assign({},S),{className:K,prefixCls:E,type:"search",size:I,variant:b,onPressEnter:k,onCompositionStart:W,onCompositionEnd:V,addonAfter:F,suffix:i,onChange:T,disabled:d,_skipAddonWarning:!0});return s.createElement(Tf,Object.assign({ref:Fr(O,t)},q))});var yye=` + ${r}-col-xl-24${n}-label`]:Pc(e)},[`@media (max-width: ${me(e.screenXSMax)})`]:[nbe(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Pc(e)}}}],[`@media (max-width: ${me(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Pc(e)}}},[`@media (max-width: ${me(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Pc(e)}}},[`@media (max-width: ${me(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Pc(e)}}}}},abe=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}),ZK=(e,t)=>en(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),W4=dn("Form",(e,{rootPrefixCls:t})=>{const n=ZK(e,t);return[J0e(n),Z0e(n),X0e(n),ebe(n),tbe(n),rbe(n),Wy(n),WR]},abe,{order:-1e3}),l_=[];function Ax(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const eq=({help:e,helpStatus:t,errors:n=l_,warnings:r=l_,className:a,fieldId:o,onVisibleChanged:i})=>{const{prefixCls:l}=s.useContext(JR),c=`${l}-item-explain`,u=Yn(l),[d,f,m]=W4(l,u),g=s.useMemo(()=>_m(l),[l]),h=ey(n),b=ey(r),p=s.useMemo(()=>e!=null?[Ax(e,"help",t)]:[].concat(ke(h.map((x,w)=>Ax(x,"error","error",w))),ke(b.map((x,w)=>Ax(x,"warning","warning",w)))),[e,t,h,b]),S=s.useMemo(()=>{const x={};return p.forEach(({key:w})=>{x[w]=(x[w]||0)+1}),p.map((w,$)=>Object.assign(Object.assign({},w),{key:x[w.key]>1?`${w.key}-fallback-${$}`:w.key}))},[p]),C={};return o&&(C.id=`${o}_help`),d(s.createElement(ga,{motionDeadline:g.motionDeadline,motionName:`${l}-show-help`,visible:!!S.length,onVisibleChanged:i},x=>{const{className:w,style:$}=x;return s.createElement("div",Object.assign({},C,{className:oe(c,w,m,u,a,f),style:$}),s.createElement(fz,Object.assign({keys:S},_m(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:R,error:I,errorStatus:O,className:T,style:_}=E;return s.createElement("div",{key:R,className:oe(T,{[`${c}-${O}`]:O}),style:_},I)}))}))};var obe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const n=s.useContext(Br),{getPrefixCls:r,direction:a,requiredMark:o,colon:i,scrollToFirstError:l,className:c,style:u}=sr("form"),{prefixCls:d,className:f,rootClassName:m,size:g,disabled:h=n,form:b,colon:p,labelAlign:S,labelWrap:C,labelCol:x,wrapperCol:w,hideRequiredMark:$,layout:E="horizontal",scrollToFirstError:R,requiredMark:I,onFinishFailed:O,name:T,style:_,feedbackIcons:k,variant:A}=e,j=obe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),D=Er(g),F=s.useContext(A9),L=s.useMemo(()=>I!==void 0?I:$?!1:o!==void 0?o:!0,[$,I,o]),B=p??i,K=r("form",d),W=Yn(K),[V,q,U]=W4(K,W),G=oe(K,`${K}-${E}`,{[`${K}-hide-required-mark`]:L===!1,[`${K}-rtl`]:a==="rtl",[`${K}-${D}`]:D},U,W,q,c,f,m),[Y]=_W(b),{__INTERNAL__:J}=Y;J.name=T;const Q=s.useMemo(()=>({name:T,labelAlign:S,labelCol:x,labelWrap:C,wrapperCol:w,layout:E,colon:B,requiredMark:L,itemRef:J.itemRef,form:Y,feedbackIcons:k}),[T,S,x,w,E,B,L,Y,k]),Z=s.useRef(null);s.useImperativeHandle(t,()=>{var le;return Object.assign(Object.assign({},Y),{nativeElement:(le=Z.current)===null||le===void 0?void 0:le.nativeElement})});const ne=(le,re)=>{if(le){let fe={block:"nearest"};typeof le=="object"&&(fe=Object.assign(Object.assign({},fe),le)),Y.scrollToField(re,fe)}},ae=le=>{if(O==null||O(le),le.errorFields.length){const re=le.errorFields[0].name;if(R!==void 0){ne(R,re);return}l!==void 0&&ne(l,re)}};return V(s.createElement(pH.Provider,{value:A},s.createElement(MR,{disabled:h},s.createElement(Xc.Provider,{value:D},s.createElement(mH,{validateMessages:F},s.createElement(Vl.Provider,{value:Q},s.createElement(gH,{status:!0},s.createElement(xf,Object.assign({id:T},j,{name:T,onFinishFailed:ae,form:Y,ref:Z,style:Object.assign(Object.assign({},u),_),className:G})))))))))},lbe=s.forwardRef(ibe);function sbe(e){if(typeof e=="function")return e;const t=rr(e);return t.length<=1?t[0]:t}const tq=()=>{const{status:e,errors:t=[],warnings:n=[]}=s.useContext(Hr);return{status:e,errors:t,warnings:n}};tq.Context=Hr;function cbe(e){const[t,n]=s.useState(e),r=s.useRef(null),a=s.useRef([]),o=s.useRef(!1);s.useEffect(()=>(o.current=!1,()=>{o.current=!0,ln.cancel(r.current),r.current=null}),[]);function i(l){o.current||(r.current===null&&(a.current=[],r.current=ln(()=>{r.current=null,n(c=>{let u=c;return a.current.forEach(d=>{u=d(u)}),u})})),a.current.push(l))}return[t,i]}function ube(){const{itemRef:e}=s.useContext(Vl),t=s.useRef({});function n(r,a){const o=a&&typeof a=="object"&&Zs(a),i=r.join("_");return(t.current.name!==i||t.current.originRef!==o)&&(t.current.name=i,t.current.originRef=o,t.current.ref=Dr(e(r),o)),t.current.ref}return n}const dbe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},fbe=hf(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=ZK(e,t);return dbe(n)});var vbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:o,errors:i,warnings:l,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:g,label:h}=e,b=`${t}-item`,p=s.useContext(Vl),S=s.useMemo(()=>{let j=Object.assign({},a||p.wrapperCol||{});return h===null&&!r&&!a&&p.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(F=>{const L=F?[F]:[],B=Gn(p.labelCol,L),K=typeof B=="object"?B:{},W=Gn(j,L),V=typeof W=="object"?W:{};"span"in K&&!("offset"in V)&&K.span{const{labelCol:j,wrapperCol:D}=p;return vbe(p,["labelCol","wrapperCol"])},[p]),w=s.useRef(null),[$,E]=s.useState(0);fn(()=>{u&&w.current?E(w.current.clientHeight):E(0)},[u]);const R=s.createElement("div",{className:`${b}-control-input`},s.createElement("div",{className:`${b}-control-input-content`},o)),I=s.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=m!==null||i.length||l.length?s.createElement(JR.Provider,{value:I},s.createElement(eq,{fieldId:f,errors:i,warnings:l,help:d,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:g})):null,T={};f&&(T.id=`${f}_extra`);const _=u?s.createElement("div",Object.assign({},T,{className:`${b}-extra`,ref:w}),u):null,k=O||_?s.createElement("div",{className:`${b}-additional`,style:m?{minHeight:m+$}:{}},O,_):null,A=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:R,errorList:O,extra:_}):s.createElement(s.Fragment,null,R,k);return s.createElement(Vl.Provider,{value:x},s.createElement(Qr,Object.assign({},S,{className:C}),A),s.createElement(fbe,{prefixCls:t}))};var pbe={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"},hbe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:pbe}))},nq=s.forwardRef(hbe),bbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var d;const[f]=Ea("Form"),{labelAlign:m,labelCol:g,labelWrap:h,colon:b}=s.useContext(Vl);if(!t)return null;const p=r||g||{},S=a||m,C=`${e}-item-label`,x=oe(C,S==="left"&&`${C}-left`,p.className,{[`${C}-wrap`]:!!h});let w=t;const $=o===!0||b!==!1&&o!==!1;$&&!u&&typeof t=="string"&&t.trim()&&(w=t.replace(/[:|:]\s*$/,""));const R=Y0e(c);if(R){const{icon:A=s.createElement(nq,null)}=R,j=bbe(R,["icon"]),D=s.createElement(Bn,Object.assign({},j),s.cloneElement(A,{className:`${e}-item-tooltip`,title:"",onClick:F=>{F.preventDefault()},tabIndex:null}));w=s.createElement(s.Fragment,null,w,D)}const I=l==="optional",O=typeof l=="function",T=l===!1;O?w=l(w,{required:!!i}):I&&!i&&(w=s.createElement(s.Fragment,null,w,s.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Di.Form)===null||d===void 0?void 0:d.optional))));let _;T?_="hidden":(I||O)&&(_="optional");const k=oe({[`${e}-item-required`]:i,[`${e}-item-required-mark-${_}`]:_,[`${e}-item-no-colon`]:!$});return s.createElement(Qr,Object.assign({},p,{className:x}),s.createElement("label",{htmlFor:n,className:k,title:typeof t=="string"?t:""},w))},Cbe={success:uu,warning:ec,error:dl,validating:Ya};function rq({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:o,meta:i,noStyle:l,name:c}){const u=`${o}-item`,{feedbackIcons:d}=s.useContext(Vl),f=NW(t,n,i,null,!!r,a),{isFormItemInput:m,status:g,hasFeedback:h,feedbackIcon:b,name:p}=s.useContext(Hr),S=s.useMemo(()=>{var C;let x;if(r){const $=r!==!0&&r.icons||d,E=f&&((C=$==null?void 0:$({status:f,errors:t,warnings:n}))===null||C===void 0?void 0:C[f]),R=f?Cbe[f]:null;x=E!==!1&&R?s.createElement("span",{className:oe(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},E||s.createElement(R,null)):null}const w={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:x,isFormItemInput:!0,name:c};return l&&(w.status=(f??g)||"",w.isFormItemInput=m,w.hasFeedback=!!(r??h),w.feedbackIcon=r!==void 0?w.feedbackIcon:b,w.name=c??p),w},[f,r,l,m,g]);return s.createElement(Hr.Provider,{value:S},e)}var Sbe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{if(A&&O.current){const V=getComputedStyle(O.current);F(Number.parseInt(V.marginBottom,10))}},[A,j]);const L=V=>{V||F(null)},K=((V=!1)=>{const q=V?T:u.errors,U=V?_:u.warnings;return NW(q,U,u,"",!!d,c)})(),W=oe(w,n,r,{[`${w}-with-help`]:k||T.length||_.length,[`${w}-has-feedback`]:K&&d,[`${w}-has-success`]:K==="success",[`${w}-has-warning`]:K==="warning",[`${w}-has-error`]:K==="error",[`${w}-is-validating`]:K==="validating",[`${w}-hidden`]:f,[`${w}-${R}`]:R});return s.createElement("div",{className:W,style:a,ref:O},s.createElement(Ii,Object.assign({className:`${w}-row`},nn(x,["_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"])),s.createElement(ybe,Object.assign({htmlFor:g},e,{requiredMark:$,required:h??b,prefixCls:t,vertical:I})),s.createElement(gbe,Object.assign({},e,u,{errors:T,warnings:_,prefixCls:t,status:K,help:o,marginBottom:D,onErrorVisibleChanged:L}),s.createElement(vH.Provider,{value:p},s.createElement(rq,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:K,name:C},m)))),!!D&&s.createElement("div",{className:`${w}-margin-offset`,style:{marginBottom:-D}}))}const wbe="__SPLIT__";function $be(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],i=t[a];return o===i||typeof o=="function"||typeof i=="function"})}const Ebe=s.memo(({children:e})=>e,(e,t)=>$be(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function s_(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Pbe(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:i,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:g,hidden:h,help:b,layout:p}=e,{getPrefixCls:S}=s.useContext(jt),{name:C}=s.useContext(Vl),x=sbe(c),w=typeof x=="function",$=s.useContext(vH),{validateTrigger:E}=s.useContext(Us),R=g!==void 0?g:E,I=t!=null,O=S("form",o),T=Yn(O),[_,k,A]=W4(O,T);ul();const j=s.useContext(jm),D=s.useRef(null),[F,L]=cbe({}),[B,K]=Qc(()=>s_()),W=Q=>{const Z=j==null?void 0:j.getKey(Q.name);if(K(Q.destroy?s_():Q,!0),n&&b!==!1&&$){let ne=Q.name;if(Q.destroy)ne=D.current||ne;else if(Z!==void 0){const[ae,le]=Z;ne=[ae].concat(ke(le)),D.current=ne}$(Q,ne)}},V=(Q,Z)=>{L(ne=>{const ae=Object.assign({},ne),re=[].concat(ke(Q.name.slice(0,-1)),ke(Z)).join(wbe);return Q.destroy?delete ae[re]:ae[re]=Q,ae})},[q,U]=s.useMemo(()=>{const Q=ke(B.errors),Z=ke(B.warnings);return Object.values(F).forEach(ne=>{Q.push.apply(Q,ke(ne.errors||[])),Z.push.apply(Z,ke(ne.warnings||[]))}),[Q,Z]},[F,B.errors,B.warnings]),G=ube();function Y(Q,Z,ne){return n&&!h?s.createElement(rq,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:q,warnings:U,noStyle:!0,name:t},Q):s.createElement(xbe,Object.assign({key:"row"},e,{className:oe(r,A,T,k),prefixCls:O,fieldId:Z,isRequired:ne,errors:q,warnings:U,meta:B,onSubItemMetaChange:V,layout:p,name:t}),Q)}if(!I&&!w&&!a)return _(Y(x));let J={};return typeof d=="string"?J.label=d:t&&(J.label=String(t)),f&&(J=Object.assign(Object.assign({},J),f)),_(s.createElement(XR,Object.assign({},e,{messageVariables:J,trigger:m,validateTrigger:R,onMetaChange:W}),(Q,Z,ne)=>{const ae=vm(t).length&&Z?Z.name:[],le=TW(ae,C),re=u!==void 0?u:!!(l!=null&&l.some(de=>{if(de&&typeof de=="object"&&de.required&&!de.warningOnly)return!0;if(typeof de=="function"){const ie=de(ne);return(ie==null?void 0:ie.required)&&!(ie!=null&&ie.warningOnly)}return!1})),fe=Object.assign({},Q);let ue=null;if(Array.isArray(x)&&I)ue=x;else if(!(w&&(!(i||a)||I))){if(!(a&&!w&&!I))if(s.isValidElement(x)){const de=Object.assign(Object.assign({},x.props),fe);if(de.id||(de.id=le),b||q.length>0||U.length>0||e.extra){const ve=[];(b||q.length>0)&&ve.push(`${le}_help`),e.extra&&ve.push(`${le}_extra`),de["aria-describedby"]=ve.join(" ")}q.length>0&&(de["aria-invalid"]="true"),re&&(de["aria-required"]="true"),Fi(x)&&(de.ref=G(ae,x)),new Set([].concat(ke(vm(m)),ke(vm(R)))).forEach(ve=>{de[ve]=(...he)=>{var Ce,pe,Se,ge,ye;(Se=fe[ve])===null||Se===void 0||(Ce=Se).call.apply(Ce,[fe].concat(he)),(ye=(ge=x.props)[ve])===null||ye===void 0||(pe=ye).call.apply(pe,[ge].concat(he))}});const se=[de["aria-required"],de["aria-invalid"],de["aria-describedby"]];ue=s.createElement(Ebe,{control:fe,update:x,childProps:se},zr(x,de))}else w&&(i||a)&&!I?ue=x(ne):ue=x}return Y(ue,le,re)}))}const aq=Pbe;aq.useStatus=tq;var Obe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,children:n}=e,r=Obe(e,["prefixCls","children"]);const{getPrefixCls:a}=s.useContext(jt),o=a("form",t),i=s.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return s.createElement(cH,Object.assign({},r),(l,c,u)=>s.createElement(JR.Provider,{value:i},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function Rbe(){const{form:e}=s.useContext(Vl);return e}const Fn=lbe;Fn.Item=aq;Fn.List=Ibe;Fn.ErrorList=eq;Fn.useForm=_W;Fn.useFormInstance=Rbe;Fn.useWatch=fH;Fn.Provider=mH;Fn.create=()=>{};var Mbe={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"},Tbe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Mbe}))},K4=s.forwardRef(Tbe);function oq(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Nbe(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function ks(e,t,n,r){var a=Cm.unstable_batchedUpdates?function(i){Cm.unstable_batchedUpdates(n,i)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var Ig=s.createContext(null),_be=function(t){var n=t.visible,r=t.maskTransitionName,a=t.getContainer,o=t.prefixCls,i=t.rootClassName,l=t.icons,c=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,m=t.transform,g=t.count,h=t.scale,b=t.minScale,p=t.maxScale,S=t.closeIcon,C=t.onActive,x=t.onClose,w=t.onZoomIn,$=t.onZoomOut,E=t.onRotateRight,R=t.onRotateLeft,I=t.onFlipX,O=t.onFlipY,T=t.onReset,_=t.toolbarRender,k=t.zIndex,A=t.image,j=s.useContext(Ig),D=l.rotateLeft,F=l.rotateRight,L=l.zoomIn,B=l.zoomOut,K=l.close,W=l.left,V=l.right,q=l.flipX,U=l.flipY,G="".concat(o,"-operations-operation");s.useEffect(function(){var ie=function(ve){ve.keyCode===ot.ESC&&x()};return n&&window.addEventListener("keydown",ie),function(){window.removeEventListener("keydown",ie)}},[n]);var Y=function(se,ve){se.preventDefault(),se.stopPropagation(),C(ve)},J=s.useCallback(function(ie){var se=ie.type,ve=ie.disabled,he=ie.onClick,Ce=ie.icon;return s.createElement("div",{key:se,className:oe(G,"".concat(o,"-operations-operation-").concat(se),z({},"".concat(o,"-operations-operation-disabled"),!!ve)),onClick:he},Ce)},[G,o]),Q=u?J({icon:W,onClick:function(se){return Y(se,-1)},type:"prev",disabled:f===0}):void 0,Z=u?J({icon:V,onClick:function(se){return Y(se,1)},type:"next",disabled:f===g-1}):void 0,ne=J({icon:U,onClick:O,type:"flipY"}),ae=J({icon:q,onClick:I,type:"flipX"}),le=J({icon:D,onClick:R,type:"rotateLeft"}),re=J({icon:F,onClick:E,type:"rotateRight"}),fe=J({icon:B,onClick:$,type:"zoomOut",disabled:h<=b}),ue=J({icon:L,onClick:w,type:"zoomIn",disabled:h===p}),de=s.createElement("div",{className:"".concat(o,"-operations")},ne,ae,le,re,fe,ue);return s.createElement(ga,{visible:n,motionName:r},function(ie){var se=ie.className,ve=ie.style;return s.createElement(gg,{open:!0,getContainer:a??document.body},s.createElement("div",{className:oe("".concat(o,"-operations-wrapper"),se,i),style:P(P({},ve),{},{zIndex:k})},S===null?null:s.createElement("button",{className:"".concat(o,"-close"),onClick:x},S||K),u&&s.createElement(s.Fragment,null,s.createElement("div",{className:oe("".concat(o,"-switch-left"),z({},"".concat(o,"-switch-left-disabled"),f===0)),onClick:function(Ce){return Y(Ce,-1)}},W),s.createElement("div",{className:oe("".concat(o,"-switch-right"),z({},"".concat(o,"-switch-right-disabled"),f===g-1)),onClick:function(Ce){return Y(Ce,1)}},V)),s.createElement("div",{className:"".concat(o,"-footer")},d&&s.createElement("div",{className:"".concat(o,"-progress")},c?c(f+1,g):s.createElement("bdi",null,"".concat(f+1," / ").concat(g))),_?_(de,P(P({icons:{prevIcon:Q,nextIcon:Z,flipYIcon:ne,flipXIcon:ae,rotateLeftIcon:le,rotateRightIcon:re,zoomOutIcon:fe,zoomInIcon:ue},actions:{onActive:C,onFlipY:O,onFlipX:I,onRotateLeft:R,onRotateRight:E,onZoomOut:$,onZoomIn:w,onReset:T,onClose:x},transform:m},j?{current:f,total:g}:{}),{},{image:A})):de)))})},xh={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function jbe(e,t,n,r){var a=s.useRef(null),o=s.useRef([]),i=s.useState(xh),l=ce(i,2),c=l[0],u=l[1],d=function(h){u(xh),ti(xh,c)||r==null||r({transform:xh,action:h})},f=function(h,b){a.current===null&&(o.current=[],a.current=ln(function(){u(function(p){var S=p;return o.current.forEach(function(C){S=P(P({},S),C)}),a.current=null,r==null||r({transform:S,action:b}),S})})),o.current.push(P(P({},c),h))},m=function(h,b,p,S,C){var x=e.current,w=x.width,$=x.height,E=x.offsetWidth,R=x.offsetHeight,I=x.offsetLeft,O=x.offsetTop,T=h,_=c.scale*h;_>n?(_=n,T=n/c.scale):_r){if(t>0)return z({},e,o);if(t<0&&ar)return z({},e,t<0?o:-o);return{}}function iq(e,t,n,r){var a=oq(),o=a.width,i=a.height,l=null;return e<=o&&t<=i?l={x:0,y:0}:(e>o||t>i)&&(l=P(P({},c_("x",n,e,o)),c_("y",r,t,i))),l}var xd=1,Fbe=1;function Dbe(e,t,n,r,a,o,i){var l=a.rotate,c=a.scale,u=a.x,d=a.y,f=s.useState(!1),m=ce(f,2),g=m[0],h=m[1],b=s.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),p=function($){!t||$.button!==0||($.preventDefault(),$.stopPropagation(),b.current={diffX:$.pageX-u,diffY:$.pageY-d,transformX:u,transformY:d},h(!0))},S=function($){n&&g&&o({x:$.pageX-b.current.diffX,y:$.pageY-b.current.diffY},"move")},C=function(){if(n&&g){h(!1);var $=b.current,E=$.transformX,R=$.transformY,I=u!==E&&d!==R;if(!I)return;var O=e.current.offsetWidth*c,T=e.current.offsetHeight*c,_=e.current.getBoundingClientRect(),k=_.left,A=_.top,j=l%180!==0,D=iq(j?T:O,j?O:T,k,A);D&&o(P({},D),"dragRebound")}},x=function($){if(!(!n||$.deltaY==0)){var E=Math.abs($.deltaY/100),R=Math.min(E,Fbe),I=xd+R*r;$.deltaY>0&&(I=xd/I),i(I,"wheel",$.clientX,$.clientY)}};return s.useEffect(function(){var w,$,E,R;if(t){E=ks(window,"mouseup",C,!1),R=ks(window,"mousemove",S,!1);try{window.top!==window.self&&(w=ks(window.top,"mouseup",C,!1),$=ks(window.top,"mousemove",S,!1))}catch{}}return function(){var I,O,T,_;(I=E)===null||I===void 0||I.remove(),(O=R)===null||O===void 0||O.remove(),(T=w)===null||T===void 0||T.remove(),(_=$)===null||_===void 0||_.remove()}},[n,g,u,d,l,t]),{isMoving:g,onMouseDown:p,onMouseMove:S,onMouseUp:C,onWheel:x}}function kbe(e){return new Promise(function(t){if(!e){t(!1);return}var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function lq(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,a=s.useState(n?"loading":"normal"),o=ce(a,2),i=o[0],l=o[1],c=s.useRef(!1),u=i==="error";s.useEffect(function(){var g=!0;return kbe(t).then(function(h){!h&&g&&l("error")}),function(){g=!1}},[t]),s.useEffect(function(){n&&!c.current?l("loading"):u&&l("normal")},[t]);var d=function(){l("normal")},f=function(h){c.current=!1,i==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(c.current=!0,d())},m=u&&r?{src:r}:{onLoad:d,src:t};return[f,m,i]}function ty(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Abe(e,t,n,r){var a=ty(e,n),o=ty(t,r);if(a===0&&o===0)return[e.x,e.y];var i=a/(a+o),l=e.x+i*(t.x-e.x),c=e.y+i*(t.y-e.y);return[l,c]}function Lbe(e,t,n,r,a,o,i){var l=a.rotate,c=a.scale,u=a.x,d=a.y,f=s.useState(!1),m=ce(f,2),g=m[0],h=m[1],b=s.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),p=function($){b.current=P(P({},b.current),$)},S=function($){if(t){$.stopPropagation(),h(!0);var E=$.touches,R=E===void 0?[]:E;R.length>1?p({point1:{x:R[0].clientX,y:R[0].clientY},point2:{x:R[1].clientX,y:R[1].clientY},eventType:"touchZoom"}):p({point1:{x:R[0].clientX-u,y:R[0].clientY-d},eventType:"move"})}},C=function($){var E=$.touches,R=E===void 0?[]:E,I=b.current,O=I.point1,T=I.point2,_=I.eventType;if(R.length>1&&_==="touchZoom"){var k={x:R[0].clientX,y:R[0].clientY},A={x:R[1].clientX,y:R[1].clientY},j=Abe(O,T,k,A),D=ce(j,2),F=D[0],L=D[1],B=ty(k,A)/ty(O,T);i(B,"touchZoom",F,L,!0),p({point1:k,point2:A,eventType:"touchZoom"})}else _==="move"&&(o({x:R[0].clientX-O.x,y:R[0].clientY-O.y},"move"),p({eventType:"move"}))},x=function(){if(n){if(g&&h(!1),p({eventType:"none"}),r>c)return o({x:0,y:0,scale:r},"touchZoom");var $=e.current.offsetWidth*c,E=e.current.offsetHeight*c,R=e.current.getBoundingClientRect(),I=R.left,O=R.top,T=l%180!==0,_=iq(T?E:$,T?$:E,I,O);_&&o(P({},_),"dragRebound")}};return s.useEffect(function(){var w;return n&&t&&(w=ks(window,"touchmove",function($){return $.preventDefault()},{passive:!1})),function(){var $;($=w)===null||$===void 0||$.remove()}},[n,t]),{isTouching:g,onTouchStart:S,onTouchMove:C,onTouchEnd:x}}var Bbe=["fallback","src","imgRef"],zbe=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Hbe=function(t){var n=t.fallback,r=t.src,a=t.imgRef,o=Ue(t,Bbe),i=lq({src:r,fallback:n}),l=ce(i,2),c=l[0],u=l[1];return ee.createElement("img",Me({ref:function(f){a.current=f,c(f)}},o,u))},sq=function(t){var n=t.prefixCls,r=t.src,a=t.alt,o=t.imageInfo,i=t.fallback,l=t.movable,c=l===void 0?!0:l,u=t.onClose,d=t.visible,f=t.icons,m=f===void 0?{}:f,g=t.rootClassName,h=t.closeIcon,b=t.getContainer,p=t.current,S=p===void 0?0:p,C=t.count,x=C===void 0?1:C,w=t.countRender,$=t.scaleStep,E=$===void 0?.5:$,R=t.minScale,I=R===void 0?1:R,O=t.maxScale,T=O===void 0?50:O,_=t.transitionName,k=_===void 0?"zoom":_,A=t.maskTransitionName,j=A===void 0?"fade":A,D=t.imageRender,F=t.imgCommonProps,L=t.toolbarRender,B=t.onTransform,K=t.onChange,W=Ue(t,zbe),V=s.useRef(),q=s.useContext(Ig),U=q&&x>1,G=q&&x>=1,Y=s.useState(!0),J=ce(Y,2),Q=J[0],Z=J[1],ne=jbe(V,I,T,B),ae=ne.transform,le=ne.resetTransform,re=ne.updateTransform,fe=ne.dispatchZoomChange,ue=Dbe(V,c,d,E,ae,re,fe),de=ue.isMoving,ie=ue.onMouseDown,se=ue.onWheel,ve=Lbe(V,c,d,I,ae,re,fe),he=ve.isTouching,Ce=ve.onTouchStart,pe=ve.onTouchMove,Se=ve.onTouchEnd,ge=ae.rotate,ye=ae.scale,xe=oe(z({},"".concat(n,"-moving"),de));s.useEffect(function(){Q||Z(!0)},[Q]);var $e=function(){le("close")},He=function(){fe(xd+E,"zoomIn")},Te=function(){fe(xd/(xd+E),"zoomOut")},Re=function(){re({rotate:ge+90},"rotateRight")},Fe=function(){re({rotate:ge-90},"rotateLeft")},je=function(){re({flipX:!ae.flipX},"flipX")},Ee=function(){re({flipY:!ae.flipY},"flipY")},Le=function(){le("reset")},Pe=function(Qe){var lt=S+Qe;!Number.isInteger(lt)||lt<0||lt>x-1||(Z(!1),le(Qe<0?"prev":"next"),K==null||K(lt,S))},ze=function(Qe){!d||!U||(Qe.keyCode===ot.LEFT?Pe(-1):Qe.keyCode===ot.RIGHT&&Pe(1))},Oe=function(Qe){d&&(ye!==1?re({x:0,y:0,scale:1},"doubleClick"):fe(xd+E,"doubleClick",Qe.clientX,Qe.clientY))};s.useEffect(function(){var Be=ks(window,"keydown",ze,!1);return function(){Be.remove()}},[d,U,S]);var we=ee.createElement(Hbe,Me({},F,{width:t.width,height:t.height,imgRef:V,className:"".concat(n,"-img"),alt:a,style:{transform:"translate3d(".concat(ae.x,"px, ").concat(ae.y,"px, 0) scale3d(").concat(ae.flipX?"-":"").concat(ye,", ").concat(ae.flipY?"-":"").concat(ye,", 1) rotate(").concat(ge,"deg)"),transitionDuration:(!Q||he)&&"0s"},fallback:i,src:r,onWheel:se,onMouseDown:ie,onDoubleClick:Oe,onTouchStart:Ce,onTouchMove:pe,onTouchEnd:Se,onTouchCancel:Se})),_e=P({url:r,alt:a},o);return ee.createElement(ee.Fragment,null,ee.createElement(GR,Me({transitionName:k,maskTransitionName:j,closable:!1,keyboard:!0,prefixCls:n,onClose:u,visible:d,classNames:{wrapper:xe},rootClassName:g,getContainer:b},W,{afterClose:$e}),ee.createElement("div",{className:"".concat(n,"-img-wrapper")},D?D(we,P({transform:ae,image:_e},q?{current:S}:{})):we)),ee.createElement(_be,{visible:d,transform:ae,maskTransitionName:j,closeIcon:h,getContainer:b,prefixCls:n,rootClassName:g,icons:m,countRender:w,showSwitch:U,showProgress:G,current:S,count:x,scale:ye,minScale:I,maxScale:T,toolbarRender:L,onActive:Pe,onZoomIn:He,onZoomOut:Te,onRotateRight:Re,onRotateLeft:Fe,onFlipX:je,onFlipY:Ee,onClose:u,onReset:Le,zIndex:W.zIndex!==void 0?W.zIndex+1:void 0,image:_e}))},dO=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Vbe(e){var t=s.useState({}),n=ce(t,2),r=n[0],a=n[1],o=s.useCallback(function(l,c){return a(function(u){return P(P({},u),{},z({},l,c))}),function(){a(function(u){var d=P({},u);return delete d[l],d})}},[]),i=s.useMemo(function(){return e?e.map(function(l){if(typeof l=="string")return{data:{src:l}};var c={};return Object.keys(l).forEach(function(u){["src"].concat(ke(dO)).includes(u)&&(c[u]=l[u])}),{data:c}}):Object.keys(r).reduce(function(l,c){var u=r[c],d=u.canPreview,f=u.data;return d&&l.push({data:f,id:c}),l},[])},[e,r]);return[i,o,!!e]}var Wbe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Kbe=["src"],qbe=function(t){var n,r=t.previewPrefixCls,a=r===void 0?"rc-image-preview":r,o=t.children,i=t.icons,l=i===void 0?{}:i,c=t.items,u=t.preview,d=t.fallback,f=it(u)==="object"?u:{},m=f.visible,g=f.onVisibleChange,h=f.getContainer,b=f.current,p=f.movable,S=f.minScale,C=f.maxScale,x=f.countRender,w=f.closeIcon,$=f.onChange,E=f.onTransform,R=f.toolbarRender,I=f.imageRender,O=Ue(f,Wbe),T=Vbe(c),_=ce(T,3),k=_[0],A=_[1],j=_[2],D=Nt(0,{value:b}),F=ce(D,2),L=F[0],B=F[1],K=s.useState(!1),W=ce(K,2),V=W[0],q=W[1],U=((n=k[L])===null||n===void 0?void 0:n.data)||{},G=U.src,Y=Ue(U,Kbe),J=Nt(!!m,{value:m,onChange:function(he,Ce){g==null||g(he,Ce,L)}}),Q=ce(J,2),Z=Q[0],ne=Q[1],ae=s.useState(null),le=ce(ae,2),re=le[0],fe=le[1],ue=s.useCallback(function(ve,he,Ce,pe){var Se=j?k.findIndex(function(ge){return ge.data.src===he}):k.findIndex(function(ge){return ge.id===ve});B(Se<0?0:Se),ne(!0),fe({x:Ce,y:pe}),q(!0)},[k,j]);s.useEffect(function(){Z?V||B(0):q(!1)},[Z]);var de=function(he,Ce){B(he),$==null||$(he,Ce)},ie=function(){ne(!1),fe(null)},se=s.useMemo(function(){return{register:A,onPreview:ue}},[A,ue]);return s.createElement(Ig.Provider,{value:se},o,s.createElement(sq,Me({"aria-hidden":!Z,movable:p,visible:Z,prefixCls:a,closeIcon:w,onClose:ie,mousePosition:re,imgCommonProps:Y,src:G,fallback:d,icons:l,minScale:S,maxScale:C,getContainer:h,current:L,count:k.length,countRender:x,onTransform:E,toolbarRender:R,imageRender:I,onChange:de},O)))},u_=0;function Ube(e,t){var n=s.useState(function(){return u_+=1,String(u_)}),r=ce(n,1),a=r[0],o=s.useContext(Ig),i={data:t,canPreview:e};return s.useEffect(function(){if(o)return o.register(a,i)},[]),s.useEffect(function(){o&&o.register(a,i)},[e,t]),a}var Gbe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Ybe=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],q4=function(t){var n=t.src,r=t.alt,a=t.onPreviewClose,o=t.prefixCls,i=o===void 0?"rc-image":o,l=t.previewPrefixCls,c=l===void 0?"".concat(i,"-preview"):l,u=t.placeholder,d=t.fallback,f=t.width,m=t.height,g=t.style,h=t.preview,b=h===void 0?!0:h,p=t.className,S=t.onClick,C=t.onError,x=t.wrapperClassName,w=t.wrapperStyle,$=t.rootClassName,E=Ue(t,Gbe),R=u&&u!==!0,I=it(b)==="object"?b:{},O=I.src,T=I.visible,_=T===void 0?void 0:T,k=I.onVisibleChange,A=k===void 0?a:k,j=I.getContainer,D=j===void 0?void 0:j,F=I.mask,L=I.maskClassName,B=I.movable,K=I.icons,W=I.scaleStep,V=I.minScale,q=I.maxScale,U=I.imageRender,G=I.toolbarRender,Y=Ue(I,Ybe),J=O??n,Q=Nt(!!_,{value:_,onChange:A}),Z=ce(Q,2),ne=Z[0],ae=Z[1],le=lq({src:n,isCustomPlaceholder:R,fallback:d}),re=ce(le,3),fe=re[0],ue=re[1],de=re[2],ie=s.useState(null),se=ce(ie,2),ve=se[0],he=se[1],Ce=s.useContext(Ig),pe=!!b,Se=function(){ae(!1),he(null)},ge=oe(i,x,$,z({},"".concat(i,"-error"),de==="error")),ye=s.useMemo(function(){var Te={};return dO.forEach(function(Re){t[Re]!==void 0&&(Te[Re]=t[Re])}),Te},dO.map(function(Te){return t[Te]})),xe=s.useMemo(function(){return P(P({},ye),{},{src:J})},[J,ye]),$e=Ube(pe,xe),He=function(Re){var Fe=Nbe(Re.target),je=Fe.left,Ee=Fe.top;Ce?Ce.onPreview($e,J,je,Ee):(he({x:je,y:Ee}),ae(!0)),S==null||S(Re)};return s.createElement(s.Fragment,null,s.createElement("div",Me({},E,{className:ge,onClick:pe?He:S,style:P({width:f,height:m},w)}),s.createElement("img",Me({},ye,{className:oe("".concat(i,"-img"),z({},"".concat(i,"-img-placeholder"),u===!0),p),style:P({height:m},g),ref:fe},ue,{width:f,height:m,onError:C})),de==="loading"&&s.createElement("div",{"aria-hidden":"true",className:"".concat(i,"-placeholder")},u),F&&pe&&s.createElement("div",{className:oe("".concat(i,"-mask"),L),style:{display:(g==null?void 0:g.display)==="none"?"none":void 0}},F)),!Ce&&pe&&s.createElement(sq,Me({"aria-hidden":!ne,visible:ne,prefixCls:c,onClose:Se,mousePosition:ve,src:J,alt:r,imageInfo:{width:f,height:m},fallback:d,getContainer:D,icons:K,movable:B,scaleStep:W,minScale:V,maxScale:q,rootClassName:$,imageRender:U,imgCommonProps:ye,toolbarRender:G},Y)))};q4.PreviewGroup=qbe;var Xbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Qbe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Xbe}))},Jbe=s.forwardRef(Qbe),Zbe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},eye=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Zbe}))},tye=s.forwardRef(eye),nye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},rye=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:nye}))},d_=s.forwardRef(rye),aye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},oye=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:aye}))},iye=s.forwardRef(oye),lye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},sye=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:lye}))},cye=s.forwardRef(sye);const fO=e=>({position:e||"absolute",inset:0}),uye=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:o,colorTextLightSolid:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:i,background:new pn("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},ri),{padding:`0 ${me(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},dye=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:o,paddingLG:i,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,m=new pn(n).setA(.1),g=m.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:f,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${me(i)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},fye=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:o,motionDurationSlow:i}=e,l=new pn(t).setA(.1),c=l.clone().setA(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:e.marginSM},[`${a}-switch-right`]:{insetInlineEnd:e.marginSM}}},vye=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:a}=e;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},fO()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},fO()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[dye(e),fye(e)]}]},mye=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},uye(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},fO())}}},gye=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Cf(e,"zoom"),"&":Uz(e,!0)}},pye=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new pn(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new pn(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new pn(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),cq=dn("Image",e=>{const t=`${e.componentCls}-preview`,n=en(e,{previewCls:t,modalMaskBg:new pn("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[mye(n),vye(n),xH(en(n,{componentCls:t})),gye(n)]},pye);var hye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{previewPrefixCls:t,preview:n}=e,r=hye(e,["previewPrefixCls","preview"]);const{getPrefixCls:a,direction:o}=s.useContext(jt),i=a("image",t),l=`${i}-preview`,c=a(),u=Yn(i),[d,f,m]=cq(i,u),[g]=fi("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=s.useMemo(()=>Object.assign(Object.assign({},uq),{left:o==="rtl"?s.createElement(oi,null):s.createElement(Wl,null),right:o==="rtl"?s.createElement(Wl,null):s.createElement(oi,null)}),[o]),b=s.useMemo(()=>{var p;if(n===!1)return n;const S=typeof n=="object"?n:{},C=oe(f,m,u,(p=S.rootClassName)!==null&&p!==void 0?p:"");return Object.assign(Object.assign({},S),{transitionName:pa(c,"zoom",S.transitionName),maskTransitionName:pa(c,"fade",S.maskTransitionName),rootClassName:C,zIndex:g})},[n,c,g,f,m,u]);return d(s.createElement(q4.PreviewGroup,Object.assign({preview:b,previewPrefixCls:l,icons:h},r)))};var f_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,preview:n,className:r,rootClassName:a,style:o,fallback:i}=e,l=f_(e,["prefixCls","preview","className","rootClassName","style","fallback"]),{getPrefixCls:c,getPopupContainer:u,className:d,style:f,preview:m,fallback:g}=sr("image"),[h]=Ea("Image"),b=c("image",t),p=c(),S=Yn(b),[C,x,w]=cq(b,S),$=oe(a,x,w,S),E=oe(r,x,d),[R]=fi("ImagePreview",typeof n=="object"?n.zIndex:void 0),I=s.useMemo(()=>{if(n===!1)return n;const _=typeof n=="object"?n:{},{getContainer:k,closeIcon:A,rootClassName:j,destroyOnClose:D,destroyOnHidden:F}=_,L=f_(_,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:s.createElement("div",{className:`${b}-mask-info`},s.createElement(K4,null),h==null?void 0:h.preview),icons:uq},L),{destroyOnClose:F??D,rootClassName:oe($,j),getContainer:k??u,transitionName:pa(p,"zoom",_.transitionName),maskTransitionName:pa(p,"fade",_.maskTransitionName),zIndex:R,closeIcon:A??(m==null?void 0:m.closeIcon)})},[n,h,m==null?void 0:m.closeIcon]),O=Object.assign(Object.assign({},f),o),T=i??g;return C(s.createElement(q4,Object.assign({prefixCls:b,preview:I,rootClassName:$,className:E,style:O,fallback:T},l)))};dq.PreviewGroup=bye;const yye=e=>{const{getPrefixCls:t,direction:n}=s.useContext(jt),{prefixCls:r,className:a}=e,o=t("input-group",r),i=t("input"),[l,c,u]=zW(i),d=oe(o,u,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},c,a),f=s.useContext(Hr),m=s.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return l(s.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(Hr.Provider,{value:m},e.children)))},Cye=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${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}}}},Sye=dn(["Input","OTP"],e=>{const t=en(e,mu(e));return Cye(t)},gu);var xye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{className:n,value:r,onChange:a,onActiveChange:o,index:i,mask:l}=e,c=xye(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=s.useContext(jt),d=u("otp"),f=typeof l=="string"?l:r,m=s.useRef(null);s.useImperativeHandle(t,()=>m.current);const g=p=>{a(i,p.target.value)},h=()=>{ln(()=>{var p;const S=(p=m.current)===null||p===void 0?void 0:p.input;document.activeElement===S&&S&&S.select()})},b=p=>{const{key:S,ctrlKey:C,metaKey:x}=p;S==="ArrowLeft"?o(i-1):S==="ArrowRight"?o(i+1):S==="z"&&(C||x)?p.preventDefault():S==="Backspace"&&!r&&o(i-1),h()};return s.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&s.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),s.createElement(Nf,Object.assign({"aria-label":`OTP Input ${i+1}`,type:l===!0?"password":"text"},c,{ref:m,value:r,onInput:g,onFocus:h,onKeyDown:b,onMouseDown:h,onMouseUp:h,className:oe(n,{[`${d}-mask-input`]:l})})))});var $ye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?s.createElement("span",{className:`${n}-separator`},a):null},Pye=s.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:i,onChange:l,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:g,mask:h,type:b,onInput:p,inputMode:S}=e,C=$ye(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:w}=s.useContext(jt),$=x("otp",n),E=ar(C,{aria:!0,data:!0,attr:!0}),[R,I,O]=Sye($),T=Er(G=>a??G),_=s.useContext(Hr),k=Ul(_.status,m),A=s.useMemo(()=>Object.assign(Object.assign({},_),{status:k,hasFeedback:!1,feedbackIcon:null}),[_,k]),j=s.useRef(null),D=s.useRef({});s.useImperativeHandle(t,()=>({focus:()=>{var G;(G=D.current[0])===null||G===void 0||G.focus()},blur:()=>{var G;for(let Y=0;Yc?c(G):G,[L,B]=s.useState(()=>wh(F(o||"")));s.useEffect(()=>{i!==void 0&&B(wh(i))},[i]);const K=Zt(G=>{B(G),p&&p(G),l&&G.length===r&&G.every(Y=>Y)&&G.some((Y,J)=>L[J]!==Y)&&l(G.join(""))}),W=Zt((G,Y)=>{let J=ke(L);for(let Z=0;Z=0&&!J[Z];Z-=1)J.pop();const Q=F(J.map(Z=>Z||" ").join(""));return J=wh(Q).map((Z,ne)=>Z===" "&&!J[ne]?J[ne]:Z),J}),V=(G,Y)=>{var J;const Q=W(G,Y),Z=Math.min(G+Y.length,r-1);Z!==G&&Q[G]!==void 0&&((J=D.current[Z])===null||J===void 0||J.focus()),K(Q)},q=G=>{var Y;(Y=D.current[G])===null||Y===void 0||Y.focus()},U={variant:d,disabled:f,status:k,mask:h,type:b,inputMode:S};return R(s.createElement("div",Object.assign({},E,{ref:j,className:oe($,{[`${$}-sm`]:T==="small",[`${$}-lg`]:T==="large",[`${$}-rtl`]:w==="rtl"},O,I),role:"group"}),s.createElement(Hr.Provider,{value:A},Array.from({length:r}).map((G,Y)=>{const J=`otp-${Y}`,Q=L[Y]||"";return s.createElement(s.Fragment,{key:J},s.createElement(wye,Object.assign({ref:Z=>{D.current[Y]=Z},index:Y,size:T,htmlSize:1,className:`${$}-input`,onChange:V,value:Q,onActiveChange:q,autoFocus:Y===0&&g},U)),Ye?s.createElement(K4,null):s.createElement(fq,null),Tye={click:"onClick",hover:"onMouseOver"},Nye=s.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=Mye,suffix:i}=e,l=s.useContext(Br),c=n??l,u=typeof a=="object"&&a.visible!==void 0,[d,f]=s.useState(()=>u?a.visible:!1),m=s.useRef(null);s.useEffect(()=>{u&&f(a.visible)},[u,a]);const g=_K(m),h=()=>{var _;if(c)return;d&&g();const k=!d;f(k),typeof a=="object"&&((_=a.onVisibleChange)===null||_===void 0||_.call(a,k))},b=_=>{const k=Tye[r]||"",A=o(d),j={[k]:h,className:`${_}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return s.cloneElement(s.isValidElement(A)?A:s.createElement("span",null,A),j)},{className:p,prefixCls:S,inputPrefixCls:C,size:x}=e,w=Rye(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=s.useContext(jt),E=$("input",C),R=$("input-password",S),I=a&&b(R),O=oe(R,p,{[`${R}-${x}`]:!!x}),T=Object.assign(Object.assign({},nn(w,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:O,prefixCls:E,suffix:s.createElement(s.Fragment,null,I,i)});return x&&(T.size=x),s.createElement(Nf,Object.assign({ref:Dr(t,m)},T))});var _ye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:i,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:g,onCompositionEnd:h,variant:b,onPressEnter:p}=e,S=_ye(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:C,direction:x}=s.useContext(jt),w=s.useRef(!1),$=C("input-search",n),E=C("input",r),{compactSize:R}=Ao($,x),I=Er(U=>{var G;return(G=o??R)!==null&&G!==void 0?G:U}),O=s.useRef(null),T=U=>{U!=null&&U.target&&U.type==="click"&&f&&f(U.target.value,U,{source:"clear"}),m==null||m(U)},_=U=>{var G;document.activeElement===((G=O.current)===null||G===void 0?void 0:G.input)&&U.preventDefault()},k=U=>{var G,Y;f&&f((Y=(G=O.current)===null||G===void 0?void 0:G.input)===null||Y===void 0?void 0:Y.value,U,{source:"input"})},A=U=>{w.current||u||(p==null||p(U),k(U))},j=typeof l=="boolean"?s.createElement(s1,null):null,D=`${$}-button`;let F;const L=l||{},B=L.type&&L.type.__ANT_BUTTON===!0;B||L.type==="button"?F=zr(L,Object.assign({onMouseDown:_,onClick:U=>{var G,Y;(Y=(G=L==null?void 0:L.props)===null||G===void 0?void 0:G.onClick)===null||Y===void 0||Y.call(G,U),k(U)},key:"enterButton"},B?{className:D,size:I}:{})):F=s.createElement(_n,{className:D,color:l?"primary":"default",size:I,disabled:d,key:"enterButton",onMouseDown:_,onClick:k,loading:u,icon:j,variant:b==="borderless"||b==="filled"||b==="underlined"?"text":l?"solid":void 0},l),c&&(F=[F,zr(c,{key:"addonAfter"})]);const K=oe($,{[`${$}-rtl`]:x==="rtl",[`${$}-${I}`]:!!I,[`${$}-with-button`]:!!l},a),W=U=>{w.current=!0,g==null||g(U)},V=U=>{w.current=!1,h==null||h(U)},q=Object.assign(Object.assign({},S),{className:K,prefixCls:E,type:"search",size:I,variant:b,onPressEnter:A,onCompositionStart:W,onCompositionEnd:V,addonAfter:F,suffix:i,onChange:T,disabled:d,_skipAddonWarning:!0});return s.createElement(Nf,Object.assign({ref:Dr(O,t)},q))});var Fye=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -365,13 +365,13 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,Cye=["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"],Mx={},xo;function Sye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Mx[n])return Mx[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Cye.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(Mx[n]=c),c}function xye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;xo||(xo=document.createElement("textarea"),xo.setAttribute("tab-index","-1"),xo.setAttribute("aria-hidden","true"),xo.setAttribute("name","hiddenTextarea"),document.body.appendChild(xo)),e.getAttribute("wrap")?xo.setAttribute("wrap",e.getAttribute("wrap")):xo.removeAttribute("wrap");var a=Sye(e,t),o=a.paddingSize,i=a.borderSize,l=a.boxSizing,c=a.sizingStyle;xo.setAttribute("style","".concat(c,";").concat(yye)),xo.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=xo.scrollHeight;if(l==="border-box"?m+=i:l==="content-box"&&(m-=o),n!==null||r!==null){xo.value=" ";var g=xo.scrollHeight-o;n!==null&&(u=g*n,l==="border-box"&&(u=u+o+i),m=Math.max(u,m)),r!==null&&(d=g*r,l==="border-box"&&(d=d+o+i),f=m>d?"":"hidden",m=Math.min(d,m))}var h={height:m,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var wye=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Tx=0,Nx=1,_x=2,$ye=s.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=Ue(n,wye),g=_t(a,{value:o,postState:function(U){return U??""}}),h=ce(g,2),b=h[0],p=h[1],S=function(U){p(U.target.value),f==null||f(U)},C=s.useRef();s.useImperativeHandle(t,function(){return{textArea:C.current}});var x=s.useMemo(function(){return i&&it(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=ce(x,2),$=w[0],E=w[1],R=!!i,I=s.useState(_x),O=ce(I,2),T=O[0],N=O[1],A=s.useState(),k=ce(A,2),j=k[0],D=k[1],F=function(){N(Tx)};dn(function(){R&&F()},[o,$,E,R]),dn(function(){if(T===Tx)N(Nx);else if(T===Nx){var q=xye(C.current,!1,$,E);N(_x),D(q)}},[T]);var L=s.useRef(),B=function(){on.cancel(L.current)},K=function(U){T===_x&&(l==null||l(U),i&&(B(),L.current=on(function(){F()})))};s.useEffect(function(){return B},[]);var W=R?j:null,V=P(P({},u),W);return(T===Tx||T===Nx)&&(V.overflowY="hidden",V.overflowX="hidden"),s.createElement(Rr,{onResize:K,disabled:!(i||l)},s.createElement("textarea",Me({},m,{ref:C,style:V,className:oe(r,c,z({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:S})))}),Eye=["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"],Pye=ee.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,h=g===void 0?"rc-textarea":g,b=e.showCount,p=e.count,S=e.className,C=e.style,x=e.disabled,w=e.hidden,$=e.classNames,E=e.styles,R=e.onResize,I=e.onClear,O=e.onPressEnter,T=e.readOnly,N=e.autoSize,A=e.onKeyDown,k=Ue(e,Eye),j=_t(r,{value:a,defaultValue:r}),D=ce(j,2),F=D[0],L=D[1],B=F==null?"":String(F),K=ee.useState(!1),W=ce(K,2),V=W[0],q=W[1],U=ee.useRef(!1),G=ee.useState(null),Y=ce(G,2),J=Y[0],Q=Y[1],Z=s.useRef(null),ne=s.useRef(null),ae=function(){var Pe;return(Pe=ne.current)===null||Pe===void 0?void 0:Pe.textArea},le=function(){ae().focus()};s.useImperativeHandle(t,function(){var Le;return{resizableTextArea:ne.current,focus:le,blur:function(){ae().blur()},nativeElement:((Le=Z.current)===null||Le===void 0?void 0:Le.nativeElement)||ae()}}),s.useEffect(function(){q(function(Le){return!x&&Le})},[x]);var re=ee.useState(null),fe=ce(re,2),ue=fe[0],de=fe[1];ee.useEffect(function(){if(ue){var Le;(Le=ae()).setSelectionRange.apply(Le,ke(ue))}},[ue]);var ie=fK(p,b),se=(n=ie.max)!==null&&n!==void 0?n:u,ve=Number(se)>0,he=ie.strategy(B),Ce=!!se&&he>se,pe=function(Pe,ze){var Oe=ze;!U.current&&ie.exceedFormatter&&ie.max&&ie.strategy(ze)>ie.max&&(Oe=ie.exceedFormatter(ze,{max:ie.max}),ze!==Oe&&de([ae().selectionStart||0,ae().selectionEnd||0])),L(Oe),Yb(Pe.currentTarget,Pe,l,Oe)},Se=function(Pe){U.current=!0,d==null||d(Pe)},ge=function(Pe){U.current=!1,pe(Pe,Pe.currentTarget.value),f==null||f(Pe)},ye=function(Pe){pe(Pe,Pe.target.value)},xe=function(Pe){Pe.key==="Enter"&&O&&O(Pe),A==null||A(Pe)},$e=function(Pe){q(!0),o==null||o(Pe)},He=function(Pe){q(!1),i==null||i(Pe)},Te=function(Pe){L(""),le(),Yb(ae(),Pe,l)},Re=m,Fe;ie.show&&(ie.showFormatter?Fe=ie.showFormatter({value:B,count:he,maxLength:se}):Fe="".concat(he).concat(ve?" / ".concat(se):""),Re=ee.createElement(ee.Fragment,null,Re,ee.createElement("span",{className:oe("".concat(h,"-data-count"),$==null?void 0:$.count),style:E==null?void 0:E.count},Fe)));var je=function(Pe){var ze;R==null||R(Pe),(ze=ae())!==null&&ze!==void 0&&ze.style.height&&Q(!0)},Ee=!N&&!b&&!c;return ee.createElement(O4,{ref:Z,value:B,allowClear:c,handleReset:Te,suffix:Re,prefixCls:h,classNames:P(P({},$),{},{affixWrapper:oe($==null?void 0:$.affixWrapper,z(z({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),c))}),disabled:x,focused:V,className:oe(S,Ce&&"".concat(h,"-out-of-range")),style:P(P({},C),J&&!Ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Fe=="string"?Fe:void 0}},hidden:w,readOnly:T,onClear:I},ee.createElement($ye,Me({},k,{autoSize:N,maxLength:u,onKeyDown:xe,onChange:ye,onFocus:$e,onBlur:He,onCompositionStart:Se,onCompositionEnd:ge,className:oe($==null?void 0:$.textarea),style:P(P({},E==null?void 0:E.textarea),{},{resize:C==null?void 0:C.resize}),disabled:x,prefixCls:h,onResize:je,ref:ne,readOnly:T})))});const Oye=e=>{const{componentCls:t,paddingLG:n}=e,r=`${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"},[r]:{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"}},[` +`,Dye=["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"],Lx={},wo;function kye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Lx[n])return Lx[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Dye.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:o,borderSize:i,boxSizing:a};return t&&n&&(Lx[n]=c),c}function Aye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;wo||(wo=document.createElement("textarea"),wo.setAttribute("tab-index","-1"),wo.setAttribute("aria-hidden","true"),wo.setAttribute("name","hiddenTextarea"),document.body.appendChild(wo)),e.getAttribute("wrap")?wo.setAttribute("wrap",e.getAttribute("wrap")):wo.removeAttribute("wrap");var a=kye(e,t),o=a.paddingSize,i=a.borderSize,l=a.boxSizing,c=a.sizingStyle;wo.setAttribute("style","".concat(c,";").concat(Fye)),wo.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=wo.scrollHeight;if(l==="border-box"?m+=i:l==="content-box"&&(m-=o),n!==null||r!==null){wo.value=" ";var g=wo.scrollHeight-o;n!==null&&(u=g*n,l==="border-box"&&(u=u+o+i),m=Math.max(u,m)),r!==null&&(d=g*r,l==="border-box"&&(d=d+o+i),f=m>d?"":"hidden",m=Math.min(d,m))}var h={height:m,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var Lye=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Bx=0,zx=1,Hx=2,Bye=s.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,i=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=Ue(n,Lye),g=Nt(a,{value:o,postState:function(U){return U??""}}),h=ce(g,2),b=h[0],p=h[1],S=function(U){p(U.target.value),f==null||f(U)},C=s.useRef();s.useImperativeHandle(t,function(){return{textArea:C.current}});var x=s.useMemo(function(){return i&&it(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),w=ce(x,2),$=w[0],E=w[1],R=!!i,I=s.useState(Hx),O=ce(I,2),T=O[0],_=O[1],k=s.useState(),A=ce(k,2),j=A[0],D=A[1],F=function(){_(Bx)};fn(function(){R&&F()},[o,$,E,R]),fn(function(){if(T===Bx)_(zx);else if(T===zx){var q=Aye(C.current,!1,$,E);_(Hx),D(q)}},[T]);var L=s.useRef(),B=function(){ln.cancel(L.current)},K=function(U){T===Hx&&(l==null||l(U),i&&(B(),L.current=ln(function(){F()})))};s.useEffect(function(){return B},[]);var W=R?j:null,V=P(P({},u),W);return(T===Bx||T===zx)&&(V.overflowY="hidden",V.overflowX="hidden"),s.createElement(Mr,{onResize:K,disabled:!(i||l)},s.createElement("textarea",Me({},m,{ref:C,style:V,className:oe(r,c,z({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:S})))}),zye=["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"],Hye=ee.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,i=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,g=e.prefixCls,h=g===void 0?"rc-textarea":g,b=e.showCount,p=e.count,S=e.className,C=e.style,x=e.disabled,w=e.hidden,$=e.classNames,E=e.styles,R=e.onResize,I=e.onClear,O=e.onPressEnter,T=e.readOnly,_=e.autoSize,k=e.onKeyDown,A=Ue(e,zye),j=Nt(r,{value:a,defaultValue:r}),D=ce(j,2),F=D[0],L=D[1],B=F==null?"":String(F),K=ee.useState(!1),W=ce(K,2),V=W[0],q=W[1],U=ee.useRef(!1),G=ee.useState(null),Y=ce(G,2),J=Y[0],Q=Y[1],Z=s.useRef(null),ne=s.useRef(null),ae=function(){var Pe;return(Pe=ne.current)===null||Pe===void 0?void 0:Pe.textArea},le=function(){ae().focus()};s.useImperativeHandle(t,function(){var Le;return{resizableTextArea:ne.current,focus:le,blur:function(){ae().blur()},nativeElement:((Le=Z.current)===null||Le===void 0?void 0:Le.nativeElement)||ae()}}),s.useEffect(function(){q(function(Le){return!x&&Le})},[x]);var re=ee.useState(null),fe=ce(re,2),ue=fe[0],de=fe[1];ee.useEffect(function(){if(ue){var Le;(Le=ae()).setSelectionRange.apply(Le,ke(ue))}},[ue]);var ie=MK(p,b),se=(n=ie.max)!==null&&n!==void 0?n:u,ve=Number(se)>0,he=ie.strategy(B),Ce=!!se&&he>se,pe=function(Pe,ze){var Oe=ze;!U.current&&ie.exceedFormatter&&ie.max&&ie.strategy(ze)>ie.max&&(Oe=ie.exceedFormatter(ze,{max:ie.max}),ze!==Oe&&de([ae().selectionStart||0,ae().selectionEnd||0])),L(Oe),Zb(Pe.currentTarget,Pe,l,Oe)},Se=function(Pe){U.current=!0,d==null||d(Pe)},ge=function(Pe){U.current=!1,pe(Pe,Pe.currentTarget.value),f==null||f(Pe)},ye=function(Pe){pe(Pe,Pe.target.value)},xe=function(Pe){Pe.key==="Enter"&&O&&O(Pe),k==null||k(Pe)},$e=function(Pe){q(!0),o==null||o(Pe)},He=function(Pe){q(!1),i==null||i(Pe)},Te=function(Pe){L(""),le(),Zb(ae(),Pe,l)},Re=m,Fe;ie.show&&(ie.showFormatter?Fe=ie.showFormatter({value:B,count:he,maxLength:se}):Fe="".concat(he).concat(ve?" / ".concat(se):""),Re=ee.createElement(ee.Fragment,null,Re,ee.createElement("span",{className:oe("".concat(h,"-data-count"),$==null?void 0:$.count),style:E==null?void 0:E.count},Fe)));var je=function(Pe){var ze;R==null||R(Pe),(ze=ae())!==null&&ze!==void 0&&ze.style.height&&Q(!0)},Ee=!_&&!b&&!c;return ee.createElement(L4,{ref:Z,value:B,allowClear:c,handleReset:Te,suffix:Re,prefixCls:h,classNames:P(P({},$),{},{affixWrapper:oe($==null?void 0:$.affixWrapper,z(z({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),c))}),disabled:x,focused:V,className:oe(S,Ce&&"".concat(h,"-out-of-range")),style:P(P({},C),J&&!Ee?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Fe=="string"?Fe:void 0}},hidden:w,readOnly:T,onClear:I},ee.createElement(Bye,Me({},A,{autoSize:_,maxLength:u,onKeyDown:xe,onChange:ye,onFocus:$e,onBlur:He,onCompositionStart:Se,onCompositionEnd:ge,className:oe($==null?void 0:$.textarea),style:P(P({},E==null?void 0:E.textarea),{},{resize:C==null?void 0:C.resize}),disabled:x,prefixCls:h,onResize:je,ref:ne,readOnly:T})))});const Vye=e=>{const{componentCls:t,paddingLG:n}=e,r=`${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"},[r]:{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${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-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},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Iye=un(["Input","TextArea"],e=>{const t=tn(e,vu(e));return Oye(t)},mu,{resetFont:!1});var Rye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,size:o,disabled:i,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:m,styles:g,variant:h,showCount:b,onMouseDown:p,onResize:S}=e,C=Rye(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:w,allowClear:$,autoComplete:E,className:R,style:I,classNames:O,styles:T}=lr("textArea"),N=s.useContext(Lr),A=i??N,{status:k,hasFeedback:j,feedbackIcon:D}=s.useContext(zr),F=Ul(k,l),L=s.useRef(null);s.useImperativeHandle(t,()=>{var ie;return{resizableTextArea:(ie=L.current)===null||ie===void 0?void 0:ie.resizableTextArea,focus:se=>{var ve,he;P4((he=(ve=L.current)===null||ve===void 0?void 0:ve.resizableTextArea)===null||he===void 0?void 0:he.textArea,se)},blur:()=>{var se;return(se=L.current)===null||se===void 0?void 0:se.blur()}}});const B=x("input",r),K=Gn(B),[W,V,q]=xW(B,d),[U]=Iye(B,K),{compactSize:G,compactItemClassnames:Y}=ko(B,w),J=$r(ie=>{var se;return(se=o??G)!==null&&se!==void 0?se:ie}),[Q,Z]=Gl("textArea",h,a),ne=mK(c??$),[ae,le]=s.useState(!1),[re,fe]=s.useState(!1),ue=ie=>{le(!0),p==null||p(ie);const se=()=>{le(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},de=ie=>{var se,ve;if(S==null||S(ie),ae&&typeof getComputedStyle=="function"){const he=(ve=(se=L.current)===null||se===void 0?void 0:se.nativeElement)===null||ve===void 0?void 0:ve.querySelector("textarea");he&&getComputedStyle(he).resize==="both"&&fe(!0)}};return W(U(s.createElement(Pye,Object.assign({autoComplete:E},C,{style:Object.assign(Object.assign({},I),m),styles:Object.assign(Object.assign({},T),g),disabled:A,allowClear:ne,className:oe(q,K,f,d,Y,R,re&&`${B}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),O),{textarea:oe({[`${B}-sm`]:J==="small",[`${B}-lg`]:J==="large"},V,u==null?void 0:u.textarea,O.textarea,ae&&`${B}-mouse-active`),variant:oe({[`${B}-${Q}`]:Z},Di(B,F)),affixWrapper:oe(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:w==="rtl",[`${B}-affix-wrapper-sm`]:J==="small",[`${B}-affix-wrapper-lg`]:J==="large",[`${B}-textarea-show-count`]:b||((n=e.count)===null||n===void 0?void 0:n.show)},V)}),prefixCls:B,suffix:j&&s.createElement("span",{className:`${B}-textarea-suffix`},D),showCount:b,ref:L,onResize:de,onMouseDown:ue}))))}),Kr=Tf;Kr.Group=rye;Kr.Search=bye;Kr.TextArea=YK;Kr.Password=pye;Kr.OTP=uye;function Mye(e,t,n){return typeof n=="boolean"?n:e.length?!0:rr(t).some(a=>a.type===yV)}var XK=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.forwardRef((o,i)=>s.createElement(r,Object.assign({ref:i,suffixCls:e,tagName:t},o)))}const D4=s.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,i=XK(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=s.useContext(jt),c=l("layout",n),[u,d,f]=bV(c),m=r?`${c}-${r}`:c;return u(s.createElement(o,Object.assign({className:oe(n||m,a,d,f),ref:t},i)))}),Tye=s.forwardRef((e,t)=>{const{direction:n}=s.useContext(jt),[r,a]=s.useState([]),{prefixCls:o,className:i,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,m=XK(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=nn(m,["suffixCls"]),{getPrefixCls:h,className:b,style:p}=lr("layout"),S=h("layout",o),C=Mye(r,c,u),[x,w,$]=bV(S),E=oe(S,{[`${S}-has-sider`]:C,[`${S}-rtl`]:n==="rtl"},b,i,l,w,$),R=s.useMemo(()=>({siderHook:{addSider:I=>{a(O=>[].concat(ke(O),[I]))},removeSider:I=>{a(O=>O.filter(T=>T!==I))}}}),[]);return x(s.createElement(gV.Provider,{value:R},s.createElement(d,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},p),f)},g),c)))}),Nye=S1({tagName:"div",displayName:"Layout"})(Tye),_ye=S1({suffixCls:"header",tagName:"header",displayName:"Header"})(D4),jye=S1({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(D4),Fye=S1({suffixCls:"content",tagName:"main",displayName:"Content"})(D4),li=Nye;li.Header=_ye;li.Footer=jye;li.Content=Fye;li.Sider=yV;li._InternalSiderContext=c1;var Dye={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"},kye=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Dye}))},J5=s.forwardRef(kye),Aye={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"},Lye=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Aye}))},Z5=s.forwardRef(Lye),QK={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:"页码"},Bye=[10,20,50,100],zye=function(t){var n=t.pageSizeOptions,r=n===void 0?Bye:n,a=t.locale,o=t.changeSize,i=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,g=t.sizeChangerRender,h=ee.useState(""),b=ce(h,2),p=b[0],S=b[1],C=function(){return!p||Number.isNaN(p)?void 0:Number(p)},x=typeof f=="function"?f:function(A){return"".concat(A," ").concat(a.items_per_page)},w=function(k){S(k.target.value)},$=function(k){l||p===""||(S(""),!(k.relatedTarget&&(k.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||k.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(C())))},E=function(k){p!==""&&(k.keyCode===ot.ENTER||k.type==="click")&&(S(""),c==null||c(C()))},R=function(){return r.some(function(k){return k.toString()===i.toString()})?r:r.concat([i]).sort(function(k,j){var D=Number.isNaN(Number(k))?0:Number(k),F=Number.isNaN(Number(j))?0:Number(j);return D-F})},I="".concat(u,"-options");if(!m&&!c)return null;var O=null,T=null,N=null;return m&&g&&(O=g({disabled:d,size:i,onSizeChange:function(k){o==null||o(Number(k))},"aria-label":a.page_size,className:"".concat(I,"-size-changer"),options:R().map(function(A){return{label:x(A),value:A}})})),c&&(l&&(N=typeof l=="boolean"?ee.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:d,className:"".concat(I,"-quick-jumper-button")},a.jump_to_confirm):ee.createElement("span",{onClick:E,onKeyUp:E},l)),T=ee.createElement("div",{className:"".concat(I,"-quick-jumper")},a.jump_to,ee.createElement("input",{disabled:d,type:"text",value:p,onChange:w,onKeyUp:E,onBlur:$,"aria-label":a.page}),a.page,N)),ee.createElement("li",{className:I},O,T)},Ev=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,o=t.className,i=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=oe(d,"".concat(d,"-").concat(r),z(z({},"".concat(d,"-active"),a),"".concat(d,"-disabled"),!r),o),m=function(){l(r)},g=function(p){c(p,l,r)},h=u(r,"page",ee.createElement("a",{rel:"nofollow"},r));return h?ee.createElement("li",{title:i?String(r):null,className:f,onClick:m,onKeyDown:g,tabIndex:0},h):null},Hye=function(t,n,r){return r};function e_(){}function t_(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function xc(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var Vye=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,i=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,f=d===void 0?0:d,m=t.pageSize,g=t.defaultPageSize,h=g===void 0?10:g,b=t.onChange,p=b===void 0?e_:b,S=t.hideOnSinglePage,C=t.align,x=t.showPrevNextJumpers,w=x===void 0?!0:x,$=t.showQuickJumper,E=t.showLessItems,R=t.showTitle,I=R===void 0?!0:R,O=t.onShowSizeChange,T=O===void 0?e_:O,N=t.locale,A=N===void 0?QK:N,k=t.style,j=t.totalBoundaryShowSizeChanger,D=j===void 0?50:j,F=t.disabled,L=t.simple,B=t.showTotal,K=t.showSizeChanger,W=K===void 0?f>D:K,V=t.sizeChangerRender,q=t.pageSizeOptions,U=t.itemRender,G=U===void 0?Hye:U,Y=t.jumpPrevIcon,J=t.jumpNextIcon,Q=t.prevIcon,Z=t.nextIcon,ne=ee.useRef(null),ae=_t(10,{value:m,defaultValue:h}),le=ce(ae,2),re=le[0],fe=le[1],ue=_t(1,{value:l,defaultValue:u,postState:function(Rt){return Math.max(1,Math.min(Rt,xc(void 0,re,f)))}}),de=ce(ue,2),ie=de[0],se=de[1],ve=ee.useState(ie),he=ce(ve,2),Ce=he[0],pe=he[1];s.useEffect(function(){pe(ie)},[ie]);var Se=Math.max(1,ie-(E?3:5)),ge=Math.min(xc(void 0,re,f),ie+(E?3:5));function ye(Ct,Rt){var Vt=Ct||ee.createElement("button",{type:"button","aria-label":Rt,className:"".concat(r,"-item-link")});return typeof Ct=="function"&&(Vt=ee.createElement(Ct,P({},t))),Vt}function xe(Ct){var Rt=Ct.target.value,Vt=xc(void 0,re,f),vn;return Rt===""?vn=Rt:Number.isNaN(Number(Rt))?vn=Ce:Rt>=Vt?vn=Vt:vn=Number(Rt),vn}function $e(Ct){return t_(Ct)&&Ct!==ie&&t_(f)&&f>0}var He=f>re?$:!1;function Te(Ct){(Ct.keyCode===ot.UP||Ct.keyCode===ot.DOWN)&&Ct.preventDefault()}function Re(Ct){var Rt=xe(Ct);switch(Rt!==Ce&&pe(Rt),Ct.keyCode){case ot.ENTER:Ee(Rt);break;case ot.UP:Ee(Rt-1);break;case ot.DOWN:Ee(Rt+1);break}}function Fe(Ct){Ee(xe(Ct))}function je(Ct){var Rt=xc(Ct,re,f),Vt=ie>Rt&&Rt!==0?Rt:ie;fe(Ct),pe(Vt),T==null||T(ie,Ct),se(Vt),p==null||p(Vt,Ct)}function Ee(Ct){if($e(Ct)&&!F){var Rt=xc(void 0,re,f),Vt=Ct;return Ct>Rt?Vt=Rt:Ct<1&&(Vt=1),Vt!==Ce&&pe(Vt),se(Vt),p==null||p(Vt,re),Vt}return ie}var Le=ie>1,Pe=ie2?Vt-2:0),Mn=2;Mnf?f:ie*re])),yt=null,bt=xc(void 0,re,f);if(S&&f<=re)return null;var tt=[],Ye={rootPrefixCls:r,onClick:Ee,onKeyPress:Be,showTitle:I,itemRender:G,page:-1},Ne=ie-1>0?ie-1:0,We=ie+1=ft*2&&ie!==3&&(tt[0]=ee.cloneElement(tt[0],{className:oe("".concat(r,"-item-after-jump-prev"),tt[0].props.className)}),tt.unshift(Ot)),bt-ie>=ft*2&&ie!==bt-2){var St=tt[tt.length-1];tt[tt.length-1]=ee.cloneElement(St,{className:oe("".concat(r,"-item-before-jump-next"),St.props.className)}),tt.push(yt)}Pt!==1&&tt.unshift(ee.createElement(Ev,Me({},Ye,{key:1,page:1}))),Lt!==bt&&tt.push(ee.createElement(Ev,Me({},Ye,{key:bt,page:bt})))}var gt=st(Ne);if(gt){var qe=!Le||!bt;gt=ee.createElement("li",{title:I?A.prev_page:null,onClick:ze,tabIndex:qe?null:0,onKeyDown:Qe,className:oe("".concat(r,"-prev"),z({},"".concat(r,"-disabled"),qe)),"aria-disabled":qe},gt)}var at=Ze(We);if(at){var dt,Tt;L?(dt=!Pe,Tt=Le?0:null):(dt=!Pe||!bt,Tt=dt?null:0),at=ee.createElement("li",{title:I?A.next_page:null,onClick:Oe,tabIndex:Tt,onKeyDown:lt,className:oe("".concat(r,"-next"),z({},"".concat(r,"-disabled"),dt)),"aria-disabled":dt},at)}var Qt=oe(r,i,z(z(z(z(z({},"".concat(r,"-start"),C==="start"),"".concat(r,"-center"),C==="center"),"".concat(r,"-end"),C==="end"),"".concat(r,"-simple"),L),"".concat(r,"-disabled"),F));return ee.createElement("ul",Me({className:Qt,style:k,ref:ne},xt),mt,gt,L?pt:tt,at,ee.createElement(zye,{locale:A,rootPrefixCls:r,disabled:F,selectPrefixCls:o,changeSize:je,pageSize:re,pageSizeOptions:q,quickGo:He?Ee:null,goButton:At,showSizeChanger:W,sizeChangerRender:V}))};const Wye=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}}}}},Kye=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:me(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:me(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:me(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"}}},[` + `]:{paddingInlineEnd:n},[`&-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},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Wye=dn(["Input","TextArea"],e=>{const t=en(e,mu(e));return Vye(t)},gu,{resetFont:!1});var Kye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,size:o,disabled:i,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:m,styles:g,variant:h,showCount:b,onMouseDown:p,onResize:S}=e,C=Kye(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:w,allowClear:$,autoComplete:E,className:R,style:I,classNames:O,styles:T}=sr("textArea"),_=s.useContext(Br),k=i??_,{status:A,hasFeedback:j,feedbackIcon:D}=s.useContext(Hr),F=Ul(A,l),L=s.useRef(null);s.useImperativeHandle(t,()=>{var ie;return{resizableTextArea:(ie=L.current)===null||ie===void 0?void 0:ie.resizableTextArea,focus:se=>{var ve,he;A4((he=(ve=L.current)===null||ve===void 0?void 0:ve.resizableTextArea)===null||he===void 0?void 0:he.textArea,se)},blur:()=>{var se;return(se=L.current)===null||se===void 0?void 0:se.blur()}}});const B=x("input",r),K=Yn(B),[W,V,q]=BW(B,d),[U]=Wye(B,K),{compactSize:G,compactItemClassnames:Y}=Ao(B,w),J=Er(ie=>{var se;return(se=o??G)!==null&&se!==void 0?se:ie}),[Q,Z]=Gl("textArea",h,a),ne=NK(c??$),[ae,le]=s.useState(!1),[re,fe]=s.useState(!1),ue=ie=>{le(!0),p==null||p(ie);const se=()=>{le(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},de=ie=>{var se,ve;if(S==null||S(ie),ae&&typeof getComputedStyle=="function"){const he=(ve=(se=L.current)===null||se===void 0?void 0:se.nativeElement)===null||ve===void 0?void 0:ve.querySelector("textarea");he&&getComputedStyle(he).resize==="both"&&fe(!0)}};return W(U(s.createElement(Hye,Object.assign({autoComplete:E},C,{style:Object.assign(Object.assign({},I),m),styles:Object.assign(Object.assign({},T),g),disabled:k,allowClear:ne,className:oe(q,K,f,d,Y,R,re&&`${B}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),O),{textarea:oe({[`${B}-sm`]:J==="small",[`${B}-lg`]:J==="large"},V,u==null?void 0:u.textarea,O.textarea,ae&&`${B}-mouse-active`),variant:oe({[`${B}-${Q}`]:Z},Ai(B,F)),affixWrapper:oe(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:w==="rtl",[`${B}-affix-wrapper-sm`]:J==="small",[`${B}-affix-wrapper-lg`]:J==="large",[`${B}-textarea-show-count`]:b||((n=e.count)===null||n===void 0?void 0:n.show)},V)}),prefixCls:B,suffix:j&&s.createElement("span",{className:`${B}-textarea-suffix`},D),showCount:b,ref:L,onResize:de,onMouseDown:ue}))))}),Vr=Nf;Vr.Group=yye;Vr.Search=jye;Vr.TextArea=vq;Vr.Password=Nye;Vr.OTP=Pye;function qye(e,t,n){return typeof n=="boolean"?n:e.length?!0:rr(t).some(a=>a.type===kV)}var mq=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.forwardRef((o,i)=>s.createElement(r,Object.assign({ref:i,suffixCls:e,tagName:t},o)))}const U4=s.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,i=mq(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=s.useContext(jt),c=l("layout",n),[u,d,f]=DV(c),m=r?`${c}-${r}`:c;return u(s.createElement(o,Object.assign({className:oe(n||m,a,d,f),ref:t},i)))}),Uye=s.forwardRef((e,t)=>{const{direction:n}=s.useContext(jt),[r,a]=s.useState([]),{prefixCls:o,className:i,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,m=mq(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),g=nn(m,["suffixCls"]),{getPrefixCls:h,className:b,style:p}=sr("layout"),S=h("layout",o),C=qye(r,c,u),[x,w,$]=DV(S),E=oe(S,{[`${S}-has-sider`]:C,[`${S}-rtl`]:n==="rtl"},b,i,l,w,$),R=s.useMemo(()=>({siderHook:{addSider:I=>{a(O=>[].concat(ke(O),[I]))},removeSider:I=>{a(O=>O.filter(T=>T!==I))}}}),[]);return x(s.createElement(_V.Provider,{value:R},s.createElement(d,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},p),f)},g),c)))}),Gye=I1({tagName:"div",displayName:"Layout"})(Uye),Yye=I1({suffixCls:"header",tagName:"header",displayName:"Header"})(U4),Xye=I1({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(U4),Qye=I1({suffixCls:"content",tagName:"main",displayName:"Content"})(U4),ci=Gye;ci.Header=Yye;ci.Footer=Xye;ci.Content=Qye;ci.Sider=kV;ci._InternalSiderContext=g1;var Jye={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"},Zye=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Jye}))},v_=s.forwardRef(Zye),e1e={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"},t1e=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:e1e}))},m_=s.forwardRef(t1e),gq={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:"页码"},n1e=[10,20,50,100],r1e=function(t){var n=t.pageSizeOptions,r=n===void 0?n1e:n,a=t.locale,o=t.changeSize,i=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,g=t.sizeChangerRender,h=ee.useState(""),b=ce(h,2),p=b[0],S=b[1],C=function(){return!p||Number.isNaN(p)?void 0:Number(p)},x=typeof f=="function"?f:function(k){return"".concat(k," ").concat(a.items_per_page)},w=function(A){S(A.target.value)},$=function(A){l||p===""||(S(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(C())))},E=function(A){p!==""&&(A.keyCode===ot.ENTER||A.type==="click")&&(S(""),c==null||c(C()))},R=function(){return r.some(function(A){return A.toString()===i.toString()})?r:r.concat([i]).sort(function(A,j){var D=Number.isNaN(Number(A))?0:Number(A),F=Number.isNaN(Number(j))?0:Number(j);return D-F})},I="".concat(u,"-options");if(!m&&!c)return null;var O=null,T=null,_=null;return m&&g&&(O=g({disabled:d,size:i,onSizeChange:function(A){o==null||o(Number(A))},"aria-label":a.page_size,className:"".concat(I,"-size-changer"),options:R().map(function(k){return{label:x(k),value:k}})})),c&&(l&&(_=typeof l=="boolean"?ee.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:d,className:"".concat(I,"-quick-jumper-button")},a.jump_to_confirm):ee.createElement("span",{onClick:E,onKeyUp:E},l)),T=ee.createElement("div",{className:"".concat(I,"-quick-jumper")},a.jump_to,ee.createElement("input",{disabled:d,type:"text",value:p,onChange:w,onKeyUp:E,onBlur:$,"aria-label":a.page}),a.page,_)),ee.createElement("li",{className:I},O,T)},Ev=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,o=t.className,i=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=oe(d,"".concat(d,"-").concat(r),z(z({},"".concat(d,"-active"),a),"".concat(d,"-disabled"),!r),o),m=function(){l(r)},g=function(p){c(p,l,r)},h=u(r,"page",ee.createElement("a",{rel:"nofollow"},r));return h?ee.createElement("li",{title:i?String(r):null,className:f,onClick:m,onKeyDown:g,tabIndex:0},h):null},a1e=function(t,n,r){return r};function g_(){}function p_(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Sc(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var o1e=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,i=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,f=d===void 0?0:d,m=t.pageSize,g=t.defaultPageSize,h=g===void 0?10:g,b=t.onChange,p=b===void 0?g_:b,S=t.hideOnSinglePage,C=t.align,x=t.showPrevNextJumpers,w=x===void 0?!0:x,$=t.showQuickJumper,E=t.showLessItems,R=t.showTitle,I=R===void 0?!0:R,O=t.onShowSizeChange,T=O===void 0?g_:O,_=t.locale,k=_===void 0?gq:_,A=t.style,j=t.totalBoundaryShowSizeChanger,D=j===void 0?50:j,F=t.disabled,L=t.simple,B=t.showTotal,K=t.showSizeChanger,W=K===void 0?f>D:K,V=t.sizeChangerRender,q=t.pageSizeOptions,U=t.itemRender,G=U===void 0?a1e:U,Y=t.jumpPrevIcon,J=t.jumpNextIcon,Q=t.prevIcon,Z=t.nextIcon,ne=ee.useRef(null),ae=Nt(10,{value:m,defaultValue:h}),le=ce(ae,2),re=le[0],fe=le[1],ue=Nt(1,{value:l,defaultValue:u,postState:function(Mt){return Math.max(1,Math.min(Mt,Sc(void 0,re,f)))}}),de=ce(ue,2),ie=de[0],se=de[1],ve=ee.useState(ie),he=ce(ve,2),Ce=he[0],pe=he[1];s.useEffect(function(){pe(ie)},[ie]);var Se=Math.max(1,ie-(E?3:5)),ge=Math.min(Sc(void 0,re,f),ie+(E?3:5));function ye(Ct,Mt){var Vt=Ct||ee.createElement("button",{type:"button","aria-label":Mt,className:"".concat(r,"-item-link")});return typeof Ct=="function"&&(Vt=ee.createElement(Ct,P({},t))),Vt}function xe(Ct){var Mt=Ct.target.value,Vt=Sc(void 0,re,f),mn;return Mt===""?mn=Mt:Number.isNaN(Number(Mt))?mn=Ce:Mt>=Vt?mn=Vt:mn=Number(Mt),mn}function $e(Ct){return p_(Ct)&&Ct!==ie&&p_(f)&&f>0}var He=f>re?$:!1;function Te(Ct){(Ct.keyCode===ot.UP||Ct.keyCode===ot.DOWN)&&Ct.preventDefault()}function Re(Ct){var Mt=xe(Ct);switch(Mt!==Ce&&pe(Mt),Ct.keyCode){case ot.ENTER:Ee(Mt);break;case ot.UP:Ee(Mt-1);break;case ot.DOWN:Ee(Mt+1);break}}function Fe(Ct){Ee(xe(Ct))}function je(Ct){var Mt=Sc(Ct,re,f),Vt=ie>Mt&&Mt!==0?Mt:ie;fe(Ct),pe(Vt),T==null||T(ie,Ct),se(Vt),p==null||p(Vt,Ct)}function Ee(Ct){if($e(Ct)&&!F){var Mt=Sc(void 0,re,f),Vt=Ct;return Ct>Mt?Vt=Mt:Ct<1&&(Vt=1),Vt!==Ce&&pe(Vt),se(Vt),p==null||p(Vt,re),Vt}return ie}var Le=ie>1,Pe=ie2?Vt-2:0),Mn=2;Mnf?f:ie*re])),yt=null,bt=Sc(void 0,re,f);if(S&&f<=re)return null;var tt=[],Ye={rootPrefixCls:r,onClick:Ee,onKeyPress:Be,showTitle:I,itemRender:G,page:-1},Ne=ie-1>0?ie-1:0,We=ie+1=ft*2&&ie!==3&&(tt[0]=ee.cloneElement(tt[0],{className:oe("".concat(r,"-item-after-jump-prev"),tt[0].props.className)}),tt.unshift(Ot)),bt-ie>=ft*2&&ie!==bt-2){var St=tt[tt.length-1];tt[tt.length-1]=ee.cloneElement(St,{className:oe("".concat(r,"-item-before-jump-next"),St.props.className)}),tt.push(yt)}Pt!==1&&tt.unshift(ee.createElement(Ev,Me({},Ye,{key:1,page:1}))),Lt!==bt&&tt.push(ee.createElement(Ev,Me({},Ye,{key:bt,page:bt})))}var gt=st(Ne);if(gt){var qe=!Le||!bt;gt=ee.createElement("li",{title:I?k.prev_page:null,onClick:ze,tabIndex:qe?null:0,onKeyDown:Qe,className:oe("".concat(r,"-prev"),z({},"".concat(r,"-disabled"),qe)),"aria-disabled":qe},gt)}var at=Ze(We);if(at){var dt,Tt;L?(dt=!Pe,Tt=Le?0:null):(dt=!Pe||!bt,Tt=dt?null:0),at=ee.createElement("li",{title:I?k.next_page:null,onClick:Oe,tabIndex:Tt,onKeyDown:lt,className:oe("".concat(r,"-next"),z({},"".concat(r,"-disabled"),dt)),"aria-disabled":dt},at)}var Qt=oe(r,i,z(z(z(z(z({},"".concat(r,"-start"),C==="start"),"".concat(r,"-center"),C==="center"),"".concat(r,"-end"),C==="end"),"".concat(r,"-simple"),L),"".concat(r,"-disabled"),F));return ee.createElement("ul",Me({className:Qt,style:A,ref:ne},xt),mt,gt,L?pt:tt,at,ee.createElement(r1e,{locale:k,rootPrefixCls:r,disabled:F,selectPrefixCls:o,changeSize:je,pageSize:re,pageSizeOptions:q,quickGo:He?Ee:null,goButton:At,showSizeChanger:W,sizeChangerRender:V}))};const i1e=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}}}}},l1e=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:me(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:me(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:me(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:me(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:me(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:me(e.itemSizeSM),input:Object.assign(Object.assign({},x4(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},qye=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:me(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:me(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 ${me(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${me(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:`${me(e.inputOutlineOffset)} 0 ${me(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:me(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:me(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Uye=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}}},[` + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:me(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:me(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:me(e.itemSizeSM),input:Object.assign(Object.assign({},j4(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},s1e=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:me(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:me(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 ${me(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${me(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:`${me(e.inputOutlineOffset)} 0 ${me(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:me(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:me(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},c1e=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 @@ -380,8 +380,8 @@ html body { ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:me(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:`${me(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:me(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},$g(e)),p4(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},p1(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Gye=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:me(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${me(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${me(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}}}}},Yye=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wn(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:me(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Gye(e)),Uye(e)),qye(e)),Kye(e)),Wye(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"}}},Xye=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ga(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ri(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ri(e)}}}},JK=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},mu(e)),ZK=e=>tn(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"},vu(e)),Qye=un("Pagination",e=>{const t=ZK(e);return[Yye(t),Xye(t)]},JK),Jye=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:`${me(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}}}}},Zye=pf(["Pagination","bordered"],e=>{const t=ZK(e);return Jye(t)},JK);function n_(e){return s.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var e1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:i,size:l,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,g=e1e(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=uu(u),[,b]=qr(),{getPrefixCls:p,direction:S,showSizeChanger:C,className:x,style:w}=lr("pagination"),$=p("pagination",n),[E,R,I]=Qye($),O=$r(l),T=O==="small"||!!(h&&!O&&u),[N]=Pa("Pagination",x9),A=Object.assign(Object.assign({},N),c),[k,j]=n_(d),[D,F]=n_(C),L=k??D,B=j??F,K=f||dl,W=s.useMemo(()=>m?m.map(J=>Number(J)):void 0,[m]),V=J=>{var Q;const{disabled:Z,size:ne,onSizeChange:ae,"aria-label":le,className:re,options:fe}=J,{className:ue,onChange:de}=B||{},ie=(Q=fe.find(se=>String(se.value)===String(ne)))===null||Q===void 0?void 0:Q.value;return s.createElement(K,Object.assign({disabled:Z,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:se=>se.parentNode,"aria-label":le,options:fe},B,{value:ie,onChange:(se,ve)=>{ae==null||ae(se),de==null||de(se,ve)},size:T?"small":"middle",className:oe(re,ue)}))},q=s.useMemo(()=>{const J=s.createElement("span",{className:`${$}-item-ellipsis`},"•••"),Q=s.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},S==="rtl"?s.createElement(ai,null):s.createElement(Wl,null)),Z=s.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},S==="rtl"?s.createElement(Wl,null):s.createElement(ai,null)),ne=s.createElement("a",{className:`${$}-item-link`},s.createElement("div",{className:`${$}-item-container`},S==="rtl"?s.createElement(Z5,{className:`${$}-item-link-icon`}):s.createElement(J5,{className:`${$}-item-link-icon`}),J)),ae=s.createElement("a",{className:`${$}-item-link`},s.createElement("div",{className:`${$}-item-container`},S==="rtl"?s.createElement(J5,{className:`${$}-item-link-icon`}):s.createElement(Z5,{className:`${$}-item-link-icon`}),J));return{prevIcon:Q,nextIcon:Z,jumpPrevIcon:ne,jumpNextIcon:ae}},[S,$]),U=p("select",r),G=oe({[`${$}-${t}`]:!!t,[`${$}-mini`]:T,[`${$}-rtl`]:S==="rtl",[`${$}-bordered`]:b.wireframe},x,a,o,R,I),Y=Object.assign(Object.assign({},w),i);return E(s.createElement(s.Fragment,null,b.wireframe&&s.createElement(Zye,{prefixCls:$}),s.createElement(Vye,Object.assign({},q,g,{style:Y,prefixCls:$,selectPrefixCls:U,className:G,locale:A,pageSizeOptions:W,showSizeChanger:L,sizeChangerRender:V}))))},Jb=100,eq=Jb/5,tq=Jb/2-eq/2,jx=tq*2*Math.PI,r_=50,a_=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return s.createElement("circle",{className:oe(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:tq,cx:r_,cy:r_,strokeWidth:eq,style:n})},n1e=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[o,i]=s.useState(!1);dn(()=>{e!==0&&i(!0)},[e!==0]);const l=Math.max(Math.min(e,100),0);if(!o)return null;const c={strokeDashoffset:`${jx/4}`,strokeDasharray:`${jx*l/100} ${jx*(100-l)/100}`};return s.createElement("span",{className:oe(r,`${n}-progress`,l<=0&&a)},s.createElement("svg",{viewBox:`0 0 ${Jb} ${Jb}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},s.createElement(a_,{dotClassName:n,hasCircleCls:!0}),s.createElement(a_,{dotClassName:n,style:c})))};function r1e(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return s.createElement(s.Fragment,null,s.createElement("span",{className:oe(a,n>0&&o)},s.createElement("span",{className:oe(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>s.createElement("i",{className:`${t}-dot-item`,key:i})))),s.createElement(n1e,{prefixCls:t,percent:n}))}function a1e(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,o=`${n}-dot`;return r&&s.isValidElement(r)?Br(r,{className:oe((t=r.props)===null||t===void 0?void 0:t.className,o),percent:a}):s.createElement(r1e,{prefixCls:n,percent:a})}const o1e=new Cn("antSpinMove",{to:{opacity:1}}),i1e=new Cn("antRotate",{to:{transform:"rotate(405deg)"}}),l1e=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},wn(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:n(n(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:n(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:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(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:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:o1e,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:i1e,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},s1e=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},c1e=un("Spin",e=>{const t=tn(e,{spinDotDefault:e.colorTextDescription});return l1e(t)},s1e),u1e=200,o_=[[30,.05],[70,.03],[96,.01]];function d1e(e,t){const[n,r]=s.useState(0),a=s.useRef(null),o=t==="auto";return s.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(i=>{const l=100-i;for(let c=0;c{a.current&&(clearInterval(a.current),a.current=null)}),[o,e]),o?n:t}var f1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:i,size:l="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:g,percent:h}=e,b=f1e(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:p,direction:S,className:C,style:x,indicator:w}=lr("spin"),$=p("spin",n),[E,R,I]=c1e($),[O,T]=s.useState(()=>r&&!v1e(r,a)),N=d1e(O,h);s.useEffect(()=>{if(r){const B=Wme(a,()=>{T(!0)});return B(),()=>{var K;(K=B==null?void 0:B.cancel)===null||K===void 0||K.call(B)}}T(!1)},[a,r]);const A=s.useMemo(()=>typeof f<"u"&&!m,[f,m]),k=oe($,C,{[`${$}-sm`]:l==="small",[`${$}-lg`]:l==="large",[`${$}-spinning`]:O,[`${$}-show-text`]:!!c,[`${$}-rtl`]:S==="rtl"},o,!m&&i,R,I),j=oe(`${$}-container`,{[`${$}-blur`]:O}),D=(t=g??w)!==null&&t!==void 0?t:nq,F=Object.assign(Object.assign({},x),d),L=s.createElement("div",Object.assign({},b,{style:F,className:k,"aria-live":"polite","aria-busy":O}),s.createElement(a1e,{prefixCls:$,indicator:D,percent:N}),c&&(A||m)?s.createElement("div",{className:`${$}-text`},c):null);return E(A?s.createElement("div",Object.assign({},b,{className:oe(`${$}-nested-loading`,u,R,I)}),O&&s.createElement("div",{key:"loading"},L),s.createElement("div",{className:j,key:"container"},f)):m?s.createElement("div",{className:oe(`${$}-fullscreen`,{[`${$}-fullscreen-show`]:O},i,R,I)},L):L)};Hi.setDefaultIndicator=e=>{nq=e};const m1e=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let Xo=null,Mc=e=>e(),Am=[],Lm={};function i_(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Lm,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const g1e=ee.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=s.useContext(jt),o=Lm.prefixCls||a("message"),i=s.useContext(FP),[l,c]=mz(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.message));return ee.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=(...f)=>(r(),l[d].apply(l,f))}),{instance:u,sync:r}}),c}),p1e=ee.forwardRef((e,t)=>{const[n,r]=ee.useState(i_),a=()=>{r(i_)};ee.useEffect(a,[]);const o=J9(),i=o.getRootPrefixCls(),l=o.getIconPrefixCls(),c=o.getTheme(),u=ee.createElement(g1e,{ref:t,sync:a,messageConfig:n});return ee.createElement(Mt,{prefixCls:i,iconPrefixCls:l,theme:c},o.holderRender?o.holderRender(u):u)}),x1=()=>{if(!Xo){const e=document.createDocumentFragment(),t={fragment:e};Xo=t,Mc(()=>{OR()(ee.createElement(p1e,{ref:r=>{const{instance:a,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=o,x1())})}}),e)});return}Xo.instance&&(Am.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Mc(()=>{const r=Xo.instance.open(Object.assign(Object.assign({},Lm),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Mc(()=>{Xo==null||Xo.instance.destroy(e.key)});break;default:Mc(()=>{var r;const a=(r=Xo.instance)[t].apply(r,ke(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),Am=[])};function h1e(e){Lm=Object.assign(Object.assign({},Lm),e),Mc(()=>{var t;(t=Xo==null?void 0:Xo.sync)===null||t===void 0||t.call(Xo)})}function b1e(e){const t=ER(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return Am.push(a),()=>{r?Mc(()=>{r()}):a.skipped=!0}});return x1(),t}function y1e(e,t){const n=ER(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:i=>{a=i}};return Am.push(o),()=>{a?Mc(()=>{a()}):o.skipped=!0}});return x1(),n}const C1e=e=>{Am.push({type:"destroy",key:e}),x1()},S1e=["success","info","warning","error","loading"],x1e={open:b1e,destroy:C1e,config:h1e,useMessage:gz,_InternalPanelDoNotUseOrYouWillBeFired:Fne},Qo=x1e;S1e.forEach(e=>{Qo[e]=(...t)=>y1e(e,t)});var w1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:i,children:l,footer:c}=e,u=w1e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=s.useContext(jt),f=d(),m=t||d("modal"),g=Gn(f),[h,b,p]=lH(m,g),S=`${m}-confirm`;let C={};return o?C={closable:a??!1,title:"",footer:"",children:s.createElement(cH,Object.assign({},e,{prefixCls:m,confirmPrefixCls:S,rootPrefixCls:f,content:l}))}:C={closable:a??!0,title:i,footer:c!==null&&s.createElement(nH,Object.assign({},e)),children:l},h(s.createElement(Bz,Object.assign({prefixCls:m,className:oe(b,`${m}-pure-panel`,o&&S,o&&`${S}-${o}`,n,p,g)},u,{closeIcon:tH(m,r),closable:a},C)))},E1e=SH($1e);function rq(e){return hg(vH(e))}const Vi=sH;Vi.useModal=bH;Vi.info=function(t){return hg(mH(t))};Vi.success=function(t){return hg(gH(t))};Vi.error=function(t){return hg(pH(t))};Vi.warning=rq;Vi.warn=rq;Vi.confirm=function(t){return hg(hH(t))};Vi.destroyAll=function(){for(;Rc.length;){const t=Rc.pop();t&&t()}};Vi.config=qie;Vi._InternalPanelDoNotUseOrYouWillBeFired=E1e;const P1e=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:o,colorWarning:i,marginXXS:l,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},O1e=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},aq=un("Popconfirm",e=>P1e(e),O1e,{resetStyle:!1});var I1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:o,cancelText:i,okText:l,okType:c="primary",icon:u=s.createElement(tc,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:g,onPopupClick:h}=e,{getPrefixCls:b}=s.useContext(jt),[p]=Pa("Popconfirm",ji.Popconfirm),S=Jd(a),C=Jd(o);return s.createElement("div",{className:`${t}-inner-content`,onClick:h},s.createElement("div",{className:`${t}-message`},u&&s.createElement("span",{className:`${t}-message-icon`},u),s.createElement("div",{className:`${t}-message-text`},S&&s.createElement("div",{className:`${t}-title`},S),C&&s.createElement("div",{className:`${t}-description`},C))),s.createElement("div",{className:`${t}-buttons`},d&&s.createElement(jn,Object.assign({onClick:g,size:"small"},r),i||(p==null?void 0:p.cancelText)),s.createElement(jR,{buttonProps:Object.assign(Object.assign({size:"small"},IR(c)),n),actionFn:m,close:f,prefixCls:b("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(p==null?void 0:p.okText))))},R1e=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,o=I1e(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=s.useContext(jt),l=i("popconfirm",t),[c]=aq(l);return c(s.createElement(eV,{placement:n,className:oe(l,r),style:a,content:s.createElement(oq,Object.assign({prefixCls:l},o))}))};var M1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,placement:o="top",trigger:i="click",okType:l="primary",icon:c=s.createElement(tc,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m,overlayStyle:g,styles:h,classNames:b}=e,p=M1e(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:S,className:C,style:x,classNames:w,styles:$}=lr("popconfirm"),[E,R]=_t(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),I=(L,B)=>{R(L,!0),m==null||m(L),f==null||f(L,B)},O=L=>{I(!1,L)},T=L=>{var B;return(B=e.onConfirm)===null||B===void 0?void 0:B.call(void 0,L)},N=L=>{var B;I(!1,L),(B=e.onCancel)===null||B===void 0||B.call(void 0,L)},A=(L,B)=>{const{disabled:K=!1}=e;K||I(L,B)},k=S("popconfirm",a),j=oe(k,C,d,w.root,b==null?void 0:b.root),D=oe(w.body,b==null?void 0:b.body),[F]=aq(k);return F(s.createElement(Bi,Object.assign({},nn(p,["title"]),{trigger:i,placement:o,onOpenChange:A,open:E,ref:t,classNames:{root:j,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),x),g),h==null?void 0:h.root),body:Object.assign(Object.assign({},$.body),h==null?void 0:h.body)},content:s.createElement(oq,Object.assign({okType:l,icon:c},e,{prefixCls:k,close:O,onConfirm:T,onCancel:N})),"data-popover-inject":!0}),u))}),k4=T1e;k4._InternalPanelDoNotUseOrYouWillBeFired=R1e;var N1e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},_1e=function(){var t=s.useRef([]),n=s.useRef(null);return s.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},l_=0,j1e=va();function F1e(){var e;return j1e?(e=l_,l_+=1):e="TEST_OR_SSR",e}const D1e=(function(e){var t=s.useState(),n=ce(t,2),r=n[0],a=n[1];return s.useEffect(function(){a("rc_progress_".concat(F1e()))},[]),e||r});var s_=function(t){var n=t.bg,r=t.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function c_(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var k1e=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,i=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,m=r&&it(r)==="object",g=m?"#FFF":void 0,h=d/2,b=s.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:h,cy:h,stroke:g,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:i,ref:t});if(!m)return b;var p="".concat(a,"-conic"),S=f?"".concat(180+f/2,"deg"):"0deg",C=c_(r,(360-f)/360),x=c_(r,1),w="conic-gradient(from ".concat(S,", ").concat(C.join(", "),")"),$="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:p},b),s.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(p,")")},s.createElement(s_,{bg:$},s.createElement(s_,{bg:w}))))}),em=100,Fx=function(t,n,r,a,o,i,l,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-i)/360),g=i===0?0:{bottom:0,top:180,left:90,right:-90}[l],h=(100-a)/100*n;u==="round"&&a!==100&&(h+=d/2,h>=n&&(h=n-.01));var b=em/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(o+m+g,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"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}},A1e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function u_(e){var t=e??[];return Array.isArray(t)?t:[t]}var L1e=function(t){var n=P(P({},N1e),t),r=n.id,a=n.prefixCls,o=n.steps,i=n.strokeWidth,l=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,g=n.style,h=n.className,b=n.strokeColor,p=n.percent,S=Ue(n,A1e),C=em/2,x=D1e(r),w="".concat(x,"-gradient"),$=C-i/2,E=Math.PI*2*$,R=u>0?90+u/2:-90,I=E*((360-u)/360),O=it(o)==="object"?o:{count:o,gap:2},T=O.count,N=O.gap,A=u_(p),k=u_(b),j=k.find(function(V){return V&&it(V)==="object"}),D=j&&it(j)==="object",F=D?"butt":m,L=Fx(E,I,0,100,R,u,d,f,F,i),B=_1e(),K=function(){var q=0;return A.map(function(U,G){var Y=k[G]||k[k.length-1],J=Fx(E,I,q,U,R,u,d,Y,F,i);return q+=U,s.createElement(k1e,{key:G,color:Y,ptg:U,radius:$,prefixCls:a,gradientId:w,style:J,strokeLinecap:F,strokeWidth:i,gapDegree:u,ref:function(Z){B[G]=Z},size:em})}).reverse()},W=function(){var q=Math.round(T*(A[0]/100)),U=100/T,G=0;return new Array(T).fill(null).map(function(Y,J){var Q=J<=q-1?k[0]:f,Z=Q&&it(Q)==="object"?"url(#".concat(w,")"):void 0,ne=Fx(E,I,G,U,R,u,d,Q,"butt",i,N);return G+=(I-ne.strokeDashoffset+N)*100/I,s.createElement("circle",{key:J,className:"".concat(a,"-circle-path"),r:$,cx:C,cy:C,stroke:Z,strokeWidth:i,opacity:1,style:ne,ref:function(le){B[J]=le}})})};return s.createElement("svg",Me({className:oe("".concat(a,"-circle"),h),viewBox:"0 0 ".concat(em," ").concat(em),style:g,id:r,role:"presentation"},S),!T&&s.createElement("circle",{className:"".concat(a,"-circle-trail"),r:$,cx:C,cy:C,stroke:f,strokeLinecap:F,strokeWidth:l||i,style:L}),T?W():K())};function Ws(e){return!e||e<0?0:e>100?100:e}function Zb({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const B1e=({percent:e,success:t,successPercent:n})=>{const r=Ws(Zb({success:t,successPercent:n}));return[r,Ws(Ws(e)-r)]},z1e=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Wc.green,t||null]},w1=(e,t,n)=>{var r,a,o,i;let l=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,c=d??8):typeof e=="number"?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,c]=[e,e]:Array.isArray(e)&&(l=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,c=(i=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&i!==void 0?i:120));return[l,c]},H1e=3,V1e=e=>H1e/e*100,W1e=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:i=120,type:l,children:c,success:u,size:d=i,steps:f}=e,[m,g]=w1(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(V1e(m),6));const b={width:m,height:g,fontSize:m*.15+6},p=s.useMemo(()=>{if(o||o===0)return o;if(l==="dashboard")return 75},[o,l]),S=B1e(e),C=a||l==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",w=z1e({success:u,strokeColor:e.strokeColor}),$=oe(`${t}-inner`,{[`${t}-circle-gradient`]:x}),E=s.createElement(L1e,{steps:f,percent:f?S[1]:S,strokeWidth:h,trailWidth:h,strokeColor:f?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:p,gapPosition:C}),R=m<=20,I=s.createElement("div",{className:$,style:b},E,!R&&c);return R?s.createElement(Kn,{title:c},I):I},ey="--progress-line-stroke-color",iq="--progress-percent",d_=e=>{const t=e?"100%":"-100%";return new Cn(`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}})},K1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},wn(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(${ey})`]},height:"100%",width:`calc(1 / var(${iq}) * 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",[n]:{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 ${me(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:d_(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:d_(!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}}})}},q1e=e=>{const{componentCls:t,iconCls:n}=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%)",[n]:{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"}}}},U1e=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}}}}}},G1e=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Y1e=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),X1e=un("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=tn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[K1e(n),q1e(n),U1e(n),G1e(n)]},Y1e);var Q1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},Z1e=(e,t)=>{const{from:n=Wc.blue,to:r=Wc.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=Q1e(e,["from","to","direction"]);if(Object.keys(o).length!==0){const l=J1e(o),c=`linear-gradient(${a}, ${l})`;return{background:c,[ey]:c}}const i=`linear-gradient(${a}, ${n}, ${r})`;return{background:i,[ey]:i}},eCe=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:i,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:m,type:g}=d,h=i&&typeof i!="string"?Z1e(i,n):{[ey]:i,background:i},b=l==="square"||l==="butt"?0:void 0,p=a??[-1,o||(a==="small"?6:8)],[S,C]=w1(p,"line",{strokeWidth:o}),x={backgroundColor:u||void 0,borderRadius:b},w=Object.assign(Object.assign({width:`${Ws(r)}%`,height:C,borderRadius:b},h),{[iq]:Ws(r)/100}),$=Zb(e),E={width:`${Ws($)}%`,height:C,borderRadius:b,backgroundColor:f==null?void 0:f.strokeColor},R={width:S<0?"100%":S},I=s.createElement("div",{className:`${t}-inner`,style:x},s.createElement("div",{className:oe(`${t}-bg`,`${t}-bg-${g}`),style:w},g==="inner"&&c),$!==void 0&&s.createElement("div",{className:`${t}-success-bg`,style:E})),O=g==="outer"&&m==="start",T=g==="outer"&&m==="end";return g==="outer"&&m==="center"?s.createElement("div",{className:`${t}-layout-bottom`},I,c):s.createElement("div",{className:`${t}-outer`,style:R},O&&c,I,T&&c)},tCe=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:o=8,strokeColor:i,trailColor:l=null,prefixCls:c,children:u}=e,d=r(n*(a/100)),m=t??[t==="small"?2:14,o],[g,h]=w1(m,"step",{steps:n,strokeWidth:o}),b=g/n,p=Array.from({length:n});for(let S=0;S{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:i,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:m,style:g,percentPosition:h={}}=e,b=nCe(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:p="end",type:S="outer"}=h,C=Array.isArray(i)?i[0]:i,x=typeof i=="string"||Array.isArray(i)?i:void 0,w=s.useMemo(()=>{if(C){const K=typeof C=="string"?C:Object.values(C)[0];return new gn(K).isLight()}return!1},[i]),$=s.useMemo(()=>{var K,W;const V=Zb(e);return Number.parseInt(V!==void 0?(K=V??0)===null||K===void 0?void 0:K.toString():(W=l??0)===null||W===void 0?void 0:W.toString(),10)},[l,e.success,e.successPercent]),E=s.useMemo(()=>!rCe.includes(f)&&$>=100?"success":f||"normal",[f,$]),{getPrefixCls:R,direction:I,progress:O}=s.useContext(jt),T=R("progress",n),[N,A,k]=X1e(T),j=d==="line",D=j&&!o,F=s.useMemo(()=>{if(!u)return null;const K=Zb(e);let W;const V=m||(U=>`${U}%`),q=j&&w&&S==="inner";return S==="inner"||m||E!=="exception"&&E!=="success"?W=V(Ws(l),Ws(K)):E==="exception"?W=j?s.createElement(ul,null):s.createElement(Li,null):E==="success"&&(W=j?s.createElement(cu,null):s.createElement(t1,null)),s.createElement("span",{className:oe(`${T}-text`,{[`${T}-text-bright`]:q,[`${T}-text-${p}`]:D,[`${T}-text-${S}`]:D}),title:typeof W=="string"?W:void 0},W)},[u,l,$,E,d,T,m]);let L;d==="line"?L=o?s.createElement(tCe,Object.assign({},e,{strokeColor:x,prefixCls:T,steps:typeof o=="object"?o.count:o}),F):s.createElement(eCe,Object.assign({},e,{strokeColor:C,prefixCls:T,direction:I,percentPosition:{align:p,type:S}}),F):(d==="circle"||d==="dashboard")&&(L=s.createElement(W1e,Object.assign({},e,{strokeColor:C,prefixCls:T,progressStatus:E}),F));const B=oe(T,`${T}-status-${E}`,{[`${T}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${T}-inline-circle`]:d==="circle"&&w1(c,"circle")[0]<=20,[`${T}-line`]:D,[`${T}-line-align-${p}`]:D,[`${T}-line-position-${S}`]:D,[`${T}-steps`]:o,[`${T}-show-info`]:u,[`${T}-${c}`]:typeof c=="string",[`${T}-rtl`]:I==="rtl"},O==null?void 0:O.className,r,a,A,k);return N(s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},O==null?void 0:O.style),g),className:B,role:"progressbar","aria-valuenow":$,"aria-valuemin":0,"aria-valuemax":100},nn(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),L))});function Q0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Py(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){l=!0,o=u},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw o}}}}var aCe={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"},oCe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:aCe}))},iCe=s.forwardRef(oCe),lCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},sCe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:lCe}))},cCe=s.forwardRef(sCe);function uCe(e,t){var n=e.disabled,r=e.prefixCls,a=e.character,o=e.characterRender,i=e.index,l=e.count,c=e.value,u=e.allowHalf,d=e.focused,f=e.onHover,m=e.onClick,g=function($){f($,i)},h=function($){m($,i)},b=function($){$.keyCode===ot.ENTER&&m($,i)},p=i+1,S=new Set([r]);c===0&&i===0&&d?S.add("".concat(r,"-focused")):u&&c+.5>=p&&ci?"true":"false","aria-posinset":i+1,"aria-setsize":l,tabIndex:n?-1:0},ee.createElement("div",{className:"".concat(r,"-first")},C),ee.createElement("div",{className:"".concat(r,"-second")},C)));return o&&(x=o(x,e)),x}const dCe=ee.forwardRef(uCe);function fCe(){var e=s.useRef({});function t(r){return e.current[r]}function n(r){return function(a){e.current[r]=a}}return[t,n]}function vCe(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function mCe(e){var t,n,r=e.ownerDocument,a=r.body,o=r&&r.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=o.clientLeft||a.clientLeft||0,n-=o.clientTop||a.clientTop||0,{left:t,top:n}}function gCe(e){var t=mCe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=vCe(r),t.left}var pCe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function hCe(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,a=e.className,o=e.defaultValue,i=e.value,l=e.count,c=l===void 0?5:l,u=e.allowHalf,d=u===void 0?!1:u,f=e.allowClear,m=f===void 0?!0:f,g=e.keyboard,h=g===void 0?!0:g,b=e.character,p=b===void 0?"★":b,S=e.characterRender,C=e.disabled,x=e.direction,w=x===void 0?"ltr":x,$=e.tabIndex,E=$===void 0?0:$,R=e.autoFocus,I=e.onHoverChange,O=e.onChange,T=e.onFocus,N=e.onBlur,A=e.onKeyDown,k=e.onMouseLeave,j=Ue(e,pCe),D=fCe(),F=ce(D,2),L=F[0],B=F[1],K=ee.useRef(null),W=function(){if(!C){var Te;(Te=K.current)===null||Te===void 0||Te.focus()}};ee.useImperativeHandle(t,function(){return{focus:W,blur:function(){if(!C){var Te;(Te=K.current)===null||Te===void 0||Te.blur()}}}});var V=_t(o||0,{value:i}),q=ce(V,2),U=q[0],G=q[1],Y=_t(null),J=ce(Y,2),Q=J[0],Z=J[1],ne=function(Te,Re){var Fe=w==="rtl",je=Te+1;if(d){var Ee=L(Te),Le=gCe(Ee),Pe=Ee.clientWidth;(Fe&&Re-Le>Pe/2||!Fe&&Re-Le0&&!Fe||Re===ot.RIGHT&&U>0&&Fe?(ae(U-je),Te.preventDefault()):Re===ot.LEFT&&U{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${me(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},CCe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),SCe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),yCe(e)),CCe(e))}},xCe=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),wCe=un("Rate",e=>{const t=tn(e,{});return SCe(t)},xCe);var $Ce=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,tooltips:i,character:l=s.createElement(cCe,null),disabled:c}=e,u=$Ce(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),d=($,{index:E})=>i?s.createElement(Kn,{title:i[E]},$):$,{getPrefixCls:f,direction:m,rate:g}=s.useContext(jt),h=f("rate",n),[b,p,S]=wCe(h),C=Object.assign(Object.assign({},g==null?void 0:g.style),o),x=s.useContext(Lr),w=c??x;return b(s.createElement(bCe,Object.assign({ref:t,character:l,characterRender:d,disabled:w},u,{className:oe(r,a,p,S,g==null?void 0:g.className),style:C,prefixCls:h,direction:m})))});var ECe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},PCe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:ECe}))},OCe=s.forwardRef(PCe);const ICe=()=>s.createElement("svg",{width:"252",height:"294"},s.createElement("title",null,"No Found"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),s.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),s.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),s.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),s.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),s.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),s.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),s.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),s.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),s.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),s.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),s.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),s.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),s.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),s.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),s.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),s.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),s.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),s.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),s.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),s.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),s.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),s.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),s.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),s.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),s.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),s.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),s.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),s.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),s.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),s.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),s.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),s.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),s.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),s.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),RCe=()=>s.createElement("svg",{width:"254",height:"294"},s.createElement("title",null,"Server Error"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),s.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),s.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),s.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),s.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),s.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),s.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),s.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),s.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),s.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),s.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),s.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),s.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),s.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),s.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),s.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),s.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),s.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),s.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),s.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),s.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),s.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),s.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),s.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),s.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),s.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),s.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),s.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),s.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),s.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),s.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),s.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),s.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),s.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),s.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),s.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),s.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),s.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),s.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),s.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),MCe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:a,paddingXL:o,paddingXS:i,paddingLG:l,marginXS:c,lineHeight:u}=e;return{[t]:{padding:`${me(e.calc(l).mul(2).equal())} ${me(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${me(l)} ${me(e.calc(a).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},TCe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},NCe=e=>[MCe(e),TCe(e)],_Ce=e=>NCe(e),jCe=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),FCe=un("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,a=e.colorWarning,o=tn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:a,imageWidth:250,imageHeight:295});return[_Ce(o)]},jCe),DCe=()=>s.createElement("svg",{width:"251",height:"294"},s.createElement("title",null,"Unauthorized"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),s.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),s.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),s.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),s.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),s.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),s.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),s.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),s.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),s.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),s.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),s.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),s.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),s.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),s.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),s.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),s.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),s.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),s.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),s.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),s.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),s.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),s.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),s.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),s.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),s.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),s.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),s.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),s.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),s.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),s.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),s.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),s.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),s.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),s.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),s.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),s.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),kCe={success:cu,error:ul,info:tc,warning:OCe},Rg={404:ICe,500:RCe,403:DCe},ACe=Object.keys(Rg),LCe=({prefixCls:e,icon:t,status:n})=>{const r=oe(`${e}-icon`);if(ACe.includes(`${n}`)){const o=Rg[n];return s.createElement("div",{className:`${r} ${e}-image`},s.createElement(o,null))}const a=s.createElement(kCe[n]);return t===null||t===!1?null:s.createElement("div",{className:r},t||a)},BCe=({prefixCls:e,extra:t})=>t?s.createElement("div",{className:`${e}-extra`},t):null,$1=({prefixCls:e,className:t,rootClassName:n,subTitle:r,title:a,style:o,children:i,status:l="info",icon:c,extra:u})=>{const{getPrefixCls:d,direction:f,result:m}=s.useContext(jt),g=d("result",e),[h,b,p]=FCe(g),S=oe(g,`${g}-${l}`,t,m==null?void 0:m.className,n,{[`${g}-rtl`]:f==="rtl"},b,p),C=Object.assign(Object.assign({},m==null?void 0:m.style),o);return h(s.createElement("div",{className:S,style:C},s.createElement(LCe,{prefixCls:g,status:l,icon:c}),s.createElement("div",{className:`${g}-title`},a),r&&s.createElement("div",{className:`${g}-subtitle`},r),s.createElement(BCe,{prefixCls:g,extra:u}),i&&s.createElement("div",{className:`${g}-content`},i)))};$1.PRESENTED_IMAGE_403=Rg[403];$1.PRESENTED_IMAGE_404=Rg[404];$1.PRESENTED_IMAGE_500=Rg[500];const zCe=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:a,groupSeparator:o="",prefixCls:i}=e;let l;if(typeof n=="function")l=n(t);else{const c=String(t),u=c.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u||c==="-")l=c;else{const d=u[1];let f=u[2]||"0",m=u[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,o),typeof r=="number"&&(m=m.padEnd(r,"0").slice(0,r>0?r:0)),m&&(m=`${a}${m}`),l=[s.createElement("span",{key:"int",className:`${i}-content-value-int`},d,f),m&&s.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},m)]}}return s.createElement("span",{className:`${i}-content-value`},l)},HCe=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:a,titleFontSize:o,colorTextHeading:i,contentFontSize:l,fontFamily:c}=e;return{[t]:Object.assign(Object.assign({},wn(e)),{[`${t}-title`]:{marginBottom:n,color:a,fontSize:o},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:i,fontSize:l,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},VCe=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}},WCe=un("Statistic",e=>{const t=tn(e,{});return HCe(t)},VCe);var KCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,valueStyle:i,value:l=0,title:c,valueRender:u,prefix:d,suffix:f,loading:m=!1,formatter:g,precision:h,decimalSeparator:b=".",groupSeparator:p=",",onMouseEnter:S,onMouseLeave:C}=e,x=KCe(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:w,direction:$,className:E,style:R}=lr("statistic"),I=w("statistic",n),[O,T,N]=WCe(I),A=s.createElement(zCe,{decimalSeparator:b,groupSeparator:p,prefixCls:I,formatter:g,precision:h,value:l}),k=oe(I,{[`${I}-rtl`]:$==="rtl"},E,r,a,T,N),j=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:j.current}));const D=dr(x,{aria:!0,data:!0});return O(s.createElement("div",Object.assign({},D,{ref:j,className:k,style:Object.assign(Object.assign({},R),o),onMouseEnter:S,onMouseLeave:C}),c&&s.createElement("div",{className:`${I}-title`},c),s.createElement(ql,{paragraph:!1,loading:m,className:`${I}-skeleton`,active:!0},s.createElement("div",{style:i,className:`${I}-content`},d&&s.createElement("span",{className:`${I}-content-prefix`},d),u?u(A):A,f&&s.createElement("span",{className:`${I}-content-suffix`},f)))))}),qCe=[["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 UCe(e,t){let n=e;const r=/\[[^\]]*]/g,a=(t.match(r)||[]).map(c=>c.slice(1,-1)),o=t.replace(r,"[]"),i=qCe.reduce((c,[u,d])=>{if(c.includes(u)){const f=Math.floor(n/d);return n-=f*d,c.replace(new RegExp(`${u}+`,"g"),m=>{const g=m.length;return f.toString().padStart(g,"0")})}return c},o);let l=0;return i.replace(r,()=>{const c=a[l];return l+=1,c})}function GCe(e,t,n){const{format:r=""}=t,a=new Date(e).getTime(),o=Date.now(),i=Math.max(n?a-o:o-a,0);return UCe(i,r)}var YCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:a,type:o}=e,i=YCe(e,["value","format","onChange","onFinish","type"]),l=o==="countdown",[c,u]=s.useState(null),d=Zt(()=>{const g=Date.now(),h=XCe(t);u({});const b=l?h-g:g-h;return r==null||r(b),l&&h{let g;const h=()=>on.cancel(g),b=()=>{g=on(()=>{d()&&b()})};return b(),h},[t,l]),s.useEffect(()=>{u({})},[]);const f=(g,h)=>c?GCe(g,Object.assign(Object.assign({},h),{format:n}),l):"-",m=g=>Br(g,{title:void 0});return s.createElement(E1,Object.assign({},i,{value:t,valueRender:m,formatter:f}))},QCe=e=>s.createElement(sq,Object.assign({},e,{type:"countdown"})),JCe=s.memo(QCe);E1.Timer=sq;E1.Countdown=JCe;var ZCe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function v_(e){return typeof e=="string"}function cq(e){var t,n=e.className,r=e.prefixCls,a=e.style,o=e.active,i=e.status,l=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,m=e.title,g=e.subTitle,h=e.progressDot,b=e.stepIcon,p=e.tailContent,S=e.icons,C=e.stepIndex,x=e.onStepClick,w=e.onClick,$=e.render,E=Ue(e,ZCe),R=!!x&&!d,I={};R&&(I.role="button",I.tabIndex=0,I.onClick=function(j){w==null||w(j),x(C)},I.onKeyDown=function(j){var D=j.which;(D===ot.ENTER||D===ot.SPACE)&&x(C)});var O=function(){var D,F,L=oe("".concat(r,"-icon"),"".concat(l,"icon"),(D={},z(D,"".concat(l,"icon-").concat(c),c&&v_(c)),z(D,"".concat(l,"icon-check"),!c&&i==="finish"&&(S&&!S.finish||!S)),z(D,"".concat(l,"icon-cross"),!c&&i==="error"&&(S&&!S.error||!S)),D)),B=s.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?F=s.createElement("span",{className:"".concat(r,"-icon")},h(B,{index:u-1,status:i,title:m,description:f})):F=s.createElement("span",{className:"".concat(r,"-icon")},B):c&&!v_(c)?F=s.createElement("span",{className:"".concat(r,"-icon")},c):S&&S.finish&&i==="finish"?F=s.createElement("span",{className:"".concat(r,"-icon")},S.finish):S&&S.error&&i==="error"?F=s.createElement("span",{className:"".concat(r,"-icon")},S.error):c||i==="finish"||i==="error"?F=s.createElement("span",{className:L}):F=s.createElement("span",{className:"".concat(r,"-icon")},u),b&&(F=b({index:u-1,status:i,title:m,description:f,node:F})),F},T=i||"wait",N=oe("".concat(r,"-item"),"".concat(r,"-item-").concat(T),n,(t={},z(t,"".concat(r,"-item-custom"),c),z(t,"".concat(r,"-item-active"),o),z(t,"".concat(r,"-item-disabled"),d===!0),t)),A=P({},a),k=s.createElement("div",Me({},E,{className:N,style:A}),s.createElement("div",Me({onClick:w},I,{className:"".concat(r,"-item-container")}),s.createElement("div",{className:"".concat(r,"-item-tail")},p),s.createElement("div",{className:"".concat(r,"-item-icon")},O()),s.createElement("div",{className:"".concat(r,"-item-content")},s.createElement("div",{className:"".concat(r,"-item-title")},m,g&&s.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(r,"-item-subtitle")},g)),f&&s.createElement("div",{className:"".concat(r,"-item-description")},f))));return $&&(k=$(k)||null),k}var eSe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function A4(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,o=a===void 0?{}:a,i=e.className;e.children;var l=e.direction,c=l===void 0?"horizontal":l,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,m=f===void 0?"horizontal":f,g=e.iconPrefix,h=g===void 0?"rc":g,b=e.status,p=b===void 0?"process":b,S=e.size,C=e.current,x=C===void 0?0:C,w=e.progressDot,$=w===void 0?!1:w,E=e.stepIcon,R=e.initial,I=R===void 0?0:R,O=e.icons,T=e.onChange,N=e.itemRender,A=e.items,k=A===void 0?[]:A,j=Ue(e,eSe),D=d==="navigation",F=d==="inline",L=F||$,B=F?"horizontal":c,K=F?void 0:S,W=L?"vertical":m,V=oe(r,"".concat(r,"-").concat(B),i,(t={},z(t,"".concat(r,"-").concat(K),K),z(t,"".concat(r,"-label-").concat(W),B==="horizontal"),z(t,"".concat(r,"-dot"),!!L),z(t,"".concat(r,"-navigation"),D),z(t,"".concat(r,"-inline"),F),t)),q=function(Y){T&&x!==Y&&T(Y)},U=function(Y,J){var Q=P({},Y),Z=I+J;return p==="error"&&J===x-1&&(Q.className="".concat(r,"-next-error")),Q.status||(Z===x?Q.status=p:Z{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:a}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:a,lineHeight:me(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},nSe=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},rSe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,o=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${me(o)} ${me(e.paddingXXS)} 0`,margin:`0 ${me(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${me(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:a}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${me(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${me(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${me(e.calc(n).div(2).equal())})`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},aSe=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:a}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${me(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(a).div(2).add(e.controlHeightLG).equal()}}}}}},oSe=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:o}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},ni),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${me(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${me(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${me(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:a,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${me(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},iSe=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:o,marginXXS:i,lineWidthBold:l,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),f=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:o}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:i,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${me(d)} !important`,height:`${me(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${me(f)} !important`,height:`${me(f)} !important`}}}}},lSe=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:o,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${me(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${me(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:me(o),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(o).sub(a).div(2).equal(),width:a,height:a,lineHeight:me(a),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),top:0,insetInlineStart:e.calc(o).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${me(e.calc(o).add(e.paddingXS).equal())} 0 ${me(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(o).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(o).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},sSe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},cSe=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:o}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${me(e.marginXS)}`,fontSize:r,lineHeight:me(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:me(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:o,fontSize:a},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:me(n),transform:"none"}}}}},uSe=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:me(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${me(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${me(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${me(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${me(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:me(n)}}}}},dSe="wait",fSe="process",vSe="finish",mSe="error",wh=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,o=`${e}DescriptionColor`,i=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},gSe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,a=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none",[`&:focus-visible ${a}`]:ri(e)},[`${a}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[a]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:me(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${me(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:me(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},wh(dSe,e)),wh(fSe,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),wh(vSe,e)),wh(mSe,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},pSe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},hSe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),gSe(e)),pSe(e)),tSe(e)),cSe(e)),uSe(e)),nSe(e)),aSe(e)),lSe(e)),oSe(e)),sSe(e)),iSe(e)),rSe(e))}},bSe=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),ySe=un("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:o,colorTextDescription:i,colorTextQuaternary:l,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,f=tn(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:d,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:d,waitDotColor:t,finishIconColor:o,finishTitleColor:a,finishDescriptionColor:i,finishTailColor:o,finishDotColor:o,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:o,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:u});return hSe(f)},bSe);function CSe(e){return e.filter(t=>t)}function SSe(e,t){if(e)return e;const n=rr(t).map(r=>{if(s.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return CSe(n)}var xSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{percent:t,size:n,className:r,rootClassName:a,direction:o,items:i,responsive:l=!0,current:c=0,children:u,style:d}=e,f=xSe(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:m}=uu(l),{getPrefixCls:g,direction:h,className:b,style:p}=lr("steps"),S=s.useMemo(()=>l&&m?"vertical":o,[l,m,o]),C=$r(n),x=g("steps",e.prefixCls),[w,$,E]=ySe(x),R=e.type==="inline",I=g("",e.iconPrefix),O=SSe(i,u),T=R?void 0:t,N=Object.assign(Object.assign({},p),d),A=oe(b,{[`${x}-rtl`]:h==="rtl",[`${x}-with-progress`]:T!==void 0},r,a,$,E),k={finish:s.createElement(t1,{className:`${x}-finish-icon`}),error:s.createElement(Li,{className:`${x}-error-icon`})},j=({node:F,status:L})=>{if(L==="process"&&T!==void 0){const B=C==="small"?32:40;return s.createElement("div",{className:`${x}-progress-icon`},s.createElement(lq,{type:"circle",percent:T,size:B,strokeWidth:4,format:()=>null}),F)}return F},D=(F,L)=>F.description?s.createElement(Kn,{title:F.description},L):L;return w(s.createElement(A4,Object.assign({icons:k},f,{style:N,current:c,size:C,items:O,itemRender:R?D:void 0,stepIcon:j,direction:S,prefixCls:x,iconPrefix:I,className:A})))};aO.Step=A4.Step;var wSe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],uq=s.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,i=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,g=e.onChange,h=e.onKeyDown,b=Ue(e,wSe),p=_t(!1,{value:i,defaultValue:l}),S=ce(p,2),C=S[0],x=S[1];function w(I,O){var T=C;return c||(T=I,x(T),g==null||g(T,O)),T}function $(I){I.which===ot.LEFT?w(!1,I):I.which===ot.RIGHT&&w(!0,I),h==null||h(I)}function E(I){var O=w(!C,I);m==null||m(O,I)}var R=oe(a,o,(n={},z(n,"".concat(a,"-checked"),C),z(n,"".concat(a,"-disabled"),c),n));return s.createElement("button",Me({},b,{type:"button",role:"switch","aria-checked":C,disabled:c,className:R,ref:t,onKeyDown:$,onClick:E}),u,s.createElement("span",{className:"".concat(a,"-inner")},s.createElement("span",{className:"".concat(a,"-inner-checked")},d),s.createElement("span",{className:"".concat(a,"-inner-unchecked")},f)))});uq.displayName="Switch";const $Se=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:i,handleSizeSM:l,calc:c}=e,u=`${t}-inner`,d=me(c(l).add(c(r).mul(2)).equal()),f=me(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:me(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${me(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},ESe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},PSe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:i}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${me(i(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},OSe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:i,calc:l}=e,c=`${t}-inner`,u=me(l(i).add(l(r).mul(2)).equal()),d=me(l(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},ISe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},wn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:me(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Ga(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},RSe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,i=r/2,l=2,c=o-l*2,u=i-l*2;return{trackHeight:o,trackHeightSM:i,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:a,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new gn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},MSe=un("Switch",e=>{const t=tn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ISe(t),OSe(t),PSe(t),ESe(t),$Se(t)]},RSe);var TSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:i,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:g}=e,h=TSe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,p]=_t(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:S,direction:C,switch:x}=s.useContext(jt),w=s.useContext(Lr),$=(a??w)||o,E=S("switch",n),R=s.createElement("div",{className:`${E}-handle`},o&&s.createElement(Ya,{className:`${E}-loading-icon`})),[I,O,T]=MSe(E),N=$r(r),A=oe(x==null?void 0:x.className,{[`${E}-small`]:N==="small",[`${E}-loading`]:o,[`${E}-rtl`]:C==="rtl"},i,l,O,T),k=Object.assign(Object.assign({},x==null?void 0:x.style),c),j=(...D)=>{p(D[0]),g==null||g.apply(void 0,D)};return I(s.createElement(vg,{component:"Switch",disabled:$},s.createElement(uq,Object.assign({},h,{checked:b,onChange:j,prefixCls:E,className:A,style:k,disabled:$,ref:t,loadingIcon:R}))))}),L4=NSe;L4.__ANT_SWITCH=!0;var xs={},Mg="rc-table-internal-hook";function B4(e){var t=s.createContext(void 0),n=function(a){var o=a.value,i=a.children,l=s.useRef(o);l.current=o;var c=s.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=ce(c,1),d=u[0];return dn(function(){Ua.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(o)})})},[o]),s.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function pa(e,t){var n=Zt(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(g){m[g]=f[g]}),m}),r=s.useContext(e==null?void 0:e.Context),a=r||{},o=a.listeners,i=a.getValue,l=s.useRef();l.current=n(r?i():e==null?void 0:e.defaultValue);var c=s.useState({}),u=ce(c,2),d=u[1];return dn(function(){if(!r)return;function f(m){var g=n(m);ei(l.current,g,!0)||d({})}return o.add(f),function(){o.delete(f)}},[r]),l.current}function _Se(){var e=s.createContext(null);function t(){return s.useContext(e)}function n(a,o){var i=_i(a),l=function(u,d){var f=i?{ref:d}:{},m=s.useRef(0),g=s.useRef(u),h=t();return h!==null?s.createElement(a,Me({},u,f)):((!o||o(g.current,u))&&(m.current+=1),g.current=u,s.createElement(e.Provider,{value:m.current},s.createElement(a,Me({},u,f))))};return i?s.forwardRef(l):l}function r(a,o){var i=_i(a),l=function(u,d){var f=i?{ref:d}:{};return t(),s.createElement(a,Me({},u,f))};return i?s.memo(s.forwardRef(l),o):s.memo(l,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var z4=_Se(),dq=z4.makeImmutable,_f=z4.responseImmutable,jSe=z4.useImmutableMark,Ba=B4(),fq=s.createContext({renderWithProps:!1}),FSe="RC_TABLE_KEY";function DSe(e){return e==null?[]:Array.isArray(e)?e:[e]}function P1(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,i=a.dataIndex,l=o||DSe(i).join("-")||FSe;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function oO(e){return e!=null}function kSe(e){return typeof e=="number"&&!Number.isNaN(e)}function ASe(e){return e&&it(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function LSe(e,t,n,r,a,o){var i=s.useContext(fq),l=jSe(),c=Hl(function(){if(oO(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Un(e,u),f=d,m=void 0;if(a){var g=a(d,e,n);ASe(g)?(f=g.children,m=g.props,i.renderWithProps=!0):f=g}return[f,m]},[l,e,r,t,a,n],function(u,d){if(o){var f=ce(u,2),m=f[1],g=ce(d,2),h=g[1];return o(h,m)}return i.renderWithProps?!0:!ei(u,d,!0)});return c}function BSe(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function zSe(e,t){return pa(Ba,function(n){var r=BSe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var HSe=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():s.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function VSe(e){var t,n,r,a,o,i,l,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,g=e.prefixCls,h=e.className,b=e.align,p=e.record,S=e.render,C=e.dataIndex,x=e.renderIndex,w=e.shouldCellUpdate,$=e.index,E=e.rowType,R=e.colSpan,I=e.rowSpan,O=e.fixLeft,T=e.fixRight,N=e.firstFixLeft,A=e.lastFixLeft,k=e.firstFixRight,j=e.lastFixRight,D=e.appendNode,F=e.additionalProps,L=F===void 0?{}:F,B=e.isSticky,K="".concat(g,"-cell"),W=pa(Ba,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=W.supportSticky,q=W.allColumnsFixedLeft,U=W.rowHoverable,G=LSe(p,C,x,d,S,w),Y=ce(G,2),J=Y[0],Q=Y[1],Z={},ne=typeof O=="number"&&V,ae=typeof T=="number"&&V;ne&&(Z.position="sticky",Z.left=O),ae&&(Z.position="sticky",Z.right=T);var le=(t=(n=(r=Q==null?void 0:Q.colSpan)!==null&&r!==void 0?r:L.colSpan)!==null&&n!==void 0?n:R)!==null&&t!==void 0?t:1,re=(a=(o=(i=Q==null?void 0:Q.rowSpan)!==null&&i!==void 0?i:L.rowSpan)!==null&&o!==void 0?o:I)!==null&&a!==void 0?a:1,fe=zSe($,re),ue=ce(fe,2),de=ue[0],ie=ue[1],se=Zt(function(ye){var xe;p&&ie($,$+re-1),L==null||(xe=L.onMouseEnter)===null||xe===void 0||xe.call(L,ye)}),ve=Zt(function(ye){var xe;p&&ie(-1,-1),L==null||(xe=L.onMouseLeave)===null||xe===void 0||xe.call(L,ye)});if(le===0||re===0)return null;var he=(l=L.title)!==null&&l!==void 0?l:HSe({rowType:E,ellipsis:f,children:J}),Ce=oe(K,h,(c={},z(z(z(z(z(z(z(z(z(z(c,"".concat(K,"-fix-left"),ne&&V),"".concat(K,"-fix-left-first"),N&&V),"".concat(K,"-fix-left-last"),A&&V),"".concat(K,"-fix-left-all"),A&&q&&V),"".concat(K,"-fix-right"),ae&&V),"".concat(K,"-fix-right-first"),k&&V),"".concat(K,"-fix-right-last"),j&&V),"".concat(K,"-ellipsis"),f),"".concat(K,"-with-append"),D),"".concat(K,"-fix-sticky"),(ne||ae)&&B&&V),z(c,"".concat(K,"-row-hover"),!Q&&de)),L.className,Q==null?void 0:Q.className),pe={};b&&(pe.textAlign=b);var Se=P(P(P(P({},Q==null?void 0:Q.style),Z),pe),L.style),ge=J;return it(ge)==="object"&&!Array.isArray(ge)&&!s.isValidElement(ge)&&(ge=null),f&&(A||k)&&(ge=s.createElement("span",{className:"".concat(K,"-content")},ge)),s.createElement(u,Me({},Q,L,{className:Ce,style:Se,title:he,scope:m,onMouseEnter:U?se:void 0,onMouseLeave:U?ve:void 0,colSpan:le!==1?le:null,rowSpan:re!==1?re:null}),D,ge)}const jf=s.memo(VSe);function H4(e,t,n,r,a){var o=n[e]||{},i=n[t]||{},l,c;o.fixed==="left"?l=r.left[a==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[a==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,g=n[t+1],h=n[e-1],b=g&&!g.fixed||h&&!h.fixed||n.every(function(w){return w.fixed==="left"});if(a==="rtl"){if(l!==void 0){var p=h&&h.fixed==="left";m=!p&&b}else if(c!==void 0){var S=g&&g.fixed==="right";f=!S&&b}}else if(l!==void 0){var C=g&&g.fixed==="left";u=!C&&b}else if(c!==void 0){var x=h&&h.fixed==="right";d=!x&&b}return{fixLeft:l,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var vq=s.createContext({});function WSe(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,i=e.rowSpan,l=e.align,c=pa(Ba,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=s.useContext(vq),m=f.scrollColumnIndex,g=f.stickyOffsets,h=f.flattenColumns,b=n+o-1,p=b+1===m?o+1:o,S=H4(n,n+p-1,h,g,d);return s.createElement(jf,Me({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:p,rowSpan:i,render:function(){return r}},S))}var KSe=["children"];function qSe(e){var t=e.children,n=Ue(e,KSe);return s.createElement("tr",n,t)}function O1(e){var t=e.children;return t}O1.Row=qSe;O1.Cell=WSe;function USe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=pa(Ba,"prefixCls"),o=r.length-1,i=r[o],l=s.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?o:null}},[i,r,o,n]);return s.createElement(vq.Provider,{value:l},s.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const $h=_f(USe);var mq=O1;function GSe(e){return null}function YSe(e){return null}function gq(e,t,n,r,a,o,i){var l=o(t,i);e.push({record:t,indent:n,index:i,rowKey:l});var c=a==null?void 0:a.has(l);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?N-1:0),k=1;k5&&arguments[5]!==void 0?arguments[5]:[],l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,c=e.record,u=e.prefixCls,d=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,g=e.nestExpandable,h=e.indentSize,b=e.expandIcon,p=e.expanded,S=e.hasNestChildren,C=e.onTriggerExpand,x=e.expandable,w=e.expandedKeys,$=d[n],E=f[n],R;n===(m||0)&&g&&(R=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),b({prefixCls:u,expanded:p,expandable:S,record:c,onExpand:C})));var I=((o=t.onCell)===null||o===void 0?void 0:o.call(t,c,a))||{};if(l){var O=I.rowSpan,T=O===void 0?1:O;if(x&&T&&n=1)),style:P(P({},n),x==null?void 0:x.style)}),p.map(function(N,A){var k=N.render,j=N.dataIndex,D=N.className,F=Cq(h,N,A,u,a,l,g==null?void 0:g.offset),L=F.key,B=F.fixedInfo,K=F.appendCellNode,W=F.additionalCellProps;return s.createElement(jf,Me({className:D,ellipsis:N.ellipsis,align:N.align,scope:N.rowScope,component:N.rowScope?m:f,prefixCls:b,key:L,record:r,index:a,renderIndex:o,dataIndex:j,render:k,shouldCellUpdate:N.shouldCellUpdate},B,{appendNode:K,additionalProps:W}))})),O;if($&&(E.current||w)){var T=C(r,a,u+1,w);O=s.createElement(bq,{expanded:w,className:oe("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(u+1),R),prefixCls:b,component:d,cellComponent:f,colSpan:g?g.colSpan:p.length,stickyOffset:g==null?void 0:g.sticky,isEmpty:!1},T)}return s.createElement(s.Fragment,null,I,O)}const ZSe=_f(JSe);function exe(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,o=s.useRef();return dn(function(){o.current&&n(t,o.current.offsetWidth)},[]),s.createElement(Rr,{data:t},s.createElement("th",{ref:o,className:"".concat(r,"-measure-cell")},s.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function txe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,o=s.useRef(null),i=pa(Ba,["measureRowRender"]),l=i.measureRowRender,c=s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:o,tabIndex:-1},s.createElement(Rr.Collection,{onBatchResize:function(d){bf(o.current)&&d.forEach(function(f){var m=f.data,g=f.size;r(m,g.offsetWidth)})}},n.map(function(u){var d=a.find(function(g){return g.key===u}),f=d==null?void 0:d.title,m=s.isValidElement(f)?s.cloneElement(f,{ref:null}):f;return s.createElement(exe,{prefixCls:t,key:u,columnKey:u,onColumnResize:r,title:m})})));return l?l(c):c}function nxe(e){var t=e.data,n=e.measureColumnWidth,r=pa(Ba,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=r.prefixCls,o=r.getComponent,i=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=r.expandedRowOffset,g=m===void 0?0:m,h=r.colWidths,b=pq(t,d,u,c),p=s.useMemo(function(){return b.map(function(O){return O.rowKey})},[b]),S=s.useRef({renderWithProps:!1}),C=s.useMemo(function(){for(var O=l.length-g,T=0,N=0;N=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,g=void 0;if(f&&(m=f[gm],o==="auto"&&(g=f.minWidth)),d||g||m||c){var h=m||{};h.columnType;var b=Ue(h,ixe);i.unshift(s.createElement("col",Me({key:u,style:{width:d,minWidth:g}},b))),c=!0}}return i.length>0?s.createElement("colgroup",null,i):null}var lxe=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function sxe(e,t){return s.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:p.ellipsis,align:p.align,component:i,prefixCls:d,key:g[b]},S,{additionalProps:C,rowType:"header"}))}))};function dxe(e){var t=[];function n(i,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=l,d=i.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,h=f.children;return h&&h.length>0&&(g=n(h,u,c+1).reduce(function(b,p){return b+p},0),m.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=g,m.colEnd=m.colStart+g-1,t[c].push(m),u+=g,g});return d}n(e,0);for(var r=t.length,a=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-l)})},o=0;o1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function vxe(e,t,n){return s.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(m){var g=p_(t,m.width);g?r+=g:a+=1});var o=Math.max(t,n),i=Math.max(o-r,a),l=a,c=i/a,u=0,d=e.map(function(m){var g=P({},m),h=p_(t,g.width);if(h)g.width=h;else{var b=Math.floor(c);g.width=l===1?i:b,i-=b,l-=1}return u+=g.width,g});if(u0?P(P({},t),{},{children:xq(n)}):t})}function iO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&it(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,i=o===!0?"left":o,l="".concat(t,"-").concat(a),c=r.children;return c&&c.length>0?[].concat(ke(n),ke(iO(c,l).map(function(u){var d;return P(P({},u),{},{fixed:(d=u.fixed)!==null&&d!==void 0?d:i})}))):[].concat(ke(n),[P(P({key:l},r),{},{fixed:i})])},[])}function pxe(e){return e.map(function(t){var n=t.fixed,r=Ue(t,gxe),a=n;return n==="left"?a="right":n==="right"&&(a="left"),P({fixed:a},r)})}function hxe(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,i=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,g=e.expandedRowOffset,h=g===void 0?0:g,b=e.direction,p=e.expandRowByClick,S=e.columnWidth,C=e.fixed,x=e.scrollWidth,w=e.clientWidth,$=s.useMemo(function(){var j=r||V4(a)||[];return xq(j.slice())},[r,a]),E=s.useMemo(function(){if(o){var j=$.slice();if(!j.includes(xs)){var D=m||0,F=D===0&&C==="right"?$.length:D;F>=0&&j.splice(F,0,xs)}var L=j.indexOf(xs);j=j.filter(function(V,q){return V!==xs||q===L});var B=$[L],K;C?K=C:K=B?B.fixed:null;var W=z(z(z(z(z(z({},gm,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",K),"className","".concat(n,"-row-expand-icon-cell")),"width",S),"render",function(q,U,G){var Y=c(U,G),J=i.has(Y),Q=f?f(U):!0,Z=d({prefixCls:n,expanded:J,expandable:Q,record:U,onExpand:u});return p?s.createElement("span",{onClick:function(ae){return ae.stopPropagation()}},Z):Z});return j.map(function(V,q){var U=V===xs?W:V;return q=0;D-=1){var F=I[D].fixed;if(F==="left"||F===!0){j=D;break}}if(j>=0)for(var L=0;L<=j;L+=1){var B=I[L].fixed;if(B!=="left"&&B!==!0)return!0}var K=I.findIndex(function(q){var U=q.fixed;return U==="right"});if(K>=0)for(var W=K;W=L-l})})}})},k=function(D){C(function(F){return P(P({},F),{},{scrollLeft:f?D/f*m:0})})};return s.useImperativeHandle(n,function(){return{setScrollLeft:k,checkScrollBarVisible:A}}),s.useEffect(function(){var j=As(document.body,"mouseup",O,!1),D=As(document.body,"mousemove",N,!1);return A(),function(){j.remove(),D.remove()}},[g,E]),s.useEffect(function(){if(o.current){for(var j=[],D=cg(o.current);D;)j.push(D),D=D.parentElement;return j.forEach(function(F){return F.addEventListener("scroll",A,!1)}),window.addEventListener("resize",A,!1),window.addEventListener("scroll",A,!1),c.addEventListener("scroll",A,!1),function(){j.forEach(function(F){return F.removeEventListener("scroll",A)}),window.removeEventListener("resize",A),window.removeEventListener("scroll",A),c.removeEventListener("scroll",A)}}},[c]),s.useEffect(function(){S.isHiddenScrollBar||C(function(j){var D=o.current;return D?P(P({},j),{},{scrollLeft:D.scrollLeft/D.scrollWidth*D.clientWidth}):j})},[S.isHiddenScrollBar]),f<=m||!g||S.isHiddenScrollBar?null:s.createElement("div",{style:{height:LN(),width:m,bottom:l},className:"".concat(d,"-sticky-scroll")},s.createElement("div",{onMouseDown:T,ref:h,className:oe("".concat(d,"-sticky-scroll-bar"),z({},"".concat(d,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const Pxe=s.forwardRef(Exe);var wq="rc-table",Oxe=[],Ixe={};function Rxe(){return"No Data"}function Mxe(e,t){var n=P({rowKey:"key",prefixCls:wq,emptyText:Rxe},e),r=n.prefixCls,a=n.className,o=n.rowClassName,i=n.style,l=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,g=n.footer,h=n.summary,b=n.caption,p=n.id,S=n.showHeader,C=n.components,x=n.emptyText,w=n.onRow,$=n.onHeaderRow,E=n.measureRowRender,R=n.onScroll,I=n.internalHooks,O=n.transformColumns,T=n.internalRefs,N=n.tailor,A=n.getContainerWidth,k=n.sticky,j=n.rowHoverable,D=j===void 0?!0:j,F=l||Oxe,L=!!F.length,B=I===Mg,K=s.useCallback(function(wt,Dt){return Un(C,wt)||Dt},[C]),W=s.useMemo(function(){return typeof c=="function"?c:function(wt){var Dt=wt&&wt[c];return Dt}},[c]),V=K(["body"]),q=xxe(),U=ce(q,3),G=U[0],Y=U[1],J=U[2],Q=bxe(n,F,W),Z=ce(Q,6),ne=Z[0],ae=Z[1],le=Z[2],re=Z[3],fe=Z[4],ue=Z[5],de=u==null?void 0:u.x,ie=s.useState(0),se=ce(ie,2),ve=se[0],he=se[1],Ce=hxe(P(P(P({},n),ne),{},{expandable:!!ne.expandedRowRender,columnTitle:ne.columnTitle,expandedKeys:le,getRowKey:W,onTriggerExpand:ue,expandIcon:re,expandIconColumnIndex:ne.expandIconColumnIndex,direction:f,scrollWidth:B&&N&&typeof de=="number"?de:null,clientWidth:ve}),B?O:null),pe=ce(Ce,4),Se=pe[0],ge=pe[1],ye=pe[2],xe=pe[3],$e=ye??de,He=s.useMemo(function(){return{columns:Se,flattenColumns:ge}},[Se,ge]),Te=s.useRef(),Re=s.useRef(),Fe=s.useRef(),je=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:Te.current,scrollTo:function(Dt){var Pn;if(Fe.current instanceof HTMLElement){var An=Dt.index,ar=Dt.top,er=Dt.key;if(kSe(ar)){var Pr;(Pr=Fe.current)===null||Pr===void 0||Pr.scrollTo({top:ar})}else{var Tr,Ur=er??W(F[An]);(Tr=Fe.current.querySelector('[data-row-key="'.concat(Ur,'"]')))===null||Tr===void 0||Tr.scrollIntoView()}}else(Pn=Fe.current)!==null&&Pn!==void 0&&Pn.scrollTo&&Fe.current.scrollTo(Dt)}}});var Ee=s.useRef(),Le=s.useState(!1),Pe=ce(Le,2),ze=Pe[0],Oe=Pe[1],we=s.useState(!1),_e=ce(we,2),Be=_e[0],Qe=_e[1],lt=s.useState(new Map),Ke=ce(lt,2),et=Ke[0],st=Ke[1],Ze=P1(ge),vt=Ze.map(function(wt){return et.get(wt)}),Ot=s.useMemo(function(){return vt},[vt.join("_")]),xt=$xe(Ot,ge,f),mt=u&&oO(u.y),yt=u&&oO($e)||!!ne.fixed,bt=yt&&ge.some(function(wt){var Dt=wt.fixed;return Dt}),tt=s.useRef(),Ye=wxe(k,r),Ne=Ye.isSticky,We=Ye.offsetHeader,rt=Ye.offsetSummary,ct=Ye.offsetScroll,At=Ye.stickyClassName,pt=Ye.container,ft=s.useMemo(function(){return h==null?void 0:h(F)},[h,F]),ut=(mt||Ne)&&s.isValidElement(ft)&&ft.type===O1&&ft.props.fixed,Xt,Kt,Ut;mt&&(Kt={overflowY:L?"scroll":"auto",maxHeight:u.y}),yt&&(Xt={overflowX:"auto"},mt||(Kt={overflowY:"hidden"}),Ut={width:$e===!0?"auto":$e,minWidth:"100%"});var kt=s.useCallback(function(wt,Dt){st(function(Pn){if(Pn.get(wt)!==Dt){var An=new Map(Pn);return An.set(wt,Dt),An}return Pn})},[]),Pt=Sxe(),Lt=ce(Pt,2),nt=Lt[0],St=Lt[1];function gt(wt,Dt){Dt&&(typeof Dt=="function"?Dt(wt):Dt.scrollLeft!==wt&&(Dt.scrollLeft=wt,Dt.scrollLeft!==wt&&setTimeout(function(){Dt.scrollLeft=wt},0)))}var qe=Zt(function(wt){var Dt=wt.currentTarget,Pn=wt.scrollLeft,An=f==="rtl",ar=typeof Pn=="number"?Pn:Dt.scrollLeft,er=Dt||Ixe;if(!St()||St()===er){var Pr;nt(er),gt(ar,Re.current),gt(ar,Fe.current),gt(ar,Ee.current),gt(ar,(Pr=tt.current)===null||Pr===void 0?void 0:Pr.setScrollLeft)}var Tr=Dt||Re.current;if(Tr){var Ur=B&&N&&typeof $e=="number"?$e:Tr.scrollWidth,Oa=Tr.clientWidth;if(Ur===Oa){Oe(!1),Qe(!1);return}An?(Oe(-ar0)):(Oe(ar>0),Qe(ar1?p-j:0,F=P(P(P({},I),u),{},{flex:"0 0 ".concat(j,"px"),width:"".concat(j,"px"),marginRight:D,pointerEvents:"auto"}),L=s.useMemo(function(){return f?A<=1:T===0||A===0||A>1},[A,T,f]);L?F.visibility="hidden":f&&(F.height=m==null?void 0:m(A));var B=L?function(){return null}:g,K={};return(A===0||T===0)&&(K.rowSpan=1,K.colSpan=1),s.createElement(jf,Me({className:oe(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:w,record:c,index:o,renderIndex:l,dataIndex:h,render:B,shouldCellUpdate:n.shouldCellUpdate},$,{appendNode:E,additionalProps:P(P({},R),{},{style:F},K)}))}var jxe=["data","index","className","rowKey","style","extra","getHeight"],Fxe=s.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,i=e.style,l=e.extra,c=e.getHeight,u=Ue(e,jxe),d=n.record,f=n.indent,m=n.index,g=pa(Ba,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=g.scrollX,b=g.flattenColumns,p=g.prefixCls,S=g.fixColumn,C=g.componentWidth,x=pa(W4,["getComponent"]),w=x.getComponent,$=hq(d,o,r,f),E=w(["body","row"],"div"),R=w(["body","cell"],"div"),I=$.rowSupportExpand,O=$.expanded,T=$.rowProps,N=$.expandedRowRender,A=$.expandedRowClassName,k;if(I&&O){var j=N(d,r,f+1,O),D=yq(A,d,r,f),F={};S&&(F={style:z({},"--virtual-width","".concat(C,"px"))});var L="".concat(p,"-expanded-row-cell");k=s.createElement(E,{className:oe("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(f+1),D)},s.createElement(jf,{component:R,prefixCls:p,className:oe(L,z({},"".concat(L,"-fixed"),S)),additionalProps:F},j))}var B=P(P({},i),{},{width:h});l&&(B.position="absolute",B.pointerEvents="none");var K=s.createElement(E,Me({},T,u,{"data-row-key":o,ref:I?null:t,className:oe(a,"".concat(p,"-row"),T==null?void 0:T.className,z({},"".concat(p,"-row-extra"),l)),style:P(P({},B),T==null?void 0:T.style)}),b.map(function(W,V){return s.createElement(_xe,{key:V,component:R,rowInfo:$,column:W,colIndex:V,indent:f,index:r,renderIndex:m,record:d,inverse:l,getHeight:c})}));return I?s.createElement("div",{ref:t},K,k):K}),C_=_f(Fxe),Dxe=s.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=pa(Ba,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=a.flattenColumns,i=a.onColumnResize,l=a.getRowKey,c=a.expandedKeys,u=a.prefixCls,d=a.childrenColumnName,f=a.scrollX,m=a.direction,g=pa(W4),h=g.sticky,b=g.scrollY,p=g.listItemHeight,S=g.getComponent,C=g.onScroll,x=s.useRef(),w=pq(n,d,c,l),$=s.useMemo(function(){var k=0;return o.map(function(j){var D=j.width,F=j.minWidth,L=j.key,B=Math.max(D||0,F||0);return k+=B,[L,B,k]})},[o]),E=s.useMemo(function(){return $.map(function(k){return k[2]})},[$]);s.useEffect(function(){$.forEach(function(k){var j=ce(k,2),D=j[0],F=j[1];i(D,F)})},[$]),s.useImperativeHandle(t,function(){var k,j={scrollTo:function(F){var L;(L=x.current)===null||L===void 0||L.scrollTo(F)},nativeElement:(k=x.current)===null||k===void 0?void 0:k.nativeElement};return Object.defineProperty(j,"scrollLeft",{get:function(){var F;return((F=x.current)===null||F===void 0?void 0:F.getScrollInfo().x)||0},set:function(F){var L;(L=x.current)===null||L===void 0||L.scrollTo({left:F})}}),Object.defineProperty(j,"scrollTop",{get:function(){var F;return((F=x.current)===null||F===void 0?void 0:F.getScrollInfo().y)||0},set:function(F){var L;(L=x.current)===null||L===void 0||L.scrollTo({top:F})}}),j});var R=function(j,D){var F,L=(F=w[D])===null||F===void 0?void 0:F.record,B=j.onCell;if(B){var K,W=B(L,D);return(K=W==null?void 0:W.rowSpan)!==null&&K!==void 0?K:1}return 1},I=function(j){var D=j.start,F=j.end,L=j.getSize,B=j.offsetY;if(F<0)return null;for(var K=o.filter(function(le){return R(le,D)===0}),W=D,V=function(re){if(K=K.filter(function(fe){return R(fe,re)===0}),!K.length)return W=re,1},q=D;q>=0&&!V(q);q-=1);for(var U=o.filter(function(le){return R(le,F)!==1}),G=F,Y=function(re){if(U=U.filter(function(fe){return R(fe,re)!==1}),!U.length)return G=Math.max(re-1,F),1},J=F;J1})&&Q.push(re)},ne=W;ne<=G;ne+=1)Z(ne);var ae=Q.map(function(le){var re=w[le],fe=l(re.record,le),ue=function(se){var ve=le+se-1,he=l(w[ve].record,ve),Ce=L(fe,he);return Ce.bottom-Ce.top},de=L(fe);return s.createElement(C_,{key:le,data:re,rowKey:fe,index:le,style:{top:-B+de.top},extra:!0,getHeight:ue})});return ae},O=s.useMemo(function(){return{columnsOffset:E}},[E]),T="".concat(u,"-tbody"),N=S(["body","wrapper"]),A={};return h&&(A.position="sticky",A.bottom=0,it(h)==="object"&&h.offsetScroll&&(A.bottom=h.offsetScroll)),s.createElement(Eq.Provider,{value:O},s.createElement(e1,{fullHeight:!1,ref:x,prefixCls:"".concat(T,"-virtual"),styles:{horizontalScrollBar:A},className:T,height:b,itemHeight:p||24,data:w,itemKey:function(j){return l(j.record)},component:N,scrollWidth:f,direction:m,onVirtualScroll:function(j){var D,F=j.x;r({currentTarget:(D=x.current)===null||D===void 0?void 0:D.nativeElement,scrollLeft:F})},onScroll:C,extraRender:I},function(k,j,D){var F=l(k.record,j);return s.createElement(C_,{data:k,rowKey:F,index:j,style:D.style})}))}),kxe=_f(Dxe),Axe=function(t,n){var r=n.ref,a=n.onScroll;return s.createElement(kxe,{ref:r,data:t,onScroll:a})};function Lxe(e,t){var n=e.data,r=e.columns,a=e.scroll,o=e.sticky,i=e.prefixCls,l=i===void 0?wq:i,c=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=a||{},g=m.x,h=m.y;typeof g!="number"&&(g=1),typeof h!="number"&&(h=500);var b=Zt(function(C,x){return Un(d,C)||x}),p=Zt(f),S=s.useMemo(function(){return{sticky:o,scrollY:h,listItemHeight:u,getComponent:b,onScroll:p}},[o,h,u,b,p]);return s.createElement(W4.Provider,{value:S},s.createElement(Ff,Me({},e,{className:oe(c,"".concat(l,"-virtual")),scroll:P(P({},a),{},{x:g}),components:P(P({},d),{},{body:n!=null&&n.length?Axe:void 0}),columns:r,internalHooks:Mg,tailor:!0,ref:t})))}var Bxe=s.forwardRef(Lxe);function Pq(e){return dq(Bxe,e)}Pq();const zxe=e=>null,Hxe=e=>null;var K4=s.createContext(null),Oq=s.createContext({}),Vxe=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),l=[],c=0;c=0&&n.splice(r,1),n}function Ol(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function q4(e){return e.split("-")}function Uxe(e,t){var n=[],r=so(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var l=i.key,c=i.children;n.push(l),a(c)})}return a(r.children),n}function Gxe(e){if(e.parent){var t=q4(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Yxe(e){var t=q4(e.pos);return Number(t[t.length-1])===0}function w_(e,t,n,r,a,o,i,l,c,u){var d,f=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),h=g.top,b=g.height,p=(u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-f),S=(p-12)/r,C=c.filter(function(F){var L;return(L=l[F])===null||L===void 0||(L=L.children)===null||L===void 0?void 0:L.length}),x=so(l,n.eventKey);if(m-1.5?o({dragNode:k,dropNode:j,dropPosition:1})?T=1:D=!1:o({dragNode:k,dropNode:j,dropPosition:0})?T=0:o({dragNode:k,dropNode:j,dropPosition:1})?T=1:D=!1:o({dragNode:k,dropNode:j,dropPosition:1})?T=1:D=!1,{dropPosition:T,dropLevelOffset:N,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:O,dropContainerKey:T===0?null:((d=x.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:D}}function $_(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Dx(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(it(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Wn(!1,"`checkedKeys` is not an array or an object"),null;return t}function lO(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=so(t,a);if(o){n.add(a);var i=o.parent,l=o.node;l.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),ke(n)}const Cs={},sO="SELECT_ALL",cO="SELECT_INVERT",uO="SELECT_NONE",E_=[],Iq=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&Iq(e,r[e],n)}),n),Xxe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,getTitleCheckboxProps:i,onChange:l,onSelect:c,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:g,type:h,selections:b,fixed:p,renderCell:S,hideSelectAll:C,checkStrictly:x=!0}=t||{},{prefixCls:w,data:$,pageData:E,getRecordByKey:R,getRowKey:I,expandType:O,childrenColumnName:T,locale:N,getPopupContainer:A}=e,k=cl(),[j,D]=wne(re=>re),[F,L]=_t(r||a||E_,{value:r}),B=s.useRef(new Map),K=s.useCallback(re=>{if(n){const fe=new Map;re.forEach(ue=>{let de=R(ue);!de&&B.current.has(ue)&&(de=B.current.get(ue)),fe.set(ue,de)}),B.current=fe}},[R,n]);s.useEffect(()=>{K(F)},[F]);const W=s.useMemo(()=>Iq(T,E),[T,E]),{keyEntities:V}=s.useMemo(()=>{if(x)return{keyEntities:null};let re=$;if(n){const fe=new Set(W.map((de,ie)=>I(de,ie))),ue=Array.from(B.current).reduce((de,[ie,se])=>fe.has(ie)?de:de.concat(se),[]);re=[].concat(ke(re),ke(ue))}return Pg(re,{externalGetKey:I,childrenPropName:T})},[$,I,x,T,n,W]),q=s.useMemo(()=>{const re=new Map;return W.forEach((fe,ue)=>{const de=I(fe,ue),ie=(o?o(fe):null)||{};re.set(de,ie)}),re},[W,I,o]),U=s.useCallback(re=>{const fe=I(re);let ue;return q.has(fe)?ue=q.get(I(re)):ue=o?o(re):void 0,!!(ue!=null&&ue.disabled)},[q,I]),[G,Y]=s.useMemo(()=>{if(x)return[F||[],[]];const{checkedKeys:re,halfCheckedKeys:fe}=Zo(F,!0,V,U);return[re||[],fe]},[F,x,V,U]),J=s.useMemo(()=>{const re=h==="radio"?G.slice(0,1):G;return new Set(re)},[G,h]),Q=s.useMemo(()=>h==="radio"?new Set:new Set(Y),[Y,h]);s.useEffect(()=>{t||L(E_)},[!!t]);const Z=s.useCallback((re,fe)=>{let ue,de;K(re),n?(ue=re,de=re.map(ie=>B.current.get(ie))):(ue=[],de=[],re.forEach(ie=>{const se=R(ie);se!==void 0&&(ue.push(ie),de.push(se))})),L(ue),l==null||l(ue,de,{type:fe})},[L,R,l,n]),ne=s.useCallback((re,fe,ue,de)=>{if(c){const ie=ue.map(se=>R(se));c(R(re),fe,ie,de)}Z(ue,"single")},[c,R,Z]),ae=s.useMemo(()=>!b||C?null:(b===!0?[sO,cO,uO]:b).map(fe=>fe===sO?{key:"all",text:N.selectionAll,onSelect(){Z($.map((ue,de)=>I(ue,de)).filter(ue=>{const de=q.get(ue);return!(de!=null&&de.disabled)||J.has(ue)}),"all")}}:fe===cO?{key:"invert",text:N.selectInvert,onSelect(){const ue=new Set(J);E.forEach((ie,se)=>{const ve=I(ie,se),he=q.get(ve);he!=null&&he.disabled||(ue.has(ve)?ue.delete(ve):ue.add(ve))});const de=Array.from(ue);d&&(k.deprecated(!1,"onSelectInvert","onChange"),d(de)),Z(de,"invert")}}:fe===uO?{key:"none",text:N.selectNone,onSelect(){f==null||f(),Z(Array.from(J).filter(ue=>{const de=q.get(ue);return de==null?void 0:de.disabled}),"none")}}:fe).map(fe=>Object.assign(Object.assign({},fe),{onSelect:(...ue)=>{var de,ie;(ie=fe.onSelect)===null||ie===void 0||(de=ie).call.apply(de,[fe].concat(ue)),D(null)}})),[b,J,E,I,d,Z]);return[s.useCallback(re=>{var fe;if(!t)return re.filter(je=>je!==Cs);let ue=ke(re);const de=new Set(J),ie=W.map(I).filter(je=>!q.get(je).disabled),se=ie.every(je=>de.has(je)),ve=ie.some(je=>de.has(je)),he=()=>{const je=[];se?ie.forEach(Le=>{de.delete(Le),je.push(Le)}):ie.forEach(Le=>{de.has(Le)||(de.add(Le),je.push(Le))});const Ee=Array.from(de);u==null||u(!se,Ee.map(Le=>R(Le)),je.map(Le=>R(Le))),Z(Ee,"all"),D(null)};let Ce,pe;if(h!=="radio"){let je;if(ae){const Be={getPopupContainer:A,items:ae.map((Qe,lt)=>{const{key:Ke,text:et,onSelect:st}=Qe;return{key:Ke??lt,onClick:()=>{st==null||st(ie)},label:et}})};je=s.createElement("div",{className:`${w}-selection-extra`},s.createElement(Nf,{menu:Be,getPopupContainer:A},s.createElement("span",null,s.createElement(Ys,null))))}const Ee=W.map((Be,Qe)=>{const lt=I(Be,Qe),Ke=q.get(lt)||{};return Object.assign({checked:de.has(lt)},Ke)}).filter(({disabled:Be})=>Be),Le=!!Ee.length&&Ee.length===W.length,Pe=Le&&Ee.every(({checked:Be})=>Be),ze=Le&&Ee.some(({checked:Be})=>Be),Oe=(i==null?void 0:i())||{},{onChange:we,disabled:_e}=Oe;pe=s.createElement(Xs,Object.assign({"aria-label":je?"Custom selection":"Select all"},Oe,{checked:Le?Pe:!!W.length&&se,indeterminate:Le?!Pe&&ze:!se&&ve,onChange:Be=>{he(),we==null||we(Be)},disabled:_e??(W.length===0||Le),skipGroup:!0})),Ce=!C&&s.createElement("div",{className:`${w}-selection`},pe,je)}let Se;h==="radio"?Se=(je,Ee,Le)=>{const Pe=I(Ee,Le),ze=de.has(Pe),Oe=q.get(Pe);return{node:s.createElement(If,Object.assign({},Oe,{checked:ze,onClick:we=>{var _e;we.stopPropagation(),(_e=Oe==null?void 0:Oe.onClick)===null||_e===void 0||_e.call(Oe,we)},onChange:we=>{var _e;de.has(Pe)||ne(Pe,!0,[Pe],we.nativeEvent),(_e=Oe==null?void 0:Oe.onChange)===null||_e===void 0||_e.call(Oe,we)}})),checked:ze}}:Se=(je,Ee,Le)=>{var Pe;const ze=I(Ee,Le),Oe=de.has(ze),we=Q.has(ze),_e=q.get(ze);let Be;return O==="nest"?Be=we:Be=(Pe=_e==null?void 0:_e.indeterminate)!==null&&Pe!==void 0?Pe:we,{node:s.createElement(Xs,Object.assign({},_e,{indeterminate:Be,checked:Oe,skipGroup:!0,onClick:Qe=>{var lt;Qe.stopPropagation(),(lt=_e==null?void 0:_e.onClick)===null||lt===void 0||lt.call(_e,Qe)},onChange:Qe=>{var lt;const{nativeEvent:Ke}=Qe,{shiftKey:et}=Ke,st=ie.indexOf(ze),Ze=G.some(vt=>ie.includes(vt));if(et&&x&&Ze){const vt=j(st,ie,de),Ot=Array.from(de);m==null||m(!Oe,Ot.map(xt=>R(xt)),vt.map(xt=>R(xt))),Z(Ot,"multiple")}else{const vt=G;if(x){const Ot=Oe?Ji(vt,ze):Ol(vt,ze);ne(ze,!Oe,Ot,Ke)}else{const Ot=Zo([].concat(ke(vt),[ze]),!0,V,U),{checkedKeys:xt,halfCheckedKeys:mt}=Ot;let yt=xt;if(Oe){const bt=new Set(xt);bt.delete(ze),yt=Zo(Array.from(bt),{halfCheckedKeys:mt},V,U).checkedKeys}ne(ze,!Oe,yt,Ke)}}D(Oe?null:st),(lt=_e==null?void 0:_e.onChange)===null||lt===void 0||lt.call(_e,Qe)}})),checked:Oe}};const ge=(je,Ee,Le)=>{const{node:Pe,checked:ze}=Se(je,Ee,Le);return S?S(ze,Ee,Le,Pe):Pe};if(!ue.includes(Cs))if(ue.findIndex(je=>{var Ee;return((Ee=je[gm])===null||Ee===void 0?void 0:Ee.columnType)==="EXPAND_COLUMN"})===0){const[je,...Ee]=ue;ue=[je,Cs].concat(ke(Ee))}else ue=[Cs].concat(ke(ue));const ye=ue.indexOf(Cs);ue=ue.filter((je,Ee)=>je!==Cs||Ee===ye);const xe=ue[ye-1],$e=ue[ye+1];let He=p;He===void 0&&(($e==null?void 0:$e.fixed)!==void 0?He=$e.fixed:(xe==null?void 0:xe.fixed)!==void 0&&(He=xe.fixed)),He&&xe&&((fe=xe[gm])===null||fe===void 0?void 0:fe.columnType)==="EXPAND_COLUMN"&&xe.fixed===void 0&&(xe.fixed=He);const Te=oe(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:b&&h==="checkbox"}),Re=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(pe):t.columnTitle:Ce,Fe={fixed:He,width:g,className:`${w}-selection-column`,title:Re(),render:ge,onCell:t.onCell,align:t.align,[gm]:{className:Te}};return ue.map(je=>je===Cs?Fe:je)},[I,W,t,G,J,Q,g,ae,O,q,m,ne,U]),J]};function Qxe(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:i}=t,l=`${n}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:c=>{r(a,c),c.stopPropagation()},className:oe(l,{[`${l}-spaced`]:!i,[`${l}-expanded`]:i&&o,[`${l}-collapsed`]:i&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function Jxe(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const i=getComputedStyle(a),l=Number.parseInt(i.borderLeftWidth,10),c=Number.parseInt(i.borderRightWidth,10);o=r-l-c}return o}}const Qs=(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 Df(e,t){return t?`${t}-${e}`:`${e}`}const I1=(e,t)=>typeof e=="function"?e(t):e,Zxe=(e,t)=>{const n=I1(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var ewe={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"},twe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:ewe}))},nwe=s.forwardRef(twe),rwe=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*a;break;case 1:o.bottom=0,o.left=-r*a;break;case 0:o.bottom=0,o.left=a;break}return ee.createElement("div",{style:o})};function Rq(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function awe(e,t){var n=s.useState(!1),r=ce(n,2),a=r[0],o=r[1];dn(function(){if(a)return e(),function(){t()}},[a]),dn(function(){return o(!0),function(){o(!1)}},[])}var owe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],iwe=s.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,o=e.motionNodes,i=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=Ue(e,owe),m=s.useState(!0),g=ce(m,2),h=g[0],b=g[1],p=s.useContext(K4),S=p.prefixCls,C=o&&i!=="hide";dn(function(){o&&C!==h&&b(C)},[o]);var x=function(){o&&l()},w=s.useRef(!1),$=function(){o&&!w.current&&(w.current=!0,c())};awe(x,$);var E=function(I){C===I&&$()};return o?s.createElement(ma,Me({ref:t,visible:h},a,{motionAppear:i==="show",onVisibleChanged:E}),function(R,I){var O=R.className,T=R.style;return s.createElement("div",{ref:I,className:oe("".concat(S,"-treenode-motion"),O),style:T},o.map(function(N){var A=Object.assign({},(Rq(N.data),N.data)),k=N.title,j=N.key,D=N.isStart,F=N.isEnd;delete A.children;var L=mm(j,d);return s.createElement(Bm,Me({},A,L,{title:k,active:u,data:N.data,key:j,isStart:D,isEnd:F}))}))}):s.createElement(Bm,Me({domRef:t,className:n,style:r},f,{active:u}))});function lwe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var l=new Map;o.forEach(function(u){l.set(u,!0)});var c=i.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var dwe=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,g=e.dragOverNodeKey,h=e.dropPosition,b=e.motion,p=e.height,S=e.itemHeight,C=e.virtual,x=e.scrollWidth,w=e.focusable,$=e.activeItem,E=e.focused,R=e.tabIndex,I=e.onKeyDown,O=e.onFocus,T=e.onBlur,N=e.onActiveChange,A=e.onListChangeStart,k=e.onListChangeEnd,j=Ue(e,swe),D=s.useRef(null),F=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(Se){D.current.scrollTo(Se)},getIndentWidth:function(){return F.current.offsetWidth}}});var L=s.useState(a),B=ce(L,2),K=B[0],W=B[1],V=s.useState(r),q=ce(V,2),U=q[0],G=q[1],Y=s.useState(r),J=ce(Y,2),Q=J[0],Z=J[1],ne=s.useState([]),ae=ce(ne,2),le=ae[0],re=ae[1],fe=s.useState(null),ue=ce(fe,2),de=ue[0],ie=ue[1],se=s.useRef(r);se.current=r;function ve(){var pe=se.current;G(pe),Z(pe),re([]),ie(null),k()}dn(function(){W(a);var pe=lwe(K,a);if(pe.key!==null)if(pe.add){var Se=U.findIndex(function(Te){var Re=Te.key;return Re===pe.key}),ge=R_(P_(U,r,pe.key),C,p,S),ye=U.slice();ye.splice(Se+1,0,I_),Z(ye),re(ge),ie("show")}else{var xe=r.findIndex(function(Te){var Re=Te.key;return Re===pe.key}),$e=R_(P_(r,U,pe.key),C,p,S),He=r.slice();He.splice(xe+1,0,I_),Z(He),re($e),ie("hide")}else U!==r&&(G(r),Z(r))},[a,r]),s.useEffect(function(){m||ve()},[m]);var he=b?Q:r,Ce={expandedKeys:a,selectedKeys:o,loadedKeys:l,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:h,keyEntities:d};return s.createElement(s.Fragment,null,E&&$&&s.createElement("span",{style:O_,"aria-live":"assertive"},uwe($)),s.createElement("div",null,s.createElement("input",{style:O_,disabled:w===!1||f,tabIndex:w!==!1?R:null,onKeyDown:I,onFocus:O,onBlur:T,value:"",onChange:cwe,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(n,"-indent")},s.createElement("div",{ref:F,className:"".concat(n,"-indent-unit")}))),s.createElement(e1,Me({},j,{data:he,itemKey:M_,height:p,fullHeight:!1,virtual:C,itemHeight:S,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:D,role:"tree",onVisibleChange:function(Se){Se.every(function(ge){return M_(ge)!==eu})&&ve()}}),function(pe){var Se=pe.pos,ge=Object.assign({},(Rq(pe.data),pe.data)),ye=pe.title,xe=pe.key,$e=pe.isStart,He=pe.isEnd,Te=Eg(xe,Se);delete ge.key,delete ge.children;var Re=mm(Te,Ce);return s.createElement(iwe,Me({},ge,Re,{title:ye,active:!!$&&xe===$.key,pos:Se,data:pe.data,isStart:$e,isEnd:He,motion:b,motionNodes:xe===eu?le:null,motionType:de,onMotionStart:A,onMotionEnd:ve,treeNodeRequiredProps:Ce,onMouseMove:function(){N(null)}}))}))}),fwe=10,R1=(function(e){vo(n,e);var t=Do(n);function n(){var r;or(this,n);for(var a=arguments.length,o=new Array(a),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,g=f.dropPosition,h=f.dropTargetKey,b=f.dropTargetPos,p=f.dropAllowed;if(p){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var C=P(P({},mm(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:so(r.state.keyEntities,h).node}),x=m.includes(h);Wn(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=q4(b),$={event:l,node:Yr(C),dragNode:r.dragNodeProps?Yr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:g!==0,dropPosition:g+Number(w[w.length-1])};d||S==null||S($),r.dragNodeProps=null}}}),z(Ft(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),z(Ft(r),"triggerExpandActionExpand",function(l,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,g=c.key,h=c.isLeaf;if(!(h||l.shiftKey||l.metaKey||l.ctrlKey)){var b=f.filter(function(S){return S.key===g})[0],p=Yr(P(P({},mm(g,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(m?Ji(d,g):Ol(d,g)),r.onNodeExpand(l,p)}}),z(Ft(r),"onNodeClick",function(l,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),z(Ft(r),"onNodeDoubleClick",function(l,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),z(Ft(r),"onNodeSelect",function(l,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,g=r.props,h=g.onSelect,b=g.multiple,p=c.selected,S=c[m.key],C=!p;C?b?u=Ol(u,S):u=[S]:u=Ji(u,S);var x=u.map(function(w){var $=so(f,w);return $?$.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:C,node:c,selectedNodes:x,nativeEvent:l.nativeEvent})}),z(Ft(r),"onNodeCheck",function(l,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,g=d.halfCheckedKeys,h=r.props,b=h.checkStrictly,p=h.onCheck,S=c.key,C,x={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(b){var w=u?Ol(m,S):Ji(m,S),$=Ji(g,S);C={checked:w,halfChecked:$},x.checkedNodes=w.map(function(N){return so(f,N)}).filter(Boolean).map(function(N){return N.node}),r.setUncontrolledState({checkedKeys:w})}else{var E=Zo([].concat(ke(m),[S]),!0,f),R=E.checkedKeys,I=E.halfCheckedKeys;if(!u){var O=new Set(R);O.delete(S);var T=Zo(Array.from(O),{halfCheckedKeys:I},f);R=T.checkedKeys,I=T.halfCheckedKeys}C=R,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=I,R.forEach(function(N){var A=so(f,N);if(A){var k=A.node,j=A.pos;x.checkedNodes.push(k),x.checkedNodesPositions.push({node:k,pos:j})}}),r.setUncontrolledState({checkedKeys:R},!1,{halfCheckedKeys:I})}p==null||p(C,x)}),z(Ft(r),"onNodeLoad",function(l){var c,u=l.key,d=r.state.keyEntities,f=so(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(g,h){r.setState(function(b){var p=b.loadedKeys,S=p===void 0?[]:p,C=b.loadingKeys,x=C===void 0?[]:C,w=r.props,$=w.loadData,E=w.onLoad;if(!$||S.includes(u)||x.includes(u))return null;var R=$(l);return R.then(function(){var I=r.state.loadedKeys,O=Ol(I,u);E==null||E(O,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:O}),r.setState(function(T){return{loadingKeys:Ji(T.loadingKeys,u)}}),g()}).catch(function(I){if(r.setState(function(T){return{loadingKeys:Ji(T.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=fwe){var O=r.state.loadedKeys;Wn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ol(O,u)}),g()}h(I)}),{loadingKeys:Ol(x,u)}})});return m.catch(function(){}),m}}),z(Ft(r),"onNodeMouseEnter",function(l,c){var u=r.props.onMouseEnter;u==null||u({event:l,node:c})}),z(Ft(r),"onNodeMouseLeave",function(l,c){var u=r.props.onMouseLeave;u==null||u({event:l,node:c})}),z(Ft(r),"onNodeContextMenu",function(l,c){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),z(Ft(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(l).forEach(function(g){if(r.props.hasOwnProperty(g)){f=!1;return}d=!0,m[g]=l[g]}),d&&(!c||f)&&r.setState(P(P({},m),u))}}),z(Ft(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return ir(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,l=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:l}))}},{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,o=a.focused,i=a.flattenNodes,l=a.keyEntities,c=a.draggingNodeKey,u=a.activeKey,d=a.dropLevelOffset,f=a.dropContainerKey,m=a.dropTargetKey,g=a.dropPosition,h=a.dragOverNodeKey,b=a.indent,p=this.props,S=p.prefixCls,C=p.className,x=p.style,w=p.showLine,$=p.focusable,E=p.tabIndex,R=E===void 0?0:E,I=p.selectable,O=p.showIcon,T=p.icon,N=p.switcherIcon,A=p.draggable,k=p.checkable,j=p.checkStrictly,D=p.disabled,F=p.motion,L=p.loadData,B=p.filterTreeNode,K=p.height,W=p.itemHeight,V=p.scrollWidth,q=p.virtual,U=p.titleRender,G=p.dropIndicatorRender,Y=p.onContextMenu,J=p.onScroll,Q=p.direction,Z=p.rootClassName,ne=p.rootStyle,ae=dr(this.props,{aria:!0,data:!0}),le;A&&(it(A)==="object"?le=A:typeof A=="function"?le={nodeDraggable:A}:le={});var re={prefixCls:S,selectable:I,showIcon:O,icon:T,switcherIcon:N,draggable:le,draggingNodeKey:c,checkable:k,checkStrictly:j,disabled:D,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:g,dragOverNodeKey:h,indent:b,direction:Q,dropIndicatorRender:G,loadData:L,filterTreeNode:B,titleRender:U,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 s.createElement(K4.Provider,{value:re},s.createElement("div",{className:oe(S,C,Z,z(z(z({},"".concat(S,"-show-line"),w),"".concat(S,"-focused"),o),"".concat(S,"-active-focused"),u!==null)),style:ne},s.createElement(dwe,Me({ref:this.listRef,prefixCls:S,style:x,data:i,disabled:D,selectable:I,checkable:!!k,motion:F,dragging:c!==null,height:K,itemHeight:W,virtual:q,focusable:$,focused:o,tabIndex:R,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Y,onScroll:J,scrollWidth:V},this.getTreeNodeRequiredProps(),ae))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,l={prevProps:a};function c(R){return!i&&a.hasOwnProperty(R)||i&&i[R]!==a[R]}var u,d=o.fieldNames;if(c("fieldNames")&&(d=tf(a.fieldNames),l.fieldNames=d),c("treeData")?u=a.treeData:c("children")&&(Wn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=kW(a.children)),u){l.treeData=u;var f=Pg(u,{fieldNames:d});l.keyEntities=P(z({},eu,Mq),f.keyEntities)}var m=l.keyEntities||o.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))l.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?lO(a.expandedKeys,m):a.expandedKeys;else if(!i&&a.defaultExpandAll){var g=P({},m);delete g[eu];var h=[];Object.keys(g).forEach(function(R){var I=g[R];I.children&&I.children.length&&h.push(I.key)}),l.expandedKeys=h}else!i&&a.defaultExpandedKeys&&(l.expandedKeys=a.autoExpandParent||a.defaultExpandParent?lO(a.defaultExpandedKeys,m):a.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var b=Ex(u||o.treeData,l.expandedKeys||o.expandedKeys,d);l.flattenNodes=b}if(a.selectable&&(c("selectedKeys")?l.selectedKeys=$_(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(l.selectedKeys=$_(a.defaultSelectedKeys,a))),a.checkable){var p;if(c("checkedKeys")?p=Dx(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?p=Dx(a.defaultCheckedKeys)||{}:u&&(p=Dx(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),p){var S=p,C=S.checkedKeys,x=C===void 0?[]:C,w=S.halfCheckedKeys,$=w===void 0?[]:w;if(!a.checkStrictly){var E=Zo(x,!0,m);x=E.checkedKeys,$=E.halfCheckedKeys}l.checkedKeys=x,l.halfCheckedKeys=$}}return c("loadedKeys")&&(l.loadedKeys=a.loadedKeys),l}}]),n})(s.Component);z(R1,"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:rwe,allowDrop:function(){return!0},expandAction:!1});z(R1,"TreeNode",Bm);var vwe={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"},mwe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:vwe}))},Tq=s.forwardRef(mwe),gwe={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"},pwe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:gwe}))},hwe=s.forwardRef(pwe),bwe={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"},ywe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:bwe}))},Cwe=s.forwardRef(ywe),Swe={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"},xwe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Swe}))},wwe=s.forwardRef(xwe);const $we=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:o,controlItemBgHover:i})=>({[`${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:o},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:o,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),Ewe=new Cn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Pwe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Owe=(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:`${me(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Iwe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,indentSize:i,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},wn(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:ri(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Ewe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:me(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Pwe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).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(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Owe(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${me(t.calc(o).div(2).equal())} !important`}})}},Nq=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=tn(t,{treeCls:r,treeNodeCls:a,treeNodePadding:o});return[Iwe(e,i),n&&$we(i)].filter(Boolean)},_q=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Rwe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},_q(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Mwe=un("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:b1(`${t}-checkbox`,e)},Nq(t,e),Ay(e)],Rwe),T_=4;function Twe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,i=o==="ltr"?"left":"right",l=o==="ltr"?"right":"left",c={[i]:-n*a+T_,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=a+T_;break}return ee.createElement("div",{style:c,className:`${r}-drop-indicator`})}var Nwe={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"},_we=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Nwe}))},jwe=s.forwardRef(_we),Fwe={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"},Dwe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Fwe}))},kwe=s.forwardRef(Dwe),Awe={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"},Lwe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Awe}))},Bwe=s.forwardRef(Lwe);const jq=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:o,showLine:i,switcherLoadingIcon:l}=e,{isLeaf:c,expanded:u,loading:d}=o;if(d)return s.isValidElement(l)?l:s.createElement(Ya,{className:`${r}-switcher-loading-icon`});let f;if(i&&typeof i=="object"&&(f=i.showLeafIcon),c){if(!i)return null;if(typeof f!="boolean"&&f){const h=typeof f=="function"?f(o):f,b=`${r}-switcher-line-custom-icon`;return s.isValidElement(h)?Br(h,{className:oe((t=h.props)===null||t===void 0?void 0:t.className,b)}):h}return f?s.createElement(Tq,{className:`${r}-switcher-line-icon`}):s.createElement("span",{className:`${r}-switcher-leaf-line`})}const m=`${r}-switcher-icon`,g=typeof a=="function"?a(o):a;return s.isValidElement(g)?Br(g,{className:oe((n=g.props)===null||n===void 0?void 0:n.className,m)}):g!==void 0?g:i?u?s.createElement(kwe,{className:`${r}-switcher-line-icon`}):s.createElement(Bwe,{className:`${r}-switcher-line-icon`}):s.createElement(jwe,{className:m})},Fq=ee.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:i}=ee.useContext(jt),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:g=!1,children:h,checkable:b=!1,selectable:p=!0,draggable:S,disabled:C,motion:x,style:w}=e,$=r("tree",l),E=r(),R=ee.useContext(Lr),I=C??R,O=x??Object.assign(Object.assign({},jm(E)),{motionAppear:!1}),T=Object.assign(Object.assign({},e),{checkable:b,selectable:p,showIcon:u,motion:O,blockNode:g,disabled:I,showLine:!!d,dropIndicatorRender:Twe}),[N,A,k]=Mwe($),[,j]=qr(),D=j.paddingXS/2+(((n=j.Tree)===null||n===void 0?void 0:n.titleHeight)||j.controlHeightSM),F=ee.useMemo(()=>{if(!S)return!1;let B={};switch(typeof S){case"function":B.nodeDraggable=S;break;case"object":B=Object.assign({},S);break}return B.icon!==!1&&(B.icon=B.icon||ee.createElement(wwe,null)),B},[S]),L=B=>ee.createElement(jq,{prefixCls:$,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:B,showLine:d});return N(ee.createElement(R1,Object.assign({itemHeight:D,ref:t,virtual:o},T,{style:Object.assign(Object.assign({},i==null?void 0:i.style),w),prefixCls:$,className:oe({[`${$}-icon-hide`]:!u,[`${$}-block-node`]:g,[`${$}-unselectable`]:!p,[`${$}-rtl`]:a==="rtl",[`${$}-disabled`]:I},i==null?void 0:i.className,c,A,k),direction:a,checkable:b&&ee.createElement("span",{className:`${$}-checkbox-inner`}),selectable:p,switcherIcon:L,draggable:F}),h))}),N_=0,kx=1,__=2;function U4(e,t,n){const{key:r,children:a}=n;function o(i){const l=i[r],c=i[a];t(l,i)!==!1&&U4(c||[],t,n)}e.forEach(o)}function zwe({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const o=[];let i=N_;if(n&&n===r)return[n];if(!n||!r)return[];function l(c){return c===n||c===r}return U4(e,c=>{if(i===__)return!1;if(l(c)){if(o.push(c),i===N_)i=kx;else if(i===kx)return i=__,!1}else i===kx&&o.push(c);return t.includes(c)},tf(a)),o}function Ax(e,t,n){const r=ke(t),a=[];return U4(e,(o,i)=>{const l=r.indexOf(o);return l!==-1&&(a.push(i),r.splice(l,1)),!!r.length},tf(n)),a}var j_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=j_(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=s.useRef(null),l=s.useRef(null),c=()=>{const{keyEntities:I}=Pg(F_(o),{fieldNames:o.fieldNames});let O;return n?O=Object.keys(I):r?O=lO(o.expandedKeys||a||[],I):O=o.expandedKeys||a||[],O},[u,d]=s.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[f,m]=s.useState(()=>c());s.useEffect(()=>{"selectedKeys"in o&&d(o.selectedKeys)},[o.selectedKeys]),s.useEffect(()=>{"expandedKeys"in o&&m(o.expandedKeys)},[o.expandedKeys]);const g=(I,O)=>{var T;return"expandedKeys"in o||m(I),(T=o.onExpand)===null||T===void 0?void 0:T.call(o,I,O)},h=(I,O)=>{var T;const{multiple:N,fieldNames:A}=o,{node:k,nativeEvent:j}=O,{key:D=""}=k,F=F_(o),L=Object.assign(Object.assign({},O),{selected:!0}),B=(j==null?void 0:j.ctrlKey)||(j==null?void 0:j.metaKey),K=j==null?void 0:j.shiftKey;let W;N&&B?(W=I,i.current=D,l.current=W,L.selectedNodes=Ax(F,W,A)):N&&K?(W=Array.from(new Set([].concat(ke(l.current||[]),ke(zwe({treeData:F,expandedKeys:f,startKey:D,endKey:i.current,fieldNames:A}))))),L.selectedNodes=Ax(F,W,A)):(W=[D],i.current=D,l.current=W,L.selectedNodes=Ax(F,W,A)),(T=o.onSelect)===null||T===void 0||T.call(o,W,L),"selectedKeys"in o||d(W)},{getPrefixCls:b,direction:p}=s.useContext(jt),{prefixCls:S,className:C,showIcon:x=!0,expandAction:w="click"}=o,$=j_(o,["prefixCls","className","showIcon","expandAction"]),E=b("tree",S),R=oe(`${E}-directory`,{[`${E}-directory-rtl`]:p==="rtl"},C);return s.createElement(Fq,Object.assign({icon:Hwe,ref:t,blockNode:!0},$,{showIcon:x,expandAction:w,prefixCls:E,className:R,expandedKeys:f,selectedKeys:u,onSelect:h,onExpand:g}))},Wwe=s.forwardRef(Vwe),M1=Fq;M1.DirectoryTree=Wwe;M1.TreeNode=Bm;const D_=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?s.createElement("div",{className:`${r}-filter-dropdown-search`},s.createElement(Tf,{prefix:s.createElement(n1,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Kwe=e=>{const{keyCode:t}=e;t===ot.ENTER&&e.stopPropagation()},qwe=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Kwe,ref:t},e.children));function Pd(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(ke(t),ke(Pd(r))))}),t}function Uwe(e){return e.some(({children:t})=>t)}function Dq(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function kq({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:o}){return e.map((i,l)=>{const c=String(i.value);if(i.children)return{key:c||l,label:i.text,popupClassName:`${t}-dropdown-submenu`,children:kq({filters:i.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:o})};const u=r?Xs:If,d={key:i.value!==void 0?c:l,label:s.createElement(s.Fragment,null,s.createElement(u,{checked:n.includes(c)}),s.createElement("span",null,i.text))};return a.trim()?typeof o=="function"?o(a,i)?d:null:Dq(a,i.text)?d:null:d})}function Lx(e){return e||[]}const Gwe=e=>{var t,n,r,a;const{tablePrefixCls:o,prefixCls:i,column:l,dropdownPrefixCls:c,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:g=!1,filterState:h,triggerFilter:b,locale:p,children:S,getPopupContainer:C,rootClassName:x}=e,{filterResetToDefaultFilteredValue:w,defaultFilteredValue:$,filterDropdownProps:E={},filterDropdownOpen:R,filterDropdownVisible:I,onFilterDropdownVisibleChange:O,onFilterDropdownOpenChange:T}=l,[N,A]=s.useState(!1),k=!!(h&&(!((t=h.filteredKeys)===null||t===void 0)&&t.length||h.forceFiltered)),j=pe=>{var Se;A(pe),(Se=E.onOpenChange)===null||Se===void 0||Se.call(E,pe),T==null||T(pe),O==null||O(pe)},D=(a=(r=(n=E.open)!==null&&n!==void 0?n:R)!==null&&r!==void 0?r:I)!==null&&a!==void 0?a:N,F=h==null?void 0:h.filteredKeys,[L,B]=One(Lx(F)),K=({selectedKeys:pe})=>{B(pe)},W=(pe,{node:Se,checked:ge})=>{K(f?{selectedKeys:pe}:{selectedKeys:ge&&Se.key?[Se.key]:[]})};s.useEffect(()=>{N&&K({selectedKeys:Lx(F)})},[F]);const[V,q]=s.useState([]),U=pe=>{q(pe)},[G,Y]=s.useState(""),J=pe=>{const{value:Se}=pe.target;Y(Se)};s.useEffect(()=>{N||Y("")},[N]);const Q=pe=>{const Se=pe!=null&&pe.length?pe:null;if(Se===null&&(!h||!h.filteredKeys)||ei(Se,h==null?void 0:h.filteredKeys,!0))return null;b({column:l,key:u,filteredKeys:Se})},Z=()=>{j(!1),Q(L())},ne=({confirm:pe,closeDropdown:Se}={confirm:!1,closeDropdown:!1})=>{pe&&Q([]),Se&&j(!1),Y(""),B(w?($||[]).map(ge=>String(ge)):[])},ae=({closeDropdown:pe}={closeDropdown:!0})=>{pe&&j(!1),Q(L())},le=(pe,Se)=>{Se.source==="trigger"&&(pe&&F!==void 0&&B(Lx(F)),j(pe),!pe&&!l.filterDropdown&&d&&Z())},re=oe({[`${c}-menu-without-submenu`]:!Uwe(l.filters||[])}),fe=pe=>{if(pe.target.checked){const Se=Pd(l==null?void 0:l.filters).map(ge=>String(ge));B(Se)}else B([])},ue=({filters:pe})=>(pe||[]).map((Se,ge)=>{const ye=String(Se.value),xe={title:Se.text,key:Se.value!==void 0?ye:String(ge)};return Se.children&&(xe.children=ue({filters:Se.children})),xe}),de=pe=>{var Se;return Object.assign(Object.assign({},pe),{text:pe.title,value:pe.key,children:((Se=pe.children)===null||Se===void 0?void 0:Se.map(ge=>de(ge)))||[]})};let ie;const{direction:se,renderEmpty:ve}=s.useContext(jt);if(typeof l.filterDropdown=="function")ie=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:pe=>K({selectedKeys:pe}),selectedKeys:L(),confirm:ae,clearFilters:ne,filters:l.filters,visible:D,close:()=>{j(!1)}});else if(l.filterDropdown)ie=l.filterDropdown;else{const pe=L()||[],Se=()=>{var ye,xe;const $e=(ye=ve==null?void 0:ve("Table.filter"))!==null&&ye!==void 0?ye:s.createElement(xa,{image:xa.PRESENTED_IMAGE_SIMPLE,description:p.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((l.filters||[]).length===0)return $e;if(m==="tree")return s.createElement(s.Fragment,null,s.createElement(D_,{filterSearch:g,value:G,onChange:J,tablePrefixCls:o,locale:p}),s.createElement("div",{className:`${o}-filter-dropdown-tree`},f?s.createElement(Xs,{checked:pe.length===Pd(l.filters).length,indeterminate:pe.length>0&&pe.lengthtypeof g=="function"?g(G,de(Re)):Dq(G,Re.title):void 0})));const He=kq({filters:l.filters||[],filterSearch:g,prefixCls:i,filteredKeys:L(),filterMultiple:f,searchValue:G}),Te=He.every(Re=>Re===null);return s.createElement(s.Fragment,null,s.createElement(D_,{filterSearch:g,value:G,onChange:J,tablePrefixCls:o,locale:p}),Te?$e:s.createElement(Yl,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:re,onSelect:K,onDeselect:K,selectedKeys:pe,getPopupContainer:C,openKeys:V,onOpenChange:U,items:He}))},ge=()=>w?ei(($||[]).map(ye=>String(ye)),pe,!0):pe.length===0;ie=s.createElement(s.Fragment,null,Se(),s.createElement("div",{className:`${i}-dropdown-btns`},s.createElement(jn,{type:"link",size:"small",disabled:ge(),onClick:()=>ne()},p.filterReset),s.createElement(jn,{type:"primary",size:"small",onClick:Z},p.filterConfirm)))}l.filterDropdown&&(ie=s.createElement(xV,{selectable:void 0},ie)),ie=s.createElement(qwe,{className:`${i}-dropdown`},ie);const Ce=Lb({trigger:["click"],placement:se==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let pe;return typeof l.filterIcon=="function"?pe=l.filterIcon(k):l.filterIcon?pe=l.filterIcon:pe=s.createElement(nwe,null),s.createElement("span",{role:"button",tabIndex:-1,className:oe(`${i}-trigger`,{active:k}),onClick:Se=>{Se.stopPropagation()}},pe)})(),getPopupContainer:C},Object.assign(Object.assign({},E),{rootClassName:oe(x,E.rootClassName),open:D,onOpenChange:le,popupRender:()=>typeof(E==null?void 0:E.dropdownRender)=="function"?E.dropdownRender(ie):ie}));return s.createElement("div",{className:`${i}-column`},s.createElement("span",{className:`${o}-column-title`},S),s.createElement(Nf,Object.assign({},Ce)))},fO=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var i;const l=Df(o,n),c=a.filterDropdown!==void 0;if(a.filters||c||"onFilter"in a)if("filteredValue"in a){let u=a.filteredValue;c||(u=(i=u==null?void 0:u.map(String))!==null&&i!==void 0?i:u),r.push({column:a,key:Qs(a,l),filteredKeys:u,forceFiltered:a.filtered})}else r.push({column:a,key:Qs(a,l),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(ke(r),ke(fO(a.children,t,l))))}),r};function Aq(e,t,n,r,a,o,i,l,c){return n.map((u,d)=>{const f=Df(d,l),{filterOnClose:m=!0,filterMultiple:g=!0,filterMode:h,filterSearch:b}=u;let p=u;if(p.filters||p.filterDropdown){const S=Qs(p,f),C=r.find(({key:x})=>S===x);p=Object.assign(Object.assign({},p),{title:x=>s.createElement(Gwe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:p,columnKey:S,filterState:C,filterOnClose:m,filterMultiple:g,filterMode:h,filterSearch:b,triggerFilter:o,locale:a,getPopupContainer:i,rootClassName:c},I1(u.title,x))})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:Aq(e,t,p.children,r,a,o,i,f,c)})),p})}const k_=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:a})=>{const o=n,{filters:i,filterDropdown:l}=a;if(l)t[o]=r||null;else if(Array.isArray(r)){const c=Pd(i);t[o]=c.filter(u=>r.includes(String(u)))}else t[o]=null}),t},vO=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:i,filters:l},filteredKeys:c}=o;return i&&c&&c.length?a.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=Pd(l),m=f.findIndex(h=>String(h)===String(d)),g=m!==-1?f[m]:d;return u[n]&&(u[n]=vO(u[n],t,n)),i(g,u)})):a},e),Lq=e=>e.flatMap(t=>"children"in t?[t].concat(ke(Lq(t.children||[]))):[t]),Ywe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:i,rootClassName:l}=e;cl();const c=s.useMemo(()=>Lq(r||[]),[r]),[u,d]=s.useState(()=>fO(c,!0)),f=s.useMemo(()=>{const b=fO(c,!1);if(b.length===0)return b;let p=!0;if(b.forEach(({filteredKeys:S})=>{S!==void 0&&(p=!1)}),p){const S=(c||[]).map((C,x)=>Qs(C,Df(x)));return u.filter(({key:C})=>S.includes(C)).map(C=>{const x=c[S.indexOf(C.key)];return Object.assign(Object.assign({},C),{column:Object.assign(Object.assign({},C.column),x),forceFiltered:x.filtered})})}return b},[c,u]),m=s.useMemo(()=>k_(f),[f]),g=b=>{const p=f.filter(({key:S})=>S!==b.key);p.push(b),d(p),a(k_(p),p)};return[b=>Aq(t,n,b,f,i,g,o,void 0,l),f,m]},Bq=(e,t,n)=>{const r=s.useRef({});function a(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,m)=>{const g=n(f,m);c.set(g,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var l=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(o)}return[a]};var Xwe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function Jwe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=Xwe(r,["total"]),[i,l]=s.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:zq})),c=Lb(i,o,{total:a>0?a:e}),u=Math.ceil((a||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,g)=>{l({current:m??1,pageSize:g||c.pageSize})},f=(m,g)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,m,g)),d(m,g),t(m,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var Zwe={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"},e2e=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Zwe}))},t2e=s.forwardRef(e2e),n2e={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"},r2e=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:n2e}))},a2e=s.forwardRef(r2e);const J0="ascend",Bx="descend",ty=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,A_=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,o2e=(e,t)=>t?e[e.indexOf(t)+1]:e[0],mO=(e,t,n)=>{let r=[];const a=(o,i)=>{r.push({column:o,key:Qs(o,i),multiplePriority:ty(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,i)=>{const l=Df(i,n);o.children?("sortOrder"in o&&a(o,l),r=[].concat(ke(r),ke(mO(o.children,t,l)))):o.sorter&&("sortOrder"in o?a(o,l):t&&o.defaultSortOrder&&r.push({column:o,key:Qs(o,l),multiplePriority:ty(o),sortOrder:o.defaultSortOrder}))}),r},Hq=(e,t,n,r,a,o,i,l)=>(t||[]).map((u,d)=>{const f=Df(d,l);let m=u;if(m.sorter){const g=m.sortDirections||a,h=m.showSorterTooltip===void 0?i:m.showSorterTooltip,b=Qs(m,f),p=n.find(({key:O})=>O===b),S=p?p.sortOrder:null,C=o2e(g,S);let x;if(u.sortIcon)x=u.sortIcon({sortOrder:S});else{const O=g.includes(J0)&&s.createElement(a2e,{className:oe(`${e}-column-sorter-up`,{active:S===J0})}),T=g.includes(Bx)&&s.createElement(t2e,{className:oe(`${e}-column-sorter-down`,{active:S===Bx})});x=s.createElement("span",{className:oe(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(O&&T)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},O,T))}const{cancelSort:w,triggerAsc:$,triggerDesc:E}=o||{};let R=w;C===Bx?R=E:C===J0&&(R=$);const I=typeof h=="object"?Object.assign({title:R},h):{title:R};m=Object.assign(Object.assign({},m),{className:oe(m.className,{[`${e}-column-sort`]:S}),title:O=>{const T=`${e}-column-sorters`,N=s.createElement("span",{className:`${e}-column-title`},I1(u.title,O)),A=s.createElement("div",{className:T},N,x);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?s.createElement("div",{className:oe(T,`${T}-tooltip-target-sorter`)},N,s.createElement(Kn,Object.assign({},I),x)):s.createElement(Kn,Object.assign({},I),A):A},onHeaderCell:O=>{var T;const N=((T=u.onHeaderCell)===null||T===void 0?void 0:T.call(u,O))||{},A=N.onClick,k=N.onKeyDown;N.onClick=F=>{r({column:u,key:b,sortOrder:C,multiplePriority:ty(u)}),A==null||A(F)},N.onKeyDown=F=>{F.keyCode===ot.ENTER&&(r({column:u,key:b,sortOrder:C,multiplePriority:ty(u)}),k==null||k(F))};const j=Zxe(u.title,{}),D=j==null?void 0:j.toString();return S&&(N["aria-sort"]=S==="ascend"?"ascending":"descending"),N["aria-label"]=D||"",N.className=oe(N.className,`${e}-column-has-sorters`),N.tabIndex=0,u.ellipsis&&(N.title=(j??"").toString()),N}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Hq(e,m.children,n,r,a,o,i,f)})),m}),L_=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},B_=e=>{const t=e.filter(({sortOrder:n})=>n).map(L_);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},L_(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},gO=(e,t,n)=>{const r=t.slice().sort((i,l)=>l.multiplePriority-i.multiplePriority),a=e.slice(),o=r.filter(({column:{sorter:i},sortOrder:l})=>A_(i)&&l);return o.length?a.sort((i,l)=>{for(let c=0;c{const l=i[n];return l?Object.assign(Object.assign({},i),{[n]:gO(l,t,n)}):i}):a},i2e=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:i}=e,[l,c]=s.useState(()=>mO(n,!0)),u=(b,p)=>{const S=[];return b.forEach((C,x)=>{const w=Df(x,p);if(S.push(Qs(C,w)),Array.isArray(C.children)){const $=u(C.children,w);S.push.apply(S,ke($))}}),S},d=s.useMemo(()=>{let b=!0;const p=mO(n,!1);if(!p.length){const w=u(n);return l.filter(({key:$})=>w.includes($))}const S=[];function C(w){b?S.push(w):S.push(Object.assign(Object.assign({},w),{sortOrder:null}))}let x=null;return p.forEach(w=>{x===null?(C(w),w.sortOrder&&(w.multiplePriority===!1?b=!1:x=!0)):(x&&w.multiplePriority!==!1||(b=!1),C(w))}),S},[n,l]),f=s.useMemo(()=>{var b,p;const S=d.map(({column:C,sortOrder:x})=>({column:C,order:x}));return{sortColumns:S,sortColumn:(b=S[0])===null||b===void 0?void 0:b.column,sortOrder:(p=S[0])===null||p===void 0?void 0:p.order}},[d]),m=b=>{let p;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?p=[b]:p=[].concat(ke(d.filter(({key:S})=>S!==b.key)),[b]),c(p),i(B_(p),p)};return[b=>Hq(t,b,d,m,r,a,o),d,f,()=>B_(d)]},Vq=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=I1(r.title,t),"children"in a&&(a.children=Vq(a.children,t)),a}),l2e=e=>[s.useCallback(n=>Vq(n,e),[e])],s2e=$q((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),c2e=Pq((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),u2e=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:c}=e,u=`${me(n)} ${r} ${a}`,d=(f,m,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${me(c(m).mul(-1).equal())} + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:me(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:`${me(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:me(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},$g(e)),I4(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},w1(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},u1e=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:me(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${me(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${me(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}}}}},d1e=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$n(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:me(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),u1e(e)),c1e(e)),s1e(e)),l1e(e)),i1e(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"}}},f1e=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ga(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ai(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ai(e)}}}},pq=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},gu(e)),hq=e=>en(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"},mu(e)),v1e=dn("Pagination",e=>{const t=hq(e);return[d1e(t),f1e(t)]},pq),m1e=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:`${me(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}}}}},g1e=hf(["Pagination","bordered"],e=>{const t=hq(e);return m1e(t)},pq);function h_(e){return s.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var p1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:i,size:l,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,g=p1e(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=du(u),[,b]=Ur(),{getPrefixCls:p,direction:S,showSizeChanger:C,className:x,style:w}=sr("pagination"),$=p("pagination",n),[E,R,I]=v1e($),O=Er(l),T=O==="small"||!!(h&&!O&&u),[_]=Ea("Pagination",L9),k=Object.assign(Object.assign({},_),c),[A,j]=h_(d),[D,F]=h_(C),L=A??D,B=j??F,K=f||li,W=s.useMemo(()=>m?m.map(J=>Number(J)):void 0,[m]),V=J=>{var Q;const{disabled:Z,size:ne,onSizeChange:ae,"aria-label":le,className:re,options:fe}=J,{className:ue,onChange:de}=B||{},ie=(Q=fe.find(se=>String(se.value)===String(ne)))===null||Q===void 0?void 0:Q.value;return s.createElement(K,Object.assign({disabled:Z,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:se=>se.parentNode,"aria-label":le,options:fe},B,{value:ie,onChange:(se,ve)=>{ae==null||ae(se),de==null||de(se,ve)},size:T?"small":"middle",className:oe(re,ue)}))},q=s.useMemo(()=>{const J=s.createElement("span",{className:`${$}-item-ellipsis`},"•••"),Q=s.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},S==="rtl"?s.createElement(oi,null):s.createElement(Wl,null)),Z=s.createElement("button",{className:`${$}-item-link`,type:"button",tabIndex:-1},S==="rtl"?s.createElement(Wl,null):s.createElement(oi,null)),ne=s.createElement("a",{className:`${$}-item-link`},s.createElement("div",{className:`${$}-item-container`},S==="rtl"?s.createElement(m_,{className:`${$}-item-link-icon`}):s.createElement(v_,{className:`${$}-item-link-icon`}),J)),ae=s.createElement("a",{className:`${$}-item-link`},s.createElement("div",{className:`${$}-item-container`},S==="rtl"?s.createElement(v_,{className:`${$}-item-link-icon`}):s.createElement(m_,{className:`${$}-item-link-icon`}),J));return{prevIcon:Q,nextIcon:Z,jumpPrevIcon:ne,jumpNextIcon:ae}},[S,$]),U=p("select",r),G=oe({[`${$}-${t}`]:!!t,[`${$}-mini`]:T,[`${$}-rtl`]:S==="rtl",[`${$}-bordered`]:b.wireframe},x,a,o,R,I),Y=Object.assign(Object.assign({},w),i);return E(s.createElement(s.Fragment,null,b.wireframe&&s.createElement(g1e,{prefixCls:$}),s.createElement(o1e,Object.assign({},q,g,{style:Y,prefixCls:$,selectPrefixCls:U,className:G,locale:k,pageSizeOptions:W,showSizeChanger:L,sizeChangerRender:V}))))},ny=100,bq=ny/5,yq=ny/2-bq/2,Vx=yq*2*Math.PI,b_=50,y_=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return s.createElement("circle",{className:oe(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:yq,cx:b_,cy:b_,strokeWidth:bq,style:n})},b1e=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[o,i]=s.useState(!1);fn(()=>{e!==0&&i(!0)},[e!==0]);const l=Math.max(Math.min(e,100),0);if(!o)return null;const c={strokeDashoffset:`${Vx/4}`,strokeDasharray:`${Vx*l/100} ${Vx*(100-l)/100}`};return s.createElement("span",{className:oe(r,`${n}-progress`,l<=0&&a)},s.createElement("svg",{viewBox:`0 0 ${ny} ${ny}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},s.createElement(y_,{dotClassName:n,hasCircleCls:!0}),s.createElement(y_,{dotClassName:n,style:c})))};function y1e(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return s.createElement(s.Fragment,null,s.createElement("span",{className:oe(a,n>0&&o)},s.createElement("span",{className:oe(r,`${t}-dot-spin`)},[1,2,3,4].map(i=>s.createElement("i",{className:`${t}-dot-item`,key:i})))),s.createElement(b1e,{prefixCls:t,percent:n}))}function C1e(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,o=`${n}-dot`;return r&&s.isValidElement(r)?zr(r,{className:oe((t=r.props)===null||t===void 0?void 0:t.className,o),percent:a}):s.createElement(y1e,{prefixCls:n,percent:a})}const S1e=new Sn("antSpinMove",{to:{opacity:1}}),x1e=new Sn("antRotate",{to:{transform:"rotate(405deg)"}}),w1e=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},$n(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:n(n(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:n(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:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(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:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:S1e,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:x1e,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},$1e=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},E1e=dn("Spin",e=>{const t=en(e,{spinDotDefault:e.colorTextDescription});return w1e(t)},$1e),P1e=200,C_=[[30,.05],[70,.03],[96,.01]];function O1e(e,t){const[n,r]=s.useState(0),a=s.useRef(null),o=t==="auto";return s.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(i=>{const l=100-i;for(let c=0;c{a.current&&(clearInterval(a.current),a.current=null)}),[o,e]),o?n:t}var I1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:i,size:l="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:g,percent:h}=e,b=I1e(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:p,direction:S,className:C,style:x,indicator:w}=sr("spin"),$=p("spin",n),[E,R,I]=E1e($),[O,T]=s.useState(()=>r&&!R1e(r,a)),_=O1e(O,h);s.useEffect(()=>{if(r){const B=ige(a,()=>{T(!0)});return B(),()=>{var K;(K=B==null?void 0:B.cancel)===null||K===void 0||K.call(B)}}T(!1)},[a,r]);const k=s.useMemo(()=>typeof f<"u"&&!m,[f,m]),A=oe($,C,{[`${$}-sm`]:l==="small",[`${$}-lg`]:l==="large",[`${$}-spinning`]:O,[`${$}-show-text`]:!!c,[`${$}-rtl`]:S==="rtl"},o,!m&&i,R,I),j=oe(`${$}-container`,{[`${$}-blur`]:O}),D=(t=g??w)!==null&&t!==void 0?t:Cq,F=Object.assign(Object.assign({},x),d),L=s.createElement("div",Object.assign({},b,{style:F,className:A,"aria-live":"polite","aria-busy":O}),s.createElement(C1e,{prefixCls:$,indicator:D,percent:_}),c&&(k||m)?s.createElement("div",{className:`${$}-text`},c):null);return E(k?s.createElement("div",Object.assign({},b,{className:oe(`${$}-nested-loading`,u,R,I)}),O&&s.createElement("div",{key:"loading"},L),s.createElement("div",{className:j,key:"container"},f)):m?s.createElement("div",{className:oe(`${$}-fullscreen`,{[`${$}-fullscreen-show`]:O},i,R,I)},L):L)};vi.setDefaultIndicator=e=>{Cq=e};const M1e=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let Qo=null,Mc=e=>e(),Am=[],Lm={};function S_(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=Lm,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const T1e=ee.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=s.useContext(jt),o=Lm.prefixCls||a("message"),i=s.useContext(WP),[l,c]=Nz(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),i.message));return ee.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=(...f)=>(r(),l[d].apply(l,f))}),{instance:u,sync:r}}),c}),N1e=ee.forwardRef((e,t)=>{const[n,r]=ee.useState(S_),a=()=>{r(S_)};ee.useEffect(a,[]);const o=pz(),i=o.getRootPrefixCls(),l=o.getIconPrefixCls(),c=o.getTheme(),u=ee.createElement(T1e,{ref:t,sync:a,messageConfig:n});return ee.createElement(Rt,{prefixCls:i,iconPrefixCls:l,theme:c},o.holderRender?o.holderRender(u):u)}),R1=()=>{if(!Qo){const e=document.createDocumentFragment(),t={fragment:e};Qo=t,Mc(()=>{BR()(ee.createElement(N1e,{ref:r=>{const{instance:a,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=o,R1())})}}),e)});return}Qo.instance&&(Am.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Mc(()=>{const r=Qo.instance.open(Object.assign(Object.assign({},Lm),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Mc(()=>{Qo==null||Qo.instance.destroy(e.key)});break;default:Mc(()=>{var r;const a=(r=Qo.instance)[t].apply(r,ke(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),Am=[])};function _1e(e){Lm=Object.assign(Object.assign({},Lm),e),Mc(()=>{var t;(t=Qo==null?void 0:Qo.sync)===null||t===void 0||t.call(Qo)})}function j1e(e){const t=AR(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return Am.push(a),()=>{r?Mc(()=>{r()}):a.skipped=!0}});return R1(),t}function F1e(e,t){const n=AR(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:i=>{a=i}};return Am.push(o),()=>{a?Mc(()=>{a()}):o.skipped=!0}});return R1(),n}const D1e=e=>{Am.push({type:"destroy",key:e}),R1()},k1e=["success","info","warning","error","loading"],A1e={open:j1e,destroy:D1e,config:_1e,useMessage:_z,_InternalPanelDoNotUseOrYouWillBeFired:Qne},Jo=A1e;k1e.forEach(e=>{Jo[e]=(...t)=>F1e(e,t)});var L1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:i,children:l,footer:c}=e,u=L1e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=s.useContext(jt),f=d(),m=t||d("modal"),g=Yn(f),[h,b,p]=EH(m,g),S=`${m}-confirm`;let C={};return o?C={closable:a??!1,title:"",footer:"",children:s.createElement(OH,Object.assign({},e,{prefixCls:m,confirmPrefixCls:S,rootPrefixCls:f,content:l}))}:C={closable:a??!0,title:i,footer:c!==null&&s.createElement(CH,Object.assign({},e)),children:l},h(s.createElement(aH,Object.assign({prefixCls:m,className:oe(b,`${m}-pure-panel`,o&&S,o&&`${S}-${o}`,n,p,g)},u,{closeIcon:yH(m,r),closable:a},C)))},z1e=LH(B1e);function Sq(e){return hg(TH(e))}const Ki=PH;Ki.useModal=DH;Ki.info=function(t){return hg(NH(t))};Ki.success=function(t){return hg(_H(t))};Ki.error=function(t){return hg(jH(t))};Ki.warning=Sq;Ki.warn=Sq;Ki.confirm=function(t){return hg(FH(t))};Ki.destroyAll=function(){for(;Rc.length;){const t=Rc.pop();t&&t()}};Ki.config=sle;Ki._InternalPanelDoNotUseOrYouWillBeFired=z1e;const H1e=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:a,colorText:o,colorWarning:i,marginXXS:l,marginXS:c,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:a,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:u,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}},V1e=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},xq=dn("Popconfirm",e=>H1e(e),V1e,{resetStyle:!1});var W1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:a,description:o,cancelText:i,okText:l,okType:c="primary",icon:u=s.createElement(ec,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:g,onPopupClick:h}=e,{getPrefixCls:b}=s.useContext(jt),[p]=Ea("Popconfirm",Di.Popconfirm),S=ef(a),C=ef(o);return s.createElement("div",{className:`${t}-inner-content`,onClick:h},s.createElement("div",{className:`${t}-message`},u&&s.createElement("span",{className:`${t}-message-icon`},u),s.createElement("div",{className:`${t}-message-text`},S&&s.createElement("div",{className:`${t}-title`},S),C&&s.createElement("div",{className:`${t}-description`},C))),s.createElement("div",{className:`${t}-buttons`},d&&s.createElement(_n,Object.assign({onClick:g,size:"small"},r),i||(p==null?void 0:p.cancelText)),s.createElement(UR,{buttonProps:Object.assign(Object.assign({size:"small"},zR(c)),n),actionFn:m,close:f,prefixCls:b("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},l||(p==null?void 0:p.okText))))},K1e=e=>{const{prefixCls:t,placement:n,className:r,style:a}=e,o=W1e(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=s.useContext(jt),l=i("popconfirm",t),[c]=xq(l);return c(s.createElement(bV,{placement:n,className:oe(l,r),style:a,content:s.createElement(wq,Object.assign({prefixCls:l},o))}))};var q1e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,placement:o="top",trigger:i="click",okType:l="primary",icon:c=s.createElement(ec,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m,overlayStyle:g,styles:h,classNames:b}=e,p=q1e(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:S,className:C,style:x,classNames:w,styles:$}=sr("popconfirm"),[E,R]=Nt(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),I=(L,B)=>{R(L,!0),m==null||m(L),f==null||f(L,B)},O=L=>{I(!1,L)},T=L=>{var B;return(B=e.onConfirm)===null||B===void 0?void 0:B.call(void 0,L)},_=L=>{var B;I(!1,L),(B=e.onCancel)===null||B===void 0||B.call(void 0,L)},k=(L,B)=>{const{disabled:K=!1}=e;K||I(L,B)},A=S("popconfirm",a),j=oe(A,C,d,w.root,b==null?void 0:b.root),D=oe(w.body,b==null?void 0:b.body),[F]=xq(A);return F(s.createElement(Vi,Object.assign({},nn(p,["title"]),{trigger:i,placement:o,onOpenChange:k,open:E,ref:t,classNames:{root:j,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),x),g),h==null?void 0:h.root),body:Object.assign(Object.assign({},$.body),h==null?void 0:h.body)},content:s.createElement(wq,Object.assign({okType:l,icon:c},e,{prefixCls:A,close:O,onConfirm:T,onCancel:_})),"data-popover-inject":!0}),u))}),G4=U1e;G4._InternalPanelDoNotUseOrYouWillBeFired=K1e;var G1e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Y1e=function(){var t=s.useRef([]),n=s.useRef(null);return s.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(o){if(o){a=!0;var i=o.style;i.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},x_=0,X1e=ma();function Q1e(){var e;return X1e?(e=x_,x_+=1):e="TEST_OR_SSR",e}const J1e=(function(e){var t=s.useState(),n=ce(t,2),r=n[0],a=n[1];return s.useEffect(function(){a("rc_progress_".concat(Q1e()))},[]),e||r});var w_=function(t){var n=t.bg,r=t.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function $_(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),a="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(a)})}var Z1e=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,o=e.radius,i=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,m=r&&it(r)==="object",g=m?"#FFF":void 0,h=d/2,b=s.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:h,cy:h,stroke:g,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:i,ref:t});if(!m)return b;var p="".concat(a,"-conic"),S=f?"".concat(180+f/2,"deg"):"0deg",C=$_(r,(360-f)/360),x=$_(r,1),w="conic-gradient(from ".concat(S,", ").concat(C.join(", "),")"),$="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:p},b),s.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(p,")")},s.createElement(w_,{bg:$},s.createElement(w_,{bg:w}))))}),em=100,Wx=function(t,n,r,a,o,i,l,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-i)/360),g=i===0?0:{bottom:0,top:180,left:90,right:-90}[l],h=(100-a)/100*n;u==="round"&&a!==100&&(h+=d/2,h>=n&&(h=n-.01));var b=em/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(o+m+g,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"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}},eCe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function E_(e){var t=e??[];return Array.isArray(t)?t:[t]}var tCe=function(t){var n=P(P({},G1e),t),r=n.id,a=n.prefixCls,o=n.steps,i=n.strokeWidth,l=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,g=n.style,h=n.className,b=n.strokeColor,p=n.percent,S=Ue(n,eCe),C=em/2,x=J1e(r),w="".concat(x,"-gradient"),$=C-i/2,E=Math.PI*2*$,R=u>0?90+u/2:-90,I=E*((360-u)/360),O=it(o)==="object"?o:{count:o,gap:2},T=O.count,_=O.gap,k=E_(p),A=E_(b),j=A.find(function(V){return V&&it(V)==="object"}),D=j&&it(j)==="object",F=D?"butt":m,L=Wx(E,I,0,100,R,u,d,f,F,i),B=Y1e(),K=function(){var q=0;return k.map(function(U,G){var Y=A[G]||A[A.length-1],J=Wx(E,I,q,U,R,u,d,Y,F,i);return q+=U,s.createElement(Z1e,{key:G,color:Y,ptg:U,radius:$,prefixCls:a,gradientId:w,style:J,strokeLinecap:F,strokeWidth:i,gapDegree:u,ref:function(Z){B[G]=Z},size:em})}).reverse()},W=function(){var q=Math.round(T*(k[0]/100)),U=100/T,G=0;return new Array(T).fill(null).map(function(Y,J){var Q=J<=q-1?A[0]:f,Z=Q&&it(Q)==="object"?"url(#".concat(w,")"):void 0,ne=Wx(E,I,G,U,R,u,d,Q,"butt",i,_);return G+=(I-ne.strokeDashoffset+_)*100/I,s.createElement("circle",{key:J,className:"".concat(a,"-circle-path"),r:$,cx:C,cy:C,stroke:Z,strokeWidth:i,opacity:1,style:ne,ref:function(le){B[J]=le}})})};return s.createElement("svg",Me({className:oe("".concat(a,"-circle"),h),viewBox:"0 0 ".concat(em," ").concat(em),style:g,id:r,role:"presentation"},S),!T&&s.createElement("circle",{className:"".concat(a,"-circle-trail"),r:$,cx:C,cy:C,stroke:f,strokeLinecap:F,strokeWidth:l||i,style:L}),T?W():K())};function Vs(e){return!e||e<0?0:e>100?100:e}function ry({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const nCe=({percent:e,success:t,successPercent:n})=>{const r=Vs(ry({success:t,successPercent:n}));return[r,Vs(Vs(e)-r)]},rCe=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||Wc.green,t||null]},M1=(e,t,n)=>{var r,a,o,i;let l=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,c=d??8):typeof e=="number"?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?c=u||(e==="small"?6:8):typeof e=="number"?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,c]=[e,e]:Array.isArray(e)&&(l=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,c=(i=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&i!==void 0?i:120));return[l,c]},aCe=3,oCe=e=>aCe/e*100,iCe=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:i=120,type:l,children:c,success:u,size:d=i,steps:f}=e,[m,g]=M1(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(oCe(m),6));const b={width:m,height:g,fontSize:m*.15+6},p=s.useMemo(()=>{if(o||o===0)return o;if(l==="dashboard")return 75},[o,l]),S=nCe(e),C=a||l==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",w=rCe({success:u,strokeColor:e.strokeColor}),$=oe(`${t}-inner`,{[`${t}-circle-gradient`]:x}),E=s.createElement(tCe,{steps:f,percent:f?S[1]:S,strokeWidth:h,trailWidth:h,strokeColor:f?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:p,gapPosition:C}),R=m<=20,I=s.createElement("div",{className:$,style:b},E,!R&&c);return R?s.createElement(Bn,{title:c},I):I},ay="--progress-line-stroke-color",$q="--progress-percent",P_=e=>{const t=e?"100%":"-100%";return new Sn(`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}})},lCe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},$n(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(${ay})`]},height:"100%",width:`calc(1 / var(${$q}) * 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",[n]:{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 ${me(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:P_(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:P_(!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}}})}},sCe=e=>{const{componentCls:t,iconCls:n}=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%)",[n]:{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"}}}},cCe=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}}}}}},uCe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},dCe=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),fCe=dn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=en(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[lCe(n),sCe(n),cCe(n),uCe(n)]},dCe);var vCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},gCe=(e,t)=>{const{from:n=Wc.blue,to:r=Wc.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=vCe(e,["from","to","direction"]);if(Object.keys(o).length!==0){const l=mCe(o),c=`linear-gradient(${a}, ${l})`;return{background:c,[ay]:c}}const i=`linear-gradient(${a}, ${n}, ${r})`;return{background:i,[ay]:i}},pCe=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:i,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:m,type:g}=d,h=i&&typeof i!="string"?gCe(i,n):{[ay]:i,background:i},b=l==="square"||l==="butt"?0:void 0,p=a??[-1,o||(a==="small"?6:8)],[S,C]=M1(p,"line",{strokeWidth:o}),x={backgroundColor:u||void 0,borderRadius:b},w=Object.assign(Object.assign({width:`${Vs(r)}%`,height:C,borderRadius:b},h),{[$q]:Vs(r)/100}),$=ry(e),E={width:`${Vs($)}%`,height:C,borderRadius:b,backgroundColor:f==null?void 0:f.strokeColor},R={width:S<0?"100%":S},I=s.createElement("div",{className:`${t}-inner`,style:x},s.createElement("div",{className:oe(`${t}-bg`,`${t}-bg-${g}`),style:w},g==="inner"&&c),$!==void 0&&s.createElement("div",{className:`${t}-success-bg`,style:E})),O=g==="outer"&&m==="start",T=g==="outer"&&m==="end";return g==="outer"&&m==="center"?s.createElement("div",{className:`${t}-layout-bottom`},I,c):s.createElement("div",{className:`${t}-outer`,style:R},O&&c,I,T&&c)},hCe=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:o=8,strokeColor:i,trailColor:l=null,prefixCls:c,children:u}=e,d=r(n*(a/100)),m=t??[t==="small"?2:14,o],[g,h]=M1(m,"step",{steps:n,strokeWidth:o}),b=g/n,p=Array.from({length:n});for(let S=0;S{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:i,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:m,style:g,percentPosition:h={}}=e,b=bCe(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:p="end",type:S="outer"}=h,C=Array.isArray(i)?i[0]:i,x=typeof i=="string"||Array.isArray(i)?i:void 0,w=s.useMemo(()=>{if(C){const K=typeof C=="string"?C:Object.values(C)[0];return new pn(K).isLight()}return!1},[i]),$=s.useMemo(()=>{var K,W;const V=ry(e);return Number.parseInt(V!==void 0?(K=V??0)===null||K===void 0?void 0:K.toString():(W=l??0)===null||W===void 0?void 0:W.toString(),10)},[l,e.success,e.successPercent]),E=s.useMemo(()=>!yCe.includes(f)&&$>=100?"success":f||"normal",[f,$]),{getPrefixCls:R,direction:I,progress:O}=s.useContext(jt),T=R("progress",n),[_,k,A]=fCe(T),j=d==="line",D=j&&!o,F=s.useMemo(()=>{if(!u)return null;const K=ry(e);let W;const V=m||(U=>`${U}%`),q=j&&w&&S==="inner";return S==="inner"||m||E!=="exception"&&E!=="success"?W=V(Vs(l),Vs(K)):E==="exception"?W=j?s.createElement(dl,null):s.createElement(Hi,null):E==="success"&&(W=j?s.createElement(uu,null):s.createElement(l1,null)),s.createElement("span",{className:oe(`${T}-text`,{[`${T}-text-bright`]:q,[`${T}-text-${p}`]:D,[`${T}-text-${S}`]:D}),title:typeof W=="string"?W:void 0},W)},[u,l,$,E,d,T,m]);let L;d==="line"?L=o?s.createElement(hCe,Object.assign({},e,{strokeColor:x,prefixCls:T,steps:typeof o=="object"?o.count:o}),F):s.createElement(pCe,Object.assign({},e,{strokeColor:C,prefixCls:T,direction:I,percentPosition:{align:p,type:S}}),F):(d==="circle"||d==="dashboard")&&(L=s.createElement(iCe,Object.assign({},e,{strokeColor:C,prefixCls:T,progressStatus:E}),F));const B=oe(T,`${T}-status-${E}`,{[`${T}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${T}-inline-circle`]:d==="circle"&&M1(c,"circle")[0]<=20,[`${T}-line`]:D,[`${T}-line-align-${p}`]:D,[`${T}-line-position-${S}`]:D,[`${T}-steps`]:o,[`${T}-show-info`]:u,[`${T}-${c}`]:typeof c=="string",[`${T}-rtl`]:I==="rtl"},O==null?void 0:O.className,r,a,k,A);return _(s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},O==null?void 0:O.style),g),className:B,role:"progressbar","aria-valuenow":$,"aria-valuemin":0,"aria-valuemax":100},nn(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),L))});function tb(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ty(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){l=!0,o=u},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw o}}}}var CCe={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"},SCe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:CCe}))},xCe=s.forwardRef(SCe),wCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},$Ce=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:wCe}))},ECe=s.forwardRef($Ce);function PCe(e,t){var n=e.disabled,r=e.prefixCls,a=e.character,o=e.characterRender,i=e.index,l=e.count,c=e.value,u=e.allowHalf,d=e.focused,f=e.onHover,m=e.onClick,g=function($){f($,i)},h=function($){m($,i)},b=function($){$.keyCode===ot.ENTER&&m($,i)},p=i+1,S=new Set([r]);c===0&&i===0&&d?S.add("".concat(r,"-focused")):u&&c+.5>=p&&ci?"true":"false","aria-posinset":i+1,"aria-setsize":l,tabIndex:n?-1:0},ee.createElement("div",{className:"".concat(r,"-first")},C),ee.createElement("div",{className:"".concat(r,"-second")},C)));return o&&(x=o(x,e)),x}const OCe=ee.forwardRef(PCe);function ICe(){var e=s.useRef({});function t(r){return e.current[r]}function n(r){return function(a){e.current[r]=a}}return[t,n]}function RCe(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function MCe(e){var t,n,r=e.ownerDocument,a=r.body,o=r&&r.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=o.clientLeft||a.clientLeft||0,n-=o.clientTop||a.clientTop||0,{left:t,top:n}}function TCe(e){var t=MCe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=RCe(r),t.left}var NCe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function _Ce(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,a=e.className,o=e.defaultValue,i=e.value,l=e.count,c=l===void 0?5:l,u=e.allowHalf,d=u===void 0?!1:u,f=e.allowClear,m=f===void 0?!0:f,g=e.keyboard,h=g===void 0?!0:g,b=e.character,p=b===void 0?"★":b,S=e.characterRender,C=e.disabled,x=e.direction,w=x===void 0?"ltr":x,$=e.tabIndex,E=$===void 0?0:$,R=e.autoFocus,I=e.onHoverChange,O=e.onChange,T=e.onFocus,_=e.onBlur,k=e.onKeyDown,A=e.onMouseLeave,j=Ue(e,NCe),D=ICe(),F=ce(D,2),L=F[0],B=F[1],K=ee.useRef(null),W=function(){if(!C){var Te;(Te=K.current)===null||Te===void 0||Te.focus()}};ee.useImperativeHandle(t,function(){return{focus:W,blur:function(){if(!C){var Te;(Te=K.current)===null||Te===void 0||Te.blur()}}}});var V=Nt(o||0,{value:i}),q=ce(V,2),U=q[0],G=q[1],Y=Nt(null),J=ce(Y,2),Q=J[0],Z=J[1],ne=function(Te,Re){var Fe=w==="rtl",je=Te+1;if(d){var Ee=L(Te),Le=TCe(Ee),Pe=Ee.clientWidth;(Fe&&Re-Le>Pe/2||!Fe&&Re-Le0&&!Fe||Re===ot.RIGHT&&U>0&&Fe?(ae(U-je),Te.preventDefault()):Re===ot.LEFT&&U{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${me(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},DCe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),kCe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),FCe(e)),DCe(e))}},ACe=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),LCe=dn("Rate",e=>{const t=en(e,{});return kCe(t)},ACe);var BCe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,tooltips:i,character:l=s.createElement(ECe,null),disabled:c}=e,u=BCe(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),d=($,{index:E})=>i?s.createElement(Bn,{title:i[E]},$):$,{getPrefixCls:f,direction:m,rate:g}=s.useContext(jt),h=f("rate",n),[b,p,S]=LCe(h),C=Object.assign(Object.assign({},g==null?void 0:g.style),o),x=s.useContext(Br),w=c??x;return b(s.createElement(jCe,Object.assign({ref:t,character:l,characterRender:d,disabled:w},u,{className:oe(r,a,p,S,g==null?void 0:g.className),style:C,prefixCls:h,direction:m})))});var zCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},HCe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:zCe}))},VCe=s.forwardRef(HCe);const WCe=()=>s.createElement("svg",{width:"252",height:"294"},s.createElement("title",null,"No Found"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),s.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),s.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),s.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),s.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),s.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),s.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),s.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),s.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),s.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),s.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),s.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),s.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),s.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),s.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),s.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),s.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),s.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),s.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),s.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),s.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),s.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),s.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),s.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),s.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),s.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),s.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l-7.2 10.4z"}),s.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),s.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),s.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),s.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),s.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),s.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),s.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),s.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),KCe=()=>s.createElement("svg",{width:"254",height:"294"},s.createElement("title",null,"Server Error"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),s.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),s.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),s.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),s.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),s.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),s.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),s.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),s.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),s.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),s.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),s.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),s.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),s.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),s.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),s.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),s.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),s.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),s.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),s.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),s.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),s.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),s.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),s.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),s.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),s.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),s.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),s.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),s.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),s.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),s.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),s.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),s.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),s.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),s.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),s.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),s.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),s.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),s.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),s.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),qCe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:a,paddingXL:o,paddingXS:i,paddingLG:l,marginXS:c,lineHeight:u}=e;return{[t]:{padding:`${me(e.calc(l).mul(2).equal())} ${me(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${me(l)} ${me(e.calc(a).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},UCe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},GCe=e=>[qCe(e),UCe(e)],YCe=e=>GCe(e),XCe=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),QCe=dn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,a=e.colorWarning,o=en(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:a,imageWidth:250,imageHeight:295});return[YCe(o)]},XCe),JCe=()=>s.createElement("svg",{width:"251",height:"294"},s.createElement("title",null,"Unauthorized"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),s.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),s.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),s.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),s.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),s.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),s.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),s.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),s.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),s.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),s.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),s.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),s.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),s.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),s.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),s.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),s.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),s.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),s.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),s.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),s.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),s.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),s.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),s.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),s.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),s.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),s.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),s.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.6 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),s.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),s.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),s.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),s.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),s.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),s.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),s.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),s.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),s.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),s.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),s.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),s.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),s.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),ZCe={success:uu,error:dl,info:ec,warning:VCe},Rg={404:WCe,500:KCe,403:JCe},eSe=Object.keys(Rg),tSe=({prefixCls:e,icon:t,status:n})=>{const r=oe(`${e}-icon`);if(eSe.includes(`${n}`)){const o=Rg[n];return s.createElement("div",{className:`${r} ${e}-image`},s.createElement(o,null))}const a=s.createElement(ZCe[n]);return t===null||t===!1?null:s.createElement("div",{className:r},t||a)},nSe=({prefixCls:e,extra:t})=>t?s.createElement("div",{className:`${e}-extra`},t):null,T1=({prefixCls:e,className:t,rootClassName:n,subTitle:r,title:a,style:o,children:i,status:l="info",icon:c,extra:u})=>{const{getPrefixCls:d,direction:f,result:m}=s.useContext(jt),g=d("result",e),[h,b,p]=QCe(g),S=oe(g,`${g}-${l}`,t,m==null?void 0:m.className,n,{[`${g}-rtl`]:f==="rtl"},b,p),C=Object.assign(Object.assign({},m==null?void 0:m.style),o);return h(s.createElement("div",{className:S,style:C},s.createElement(tSe,{prefixCls:g,status:l,icon:c}),s.createElement("div",{className:`${g}-title`},a),r&&s.createElement("div",{className:`${g}-subtitle`},r),s.createElement(nSe,{prefixCls:g,extra:u}),i&&s.createElement("div",{className:`${g}-content`},i)))};T1.PRESENTED_IMAGE_403=Rg[403];T1.PRESENTED_IMAGE_404=Rg[404];T1.PRESENTED_IMAGE_500=Rg[500];const rSe=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:a,groupSeparator:o="",prefixCls:i}=e;let l;if(typeof n=="function")l=n(t);else{const c=String(t),u=c.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u||c==="-")l=c;else{const d=u[1];let f=u[2]||"0",m=u[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,o),typeof r=="number"&&(m=m.padEnd(r,"0").slice(0,r>0?r:0)),m&&(m=`${a}${m}`),l=[s.createElement("span",{key:"int",className:`${i}-content-value-int`},d,f),m&&s.createElement("span",{key:"decimal",className:`${i}-content-value-decimal`},m)]}}return s.createElement("span",{className:`${i}-content-value`},l)},aSe=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:a,titleFontSize:o,colorTextHeading:i,contentFontSize:l,fontFamily:c}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{[`${t}-title`]:{marginBottom:n,color:a,fontSize:o},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:i,fontSize:l,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},oSe=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}},iSe=dn("Statistic",e=>{const t=en(e,{});return aSe(t)},oSe);var lSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,valueStyle:i,value:l=0,title:c,valueRender:u,prefix:d,suffix:f,loading:m=!1,formatter:g,precision:h,decimalSeparator:b=".",groupSeparator:p=",",onMouseEnter:S,onMouseLeave:C}=e,x=lSe(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:w,direction:$,className:E,style:R}=sr("statistic"),I=w("statistic",n),[O,T,_]=iSe(I),k=s.createElement(rSe,{decimalSeparator:b,groupSeparator:p,prefixCls:I,formatter:g,precision:h,value:l}),A=oe(I,{[`${I}-rtl`]:$==="rtl"},E,r,a,T,_),j=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:j.current}));const D=ar(x,{aria:!0,data:!0});return O(s.createElement("div",Object.assign({},D,{ref:j,className:A,style:Object.assign(Object.assign({},R),o),onMouseEnter:S,onMouseLeave:C}),c&&s.createElement("div",{className:`${I}-title`},c),s.createElement(ql,{paragraph:!1,loading:m,className:`${I}-skeleton`,active:!0},s.createElement("div",{style:i,className:`${I}-content`},d&&s.createElement("span",{className:`${I}-content-prefix`},d),u?u(k):k,f&&s.createElement("span",{className:`${I}-content-suffix`},f)))))}),sSe=[["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 cSe(e,t){let n=e;const r=/\[[^\]]*]/g,a=(t.match(r)||[]).map(c=>c.slice(1,-1)),o=t.replace(r,"[]"),i=sSe.reduce((c,[u,d])=>{if(c.includes(u)){const f=Math.floor(n/d);return n-=f*d,c.replace(new RegExp(`${u}+`,"g"),m=>{const g=m.length;return f.toString().padStart(g,"0")})}return c},o);let l=0;return i.replace(r,()=>{const c=a[l];return l+=1,c})}function uSe(e,t,n){const{format:r=""}=t,a=new Date(e).getTime(),o=Date.now(),i=Math.max(n?a-o:o-a,0);return cSe(i,r)}var dSe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:a,type:o}=e,i=dSe(e,["value","format","onChange","onFinish","type"]),l=o==="countdown",[c,u]=s.useState(null),d=Zt(()=>{const g=Date.now(),h=fSe(t);u({});const b=l?h-g:g-h;return r==null||r(b),l&&h{let g;const h=()=>ln.cancel(g),b=()=>{g=ln(()=>{d()&&b()})};return b(),h},[t,l]),s.useEffect(()=>{u({})},[]);const f=(g,h)=>c?uSe(g,Object.assign(Object.assign({},h),{format:n}),l):"-",m=g=>zr(g,{title:void 0});return s.createElement(N1,Object.assign({},i,{value:t,valueRender:m,formatter:f}))},vSe=e=>s.createElement(Pq,Object.assign({},e,{type:"countdown"})),mSe=s.memo(vSe);N1.Timer=Pq;N1.Countdown=mSe;var gSe=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function I_(e){return typeof e=="string"}function Oq(e){var t,n=e.className,r=e.prefixCls,a=e.style,o=e.active,i=e.status,l=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,m=e.title,g=e.subTitle,h=e.progressDot,b=e.stepIcon,p=e.tailContent,S=e.icons,C=e.stepIndex,x=e.onStepClick,w=e.onClick,$=e.render,E=Ue(e,gSe),R=!!x&&!d,I={};R&&(I.role="button",I.tabIndex=0,I.onClick=function(j){w==null||w(j),x(C)},I.onKeyDown=function(j){var D=j.which;(D===ot.ENTER||D===ot.SPACE)&&x(C)});var O=function(){var D,F,L=oe("".concat(r,"-icon"),"".concat(l,"icon"),(D={},z(D,"".concat(l,"icon-").concat(c),c&&I_(c)),z(D,"".concat(l,"icon-check"),!c&&i==="finish"&&(S&&!S.finish||!S)),z(D,"".concat(l,"icon-cross"),!c&&i==="error"&&(S&&!S.error||!S)),D)),B=s.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?F=s.createElement("span",{className:"".concat(r,"-icon")},h(B,{index:u-1,status:i,title:m,description:f})):F=s.createElement("span",{className:"".concat(r,"-icon")},B):c&&!I_(c)?F=s.createElement("span",{className:"".concat(r,"-icon")},c):S&&S.finish&&i==="finish"?F=s.createElement("span",{className:"".concat(r,"-icon")},S.finish):S&&S.error&&i==="error"?F=s.createElement("span",{className:"".concat(r,"-icon")},S.error):c||i==="finish"||i==="error"?F=s.createElement("span",{className:L}):F=s.createElement("span",{className:"".concat(r,"-icon")},u),b&&(F=b({index:u-1,status:i,title:m,description:f,node:F})),F},T=i||"wait",_=oe("".concat(r,"-item"),"".concat(r,"-item-").concat(T),n,(t={},z(t,"".concat(r,"-item-custom"),c),z(t,"".concat(r,"-item-active"),o),z(t,"".concat(r,"-item-disabled"),d===!0),t)),k=P({},a),A=s.createElement("div",Me({},E,{className:_,style:k}),s.createElement("div",Me({onClick:w},I,{className:"".concat(r,"-item-container")}),s.createElement("div",{className:"".concat(r,"-item-tail")},p),s.createElement("div",{className:"".concat(r,"-item-icon")},O()),s.createElement("div",{className:"".concat(r,"-item-content")},s.createElement("div",{className:"".concat(r,"-item-title")},m,g&&s.createElement("div",{title:typeof g=="string"?g:void 0,className:"".concat(r,"-item-subtitle")},g)),f&&s.createElement("div",{className:"".concat(r,"-item-description")},f))));return $&&(A=$(A)||null),A}var pSe=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function Y4(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,o=a===void 0?{}:a,i=e.className;e.children;var l=e.direction,c=l===void 0?"horizontal":l,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,m=f===void 0?"horizontal":f,g=e.iconPrefix,h=g===void 0?"rc":g,b=e.status,p=b===void 0?"process":b,S=e.size,C=e.current,x=C===void 0?0:C,w=e.progressDot,$=w===void 0?!1:w,E=e.stepIcon,R=e.initial,I=R===void 0?0:R,O=e.icons,T=e.onChange,_=e.itemRender,k=e.items,A=k===void 0?[]:k,j=Ue(e,pSe),D=d==="navigation",F=d==="inline",L=F||$,B=F?"horizontal":c,K=F?void 0:S,W=L?"vertical":m,V=oe(r,"".concat(r,"-").concat(B),i,(t={},z(t,"".concat(r,"-").concat(K),K),z(t,"".concat(r,"-label-").concat(W),B==="horizontal"),z(t,"".concat(r,"-dot"),!!L),z(t,"".concat(r,"-navigation"),D),z(t,"".concat(r,"-inline"),F),t)),q=function(Y){T&&x!==Y&&T(Y)},U=function(Y,J){var Q=P({},Y),Z=I+J;return p==="error"&&J===x-1&&(Q.className="".concat(r,"-next-error")),Q.status||(Z===x?Q.status=p:Z{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:a}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:a,lineHeight:me(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},bSe=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},ySe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,o=e.calc(e.paddingXS).add(e.lineWidth).equal(),i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${me(o)} ${me(e.paddingXXS)} 0`,margin:`0 ${me(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${me(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:a}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${me(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${me(e.lineWidth)} ${e.lineType} ${a}`}},i),"&-error":i,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${me(e.calc(n).div(2).equal())})`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},CSe=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:a}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${me(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(a).div(2).add(e.controlHeightLG).equal()}}}}}},SSe=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:o}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${o}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},ri),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${me(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${me(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${me(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:a,transition:`width ${o}, inset-inline-start ${o}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${me(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},xSe=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:o,marginXXS:i,lineWidthBold:l,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),f=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:o}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:i,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${me(d)} !important`,height:`${me(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${me(f)} !important`,height:`${me(f)} !important`}}}}},wSe=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:o,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${me(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${me(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:o,height:o,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:me(o),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(o).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(o).sub(a).div(2).equal(),width:a,height:a,lineHeight:me(a),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(a).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(a).div(2).equal(),top:0,insetInlineStart:e.calc(o).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${me(e.calc(o).add(e.paddingXS).equal())} 0 ${me(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(o).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(o).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},$Se=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},ESe=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:o}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${me(e.marginXS)}`,fontSize:r,lineHeight:me(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:me(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:o,fontSize:a},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:me(n),transform:"none"}}}}},PSe=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:me(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${me(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${me(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${me(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${me(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:me(n)}}}}},OSe="wait",ISe="process",RSe="finish",MSe="error",$h=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,o=`${e}DescriptionColor`,i=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[o]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},TSe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,a=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none",[`&:focus-visible ${a}`]:ai(e)},[`${a}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[a]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:me(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${me(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:me(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},$h(OSe,e)),$h(ISe,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),$h(RSe,e)),$h(MSe,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},NSe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},_Se=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),TSe(e)),NSe(e)),hSe(e)),ESe(e)),PSe(e)),bSe(e)),CSe(e)),wSe(e)),SSe(e)),$Se(e)),xSe(e)),ySe(e))}},jSe=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),FSe=dn("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:o,colorTextDescription:i,colorTextQuaternary:l,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,f=en(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:d,waitTitleColor:i,waitDescriptionColor:i,waitTailColor:d,waitDotColor:t,finishIconColor:o,finishTitleColor:a,finishDescriptionColor:i,finishTailColor:o,finishDotColor:o,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:o,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:u});return _Se(f)},jSe);function DSe(e){return e.filter(t=>t)}function kSe(e,t){if(e)return e;const n=rr(t).map(r=>{if(s.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return DSe(n)}var ASe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{percent:t,size:n,className:r,rootClassName:a,direction:o,items:i,responsive:l=!0,current:c=0,children:u,style:d}=e,f=ASe(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:m}=du(l),{getPrefixCls:g,direction:h,className:b,style:p}=sr("steps"),S=s.useMemo(()=>l&&m?"vertical":o,[l,m,o]),C=Er(n),x=g("steps",e.prefixCls),[w,$,E]=FSe(x),R=e.type==="inline",I=g("",e.iconPrefix),O=kSe(i,u),T=R?void 0:t,_=Object.assign(Object.assign({},p),d),k=oe(b,{[`${x}-rtl`]:h==="rtl",[`${x}-with-progress`]:T!==void 0},r,a,$,E),A={finish:s.createElement(l1,{className:`${x}-finish-icon`}),error:s.createElement(Hi,{className:`${x}-error-icon`})},j=({node:F,status:L})=>{if(L==="process"&&T!==void 0){const B=C==="small"?32:40;return s.createElement("div",{className:`${x}-progress-icon`},s.createElement(Eq,{type:"circle",percent:T,size:B,strokeWidth:4,format:()=>null}),F)}return F},D=(F,L)=>F.description?s.createElement(Bn,{title:F.description},L):L;return w(s.createElement(Y4,Object.assign({icons:A},f,{style:_,current:c,size:C,items:O,itemRender:R?D:void 0,stepIcon:j,direction:S,prefixCls:x,iconPrefix:I,className:k})))};vO.Step=Y4.Step;var LSe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Iq=s.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,i=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,g=e.onChange,h=e.onKeyDown,b=Ue(e,LSe),p=Nt(!1,{value:i,defaultValue:l}),S=ce(p,2),C=S[0],x=S[1];function w(I,O){var T=C;return c||(T=I,x(T),g==null||g(T,O)),T}function $(I){I.which===ot.LEFT?w(!1,I):I.which===ot.RIGHT&&w(!0,I),h==null||h(I)}function E(I){var O=w(!C,I);m==null||m(O,I)}var R=oe(a,o,(n={},z(n,"".concat(a,"-checked"),C),z(n,"".concat(a,"-disabled"),c),n));return s.createElement("button",Me({},b,{type:"button",role:"switch","aria-checked":C,disabled:c,className:R,ref:t,onKeyDown:$,onClick:E}),u,s.createElement("span",{className:"".concat(a,"-inner")},s.createElement("span",{className:"".concat(a,"-inner-checked")},d),s.createElement("span",{className:"".concat(a,"-inner-unchecked")},f)))});Iq.displayName="Switch";const BSe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:i,handleSizeSM:l,calc:c}=e,u=`${t}-inner`,d=me(c(l).add(c(r).mul(2)).equal()),f=me(c(i).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:me(n),[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${me(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},zSe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},HSe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:i}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:i(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${me(i(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},VSe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:i,calc:l}=e,c=`${t}-inner`,u=me(l(i).add(l(r).mul(2)).equal()),d=me(l(o).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},WSe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$n(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:me(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Ga(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},KSe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,i=r/2,l=2,c=o-l*2,u=i-l*2;return{trackHeight:o,trackHeightSM:i,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:a,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new pn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},qSe=dn("Switch",e=>{const t=en(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[WSe(t),VSe(t),HSe(t),zSe(t),BSe(t)]},KSe);var USe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:i,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:g}=e,h=USe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,p]=Nt(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:S,direction:C,switch:x}=s.useContext(jt),w=s.useContext(Br),$=(a??w)||o,E=S("switch",n),R=s.createElement("div",{className:`${E}-handle`},o&&s.createElement(Ya,{className:`${E}-loading-icon`})),[I,O,T]=qSe(E),_=Er(r),k=oe(x==null?void 0:x.className,{[`${E}-small`]:_==="small",[`${E}-loading`]:o,[`${E}-rtl`]:C==="rtl"},i,l,O,T),A=Object.assign(Object.assign({},x==null?void 0:x.style),c),j=(...D)=>{p(D[0]),g==null||g.apply(void 0,D)};return I(s.createElement(vg,{component:"Switch",disabled:$},s.createElement(Iq,Object.assign({},h,{checked:b,onChange:j,prefixCls:E,className:k,style:A,disabled:$,ref:t,loadingIcon:R}))))}),X4=GSe;X4.__ANT_SWITCH=!0;var xs={},Mg="rc-table-internal-hook";function Q4(e){var t=s.createContext(void 0),n=function(a){var o=a.value,i=a.children,l=s.useRef(o);l.current=o;var c=s.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=ce(c,1),d=u[0];return fn(function(){Ua.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(o)})})},[o]),s.createElement(t.Provider,{value:d},i)};return{Context:t,Provider:n,defaultValue:e}}function ha(e,t){var n=Zt(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(g){m[g]=f[g]}),m}),r=s.useContext(e==null?void 0:e.Context),a=r||{},o=a.listeners,i=a.getValue,l=s.useRef();l.current=n(r?i():e==null?void 0:e.defaultValue);var c=s.useState({}),u=ce(c,2),d=u[1];return fn(function(){if(!r)return;function f(m){var g=n(m);ti(l.current,g,!0)||d({})}return o.add(f),function(){o.delete(f)}},[r]),l.current}function YSe(){var e=s.createContext(null);function t(){return s.useContext(e)}function n(a,o){var i=Fi(a),l=function(u,d){var f=i?{ref:d}:{},m=s.useRef(0),g=s.useRef(u),h=t();return h!==null?s.createElement(a,Me({},u,f)):((!o||o(g.current,u))&&(m.current+=1),g.current=u,s.createElement(e.Provider,{value:m.current},s.createElement(a,Me({},u,f))))};return i?s.forwardRef(l):l}function r(a,o){var i=Fi(a),l=function(u,d){var f=i?{ref:d}:{};return t(),s.createElement(a,Me({},u,f))};return i?s.memo(s.forwardRef(l),o):s.memo(l,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var J4=YSe(),Rq=J4.makeImmutable,_f=J4.responseImmutable,XSe=J4.useImmutableMark,La=Q4(),Mq=s.createContext({renderWithProps:!1}),QSe="RC_TABLE_KEY";function JSe(e){return e==null?[]:Array.isArray(e)?e:[e]}function _1(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,i=a.dataIndex,l=o||JSe(i).join("-")||QSe;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function mO(e){return e!=null}function ZSe(e){return typeof e=="number"&&!Number.isNaN(e)}function exe(e){return e&&it(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function txe(e,t,n,r,a,o){var i=s.useContext(Mq),l=XSe(),c=Hl(function(){if(mO(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Gn(e,u),f=d,m=void 0;if(a){var g=a(d,e,n);exe(g)?(f=g.children,m=g.props,i.renderWithProps=!0):f=g}return[f,m]},[l,e,r,t,a,n],function(u,d){if(o){var f=ce(u,2),m=f[1],g=ce(d,2),h=g[1];return o(h,m)}return i.renderWithProps?!0:!ti(u,d,!0)});return c}function nxe(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function rxe(e,t){return ha(La,function(n){var r=nxe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var axe=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,i=n===!0?{showTitle:!0}:n;return i&&(i.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():s.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function oxe(e){var t,n,r,a,o,i,l,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,g=e.prefixCls,h=e.className,b=e.align,p=e.record,S=e.render,C=e.dataIndex,x=e.renderIndex,w=e.shouldCellUpdate,$=e.index,E=e.rowType,R=e.colSpan,I=e.rowSpan,O=e.fixLeft,T=e.fixRight,_=e.firstFixLeft,k=e.lastFixLeft,A=e.firstFixRight,j=e.lastFixRight,D=e.appendNode,F=e.additionalProps,L=F===void 0?{}:F,B=e.isSticky,K="".concat(g,"-cell"),W=ha(La,["supportSticky","allColumnsFixedLeft","rowHoverable"]),V=W.supportSticky,q=W.allColumnsFixedLeft,U=W.rowHoverable,G=txe(p,C,x,d,S,w),Y=ce(G,2),J=Y[0],Q=Y[1],Z={},ne=typeof O=="number"&&V,ae=typeof T=="number"&&V;ne&&(Z.position="sticky",Z.left=O),ae&&(Z.position="sticky",Z.right=T);var le=(t=(n=(r=Q==null?void 0:Q.colSpan)!==null&&r!==void 0?r:L.colSpan)!==null&&n!==void 0?n:R)!==null&&t!==void 0?t:1,re=(a=(o=(i=Q==null?void 0:Q.rowSpan)!==null&&i!==void 0?i:L.rowSpan)!==null&&o!==void 0?o:I)!==null&&a!==void 0?a:1,fe=rxe($,re),ue=ce(fe,2),de=ue[0],ie=ue[1],se=Zt(function(ye){var xe;p&&ie($,$+re-1),L==null||(xe=L.onMouseEnter)===null||xe===void 0||xe.call(L,ye)}),ve=Zt(function(ye){var xe;p&&ie(-1,-1),L==null||(xe=L.onMouseLeave)===null||xe===void 0||xe.call(L,ye)});if(le===0||re===0)return null;var he=(l=L.title)!==null&&l!==void 0?l:axe({rowType:E,ellipsis:f,children:J}),Ce=oe(K,h,(c={},z(z(z(z(z(z(z(z(z(z(c,"".concat(K,"-fix-left"),ne&&V),"".concat(K,"-fix-left-first"),_&&V),"".concat(K,"-fix-left-last"),k&&V),"".concat(K,"-fix-left-all"),k&&q&&V),"".concat(K,"-fix-right"),ae&&V),"".concat(K,"-fix-right-first"),A&&V),"".concat(K,"-fix-right-last"),j&&V),"".concat(K,"-ellipsis"),f),"".concat(K,"-with-append"),D),"".concat(K,"-fix-sticky"),(ne||ae)&&B&&V),z(c,"".concat(K,"-row-hover"),!Q&&de)),L.className,Q==null?void 0:Q.className),pe={};b&&(pe.textAlign=b);var Se=P(P(P(P({},Q==null?void 0:Q.style),Z),pe),L.style),ge=J;return it(ge)==="object"&&!Array.isArray(ge)&&!s.isValidElement(ge)&&(ge=null),f&&(k||A)&&(ge=s.createElement("span",{className:"".concat(K,"-content")},ge)),s.createElement(u,Me({},Q,L,{className:Ce,style:Se,title:he,scope:m,onMouseEnter:U?se:void 0,onMouseLeave:U?ve:void 0,colSpan:le!==1?le:null,rowSpan:re!==1?re:null}),D,ge)}const jf=s.memo(oxe);function Z4(e,t,n,r,a){var o=n[e]||{},i=n[t]||{},l,c;o.fixed==="left"?l=r.left[a==="rtl"?t:e]:i.fixed==="right"&&(c=r.right[a==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,g=n[t+1],h=n[e-1],b=g&&!g.fixed||h&&!h.fixed||n.every(function(w){return w.fixed==="left"});if(a==="rtl"){if(l!==void 0){var p=h&&h.fixed==="left";m=!p&&b}else if(c!==void 0){var S=g&&g.fixed==="right";f=!S&&b}}else if(l!==void 0){var C=g&&g.fixed==="left";u=!C&&b}else if(c!==void 0){var x=h&&h.fixed==="right";d=!x&&b}return{fixLeft:l,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var Tq=s.createContext({});function ixe(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,i=e.rowSpan,l=e.align,c=ha(La,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=s.useContext(Tq),m=f.scrollColumnIndex,g=f.stickyOffsets,h=f.flattenColumns,b=n+o-1,p=b+1===m?o+1:o,S=Z4(n,n+p-1,h,g,d);return s.createElement(jf,Me({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:p,rowSpan:i,render:function(){return r}},S))}var lxe=["children"];function sxe(e){var t=e.children,n=Ue(e,lxe);return s.createElement("tr",n,t)}function j1(e){var t=e.children;return t}j1.Row=sxe;j1.Cell=ixe;function cxe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=ha(La,"prefixCls"),o=r.length-1,i=r[o],l=s.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:i!=null&&i.scrollbar?o:null}},[i,r,o,n]);return s.createElement(Tq.Provider,{value:l},s.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Eh=_f(cxe);var Nq=j1;function uxe(e){return null}function dxe(e){return null}function _q(e,t,n,r,a,o,i){var l=o(t,i);e.push({record:t,indent:n,index:i,rowKey:l});var c=a==null?void 0:a.has(l);if(t&&Array.isArray(t[r])&&c)for(var u=0;u1?_-1:0),A=1;A<_;A++)k[A-1]=arguments[A];$==null||$.apply(void 0,[T].concat(k))},R;typeof g=="string"?R=g:typeof g=="function"&&(R=g(e,n,r));var I=_1(o);return P(P({},a),{},{columnsKey:I,nestExpandable:h,expanded:S,hasNestChildren:C,record:e,onTriggerExpand:x,rowSupportExpand:b,expandable:p,rowProps:P(P({},w),{},{className:oe(R,w==null?void 0:w.className),onClick:E})})}function Dq(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,o=e.className,i=e.expanded,l=e.colSpan,c=e.isEmpty,u=e.stickyOffset,d=u===void 0?0:u,f=ha(La,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),m=f.scrollbarSize,g=f.fixHeader,h=f.fixColumn,b=f.componentWidth,p=f.horizonScroll,S=n;return(c?p&&b:h)&&(S=s.createElement("div",{style:{width:b-d-(g&&!c?m:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},S)),s.createElement(r,{className:o,style:{display:i?null:"none"}},s.createElement(jf,{component:a,prefixCls:t,colSpan:l},S))}function fxe(e){var t=e.prefixCls,n=e.record,r=e.onExpand,a=e.expanded,o=e.expandable,i="".concat(t,"-row-expand-icon");if(!o)return s.createElement("span",{className:oe(i,"".concat(t,"-row-spaced"))});var l=function(u){r(n,u),u.stopPropagation()};return s.createElement("span",{className:oe(i,z(z({},"".concat(t,"-row-expanded"),a),"".concat(t,"-row-collapsed"),!a)),onClick:l})}function vxe(e,t,n){var r=[];function a(o){(o||[]).forEach(function(i,l){r.push(t(i,l)),a(i[n])})}return a(e),r}function kq(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function Aq(e,t,n,r,a){var o,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,c=e.record,u=e.prefixCls,d=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,g=e.nestExpandable,h=e.indentSize,b=e.expandIcon,p=e.expanded,S=e.hasNestChildren,C=e.onTriggerExpand,x=e.expandable,w=e.expandedKeys,$=d[n],E=f[n],R;n===(m||0)&&g&&(R=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),b({prefixCls:u,expanded:p,expandable:S,record:c,onExpand:C})));var I=((o=t.onCell)===null||o===void 0?void 0:o.call(t,c,a))||{};if(l){var O=I.rowSpan,T=O===void 0?1:O;if(x&&T&&n=1)),style:P(P({},n),x==null?void 0:x.style)}),p.map(function(_,k){var A=_.render,j=_.dataIndex,D=_.className,F=Aq(h,_,k,u,a,l,g==null?void 0:g.offset),L=F.key,B=F.fixedInfo,K=F.appendCellNode,W=F.additionalCellProps;return s.createElement(jf,Me({className:D,ellipsis:_.ellipsis,align:_.align,scope:_.rowScope,component:_.rowScope?m:f,prefixCls:b,key:L,record:r,index:a,renderIndex:o,dataIndex:j,render:A,shouldCellUpdate:_.shouldCellUpdate},B,{appendNode:K,additionalProps:W}))})),O;if($&&(E.current||w)){var T=C(r,a,u+1,w);O=s.createElement(Dq,{expanded:w,className:oe("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(u+1),R),prefixCls:b,component:d,cellComponent:f,colSpan:g?g.colSpan:p.length,stickyOffset:g==null?void 0:g.sticky,isEmpty:!1},T)}return s.createElement(s.Fragment,null,I,O)}const gxe=_f(mxe);function pxe(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,o=s.useRef();return fn(function(){o.current&&n(t,o.current.offsetWidth)},[]),s.createElement(Mr,{data:t},s.createElement("th",{ref:o,className:"".concat(r,"-measure-cell")},s.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function hxe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,o=s.useRef(null),i=ha(La,["measureRowRender"]),l=i.measureRowRender,c=s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:o,tabIndex:-1},s.createElement(Mr.Collection,{onBatchResize:function(d){yf(o.current)&&d.forEach(function(f){var m=f.data,g=f.size;r(m,g.offsetWidth)})}},n.map(function(u){var d=a.find(function(g){return g.key===u}),f=d==null?void 0:d.title,m=s.isValidElement(f)?s.cloneElement(f,{ref:null}):f;return s.createElement(pxe,{prefixCls:t,key:u,columnKey:u,onColumnResize:r,title:m})})));return l?l(c):c}function bxe(e){var t=e.data,n=e.measureColumnWidth,r=ha(La,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=r.prefixCls,o=r.getComponent,i=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=r.expandedRowOffset,g=m===void 0?0:m,h=r.colWidths,b=jq(t,d,u,c),p=s.useMemo(function(){return b.map(function(O){return O.rowKey})},[b]),S=s.useRef({renderWithProps:!1}),C=s.useMemo(function(){for(var O=l.length-g,T=0,_=0;_=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,g=void 0;if(f&&(m=f[gm],o==="auto"&&(g=f.minWidth)),d||g||m||c){var h=m||{};h.columnType;var b=Ue(h,xxe);i.unshift(s.createElement("col",Me({key:u,style:{width:d,minWidth:g}},b))),c=!0}}return i.length>0?s.createElement("colgroup",null,i):null}var wxe=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function $xe(e,t){return s.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:p.ellipsis,align:p.align,component:i,prefixCls:d,key:g[b]},S,{additionalProps:C,rowType:"header"}))}))};function Oxe(e){var t=[];function n(i,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=l,d=i.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},g=1,h=f.children;return h&&h.length>0&&(g=n(h,u,c+1).reduce(function(b,p){return b+p},0),m.hasSubColumns=!0),"colSpan"in f&&(g=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=g,m.colEnd=m.colStart+g-1,t[c].push(m),u+=g,g});return d}n(e,0);for(var r=t.length,a=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-l)})},o=0;o1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Rxe(e,t,n){return s.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(m){var g=T_(t,m.width);g?r+=g:a+=1});var o=Math.max(t,n),i=Math.max(o-r,a),l=a,c=i/a,u=0,d=e.map(function(m){var g=P({},m),h=T_(t,g.width);if(h)g.width=h;else{var b=Math.floor(c);g.width=l===1?i:b,i-=b,l-=1}return u+=g.width,g});if(u0?P(P({},t),{},{children:Bq(n)}):t})}function gO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&it(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,i=o===!0?"left":o,l="".concat(t,"-").concat(a),c=r.children;return c&&c.length>0?[].concat(ke(n),ke(gO(c,l).map(function(u){var d;return P(P({},u),{},{fixed:(d=u.fixed)!==null&&d!==void 0?d:i})}))):[].concat(ke(n),[P(P({key:l},r),{},{fixed:i})])},[])}function Nxe(e){return e.map(function(t){var n=t.fixed,r=Ue(t,Txe),a=n;return n==="left"?a="right":n==="right"&&(a="left"),P({fixed:a},r)})}function _xe(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,i=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,g=e.expandedRowOffset,h=g===void 0?0:g,b=e.direction,p=e.expandRowByClick,S=e.columnWidth,C=e.fixed,x=e.scrollWidth,w=e.clientWidth,$=s.useMemo(function(){var j=r||e3(a)||[];return Bq(j.slice())},[r,a]),E=s.useMemo(function(){if(o){var j=$.slice();if(!j.includes(xs)){var D=m||0,F=D===0&&C==="right"?$.length:D;F>=0&&j.splice(F,0,xs)}var L=j.indexOf(xs);j=j.filter(function(V,q){return V!==xs||q===L});var B=$[L],K;C?K=C:K=B?B.fixed:null;var W=z(z(z(z(z(z({},gm,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",K),"className","".concat(n,"-row-expand-icon-cell")),"width",S),"render",function(q,U,G){var Y=c(U,G),J=i.has(Y),Q=f?f(U):!0,Z=d({prefixCls:n,expanded:J,expandable:Q,record:U,onExpand:u});return p?s.createElement("span",{onClick:function(ae){return ae.stopPropagation()}},Z):Z});return j.map(function(V,q){var U=V===xs?W:V;return q=0;D-=1){var F=I[D].fixed;if(F==="left"||F===!0){j=D;break}}if(j>=0)for(var L=0;L<=j;L+=1){var B=I[L].fixed;if(B!=="left"&&B!==!0)return!0}var K=I.findIndex(function(q){var U=q.fixed;return U==="right"});if(K>=0)for(var W=K;W=L-l})})}})},A=function(D){C(function(F){return P(P({},F),{},{scrollLeft:f?D/f*m:0})})};return s.useImperativeHandle(n,function(){return{setScrollLeft:A,checkScrollBarVisible:k}}),s.useEffect(function(){var j=ks(document.body,"mouseup",O,!1),D=ks(document.body,"mousemove",_,!1);return k(),function(){j.remove(),D.remove()}},[g,E]),s.useEffect(function(){if(o.current){for(var j=[],D=cg(o.current);D;)j.push(D),D=D.parentElement;return j.forEach(function(F){return F.addEventListener("scroll",k,!1)}),window.addEventListener("resize",k,!1),window.addEventListener("scroll",k,!1),c.addEventListener("scroll",k,!1),function(){j.forEach(function(F){return F.removeEventListener("scroll",k)}),window.removeEventListener("resize",k),window.removeEventListener("scroll",k),c.removeEventListener("scroll",k)}}},[c]),s.useEffect(function(){S.isHiddenScrollBar||C(function(j){var D=o.current;return D?P(P({},j),{},{scrollLeft:D.scrollLeft/D.scrollWidth*D.clientWidth}):j})},[S.isHiddenScrollBar]),f<=m||!g||S.isHiddenScrollBar?null:s.createElement("div",{style:{height:eN(),width:m,bottom:l},className:"".concat(d,"-sticky-scroll")},s.createElement("div",{onMouseDown:T,ref:h,className:oe("".concat(d,"-sticky-scroll-bar"),z({},"".concat(d,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const Hxe=s.forwardRef(zxe);var zq="rc-table",Vxe=[],Wxe={};function Kxe(){return"No Data"}function qxe(e,t){var n=P({rowKey:"key",prefixCls:zq,emptyText:Kxe},e),r=n.prefixCls,a=n.className,o=n.rowClassName,i=n.style,l=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,g=n.footer,h=n.summary,b=n.caption,p=n.id,S=n.showHeader,C=n.components,x=n.emptyText,w=n.onRow,$=n.onHeaderRow,E=n.measureRowRender,R=n.onScroll,I=n.internalHooks,O=n.transformColumns,T=n.internalRefs,_=n.tailor,k=n.getContainerWidth,A=n.sticky,j=n.rowHoverable,D=j===void 0?!0:j,F=l||Vxe,L=!!F.length,B=I===Mg,K=s.useCallback(function(wt,Dt){return Gn(C,wt)||Dt},[C]),W=s.useMemo(function(){return typeof c=="function"?c:function(wt){var Dt=wt&&wt[c];return Dt}},[c]),V=K(["body"]),q=Axe(),U=ce(q,3),G=U[0],Y=U[1],J=U[2],Q=jxe(n,F,W),Z=ce(Q,6),ne=Z[0],ae=Z[1],le=Z[2],re=Z[3],fe=Z[4],ue=Z[5],de=u==null?void 0:u.x,ie=s.useState(0),se=ce(ie,2),ve=se[0],he=se[1],Ce=_xe(P(P(P({},n),ne),{},{expandable:!!ne.expandedRowRender,columnTitle:ne.columnTitle,expandedKeys:le,getRowKey:W,onTriggerExpand:ue,expandIcon:re,expandIconColumnIndex:ne.expandIconColumnIndex,direction:f,scrollWidth:B&&_&&typeof de=="number"?de:null,clientWidth:ve}),B?O:null),pe=ce(Ce,4),Se=pe[0],ge=pe[1],ye=pe[2],xe=pe[3],$e=ye??de,He=s.useMemo(function(){return{columns:Se,flattenColumns:ge}},[Se,ge]),Te=s.useRef(),Re=s.useRef(),Fe=s.useRef(),je=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:Te.current,scrollTo:function(Dt){var On;if(Fe.current instanceof HTMLElement){var Ln=Dt.index,or=Dt.top,er=Dt.key;if(ZSe(or)){var Or;(Or=Fe.current)===null||Or===void 0||Or.scrollTo({top:or})}else{var Nr,Gr=er??W(F[Ln]);(Nr=Fe.current.querySelector('[data-row-key="'.concat(Gr,'"]')))===null||Nr===void 0||Nr.scrollIntoView()}}else(On=Fe.current)!==null&&On!==void 0&&On.scrollTo&&Fe.current.scrollTo(Dt)}}});var Ee=s.useRef(),Le=s.useState(!1),Pe=ce(Le,2),ze=Pe[0],Oe=Pe[1],we=s.useState(!1),_e=ce(we,2),Be=_e[0],Qe=_e[1],lt=s.useState(new Map),Ke=ce(lt,2),et=Ke[0],st=Ke[1],Ze=_1(ge),vt=Ze.map(function(wt){return et.get(wt)}),Ot=s.useMemo(function(){return vt},[vt.join("_")]),xt=Bxe(Ot,ge,f),mt=u&&mO(u.y),yt=u&&mO($e)||!!ne.fixed,bt=yt&&ge.some(function(wt){var Dt=wt.fixed;return Dt}),tt=s.useRef(),Ye=Lxe(A,r),Ne=Ye.isSticky,We=Ye.offsetHeader,rt=Ye.offsetSummary,ct=Ye.offsetScroll,At=Ye.stickyClassName,pt=Ye.container,ft=s.useMemo(function(){return h==null?void 0:h(F)},[h,F]),ut=(mt||Ne)&&s.isValidElement(ft)&&ft.type===j1&&ft.props.fixed,Xt,Kt,Ut;mt&&(Kt={overflowY:L?"scroll":"auto",maxHeight:u.y}),yt&&(Xt={overflowX:"auto"},mt||(Kt={overflowY:"hidden"}),Ut={width:$e===!0?"auto":$e,minWidth:"100%"});var kt=s.useCallback(function(wt,Dt){st(function(On){if(On.get(wt)!==Dt){var Ln=new Map(On);return Ln.set(wt,Dt),Ln}return On})},[]),Pt=kxe(),Lt=ce(Pt,2),nt=Lt[0],St=Lt[1];function gt(wt,Dt){Dt&&(typeof Dt=="function"?Dt(wt):Dt.scrollLeft!==wt&&(Dt.scrollLeft=wt,Dt.scrollLeft!==wt&&setTimeout(function(){Dt.scrollLeft=wt},0)))}var qe=Zt(function(wt){var Dt=wt.currentTarget,On=wt.scrollLeft,Ln=f==="rtl",or=typeof On=="number"?On:Dt.scrollLeft,er=Dt||Wxe;if(!St()||St()===er){var Or;nt(er),gt(or,Re.current),gt(or,Fe.current),gt(or,Ee.current),gt(or,(Or=tt.current)===null||Or===void 0?void 0:Or.setScrollLeft)}var Nr=Dt||Re.current;if(Nr){var Gr=B&&_&&typeof $e=="number"?$e:Nr.scrollWidth,Pa=Nr.clientWidth;if(Gr===Pa){Oe(!1),Qe(!1);return}Ln?(Oe(-or0)):(Oe(or>0),Qe(or1?p-j:0,F=P(P(P({},I),u),{},{flex:"0 0 ".concat(j,"px"),width:"".concat(j,"px"),marginRight:D,pointerEvents:"auto"}),L=s.useMemo(function(){return f?k<=1:T===0||k===0||k>1},[k,T,f]);L?F.visibility="hidden":f&&(F.height=m==null?void 0:m(k));var B=L?function(){return null}:g,K={};return(k===0||T===0)&&(K.rowSpan=1,K.colSpan=1),s.createElement(jf,Me({className:oe(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:i,prefixCls:t.prefixCls,key:w,record:c,index:o,renderIndex:l,dataIndex:h,render:B,shouldCellUpdate:n.shouldCellUpdate},$,{appendNode:E,additionalProps:P(P({},R),{},{style:F},K)}))}var Xxe=["data","index","className","rowKey","style","extra","getHeight"],Qxe=s.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,i=e.style,l=e.extra,c=e.getHeight,u=Ue(e,Xxe),d=n.record,f=n.indent,m=n.index,g=ha(La,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=g.scrollX,b=g.flattenColumns,p=g.prefixCls,S=g.fixColumn,C=g.componentWidth,x=ha(t3,["getComponent"]),w=x.getComponent,$=Fq(d,o,r,f),E=w(["body","row"],"div"),R=w(["body","cell"],"div"),I=$.rowSupportExpand,O=$.expanded,T=$.rowProps,_=$.expandedRowRender,k=$.expandedRowClassName,A;if(I&&O){var j=_(d,r,f+1,O),D=kq(k,d,r,f),F={};S&&(F={style:z({},"--virtual-width","".concat(C,"px"))});var L="".concat(p,"-expanded-row-cell");A=s.createElement(E,{className:oe("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(f+1),D)},s.createElement(jf,{component:R,prefixCls:p,className:oe(L,z({},"".concat(L,"-fixed"),S)),additionalProps:F},j))}var B=P(P({},i),{},{width:h});l&&(B.position="absolute",B.pointerEvents="none");var K=s.createElement(E,Me({},T,u,{"data-row-key":o,ref:I?null:t,className:oe(a,"".concat(p,"-row"),T==null?void 0:T.className,z({},"".concat(p,"-row-extra"),l)),style:P(P({},B),T==null?void 0:T.style)}),b.map(function(W,V){return s.createElement(Yxe,{key:V,component:R,rowInfo:$,column:W,colIndex:V,indent:f,index:r,renderIndex:m,record:d,inverse:l,getHeight:c})}));return I?s.createElement("div",{ref:t},K,A):K}),F_=_f(Qxe),Jxe=s.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=ha(La,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=a.flattenColumns,i=a.onColumnResize,l=a.getRowKey,c=a.expandedKeys,u=a.prefixCls,d=a.childrenColumnName,f=a.scrollX,m=a.direction,g=ha(t3),h=g.sticky,b=g.scrollY,p=g.listItemHeight,S=g.getComponent,C=g.onScroll,x=s.useRef(),w=jq(n,d,c,l),$=s.useMemo(function(){var A=0;return o.map(function(j){var D=j.width,F=j.minWidth,L=j.key,B=Math.max(D||0,F||0);return A+=B,[L,B,A]})},[o]),E=s.useMemo(function(){return $.map(function(A){return A[2]})},[$]);s.useEffect(function(){$.forEach(function(A){var j=ce(A,2),D=j[0],F=j[1];i(D,F)})},[$]),s.useImperativeHandle(t,function(){var A,j={scrollTo:function(F){var L;(L=x.current)===null||L===void 0||L.scrollTo(F)},nativeElement:(A=x.current)===null||A===void 0?void 0:A.nativeElement};return Object.defineProperty(j,"scrollLeft",{get:function(){var F;return((F=x.current)===null||F===void 0?void 0:F.getScrollInfo().x)||0},set:function(F){var L;(L=x.current)===null||L===void 0||L.scrollTo({left:F})}}),Object.defineProperty(j,"scrollTop",{get:function(){var F;return((F=x.current)===null||F===void 0?void 0:F.getScrollInfo().y)||0},set:function(F){var L;(L=x.current)===null||L===void 0||L.scrollTo({top:F})}}),j});var R=function(j,D){var F,L=(F=w[D])===null||F===void 0?void 0:F.record,B=j.onCell;if(B){var K,W=B(L,D);return(K=W==null?void 0:W.rowSpan)!==null&&K!==void 0?K:1}return 1},I=function(j){var D=j.start,F=j.end,L=j.getSize,B=j.offsetY;if(F<0)return null;for(var K=o.filter(function(le){return R(le,D)===0}),W=D,V=function(re){if(K=K.filter(function(fe){return R(fe,re)===0}),!K.length)return W=re,1},q=D;q>=0&&!V(q);q-=1);for(var U=o.filter(function(le){return R(le,F)!==1}),G=F,Y=function(re){if(U=U.filter(function(fe){return R(fe,re)!==1}),!U.length)return G=Math.max(re-1,F),1},J=F;J1})&&Q.push(re)},ne=W;ne<=G;ne+=1)Z(ne);var ae=Q.map(function(le){var re=w[le],fe=l(re.record,le),ue=function(se){var ve=le+se-1,he=l(w[ve].record,ve),Ce=L(fe,he);return Ce.bottom-Ce.top},de=L(fe);return s.createElement(F_,{key:le,data:re,rowKey:fe,index:le,style:{top:-B+de.top},extra:!0,getHeight:ue})});return ae},O=s.useMemo(function(){return{columnsOffset:E}},[E]),T="".concat(u,"-tbody"),_=S(["body","wrapper"]),k={};return h&&(k.position="sticky",k.bottom=0,it(h)==="object"&&h.offsetScroll&&(k.bottom=h.offsetScroll)),s.createElement(Vq.Provider,{value:O},s.createElement(i1,{fullHeight:!1,ref:x,prefixCls:"".concat(T,"-virtual"),styles:{horizontalScrollBar:k},className:T,height:b,itemHeight:p||24,data:w,itemKey:function(j){return l(j.record)},component:_,scrollWidth:f,direction:m,onVirtualScroll:function(j){var D,F=j.x;r({currentTarget:(D=x.current)===null||D===void 0?void 0:D.nativeElement,scrollLeft:F})},onScroll:C,extraRender:I},function(A,j,D){var F=l(A.record,j);return s.createElement(F_,{data:A,rowKey:F,index:j,style:D.style})}))}),Zxe=_f(Jxe),ewe=function(t,n){var r=n.ref,a=n.onScroll;return s.createElement(Zxe,{ref:r,data:t,onScroll:a})};function twe(e,t){var n=e.data,r=e.columns,a=e.scroll,o=e.sticky,i=e.prefixCls,l=i===void 0?zq:i,c=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=a||{},g=m.x,h=m.y;typeof g!="number"&&(g=1),typeof h!="number"&&(h=500);var b=Zt(function(C,x){return Gn(d,C)||x}),p=Zt(f),S=s.useMemo(function(){return{sticky:o,scrollY:h,listItemHeight:u,getComponent:b,onScroll:p}},[o,h,u,b,p]);return s.createElement(t3.Provider,{value:S},s.createElement(Ff,Me({},e,{className:oe(c,"".concat(l,"-virtual")),scroll:P(P({},a),{},{x:g}),components:P(P({},d),{},{body:n!=null&&n.length?ewe:void 0}),columns:r,internalHooks:Mg,tailor:!0,ref:t})))}var nwe=s.forwardRef(twe);function Wq(e){return Rq(nwe,e)}Wq();const rwe=e=>null,awe=e=>null;var n3=s.createContext(null),Kq=s.createContext({}),owe=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,i="".concat(n,"-indent-unit"),l=[],c=0;c=0&&n.splice(r,1),n}function Ol(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function r3(e){return e.split("-")}function cwe(e,t){var n=[],r=co(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(i){var l=i.key,c=i.children;n.push(l),a(c)})}return a(r.children),n}function uwe(e){if(e.parent){var t=r3(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function dwe(e){var t=r3(e.pos);return Number(t[t.length-1])===0}function A_(e,t,n,r,a,o,i,l,c,u){var d,f=e.clientX,m=e.clientY,g=e.target.getBoundingClientRect(),h=g.top,b=g.height,p=(u==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-f),S=(p-12)/r,C=c.filter(function(F){var L;return(L=l[F])===null||L===void 0||(L=L.children)===null||L===void 0?void 0:L.length}),x=co(l,n.eventKey);if(m-1.5?o({dragNode:A,dropNode:j,dropPosition:1})?T=1:D=!1:o({dragNode:A,dropNode:j,dropPosition:0})?T=0:o({dragNode:A,dropNode:j,dropPosition:1})?T=1:D=!1:o({dragNode:A,dropNode:j,dropPosition:1})?T=1:D=!1,{dropPosition:T,dropLevelOffset:_,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:O,dropContainerKey:T===0?null:((d=x.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:D}}function L_(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Kx(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(it(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Kn(!1,"`checkedKeys` is not an array or an object"),null;return t}function pO(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=co(t,a);if(o){n.add(a);var i=o.parent,l=o.node;l.disabled||i&&r(i.key)}}}return(e||[]).forEach(function(a){r(a)}),ke(n)}const Cs={},hO="SELECT_ALL",bO="SELECT_INVERT",yO="SELECT_NONE",B_=[],qq=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&qq(e,r[e],n)}),n),fwe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,getTitleCheckboxProps:i,onChange:l,onSelect:c,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:g,type:h,selections:b,fixed:p,renderCell:S,hideSelectAll:C,checkStrictly:x=!0}=t||{},{prefixCls:w,data:$,pageData:E,getRecordByKey:R,getRowKey:I,expandType:O,childrenColumnName:T,locale:_,getPopupContainer:k}=e,A=ul(),[j,D]=Lne(re=>re),[F,L]=Nt(r||a||B_,{value:r}),B=s.useRef(new Map),K=s.useCallback(re=>{if(n){const fe=new Map;re.forEach(ue=>{let de=R(ue);!de&&B.current.has(ue)&&(de=B.current.get(ue)),fe.set(ue,de)}),B.current=fe}},[R,n]);s.useEffect(()=>{K(F)},[F]);const W=s.useMemo(()=>qq(T,E),[T,E]),{keyEntities:V}=s.useMemo(()=>{if(x)return{keyEntities:null};let re=$;if(n){const fe=new Set(W.map((de,ie)=>I(de,ie))),ue=Array.from(B.current).reduce((de,[ie,se])=>fe.has(ie)?de:de.concat(se),[]);re=[].concat(ke(re),ke(ue))}return Pg(re,{externalGetKey:I,childrenPropName:T})},[$,I,x,T,n,W]),q=s.useMemo(()=>{const re=new Map;return W.forEach((fe,ue)=>{const de=I(fe,ue),ie=(o?o(fe):null)||{};re.set(de,ie)}),re},[W,I,o]),U=s.useCallback(re=>{const fe=I(re);let ue;return q.has(fe)?ue=q.get(I(re)):ue=o?o(re):void 0,!!(ue!=null&&ue.disabled)},[q,I]),[G,Y]=s.useMemo(()=>{if(x)return[F||[],[]];const{checkedKeys:re,halfCheckedKeys:fe}=ei(F,!0,V,U);return[re||[],fe]},[F,x,V,U]),J=s.useMemo(()=>{const re=h==="radio"?G.slice(0,1):G;return new Set(re)},[G,h]),Q=s.useMemo(()=>h==="radio"?new Set:new Set(Y),[Y,h]);s.useEffect(()=>{t||L(B_)},[!!t]);const Z=s.useCallback((re,fe)=>{let ue,de;K(re),n?(ue=re,de=re.map(ie=>B.current.get(ie))):(ue=[],de=[],re.forEach(ie=>{const se=R(ie);se!==void 0&&(ue.push(ie),de.push(se))})),L(ue),l==null||l(ue,de,{type:fe})},[L,R,l,n]),ne=s.useCallback((re,fe,ue,de)=>{if(c){const ie=ue.map(se=>R(se));c(R(re),fe,ie,de)}Z(ue,"single")},[c,R,Z]),ae=s.useMemo(()=>!b||C?null:(b===!0?[hO,bO,yO]:b).map(fe=>fe===hO?{key:"all",text:_.selectionAll,onSelect(){Z($.map((ue,de)=>I(ue,de)).filter(ue=>{const de=q.get(ue);return!(de!=null&&de.disabled)||J.has(ue)}),"all")}}:fe===bO?{key:"invert",text:_.selectInvert,onSelect(){const ue=new Set(J);E.forEach((ie,se)=>{const ve=I(ie,se),he=q.get(ve);he!=null&&he.disabled||(ue.has(ve)?ue.delete(ve):ue.add(ve))});const de=Array.from(ue);d&&(A.deprecated(!1,"onSelectInvert","onChange"),d(de)),Z(de,"invert")}}:fe===yO?{key:"none",text:_.selectNone,onSelect(){f==null||f(),Z(Array.from(J).filter(ue=>{const de=q.get(ue);return de==null?void 0:de.disabled}),"none")}}:fe).map(fe=>Object.assign(Object.assign({},fe),{onSelect:(...ue)=>{var de,ie;(ie=fe.onSelect)===null||ie===void 0||(de=ie).call.apply(de,[fe].concat(ue)),D(null)}})),[b,J,E,I,d,Z]);return[s.useCallback(re=>{var fe;if(!t)return re.filter(je=>je!==Cs);let ue=ke(re);const de=new Set(J),ie=W.map(I).filter(je=>!q.get(je).disabled),se=ie.every(je=>de.has(je)),ve=ie.some(je=>de.has(je)),he=()=>{const je=[];se?ie.forEach(Le=>{de.delete(Le),je.push(Le)}):ie.forEach(Le=>{de.has(Le)||(de.add(Le),je.push(Le))});const Ee=Array.from(de);u==null||u(!se,Ee.map(Le=>R(Le)),je.map(Le=>R(Le))),Z(Ee,"all"),D(null)};let Ce,pe;if(h!=="radio"){let je;if(ae){const Be={getPopupContainer:k,items:ae.map((Qe,lt)=>{const{key:Ke,text:et,onSelect:st}=Qe;return{key:Ke??lt,onClick:()=>{st==null||st(ie)},label:et}})};je=s.createElement("div",{className:`${w}-selection-extra`},s.createElement(hu,{menu:Be,getPopupContainer:k},s.createElement("span",null,s.createElement(Gs,null))))}const Ee=W.map((Be,Qe)=>{const lt=I(Be,Qe),Ke=q.get(lt)||{};return Object.assign({checked:de.has(lt)},Ke)}).filter(({disabled:Be})=>Be),Le=!!Ee.length&&Ee.length===W.length,Pe=Le&&Ee.every(({checked:Be})=>Be),ze=Le&&Ee.some(({checked:Be})=>Be),Oe=(i==null?void 0:i())||{},{onChange:we,disabled:_e}=Oe;pe=s.createElement(Ys,Object.assign({"aria-label":je?"Custom selection":"Select all"},Oe,{checked:Le?Pe:!!W.length&&se,indeterminate:Le?!Pe&&ze:!se&&ve,onChange:Be=>{he(),we==null||we(Be)},disabled:_e??(W.length===0||Le),skipGroup:!0})),Ce=!C&&s.createElement("div",{className:`${w}-selection`},pe,je)}let Se;h==="radio"?Se=(je,Ee,Le)=>{const Pe=I(Ee,Le),ze=de.has(Pe),Oe=q.get(Pe);return{node:s.createElement(Rf,Object.assign({},Oe,{checked:ze,onClick:we=>{var _e;we.stopPropagation(),(_e=Oe==null?void 0:Oe.onClick)===null||_e===void 0||_e.call(Oe,we)},onChange:we=>{var _e;de.has(Pe)||ne(Pe,!0,[Pe],we.nativeEvent),(_e=Oe==null?void 0:Oe.onChange)===null||_e===void 0||_e.call(Oe,we)}})),checked:ze}}:Se=(je,Ee,Le)=>{var Pe;const ze=I(Ee,Le),Oe=de.has(ze),we=Q.has(ze),_e=q.get(ze);let Be;return O==="nest"?Be=we:Be=(Pe=_e==null?void 0:_e.indeterminate)!==null&&Pe!==void 0?Pe:we,{node:s.createElement(Ys,Object.assign({},_e,{indeterminate:Be,checked:Oe,skipGroup:!0,onClick:Qe=>{var lt;Qe.stopPropagation(),(lt=_e==null?void 0:_e.onClick)===null||lt===void 0||lt.call(_e,Qe)},onChange:Qe=>{var lt;const{nativeEvent:Ke}=Qe,{shiftKey:et}=Ke,st=ie.indexOf(ze),Ze=G.some(vt=>ie.includes(vt));if(et&&x&&Ze){const vt=j(st,ie,de),Ot=Array.from(de);m==null||m(!Oe,Ot.map(xt=>R(xt)),vt.map(xt=>R(xt))),Z(Ot,"multiple")}else{const vt=G;if(x){const Ot=Oe?el(vt,ze):Ol(vt,ze);ne(ze,!Oe,Ot,Ke)}else{const Ot=ei([].concat(ke(vt),[ze]),!0,V,U),{checkedKeys:xt,halfCheckedKeys:mt}=Ot;let yt=xt;if(Oe){const bt=new Set(xt);bt.delete(ze),yt=ei(Array.from(bt),{halfCheckedKeys:mt},V,U).checkedKeys}ne(ze,!Oe,yt,Ke)}}D(Oe?null:st),(lt=_e==null?void 0:_e.onChange)===null||lt===void 0||lt.call(_e,Qe)}})),checked:Oe}};const ge=(je,Ee,Le)=>{const{node:Pe,checked:ze}=Se(je,Ee,Le);return S?S(ze,Ee,Le,Pe):Pe};if(!ue.includes(Cs))if(ue.findIndex(je=>{var Ee;return((Ee=je[gm])===null||Ee===void 0?void 0:Ee.columnType)==="EXPAND_COLUMN"})===0){const[je,...Ee]=ue;ue=[je,Cs].concat(ke(Ee))}else ue=[Cs].concat(ke(ue));const ye=ue.indexOf(Cs);ue=ue.filter((je,Ee)=>je!==Cs||Ee===ye);const xe=ue[ye-1],$e=ue[ye+1];let He=p;He===void 0&&(($e==null?void 0:$e.fixed)!==void 0?He=$e.fixed:(xe==null?void 0:xe.fixed)!==void 0&&(He=xe.fixed)),He&&xe&&((fe=xe[gm])===null||fe===void 0?void 0:fe.columnType)==="EXPAND_COLUMN"&&xe.fixed===void 0&&(xe.fixed=He);const Te=oe(`${w}-selection-col`,{[`${w}-selection-col-with-dropdown`]:b&&h==="checkbox"}),Re=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(pe):t.columnTitle:Ce,Fe={fixed:He,width:g,className:`${w}-selection-column`,title:Re(),render:ge,onCell:t.onCell,align:t.align,[gm]:{className:Te}};return ue.map(je=>je===Cs?Fe:je)},[I,W,t,G,J,Q,g,ae,O,q,m,ne,U]),J]};function vwe(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:i}=t,l=`${n}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:c=>{r(a,c),c.stopPropagation()},className:oe(l,{[`${l}-spaced`]:!i,[`${l}-expanded`]:i&&o,[`${l}-collapsed`]:i&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function mwe(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const i=getComputedStyle(a),l=Number.parseInt(i.borderLeftWidth,10),c=Number.parseInt(i.borderRightWidth,10);o=r-l-c}return o}}const Xs=(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 Df(e,t){return t?`${t}-${e}`:`${e}`}const F1=(e,t)=>typeof e=="function"?e(t):e,gwe=(e,t)=>{const n=F1(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var pwe={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"},hwe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:pwe}))},bwe=s.forwardRef(hwe),ywe=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*a;break;case 1:o.bottom=0,o.left=-r*a;break;case 0:o.bottom=0,o.left=a;break}return ee.createElement("div",{style:o})};function Uq(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Cwe(e,t){var n=s.useState(!1),r=ce(n,2),a=r[0],o=r[1];fn(function(){if(a)return e(),function(){t()}},[a]),fn(function(){return o(!0),function(){o(!1)}},[])}var Swe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],xwe=s.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,o=e.motionNodes,i=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=Ue(e,Swe),m=s.useState(!0),g=ce(m,2),h=g[0],b=g[1],p=s.useContext(n3),S=p.prefixCls,C=o&&i!=="hide";fn(function(){o&&C!==h&&b(C)},[o]);var x=function(){o&&l()},w=s.useRef(!1),$=function(){o&&!w.current&&(w.current=!0,c())};Cwe(x,$);var E=function(I){C===I&&$()};return o?s.createElement(ga,Me({ref:t,visible:h},a,{motionAppear:i==="show",onVisibleChanged:E}),function(R,I){var O=R.className,T=R.style;return s.createElement("div",{ref:I,className:oe("".concat(S,"-treenode-motion"),O),style:T},o.map(function(_){var k=Object.assign({},(Uq(_.data),_.data)),A=_.title,j=_.key,D=_.isStart,F=_.isEnd;delete k.children;var L=mm(j,d);return s.createElement(Bm,Me({},k,L,{title:A,active:u,data:_.data,key:j,isStart:D,isEnd:F}))}))}):s.createElement(Bm,Me({domRef:t,className:n,style:r},f,{active:u}))});function wwe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,i){var l=new Map;o.forEach(function(u){l.set(u,!0)});var c=i.filter(function(u){return!l.has(u)});return c.length===1?c[0]:null}return n ").concat(t);return t}var Owe=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,i=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,g=e.dragOverNodeKey,h=e.dropPosition,b=e.motion,p=e.height,S=e.itemHeight,C=e.virtual,x=e.scrollWidth,w=e.focusable,$=e.activeItem,E=e.focused,R=e.tabIndex,I=e.onKeyDown,O=e.onFocus,T=e.onBlur,_=e.onActiveChange,k=e.onListChangeStart,A=e.onListChangeEnd,j=Ue(e,$we),D=s.useRef(null),F=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(Se){D.current.scrollTo(Se)},getIndentWidth:function(){return F.current.offsetWidth}}});var L=s.useState(a),B=ce(L,2),K=B[0],W=B[1],V=s.useState(r),q=ce(V,2),U=q[0],G=q[1],Y=s.useState(r),J=ce(Y,2),Q=J[0],Z=J[1],ne=s.useState([]),ae=ce(ne,2),le=ae[0],re=ae[1],fe=s.useState(null),ue=ce(fe,2),de=ue[0],ie=ue[1],se=s.useRef(r);se.current=r;function ve(){var pe=se.current;G(pe),Z(pe),re([]),ie(null),A()}fn(function(){W(a);var pe=wwe(K,a);if(pe.key!==null)if(pe.add){var Se=U.findIndex(function(Te){var Re=Te.key;return Re===pe.key}),ge=W_(z_(U,r,pe.key),C,p,S),ye=U.slice();ye.splice(Se+1,0,V_),Z(ye),re(ge),ie("show")}else{var xe=r.findIndex(function(Te){var Re=Te.key;return Re===pe.key}),$e=W_(z_(r,U,pe.key),C,p,S),He=r.slice();He.splice(xe+1,0,V_),Z(He),re($e),ie("hide")}else U!==r&&(G(r),Z(r))},[a,r]),s.useEffect(function(){m||ve()},[m]);var he=b?Q:r,Ce={expandedKeys:a,selectedKeys:o,loadedKeys:l,loadingKeys:c,checkedKeys:i,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:h,keyEntities:d};return s.createElement(s.Fragment,null,E&&$&&s.createElement("span",{style:H_,"aria-live":"assertive"},Pwe($)),s.createElement("div",null,s.createElement("input",{style:H_,disabled:w===!1||f,tabIndex:w!==!1?R:null,onKeyDown:I,onFocus:O,onBlur:T,value:"",onChange:Ewe,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(n,"-indent")},s.createElement("div",{ref:F,className:"".concat(n,"-indent-unit")}))),s.createElement(i1,Me({},j,{data:he,itemKey:K_,height:p,fullHeight:!1,virtual:C,itemHeight:S,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:D,role:"tree",onVisibleChange:function(Se){Se.every(function(ge){return K_(ge)!==eu})&&ve()}}),function(pe){var Se=pe.pos,ge=Object.assign({},(Uq(pe.data),pe.data)),ye=pe.title,xe=pe.key,$e=pe.isStart,He=pe.isEnd,Te=Eg(xe,Se);delete ge.key,delete ge.children;var Re=mm(Te,Ce);return s.createElement(xwe,Me({},ge,Re,{title:ye,active:!!$&&xe===$.key,pos:Se,data:pe.data,isStart:$e,isEnd:He,motion:b,motionNodes:xe===eu?le:null,motionType:de,onMotionStart:k,onMotionEnd:ve,treeNodeRequiredProps:Ce,onMouseMove:function(){_(null)}}))}))}),Iwe=10,D1=(function(e){mo(n,e);var t=ko(n);function n(){var r;ir(this,n);for(var a=arguments.length,o=new Array(a),i=0;i2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,g=f.dropPosition,h=f.dropTargetKey,b=f.dropTargetPos,p=f.dropAllowed;if(p){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var C=P(P({},mm(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:co(r.state.keyEntities,h).node}),x=m.includes(h);Kn(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=r3(b),$={event:l,node:Xr(C),dragNode:r.dragNodeProps?Xr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:g!==0,dropPosition:g+Number(w[w.length-1])};d||S==null||S($),r.dragNodeProps=null}}}),z(Ft(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),z(Ft(r),"triggerExpandActionExpand",function(l,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,g=c.key,h=c.isLeaf;if(!(h||l.shiftKey||l.metaKey||l.ctrlKey)){var b=f.filter(function(S){return S.key===g})[0],p=Xr(P(P({},mm(g,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(m?el(d,g):Ol(d,g)),r.onNodeExpand(l,p)}}),z(Ft(r),"onNodeClick",function(l,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),z(Ft(r),"onNodeDoubleClick",function(l,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),z(Ft(r),"onNodeSelect",function(l,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,g=r.props,h=g.onSelect,b=g.multiple,p=c.selected,S=c[m.key],C=!p;C?b?u=Ol(u,S):u=[S]:u=el(u,S);var x=u.map(function(w){var $=co(f,w);return $?$.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:C,node:c,selectedNodes:x,nativeEvent:l.nativeEvent})}),z(Ft(r),"onNodeCheck",function(l,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,g=d.halfCheckedKeys,h=r.props,b=h.checkStrictly,p=h.onCheck,S=c.key,C,x={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(b){var w=u?Ol(m,S):el(m,S),$=el(g,S);C={checked:w,halfChecked:$},x.checkedNodes=w.map(function(_){return co(f,_)}).filter(Boolean).map(function(_){return _.node}),r.setUncontrolledState({checkedKeys:w})}else{var E=ei([].concat(ke(m),[S]),!0,f),R=E.checkedKeys,I=E.halfCheckedKeys;if(!u){var O=new Set(R);O.delete(S);var T=ei(Array.from(O),{halfCheckedKeys:I},f);R=T.checkedKeys,I=T.halfCheckedKeys}C=R,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=I,R.forEach(function(_){var k=co(f,_);if(k){var A=k.node,j=k.pos;x.checkedNodes.push(A),x.checkedNodesPositions.push({node:A,pos:j})}}),r.setUncontrolledState({checkedKeys:R},!1,{halfCheckedKeys:I})}p==null||p(C,x)}),z(Ft(r),"onNodeLoad",function(l){var c,u=l.key,d=r.state.keyEntities,f=co(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(g,h){r.setState(function(b){var p=b.loadedKeys,S=p===void 0?[]:p,C=b.loadingKeys,x=C===void 0?[]:C,w=r.props,$=w.loadData,E=w.onLoad;if(!$||S.includes(u)||x.includes(u))return null;var R=$(l);return R.then(function(){var I=r.state.loadedKeys,O=Ol(I,u);E==null||E(O,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:O}),r.setState(function(T){return{loadingKeys:el(T.loadingKeys,u)}}),g()}).catch(function(I){if(r.setState(function(T){return{loadingKeys:el(T.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=Iwe){var O=r.state.loadedKeys;Kn(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ol(O,u)}),g()}h(I)}),{loadingKeys:Ol(x,u)}})});return m.catch(function(){}),m}}),z(Ft(r),"onNodeMouseEnter",function(l,c){var u=r.props.onMouseEnter;u==null||u({event:l,node:c})}),z(Ft(r),"onNodeMouseLeave",function(l,c){var u=r.props.onMouseLeave;u==null||u({event:l,node:c})}),z(Ft(r),"onNodeContextMenu",function(l,c){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),z(Ft(r),"onFocus",function(){var l=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(l).forEach(function(g){if(r.props.hasOwnProperty(g)){f=!1;return}d=!0,m[g]=l[g]}),d&&(!c||f)&&r.setState(P(P({},m),u))}}),z(Ft(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return lr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,i=a.itemScrollOffset,l=i===void 0?0:i;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:l}))}},{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,o=a.focused,i=a.flattenNodes,l=a.keyEntities,c=a.draggingNodeKey,u=a.activeKey,d=a.dropLevelOffset,f=a.dropContainerKey,m=a.dropTargetKey,g=a.dropPosition,h=a.dragOverNodeKey,b=a.indent,p=this.props,S=p.prefixCls,C=p.className,x=p.style,w=p.showLine,$=p.focusable,E=p.tabIndex,R=E===void 0?0:E,I=p.selectable,O=p.showIcon,T=p.icon,_=p.switcherIcon,k=p.draggable,A=p.checkable,j=p.checkStrictly,D=p.disabled,F=p.motion,L=p.loadData,B=p.filterTreeNode,K=p.height,W=p.itemHeight,V=p.scrollWidth,q=p.virtual,U=p.titleRender,G=p.dropIndicatorRender,Y=p.onContextMenu,J=p.onScroll,Q=p.direction,Z=p.rootClassName,ne=p.rootStyle,ae=ar(this.props,{aria:!0,data:!0}),le;k&&(it(k)==="object"?le=k:typeof k=="function"?le={nodeDraggable:k}:le={});var re={prefixCls:S,selectable:I,showIcon:O,icon:T,switcherIcon:_,draggable:le,draggingNodeKey:c,checkable:A,checkStrictly:j,disabled:D,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:g,dragOverNodeKey:h,indent:b,direction:Q,dropIndicatorRender:G,loadData:L,filterTreeNode:B,titleRender:U,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 s.createElement(n3.Provider,{value:re},s.createElement("div",{className:oe(S,C,Z,z(z(z({},"".concat(S,"-show-line"),w),"".concat(S,"-focused"),o),"".concat(S,"-active-focused"),u!==null)),style:ne},s.createElement(Owe,Me({ref:this.listRef,prefixCls:S,style:x,data:i,disabled:D,selectable:I,checkable:!!A,motion:F,dragging:c!==null,height:K,itemHeight:W,virtual:q,focusable:$,focused:o,tabIndex:R,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Y,onScroll:J,scrollWidth:V},this.getTreeNodeRequiredProps(),ae))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var i=o.prevProps,l={prevProps:a};function c(R){return!i&&a.hasOwnProperty(R)||i&&i[R]!==a[R]}var u,d=o.fieldNames;if(c("fieldNames")&&(d=rf(a.fieldNames),l.fieldNames=d),c("treeData")?u=a.treeData:c("children")&&(Kn(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=tK(a.children)),u){l.treeData=u;var f=Pg(u,{fieldNames:d});l.keyEntities=P(z({},eu,Gq),f.keyEntities)}var m=l.keyEntities||o.keyEntities;if(c("expandedKeys")||i&&c("autoExpandParent"))l.expandedKeys=a.autoExpandParent||!i&&a.defaultExpandParent?pO(a.expandedKeys,m):a.expandedKeys;else if(!i&&a.defaultExpandAll){var g=P({},m);delete g[eu];var h=[];Object.keys(g).forEach(function(R){var I=g[R];I.children&&I.children.length&&h.push(I.key)}),l.expandedKeys=h}else!i&&a.defaultExpandedKeys&&(l.expandedKeys=a.autoExpandParent||a.defaultExpandParent?pO(a.defaultExpandedKeys,m):a.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var b=jx(u||o.treeData,l.expandedKeys||o.expandedKeys,d);l.flattenNodes=b}if(a.selectable&&(c("selectedKeys")?l.selectedKeys=L_(a.selectedKeys,a):!i&&a.defaultSelectedKeys&&(l.selectedKeys=L_(a.defaultSelectedKeys,a))),a.checkable){var p;if(c("checkedKeys")?p=Kx(a.checkedKeys)||{}:!i&&a.defaultCheckedKeys?p=Kx(a.defaultCheckedKeys)||{}:u&&(p=Kx(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),p){var S=p,C=S.checkedKeys,x=C===void 0?[]:C,w=S.halfCheckedKeys,$=w===void 0?[]:w;if(!a.checkStrictly){var E=ei(x,!0,m);x=E.checkedKeys,$=E.halfCheckedKeys}l.checkedKeys=x,l.halfCheckedKeys=$}}return c("loadedKeys")&&(l.loadedKeys=a.loadedKeys),l}}]),n})(s.Component);z(D1,"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:ywe,allowDrop:function(){return!0},expandAction:!1});z(D1,"TreeNode",Bm);var Rwe={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"},Mwe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Rwe}))},Yq=s.forwardRef(Mwe),Twe={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"},Nwe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Twe}))},_we=s.forwardRef(Nwe),jwe={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"},Fwe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:jwe}))},Dwe=s.forwardRef(Fwe),kwe={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"},Awe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:kwe}))},Lwe=s.forwardRef(Awe);const Bwe=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:o,controlItemBgHover:i})=>({[`${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:o},"&:hover:before":{background:i}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:o,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),zwe=new Sn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Hwe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Vwe=(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:`${me(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Wwe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,indentSize:i,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},$n(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:ai(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:zwe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:me(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Hwe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).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(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Vwe(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${me(t.calc(o).div(2).equal())} !important`}})}},Xq=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=en(t,{treeCls:r,treeNodeCls:a,treeNodePadding:o});return[Wwe(e,i),n&&Bwe(i)].filter(Boolean)},Qq=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},Kwe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},Qq(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},qwe=dn("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:E1(`${t}-checkbox`,e)},Xq(t,e),Wy(e)],Kwe),q_=4;function Uwe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,i=o==="ltr"?"left":"right",l=o==="ltr"?"right":"left",c={[i]:-n*a+q_,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[i]=a+q_;break}return ee.createElement("div",{style:c,className:`${r}-drop-indicator`})}var Gwe={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"},Ywe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Gwe}))},Xwe=s.forwardRef(Ywe),Qwe={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"},Jwe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:Qwe}))},Zwe=s.forwardRef(Jwe),e2e={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"},t2e=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:e2e}))},n2e=s.forwardRef(t2e);const Jq=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:o,showLine:i,switcherLoadingIcon:l}=e,{isLeaf:c,expanded:u,loading:d}=o;if(d)return s.isValidElement(l)?l:s.createElement(Ya,{className:`${r}-switcher-loading-icon`});let f;if(i&&typeof i=="object"&&(f=i.showLeafIcon),c){if(!i)return null;if(typeof f!="boolean"&&f){const h=typeof f=="function"?f(o):f,b=`${r}-switcher-line-custom-icon`;return s.isValidElement(h)?zr(h,{className:oe((t=h.props)===null||t===void 0?void 0:t.className,b)}):h}return f?s.createElement(Yq,{className:`${r}-switcher-line-icon`}):s.createElement("span",{className:`${r}-switcher-leaf-line`})}const m=`${r}-switcher-icon`,g=typeof a=="function"?a(o):a;return s.isValidElement(g)?zr(g,{className:oe((n=g.props)===null||n===void 0?void 0:n.className,m)}):g!==void 0?g:i?u?s.createElement(Zwe,{className:`${r}-switcher-line-icon`}):s.createElement(n2e,{className:`${r}-switcher-line-icon`}):s.createElement(Xwe,{className:m})},Zq=ee.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:i}=ee.useContext(jt),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:g=!1,children:h,checkable:b=!1,selectable:p=!0,draggable:S,disabled:C,motion:x,style:w}=e,$=r("tree",l),E=r(),R=ee.useContext(Br),I=C??R,O=x??Object.assign(Object.assign({},_m(E)),{motionAppear:!1}),T=Object.assign(Object.assign({},e),{checkable:b,selectable:p,showIcon:u,motion:O,blockNode:g,disabled:I,showLine:!!d,dropIndicatorRender:Uwe}),[_,k,A]=qwe($),[,j]=Ur(),D=j.paddingXS/2+(((n=j.Tree)===null||n===void 0?void 0:n.titleHeight)||j.controlHeightSM),F=ee.useMemo(()=>{if(!S)return!1;let B={};switch(typeof S){case"function":B.nodeDraggable=S;break;case"object":B=Object.assign({},S);break}return B.icon!==!1&&(B.icon=B.icon||ee.createElement(Lwe,null)),B},[S]),L=B=>ee.createElement(Jq,{prefixCls:$,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:B,showLine:d});return _(ee.createElement(D1,Object.assign({itemHeight:D,ref:t,virtual:o},T,{style:Object.assign(Object.assign({},i==null?void 0:i.style),w),prefixCls:$,className:oe({[`${$}-icon-hide`]:!u,[`${$}-block-node`]:g,[`${$}-unselectable`]:!p,[`${$}-rtl`]:a==="rtl",[`${$}-disabled`]:I},i==null?void 0:i.className,c,k,A),direction:a,checkable:b&&ee.createElement("span",{className:`${$}-checkbox-inner`}),selectable:p,switcherIcon:L,draggable:F}),h))}),U_=0,qx=1,G_=2;function a3(e,t,n){const{key:r,children:a}=n;function o(i){const l=i[r],c=i[a];t(l,i)!==!1&&a3(c||[],t,n)}e.forEach(o)}function r2e({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const o=[];let i=U_;if(n&&n===r)return[n];if(!n||!r)return[];function l(c){return c===n||c===r}return a3(e,c=>{if(i===G_)return!1;if(l(c)){if(o.push(c),i===U_)i=qx;else if(i===qx)return i=G_,!1}else i===qx&&o.push(c);return t.includes(c)},rf(a)),o}function Ux(e,t,n){const r=ke(t),a=[];return a3(e,(o,i)=>{const l=r.indexOf(o);return l!==-1&&(a.push(i),r.splice(l,1)),!!r.length},rf(n)),a}var Y_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=Y_(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const i=s.useRef(null),l=s.useRef(null),c=()=>{const{keyEntities:I}=Pg(X_(o),{fieldNames:o.fieldNames});let O;return n?O=Object.keys(I):r?O=pO(o.expandedKeys||a||[],I):O=o.expandedKeys||a||[],O},[u,d]=s.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[f,m]=s.useState(()=>c());s.useEffect(()=>{"selectedKeys"in o&&d(o.selectedKeys)},[o.selectedKeys]),s.useEffect(()=>{"expandedKeys"in o&&m(o.expandedKeys)},[o.expandedKeys]);const g=(I,O)=>{var T;return"expandedKeys"in o||m(I),(T=o.onExpand)===null||T===void 0?void 0:T.call(o,I,O)},h=(I,O)=>{var T;const{multiple:_,fieldNames:k}=o,{node:A,nativeEvent:j}=O,{key:D=""}=A,F=X_(o),L=Object.assign(Object.assign({},O),{selected:!0}),B=(j==null?void 0:j.ctrlKey)||(j==null?void 0:j.metaKey),K=j==null?void 0:j.shiftKey;let W;_&&B?(W=I,i.current=D,l.current=W,L.selectedNodes=Ux(F,W,k)):_&&K?(W=Array.from(new Set([].concat(ke(l.current||[]),ke(r2e({treeData:F,expandedKeys:f,startKey:D,endKey:i.current,fieldNames:k}))))),L.selectedNodes=Ux(F,W,k)):(W=[D],i.current=D,l.current=W,L.selectedNodes=Ux(F,W,k)),(T=o.onSelect)===null||T===void 0||T.call(o,W,L),"selectedKeys"in o||d(W)},{getPrefixCls:b,direction:p}=s.useContext(jt),{prefixCls:S,className:C,showIcon:x=!0,expandAction:w="click"}=o,$=Y_(o,["prefixCls","className","showIcon","expandAction"]),E=b("tree",S),R=oe(`${E}-directory`,{[`${E}-directory-rtl`]:p==="rtl"},C);return s.createElement(Zq,Object.assign({icon:a2e,ref:t,blockNode:!0},$,{showIcon:x,expandAction:w,prefixCls:E,className:R,expandedKeys:f,selectedKeys:u,onSelect:h,onExpand:g}))},i2e=s.forwardRef(o2e),k1=Zq;k1.DirectoryTree=i2e;k1.TreeNode=Bm;const Q_=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?s.createElement("div",{className:`${r}-filter-dropdown-search`},s.createElement(Nf,{prefix:s.createElement(s1,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},l2e=e=>{const{keyCode:t}=e;t===ot.ENTER&&e.stopPropagation()},s2e=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:l2e,ref:t},e.children));function Id(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(ke(t),ke(Id(r))))}),t}function c2e(e){return e.some(({children:t})=>t)}function eU(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function tU({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:o}){return e.map((i,l)=>{const c=String(i.value);if(i.children)return{key:c||l,label:i.text,popupClassName:`${t}-dropdown-submenu`,children:tU({filters:i.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:o})};const u=r?Ys:Rf,d={key:i.value!==void 0?c:l,label:s.createElement(s.Fragment,null,s.createElement(u,{checked:n.includes(c)}),s.createElement("span",null,i.text))};return a.trim()?typeof o=="function"?o(a,i)?d:null:eU(a,i.text)?d:null:d})}function Gx(e){return e||[]}const u2e=e=>{var t,n,r,a;const{tablePrefixCls:o,prefixCls:i,column:l,dropdownPrefixCls:c,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:g=!1,filterState:h,triggerFilter:b,locale:p,children:S,getPopupContainer:C,rootClassName:x}=e,{filterResetToDefaultFilteredValue:w,defaultFilteredValue:$,filterDropdownProps:E={},filterDropdownOpen:R,filterDropdownVisible:I,onFilterDropdownVisibleChange:O,onFilterDropdownOpenChange:T}=l,[_,k]=s.useState(!1),A=!!(h&&(!((t=h.filteredKeys)===null||t===void 0)&&t.length||h.forceFiltered)),j=pe=>{var Se;k(pe),(Se=E.onOpenChange)===null||Se===void 0||Se.call(E,pe),T==null||T(pe),O==null||O(pe)},D=(a=(r=(n=E.open)!==null&&n!==void 0?n:R)!==null&&r!==void 0?r:I)!==null&&a!==void 0?a:_,F=h==null?void 0:h.filteredKeys,[L,B]=Vne(Gx(F)),K=({selectedKeys:pe})=>{B(pe)},W=(pe,{node:Se,checked:ge})=>{K(f?{selectedKeys:pe}:{selectedKeys:ge&&Se.key?[Se.key]:[]})};s.useEffect(()=>{_&&K({selectedKeys:Gx(F)})},[F]);const[V,q]=s.useState([]),U=pe=>{q(pe)},[G,Y]=s.useState(""),J=pe=>{const{value:Se}=pe.target;Y(Se)};s.useEffect(()=>{_||Y("")},[_]);const Q=pe=>{const Se=pe!=null&&pe.length?pe:null;if(Se===null&&(!h||!h.filteredKeys)||ti(Se,h==null?void 0:h.filteredKeys,!0))return null;b({column:l,key:u,filteredKeys:Se})},Z=()=>{j(!1),Q(L())},ne=({confirm:pe,closeDropdown:Se}={confirm:!1,closeDropdown:!1})=>{pe&&Q([]),Se&&j(!1),Y(""),B(w?($||[]).map(ge=>String(ge)):[])},ae=({closeDropdown:pe}={closeDropdown:!0})=>{pe&&j(!1),Q(L())},le=(pe,Se)=>{Se.source==="trigger"&&(pe&&F!==void 0&&B(Gx(F)),j(pe),!pe&&!l.filterDropdown&&d&&Z())},re=oe({[`${c}-menu-without-submenu`]:!c2e(l.filters||[])}),fe=pe=>{if(pe.target.checked){const Se=Id(l==null?void 0:l.filters).map(ge=>String(ge));B(Se)}else B([])},ue=({filters:pe})=>(pe||[]).map((Se,ge)=>{const ye=String(Se.value),xe={title:Se.text,key:Se.value!==void 0?ye:String(ge)};return Se.children&&(xe.children=ue({filters:Se.children})),xe}),de=pe=>{var Se;return Object.assign(Object.assign({},pe),{text:pe.title,value:pe.key,children:((Se=pe.children)===null||Se===void 0?void 0:Se.map(ge=>de(ge)))||[]})};let ie;const{direction:se,renderEmpty:ve}=s.useContext(jt);if(typeof l.filterDropdown=="function")ie=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:pe=>K({selectedKeys:pe}),selectedKeys:L(),confirm:ae,clearFilters:ne,filters:l.filters,visible:D,close:()=>{j(!1)}});else if(l.filterDropdown)ie=l.filterDropdown;else{const pe=L()||[],Se=()=>{var ye,xe;const $e=(ye=ve==null?void 0:ve("Table.filter"))!==null&&ye!==void 0?ye:s.createElement($r,{image:$r.PRESENTED_IMAGE_SIMPLE,description:p.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((l.filters||[]).length===0)return $e;if(m==="tree")return s.createElement(s.Fragment,null,s.createElement(Q_,{filterSearch:g,value:G,onChange:J,tablePrefixCls:o,locale:p}),s.createElement("div",{className:`${o}-filter-dropdown-tree`},f?s.createElement(Ys,{checked:pe.length===Id(l.filters).length,indeterminate:pe.length>0&&pe.lengthtypeof g=="function"?g(G,de(Re)):eU(G,Re.title):void 0})));const He=tU({filters:l.filters||[],filterSearch:g,prefixCls:i,filteredKeys:L(),filterMultiple:f,searchValue:G}),Te=He.every(Re=>Re===null);return s.createElement(s.Fragment,null,s.createElement(Q_,{filterSearch:g,value:G,onChange:J,tablePrefixCls:o,locale:p}),Te?$e:s.createElement(Yl,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:re,onSelect:K,onDeselect:K,selectedKeys:pe,getPopupContainer:C,openKeys:V,onOpenChange:U,items:He}))},ge=()=>w?ti(($||[]).map(ye=>String(ye)),pe,!0):pe.length===0;ie=s.createElement(s.Fragment,null,Se(),s.createElement("div",{className:`${i}-dropdown-btns`},s.createElement(_n,{type:"link",size:"small",disabled:ge(),onClick:()=>ne()},p.filterReset),s.createElement(_n,{type:"primary",size:"small",onClick:Z},p.filterConfirm)))}l.filterDropdown&&(ie=s.createElement(BV,{selectable:void 0},ie)),ie=s.createElement(s2e,{className:`${i}-dropdown`},ie);const Ce=Vb({trigger:["click"],placement:se==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let pe;return typeof l.filterIcon=="function"?pe=l.filterIcon(A):l.filterIcon?pe=l.filterIcon:pe=s.createElement(bwe,null),s.createElement("span",{role:"button",tabIndex:-1,className:oe(`${i}-trigger`,{active:A}),onClick:Se=>{Se.stopPropagation()}},pe)})(),getPopupContainer:C},Object.assign(Object.assign({},E),{rootClassName:oe(x,E.rootClassName),open:D,onOpenChange:le,popupRender:()=>typeof(E==null?void 0:E.dropdownRender)=="function"?E.dropdownRender(ie):ie}));return s.createElement("div",{className:`${i}-column`},s.createElement("span",{className:`${o}-column-title`},S),s.createElement(hu,Object.assign({},Ce)))},SO=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var i;const l=Df(o,n),c=a.filterDropdown!==void 0;if(a.filters||c||"onFilter"in a)if("filteredValue"in a){let u=a.filteredValue;c||(u=(i=u==null?void 0:u.map(String))!==null&&i!==void 0?i:u),r.push({column:a,key:Xs(a,l),filteredKeys:u,forceFiltered:a.filtered})}else r.push({column:a,key:Xs(a,l),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(ke(r),ke(SO(a.children,t,l))))}),r};function nU(e,t,n,r,a,o,i,l,c){return n.map((u,d)=>{const f=Df(d,l),{filterOnClose:m=!0,filterMultiple:g=!0,filterMode:h,filterSearch:b}=u;let p=u;if(p.filters||p.filterDropdown){const S=Xs(p,f),C=r.find(({key:x})=>S===x);p=Object.assign(Object.assign({},p),{title:x=>s.createElement(u2e,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:p,columnKey:S,filterState:C,filterOnClose:m,filterMultiple:g,filterMode:h,filterSearch:b,triggerFilter:o,locale:a,getPopupContainer:i,rootClassName:c},F1(u.title,x))})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:nU(e,t,p.children,r,a,o,i,f,c)})),p})}const J_=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:a})=>{const o=n,{filters:i,filterDropdown:l}=a;if(l)t[o]=r||null;else if(Array.isArray(r)){const c=Id(i);t[o]=c.filter(u=>r.includes(String(u)))}else t[o]=null}),t},xO=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:i,filters:l},filteredKeys:c}=o;return i&&c&&c.length?a.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=Id(l),m=f.findIndex(h=>String(h)===String(d)),g=m!==-1?f[m]:d;return u[n]&&(u[n]=xO(u[n],t,n)),i(g,u)})):a},e),rU=e=>e.flatMap(t=>"children"in t?[t].concat(ke(rU(t.children||[]))):[t]),d2e=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:i,rootClassName:l}=e;ul();const c=s.useMemo(()=>rU(r||[]),[r]),[u,d]=s.useState(()=>SO(c,!0)),f=s.useMemo(()=>{const b=SO(c,!1);if(b.length===0)return b;let p=!0;if(b.forEach(({filteredKeys:S})=>{S!==void 0&&(p=!1)}),p){const S=(c||[]).map((C,x)=>Xs(C,Df(x)));return u.filter(({key:C})=>S.includes(C)).map(C=>{const x=c[S.indexOf(C.key)];return Object.assign(Object.assign({},C),{column:Object.assign(Object.assign({},C.column),x),forceFiltered:x.filtered})})}return b},[c,u]),m=s.useMemo(()=>J_(f),[f]),g=b=>{const p=f.filter(({key:S})=>S!==b.key);p.push(b),d(p),a(J_(p),p)};return[b=>nU(t,n,b,f,i,g,o,void 0,l),f,m]},aU=(e,t,n)=>{const r=s.useRef({});function a(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let u=function(d){d.forEach((f,m)=>{const g=n(f,m);c.set(g,f),f&&typeof f=="object"&&t in f&&u(f[t]||[])})};var l=u;const c=new Map;u(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(i=r.current.kvMap)===null||i===void 0?void 0:i.get(o)}return[a]};var f2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function m2e(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=f2e(r,["total"]),[i,l]=s.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:oU})),c=Vb(i,o,{total:a>0?a:e}),u=Math.ceil((a||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,g)=>{l({current:m??1,pageSize:g||c.pageSize})},f=(m,g)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,m,g)),d(m,g),t(m,g||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var g2e={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"},p2e=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:g2e}))},h2e=s.forwardRef(p2e),b2e={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"},y2e=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:b2e}))},C2e=s.forwardRef(y2e);const nb="ascend",Yx="descend",oy=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,Z_=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,S2e=(e,t)=>t?e[e.indexOf(t)+1]:e[0],wO=(e,t,n)=>{let r=[];const a=(o,i)=>{r.push({column:o,key:Xs(o,i),multiplePriority:oy(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,i)=>{const l=Df(i,n);o.children?("sortOrder"in o&&a(o,l),r=[].concat(ke(r),ke(wO(o.children,t,l)))):o.sorter&&("sortOrder"in o?a(o,l):t&&o.defaultSortOrder&&r.push({column:o,key:Xs(o,l),multiplePriority:oy(o),sortOrder:o.defaultSortOrder}))}),r},iU=(e,t,n,r,a,o,i,l)=>(t||[]).map((u,d)=>{const f=Df(d,l);let m=u;if(m.sorter){const g=m.sortDirections||a,h=m.showSorterTooltip===void 0?i:m.showSorterTooltip,b=Xs(m,f),p=n.find(({key:O})=>O===b),S=p?p.sortOrder:null,C=S2e(g,S);let x;if(u.sortIcon)x=u.sortIcon({sortOrder:S});else{const O=g.includes(nb)&&s.createElement(C2e,{className:oe(`${e}-column-sorter-up`,{active:S===nb})}),T=g.includes(Yx)&&s.createElement(h2e,{className:oe(`${e}-column-sorter-down`,{active:S===Yx})});x=s.createElement("span",{className:oe(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(O&&T)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},O,T))}const{cancelSort:w,triggerAsc:$,triggerDesc:E}=o||{};let R=w;C===Yx?R=E:C===nb&&(R=$);const I=typeof h=="object"?Object.assign({title:R},h):{title:R};m=Object.assign(Object.assign({},m),{className:oe(m.className,{[`${e}-column-sort`]:S}),title:O=>{const T=`${e}-column-sorters`,_=s.createElement("span",{className:`${e}-column-title`},F1(u.title,O)),k=s.createElement("div",{className:T},_,x);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?s.createElement("div",{className:oe(T,`${T}-tooltip-target-sorter`)},_,s.createElement(Bn,Object.assign({},I),x)):s.createElement(Bn,Object.assign({},I),k):k},onHeaderCell:O=>{var T;const _=((T=u.onHeaderCell)===null||T===void 0?void 0:T.call(u,O))||{},k=_.onClick,A=_.onKeyDown;_.onClick=F=>{r({column:u,key:b,sortOrder:C,multiplePriority:oy(u)}),k==null||k(F)},_.onKeyDown=F=>{F.keyCode===ot.ENTER&&(r({column:u,key:b,sortOrder:C,multiplePriority:oy(u)}),A==null||A(F))};const j=gwe(u.title,{}),D=j==null?void 0:j.toString();return S&&(_["aria-sort"]=S==="ascend"?"ascending":"descending"),_["aria-label"]=D||"",_.className=oe(_.className,`${e}-column-has-sorters`),_.tabIndex=0,u.ellipsis&&(_.title=(j??"").toString()),_}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:iU(e,m.children,n,r,a,o,i,f)})),m}),ej=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},tj=e=>{const t=e.filter(({sortOrder:n})=>n).map(ej);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},ej(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},$O=(e,t,n)=>{const r=t.slice().sort((i,l)=>l.multiplePriority-i.multiplePriority),a=e.slice(),o=r.filter(({column:{sorter:i},sortOrder:l})=>Z_(i)&&l);return o.length?a.sort((i,l)=>{for(let c=0;c{const l=i[n];return l?Object.assign(Object.assign({},i),{[n]:$O(l,t,n)}):i}):a},x2e=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:i}=e,[l,c]=s.useState(()=>wO(n,!0)),u=(b,p)=>{const S=[];return b.forEach((C,x)=>{const w=Df(x,p);if(S.push(Xs(C,w)),Array.isArray(C.children)){const $=u(C.children,w);S.push.apply(S,ke($))}}),S},d=s.useMemo(()=>{let b=!0;const p=wO(n,!1);if(!p.length){const w=u(n);return l.filter(({key:$})=>w.includes($))}const S=[];function C(w){b?S.push(w):S.push(Object.assign(Object.assign({},w),{sortOrder:null}))}let x=null;return p.forEach(w=>{x===null?(C(w),w.sortOrder&&(w.multiplePriority===!1?b=!1:x=!0)):(x&&w.multiplePriority!==!1||(b=!1),C(w))}),S},[n,l]),f=s.useMemo(()=>{var b,p;const S=d.map(({column:C,sortOrder:x})=>({column:C,order:x}));return{sortColumns:S,sortColumn:(b=S[0])===null||b===void 0?void 0:b.column,sortOrder:(p=S[0])===null||p===void 0?void 0:p.order}},[d]),m=b=>{let p;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?p=[b]:p=[].concat(ke(d.filter(({key:S})=>S!==b.key)),[b]),c(p),i(tj(p),p)};return[b=>iU(t,b,d,m,r,a,o),d,f,()=>tj(d)]},lU=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=F1(r.title,t),"children"in a&&(a.children=lU(a.children,t)),a}),w2e=e=>[s.useCallback(n=>lU(n,e),[e])],$2e=Hq((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),E2e=Wq((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),P2e=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:i,tablePaddingHorizontal:l,calc:c}=e,u=`${me(n)} ${r} ${a}`,d=(f,m,g)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${me(c(m).mul(-1).equal())} ${me(c(c(g).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[` > ${t}-content, > ${t}-header, @@ -390,10 +390,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${me(c(i).mul(-1).equal())} ${me(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${me(n)} 0 ${me(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},d2e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ni),{wordBreak:"keep-all",[` + `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${me(n)} 0 ${me(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},O2e=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ri),{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"}})}}},f2e=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}}}}},v2e=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:i,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:g,paddingXXS:h,expandIconMarginTop:b,expandIconSize:p,expandIconHalfInner:S,expandIconScale:C,calc:x}=e,w=`${me(a)} ${i} ${l}`,$=x(h).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},yR(e)),{position:"relative",float:"left",width:p,height:p,color:"inherit",lineHeight:me(p),background:c,border:w,borderRadius:d,transform:`scale(${C})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:$,insetInlineStart:$,height:a},"&::after":{top:$,bottom:$,insetInlineStart:S,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:b,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${me(x(f).mul(-1).equal())} ${me(x(m).mul(-1).equal())}`,padding:`${me(f)} ${me(m)}`}}}},m2e=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:i,paddingXS:l,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:g,tablePaddingHorizontal:h,borderRadius:b,motionDurationSlow:p,colorIcon:S,colorPrimary:C,tableHeaderFilterActiveBg:x,colorTextDisabled:w,tableFilterDropdownBg:$,tableFilterDropdownHeight:E,controlItemBgHover:R,controlItemBgActive:I,boxShadowSecondary:O,filterDropdownMenuBg:T,calc:N}=e,A=`${n}-dropdown`,k=`${t}-filter-dropdown`,j=`${n}-tree`,D=`${me(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(i).mul(-1).equal(),marginInline:`${me(i)} ${me(N(h).div(2).mul(-1).equal())}`,padding:`0 ${me(i)}`,color:m,fontSize:g,borderRadius:b,cursor:"pointer",transition:`all ${p}`,"&:hover":{color:S,background:x},"&.active":{color:C}}}},{[`${n}-dropdown`]:{[k]:Object.assign(Object.assign({},wn(e)),{minWidth:a,backgroundColor:$,borderRadius:b,boxShadow:O,overflow:"hidden",[`${A}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:T,"&:empty::after":{display:"block",padding:`${me(l)} 0`,color:w,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${k}-tree`]:{paddingBlock:`${me(l)} 0`,paddingInline:l,[j]:{padding:0},[`${j}-treenode ${j}-node-content-wrapper:hover`]:{backgroundColor:R},[`${j}-treenode-checkbox-checked ${j}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${k}-search`]:{padding:l,borderBottom:D,"&-input":{input:{minWidth:o},[r]:{color:w}}},[`${k}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${k}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${me(N(l).sub(u).equal())} ${me(l)}`,overflow:"hidden",borderTop:D}})}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},g2e=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:i,zIndexTableSticky:l,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},I2e=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}}}}},R2e=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:i,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:g,paddingXXS:h,expandIconMarginTop:b,expandIconSize:p,expandIconHalfInner:S,expandIconScale:C,calc:x}=e,w=`${me(a)} ${i} ${l}`,$=x(h).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},NR(e)),{position:"relative",float:"left",width:p,height:p,color:"inherit",lineHeight:me(p),background:c,border:w,borderRadius:d,transform:`scale(${C})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:$,insetInlineStart:$,height:a},"&::after":{top:$,bottom:$,insetInlineStart:S,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:b,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${me(x(f).mul(-1).equal())} ${me(x(m).mul(-1).equal())}`,padding:`${me(f)} ${me(m)}`}}}},M2e=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:i,paddingXS:l,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:g,tablePaddingHorizontal:h,borderRadius:b,motionDurationSlow:p,colorIcon:S,colorPrimary:C,tableHeaderFilterActiveBg:x,colorTextDisabled:w,tableFilterDropdownBg:$,tableFilterDropdownHeight:E,controlItemBgHover:R,controlItemBgActive:I,boxShadowSecondary:O,filterDropdownMenuBg:T,calc:_}=e,k=`${n}-dropdown`,A=`${t}-filter-dropdown`,j=`${n}-tree`,D=`${me(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:_(i).mul(-1).equal(),marginInline:`${me(i)} ${me(_(h).div(2).mul(-1).equal())}`,padding:`0 ${me(i)}`,color:m,fontSize:g,borderRadius:b,cursor:"pointer",transition:`all ${p}`,"&:hover":{color:S,background:x},"&.active":{color:C}}}},{[`${n}-dropdown`]:{[A]:Object.assign(Object.assign({},$n(e)),{minWidth:a,backgroundColor:$,borderRadius:b,boxShadow:O,overflow:"hidden",[`${k}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:T,"&:empty::after":{display:"block",padding:`${me(l)} 0`,color:w,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${A}-tree`]:{paddingBlock:`${me(l)} 0`,paddingInline:l,[j]:{padding:0},[`${j}-treenode ${j}-node-content-wrapper:hover`]:{backgroundColor:R},[`${j}-treenode-checkbox-checked ${j}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${A}-search`]:{padding:l,borderBottom:D,"&-input":{input:{minWidth:o},[r]:{color:w}}},[`${A}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${A}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${me(_(l).sub(u).equal())} ${me(l)}`,overflow:"hidden",borderTop:D}})}},{[`${n}-dropdown ${A}, ${A}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},T2e=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:i,zIndexTableSticky:l,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:o,background:i},[` @@ -413,11 +413,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-cell-fix-left-last::after, ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},p2e=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${me(r)} 0`}}},h2e=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${me(n)} ${me(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${me(n)} ${me(n)}`}}}}},b2e=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"}}}}},y2e=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:o,paddingXS:i,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:g,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(a).add(h(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(u).add(h(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(a).add(h(o).div(4)).add(h(i).mul(2)).equal()}},[` + `]:{boxShadow:"none"}}}}},N2e=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${me(r)} 0`}}},_2e=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${me(n)} ${me(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${me(n)} ${me(n)}`}}}}},j2e=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"}}}}},F2e=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:o,paddingXS:i,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:g,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(a).add(h(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(u).add(h(i).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(a).add(h(o).div(4)).add(h(i).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",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(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:me(h(g).div(4).equal()),[r]:{color:l,fontSize:a,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},C2e=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(o,i,l,c)=>({[`${t}${t}-${o}`]:{fontSize:c,[` + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(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:me(h(g).div(4).equal()),[r]:{color:l,fontSize:a,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},D2e=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(o,i,l,c)=>({[`${t}${t}-${o}`]:{fontSize:c,[` ${t}-title, ${t}-footer, ${t}-cell, @@ -426,13 +426,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${me(i)} ${me(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:me(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${me(r(i).mul(-1).equal())} ${me(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:me(r(i).mul(-1).equal()),marginInline:`${me(r(n).sub(l).equal())} ${me(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:me(r(l).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))}},S2e=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:o}=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},[` + `]:{padding:`${me(i)} ${me(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:me(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${me(r(i).mul(-1).equal())} ${me(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:me(r(i).mul(-1).equal()),marginInline:`${me(r(n).sub(l).equal())} ${me(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:me(r(l).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))}},k2e=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:o}=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:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},x2e=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:i,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${me(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${me(o)} !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},z_=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${me(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${me(a(n).mul(-1).equal())} 0 ${r}`}}}},w2e=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:i}=e,l=`${me(r)} ${a} ${o}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + `]:{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:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},A2e=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:i,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${me(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${me(o)} !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},nj=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${me(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${me(a(n).mul(-1).equal())} 0 ${r}`}}}},L2e=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:i}=e,l=`${me(r)} ${a} ${o}`,c=`${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:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${me(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},$2e=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:i,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:g,tableHeaderBg:h,tableHeaderCellSplitColor:b,tableFooterTextColor:p,tableFooterBg:S,calc:C}=e,x=`${me(i)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},_m()),{[t]:Object.assign(Object.assign({},wn(e)),{fontSize:u,background:d,borderRadius:`${me(f)} ${me(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${me(f)} ${me(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${me(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:i(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},B2e=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:i,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:g,tableHeaderBg:h,tableHeaderCellSplitColor:b,tableFooterTextColor:p,tableFooterBg:S,calc:C}=e,x=`${me(i)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Nm()),{[t]:Object.assign(Object.assign({},$n(e)),{fontSize:u,background:d,borderRadius:`${me(f)} ${me(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${me(f)} ${me(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, @@ -443,7 +443,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:me(C(r).mul(-1).equal()),marginInline:`${me(C(o).sub(a).equal())} - ${me(C(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background ${g} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${me(r)} ${me(a)}`,color:p,background:S}})}},E2e=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:g,colorTextPlaceholder:h,fontSize:b,fontSizeSM:p,lineHeight:S,lineWidth:C,colorIcon:x,colorIconHover:w,opacityLoading:$,controlInteractiveSize:E}=e,R=new gn(a).onBackground(n).toHexString(),I=new gn(o).onBackground(n).toHexString(),O=new gn(t).onBackground(n).toHexString(),T=new gn(x),N=new gn(w),A=E/2-C,k=A*2+C*3;return{headerBg:O,headerColor:r,headerSortActiveBg:R,headerSortHoverBg:I,bodySortBg:O,rowHoverBg:O,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:O,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:f,fixedHeaderSortActiveBg:R,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*S-C*3)/2-Math.ceil((p*1.4-C*3)/2),headerIconColor:T.clone().setA(T.a*$).toRgbString(),headerIconHoverColor:N.clone().setA(N.a*$).toRgbString(),expandIconHalfInner:A,expandIconSize:k,expandIconScale:E/k}},H_=2,P2e=un("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:g,cellPaddingBlock:h,cellPaddingInline:b,cellPaddingBlockMD:p,cellPaddingInlineMD:S,cellPaddingBlockSM:C,cellPaddingInlineSM:x,borderColor:w,footerBg:$,footerColor:E,headerBorderRadius:R,cellFontSize:I,cellFontSizeMD:O,cellFontSizeSM:T,headerSplitColor:N,fixedHeaderSortActiveBg:A,headerFilterHoverBg:k,filterDropdownBg:j,expandIconBg:D,selectionColumnWidth:F,stickyScrollBarBg:L,calc:B}=e,K=tn(e,{tableFontSize:I,tableBg:r,tableRadius:R,tablePaddingVertical:h,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:p,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:x,tableBorderColor:w,tableHeaderTextColor:i,tableHeaderBg:o,tableFooterTextColor:E,tableFooterBg:$,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:A,tableHeaderFilterActiveBg:k,tableFilterDropdownBg:j,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:H_,zIndexTableSticky:B(H_).add(1).equal({unit:!1}),tableFontSizeMiddle:O,tableFontSizeSmall:T,tableSelectionColumnWidth:F,tableExpandIconBg:D,tableExpandColumnWidth:B(a).add(B(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:L,tableScrollThumbBgHover:t,tableScrollBg:n});return[$2e(K),p2e(K),z_(K),S2e(K),m2e(K),u2e(K),h2e(K),v2e(K),z_(K),f2e(K),y2e(K),g2e(K),x2e(K),d2e(K),C2e(K),b2e(K),w2e(K)]},E2e,{unitless:{expandIconScale:!0}}),V_=[],O2e=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:i,style:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:b,columns:p,children:S,childrenColumnName:C,onChange:x,getPopupContainer:w,loading:$,expandIcon:E,expandable:R,expandedRowRender:I,expandIconColumnIndex:O,indentSize:T,scroll:N,sortDirections:A,locale:k,showSorterTooltip:j={target:"full-header"},virtual:D}=e;cl();const F=s.useMemo(()=>p||V4(S),[p,S]),L=s.useMemo(()=>F.some(pt=>pt.responsive),[F]),B=uu(L),K=s.useMemo(()=>{const pt=new Set(Object.keys(B).filter(ft=>B[ft]));return F.filter(ft=>!ft.responsive||ft.responsive.some(ut=>pt.has(ut)))},[F,B]),W=nn(e,["className","style","columns"]),{locale:V=ji,direction:q,table:U,renderEmpty:G,getPrefixCls:Y,getPopupContainer:J}=s.useContext(jt),Q=$r(c),Z=Object.assign(Object.assign({},V.Table),k),ne=f||V_,ae=Y("table",a),le=Y("dropdown",d),[,re]=qr(),fe=Gn(ae),[ue,de,ie]=P2e(ae,fe),se=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:O},R),{expandIcon:(n=R==null?void 0:R.expandIcon)!==null&&n!==void 0?n:(r=U==null?void 0:U.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ve="children"}=se,he=s.useMemo(()=>ne.some(pt=>pt==null?void 0:pt[ve])?"nest":I||R!=null&&R.expandedRowRender?"row":null,[ne]),Ce={body:s.useRef(null)},pe=Jxe(ae),Se=s.useRef(null),ge=s.useRef(null);Pne(t,()=>Object.assign(Object.assign({},ge.current),{nativeElement:Se.current}));const ye=s.useMemo(()=>typeof h=="function"?h:pt=>pt==null?void 0:pt[h],[h]),[xe]=Bq(ne,ve,ye),$e={},He=(pt,ft,ut=!1)=>{var Xt,Kt,Ut,kt;const Pt=Object.assign(Object.assign({},$e),pt);ut&&((Xt=$e.resetPagination)===null||Xt===void 0||Xt.call($e),!((Kt=Pt.pagination)===null||Kt===void 0)&&Kt.current&&(Pt.pagination.current=1),m&&((Ut=m.onChange)===null||Ut===void 0||Ut.call(m,1,(kt=Pt.pagination)===null||kt===void 0?void 0:kt.pageSize))),N&&N.scrollToFirstRowOnChange!==!1&&Ce.body.current&&cne(0,{getContainer:()=>Ce.body.current}),x==null||x(Pt.pagination,Pt.filters,Pt.sorter,{currentDataSource:vO(gO(ne,Pt.sorterStates,ve),Pt.filterStates,ve),action:ft})},Te=(pt,ft)=>{He({sorter:pt,sorterStates:ft},"sort",!1)},[Re,Fe,je,Ee]=i2e({prefixCls:ae,mergedColumns:K,onSorterChange:Te,sortDirections:A||["ascend","descend"],tableLocale:Z,showSorterTooltip:j}),Le=s.useMemo(()=>gO(ne,Fe,ve),[ne,Fe]);$e.sorter=Ee(),$e.sorterStates=Fe;const Pe=(pt,ft)=>{He({filters:pt,filterStates:ft},"filter",!0)},[ze,Oe,we]=Ywe({prefixCls:ae,locale:Z,dropdownPrefixCls:le,mergedColumns:K,onFilterChange:Pe,getPopupContainer:w||J,rootClassName:oe(i,fe)}),_e=vO(Le,Oe,ve);$e.filters=we,$e.filterStates=Oe;const Be=s.useMemo(()=>{const pt={};return Object.keys(we).forEach(ft=>{we[ft]!==null&&(pt[ft]=we[ft])}),Object.assign(Object.assign({},je),{filters:pt})},[je,we]),[Qe]=l2e(Be),lt=(pt,ft)=>{He({pagination:Object.assign(Object.assign({},$e.pagination),{current:pt,pageSize:ft})},"paginate")},[Ke,et]=Jwe(_e.length,lt,m);$e.pagination=m===!1?{}:Qwe(Ke,m),$e.resetPagination=et;const st=s.useMemo(()=>{if(m===!1||!Ke.pageSize)return _e;const{current:pt=1,total:ft,pageSize:ut=zq}=Ke;return _e.lengthut?_e.slice((pt-1)*ut,pt*ut):_e:_e.slice((pt-1)*ut,pt*ut)},[!!m,_e,Ke==null?void 0:Ke.current,Ke==null?void 0:Ke.pageSize,Ke==null?void 0:Ke.total]),[Ze,vt]=Xxe({prefixCls:ae,data:_e,pageData:st,getRowKey:ye,getRecordByKey:xe,expandType:he,childrenColumnName:ve,locale:Z,getPopupContainer:w||J},g),Ot=(pt,ft,ut)=>{let Xt;return typeof b=="function"?Xt=oe(b(pt,ft,ut)):Xt=oe(b),oe({[`${ae}-row-selected`]:vt.has(ye(pt,ft))},Xt)};se.__PARENT_RENDER_ICON__=se.expandIcon,se.expandIcon=se.expandIcon||E||Qxe(Z),he==="nest"&&se.expandIconColumnIndex===void 0?se.expandIconColumnIndex=g?1:0:se.expandIconColumnIndex>0&&g&&(se.expandIconColumnIndex-=1),typeof se.indentSize!="number"&&(se.indentSize=typeof T=="number"?T:15);const xt=s.useCallback(pt=>Qe(Ze(ze(Re(pt)))),[Re,ze,Ze]),mt=()=>{if(m===!1||!(Ke!=null&&Ke.total))return{};const pt=()=>Ke.size||(Q==="small"||Q==="middle"?"small":void 0),ft=qe=>{const at=qe==="left"?"start":qe==="right"?"end":qe;return s.createElement(t1e,Object.assign({},Ke,{align:Ke.align||at,className:oe(`${ae}-pagination`,Ke.className),size:pt()}))},ut=q==="rtl"?"left":"right",Xt=Ke.position;if(Xt===null||!Array.isArray(Xt))return{bottom:ft(ut)};const Kt=Xt.find(qe=>typeof qe=="string"&&qe.toLowerCase().includes("top")),Ut=Xt.find(qe=>typeof qe=="string"&&qe.toLowerCase().includes("bottom")),kt=Xt.every(qe=>`${qe}`=="none"),Pt=Kt?Kt.toLowerCase().replace("top",""):"",Lt=Ut?Ut.toLowerCase().replace("bottom",""):"",nt=!Kt&&!Ut&&!kt,St=()=>Pt?ft(Pt):void 0,gt=()=>{if(Lt)return ft(Lt);if(nt)return ft(ut)};return{top:St(),bottom:gt()}},yt=s.useMemo(()=>typeof $=="boolean"?{spinning:$}:typeof $=="object"&&$!==null?Object.assign({spinning:!0},$):void 0,[$]),bt=oe(ie,fe,`${ae}-wrapper`,U==null?void 0:U.className,{[`${ae}-wrapper-rtl`]:q==="rtl"},o,i,de),tt=Object.assign(Object.assign({},U==null?void 0:U.style),l),Ye=s.useMemo(()=>yt!=null&&yt.spinning&&ne===V_?null:typeof(k==null?void 0:k.emptyText)<"u"?k.emptyText:(G==null?void 0:G("Table"))||s.createElement(Cg,{componentName:"Table"}),[yt==null?void 0:yt.spinning,ne,k==null?void 0:k.emptyText,G]),Ne=D?c2e:s2e,We={},rt=s.useMemo(()=>{const{fontSize:pt,lineHeight:ft,lineWidth:ut,padding:Xt,paddingXS:Kt,paddingSM:Ut}=re,kt=Math.floor(pt*ft);switch(Q){case"middle":return Ut*2+kt+ut;case"small":return Kt*2+kt+ut;default:return Xt*2+kt+ut}},[re,Q]);D&&(We.listItemHeight=rt);const{top:ct,bottom:At}=mt();return ue(s.createElement("div",{ref:Se,className:bt,style:tt},s.createElement(Hi,Object.assign({spinning:!1},yt),ct,s.createElement(Ne,Object.assign({},We,W,{ref:ge,columns:K,direction:q,expandable:se,prefixCls:ae,className:oe({[`${ae}-middle`]:Q==="middle",[`${ae}-small`]:Q==="small",[`${ae}-bordered`]:u,[`${ae}-empty`]:ne.length===0},ie,fe,de),data:st,rowKey:ye,rowClassName:Ot,emptyText:Ye,internalHooks:Mg,internalRefs:Ce,transformColumns:xt,getContainerWidth:pe,measureRowRender:pt=>s.createElement(Mt,{getPopupContainer:ft=>ft},pt)})),At)))},I2e=s.forwardRef(O2e),R2e=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(I2e,Object.assign({},e,{ref:t,_renderTimes:n.current}))},fo=s.forwardRef(R2e);fo.SELECTION_COLUMN=Cs;fo.EXPAND_COLUMN=xs;fo.SELECTION_ALL=sO;fo.SELECTION_INVERT=cO;fo.SELECTION_NONE=uO;fo.Column=zxe;fo.ColumnGroup=Hxe;fo.Summary=mq;const M2e=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,i=o(r).sub(n).equal(),l=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},wn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${me(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:l,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:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},G4=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return tn(e,{tagFontSize:a,tagLineHeight:me(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Y4=e=>({defaultBg:new gn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Wq=un("Tag",e=>{const t=G4(e);return M2e(t)},Y4);var T2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:o,children:i,icon:l,onChange:c,onClick:u}=e,d=T2e(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=s.useContext(jt),g=x=>{c==null||c(!o),u==null||u(x)},h=f("tag",n),[b,p,S]=Wq(h),C=oe(h,`${h}-checkable`,{[`${h}-checkable-checked`]:o},m==null?void 0:m.className,a,p,S);return b(s.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m==null?void 0:m.style),className:C,onClick:g}),l,s.createElement("span",null,i)))}),_2e=e=>_y(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),j2e=pf(["Tag","preset"],e=>{const t=G4(e);return _2e(t)},Y4);function F2e(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Eh=(e,t,n)=>{const r=F2e(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},D2e=pf(["Tag","status"],e=>{const t=G4(e);return[Eh(t,"success","Success"),Eh(t,"processing","Info"),Eh(t,"error","Error"),Eh(t,"warning","Warning")]},Y4);var k2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,children:i,icon:l,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=k2e(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:h,tag:b}=s.useContext(jt),[p,S]=s.useState(!0),C=nn(m,["closeIcon","closable"]);s.useEffect(()=>{f!==void 0&&S(f)},[f]);const x=i1(c),w=Xce(c),$=x||w,E=Object.assign(Object.assign({backgroundColor:c&&!$?c:void 0},b==null?void 0:b.style),o),R=g("tag",n),[I,O,T]=Wq(R),N=oe(R,b==null?void 0:b.className,{[`${R}-${c}`]:$,[`${R}-has-color`]:c&&!$,[`${R}-hidden`]:!p,[`${R}-rtl`]:h==="rtl",[`${R}-borderless`]:!d},r,a,O,T),A=B=>{B.stopPropagation(),u==null||u(B),!B.defaultPrevented&&S(!1)},[,k]=xR(Xd(e),Xd(b),{closable:!1,closeIconRender:B=>{const K=s.createElement("span",{className:`${R}-close-icon`,onClick:A},B);return SR(B,K,W=>({onClick:V=>{var q;(q=W==null?void 0:W.onClick)===null||q===void 0||q.call(W,V),A(V)},className:oe(W==null?void 0:W.className,`${R}-close-icon`)}))}}),j=typeof m.onClick=="function"||i&&i.type==="a",D=l||null,F=D?s.createElement(s.Fragment,null,D,i&&s.createElement("span",null,i)):i,L=s.createElement("span",Object.assign({},C,{ref:t,className:N,style:E}),F,k,x&&s.createElement(j2e,{key:"preset",prefixCls:R}),w&&s.createElement(D2e,{key:"status",prefixCls:R}));return I(j?s.createElement(vg,{component:"Tag"},L):L)}),Fa=A2e;Fa.CheckableTag=N2e;const L2e=e=>{const t=e!=null&&e.algorithm?Pm(e.algorithm):gR,n=Object.assign(Object.assign({},Yd),e==null?void 0:e.token);return i9(n,{override:e==null?void 0:e.token},t,bR)};function B2e(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const z2e=(e,t)=>{const n=t??Ty(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),B2e(t??e)),M9(r)),{controlHeight:a}),R9(Object.assign(Object.assign({},n),{controlHeight:a})))},Go=(e,t)=>new gn(e).setA(t).toRgbString(),ld=(e,t)=>new gn(e).lighten(t).toHexString(),H2e=e=>{const t=qs(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},V2e=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Go(r,.85),colorTextSecondary:Go(r,.65),colorTextTertiary:Go(r,.45),colorTextQuaternary:Go(r,.25),colorFill:Go(r,.18),colorFillSecondary:Go(r,.12),colorFillTertiary:Go(r,.08),colorFillQuaternary:Go(r,.04),colorBgSolid:Go(r,.95),colorBgSolidHover:Go(r,1),colorBgSolidActive:Go(r,.9),colorBgElevated:ld(n,12),colorBgContainer:ld(n,8),colorBgLayout:ld(n,0),colorBgSpotlight:ld(n,26),colorBgBlur:Go(r,.04),colorBorder:ld(n,26),colorBorderSecondary:ld(n,19)}},W2e=(e,t)=>{const n=Object.keys(mR).map(o=>{const i=qs(e[o],{theme:"dark"});return Array.from({length:10},()=>1).reduce((l,c,u)=>(l[`${o}-${u+1}`]=i[u],l[`${o}${u+1}`]=i[u],l),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??Ty(e),a=I9(e,{generateColorPalettes:H2e,generateNeutralColorPalettes:V2e});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),a),{colorPrimaryBg:a.colorPrimaryBorder,colorPrimaryBgHover:a.colorPrimaryBorderHover})};function K2e(){const[e,t,n]=qr();return{theme:e,token:t,hashId:n}}const Ei={defaultSeed:Tm.token,useToken:K2e,defaultAlgorithm:Ty,darkAlgorithm:W2e,compactAlgorithm:z2e,getDesignToken:L2e,defaultConfig:Tm,_internalContext:pR};var q2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.createElement(G2e,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),tu=s.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:a,bordered:o}=e,i=q2e(e,["addon","renderExtraFooter","variant","bordered"]);const[l]=Gl("timePicker",a,o),c=s.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return s.createElement(U2e,Object.assign({},i,{mode:void 0,ref:t,renderExtraFooter:c,variant:l}))}),Kq=rc(tu,"popupAlign",void 0,"picker");tu._InternalPanelDoNotUseOrYouWillBeFired=Kq;tu.RangePicker=Y2e;tu._InternalPanelDoNotUseOrYouWillBeFired=Kq;const X2e=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},wn(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${me(e.itemHeadSize)})`,borderInlineStart:`${me(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${me(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate, + ${me(C(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background ${g} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${me(r)} ${me(a)}`,color:p,background:S}})}},z2e=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:i,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:g,colorTextPlaceholder:h,fontSize:b,fontSizeSM:p,lineHeight:S,lineWidth:C,colorIcon:x,colorIconHover:w,opacityLoading:$,controlInteractiveSize:E}=e,R=new pn(a).onBackground(n).toHexString(),I=new pn(o).onBackground(n).toHexString(),O=new pn(t).onBackground(n).toHexString(),T=new pn(x),_=new pn(w),k=E/2-C,A=k*2+C*3;return{headerBg:O,headerColor:r,headerSortActiveBg:R,headerSortHoverBg:I,bodySortBg:O,rowHoverBg:O,rowSelectedBg:i,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:O,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:f,fixedHeaderSortActiveBg:R,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:g,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*S-C*3)/2-Math.ceil((p*1.4-C*3)/2),headerIconColor:T.clone().setA(T.a*$).toRgbString(),headerIconHoverColor:_.clone().setA(_.a*$).toRgbString(),expandIconHalfInner:k,expandIconSize:A,expandIconScale:E/A}},rj=2,H2e=dn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:i,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:g,cellPaddingBlock:h,cellPaddingInline:b,cellPaddingBlockMD:p,cellPaddingInlineMD:S,cellPaddingBlockSM:C,cellPaddingInlineSM:x,borderColor:w,footerBg:$,footerColor:E,headerBorderRadius:R,cellFontSize:I,cellFontSizeMD:O,cellFontSizeSM:T,headerSplitColor:_,fixedHeaderSortActiveBg:k,headerFilterHoverBg:A,filterDropdownBg:j,expandIconBg:D,selectionColumnWidth:F,stickyScrollBarBg:L,calc:B}=e,K=en(e,{tableFontSize:I,tableBg:r,tableRadius:R,tablePaddingVertical:h,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:p,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:x,tableBorderColor:w,tableHeaderTextColor:i,tableHeaderBg:o,tableFooterTextColor:E,tableFooterBg:$,tableHeaderCellSplitColor:_,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:k,tableHeaderFilterActiveBg:A,tableFilterDropdownBg:j,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:rj,zIndexTableSticky:B(rj).add(1).equal({unit:!1}),tableFontSizeMiddle:O,tableFontSizeSmall:T,tableSelectionColumnWidth:F,tableExpandIconBg:D,tableExpandColumnWidth:B(a).add(B(e.padding).mul(2)).equal(),tableExpandedRowBg:g,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:L,tableScrollThumbBgHover:t,tableScrollBg:n});return[B2e(K),N2e(K),nj(K),k2e(K),M2e(K),P2e(K),_2e(K),R2e(K),nj(K),I2e(K),F2e(K),T2e(K),A2e(K),O2e(K),D2e(K),j2e(K),L2e(K)]},z2e,{unitless:{expandIconScale:!0}}),aj=[],V2e=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:i,style:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:g,rowKey:h="key",rowClassName:b,columns:p,children:S,childrenColumnName:C,onChange:x,getPopupContainer:w,loading:$,expandIcon:E,expandable:R,expandedRowRender:I,expandIconColumnIndex:O,indentSize:T,scroll:_,sortDirections:k,locale:A,showSorterTooltip:j={target:"full-header"},virtual:D}=e;ul();const F=s.useMemo(()=>p||e3(S),[p,S]),L=s.useMemo(()=>F.some(pt=>pt.responsive),[F]),B=du(L),K=s.useMemo(()=>{const pt=new Set(Object.keys(B).filter(ft=>B[ft]));return F.filter(ft=>!ft.responsive||ft.responsive.some(ut=>pt.has(ut)))},[F,B]),W=nn(e,["className","style","columns"]),{locale:V=Di,direction:q,table:U,renderEmpty:G,getPrefixCls:Y,getPopupContainer:J}=s.useContext(jt),Q=Er(c),Z=Object.assign(Object.assign({},V.Table),A),ne=f||aj,ae=Y("table",a),le=Y("dropdown",d),[,re]=Ur(),fe=Yn(ae),[ue,de,ie]=H2e(ae,fe),se=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:O},R),{expandIcon:(n=R==null?void 0:R.expandIcon)!==null&&n!==void 0?n:(r=U==null?void 0:U.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ve="children"}=se,he=s.useMemo(()=>ne.some(pt=>pt==null?void 0:pt[ve])?"nest":I||R!=null&&R.expandedRowRender?"row":null,[ne]),Ce={body:s.useRef(null)},pe=mwe(ae),Se=s.useRef(null),ge=s.useRef(null);Hne(t,()=>Object.assign(Object.assign({},ge.current),{nativeElement:Se.current}));const ye=s.useMemo(()=>typeof h=="function"?h:pt=>pt==null?void 0:pt[h],[h]),[xe]=aU(ne,ve,ye),$e={},He=(pt,ft,ut=!1)=>{var Xt,Kt,Ut,kt;const Pt=Object.assign(Object.assign({},$e),pt);ut&&((Xt=$e.resetPagination)===null||Xt===void 0||Xt.call($e),!((Kt=Pt.pagination)===null||Kt===void 0)&&Kt.current&&(Pt.pagination.current=1),m&&((Ut=m.onChange)===null||Ut===void 0||Ut.call(m,1,(kt=Pt.pagination)===null||kt===void 0?void 0:kt.pageSize))),_&&_.scrollToFirstRowOnChange!==!1&&Ce.body.current&&Ene(0,{getContainer:()=>Ce.body.current}),x==null||x(Pt.pagination,Pt.filters,Pt.sorter,{currentDataSource:xO($O(ne,Pt.sorterStates,ve),Pt.filterStates,ve),action:ft})},Te=(pt,ft)=>{He({sorter:pt,sorterStates:ft},"sort",!1)},[Re,Fe,je,Ee]=x2e({prefixCls:ae,mergedColumns:K,onSorterChange:Te,sortDirections:k||["ascend","descend"],tableLocale:Z,showSorterTooltip:j}),Le=s.useMemo(()=>$O(ne,Fe,ve),[ne,Fe]);$e.sorter=Ee(),$e.sorterStates=Fe;const Pe=(pt,ft)=>{He({filters:pt,filterStates:ft},"filter",!0)},[ze,Oe,we]=d2e({prefixCls:ae,locale:Z,dropdownPrefixCls:le,mergedColumns:K,onFilterChange:Pe,getPopupContainer:w||J,rootClassName:oe(i,fe)}),_e=xO(Le,Oe,ve);$e.filters=we,$e.filterStates=Oe;const Be=s.useMemo(()=>{const pt={};return Object.keys(we).forEach(ft=>{we[ft]!==null&&(pt[ft]=we[ft])}),Object.assign(Object.assign({},je),{filters:pt})},[je,we]),[Qe]=w2e(Be),lt=(pt,ft)=>{He({pagination:Object.assign(Object.assign({},$e.pagination),{current:pt,pageSize:ft})},"paginate")},[Ke,et]=m2e(_e.length,lt,m);$e.pagination=m===!1?{}:v2e(Ke,m),$e.resetPagination=et;const st=s.useMemo(()=>{if(m===!1||!Ke.pageSize)return _e;const{current:pt=1,total:ft,pageSize:ut=oU}=Ke;return _e.lengthut?_e.slice((pt-1)*ut,pt*ut):_e:_e.slice((pt-1)*ut,pt*ut)},[!!m,_e,Ke==null?void 0:Ke.current,Ke==null?void 0:Ke.pageSize,Ke==null?void 0:Ke.total]),[Ze,vt]=fwe({prefixCls:ae,data:_e,pageData:st,getRowKey:ye,getRecordByKey:xe,expandType:he,childrenColumnName:ve,locale:Z,getPopupContainer:w||J},g),Ot=(pt,ft,ut)=>{let Xt;return typeof b=="function"?Xt=oe(b(pt,ft,ut)):Xt=oe(b),oe({[`${ae}-row-selected`]:vt.has(ye(pt,ft))},Xt)};se.__PARENT_RENDER_ICON__=se.expandIcon,se.expandIcon=se.expandIcon||E||vwe(Z),he==="nest"&&se.expandIconColumnIndex===void 0?se.expandIconColumnIndex=g?1:0:se.expandIconColumnIndex>0&&g&&(se.expandIconColumnIndex-=1),typeof se.indentSize!="number"&&(se.indentSize=typeof T=="number"?T:15);const xt=s.useCallback(pt=>Qe(Ze(ze(Re(pt)))),[Re,ze,Ze]),mt=()=>{if(m===!1||!(Ke!=null&&Ke.total))return{};const pt=()=>Ke.size||(Q==="small"||Q==="middle"?"small":void 0),ft=qe=>{const at=qe==="left"?"start":qe==="right"?"end":qe;return s.createElement(h1e,Object.assign({},Ke,{align:Ke.align||at,className:oe(`${ae}-pagination`,Ke.className),size:pt()}))},ut=q==="rtl"?"left":"right",Xt=Ke.position;if(Xt===null||!Array.isArray(Xt))return{bottom:ft(ut)};const Kt=Xt.find(qe=>typeof qe=="string"&&qe.toLowerCase().includes("top")),Ut=Xt.find(qe=>typeof qe=="string"&&qe.toLowerCase().includes("bottom")),kt=Xt.every(qe=>`${qe}`=="none"),Pt=Kt?Kt.toLowerCase().replace("top",""):"",Lt=Ut?Ut.toLowerCase().replace("bottom",""):"",nt=!Kt&&!Ut&&!kt,St=()=>Pt?ft(Pt):void 0,gt=()=>{if(Lt)return ft(Lt);if(nt)return ft(ut)};return{top:St(),bottom:gt()}},yt=s.useMemo(()=>typeof $=="boolean"?{spinning:$}:typeof $=="object"&&$!==null?Object.assign({spinning:!0},$):void 0,[$]),bt=oe(ie,fe,`${ae}-wrapper`,U==null?void 0:U.className,{[`${ae}-wrapper-rtl`]:q==="rtl"},o,i,de),tt=Object.assign(Object.assign({},U==null?void 0:U.style),l),Ye=s.useMemo(()=>yt!=null&&yt.spinning&&ne===aj?null:typeof(A==null?void 0:A.emptyText)<"u"?A.emptyText:(G==null?void 0:G("Table"))||s.createElement(Cg,{componentName:"Table"}),[yt==null?void 0:yt.spinning,ne,A==null?void 0:A.emptyText,G]),Ne=D?E2e:$2e,We={},rt=s.useMemo(()=>{const{fontSize:pt,lineHeight:ft,lineWidth:ut,padding:Xt,paddingXS:Kt,paddingSM:Ut}=re,kt=Math.floor(pt*ft);switch(Q){case"middle":return Ut*2+kt+ut;case"small":return Kt*2+kt+ut;default:return Xt*2+kt+ut}},[re,Q]);D&&(We.listItemHeight=rt);const{top:ct,bottom:At}=mt();return ue(s.createElement("div",{ref:Se,className:bt,style:tt},s.createElement(vi,Object.assign({spinning:!1},yt),ct,s.createElement(Ne,Object.assign({},We,W,{ref:ge,columns:K,direction:q,expandable:se,prefixCls:ae,className:oe({[`${ae}-middle`]:Q==="middle",[`${ae}-small`]:Q==="small",[`${ae}-bordered`]:u,[`${ae}-empty`]:ne.length===0},ie,fe,de),data:st,rowKey:ye,rowClassName:Ot,emptyText:Ye,internalHooks:Mg,internalRefs:Ce,transformColumns:xt,getContainerWidth:pe,measureRowRender:pt=>s.createElement(Rt,{getPopupContainer:ft=>ft},pt)})),At)))},W2e=s.forwardRef(V2e),K2e=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(W2e,Object.assign({},e,{ref:t,_renderTimes:n.current}))},vo=s.forwardRef(K2e);vo.SELECTION_COLUMN=Cs;vo.EXPAND_COLUMN=xs;vo.SELECTION_ALL=hO;vo.SELECTION_INVERT=bO;vo.SELECTION_NONE=yO;vo.Column=rwe;vo.ColumnGroup=awe;vo.Summary=Nq;const q2e=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,i=o(r).sub(n).equal(),l=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},$n(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${me(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:l,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:i}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},o3=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return en(e,{tagFontSize:a,tagLineHeight:me(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},i3=e=>({defaultBg:new pn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),sU=dn("Tag",e=>{const t=o3(e);return q2e(t)},i3);var U2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:o,children:i,icon:l,onChange:c,onClick:u}=e,d=U2e(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=s.useContext(jt),g=x=>{c==null||c(!o),u==null||u(x)},h=f("tag",n),[b,p,S]=sU(h),C=oe(h,`${h}-checkable`,{[`${h}-checkable-checked`]:o},m==null?void 0:m.className,a,p,S);return b(s.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m==null?void 0:m.style),className:C,onClick:g}),l,s.createElement("span",null,i)))}),Y2e=e=>Ly(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),X2e=hf(["Tag","preset"],e=>{const t=o3(e);return Y2e(t)},i3);function Q2e(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Ph=(e,t,n)=>{const r=Q2e(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},J2e=hf(["Tag","status"],e=>{const t=o3(e);return[Ph(t,"success","Success"),Ph(t,"processing","Info"),Ph(t,"error","Error"),Ph(t,"warning","Warning")]},i3);var Z2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,children:i,icon:l,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=Z2e(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:h,tag:b}=s.useContext(jt),[p,S]=s.useState(!0),C=nn(m,["closeIcon","closable"]);s.useEffect(()=>{f!==void 0&&S(f)},[f]);const x=f1(c),w=fue(c),$=x||w,E=Object.assign(Object.assign({backgroundColor:c&&!$?c:void 0},b==null?void 0:b.style),o),R=g("tag",n),[I,O,T]=sU(R),_=oe(R,b==null?void 0:b.className,{[`${R}-${c}`]:$,[`${R}-has-color`]:c&&!$,[`${R}-hidden`]:!p,[`${R}-rtl`]:h==="rtl",[`${R}-borderless`]:!d},r,a,O,T),k=B=>{B.stopPropagation(),u==null||u(B),!B.defaultPrevented&&S(!1)},[,A]=FR(Jd(e),Jd(b),{closable:!1,closeIconRender:B=>{const K=s.createElement("span",{className:`${R}-close-icon`,onClick:k},B);return jR(B,K,W=>({onClick:V=>{var q;(q=W==null?void 0:W.onClick)===null||q===void 0||q.call(W,V),k(V)},className:oe(W==null?void 0:W.className,`${R}-close-icon`)}))}}),j=typeof m.onClick=="function"||i&&i.type==="a",D=l||null,F=D?s.createElement(s.Fragment,null,D,i&&s.createElement("span",null,i)):i,L=s.createElement("span",Object.assign({},C,{ref:t,className:_,style:E}),F,A,x&&s.createElement(X2e,{key:"preset",prefixCls:R}),w&&s.createElement(J2e,{key:"status",prefixCls:R}));return I(j?s.createElement(vg,{component:"Tag"},L):L)}),ja=e$e;ja.CheckableTag=G2e;const t$e=e=>{const t=e!=null&&e.algorithm?Gd(e.algorithm):IR,n=Object.assign(Object.assign({},Qd),e==null?void 0:e.token);return $9(n,{override:e==null?void 0:e.token},t,Ay)};function n$e(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const r$e=(e,t)=>{const n=t??Dy(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),n$e(t??e)),U9(r)),{controlHeight:a}),q9(Object.assign(Object.assign({},n),{controlHeight:a})))},Yo=(e,t)=>new pn(e).setA(t).toRgbString(),cd=(e,t)=>new pn(e).lighten(t).toHexString(),a$e=e=>{const t=Ks(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},o$e=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Yo(r,.85),colorTextSecondary:Yo(r,.65),colorTextTertiary:Yo(r,.45),colorTextQuaternary:Yo(r,.25),colorFill:Yo(r,.18),colorFillSecondary:Yo(r,.12),colorFillTertiary:Yo(r,.08),colorFillQuaternary:Yo(r,.04),colorBgSolid:Yo(r,.95),colorBgSolidHover:Yo(r,1),colorBgSolidActive:Yo(r,.9),colorBgElevated:cd(n,12),colorBgContainer:cd(n,8),colorBgLayout:cd(n,0),colorBgSpotlight:cd(n,26),colorBgBlur:Yo(r,.04),colorBorder:cd(n,26),colorBorderSecondary:cd(n,19)}},i$e=(e,t)=>{const n=Object.keys(OR).map(o=>{const i=Ks(e[o],{theme:"dark"});return Array.from({length:10},()=>1).reduce((l,c,u)=>(l[`${o}-${u+1}`]=i[u],l[`${o}${u+1}`]=i[u],l),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??Dy(e),a=K9(e,{generateColorPalettes:a$e,generateNeutralColorPalettes:o$e});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),a),{colorPrimaryBg:a.colorPrimaryBorder,colorPrimaryBgHover:a.colorPrimaryBorderHover})};function l$e(){const[e,t,n]=Ur();return{theme:e,token:t,hashId:n}}const so={defaultSeed:Mm.token,useToken:l$e,defaultAlgorithm:Dy,darkAlgorithm:i$e,compactAlgorithm:r$e,getDesignToken:t$e,defaultConfig:Mm,_internalContext:RR};var s$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);as.createElement(u$e,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),tu=s.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:a,bordered:o}=e,i=s$e(e,["addon","renderExtraFooter","variant","bordered"]);const[l]=Gl("timePicker",a,o),c=s.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return s.createElement(c$e,Object.assign({},i,{mode:void 0,ref:t,renderExtraFooter:c,variant:l}))}),cU=nc(tu,"popupAlign",void 0,"picker");tu._InternalPanelDoNotUseOrYouWillBeFired=cU;tu.RangePicker=d$e;tu._InternalPanelDoNotUseOrYouWillBeFired=cU;const f$e=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},$n(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${me(e.itemHeadSize)})`,borderInlineStart:`${me(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${me(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate, &${t}-right, &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:n(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:n(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${me(e.marginXXS)})`,width:`calc(50% - ${me(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${me(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail, ${t}-item-head, @@ -451,23 +451,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-item-last ${t}-item-tail`]:{display:"block",height:`calc(100% - ${me(e.margin)})`,borderInlineStart:`${me(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse ${t}-item-last - ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${me(e.margin)})`,borderInlineStart:`${me(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${me(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${me(e.marginSM)})`,width:`calc(50% - ${me(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Q2e=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25}),J2e=un("Timeline",e=>{const t=tn(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return X2e(t)},Q2e);var Z2e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,color:r="blue",dot:a,pending:o=!1,position:i,label:l,children:c}=e,u=Z2e(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:d}=s.useContext(jt),f=d("timeline",t),m=oe(`${f}-item`,{[`${f}-item-pending`]:o},n),g=/blue|red|green|gray/.test(r||"")?void 0:r,h=oe(`${f}-item-head`,{[`${f}-item-head-custom`]:!!a,[`${f}-item-head-${r}`]:!g});return s.createElement("li",Object.assign({},u,{className:m}),l&&s.createElement("div",{className:`${f}-item-label`},l),s.createElement("div",{className:`${f}-item-tail`}),s.createElement("div",{className:h,style:{borderColor:g,color:g}},a),s.createElement("div",{className:`${f}-item-content`},c))};var W_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,pending:r=!1,children:a,items:o,rootClassName:i,reverse:l=!1,direction:c,hashId:u,pendingDot:d,mode:f=""}=e,m=W_(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const g=($,E)=>f==="alternate"?$==="right"?`${t}-item-right`:$==="left"?`${t}-item-left`:E%2===0?`${t}-item-left`:`${t}-item-right`:f==="left"?`${t}-item-left`:f==="right"?`${t}-item-right`:$==="right"?`${t}-item-right`:"",h=ke(o||[]),b=typeof r=="boolean"?null:r;r&&h.push({pending:!!r,dot:d||s.createElement(Ya,null),children:b}),l&&h.reverse();const p=h.length,S=`${t}-item-last`,C=h.filter($=>!!$).map(($,E)=>{var R;const I=E===p-2?S:"",O=E===p-1?S:"",{className:T}=$,N=W_($,["className"]);return s.createElement(qq,Object.assign({},N,{className:oe([T,!l&&r?I:O,g((R=$==null?void 0:$.position)!==null&&R!==void 0?R:"",E)]),key:($==null?void 0:$.key)||E}))}),x=h.some($=>!!($!=null&&$.label)),w=oe(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!l,[`${t}-${f}`]:!!f&&!x,[`${t}-label`]:x,[`${t}-rtl`]:c==="rtl"},n,i,u);return s.createElement("ol",Object.assign({},m,{className:w}),C)};function t$e(e,t){return e&&Array.isArray(e)?e:rr(t).map(n=>{var r,a;return Object.assign({children:(a=(r=n==null?void 0:n.props)===null||r===void 0?void 0:r.children)!==null&&a!==void 0?a:""},n.props)})}var n$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,timeline:r}=s.useContext(jt),{prefixCls:a,children:o,items:i,className:l,style:c}=e,u=n$e(e,["prefixCls","children","items","className","style"]),d=t("timeline",a),f=Gn(d),[m,g,h]=J2e(d,f),b=t$e(i,o);return m(s.createElement(e$e,Object.assign({},u,{className:oe(r==null?void 0:r.className,l,h,f),style:Object.assign(Object.assign({},r==null?void 0:r.style),c),prefixCls:d,direction:n,items:b,hashId:g})))};Uq.Item=qq;var r$e={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"},a$e=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:r$e}))},Gq=s.forwardRef(a$e);const o$e=(function(e){var t=s.useRef({valueLabels:new Map});return s.useMemo(function(){var n=t.current.valueLabels,r=new Map,a=e.map(function(o){var i=o.value,l=o.label,c=l??n.get(i);return r.set(i,c),P(P({},o),{},{label:c})});return t.current.valueLabels=r,[a]},[e])});var i$e=function(t,n,r,a){return s.useMemo(function(){var o=function(g){return g.map(function(h){var b=h.value;return b})},i=o(t),l=o(n),c=i.filter(function(m){return!a[m]}),u=i,d=l;if(r){var f=Zo(i,!0,a);u=f.checkedKeys,d=f.halfCheckedKeys}return[Array.from(new Set([].concat(ke(c),ke(u)))),d]},[t,n,r,a])},l$e=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},s$e=function(t){var n=t||{},r=n.label,a=n.value,o=n.children;return{_title:r?[r]:["title","label"],value:a||"value",key:a||"value",children:o||"children"}},pO=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},c$e=function(t,n){var r=[],a=function o(i){i.forEach(function(l){var c=l[n.children];c&&(r.push(l[n.value]),o(c))})};return a(t),r},K_=function(t){return t==null};const u$e=(function(e,t){return s.useMemo(function(){var n=Pg(e,{fieldNames:t,initWrapper:function(a){return P(P({},a),{},{valueEntities:new Map})},processEntity:function(a,o){var i=a.node[t.value];o.valueEntities.set(i,a)}});return n},[e,t])});var X4=function(){return null},d$e=["children","value"];function Yq(e){return rr(e).map(function(t){if(!s.isValidElement(t)||!t.type)return null;var n=t,r=n.key,a=n.props,o=a.children,i=a.value,l=Ue(a,d$e),c=P({key:r,value:i},l),u=Yq(o);return u.length&&(c.children=u),c}).filter(function(t){return t})}function hO(e){if(!e)return e;var t=P({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Wn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function f$e(e,t,n,r,a,o){var i=null,l=null;function c(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(g,h){var b="".concat(f,"-").concat(h),p=g[o.value],S=n.includes(p),C=u(g[o.children]||[],b,S),x=s.createElement(X4,g,C.map(function($){return $.node}));if(t===p&&(i=x),S){var w={pos:b,node:x,children:C};return m||l.push(w),w}return null}).filter(function(g){return g})}l||(l=[],u(r),l.sort(function(d,f){var m=d.node.props.value,g=f.node.props.value,h=n.indexOf(m),b=n.indexOf(g);return h-b}))}Object.defineProperty(e,"triggerNode",{get:function(){return Wn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Wn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),a?l:l.map(function(d){var f=d.node;return f})}})}var v$e=function(t,n,r){var a=r.fieldNames,o=r.treeNodeFilterProp,i=r.filterTreeNode,l=a.children;return s.useMemo(function(){if(!n||i===!1)return t;var c=typeof i=="function"?i:function(d,f){return String(f[o]).toUpperCase().includes(n.toUpperCase())},u=function d(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(g,h){var b=h[l],p=m||c(n,hO(h)),S=d(b||[],p);return(p||S.length)&&g.push(P(P({},h),{},z({isLeaf:void 0},l,S))),g},[])};return u(t)},[t,n,l,o,i])};function q_(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function m$e(e,t){var n=t.id,r=t.pId,a=t.rootPId,o=new Map,i=[];return e.forEach(function(l){var c=l[n],u=P(P({},l),{},{key:l.key||c});o.set(c,u)}),o.forEach(function(l){var c=l[r],u=o.get(c);u?(u.children=u.children||[],u.children.push(l)):(c===a||a===null)&&i.push(l)}),i}function g$e(e,t,n){return s.useMemo(function(){if(e){if(n){var r=P({id:"id",pId:"pId",rootPId:null},it(n)==="object"?n:{});return m$e(e,r)}return e}return Yq(t)},[t,n,e])}var Xq=s.createContext(null),Qq=s.createContext(null),p$e={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},h$e=function(t,n){var r=zR(),a=r.prefixCls,o=r.multiple,i=r.searchValue,l=r.toggleOpen,c=r.open,u=r.notFoundContent,d=s.useContext(Qq),f=d.virtual,m=d.listHeight,g=d.listItemHeight,h=d.listItemScrollOffset,b=d.treeData,p=d.fieldNames,S=d.onSelect,C=d.dropdownMatchSelectWidth,x=d.treeExpandAction,w=d.treeTitleRender,$=d.onPopupScroll,E=d.leftMaxCount,R=d.leafCountOnly,I=d.valueEntities,O=s.useContext(Xq),T=O.checkable,N=O.checkedKeys,A=O.halfCheckedKeys,k=O.treeExpandedKeys,j=O.treeDefaultExpandAll,D=O.treeDefaultExpandedKeys,F=O.onTreeExpand,L=O.treeIcon,B=O.showTreeIcon,K=O.switcherIcon,W=O.treeLine,V=O.treeNodeFilterProp,q=O.loadData,U=O.treeLoadedKeys,G=O.treeMotion,Y=O.onTreeLoad,J=O.keyEntities,Q=s.useRef(),Z=Hl(function(){return b},[c,b],function(Be,Qe){return Qe[0]&&Be[1]!==Qe[1]}),ne=s.useMemo(function(){return T?{checked:N,halfChecked:A}:null},[T,N,A]);s.useEffect(function(){if(c&&!o&&N.length){var Be;(Be=Q.current)===null||Be===void 0||Be.scrollTo({key:N[0]})}},[c]);var ae=function(Qe){Qe.preventDefault()},le=function(Qe,lt){var Ke=lt.node;T&&pO(Ke)||(S(Ke.key,{selected:!N.includes(Ke.key)}),o||l(!1))},re=s.useState(D),fe=ce(re,2),ue=fe[0],de=fe[1],ie=s.useState(null),se=ce(ie,2),ve=se[0],he=se[1],Ce=s.useMemo(function(){return k?ke(k):i?ve:ue},[ue,ve,k,i]),pe=function(Qe){de(Qe),he(Qe),F&&F(Qe)},Se=String(i).toLowerCase(),ge=function(Qe){return Se?String(Qe[V]).toLowerCase().includes(Se):!1};s.useEffect(function(){i&&he(c$e(b,p))},[i]);var ye=s.useState(function(){return new Map}),xe=ce(ye,2),$e=xe[0],He=xe[1];s.useEffect(function(){E&&He(new Map)},[E]);function Te(Be){var Qe=Be[p.value];if(!$e.has(Qe)){var lt=I.get(Qe),Ke=(lt.children||[]).length===0;if(Ke)$e.set(Qe,!1);else{var et=lt.children.filter(function(Ze){return!Ze.node.disabled&&!Ze.node.disableCheckbox&&!N.includes(Ze.node[p.value])}),st=et.length;$e.set(Qe,st>E)}}return $e.get(Qe)}var Re=Zt(function(Be){var Qe=Be[p.value];return N.includes(Qe)||E===null?!1:E<=0?!0:R&&E?Te(Be):!1}),Fe=function Be(Qe){var lt=Q0(Qe),Ke;try{for(lt.s();!(Ke=lt.n()).done;){var et=Ke.value;if(!(et.disabled||et.selectable===!1)){if(i){if(ge(et))return et}else return et;if(et[p.children]){var st=Be(et[p.children]);if(st)return st}}}}catch(Ze){lt.e(Ze)}finally{lt.f()}return null},je=s.useState(null),Ee=ce(je,2),Le=Ee[0],Pe=Ee[1],ze=J[Le];s.useEffect(function(){if(c){var Be=null,Qe=function(){var Ke=Fe(Z);return Ke?Ke[p.value]:null};!o&&N.length&&!i?Be=N[0]:Be=Qe(),Pe(Be)}},[c,i]),s.useImperativeHandle(n,function(){var Be;return{scrollTo:(Be=Q.current)===null||Be===void 0?void 0:Be.scrollTo,onKeyDown:function(lt){var Ke,et=lt.which;switch(et){case ot.UP:case ot.DOWN:case ot.LEFT:case ot.RIGHT:(Ke=Q.current)===null||Ke===void 0||Ke.onKeyDown(lt);break;case ot.ENTER:{if(ze){var st=Re(ze.node),Ze=(ze==null?void 0:ze.node)||{},vt=Ze.selectable,Ot=Ze.value,xt=Ze.disabled;vt!==!1&&!xt&&!st&&le(null,{node:{key:Le},selected:!N.includes(Ot)})}break}case ot.ESC:l(!1)}},onKeyUp:function(){}}});var Oe=Hl(function(){return!i},[i,k||ue],function(Be,Qe){var lt=ce(Be,1),Ke=lt[0],et=ce(Qe,2),st=et[0],Ze=et[1];return Ke!==st&&!!(st||Ze)}),we=Oe?q:null;if(Z.length===0)return s.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:ae},u);var _e={fieldNames:p};return U&&(_e.loadedKeys=U),Ce&&(_e.expandedKeys=Ce),s.createElement("div",{onMouseDown:ae},ze&&c&&s.createElement("span",{style:p$e,"aria-live":"assertive"},ze.node.value),s.createElement(Oq.Provider,{value:{nodeDisabled:Re}},s.createElement(R1,Me({ref:Q,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:Z,height:m,itemHeight:g,itemScrollOffset:h,virtual:f!==!1&&C!==!1,multiple:o,icon:L,showIcon:B,switcherIcon:K,showLine:W,loadData:we,motion:G,activeKey:Le,checkable:T,checkStrictly:!0,checkedKeys:ne,selectedKeys:T?[]:N,defaultExpandAll:j,titleRender:w},_e,{onActiveChange:Pe,onSelect:le,onCheck:le,onExpand:pe,onLoad:Y,filterTreeNode:ge,expandAction:x,onScroll:$}))))},b$e=s.forwardRef(h$e),Q4="SHOW_ALL",J4="SHOW_PARENT",T1="SHOW_CHILD";function U_(e,t,n,r){var a=new Set(e);return t===T1?e.filter(function(o){var i=n[o];return!i||!i.children||!i.children.some(function(l){var c=l.node;return a.has(c[r.value])})||!i.children.every(function(l){var c=l.node;return pO(c)||a.has(c[r.value])})}):t===J4?e.filter(function(o){var i=n[o],l=i?i.parent:null;return!l||pO(l.node)||!a.has(l.key)}):e}var y$e=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function C$e(e){return!e||it(e)!=="object"}var S$e=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tree-select":r,o=e.value,i=e.defaultValue,l=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,m=e.onSearch,g=e.autoClearSearchValue,h=g===void 0?!0:g,b=e.filterTreeNode,p=e.treeNodeFilterProp,S=p===void 0?"value":p,C=e.showCheckedStrategy,x=e.treeNodeLabelProp,w=e.multiple,$=e.treeCheckable,E=e.treeCheckStrictly,R=e.labelInValue,I=e.maxCount,O=e.fieldNames,T=e.treeDataSimpleMode,N=e.treeData,A=e.children,k=e.loadData,j=e.treeLoadedKeys,D=e.onTreeLoad,F=e.treeDefaultExpandAll,L=e.treeExpandedKeys,B=e.treeDefaultExpandedKeys,K=e.onTreeExpand,W=e.treeExpandAction,V=e.virtual,q=e.listHeight,U=q===void 0?200:q,G=e.listItemHeight,Y=G===void 0?20:G,J=e.listItemScrollOffset,Q=J===void 0?0:J,Z=e.onDropdownVisibleChange,ne=e.dropdownMatchSelectWidth,ae=ne===void 0?!0:ne,le=e.treeLine,re=e.treeIcon,fe=e.showTreeIcon,ue=e.switcherIcon,de=e.treeMotion,ie=e.treeTitleRender,se=e.onPopupScroll,ve=Ue(e,y$e),he=qR(n),Ce=$&&!E,pe=$||E,Se=E||R,ge=pe||w,ye=_t(i,{value:o}),xe=ce(ye,2),$e=xe[0],He=xe[1],Te=s.useMemo(function(){return $?C||T1:Q4},[C,$]),Re=s.useMemo(function(){return s$e(O)},[JSON.stringify(O)]),Fe=_t("",{value:d!==void 0?d:f,postState:function(Pt){return Pt||""}}),je=ce(Fe,2),Ee=je[0],Le=je[1],Pe=function(Pt){Le(Pt),m==null||m(Pt)},ze=g$e(N,A,T),Oe=u$e(ze,Re),we=Oe.keyEntities,_e=Oe.valueEntities,Be=s.useCallback(function(kt){var Pt=[],Lt=[];return kt.forEach(function(nt){_e.has(nt)?Lt.push(nt):Pt.push(nt)}),{missingRawValues:Pt,existRawValues:Lt}},[_e]),Qe=v$e(ze,Ee,{fieldNames:Re,treeNodeFilterProp:S,filterTreeNode:b}),lt=s.useCallback(function(kt){if(kt){if(x)return kt[x];for(var Pt=Re._title,Lt=0;LtAt)){var St=et(kt);if(He(St),h&&Le(""),l){var gt=kt;Ce&&(gt=nt.map(function(Mn){var bn=_e.get(Mn);return bn?bn.node[Re.value]:Mn}));var qe=Pt||{triggerValue:void 0,selected:void 0},at=qe.triggerValue,dt=qe.selected,Tt=gt;if(E){var Qt=xt.filter(function(Mn){return!gt.includes(Mn.value)});Tt=[].concat(ke(Tt),ke(Qt))}var Ct=et(Tt),Rt={preValue:Ot,triggerValue:at},Vt=!0;(E||Lt==="selection"&&!dt)&&(Vt=!1),f$e(Rt,at,kt,ze,Vt,Re),pe?Rt.checked=dt:Rt.selected=dt;var vn=Se?Ct:Ct.map(function(Mn){return Mn.value});l(ge?vn:vn[0],Se?null:Ct.map(function(Mn){return Mn.label}),Rt)}}}),ft=s.useCallback(function(kt,Pt){var Lt,nt=Pt.selected,St=Pt.source,gt=we[kt],qe=gt==null?void 0:gt.node,at=(Lt=qe==null?void 0:qe[Re.value])!==null&&Lt!==void 0?Lt:kt;if(!ge)pt([at],{selected:!0,triggerValue:at},"option");else{var dt=nt?[].concat(ke(mt),[at]):tt.filter(function(bn){return bn!==at});if(Ce){var Tt=Be(dt),Qt=Tt.missingRawValues,Ct=Tt.existRawValues,Rt=Ct.map(function(bn){return _e.get(bn).key}),Vt;if(nt){var vn=Zo(Rt,!0,we);Vt=vn.checkedKeys}else{var Mn=Zo(Rt,{halfCheckedKeys:Ye},we);Vt=Mn.checkedKeys}dt=[].concat(ke(Qt),ke(Vt.map(function(bn){return we[bn].node[Re.value]})))}pt(dt,{selected:nt,triggerValue:at},St||"option")}nt||!ge?c==null||c(at,hO(qe)):u==null||u(at,hO(qe))},[Be,_e,we,Re,ge,mt,pt,Ce,c,u,tt,Ye,I]),ut=s.useCallback(function(kt){if(Z){var Pt={};Object.defineProperty(Pt,"documentClickClose",{get:function(){return Wn(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Z(kt,Pt)}},[Z]),Xt=q_(function(kt,Pt){var Lt=kt.map(function(nt){return nt.value});if(Pt.type==="clear"){pt(Lt,{},"selection");return}Pt.values.length&&ft(Pt.values[0].value,{selected:!1,source:"selection"})}),Kt=s.useMemo(function(){return{virtual:V,dropdownMatchSelectWidth:ae,listHeight:U,listItemHeight:Y,listItemScrollOffset:Q,treeData:Qe,fieldNames:Re,onSelect:ft,treeExpandAction:W,treeTitleRender:ie,onPopupScroll:se,leftMaxCount:I===void 0?null:I-ct.length,leafCountOnly:Te==="SHOW_CHILD"&&!E&&!!$,valueEntities:_e}},[V,ae,U,Y,Q,Qe,Re,ft,W,ie,se,I,ct.length,Te,E,$,_e]),Ut=s.useMemo(function(){return{checkable:pe,loadData:k,treeLoadedKeys:j,onTreeLoad:D,checkedKeys:tt,halfCheckedKeys:Ye,treeDefaultExpandAll:F,treeExpandedKeys:L,treeDefaultExpandedKeys:B,onTreeExpand:K,treeIcon:re,treeMotion:de,showTreeIcon:fe,switcherIcon:ue,treeLine:le,treeNodeFilterProp:S,keyEntities:we}},[pe,k,j,D,tt,Ye,F,L,B,K,re,de,fe,ue,le,S,we]);return s.createElement(Qq.Provider,{value:Kt},s.createElement(Xq.Provider,{value:Ut},s.createElement(VR,Me({ref:t},ve,{id:he,prefixCls:a,mode:ge?"multiple":void 0,displayValues:ct,onDisplayValuesChange:Xt,searchValue:Ee,onSearch:Pe,OptionList:b$e,emptyOptions:!ze.length,onDropdownVisibleChange:ut,dropdownMatchSelectWidth:ae}))))}),Tg=S$e;Tg.TreeNode=X4;Tg.SHOW_ALL=Q4;Tg.SHOW_PARENT=J4;Tg.SHOW_CHILD=T1;const x$e=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,a=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${me(e.paddingXS)} ${me(e.calc(e.paddingXS).div(2).equal())}`},Nq(n,tn(e,{colorBgContainer:r}),!1),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},b1(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function w$e(e,t,n){return un("TreeSelect",r=>{const a=tn(r,{treePrefixCls:t});return x$e(a)},_q)(e,n)}var $$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:l,size:c,disabled:u,bordered:d=!0,style:f,className:m,rootClassName:g,treeCheckable:h,multiple:b,listHeight:p=256,listItemHeight:S,placement:C,notFoundContent:x,switcherIcon:w,treeLine:$,getPopupContainer:E,popupClassName:R,dropdownClassName:I,treeIcon:O=!1,transitionName:T,choiceTransitionName:N="",status:A,treeExpandAction:k,builtinPlacements:j,dropdownMatchSelectWidth:D,popupMatchSelectWidth:F,allowClear:L,variant:B,dropdownStyle:K,dropdownRender:W,popupRender:V,onDropdownVisibleChange:q,onOpenChange:U,tagRender:G,maxCount:Y,showCheckedStrategy:J,treeCheckStrictly:Q,styles:Z,classNames:ne}=e,ae=$$e(e,["prefixCls","size","disabled","bordered","style","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly","styles","classNames"]),{getPopupContainer:le,getPrefixCls:re,renderEmpty:fe,direction:ue,virtual:de,popupMatchSelectWidth:ie,popupOverflow:se}=s.useContext(jt),{styles:ve,classNames:he,switcherIcon:Ce}=lr("treeSelect"),[,pe]=qr(),Se=S??(pe==null?void 0:pe.controlHeightSM)+(pe==null?void 0:pe.paddingXXS),ge=re(),ye=re("select",l),xe=re("select-tree",l),$e=re("tree-select",l),{compactSize:He,compactItemClassnames:Te}=ko(ye,ue),Re=Gn(ye),Fe=Gn($e),[je,Ee,Le]=YR(ye,Re),[Pe]=w$e($e,xe,Fe),[ze,Oe]=Gl("treeSelect",B,d),we=oe(((n=ne==null?void 0:ne.popup)===null||n===void 0?void 0:n.root)||((r=he==null?void 0:he.popup)===null||r===void 0?void 0:r.root)||R||I,`${$e}-dropdown`,{[`${$e}-dropdown-rtl`]:ue==="rtl"},g,he.root,ne==null?void 0:ne.root,Le,Re,Fe,Ee),_e=((a=Z==null?void 0:Z.popup)===null||a===void 0?void 0:a.root)||((o=ve==null?void 0:ve.popup)===null||o===void 0?void 0:o.root)||K,Be=XR(V||W),Qe=U||q,lt=!!(h||b),Ke=s.useMemo(()=>{if(!(Y&&(J==="SHOW_ALL"&&!Q||J==="SHOW_PARENT")))return Y},[Y,J,Q]),et=QR(e.suffixIcon,e.showArrow),st=(i=F??D)!==null&&i!==void 0?i:ie,{status:Ze,hasFeedback:vt,isFormItemInput:Ot,feedbackIcon:xt}=s.useContext(zr),mt=Ul(Ze,A),{suffixIcon:yt,removeIcon:bt,clearIcon:tt}=r1(Object.assign(Object.assign({},ae),{multiple:lt,showSuffixIcon:et,hasFeedback:vt,feedbackIcon:xt,prefixCls:ye,componentName:"TreeSelect"})),Ye=L===!0?{clearIcon:tt}:L;let Ne;x!==void 0?Ne=x:Ne=(fe==null?void 0:fe("Select"))||s.createElement(Cg,{componentName:"Select"});const We=nn(ae,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon","style"]),rt=s.useMemo(()=>C!==void 0?C:ue==="rtl"?"bottomRight":"bottomLeft",[C,ue]),ct=$r(kt=>{var Pt;return(Pt=c??He)!==null&&Pt!==void 0?Pt:kt}),At=s.useContext(Lr),pt=u??At,ft=oe(!l&&$e,{[`${ye}-lg`]:ct==="large",[`${ye}-sm`]:ct==="small",[`${ye}-rtl`]:ue==="rtl",[`${ye}-${ze}`]:Oe,[`${ye}-in-form-item`]:Ot},Di(ye,mt,vt),Te,m,g,he.root,ne==null?void 0:ne.root,Le,Re,Fe,Ee),ut=w??Ce,Xt=kt=>s.createElement(jq,{prefixCls:xe,switcherIcon:ut,treeNodeProps:kt,showLine:$}),[Kt]=ui("SelectLike",_e==null?void 0:_e.zIndex),Ut=s.createElement(Tg,Object.assign({virtual:de,disabled:pt},We,{dropdownMatchSelectWidth:st,builtinPlacements:GR(j,se),ref:t,prefixCls:ye,className:ft,style:Object.assign(Object.assign({},Z==null?void 0:Z.root),f),listHeight:p,listItemHeight:Se,treeCheckable:h&&s.createElement("span",{className:`${ye}-tree-checkbox-inner`}),treeLine:!!$,suffixIcon:yt,multiple:lt,placement:rt,removeIcon:bt,allowClear:Ye,switcherIcon:Xt,showTreeIcon:O,notFoundContent:Ne,getPopupContainer:E||le,treeMotion:null,dropdownClassName:we,dropdownStyle:Object.assign(Object.assign({},_e),{zIndex:Kt}),dropdownRender:Be,onDropdownVisibleChange:Qe,choiceTransitionName:ga(ge,"",N),transitionName:ga(ge,"slide-up",T),treeExpandAction:k,tagRender:lt?G:void 0,maxCount:Ke,showCheckedStrategy:J,treeCheckStrictly:Q}));return je(Pe(Ut))},P$e=s.forwardRef(E$e),pu=P$e,O$e=rc(pu,"dropdownAlign",e=>nn(e,["visible"]));pu.TreeNode=X4;pu.SHOW_ALL=Q4;pu.SHOW_PARENT=J4;pu.SHOW_CHILD=T1;pu._InternalPanelDoNotUseOrYouWillBeFired=O$e;var I$e={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"},R$e=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:I$e}))},M$e=s.forwardRef(R$e),T$e={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"},N$e=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:T$e}))},_$e=s.forwardRef(N$e);const j$e=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},F$e=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${me(e.margin)})`,borderInlineStart:`${me(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${me(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${me(e.marginSM)})`,width:`calc(50% - ${me(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},v$e=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25}),m$e=dn("Timeline",e=>{const t=en(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return f$e(t)},v$e);var g$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,color:r="blue",dot:a,pending:o=!1,position:i,label:l,children:c}=e,u=g$e(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:d}=s.useContext(jt),f=d("timeline",t),m=oe(`${f}-item`,{[`${f}-item-pending`]:o},n),g=/blue|red|green|gray/.test(r||"")?void 0:r,h=oe(`${f}-item-head`,{[`${f}-item-head-custom`]:!!a,[`${f}-item-head-${r}`]:!g});return s.createElement("li",Object.assign({},u,{className:m}),l&&s.createElement("div",{className:`${f}-item-label`},l),s.createElement("div",{className:`${f}-item-tail`}),s.createElement("div",{className:h,style:{borderColor:g,color:g}},a),s.createElement("div",{className:`${f}-item-content`},c))};var oj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,pending:r=!1,children:a,items:o,rootClassName:i,reverse:l=!1,direction:c,hashId:u,pendingDot:d,mode:f=""}=e,m=oj(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const g=($,E)=>f==="alternate"?$==="right"?`${t}-item-right`:$==="left"?`${t}-item-left`:E%2===0?`${t}-item-left`:`${t}-item-right`:f==="left"?`${t}-item-left`:f==="right"?`${t}-item-right`:$==="right"?`${t}-item-right`:"",h=ke(o||[]),b=typeof r=="boolean"?null:r;r&&h.push({pending:!!r,dot:d||s.createElement(Ya,null),children:b}),l&&h.reverse();const p=h.length,S=`${t}-item-last`,C=h.filter($=>!!$).map(($,E)=>{var R;const I=E===p-2?S:"",O=E===p-1?S:"",{className:T}=$,_=oj($,["className"]);return s.createElement(uU,Object.assign({},_,{className:oe([T,!l&&r?I:O,g((R=$==null?void 0:$.position)!==null&&R!==void 0?R:"",E)]),key:($==null?void 0:$.key)||E}))}),x=h.some($=>!!($!=null&&$.label)),w=oe(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!l,[`${t}-${f}`]:!!f&&!x,[`${t}-label`]:x,[`${t}-rtl`]:c==="rtl"},n,i,u);return s.createElement("ol",Object.assign({},m,{className:w}),C)};function h$e(e,t){return e&&Array.isArray(e)?e:rr(t).map(n=>{var r,a;return Object.assign({children:(a=(r=n==null?void 0:n.props)===null||r===void 0?void 0:r.children)!==null&&a!==void 0?a:""},n.props)})}var b$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,timeline:r}=s.useContext(jt),{prefixCls:a,children:o,items:i,className:l,style:c}=e,u=b$e(e,["prefixCls","children","items","className","style"]),d=t("timeline",a),f=Yn(d),[m,g,h]=m$e(d,f),b=h$e(i,o);return m(s.createElement(p$e,Object.assign({},u,{className:oe(r==null?void 0:r.className,l,h,f),style:Object.assign(Object.assign({},r==null?void 0:r.style),c),prefixCls:d,direction:n,items:b,hashId:g})))};dU.Item=uU;var y$e={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"},C$e=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:y$e}))},fU=s.forwardRef(C$e);const S$e=(function(e){var t=s.useRef({valueLabels:new Map});return s.useMemo(function(){var n=t.current.valueLabels,r=new Map,a=e.map(function(o){var i=o.value,l=o.label,c=l??n.get(i);return r.set(i,c),P(P({},o),{},{label:c})});return t.current.valueLabels=r,[a]},[e])});var x$e=function(t,n,r,a){return s.useMemo(function(){var o=function(g){return g.map(function(h){var b=h.value;return b})},i=o(t),l=o(n),c=i.filter(function(m){return!a[m]}),u=i,d=l;if(r){var f=ei(i,!0,a);u=f.checkedKeys,d=f.halfCheckedKeys}return[Array.from(new Set([].concat(ke(c),ke(u)))),d]},[t,n,r,a])},w$e=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},$$e=function(t){var n=t||{},r=n.label,a=n.value,o=n.children;return{_title:r?[r]:["title","label"],value:a||"value",key:a||"value",children:o||"children"}},EO=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},E$e=function(t,n){var r=[],a=function o(i){i.forEach(function(l){var c=l[n.children];c&&(r.push(l[n.value]),o(c))})};return a(t),r},ij=function(t){return t==null};const P$e=(function(e,t){return s.useMemo(function(){var n=Pg(e,{fieldNames:t,initWrapper:function(a){return P(P({},a),{},{valueEntities:new Map})},processEntity:function(a,o){var i=a.node[t.value];o.valueEntities.set(i,a)}});return n},[e,t])});var l3=function(){return null},O$e=["children","value"];function vU(e){return rr(e).map(function(t){if(!s.isValidElement(t)||!t.type)return null;var n=t,r=n.key,a=n.props,o=a.children,i=a.value,l=Ue(a,O$e),c=P({key:r,value:i},l),u=vU(o);return u.length&&(c.children=u),c}).filter(function(t){return t})}function PO(e){if(!e)return e;var t=P({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Kn(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function I$e(e,t,n,r,a,o){var i=null,l=null;function c(){function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(g,h){var b="".concat(f,"-").concat(h),p=g[o.value],S=n.includes(p),C=u(g[o.children]||[],b,S),x=s.createElement(l3,g,C.map(function($){return $.node}));if(t===p&&(i=x),S){var w={pos:b,node:x,children:C};return m||l.push(w),w}return null}).filter(function(g){return g})}l||(l=[],u(r),l.sort(function(d,f){var m=d.node.props.value,g=f.node.props.value,h=n.indexOf(m),b=n.indexOf(g);return h-b}))}Object.defineProperty(e,"triggerNode",{get:function(){return Kn(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Kn(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),a?l:l.map(function(d){var f=d.node;return f})}})}var R$e=function(t,n,r){var a=r.fieldNames,o=r.treeNodeFilterProp,i=r.filterTreeNode,l=a.children;return s.useMemo(function(){if(!n||i===!1)return t;var c=typeof i=="function"?i:function(d,f){return String(f[o]).toUpperCase().includes(n.toUpperCase())},u=function d(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(g,h){var b=h[l],p=m||c(n,PO(h)),S=d(b||[],p);return(p||S.length)&&g.push(P(P({},h),{},z({isLeaf:void 0},l,S))),g},[])};return u(t)},[t,n,l,o,i])};function lj(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function M$e(e,t){var n=t.id,r=t.pId,a=t.rootPId,o=new Map,i=[];return e.forEach(function(l){var c=l[n],u=P(P({},l),{},{key:l.key||c});o.set(c,u)}),o.forEach(function(l){var c=l[r],u=o.get(c);u?(u.children=u.children||[],u.children.push(l)):(c===a||a===null)&&i.push(l)}),i}function T$e(e,t,n){return s.useMemo(function(){if(e){if(n){var r=P({id:"id",pId:"pId",rootPId:null},it(n)==="object"?n:{});return M$e(e,r)}return e}return vU(t)},[t,n,e])}var mU=s.createContext(null),gU=s.createContext(null),N$e={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_$e=function(t,n){var r=e4(),a=r.prefixCls,o=r.multiple,i=r.searchValue,l=r.toggleOpen,c=r.open,u=r.notFoundContent,d=s.useContext(gU),f=d.virtual,m=d.listHeight,g=d.listItemHeight,h=d.listItemScrollOffset,b=d.treeData,p=d.fieldNames,S=d.onSelect,C=d.dropdownMatchSelectWidth,x=d.treeExpandAction,w=d.treeTitleRender,$=d.onPopupScroll,E=d.leftMaxCount,R=d.leafCountOnly,I=d.valueEntities,O=s.useContext(mU),T=O.checkable,_=O.checkedKeys,k=O.halfCheckedKeys,A=O.treeExpandedKeys,j=O.treeDefaultExpandAll,D=O.treeDefaultExpandedKeys,F=O.onTreeExpand,L=O.treeIcon,B=O.showTreeIcon,K=O.switcherIcon,W=O.treeLine,V=O.treeNodeFilterProp,q=O.loadData,U=O.treeLoadedKeys,G=O.treeMotion,Y=O.onTreeLoad,J=O.keyEntities,Q=s.useRef(),Z=Hl(function(){return b},[c,b],function(Be,Qe){return Qe[0]&&Be[1]!==Qe[1]}),ne=s.useMemo(function(){return T?{checked:_,halfChecked:k}:null},[T,_,k]);s.useEffect(function(){if(c&&!o&&_.length){var Be;(Be=Q.current)===null||Be===void 0||Be.scrollTo({key:_[0]})}},[c]);var ae=function(Qe){Qe.preventDefault()},le=function(Qe,lt){var Ke=lt.node;T&&EO(Ke)||(S(Ke.key,{selected:!_.includes(Ke.key)}),o||l(!1))},re=s.useState(D),fe=ce(re,2),ue=fe[0],de=fe[1],ie=s.useState(null),se=ce(ie,2),ve=se[0],he=se[1],Ce=s.useMemo(function(){return A?ke(A):i?ve:ue},[ue,ve,A,i]),pe=function(Qe){de(Qe),he(Qe),F&&F(Qe)},Se=String(i).toLowerCase(),ge=function(Qe){return Se?String(Qe[V]).toLowerCase().includes(Se):!1};s.useEffect(function(){i&&he(E$e(b,p))},[i]);var ye=s.useState(function(){return new Map}),xe=ce(ye,2),$e=xe[0],He=xe[1];s.useEffect(function(){E&&He(new Map)},[E]);function Te(Be){var Qe=Be[p.value];if(!$e.has(Qe)){var lt=I.get(Qe),Ke=(lt.children||[]).length===0;if(Ke)$e.set(Qe,!1);else{var et=lt.children.filter(function(Ze){return!Ze.node.disabled&&!Ze.node.disableCheckbox&&!_.includes(Ze.node[p.value])}),st=et.length;$e.set(Qe,st>E)}}return $e.get(Qe)}var Re=Zt(function(Be){var Qe=Be[p.value];return _.includes(Qe)||E===null?!1:E<=0?!0:R&&E?Te(Be):!1}),Fe=function Be(Qe){var lt=tb(Qe),Ke;try{for(lt.s();!(Ke=lt.n()).done;){var et=Ke.value;if(!(et.disabled||et.selectable===!1)){if(i){if(ge(et))return et}else return et;if(et[p.children]){var st=Be(et[p.children]);if(st)return st}}}}catch(Ze){lt.e(Ze)}finally{lt.f()}return null},je=s.useState(null),Ee=ce(je,2),Le=Ee[0],Pe=Ee[1],ze=J[Le];s.useEffect(function(){if(c){var Be=null,Qe=function(){var Ke=Fe(Z);return Ke?Ke[p.value]:null};!o&&_.length&&!i?Be=_[0]:Be=Qe(),Pe(Be)}},[c,i]),s.useImperativeHandle(n,function(){var Be;return{scrollTo:(Be=Q.current)===null||Be===void 0?void 0:Be.scrollTo,onKeyDown:function(lt){var Ke,et=lt.which;switch(et){case ot.UP:case ot.DOWN:case ot.LEFT:case ot.RIGHT:(Ke=Q.current)===null||Ke===void 0||Ke.onKeyDown(lt);break;case ot.ENTER:{if(ze){var st=Re(ze.node),Ze=(ze==null?void 0:ze.node)||{},vt=Ze.selectable,Ot=Ze.value,xt=Ze.disabled;vt!==!1&&!xt&&!st&&le(null,{node:{key:Le},selected:!_.includes(Ot)})}break}case ot.ESC:l(!1)}},onKeyUp:function(){}}});var Oe=Hl(function(){return!i},[i,A||ue],function(Be,Qe){var lt=ce(Be,1),Ke=lt[0],et=ce(Qe,2),st=et[0],Ze=et[1];return Ke!==st&&!!(st||Ze)}),we=Oe?q:null;if(Z.length===0)return s.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:ae},u);var _e={fieldNames:p};return U&&(_e.loadedKeys=U),Ce&&(_e.expandedKeys=Ce),s.createElement("div",{onMouseDown:ae},ze&&c&&s.createElement("span",{style:N$e,"aria-live":"assertive"},ze.node.value),s.createElement(Kq.Provider,{value:{nodeDisabled:Re}},s.createElement(D1,Me({ref:Q,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:Z,height:m,itemHeight:g,itemScrollOffset:h,virtual:f!==!1&&C!==!1,multiple:o,icon:L,showIcon:B,switcherIcon:K,showLine:W,loadData:we,motion:G,activeKey:Le,checkable:T,checkStrictly:!0,checkedKeys:ne,selectedKeys:T?[]:_,defaultExpandAll:j,titleRender:w},_e,{onActiveChange:Pe,onSelect:le,onCheck:le,onExpand:pe,onLoad:Y,filterTreeNode:ge,expandAction:x,onScroll:$}))))},j$e=s.forwardRef(_$e),s3="SHOW_ALL",c3="SHOW_PARENT",A1="SHOW_CHILD";function sj(e,t,n,r){var a=new Set(e);return t===A1?e.filter(function(o){var i=n[o];return!i||!i.children||!i.children.some(function(l){var c=l.node;return a.has(c[r.value])})||!i.children.every(function(l){var c=l.node;return EO(c)||a.has(c[r.value])})}):t===c3?e.filter(function(o){var i=n[o],l=i?i.parent:null;return!l||EO(l.node)||!a.has(l.key)}):e}var F$e=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function D$e(e){return!e||it(e)!=="object"}var k$e=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tree-select":r,o=e.value,i=e.defaultValue,l=e.onChange,c=e.onSelect,u=e.onDeselect,d=e.searchValue,f=e.inputValue,m=e.onSearch,g=e.autoClearSearchValue,h=g===void 0?!0:g,b=e.filterTreeNode,p=e.treeNodeFilterProp,S=p===void 0?"value":p,C=e.showCheckedStrategy,x=e.treeNodeLabelProp,w=e.multiple,$=e.treeCheckable,E=e.treeCheckStrictly,R=e.labelInValue,I=e.maxCount,O=e.fieldNames,T=e.treeDataSimpleMode,_=e.treeData,k=e.children,A=e.loadData,j=e.treeLoadedKeys,D=e.onTreeLoad,F=e.treeDefaultExpandAll,L=e.treeExpandedKeys,B=e.treeDefaultExpandedKeys,K=e.onTreeExpand,W=e.treeExpandAction,V=e.virtual,q=e.listHeight,U=q===void 0?200:q,G=e.listItemHeight,Y=G===void 0?20:G,J=e.listItemScrollOffset,Q=J===void 0?0:J,Z=e.onDropdownVisibleChange,ne=e.dropdownMatchSelectWidth,ae=ne===void 0?!0:ne,le=e.treeLine,re=e.treeIcon,fe=e.showTreeIcon,ue=e.switcherIcon,de=e.treeMotion,ie=e.treeTitleRender,se=e.onPopupScroll,ve=Ue(e,F$e),he=o4(n),Ce=$&&!E,pe=$||E,Se=E||R,ge=pe||w,ye=Nt(i,{value:o}),xe=ce(ye,2),$e=xe[0],He=xe[1],Te=s.useMemo(function(){return $?C||A1:s3},[C,$]),Re=s.useMemo(function(){return $$e(O)},[JSON.stringify(O)]),Fe=Nt("",{value:d!==void 0?d:f,postState:function(Pt){return Pt||""}}),je=ce(Fe,2),Ee=je[0],Le=je[1],Pe=function(Pt){Le(Pt),m==null||m(Pt)},ze=T$e(_,k,T),Oe=P$e(ze,Re),we=Oe.keyEntities,_e=Oe.valueEntities,Be=s.useCallback(function(kt){var Pt=[],Lt=[];return kt.forEach(function(nt){_e.has(nt)?Lt.push(nt):Pt.push(nt)}),{missingRawValues:Pt,existRawValues:Lt}},[_e]),Qe=R$e(ze,Ee,{fieldNames:Re,treeNodeFilterProp:S,filterTreeNode:b}),lt=s.useCallback(function(kt){if(kt){if(x)return kt[x];for(var Pt=Re._title,Lt=0;LtAt)){var St=et(kt);if(He(St),h&&Le(""),l){var gt=kt;Ce&&(gt=nt.map(function(Mn){var yn=_e.get(Mn);return yn?yn.node[Re.value]:Mn}));var qe=Pt||{triggerValue:void 0,selected:void 0},at=qe.triggerValue,dt=qe.selected,Tt=gt;if(E){var Qt=xt.filter(function(Mn){return!gt.includes(Mn.value)});Tt=[].concat(ke(Tt),ke(Qt))}var Ct=et(Tt),Mt={preValue:Ot,triggerValue:at},Vt=!0;(E||Lt==="selection"&&!dt)&&(Vt=!1),I$e(Mt,at,kt,ze,Vt,Re),pe?Mt.checked=dt:Mt.selected=dt;var mn=Se?Ct:Ct.map(function(Mn){return Mn.value});l(ge?mn:mn[0],Se?null:Ct.map(function(Mn){return Mn.label}),Mt)}}}),ft=s.useCallback(function(kt,Pt){var Lt,nt=Pt.selected,St=Pt.source,gt=we[kt],qe=gt==null?void 0:gt.node,at=(Lt=qe==null?void 0:qe[Re.value])!==null&&Lt!==void 0?Lt:kt;if(!ge)pt([at],{selected:!0,triggerValue:at},"option");else{var dt=nt?[].concat(ke(mt),[at]):tt.filter(function(yn){return yn!==at});if(Ce){var Tt=Be(dt),Qt=Tt.missingRawValues,Ct=Tt.existRawValues,Mt=Ct.map(function(yn){return _e.get(yn).key}),Vt;if(nt){var mn=ei(Mt,!0,we);Vt=mn.checkedKeys}else{var Mn=ei(Mt,{halfCheckedKeys:Ye},we);Vt=Mn.checkedKeys}dt=[].concat(ke(Qt),ke(Vt.map(function(yn){return we[yn].node[Re.value]})))}pt(dt,{selected:nt,triggerValue:at},St||"option")}nt||!ge?c==null||c(at,PO(qe)):u==null||u(at,PO(qe))},[Be,_e,we,Re,ge,mt,pt,Ce,c,u,tt,Ye,I]),ut=s.useCallback(function(kt){if(Z){var Pt={};Object.defineProperty(Pt,"documentClickClose",{get:function(){return Kn(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Z(kt,Pt)}},[Z]),Xt=lj(function(kt,Pt){var Lt=kt.map(function(nt){return nt.value});if(Pt.type==="clear"){pt(Lt,{},"selection");return}Pt.values.length&&ft(Pt.values[0].value,{selected:!1,source:"selection"})}),Kt=s.useMemo(function(){return{virtual:V,dropdownMatchSelectWidth:ae,listHeight:U,listItemHeight:Y,listItemScrollOffset:Q,treeData:Qe,fieldNames:Re,onSelect:ft,treeExpandAction:W,treeTitleRender:ie,onPopupScroll:se,leftMaxCount:I===void 0?null:I-ct.length,leafCountOnly:Te==="SHOW_CHILD"&&!E&&!!$,valueEntities:_e}},[V,ae,U,Y,Q,Qe,Re,ft,W,ie,se,I,ct.length,Te,E,$,_e]),Ut=s.useMemo(function(){return{checkable:pe,loadData:A,treeLoadedKeys:j,onTreeLoad:D,checkedKeys:tt,halfCheckedKeys:Ye,treeDefaultExpandAll:F,treeExpandedKeys:L,treeDefaultExpandedKeys:B,onTreeExpand:K,treeIcon:re,treeMotion:de,showTreeIcon:fe,switcherIcon:ue,treeLine:le,treeNodeFilterProp:S,keyEntities:we}},[pe,A,j,D,tt,Ye,F,L,B,K,re,de,fe,ue,le,S,we]);return s.createElement(gU.Provider,{value:Kt},s.createElement(mU.Provider,{value:Ut},s.createElement(n4,Me({ref:t},ve,{id:he,prefixCls:a,mode:ge?"multiple":void 0,displayValues:ct,onDisplayValuesChange:Xt,searchValue:Ee,onSearch:Pe,OptionList:j$e,emptyOptions:!ze.length,onDropdownVisibleChange:ut,dropdownMatchSelectWidth:ae}))))}),Tg=k$e;Tg.TreeNode=l3;Tg.SHOW_ALL=s3;Tg.SHOW_PARENT=c3;Tg.SHOW_CHILD=A1;const A$e=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,a=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${me(e.paddingXS)} ${me(e.calc(e.paddingXS).div(2).equal())}`},Xq(n,en(e,{colorBgContainer:r}),!1),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},E1(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function L$e(e,t,n){return dn("TreeSelect",r=>{const a=en(r,{treePrefixCls:t});return A$e(a)},Qq)(e,n)}var B$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n,r,a,o,i;const{prefixCls:l,size:c,disabled:u,bordered:d=!0,style:f,className:m,rootClassName:g,treeCheckable:h,multiple:b,listHeight:p=256,listItemHeight:S,placement:C,notFoundContent:x,switcherIcon:w,treeLine:$,getPopupContainer:E,popupClassName:R,dropdownClassName:I,treeIcon:O=!1,transitionName:T,choiceTransitionName:_="",status:k,treeExpandAction:A,builtinPlacements:j,dropdownMatchSelectWidth:D,popupMatchSelectWidth:F,allowClear:L,variant:B,dropdownStyle:K,dropdownRender:W,popupRender:V,onDropdownVisibleChange:q,onOpenChange:U,tagRender:G,maxCount:Y,showCheckedStrategy:J,treeCheckStrictly:Q,styles:Z,classNames:ne}=e,ae=B$e(e,["prefixCls","size","disabled","bordered","style","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly","styles","classNames"]),{getPopupContainer:le,getPrefixCls:re,renderEmpty:fe,direction:ue,virtual:de,popupMatchSelectWidth:ie,popupOverflow:se}=s.useContext(jt),{styles:ve,classNames:he,switcherIcon:Ce}=sr("treeSelect"),[,pe]=Ur(),Se=S??(pe==null?void 0:pe.controlHeightSM)+(pe==null?void 0:pe.paddingXXS),ge=re(),ye=re("select",l),xe=re("select-tree",l),$e=re("tree-select",l),{compactSize:He,compactItemClassnames:Te}=Ao(ye,ue),Re=Yn(ye),Fe=Yn($e),[je,Ee,Le]=s4(ye,Re),[Pe]=L$e($e,xe,Fe),[ze,Oe]=Gl("treeSelect",B,d),we=oe(((n=ne==null?void 0:ne.popup)===null||n===void 0?void 0:n.root)||((r=he==null?void 0:he.popup)===null||r===void 0?void 0:r.root)||R||I,`${$e}-dropdown`,{[`${$e}-dropdown-rtl`]:ue==="rtl"},g,he.root,ne==null?void 0:ne.root,Le,Re,Fe,Ee),_e=((a=Z==null?void 0:Z.popup)===null||a===void 0?void 0:a.root)||((o=ve==null?void 0:ve.popup)===null||o===void 0?void 0:o.root)||K,Be=c4(V||W),Qe=U||q,lt=!!(h||b),Ke=s.useMemo(()=>{if(!(Y&&(J==="SHOW_ALL"&&!Q||J==="SHOW_PARENT")))return Y},[Y,J,Q]),et=u4(e.suffixIcon,e.showArrow),st=(i=F??D)!==null&&i!==void 0?i:ie,{status:Ze,hasFeedback:vt,isFormItemInput:Ot,feedbackIcon:xt}=s.useContext(Hr),mt=Ul(Ze,k),{suffixIcon:yt,removeIcon:bt,clearIcon:tt}=c1(Object.assign(Object.assign({},ae),{multiple:lt,showSuffixIcon:et,hasFeedback:vt,feedbackIcon:xt,prefixCls:ye,componentName:"TreeSelect"})),Ye=L===!0?{clearIcon:tt}:L;let Ne;x!==void 0?Ne=x:Ne=(fe==null?void 0:fe("Select"))||s.createElement(Cg,{componentName:"Select"});const We=nn(ae,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon","style"]),rt=s.useMemo(()=>C!==void 0?C:ue==="rtl"?"bottomRight":"bottomLeft",[C,ue]),ct=Er(kt=>{var Pt;return(Pt=c??He)!==null&&Pt!==void 0?Pt:kt}),At=s.useContext(Br),pt=u??At,ft=oe(!l&&$e,{[`${ye}-lg`]:ct==="large",[`${ye}-sm`]:ct==="small",[`${ye}-rtl`]:ue==="rtl",[`${ye}-${ze}`]:Oe,[`${ye}-in-form-item`]:Ot},Ai(ye,mt,vt),Te,m,g,he.root,ne==null?void 0:ne.root,Le,Re,Fe,Ee),ut=w??Ce,Xt=kt=>s.createElement(Jq,{prefixCls:xe,switcherIcon:ut,treeNodeProps:kt,showLine:$}),[Kt]=fi("SelectLike",_e==null?void 0:_e.zIndex),Ut=s.createElement(Tg,Object.assign({virtual:de,disabled:pt},We,{dropdownMatchSelectWidth:st,builtinPlacements:l4(j,se),ref:t,prefixCls:ye,className:ft,style:Object.assign(Object.assign({},Z==null?void 0:Z.root),f),listHeight:p,listItemHeight:Se,treeCheckable:h&&s.createElement("span",{className:`${ye}-tree-checkbox-inner`}),treeLine:!!$,suffixIcon:yt,multiple:lt,placement:rt,removeIcon:bt,allowClear:Ye,switcherIcon:Xt,showTreeIcon:O,notFoundContent:Ne,getPopupContainer:E||le,treeMotion:null,dropdownClassName:we,dropdownStyle:Object.assign(Object.assign({},_e),{zIndex:Kt}),dropdownRender:Be,onDropdownVisibleChange:Qe,choiceTransitionName:pa(ge,"",_),transitionName:pa(ge,"slide-up",T),treeExpandAction:A,tagRender:lt?G:void 0,maxCount:Ke,showCheckedStrategy:J,treeCheckStrictly:Q}));return je(Pe(Ut))},H$e=s.forwardRef(z$e),bu=H$e,V$e=nc(bu,"dropdownAlign",e=>nn(e,["visible"]));bu.TreeNode=l3;bu.SHOW_ALL=s3;bu.SHOW_PARENT=c3;bu.SHOW_CHILD=A1;bu._InternalPanelDoNotUseOrYouWillBeFired=V$e;var W$e={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"},K$e=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:W$e}))},q$e=s.forwardRef(K$e),U$e={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"},G$e=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:U$e}))},Y$e=s.forwardRef(G$e);const X$e=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},Q$e=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` h${r}&, div&-h${r}, div&-h${r} > textarea, h${r} - `]=j$e(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},D$e=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},yR(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},k$e=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:Im[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}}),A$e=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).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"}}}},L$e=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),B$e=()=>({"\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"}}),z$e=e=>{const{componentCls:t,titleMarginTop:n}=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"}},F$e(e)),{[` + `]=X$e(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},J$e=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},NR(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Z$e=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:Om[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}}),eEe=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).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"}}}},tEe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),nEe=()=>({"\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"}}),rEe=e=>{const{componentCls:t,titleMarginTop:n}=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"}},Q$e(e)),{[` & + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t} - `]:{marginTop:n},"\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:n}}}),k$e(e)),D$e(e)),{[` + `]:{marginTop:n},"\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:n}}}),Z$e(e)),J$e(e)),{[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy - `]:Object.assign(Object.assign({},yR(e)),{marginInlineStart:e.marginXXS})}),A$e(e)),L$e(e)),B$e()),{"&-rtl":{direction:"rtl"}})}},H$e=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Jq=un("Typography",z$e,H$e),V$e=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:i,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:g=s.createElement(_$e,null)}=e,h=s.useRef(null),b=s.useRef(!1),p=s.useRef(null),[S,C]=s.useState(c);s.useEffect(()=>{C(c)},[c]),s.useEffect(()=>{var j;if(!((j=h.current)===null||j===void 0)&&j.resizableTextArea){const{textArea:D}=h.current.resizableTextArea;D.focus();const{length:F}=D.value;D.setSelectionRange(F,F)}},[]);const x=({target:j})=>{C(j.value.replace(/[\n\r]/g,""))},w=()=>{b.current=!0},$=()=>{b.current=!1},E=({keyCode:j})=>{b.current||(p.current=j)},R=()=>{u(S.trim())},I=({keyCode:j,ctrlKey:D,altKey:F,metaKey:L,shiftKey:B})=>{p.current!==j||b.current||D||F||L||B||(j===ot.ENTER?(R(),f==null||f()):j===ot.ESC&&d())},O=()=>{R()},[T,N,A]=Jq(t),k=oe(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${m}`]:!!m},r,N,A);return T(s.createElement("div",{className:k,style:a},s.createElement(YK,{ref:h,maxLength:i,value:S,onChange:x,onKeyDown:E,onKeyUp:I,onCompositionStart:w,onCompositionEnd:$,onBlur:O,"aria-label":n,rows:1,autoSize:l}),g!==null?Br(g,{className:`${t}-edit-content-confirm`}):null))};var zx,G_;function W$e(){return G_||(G_=1,zx=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=t[i.format]||t.default;window.clipboardData.setData(p,o)}else b.clipboardData.clearData(),b.clipboardData.setData(i.format,o);i.onCopy&&(b.preventDefault(),i.onCopy(b.clipboardData))}),document.body.appendChild(m),d.selectNodeContents(m),f.addRange(d);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");g=!0}catch(b){l&&console.error("unable to copy using execCommand: ",b),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",o),i.onCopy&&i.onCopy(window.clipboardData),g=!0}catch(p){l&&console.error("unable to copy using clipboardData: ",p),l&&console.error("falling back to prompt"),c=r("message"in i?i.message:n),window.prompt(c,o)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(d):f.removeAllRanges()),m&&document.body.removeChild(m),u()}return g}return Hx=a,Hx}var q$e=K$e();const U$e=an(q$e);var G$e=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function l(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const Y$e=({copyConfig:e,children:t})=>{const[n,r]=s.useState(!1),[a,o]=s.useState(!1),i=s.useRef(null),l=()=>{i.current&&clearTimeout(i.current)},c={};e.format&&(c.format=e.format),s.useEffect(()=>l,[]);const u=Zt(d=>G$e(void 0,void 0,void 0,function*(){var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),o(!0);try{const m=typeof e.text=="function"?yield e.text():e.text;U$e(m||m1e(t,!0).join("")||"",c),o(!1),r(!0),l(),i.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,d)}catch(m){throw o(!1),m}}));return{copied:n,copyLoading:a,onClick:u}};function Vx(e,t){return s.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const X$e=e=>{const t=s.useRef(void 0);return s.useEffect(()=>{t.current=e}),t.current},Q$e=(e,t,n)=>s.useMemo(()=>e===!0?{title:t??n}:s.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var J$e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:i,children:l,direction:c,style:u}=e,d=J$e(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:g,style:h}=lr("typography"),b=c??m,p=i?Fr(t,i):t,S=f("typography",n),[C,x,w]=Jq(S),$=oe(S,g,{[`${S}-rtl`]:b==="rtl"},a,o,x,w),E=Object.assign(Object.assign({},h),u);return C(s.createElement(r,Object.assign({className:$,style:E,ref:p},d),l))});var Z$e={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"},eEe=function(t,n){return s.createElement(ln,Me({},t,{ref:n,icon:Z$e}))},Z4=s.forwardRef(eEe);function X_(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Wx(e,t,n){return e===!0||e===void 0?t:e||n&&t}function tEe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const e3=e=>["string","number"].includes(typeof e),nEe=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:o,tabIndex:i,onCopy:l,loading:c})=>{const u=X_(a),d=X_(o),{copied:f,copy:m}=n??{},g=t?f:m,h=Wx(u[t?1:0],g),b=typeof h=="string"?h:g;return s.createElement(Kn,{title:h},s.createElement("button",{type:"button",className:oe(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:l,"aria-label":b,tabIndex:i},t?Wx(d[1],s.createElement(t1,null),!0):Wx(d[0],c?s.createElement(Ya,null):s.createElement(Z4,null),!0)))},Ph=s.forwardRef(({style:e,children:t},n)=>{const r=s.useRef(null);return s.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),rEe=e=>e.reduce((t,n)=>t+(e3(n)?String(n).length:1),0);function Q_(e,t){let n=0;const r=[];for(let a=0;at){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const Kx=0,qx=1,Ux=2,Gx=3,J_=4,Oh={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function aEe(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:i,miscDeps:l,onEllipsis:c}=e,u=s.useMemo(()=>rr(r),[r]),d=s.useMemo(()=>rEe(u),[r]),f=s.useMemo(()=>a(u,!1),[r]),[m,g]=s.useState(null),h=s.useRef(null),b=s.useRef(null),p=s.useRef(null),S=s.useRef(null),C=s.useRef(null),[x,w]=s.useState(!1),[$,E]=s.useState(Kx),[R,I]=s.useState(0),[O,T]=s.useState(null);dn(()=>{E(t&&n&&d?qx:Kx)},[n,r,o,t,u]),dn(()=>{var j,D,F,L;if($===qx){E(Ux);const B=b.current&&getComputedStyle(b.current).whiteSpace;T(B)}else if($===Ux){const B=!!(!((j=p.current)===null||j===void 0)&&j.isExceed());E(B?Gx:J_),g(B?[0,d]:null),w(B);const K=((D=p.current)===null||D===void 0?void 0:D.getHeight())||0,W=o===1?0:((F=S.current)===null||F===void 0?void 0:F.getHeight())||0,V=((L=C.current)===null||L===void 0?void 0:L.getHeight())||0,q=Math.max(K,W+V);I(q+1),c(B)}},[$]);const N=m?Math.ceil((m[0]+m[1])/2):0;dn(()=>{var j;const[D,F]=m||[0,0];if(D!==F){const B=(((j=h.current)===null||j===void 0?void 0:j.getHeight())||0)>R;let K=N;F-D===1&&(K=B?D:F),g(B?[D,K]:[K,F])}},[m,N]);const A=s.useMemo(()=>{if(!t)return a(u,!1);if($!==Gx||!m||m[0]!==m[1]){const j=a(u,!1);return[J_,Kx].includes($)?j:s.createElement("span",{style:Object.assign(Object.assign({},Oh),{WebkitLineClamp:o})},j)}return a(i?u:Q_(u,m[0]),x)},[i,$,m,u].concat(ke(l))),k={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,A,$===Ux&&s.createElement(s.Fragment,null,s.createElement(Ph,{style:Object.assign(Object.assign(Object.assign({},k),Oh),{WebkitLineClamp:o}),ref:p},f),s.createElement(Ph,{style:Object.assign(Object.assign(Object.assign({},k),Oh),{WebkitLineClamp:o-1}),ref:S},f),s.createElement(Ph,{style:Object.assign(Object.assign(Object.assign({},k),Oh),{WebkitLineClamp:1}),ref:C},a([],!0))),$===Gx&&m&&m[0]!==m[1]&&s.createElement(Ph,{style:Object.assign(Object.assign({},k),{top:400}),ref:h},a(Q_(u,N),!0)),$===qx&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const oEe=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:s.createElement(Kn,Object.assign({open:t?void 0:!1},r),n);var iEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,style:o,type:i,disabled:l,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:g}=e,h=iEe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:p}=s.useContext(jt),[S]=Pa("Text"),C=s.useRef(null),x=s.useRef(null),w=b("typography",r),$=nn(h,Z_),[E,R]=Vx(d),[I,O]=_t(!1,{value:R.editing}),{triggerType:T=["icon"]}=R,N=Oe=>{var we;Oe&&((we=R.onStart)===null||we===void 0||we.call(R)),O(Oe)},A=X$e(I);dn(()=>{var Oe;!I&&A&&((Oe=x.current)===null||Oe===void 0||Oe.focus())},[I]);const k=Oe=>{Oe==null||Oe.preventDefault(),N(!0)},j=Oe=>{var we;(we=R.onChange)===null||we===void 0||we.call(R,Oe),N(!1)},D=()=>{var Oe;(Oe=R.onCancel)===null||Oe===void 0||Oe.call(R),N(!1)},[F,L]=Vx(f),{copied:B,copyLoading:K,onClick:W}=Y$e({copyConfig:L,children:c}),[V,q]=s.useState(!1),[U,G]=s.useState(!1),[Y,J]=s.useState(!1),[Q,Z]=s.useState(!1),[ne,ae]=s.useState(!0),[le,re]=Vx(u,{expandable:!1,symbol:Oe=>Oe?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[fe,ue]=_t(re.defaultExpanded||!1,{value:re.expanded}),de=le&&(!fe||re.expandable==="collapsible"),{rows:ie=1}=re,se=s.useMemo(()=>de&&(re.suffix!==void 0||re.onEllipsis||re.expandable||E||F),[de,re,E,F]);dn(()=>{le&&!se&&(q(NP("webkitLineClamp")),G(NP("textOverflow")))},[se,le]);const[ve,he]=s.useState(de),Ce=s.useMemo(()=>se?!1:ie===1?U:V,[se,U,V]);dn(()=>{he(Ce&&de)},[Ce,de]);const pe=de&&(ve?Q:Y),Se=de&&ie===1&&ve,ge=de&&ie>1&&ve,ye=(Oe,we)=>{var _e;ue(we.expanded),(_e=re.onExpand)===null||_e===void 0||_e.call(re,Oe,we)},[xe,$e]=s.useState(0),He=({offsetWidth:Oe})=>{$e(Oe)},Te=Oe=>{var we;J(Oe),Y!==Oe&&((we=re.onEllipsis)===null||we===void 0||we.call(re,Oe))};s.useEffect(()=>{const Oe=C.current;if(le&&ve&&Oe){const we=tEe(Oe);Q!==we&&Z(we)}},[le,ve,c,ge,ne,xe]),s.useEffect(()=>{const Oe=C.current;if(typeof IntersectionObserver>"u"||!Oe||!ve||!de)return;const we=new IntersectionObserver(()=>{ae(!!Oe.offsetParent)});return we.observe(Oe),()=>{we.disconnect()}},[ve,de]);const Re=Q$e(re.tooltip,R.text,c),Fe=s.useMemo(()=>{if(!(!le||ve))return[R.text,c,g,Re.title].find(e3)},[le,ve,g,Re.title,pe]);if(I)return s.createElement(V$e,{value:(n=R.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:j,onCancel:D,onEnd:R.onEnd,prefixCls:w,className:a,style:o,direction:p,component:m,maxLength:R.maxLength,autoSize:R.autoSize,enterIcon:R.enterIcon});const je=()=>{const{expandable:Oe,symbol:we}=re;return Oe?s.createElement("button",{type:"button",key:"expand",className:`${w}-${fe?"collapse":"expand"}`,onClick:_e=>ye(_e,{expanded:!fe}),"aria-label":fe?S.collapse:S==null?void 0:S.expand},typeof we=="function"?we(fe):we):null},Ee=()=>{if(!E)return;const{icon:Oe,tooltip:we,tabIndex:_e}=R,Be=rr(we)[0]||(S==null?void 0:S.edit),Qe=typeof Be=="string"?Be:"";return T.includes("icon")?s.createElement(Kn,{key:"edit",title:we===!1?"":Be},s.createElement("button",{type:"button",ref:x,className:`${w}-edit`,onClick:k,"aria-label":Qe,tabIndex:_e},Oe||s.createElement(M$e,{role:"button"}))):null},Le=()=>F?s.createElement(nEe,Object.assign({key:"copy"},L,{prefixCls:w,copied:B,locale:S,onCopy:W,loading:K,iconOnly:c==null})):null,Pe=Oe=>[Oe&&je(),Ee(),Le()],ze=Oe=>[Oe&&!fe&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},sEe),re.suffix,Pe(Oe)];return s.createElement(Rr,{onResize:He,disabled:!de},Oe=>s.createElement(oEe,{tooltipProps:Re,enableEllipsis:de,isEllipsis:pe},s.createElement(Zq,Object.assign({className:oe({[`${w}-${i}`]:i,[`${w}-disabled`]:l,[`${w}-ellipsis`]:le,[`${w}-ellipsis-single-line`]:Se,[`${w}-ellipsis-multiple-line`]:ge},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:ge?ie:void 0}),component:m,ref:Fr(Oe,C,t),direction:p,onClick:T.includes("text")?k:void 0,"aria-label":Fe==null?void 0:Fe.toString(),title:g},$),s.createElement(aEe,{enableMeasure:de&&!ve,text:c,rows:ie,width:xe,onEllipsis:Te,expanded:fe,miscDeps:[B,fe,K,E,F,S].concat(ke(Z_.map(we=>e[we])))},(we,_e)=>lEe(e,s.createElement(s.Fragment,null,we.length>0&&_e&&!fe&&Fe?s.createElement("span",{key:"show-content","aria-hidden":!0},we):we,ze(_e)))))))});var cEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{ellipsis:n,rel:r,children:a,navigate:o}=e,i=cEe(e,["ellipsis","rel","children","navigate"]),l=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return s.createElement(N1,Object.assign({},l,{ref:t,ellipsis:!!n,component:"a"}),a)});var dEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=dEe(e,["children"]);return s.createElement(N1,Object.assign({ref:t},r,{component:"div"}),n)});var vEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{ellipsis:n,children:r}=e,a=vEe(e,["ellipsis","children"]),o=s.useMemo(()=>n&&typeof n=="object"?nn(n,["expandable","rows"]):n,[n]);return s.createElement(N1,Object.assign({ref:t},a,{ellipsis:o,component:"span"}),r)},gEe=s.forwardRef(mEe);var pEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1,children:r}=e,a=pEe(e,["level","children"]),o=hEe.includes(n)?`h${n}`:"h1";return s.createElement(N1,Object.assign({ref:t},a,{component:o}),r)}),On=Zq;On.Text=gEe;On.Link=uEe;On.Title=bEe;On.Paragraph=fEe;var Pv={},Yx={exports:{}},ej;function Wi(){return ej||(ej=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Yx)),Yx.exports}var Ov={},tj;function yEe(){if(tj)return Ov;tj=1,Object.defineProperty(Ov,"__esModule",{value:!0}),Ov.default=void 0;var e={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:"页码"};return Ov.default=e,Ov}var Iv={},Rv={},Mv={},Xx={exports:{}},Qx={exports:{}},Jx={exports:{}},Zx={exports:{}},nj;function _1(){return nj||(nj=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Zx)),Zx.exports}var ew={exports:{}},rj;function CEe(){return rj||(rj=1,(function(e){var t=_1().default;function n(r,a){if(t(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var i=o.call(r,a||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(ew)),ew.exports}var aj;function SEe(){return aj||(aj=1,(function(e){var t=_1().default,n=CEe();function r(a){var o=n(a,"string");return t(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Jx)),Jx.exports}var oj;function eU(){return oj||(oj=1,(function(e){var t=SEe();function n(r,a,o){return(a=t(a))in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Qx)),Qx.exports}var ij;function j1(){return ij||(ij=1,(function(e){var t=eU();function n(a,o){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);o&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),i.push.apply(i,l)}return i}function r(a){for(var o=1;o{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_c,$s,Nd,EB,REe=(EB=class extends kf{constructor(){super();fn(this,_c);fn(this,$s);fn(this,Nd);qt(this,Nd,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){De(this,$s)||this.setEventListener(De(this,Nd))}onUnsubscribe(){var t;this.hasListeners()||((t=De(this,$s))==null||t.call(this),qt(this,$s,void 0))}setEventListener(t){var n;qt(this,Nd,t),(n=De(this,$s))==null||n.call(this),qt(this,$s,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){De(this,_c)!==t&&(qt(this,_c,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof De(this,_c)=="boolean"?De(this,_c):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_c=new WeakMap,$s=new WeakMap,Nd=new WeakMap,EB),t3=new REe,MEe={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Es,oR,PB,TEe=(PB=class{constructor(){fn(this,Es,MEe);fn(this,oR,!1)}setTimeoutProvider(e){qt(this,Es,e)}setTimeout(e,t){return De(this,Es).setTimeout(e,t)}clearTimeout(e){De(this,Es).clearTimeout(e)}setInterval(e,t){return De(this,Es).setInterval(e,t)}clearInterval(e){De(this,Es).clearInterval(e)}},Es=new WeakMap,oR=new WeakMap,PB),Tc=new TEe;function NEe(e){setTimeout(e,0)}var _Ee=typeof window>"u"||"Deno"in globalThis;function Ka(){}function jEe(e,t){return typeof e=="function"?e(t):e}function bO(e){return typeof e=="number"&&e>=0&&e!==1/0}function rU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ks(e,t){return typeof e=="function"?e(t):e}function Ro(e,t){return typeof e=="function"?e(t):e}function mj(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==n3(i,t.options))return!1}else if(!nf(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||o&&!o(t))}function gj(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(nu(t.options.mutationKey)!==nu(o))return!1}else if(!nf(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function n3(e,t){return((t==null?void 0:t.queryKeyHashFn)||nu)(e)}function nu(e){return JSON.stringify(e,(t,n)=>yO(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function nf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r500)return t;const r=pj(e)&&pj(t);if(!r&&!(yO(e)&&yO(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),l=i.length,c=r?new Array(l):{};let u=0;for(let d=0;d{Tc.setTimeout(t,e)})}function CO(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?aU(e,t):t}function kEe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function AEe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var r3=Symbol();function oU(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===r3?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function a3(e,t){return typeof e=="function"?e(...t):!!e}function LEe(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var zm=(()=>{let e=()=>_Ee;return{isServer(){return e()},setIsServer(t){e=t}}})();function SO(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var BEe=NEe;function zEe(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=BEe;const o=l=>{t?e.push(l):a(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&a(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{a=l}}}var aa=zEe(),_d,Ps,jd,OB,HEe=(OB=class extends kf{constructor(){super();fn(this,_d,!0);fn(this,Ps);fn(this,jd);qt(this,jd,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){De(this,Ps)||this.setEventListener(De(this,jd))}onUnsubscribe(){var t;this.hasListeners()||((t=De(this,Ps))==null||t.call(this),qt(this,Ps,void 0))}setEventListener(t){var n;qt(this,jd,t),(n=De(this,Ps))==null||n.call(this),qt(this,Ps,t(this.setOnline.bind(this)))}setOnline(t){De(this,_d)!==t&&(qt(this,_d,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return De(this,_d)}},_d=new WeakMap,Ps=new WeakMap,jd=new WeakMap,OB),ry=new HEe;function VEe(e){return Math.min(1e3*2**e,3e4)}function iU(e){return(e??"online")==="online"?ry.isOnline():!0}var xO=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function lU(e){let t=!1,n=0,r;const a=SO(),o=()=>a.status!=="pending",i=b=>{var p;if(!o()){const S=new xO(b);m(S),(p=e.onCancel)==null||p.call(e,S)}},l=()=>{t=!0},c=()=>{t=!1},u=()=>t3.isFocused()&&(e.networkMode==="always"||ry.isOnline())&&e.canRun(),d=()=>iU(e.networkMode)&&e.canRun(),f=b=>{o()||(r==null||r(),a.resolve(b))},m=b=>{o()||(r==null||r(),a.reject(b))},g=()=>new Promise(b=>{var p;r=S=>{(o()||u())&&b(S)},(p=e.onPause)==null||p.call(e)}).then(()=>{var b;r=void 0,o()||(b=e.onContinue)==null||b.call(e)}),h=()=>{if(o())return;let b;const p=n===0?e.initialPromise:void 0;try{b=p??e.fn()}catch(S){b=Promise.reject(S)}Promise.resolve(b).then(f).catch(S=>{var E;if(o())return;const C=e.retry??(zm.isServer()?0:3),x=e.retryDelay??VEe,w=typeof x=="function"?x(n,S):x,$=C===!0||typeof C=="number"&&nu()?void 0:g()).then(()=>{t?m(S):h()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(r==null||r(),a),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?h():g().then(h),a)}}var jc,IB,sU=(IB=class{constructor(){fn(this,jc)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bO(this.gcTime)&&qt(this,jc,Tc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zm.isServer()?1/0:300*1e3))}clearGcTimeout(){De(this,jc)!==void 0&&(Tc.clearTimeout(De(this,jc)),qt(this,jc,void 0))}},jc=new WeakMap,IB);function WEe(e){return{onFetch:(t,n)=>{var d,f,m,g,h;const r=t.options,a=(m=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],i=((h=t.state.data)==null?void 0:h.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let b=!1;const p=x=>{LEe(x,()=>t.signal,()=>b=!0)},S=oU(t.options,t.fetchOptions),C=async(x,w,$)=>{if(b)return Promise.reject(t.signal.reason);if(w==null&&x.pages.length)return Promise.resolve(x);const R=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:w,direction:$?"backward":"forward",meta:t.options.meta};return p(N),N})(),I=await S(R),{maxPages:O}=t.options,T=$?AEe:kEe;return{pages:T(x.pages,I,O),pageParams:T(x.pageParams,w,O)}};if(a&&o.length){const x=a==="backward",w=x?KEe:bj,$={pages:o,pageParams:i},E=w(r,$);l=await C($,E,x)}else{const x=e??o.length;do{const w=c===0?i[0]??r.initialPageParam:bj(r,l);if(c>0&&w==null)break;l=await C(l,w),c++}while(c{var b,p;return(p=(b=t.options).persister)==null?void 0:p.call(b,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function bj(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function KEe(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Fd,Fc,Dd,Yo,Dc,da,rg,kc,Io,cU,Il,RB,qEe=(RB=class extends sU{constructor(t){super();fn(this,Io);fn(this,Fd);fn(this,Fc);fn(this,Dd);fn(this,Yo);fn(this,Dc);fn(this,da);fn(this,rg);fn(this,kc);qt(this,kc,!1),qt(this,rg,t.defaultOptions),this.setOptions(t.options),this.observers=[],qt(this,Dc,t.client),qt(this,Yo,De(this,Dc).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,qt(this,Fc,Cj(this.options)),this.state=t.state??De(this,Fc),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return De(this,Fd)}get promise(){var t;return(t=De(this,da))==null?void 0:t.promise}setOptions(t){if(this.options={...De(this,rg),...t},t!=null&&t._type&&qt(this,Fd,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Cj(this.options);n.data!==void 0&&(this.setState(yj(n.data,n.dataUpdatedAt)),qt(this,Fc,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&De(this,Yo).remove(this)}setData(t,n){const r=CO(this.state.data,t,this.options);return _n(this,Io,Il).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){_n(this,Io,Il).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=De(this,da))==null?void 0:r.promise;return(a=De(this,da))==null||a.cancel(t),n?n.then(Ka).catch(Ka):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return De(this,Fc)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Ro(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===r3||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ks(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!rU(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=De(this,da))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=De(this,da))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),De(this,Yo).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(De(this,da)&&(De(this,kc)||_n(this,Io,cU).call(this)?De(this,da).cancel({revert:!0}):De(this,da).cancelRetry()),this.scheduleGc()),De(this,Yo).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||_n(this,Io,Il).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,f,m,g,h,b,p,S,C,x;if(this.state.fetchStatus!=="idle"&&((u=De(this,da))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(De(this,da))return De(this,da).continueRetry(),De(this,da).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find($=>$.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(qt(this,kc,!0),r.signal)})},o=()=>{const w=oU(this.options,n),E=(()=>{const R={client:De(this,Dc),queryKey:this.queryKey,meta:this.meta};return a(R),R})();return qt(this,kc,!1),this.options.persister?this.options.persister(w,E,this):w(E)},l=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:De(this,Dc),state:this.state,fetchFn:o};return a(w),w})(),c=De(this,Fd)==="infinite"?WEe(this.options.pages):this.options.behavior;c==null||c.onFetch(l,this),qt(this,Dd,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&_n(this,Io,Il).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta}),qt(this,da,lU({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:w=>{w instanceof xO&&w.revert&&this.setState({...De(this,Dd),fetchStatus:"idle"}),r.abort()},onFail:(w,$)=>{_n(this,Io,Il).call(this,{type:"failed",failureCount:w,error:$})},onPause:()=>{_n(this,Io,Il).call(this,{type:"pause"})},onContinue:()=>{_n(this,Io,Il).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const w=await De(this,da).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(g=(m=De(this,Yo).config).onSuccess)==null||g.call(m,w,this),(b=(h=De(this,Yo).config).onSettled)==null||b.call(h,w,this.state.error,this),w}catch(w){if(w instanceof xO){if(w.silent)return De(this,da).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw _n(this,Io,Il).call(this,{type:"error",error:w}),(S=(p=De(this,Yo).config).onError)==null||S.call(p,w,this),(x=(C=De(this,Yo).config).onSettled)==null||x.call(C,this.state.data,w,this),w}finally{this.scheduleGc()}}},Fd=new WeakMap,Fc=new WeakMap,Dd=new WeakMap,Yo=new WeakMap,Dc=new WeakMap,da=new WeakMap,rg=new WeakMap,kc=new WeakMap,Io=new WeakSet,cU=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Il=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...uU(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...yj(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return qt(this,Dd,t.manual?a:void 0),a;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),aa.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),De(this,Yo).notify({query:this,type:"updated",action:t})})},RB);function uU(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:iU(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function yj(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Cj(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var io,Vn,ag,Wa,Ac,kd,Tl,Os,og,Ad,Ld,Lc,Bc,Is,Bd,nr,tm,wO,$O,EO,PO,OO,IO,RO,dU,MB,UEe=(MB=class extends kf{constructor(t,n){super();fn(this,nr);fn(this,io);fn(this,Vn);fn(this,ag);fn(this,Wa);fn(this,Ac);fn(this,kd);fn(this,Tl);fn(this,Os);fn(this,og);fn(this,Ad);fn(this,Ld);fn(this,Lc);fn(this,Bc);fn(this,Is);fn(this,Bd,new Set);this.options=n,qt(this,io,t),qt(this,Os,null),qt(this,Tl,SO()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(De(this,Vn).addObserver(this),Sj(De(this,Vn),this.options)?_n(this,nr,tm).call(this):this.updateResult(),_n(this,nr,PO).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return MO(De(this,Vn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return MO(De(this,Vn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,_n(this,nr,OO).call(this),_n(this,nr,IO).call(this),De(this,Vn).removeObserver(this)}setOptions(t){const n=this.options,r=De(this,Vn);if(this.options=De(this,io).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ro(this.options.enabled,De(this,Vn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");_n(this,nr,RO).call(this),De(this,Vn).setOptions(this.options),n._defaulted&&!ny(this.options,n)&&De(this,io).getQueryCache().notify({type:"observerOptionsUpdated",query:De(this,Vn),observer:this});const a=this.hasListeners();a&&xj(De(this,Vn),r,this.options,n)&&_n(this,nr,tm).call(this),this.updateResult(),a&&(De(this,Vn)!==r||Ro(this.options.enabled,De(this,Vn))!==Ro(n.enabled,De(this,Vn))||Ks(this.options.staleTime,De(this,Vn))!==Ks(n.staleTime,De(this,Vn)))&&_n(this,nr,wO).call(this);const o=_n(this,nr,$O).call(this);a&&(De(this,Vn)!==r||Ro(this.options.enabled,De(this,Vn))!==Ro(n.enabled,De(this,Vn))||o!==De(this,Is))&&_n(this,nr,EO).call(this,o)}getOptimisticResult(t){const n=De(this,io).getQueryCache().build(De(this,io),t),r=this.createResult(n,t);return YEe(this,r)&&(qt(this,Wa,r),qt(this,kd,this.options),qt(this,Ac,De(this,Vn).state)),r}getCurrentResult(){return De(this,Wa)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&De(this,Tl).status==="pending"&&De(this,Tl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){De(this,Bd).add(t)}getCurrentQuery(){return De(this,Vn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=De(this,io).defaultQueryOptions(t),r=De(this,io).getQueryCache().build(De(this,io),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return _n(this,nr,tm).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),De(this,Wa)))}createResult(t,n){var O;const r=De(this,Vn),a=this.options,o=De(this,Wa),i=De(this,Ac),l=De(this,kd),u=t!==r?t.state:De(this,ag),{state:d}=t;let f={...d},m=!1,g;if(n._optimisticResults){const T=this.hasListeners(),N=!T&&Sj(t,n),A=T&&xj(t,r,n,a);(N||A)&&(f={...f,...uU(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:b,status:p}=f;g=f.data;let S=!1;if(n.placeholderData!==void 0&&g===void 0&&p==="pending"){let T;o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(T=o.data,S=!0):T=typeof n.placeholderData=="function"?n.placeholderData((O=De(this,Ld))==null?void 0:O.state.data,De(this,Ld)):n.placeholderData,T!==void 0&&(p="success",g=CO(o==null?void 0:o.data,T,n),m=!0)}if(n.select&&g!==void 0&&!S)if(o&&g===(i==null?void 0:i.data)&&n.select===De(this,og))g=De(this,Ad);else try{qt(this,og,n.select),g=n.select(g),g=CO(o==null?void 0:o.data,g,n),qt(this,Ad,g),qt(this,Os,null)}catch(T){qt(this,Os,T)}De(this,Os)&&(h=De(this,Os),g=De(this,Ad),b=Date.now(),p="error");const C=f.fetchStatus==="fetching",x=p==="pending",w=p==="error",$=x&&C,E=g!==void 0,I={status:p,fetchStatus:f.fetchStatus,isPending:x,isSuccess:p==="success",isError:w,isInitialLoading:$,isLoading:$,data:g,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:C,isRefetching:C&&!x,isLoadingError:w&&!E,isPaused:f.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:w&&E,isStale:o3(t,n),refetch:this.refetch,promise:De(this,Tl),isEnabled:Ro(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=I.data!==void 0,N=I.status==="error"&&!T,A=D=>{N?D.reject(I.error):T&&D.resolve(I.data)},k=()=>{const D=qt(this,Tl,I.promise=SO());A(D)},j=De(this,Tl);switch(j.status){case"pending":t.queryHash===r.queryHash&&A(j);break;case"fulfilled":(N||I.data!==j.value)&&k();break;case"rejected":(!N||I.error!==j.reason)&&k();break}}return I}updateResult(){const t=De(this,Wa),n=this.createResult(De(this,Vn),this.options);if(qt(this,Ac,De(this,Vn).state),qt(this,kd,this.options),De(this,Ac).data!==void 0&&qt(this,Ld,De(this,Vn)),ny(n,t))return;qt(this,Wa,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!De(this,Bd).size)return!0;const i=new Set(o??De(this,Bd));return this.options.throwOnError&&i.add("error"),Object.keys(De(this,Wa)).some(l=>{const c=l;return De(this,Wa)[c]!==t[c]&&i.has(c)})};_n(this,nr,dU).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&_n(this,nr,PO).call(this)}},io=new WeakMap,Vn=new WeakMap,ag=new WeakMap,Wa=new WeakMap,Ac=new WeakMap,kd=new WeakMap,Tl=new WeakMap,Os=new WeakMap,og=new WeakMap,Ad=new WeakMap,Ld=new WeakMap,Lc=new WeakMap,Bc=new WeakMap,Is=new WeakMap,Bd=new WeakMap,nr=new WeakSet,tm=function(t){_n(this,nr,RO).call(this);let n=De(this,Vn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ka)),n},wO=function(){_n(this,nr,OO).call(this);const t=Ks(this.options.staleTime,De(this,Vn));if(zm.isServer()||De(this,Wa).isStale||!bO(t))return;const r=rU(De(this,Wa).dataUpdatedAt,t)+1;qt(this,Lc,Tc.setTimeout(()=>{De(this,Wa).isStale||this.updateResult()},r))},$O=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(De(this,Vn)):this.options.refetchInterval)??!1},EO=function(t){_n(this,nr,IO).call(this),qt(this,Is,t),!(zm.isServer()||Ro(this.options.enabled,De(this,Vn))===!1||!bO(De(this,Is))||De(this,Is)===0)&&qt(this,Bc,Tc.setInterval(()=>{(this.options.refetchIntervalInBackground||t3.isFocused())&&_n(this,nr,tm).call(this)},De(this,Is)))},PO=function(){_n(this,nr,wO).call(this),_n(this,nr,EO).call(this,_n(this,nr,$O).call(this))},OO=function(){De(this,Lc)!==void 0&&(Tc.clearTimeout(De(this,Lc)),qt(this,Lc,void 0))},IO=function(){De(this,Bc)!==void 0&&(Tc.clearInterval(De(this,Bc)),qt(this,Bc,void 0))},RO=function(){const t=De(this,io).getQueryCache().build(De(this,io),this.options);if(t===De(this,Vn))return;const n=De(this,Vn);qt(this,Vn,t),qt(this,ag,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},dU=function(t){aa.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(De(this,Wa))}),De(this,io).getQueryCache().notify({query:De(this,Vn),type:"observerResultsUpdated"})})},MB);function GEe(e,t){return Ro(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Ro(t.retryOnMount,e)===!1)}function Sj(e,t){return GEe(e,t)||e.state.data!==void 0&&MO(e,t,t.refetchOnMount)}function MO(e,t,n){if(Ro(t.enabled,e)!==!1&&Ks(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&o3(e,t)}return!1}function xj(e,t,n,r){return(e!==t||Ro(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&o3(e,n)}function o3(e,t){return Ro(t.enabled,e)!==!1&&e.isStaleByTime(Ks(t.staleTime,e))}function YEe(e,t){return!ny(e.getCurrentResult(),t)}var ig,el,Na,zc,tl,Ss,TB,XEe=(TB=class extends sU{constructor(t){super();fn(this,tl);fn(this,ig);fn(this,el);fn(this,Na);fn(this,zc);qt(this,ig,t.client),this.mutationId=t.mutationId,qt(this,Na,t.mutationCache),qt(this,el,[]),this.state=t.state||fU(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){De(this,el).includes(t)||(De(this,el).push(t),this.clearGcTimeout(),De(this,Na).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){qt(this,el,De(this,el).filter(n=>n!==t)),this.scheduleGc(),De(this,Na).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){De(this,el).length||(this.state.status==="pending"?this.scheduleGc():De(this,Na).remove(this))}continue(){var t;return((t=De(this,zc))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,c,u,d,f,m,g,h,b,p,S,C,x,w,$,E,R;const n=()=>{_n(this,tl,Ss).call(this,{type:"continue"})},r={client:De(this,ig),meta:this.options.meta,mutationKey:this.options.mutationKey};qt(this,zc,lU({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(I,O)=>{_n(this,tl,Ss).call(this,{type:"failed",failureCount:I,error:O})},onPause:()=>{_n(this,tl,Ss).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>De(this,Na).canRun(this)}));const a=this.state.status==="pending",o=!De(this,zc).canStart();try{if(a)n();else{_n(this,tl,Ss).call(this,{type:"pending",variables:t,isPaused:o}),De(this,Na).config.onMutate&&await De(this,Na).config.onMutate(t,this,r);const O=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t,r));O!==this.state.context&&_n(this,tl,Ss).call(this,{type:"pending",context:O,variables:t,isPaused:o})}const I=await De(this,zc).start();return await((u=(c=De(this,Na).config).onSuccess)==null?void 0:u.call(c,I,t,this.state.context,this,r)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,I,t,this.state.context,r)),await((g=(m=De(this,Na).config).onSettled)==null?void 0:g.call(m,I,null,this.state.variables,this.state.context,this,r)),await((b=(h=this.options).onSettled)==null?void 0:b.call(h,I,null,t,this.state.context,r)),_n(this,tl,Ss).call(this,{type:"success",data:I}),I}catch(I){try{await((S=(p=De(this,Na).config).onError)==null?void 0:S.call(p,I,t,this.state.context,this,r))}catch(O){Promise.reject(O)}try{await((x=(C=this.options).onError)==null?void 0:x.call(C,I,t,this.state.context,r))}catch(O){Promise.reject(O)}try{await(($=(w=De(this,Na).config).onSettled)==null?void 0:$.call(w,void 0,I,this.state.variables,this.state.context,this,r))}catch(O){Promise.reject(O)}try{await((R=(E=this.options).onSettled)==null?void 0:R.call(E,void 0,I,t,this.state.context,r))}catch(O){Promise.reject(O)}throw _n(this,tl,Ss).call(this,{type:"error",error:I}),I}finally{De(this,Na).runNext(this)}}},ig=new WeakMap,el=new WeakMap,Na=new WeakMap,zc=new WeakMap,tl=new WeakSet,Ss=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),aa.batch(()=>{De(this,el).forEach(r=>{r.onMutationUpdate(t)}),De(this,Na).notify({mutation:this,type:"updated",action:t})})},TB);function fU(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Nl,wi,lg,NB,QEe=(NB=class extends kf{constructor(t={}){super();fn(this,Nl);fn(this,wi);fn(this,lg);this.config=t,qt(this,Nl,new Set),qt(this,wi,new Map),qt(this,lg,0)}build(t,n,r){const a=new XEe({client:t,mutationCache:this,mutationId:++Qp(this,lg)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){De(this,Nl).add(t);const n=Ih(t);if(typeof n=="string"){const r=De(this,wi).get(n);r?r.push(t):De(this,wi).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(De(this,Nl).delete(t)){const n=Ih(t);if(typeof n=="string"){const r=De(this,wi).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&De(this,wi).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Ih(t);if(typeof n=="string"){const r=De(this,wi).get(n),a=r==null?void 0:r.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=Ih(t);if(typeof n=="string"){const a=(r=De(this,wi).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){aa.batch(()=>{De(this,Nl).forEach(t=>{this.notify({type:"removed",mutation:t})}),De(this,Nl).clear(),De(this,wi).clear()})}getAll(){return Array.from(De(this,Nl))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gj(n,r))}findAll(t={}){return this.getAll().filter(n=>gj(t,n))}notify(t){aa.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return aa.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ka))))}},Nl=new WeakMap,wi=new WeakMap,lg=new WeakMap,NB);function Ih(e){var t;return(t=e.options.scope)==null?void 0:t.id}var _l,Rs,lo,jl,zl,Z0,TO,_B,JEe=(_B=class extends kf{constructor(n,r){super();fn(this,zl);fn(this,_l);fn(this,Rs);fn(this,lo);fn(this,jl);qt(this,_l,n),this.setOptions(r),this.bindMethods(),_n(this,zl,Z0).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const r=this.options;this.options=De(this,_l).defaultMutationOptions(n),ny(this.options,r)||De(this,_l).getMutationCache().notify({type:"observerOptionsUpdated",mutation:De(this,lo),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&nu(r.mutationKey)!==nu(this.options.mutationKey)?this.reset():((a=De(this,lo))==null?void 0:a.state.status)==="pending"&&De(this,lo).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=De(this,lo))==null||n.removeObserver(this)}onMutationUpdate(n){_n(this,zl,Z0).call(this),_n(this,zl,TO).call(this,n)}getCurrentResult(){return De(this,Rs)}reset(){var n;(n=De(this,lo))==null||n.removeObserver(this),qt(this,lo,void 0),_n(this,zl,Z0).call(this),_n(this,zl,TO).call(this)}mutate(n,r){var a;return qt(this,jl,r),(a=De(this,lo))==null||a.removeObserver(this),qt(this,lo,De(this,_l).getMutationCache().build(De(this,_l),this.options)),De(this,lo).addObserver(this),De(this,lo).execute(n)}},_l=new WeakMap,Rs=new WeakMap,lo=new WeakMap,jl=new WeakMap,zl=new WeakSet,Z0=function(){var r;const n=((r=De(this,lo))==null?void 0:r.state)??fU();qt(this,Rs,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},TO=function(n){aa.batch(()=>{var r,a,o,i,l,c,u,d;if(De(this,jl)&&this.hasListeners()){const f=De(this,Rs).variables,m=De(this,Rs).context,g={client:De(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=De(this,jl)).onSuccess)==null||a.call(r,n.data,f,m,g)}catch(h){Promise.reject(h)}try{(i=(o=De(this,jl)).onSettled)==null||i.call(o,n.data,null,f,m,g)}catch(h){Promise.reject(h)}}else if((n==null?void 0:n.type)==="error"){try{(c=(l=De(this,jl)).onError)==null||c.call(l,n.error,f,m,g)}catch(h){Promise.reject(h)}try{(d=(u=De(this,jl)).onSettled)==null||d.call(u,void 0,n.error,f,m,g)}catch(h){Promise.reject(h)}}}this.listeners.forEach(f=>{f(De(this,Rs))})})},_B),nl,jB,ZEe=(jB=class extends kf{constructor(t={}){super();fn(this,nl);this.config=t,qt(this,nl,new Map)}build(t,n,r){const a=n.queryKey,o=n.queryHash??n3(a,n);let i=this.get(o);return i||(i=new qEe({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){De(this,nl).has(t.queryHash)||(De(this,nl).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=De(this,nl).get(t.queryHash);n&&(t.destroy(),n===t&&De(this,nl).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){aa.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return De(this,nl).get(t)}getAll(){return[...De(this,nl).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mj(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>mj(t,r)):n}notify(t){aa.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){aa.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){aa.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},nl=new WeakMap,jB),Ar,Ms,Ts,zd,Hd,Ns,Vd,Wd,FB,ePe=(FB=class{constructor(e={}){fn(this,Ar);fn(this,Ms);fn(this,Ts);fn(this,zd);fn(this,Hd);fn(this,Ns);fn(this,Vd);fn(this,Wd);qt(this,Ar,e.queryCache||new ZEe),qt(this,Ms,e.mutationCache||new QEe),qt(this,Ts,e.defaultOptions||{}),qt(this,zd,new Map),qt(this,Hd,new Map),qt(this,Ns,0)}mount(){Qp(this,Ns)._++,De(this,Ns)===1&&(qt(this,Vd,t3.subscribe(async e=>{e&&(await this.resumePausedMutations(),De(this,Ar).onFocus())})),qt(this,Wd,ry.subscribe(async e=>{e&&(await this.resumePausedMutations(),De(this,Ar).onOnline())})))}unmount(){var e,t;Qp(this,Ns)._--,De(this,Ns)===0&&((e=De(this,Vd))==null||e.call(this),qt(this,Vd,void 0),(t=De(this,Wd))==null||t.call(this),qt(this,Wd,void 0))}isFetching(e){return De(this,Ar).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return De(this,Ms).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=De(this,Ar).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=De(this,Ar).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ks(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return De(this,Ar).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=De(this,Ar).get(r.queryHash),o=a==null?void 0:a.state.data,i=jEe(t,o);if(i!==void 0)return De(this,Ar).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return aa.batch(()=>De(this,Ar).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=De(this,Ar).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=De(this,Ar);aa.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=De(this,Ar);return aa.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=aa.batch(()=>De(this,Ar).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Ka).catch(Ka)}invalidateQueries(e,t={}){return aa.batch(()=>(De(this,Ar).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=aa.batch(()=>De(this,Ar).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ka)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ka)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=De(this,Ar).build(this,t);return n.isStaleByTime(Ks(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ka).catch(Ka)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ka).catch(Ka)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return ry.isOnline()?De(this,Ms).resumePausedMutations():Promise.resolve()}getQueryCache(){return De(this,Ar)}getMutationCache(){return De(this,Ms)}getDefaultOptions(){return De(this,Ts)}setDefaultOptions(e){qt(this,Ts,e)}setQueryDefaults(e,t){De(this,zd).set(nu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...De(this,zd).values()],n={};return t.forEach(r=>{nf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){De(this,Hd).set(nu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...De(this,Hd).values()],n={};return t.forEach(r=>{nf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...De(this,Ts).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=n3(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===r3&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...De(this,Ts).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){De(this,Ar).clear(),De(this,Ms).clear()}},Ar=new WeakMap,Ms=new WeakMap,Ts=new WeakMap,zd=new WeakMap,Hd=new WeakMap,Ns=new WeakMap,Vd=new WeakMap,Wd=new WeakMap,FB),vU=s.createContext(void 0),Ng=e=>{const t=s.useContext(vU);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},tPe=({client:e,children:t})=>(s.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),_.jsx(vU.Provider,{value:e,children:t})),mU=s.createContext(!1),nPe=()=>s.useContext(mU);mU.Provider;function rPe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var aPe=s.createContext(rPe()),oPe=()=>s.useContext(aPe),iPe=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?a3(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},lPe=e=>{s.useEffect(()=>{e.clearReset()},[e])},sPe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||a3(n,[e.error,r])),cPe=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},uPe=(e,t)=>e.isLoading&&e.isFetching&&!t,dPe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,wj=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function fPe(e,t,n){var g,h,b,p;const r=nPe(),a=oPe(),o=Ng(),i=o.defaultQueryOptions(e);(h=(g=o.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||h.call(g,i);const l=o.getQueryCache().get(i.queryHash),c=e.subscribed!==!1;i._optimisticResults=r?"isRestoring":c?"optimistic":void 0,cPe(i),iPe(i,a,l),lPe(a);const u=!o.getQueryCache().get(i.queryHash),[d]=s.useState(()=>new t(o,i)),f=d.getOptimisticResult(i),m=!r&&c;if(s.useSyncExternalStore(s.useCallback(S=>{const C=m?d.subscribe(aa.batchCalls(S)):Ka;return d.updateResult(),C},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),s.useEffect(()=>{d.setOptions(i)},[i,d]),dPe(i,f))throw wj(i,d,a);if(sPe({result:f,errorResetBoundary:a,throwOnError:i.throwOnError,query:l,suspense:i.suspense}))throw f.error;if((p=(b=o.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||p.call(b,i,f),i.experimental_prefetchInRender&&!zm.isServer()&&uPe(f,r)){const S=u?wj(i,d,a):l==null?void 0:l.promise;S==null||S.catch(Ka).finally(()=>{d.updateResult()})}return i.notifyOnChangeProps?f:d.trackResult(f)}function sl(e,t){return fPe(e,UEe)}function vPe(e,t){const n=Ng(),[r]=s.useState(()=>new JEe(n,e));s.useEffect(()=>{r.setOptions(e)},[r,e]);const a=s.useSyncExternalStore(s.useCallback(i=>r.subscribe(aa.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=s.useCallback((i,l)=>{r.mutate(i,l).catch(Ka)},[r]);if(a.error&&a3(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** + `]:Object.assign(Object.assign({},NR(e)),{marginInlineStart:e.marginXXS})}),eEe(e)),tEe(e)),nEe()),{"&-rtl":{direction:"rtl"}})}},aEe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),pU=dn("Typography",rEe,aEe),oEe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:i,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:g=s.createElement(Y$e,null)}=e,h=s.useRef(null),b=s.useRef(!1),p=s.useRef(null),[S,C]=s.useState(c);s.useEffect(()=>{C(c)},[c]),s.useEffect(()=>{var j;if(!((j=h.current)===null||j===void 0)&&j.resizableTextArea){const{textArea:D}=h.current.resizableTextArea;D.focus();const{length:F}=D.value;D.setSelectionRange(F,F)}},[]);const x=({target:j})=>{C(j.value.replace(/[\n\r]/g,""))},w=()=>{b.current=!0},$=()=>{b.current=!1},E=({keyCode:j})=>{b.current||(p.current=j)},R=()=>{u(S.trim())},I=({keyCode:j,ctrlKey:D,altKey:F,metaKey:L,shiftKey:B})=>{p.current!==j||b.current||D||F||L||B||(j===ot.ENTER?(R(),f==null||f()):j===ot.ESC&&d())},O=()=>{R()},[T,_,k]=pU(t),A=oe(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${m}`]:!!m},r,_,k);return T(s.createElement("div",{className:A,style:a},s.createElement(vq,{ref:h,maxLength:i,value:S,onChange:x,onKeyDown:E,onKeyUp:I,onCompositionStart:w,onCompositionEnd:$,onBlur:O,"aria-label":n,rows:1,autoSize:l}),g!==null?zr(g,{className:`${t}-edit-content-confirm`}):null))};var Xx,cj;function iEe(){return cj||(cj=1,Xx=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=t[i.format]||t.default;window.clipboardData.setData(p,o)}else b.clipboardData.clearData(),b.clipboardData.setData(i.format,o);i.onCopy&&(b.preventDefault(),i.onCopy(b.clipboardData))}),document.body.appendChild(m),d.selectNodeContents(m),f.addRange(d);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");g=!0}catch(b){l&&console.error("unable to copy using execCommand: ",b),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",o),i.onCopy&&i.onCopy(window.clipboardData),g=!0}catch(p){l&&console.error("unable to copy using clipboardData: ",p),l&&console.error("falling back to prompt"),c=r("message"in i?i.message:n),window.prompt(c,o)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(d):f.removeAllRanges()),m&&document.body.removeChild(m),u()}return g}return Qx=a,Qx}var sEe=lEe();const cEe=rn(sEe);var uEe=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(i){i(o)})}return new(n||(n=Promise))(function(o,i){function l(d){try{u(r.next(d))}catch(f){i(f)}}function c(d){try{u(r.throw(d))}catch(f){i(f)}}function u(d){d.done?o(d.value):a(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const dEe=({copyConfig:e,children:t})=>{const[n,r]=s.useState(!1),[a,o]=s.useState(!1),i=s.useRef(null),l=()=>{i.current&&clearTimeout(i.current)},c={};e.format&&(c.format=e.format),s.useEffect(()=>l,[]);const u=Zt(d=>uEe(void 0,void 0,void 0,function*(){var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),o(!0);try{const m=typeof e.text=="function"?yield e.text():e.text;cEe(m||M1e(t,!0).join("")||"",c),o(!1),r(!0),l(),i.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,d)}catch(m){throw o(!1),m}}));return{copied:n,copyLoading:a,onClick:u}};function Jx(e,t){return s.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const fEe=e=>{const t=s.useRef(void 0);return s.useEffect(()=>{t.current=e}),t.current},vEe=(e,t,n)=>s.useMemo(()=>e===!0?{title:t??n}:s.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var mEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:i,children:l,direction:c,style:u}=e,d=mEe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:g,style:h}=sr("typography"),b=c??m,p=i?Dr(t,i):t,S=f("typography",n),[C,x,w]=pU(S),$=oe(S,g,{[`${S}-rtl`]:b==="rtl"},a,o,x,w),E=Object.assign(Object.assign({},h),u);return C(s.createElement(r,Object.assign({className:$,style:E,ref:p},d),l))});var gEe={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"},pEe=function(t,n){return s.createElement(sn,Me({},t,{ref:n,icon:gEe}))},u3=s.forwardRef(pEe);function dj(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Zx(e,t,n){return e===!0||e===void 0?t:e||n&&t}function hEe(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const d3=e=>["string","number"].includes(typeof e),bEe=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:o,tabIndex:i,onCopy:l,loading:c})=>{const u=dj(a),d=dj(o),{copied:f,copy:m}=n??{},g=t?f:m,h=Zx(u[t?1:0],g),b=typeof h=="string"?h:g;return s.createElement(Bn,{title:h},s.createElement("button",{type:"button",className:oe(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:l,"aria-label":b,tabIndex:i},t?Zx(d[1],s.createElement(l1,null),!0):Zx(d[0],c?s.createElement(Ya,null):s.createElement(u3,null),!0)))},Oh=s.forwardRef(({style:e,children:t},n)=>{const r=s.useRef(null);return s.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),yEe=e=>e.reduce((t,n)=>t+(d3(n)?String(n).length:1),0);function fj(e,t){let n=0;const r=[];for(let a=0;at){const u=t-n;return r.push(String(o).slice(0,u)),r}r.push(o),n=c}return e}const ew=0,tw=1,nw=2,rw=3,vj=4,Ih={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function CEe(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:i,miscDeps:l,onEllipsis:c}=e,u=s.useMemo(()=>rr(r),[r]),d=s.useMemo(()=>yEe(u),[r]),f=s.useMemo(()=>a(u,!1),[r]),[m,g]=s.useState(null),h=s.useRef(null),b=s.useRef(null),p=s.useRef(null),S=s.useRef(null),C=s.useRef(null),[x,w]=s.useState(!1),[$,E]=s.useState(ew),[R,I]=s.useState(0),[O,T]=s.useState(null);fn(()=>{E(t&&n&&d?tw:ew)},[n,r,o,t,u]),fn(()=>{var j,D,F,L;if($===tw){E(nw);const B=b.current&&getComputedStyle(b.current).whiteSpace;T(B)}else if($===nw){const B=!!(!((j=p.current)===null||j===void 0)&&j.isExceed());E(B?rw:vj),g(B?[0,d]:null),w(B);const K=((D=p.current)===null||D===void 0?void 0:D.getHeight())||0,W=o===1?0:((F=S.current)===null||F===void 0?void 0:F.getHeight())||0,V=((L=C.current)===null||L===void 0?void 0:L.getHeight())||0,q=Math.max(K,W+V);I(q+1),c(B)}},[$]);const _=m?Math.ceil((m[0]+m[1])/2):0;fn(()=>{var j;const[D,F]=m||[0,0];if(D!==F){const B=(((j=h.current)===null||j===void 0?void 0:j.getHeight())||0)>R;let K=_;F-D===1&&(K=B?D:F),g(B?[D,K]:[K,F])}},[m,_]);const k=s.useMemo(()=>{if(!t)return a(u,!1);if($!==rw||!m||m[0]!==m[1]){const j=a(u,!1);return[vj,ew].includes($)?j:s.createElement("span",{style:Object.assign(Object.assign({},Ih),{WebkitLineClamp:o})},j)}return a(i?u:fj(u,m[0]),x)},[i,$,m,u].concat(ke(l))),A={width:n,margin:0,padding:0,whiteSpace:O==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,k,$===nw&&s.createElement(s.Fragment,null,s.createElement(Oh,{style:Object.assign(Object.assign(Object.assign({},A),Ih),{WebkitLineClamp:o}),ref:p},f),s.createElement(Oh,{style:Object.assign(Object.assign(Object.assign({},A),Ih),{WebkitLineClamp:o-1}),ref:S},f),s.createElement(Oh,{style:Object.assign(Object.assign(Object.assign({},A),Ih),{WebkitLineClamp:1}),ref:C},a([],!0))),$===rw&&m&&m[0]!==m[1]&&s.createElement(Oh,{style:Object.assign(Object.assign({},A),{top:400}),ref:h},a(fj(u,_),!0)),$===tw&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const SEe=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:s.createElement(Bn,Object.assign({open:t?void 0:!1},r),n);var xEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,style:o,type:i,disabled:l,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:g}=e,h=xEe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:p}=s.useContext(jt),[S]=Ea("Text"),C=s.useRef(null),x=s.useRef(null),w=b("typography",r),$=nn(h,mj),[E,R]=Jx(d),[I,O]=Nt(!1,{value:R.editing}),{triggerType:T=["icon"]}=R,_=Oe=>{var we;Oe&&((we=R.onStart)===null||we===void 0||we.call(R)),O(Oe)},k=fEe(I);fn(()=>{var Oe;!I&&k&&((Oe=x.current)===null||Oe===void 0||Oe.focus())},[I]);const A=Oe=>{Oe==null||Oe.preventDefault(),_(!0)},j=Oe=>{var we;(we=R.onChange)===null||we===void 0||we.call(R,Oe),_(!1)},D=()=>{var Oe;(Oe=R.onCancel)===null||Oe===void 0||Oe.call(R),_(!1)},[F,L]=Jx(f),{copied:B,copyLoading:K,onClick:W}=dEe({copyConfig:L,children:c}),[V,q]=s.useState(!1),[U,G]=s.useState(!1),[Y,J]=s.useState(!1),[Q,Z]=s.useState(!1),[ne,ae]=s.useState(!0),[le,re]=Jx(u,{expandable:!1,symbol:Oe=>Oe?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[fe,ue]=Nt(re.defaultExpanded||!1,{value:re.expanded}),de=le&&(!fe||re.expandable==="collapsible"),{rows:ie=1}=re,se=s.useMemo(()=>de&&(re.suffix!==void 0||re.onEllipsis||re.expandable||E||F),[de,re,E,F]);fn(()=>{le&&!se&&(q(zP("webkitLineClamp")),G(zP("textOverflow")))},[se,le]);const[ve,he]=s.useState(de),Ce=s.useMemo(()=>se?!1:ie===1?U:V,[se,U,V]);fn(()=>{he(Ce&&de)},[Ce,de]);const pe=de&&(ve?Q:Y),Se=de&&ie===1&&ve,ge=de&&ie>1&&ve,ye=(Oe,we)=>{var _e;ue(we.expanded),(_e=re.onExpand)===null||_e===void 0||_e.call(re,Oe,we)},[xe,$e]=s.useState(0),He=({offsetWidth:Oe})=>{$e(Oe)},Te=Oe=>{var we;J(Oe),Y!==Oe&&((we=re.onEllipsis)===null||we===void 0||we.call(re,Oe))};s.useEffect(()=>{const Oe=C.current;if(le&&ve&&Oe){const we=hEe(Oe);Q!==we&&Z(we)}},[le,ve,c,ge,ne,xe]),s.useEffect(()=>{const Oe=C.current;if(typeof IntersectionObserver>"u"||!Oe||!ve||!de)return;const we=new IntersectionObserver(()=>{ae(!!Oe.offsetParent)});return we.observe(Oe),()=>{we.disconnect()}},[ve,de]);const Re=vEe(re.tooltip,R.text,c),Fe=s.useMemo(()=>{if(!(!le||ve))return[R.text,c,g,Re.title].find(d3)},[le,ve,g,Re.title,pe]);if(I)return s.createElement(oEe,{value:(n=R.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:j,onCancel:D,onEnd:R.onEnd,prefixCls:w,className:a,style:o,direction:p,component:m,maxLength:R.maxLength,autoSize:R.autoSize,enterIcon:R.enterIcon});const je=()=>{const{expandable:Oe,symbol:we}=re;return Oe?s.createElement("button",{type:"button",key:"expand",className:`${w}-${fe?"collapse":"expand"}`,onClick:_e=>ye(_e,{expanded:!fe}),"aria-label":fe?S.collapse:S==null?void 0:S.expand},typeof we=="function"?we(fe):we):null},Ee=()=>{if(!E)return;const{icon:Oe,tooltip:we,tabIndex:_e}=R,Be=rr(we)[0]||(S==null?void 0:S.edit),Qe=typeof Be=="string"?Be:"";return T.includes("icon")?s.createElement(Bn,{key:"edit",title:we===!1?"":Be},s.createElement("button",{type:"button",ref:x,className:`${w}-edit`,onClick:A,"aria-label":Qe,tabIndex:_e},Oe||s.createElement(q$e,{role:"button"}))):null},Le=()=>F?s.createElement(bEe,Object.assign({key:"copy"},L,{prefixCls:w,copied:B,locale:S,onCopy:W,loading:K,iconOnly:c==null})):null,Pe=Oe=>[Oe&&je(),Ee(),Le()],ze=Oe=>[Oe&&!fe&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},$Ee),re.suffix,Pe(Oe)];return s.createElement(Mr,{onResize:He,disabled:!de},Oe=>s.createElement(SEe,{tooltipProps:Re,enableEllipsis:de,isEllipsis:pe},s.createElement(hU,Object.assign({className:oe({[`${w}-${i}`]:i,[`${w}-disabled`]:l,[`${w}-ellipsis`]:le,[`${w}-ellipsis-single-line`]:Se,[`${w}-ellipsis-multiple-line`]:ge},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:ge?ie:void 0}),component:m,ref:Dr(Oe,C,t),direction:p,onClick:T.includes("text")?A:void 0,"aria-label":Fe==null?void 0:Fe.toString(),title:g},$),s.createElement(CEe,{enableMeasure:de&&!ve,text:c,rows:ie,width:xe,onEllipsis:Te,expanded:fe,miscDeps:[B,fe,K,E,F,S].concat(ke(mj.map(we=>e[we])))},(we,_e)=>wEe(e,s.createElement(s.Fragment,null,we.length>0&&_e&&!fe&&Fe?s.createElement("span",{key:"show-content","aria-hidden":!0},we):we,ze(_e)))))))});var EEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{ellipsis:n,rel:r,children:a,navigate:o}=e,i=EEe(e,["ellipsis","rel","children","navigate"]),l=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return s.createElement(L1,Object.assign({},l,{ref:t,ellipsis:!!n,component:"a"}),a)});var OEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=OEe(e,["children"]);return s.createElement(L1,Object.assign({ref:t},r,{component:"div"}),n)});var REe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{ellipsis:n,children:r}=e,a=REe(e,["ellipsis","children"]),o=s.useMemo(()=>n&&typeof n=="object"?nn(n,["expandable","rows"]):n,[n]);return s.createElement(L1,Object.assign({ref:t},a,{ellipsis:o,component:"span"}),r)},TEe=s.forwardRef(MEe);var NEe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1,children:r}=e,a=NEe(e,["level","children"]),o=_Ee.includes(n)?`h${n}`:"h1";return s.createElement(L1,Object.assign({ref:t},a,{component:o}),r)}),an=hU;an.Text=TEe;an.Link=PEe;an.Title=jEe;an.Paragraph=IEe;var Pv={},aw={exports:{}},gj;function qi(){return gj||(gj=1,(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(aw)),aw.exports}var Ov={},pj;function FEe(){if(pj)return Ov;pj=1,Object.defineProperty(Ov,"__esModule",{value:!0}),Ov.default=void 0;var e={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:"页码"};return Ov.default=e,Ov}var Iv={},Rv={},Mv={},ow={exports:{}},iw={exports:{}},lw={exports:{}},sw={exports:{}},hj;function B1(){return hj||(hj=1,(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(sw)),sw.exports}var cw={exports:{}},bj;function DEe(){return bj||(bj=1,(function(e){var t=B1().default;function n(r,a){if(t(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var i=o.call(r,a||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(cw)),cw.exports}var yj;function kEe(){return yj||(yj=1,(function(e){var t=B1().default,n=DEe();function r(a){var o=n(a,"string");return t(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(lw)),lw.exports}var Cj;function bU(){return Cj||(Cj=1,(function(e){var t=kEe();function n(r,a,o){return(a=t(a))in r?Object.defineProperty(r,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[a]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(iw)),iw.exports}var Sj;function z1(){return Sj||(Sj=1,(function(e){var t=bU();function n(a,o){var i=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);o&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),i.push.apply(i,l)}return i}function r(a){for(var o=1;o{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_c,$s,_d,VB,KEe=(VB=class extends kf{constructor(){super();vn(this,_c);vn(this,$s);vn(this,_d);qt(this,_d,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){De(this,$s)||this.setEventListener(De(this,_d))}onUnsubscribe(){var t;this.hasListeners()||((t=De(this,$s))==null||t.call(this),qt(this,$s,void 0))}setEventListener(t){var n;qt(this,_d,t),(n=De(this,$s))==null||n.call(this),qt(this,$s,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){De(this,_c)!==t&&(qt(this,_c,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof De(this,_c)=="boolean"?De(this,_c):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},_c=new WeakMap,$s=new WeakMap,_d=new WeakMap,VB),f3=new KEe,qEe={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Es,hR,WB,UEe=(WB=class{constructor(){vn(this,Es,qEe);vn(this,hR,!1)}setTimeoutProvider(e){qt(this,Es,e)}setTimeout(e,t){return De(this,Es).setTimeout(e,t)}clearTimeout(e){De(this,Es).clearTimeout(e)}setInterval(e,t){return De(this,Es).setInterval(e,t)}clearInterval(e){De(this,Es).clearInterval(e)}},Es=new WeakMap,hR=new WeakMap,WB),Tc=new UEe;function GEe(e){setTimeout(e,0)}var YEe=typeof window>"u"||"Deno"in globalThis;function Ka(){}function XEe(e,t){return typeof e=="function"?e(t):e}function OO(e){return typeof e=="number"&&e>=0&&e!==1/0}function SU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ws(e,t){return typeof e=="function"?e(t):e}function Mo(e,t){return typeof e=="function"?e(t):e}function Rj(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:i,stale:l}=e;if(i){if(r){if(t.queryHash!==v3(i,t.options))return!1}else if(!af(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||o&&!o(t))}function Mj(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(nu(t.options.mutationKey)!==nu(o))return!1}else if(!af(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function v3(e,t){return((t==null?void 0:t.queryKeyHashFn)||nu)(e)}function nu(e){return JSON.stringify(e,(t,n)=>IO(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function af(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r500)return t;const r=Tj(e)&&Tj(t);if(!r&&!(IO(e)&&IO(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),l=i.length,c=r?new Array(l):{};let u=0;for(let d=0;d{Tc.setTimeout(t,e)})}function RO(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?xU(e,t):t}function ZEe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ePe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var m3=Symbol();function wU(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===m3?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function g3(e,t){return typeof e=="function"?e(...t):!!e}function tPe(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var zm=(()=>{let e=()=>YEe;return{isServer(){return e()},setIsServer(t){e=t}}})();function MO(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var nPe=GEe;function rPe(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=nPe;const o=l=>{t?e.push(l):a(()=>{n(l)})},i=()=>{const l=e;e=[],l.length&&a(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||i()}return c},batchCalls:l=>(...c)=>{o(()=>{l(...c)})},schedule:o,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{a=l}}}var oa=rPe(),jd,Ps,Fd,KB,aPe=(KB=class extends kf{constructor(){super();vn(this,jd,!0);vn(this,Ps);vn(this,Fd);qt(this,Fd,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){De(this,Ps)||this.setEventListener(De(this,Fd))}onUnsubscribe(){var t;this.hasListeners()||((t=De(this,Ps))==null||t.call(this),qt(this,Ps,void 0))}setEventListener(t){var n;qt(this,Fd,t),(n=De(this,Ps))==null||n.call(this),qt(this,Ps,t(this.setOnline.bind(this)))}setOnline(t){De(this,jd)!==t&&(qt(this,jd,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return De(this,jd)}},jd=new WeakMap,Ps=new WeakMap,Fd=new WeakMap,KB),ly=new aPe;function oPe(e){return Math.min(1e3*2**e,3e4)}function $U(e){return(e??"online")==="online"?ly.isOnline():!0}var TO=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function EU(e){let t=!1,n=0,r;const a=MO(),o=()=>a.status!=="pending",i=b=>{var p;if(!o()){const S=new TO(b);m(S),(p=e.onCancel)==null||p.call(e,S)}},l=()=>{t=!0},c=()=>{t=!1},u=()=>f3.isFocused()&&(e.networkMode==="always"||ly.isOnline())&&e.canRun(),d=()=>$U(e.networkMode)&&e.canRun(),f=b=>{o()||(r==null||r(),a.resolve(b))},m=b=>{o()||(r==null||r(),a.reject(b))},g=()=>new Promise(b=>{var p;r=S=>{(o()||u())&&b(S)},(p=e.onPause)==null||p.call(e)}).then(()=>{var b;r=void 0,o()||(b=e.onContinue)==null||b.call(e)}),h=()=>{if(o())return;let b;const p=n===0?e.initialPromise:void 0;try{b=p??e.fn()}catch(S){b=Promise.reject(S)}Promise.resolve(b).then(f).catch(S=>{var E;if(o())return;const C=e.retry??(zm.isServer()?0:3),x=e.retryDelay??oPe,w=typeof x=="function"?x(n,S):x,$=C===!0||typeof C=="number"&&nu()?void 0:g()).then(()=>{t?m(S):h()})})};return{promise:a,status:()=>a.status,cancel:i,continue:()=>(r==null||r(),a),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?h():g().then(h),a)}}var jc,qB,PU=(qB=class{constructor(){vn(this,jc)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),OO(this.gcTime)&&qt(this,jc,Tc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zm.isServer()?1/0:300*1e3))}clearGcTimeout(){De(this,jc)!==void 0&&(Tc.clearTimeout(De(this,jc)),qt(this,jc,void 0))}},jc=new WeakMap,qB);function iPe(e){return{onFetch:(t,n)=>{var d,f,m,g,h;const r=t.options,a=(m=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:m.direction,o=((g=t.state.data)==null?void 0:g.pages)||[],i=((h=t.state.data)==null?void 0:h.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let b=!1;const p=x=>{tPe(x,()=>t.signal,()=>b=!0)},S=wU(t.options,t.fetchOptions),C=async(x,w,$)=>{if(b)return Promise.reject(t.signal.reason);if(w==null&&x.pages.length)return Promise.resolve(x);const R=(()=>{const _={client:t.client,queryKey:t.queryKey,pageParam:w,direction:$?"backward":"forward",meta:t.options.meta};return p(_),_})(),I=await S(R),{maxPages:O}=t.options,T=$?ePe:ZEe;return{pages:T(x.pages,I,O),pageParams:T(x.pageParams,w,O)}};if(a&&o.length){const x=a==="backward",w=x?lPe:_j,$={pages:o,pageParams:i},E=w(r,$);l=await C($,E,x)}else{const x=e??o.length;do{const w=c===0?i[0]??r.initialPageParam:_j(r,l);if(c>0&&w==null)break;l=await C(l,w),c++}while(c{var b,p;return(p=(b=t.options).persister)==null?void 0:p.call(b,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function _j(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function lPe(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Dd,Fc,kd,Xo,Dc,fa,rg,kc,Ro,OU,Il,UB,sPe=(UB=class extends PU{constructor(t){super();vn(this,Ro);vn(this,Dd);vn(this,Fc);vn(this,kd);vn(this,Xo);vn(this,Dc);vn(this,fa);vn(this,rg);vn(this,kc);qt(this,kc,!1),qt(this,rg,t.defaultOptions),this.setOptions(t.options),this.observers=[],qt(this,Dc,t.client),qt(this,Xo,De(this,Dc).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,qt(this,Fc,Fj(this.options)),this.state=t.state??De(this,Fc),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return De(this,Dd)}get promise(){var t;return(t=De(this,fa))==null?void 0:t.promise}setOptions(t){if(this.options={...De(this,rg),...t},t!=null&&t._type&&qt(this,Dd,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Fj(this.options);n.data!==void 0&&(this.setState(jj(n.data,n.dataUpdatedAt)),qt(this,Fc,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&De(this,Xo).remove(this)}setData(t,n){const r=RO(this.state.data,t,this.options);return jn(this,Ro,Il).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){jn(this,Ro,Il).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=De(this,fa))==null?void 0:r.promise;return(a=De(this,fa))==null||a.cancel(t),n?n.then(Ka).catch(Ka):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return De(this,Fc)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Mo(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===m3||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ws(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!SU(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=De(this,fa))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=De(this,fa))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),De(this,Xo).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(De(this,fa)&&(De(this,kc)||jn(this,Ro,OU).call(this)?De(this,fa).cancel({revert:!0}):De(this,fa).cancelRetry()),this.scheduleGc()),De(this,Xo).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||jn(this,Ro,Il).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,f,m,g,h,b,p,S,C,x;if(this.state.fetchStatus!=="idle"&&((u=De(this,fa))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(De(this,fa))return De(this,fa).continueRetry(),De(this,fa).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find($=>$.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(qt(this,kc,!0),r.signal)})},o=()=>{const w=wU(this.options,n),E=(()=>{const R={client:De(this,Dc),queryKey:this.queryKey,meta:this.meta};return a(R),R})();return qt(this,kc,!1),this.options.persister?this.options.persister(w,E,this):w(E)},l=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:De(this,Dc),state:this.state,fetchFn:o};return a(w),w})(),c=De(this,Dd)==="infinite"?iPe(this.options.pages):this.options.behavior;c==null||c.onFetch(l,this),qt(this,kd,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&jn(this,Ro,Il).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta}),qt(this,fa,EU({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:w=>{w instanceof TO&&w.revert&&this.setState({...De(this,kd),fetchStatus:"idle"}),r.abort()},onFail:(w,$)=>{jn(this,Ro,Il).call(this,{type:"failed",failureCount:w,error:$})},onPause:()=>{jn(this,Ro,Il).call(this,{type:"pause"})},onContinue:()=>{jn(this,Ro,Il).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const w=await De(this,fa).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(g=(m=De(this,Xo).config).onSuccess)==null||g.call(m,w,this),(b=(h=De(this,Xo).config).onSettled)==null||b.call(h,w,this.state.error,this),w}catch(w){if(w instanceof TO){if(w.silent)return De(this,fa).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw jn(this,Ro,Il).call(this,{type:"error",error:w}),(S=(p=De(this,Xo).config).onError)==null||S.call(p,w,this),(x=(C=De(this,Xo).config).onSettled)==null||x.call(C,this.state.data,w,this),w}finally{this.scheduleGc()}}},Dd=new WeakMap,Fc=new WeakMap,kd=new WeakMap,Xo=new WeakMap,Dc=new WeakMap,fa=new WeakMap,rg=new WeakMap,kc=new WeakMap,Ro=new WeakSet,OU=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Il=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...IU(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...jj(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return qt(this,kd,t.manual?a:void 0),a;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),oa.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),De(this,Xo).notify({query:this,type:"updated",action:t})})},UB);function IU(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$U(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function jj(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Fj(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var io,Wn,ag,Va,Ac,Ad,Tl,Os,og,Ld,Bd,Lc,Bc,Is,zd,nr,tm,NO,_O,jO,FO,DO,kO,AO,RU,GB,cPe=(GB=class extends kf{constructor(t,n){super();vn(this,nr);vn(this,io);vn(this,Wn);vn(this,ag);vn(this,Va);vn(this,Ac);vn(this,Ad);vn(this,Tl);vn(this,Os);vn(this,og);vn(this,Ld);vn(this,Bd);vn(this,Lc);vn(this,Bc);vn(this,Is);vn(this,zd,new Set);this.options=n,qt(this,io,t),qt(this,Os,null),qt(this,Tl,MO()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(De(this,Wn).addObserver(this),Dj(De(this,Wn),this.options)?jn(this,nr,tm).call(this):this.updateResult(),jn(this,nr,FO).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return LO(De(this,Wn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return LO(De(this,Wn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,jn(this,nr,DO).call(this),jn(this,nr,kO).call(this),De(this,Wn).removeObserver(this)}setOptions(t){const n=this.options,r=De(this,Wn);if(this.options=De(this,io).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Mo(this.options.enabled,De(this,Wn))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");jn(this,nr,AO).call(this),De(this,Wn).setOptions(this.options),n._defaulted&&!iy(this.options,n)&&De(this,io).getQueryCache().notify({type:"observerOptionsUpdated",query:De(this,Wn),observer:this});const a=this.hasListeners();a&&kj(De(this,Wn),r,this.options,n)&&jn(this,nr,tm).call(this),this.updateResult(),a&&(De(this,Wn)!==r||Mo(this.options.enabled,De(this,Wn))!==Mo(n.enabled,De(this,Wn))||Ws(this.options.staleTime,De(this,Wn))!==Ws(n.staleTime,De(this,Wn)))&&jn(this,nr,NO).call(this);const o=jn(this,nr,_O).call(this);a&&(De(this,Wn)!==r||Mo(this.options.enabled,De(this,Wn))!==Mo(n.enabled,De(this,Wn))||o!==De(this,Is))&&jn(this,nr,jO).call(this,o)}getOptimisticResult(t){const n=De(this,io).getQueryCache().build(De(this,io),t),r=this.createResult(n,t);return dPe(this,r)&&(qt(this,Va,r),qt(this,Ad,this.options),qt(this,Ac,De(this,Wn).state)),r}getCurrentResult(){return De(this,Va)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&De(this,Tl).status==="pending"&&De(this,Tl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){De(this,zd).add(t)}getCurrentQuery(){return De(this,Wn)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=De(this,io).defaultQueryOptions(t),r=De(this,io).getQueryCache().build(De(this,io),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return jn(this,nr,tm).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),De(this,Va)))}createResult(t,n){var O;const r=De(this,Wn),a=this.options,o=De(this,Va),i=De(this,Ac),l=De(this,Ad),u=t!==r?t.state:De(this,ag),{state:d}=t;let f={...d},m=!1,g;if(n._optimisticResults){const T=this.hasListeners(),_=!T&&Dj(t,n),k=T&&kj(t,r,n,a);(_||k)&&(f={...f,...IU(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:h,errorUpdatedAt:b,status:p}=f;g=f.data;let S=!1;if(n.placeholderData!==void 0&&g===void 0&&p==="pending"){let T;o!=null&&o.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(T=o.data,S=!0):T=typeof n.placeholderData=="function"?n.placeholderData((O=De(this,Bd))==null?void 0:O.state.data,De(this,Bd)):n.placeholderData,T!==void 0&&(p="success",g=RO(o==null?void 0:o.data,T,n),m=!0)}if(n.select&&g!==void 0&&!S)if(o&&g===(i==null?void 0:i.data)&&n.select===De(this,og))g=De(this,Ld);else try{qt(this,og,n.select),g=n.select(g),g=RO(o==null?void 0:o.data,g,n),qt(this,Ld,g),qt(this,Os,null)}catch(T){qt(this,Os,T)}De(this,Os)&&(h=De(this,Os),g=De(this,Ld),b=Date.now(),p="error");const C=f.fetchStatus==="fetching",x=p==="pending",w=p==="error",$=x&&C,E=g!==void 0,I={status:p,fetchStatus:f.fetchStatus,isPending:x,isSuccess:p==="success",isError:w,isInitialLoading:$,isLoading:$,data:g,dataUpdatedAt:f.dataUpdatedAt,error:h,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:C,isRefetching:C&&!x,isLoadingError:w&&!E,isPaused:f.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:w&&E,isStale:p3(t,n),refetch:this.refetch,promise:De(this,Tl),isEnabled:Mo(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=I.data!==void 0,_=I.status==="error"&&!T,k=D=>{_?D.reject(I.error):T&&D.resolve(I.data)},A=()=>{const D=qt(this,Tl,I.promise=MO());k(D)},j=De(this,Tl);switch(j.status){case"pending":t.queryHash===r.queryHash&&k(j);break;case"fulfilled":(_||I.data!==j.value)&&A();break;case"rejected":(!_||I.error!==j.reason)&&A();break}}return I}updateResult(){const t=De(this,Va),n=this.createResult(De(this,Wn),this.options);if(qt(this,Ac,De(this,Wn).state),qt(this,Ad,this.options),De(this,Ac).data!==void 0&&qt(this,Bd,De(this,Wn)),iy(n,t))return;qt(this,Va,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!De(this,zd).size)return!0;const i=new Set(o??De(this,zd));return this.options.throwOnError&&i.add("error"),Object.keys(De(this,Va)).some(l=>{const c=l;return De(this,Va)[c]!==t[c]&&i.has(c)})};jn(this,nr,RU).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&jn(this,nr,FO).call(this)}},io=new WeakMap,Wn=new WeakMap,ag=new WeakMap,Va=new WeakMap,Ac=new WeakMap,Ad=new WeakMap,Tl=new WeakMap,Os=new WeakMap,og=new WeakMap,Ld=new WeakMap,Bd=new WeakMap,Lc=new WeakMap,Bc=new WeakMap,Is=new WeakMap,zd=new WeakMap,nr=new WeakSet,tm=function(t){jn(this,nr,AO).call(this);let n=De(this,Wn).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ka)),n},NO=function(){jn(this,nr,DO).call(this);const t=Ws(this.options.staleTime,De(this,Wn));if(zm.isServer()||De(this,Va).isStale||!OO(t))return;const r=SU(De(this,Va).dataUpdatedAt,t)+1;qt(this,Lc,Tc.setTimeout(()=>{De(this,Va).isStale||this.updateResult()},r))},_O=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(De(this,Wn)):this.options.refetchInterval)??!1},jO=function(t){jn(this,nr,kO).call(this),qt(this,Is,t),!(zm.isServer()||Mo(this.options.enabled,De(this,Wn))===!1||!OO(De(this,Is))||De(this,Is)===0)&&qt(this,Bc,Tc.setInterval(()=>{(this.options.refetchIntervalInBackground||f3.isFocused())&&jn(this,nr,tm).call(this)},De(this,Is)))},FO=function(){jn(this,nr,NO).call(this),jn(this,nr,jO).call(this,jn(this,nr,_O).call(this))},DO=function(){De(this,Lc)!==void 0&&(Tc.clearTimeout(De(this,Lc)),qt(this,Lc,void 0))},kO=function(){De(this,Bc)!==void 0&&(Tc.clearInterval(De(this,Bc)),qt(this,Bc,void 0))},AO=function(){const t=De(this,io).getQueryCache().build(De(this,io),this.options);if(t===De(this,Wn))return;const n=De(this,Wn);qt(this,Wn,t),qt(this,ag,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},RU=function(t){oa.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(De(this,Va))}),De(this,io).getQueryCache().notify({query:De(this,Wn),type:"observerResultsUpdated"})})},GB);function uPe(e,t){return Mo(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Mo(t.retryOnMount,e)===!1)}function Dj(e,t){return uPe(e,t)||e.state.data!==void 0&&LO(e,t,t.refetchOnMount)}function LO(e,t,n){if(Mo(t.enabled,e)!==!1&&Ws(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&p3(e,t)}return!1}function kj(e,t,n,r){return(e!==t||Mo(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&p3(e,n)}function p3(e,t){return Mo(t.enabled,e)!==!1&&e.isStaleByTime(Ws(t.staleTime,e))}function dPe(e,t){return!iy(e.getCurrentResult(),t)}var ig,nl,Ta,zc,rl,Ss,YB,fPe=(YB=class extends PU{constructor(t){super();vn(this,rl);vn(this,ig);vn(this,nl);vn(this,Ta);vn(this,zc);qt(this,ig,t.client),this.mutationId=t.mutationId,qt(this,Ta,t.mutationCache),qt(this,nl,[]),this.state=t.state||MU(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){De(this,nl).includes(t)||(De(this,nl).push(t),this.clearGcTimeout(),De(this,Ta).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){qt(this,nl,De(this,nl).filter(n=>n!==t)),this.scheduleGc(),De(this,Ta).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){De(this,nl).length||(this.state.status==="pending"?this.scheduleGc():De(this,Ta).remove(this))}continue(){var t;return((t=De(this,zc))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,l,c,u,d,f,m,g,h,b,p,S,C,x,w,$,E,R;const n=()=>{jn(this,rl,Ss).call(this,{type:"continue"})},r={client:De(this,ig),meta:this.options.meta,mutationKey:this.options.mutationKey};qt(this,zc,EU({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(I,O)=>{jn(this,rl,Ss).call(this,{type:"failed",failureCount:I,error:O})},onPause:()=>{jn(this,rl,Ss).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>De(this,Ta).canRun(this)}));const a=this.state.status==="pending",o=!De(this,zc).canStart();try{if(a)n();else{jn(this,rl,Ss).call(this,{type:"pending",variables:t,isPaused:o}),De(this,Ta).config.onMutate&&await De(this,Ta).config.onMutate(t,this,r);const O=await((l=(i=this.options).onMutate)==null?void 0:l.call(i,t,r));O!==this.state.context&&jn(this,rl,Ss).call(this,{type:"pending",context:O,variables:t,isPaused:o})}const I=await De(this,zc).start();return await((u=(c=De(this,Ta).config).onSuccess)==null?void 0:u.call(c,I,t,this.state.context,this,r)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,I,t,this.state.context,r)),await((g=(m=De(this,Ta).config).onSettled)==null?void 0:g.call(m,I,null,this.state.variables,this.state.context,this,r)),await((b=(h=this.options).onSettled)==null?void 0:b.call(h,I,null,t,this.state.context,r)),jn(this,rl,Ss).call(this,{type:"success",data:I}),I}catch(I){try{await((S=(p=De(this,Ta).config).onError)==null?void 0:S.call(p,I,t,this.state.context,this,r))}catch(O){Promise.reject(O)}try{await((x=(C=this.options).onError)==null?void 0:x.call(C,I,t,this.state.context,r))}catch(O){Promise.reject(O)}try{await(($=(w=De(this,Ta).config).onSettled)==null?void 0:$.call(w,void 0,I,this.state.variables,this.state.context,this,r))}catch(O){Promise.reject(O)}try{await((R=(E=this.options).onSettled)==null?void 0:R.call(E,void 0,I,t,this.state.context,r))}catch(O){Promise.reject(O)}throw jn(this,rl,Ss).call(this,{type:"error",error:I}),I}finally{De(this,Ta).runNext(this)}}},ig=new WeakMap,nl=new WeakMap,Ta=new WeakMap,zc=new WeakMap,rl=new WeakSet,Ss=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),oa.batch(()=>{De(this,nl).forEach(r=>{r.onMutationUpdate(t)}),De(this,Ta).notify({mutation:this,type:"updated",action:t})})},YB);function MU(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Nl,Pi,lg,XB,vPe=(XB=class extends kf{constructor(t={}){super();vn(this,Nl);vn(this,Pi);vn(this,lg);this.config=t,qt(this,Nl,new Set),qt(this,Pi,new Map),qt(this,lg,0)}build(t,n,r){const a=new fPe({client:t,mutationCache:this,mutationId:++Jp(this,lg)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){De(this,Nl).add(t);const n=Rh(t);if(typeof n=="string"){const r=De(this,Pi).get(n);r?r.push(t):De(this,Pi).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(De(this,Nl).delete(t)){const n=Rh(t);if(typeof n=="string"){const r=De(this,Pi).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&De(this,Pi).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Rh(t);if(typeof n=="string"){const r=De(this,Pi).get(n),a=r==null?void 0:r.find(o=>o.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=Rh(t);if(typeof n=="string"){const a=(r=De(this,Pi).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){oa.batch(()=>{De(this,Nl).forEach(t=>{this.notify({type:"removed",mutation:t})}),De(this,Nl).clear(),De(this,Pi).clear()})}getAll(){return Array.from(De(this,Nl))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Mj(n,r))}findAll(t={}){return this.getAll().filter(n=>Mj(t,n))}notify(t){oa.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return oa.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ka))))}},Nl=new WeakMap,Pi=new WeakMap,lg=new WeakMap,XB);function Rh(e){var t;return(t=e.options.scope)==null?void 0:t.id}var _l,Rs,lo,jl,zl,rb,BO,QB,mPe=(QB=class extends kf{constructor(n,r){super();vn(this,zl);vn(this,_l);vn(this,Rs);vn(this,lo);vn(this,jl);qt(this,_l,n),this.setOptions(r),this.bindMethods(),jn(this,zl,rb).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const r=this.options;this.options=De(this,_l).defaultMutationOptions(n),iy(this.options,r)||De(this,_l).getMutationCache().notify({type:"observerOptionsUpdated",mutation:De(this,lo),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&nu(r.mutationKey)!==nu(this.options.mutationKey)?this.reset():((a=De(this,lo))==null?void 0:a.state.status)==="pending"&&De(this,lo).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=De(this,lo))==null||n.removeObserver(this)}onMutationUpdate(n){jn(this,zl,rb).call(this),jn(this,zl,BO).call(this,n)}getCurrentResult(){return De(this,Rs)}reset(){var n;(n=De(this,lo))==null||n.removeObserver(this),qt(this,lo,void 0),jn(this,zl,rb).call(this),jn(this,zl,BO).call(this)}mutate(n,r){var a;return qt(this,jl,r),(a=De(this,lo))==null||a.removeObserver(this),qt(this,lo,De(this,_l).getMutationCache().build(De(this,_l),this.options)),De(this,lo).addObserver(this),De(this,lo).execute(n)}},_l=new WeakMap,Rs=new WeakMap,lo=new WeakMap,jl=new WeakMap,zl=new WeakSet,rb=function(){var r;const n=((r=De(this,lo))==null?void 0:r.state)??MU();qt(this,Rs,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},BO=function(n){oa.batch(()=>{var r,a,o,i,l,c,u,d;if(De(this,jl)&&this.hasListeners()){const f=De(this,Rs).variables,m=De(this,Rs).context,g={client:De(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=De(this,jl)).onSuccess)==null||a.call(r,n.data,f,m,g)}catch(h){Promise.reject(h)}try{(i=(o=De(this,jl)).onSettled)==null||i.call(o,n.data,null,f,m,g)}catch(h){Promise.reject(h)}}else if((n==null?void 0:n.type)==="error"){try{(c=(l=De(this,jl)).onError)==null||c.call(l,n.error,f,m,g)}catch(h){Promise.reject(h)}try{(d=(u=De(this,jl)).onSettled)==null||d.call(u,void 0,n.error,f,m,g)}catch(h){Promise.reject(h)}}}this.listeners.forEach(f=>{f(De(this,Rs))})})},QB),al,JB,gPe=(JB=class extends kf{constructor(t={}){super();vn(this,al);this.config=t,qt(this,al,new Map)}build(t,n,r){const a=n.queryKey,o=n.queryHash??v3(a,n);let i=this.get(o);return i||(i=new sPe({client:t,queryKey:a,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){De(this,al).has(t.queryHash)||(De(this,al).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=De(this,al).get(t.queryHash);n&&(t.destroy(),n===t&&De(this,al).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){oa.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return De(this,al).get(t)}getAll(){return[...De(this,al).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Rj(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Rj(t,r)):n}notify(t){oa.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){oa.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){oa.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},al=new WeakMap,JB),Lr,Ms,Ts,Hd,Vd,Ns,Wd,Kd,ZB,pPe=(ZB=class{constructor(e={}){vn(this,Lr);vn(this,Ms);vn(this,Ts);vn(this,Hd);vn(this,Vd);vn(this,Ns);vn(this,Wd);vn(this,Kd);qt(this,Lr,e.queryCache||new gPe),qt(this,Ms,e.mutationCache||new vPe),qt(this,Ts,e.defaultOptions||{}),qt(this,Hd,new Map),qt(this,Vd,new Map),qt(this,Ns,0)}mount(){Jp(this,Ns)._++,De(this,Ns)===1&&(qt(this,Wd,f3.subscribe(async e=>{e&&(await this.resumePausedMutations(),De(this,Lr).onFocus())})),qt(this,Kd,ly.subscribe(async e=>{e&&(await this.resumePausedMutations(),De(this,Lr).onOnline())})))}unmount(){var e,t;Jp(this,Ns)._--,De(this,Ns)===0&&((e=De(this,Wd))==null||e.call(this),qt(this,Wd,void 0),(t=De(this,Kd))==null||t.call(this),qt(this,Kd,void 0))}isFetching(e){return De(this,Lr).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return De(this,Ms).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=De(this,Lr).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=De(this,Lr).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ws(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return De(this,Lr).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=De(this,Lr).get(r.queryHash),o=a==null?void 0:a.state.data,i=XEe(t,o);if(i!==void 0)return De(this,Lr).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return oa.batch(()=>De(this,Lr).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=De(this,Lr).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=De(this,Lr);oa.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=De(this,Lr);return oa.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=oa.batch(()=>De(this,Lr).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Ka).catch(Ka)}invalidateQueries(e,t={}){return oa.batch(()=>(De(this,Lr).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=oa.batch(()=>De(this,Lr).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ka)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Ka)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=De(this,Lr).build(this,t);return n.isStaleByTime(Ws(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ka).catch(Ka)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ka).catch(Ka)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return ly.isOnline()?De(this,Ms).resumePausedMutations():Promise.resolve()}getQueryCache(){return De(this,Lr)}getMutationCache(){return De(this,Ms)}getDefaultOptions(){return De(this,Ts)}setDefaultOptions(e){qt(this,Ts,e)}setQueryDefaults(e,t){De(this,Hd).set(nu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...De(this,Hd).values()],n={};return t.forEach(r=>{af(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){De(this,Vd).set(nu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...De(this,Vd).values()],n={};return t.forEach(r=>{af(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...De(this,Ts).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=v3(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===m3&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...De(this,Ts).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){De(this,Lr).clear(),De(this,Ms).clear()}},Lr=new WeakMap,Ms=new WeakMap,Ts=new WeakMap,Hd=new WeakMap,Vd=new WeakMap,Ns=new WeakMap,Wd=new WeakMap,Kd=new WeakMap,ZB),TU=s.createContext(void 0),Ng=e=>{const t=s.useContext(TU);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hPe=({client:e,children:t})=>(s.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(TU.Provider,{value:e,children:t})),NU=s.createContext(!1),bPe=()=>s.useContext(NU);NU.Provider;function yPe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var CPe=s.createContext(yPe()),SPe=()=>s.useContext(CPe),xPe=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?g3(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},wPe=e=>{s.useEffect(()=>{e.clearReset()},[e])},$Pe=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||g3(n,[e.error,r])),EPe=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},PPe=(e,t)=>e.isLoading&&e.isFetching&&!t,OPe=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Aj=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function IPe(e,t,n){var g,h,b,p;const r=bPe(),a=SPe(),o=Ng(),i=o.defaultQueryOptions(e);(h=(g=o.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||h.call(g,i);const l=o.getQueryCache().get(i.queryHash),c=e.subscribed!==!1;i._optimisticResults=r?"isRestoring":c?"optimistic":void 0,EPe(i),xPe(i,a,l),wPe(a);const u=!o.getQueryCache().get(i.queryHash),[d]=s.useState(()=>new t(o,i)),f=d.getOptimisticResult(i),m=!r&&c;if(s.useSyncExternalStore(s.useCallback(S=>{const C=m?d.subscribe(oa.batchCalls(S)):Ka;return d.updateResult(),C},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),s.useEffect(()=>{d.setOptions(i)},[i,d]),OPe(i,f))throw Aj(i,d,a);if($Pe({result:f,errorResetBoundary:a,throwOnError:i.throwOnError,query:l,suspense:i.suspense}))throw f.error;if((p=(b=o.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||p.call(b,i,f),i.experimental_prefetchInRender&&!zm.isServer()&&PPe(f,r)){const S=u?Aj(i,d,a):l==null?void 0:l.promise;S==null||S.catch(Ka).finally(()=>{d.updateResult()})}return i.notifyOnChangeProps?f:d.trackResult(f)}function ol(e,t){return IPe(e,cPe)}function RPe(e,t){const n=Ng(),[r]=s.useState(()=>new mPe(n,e));s.useEffect(()=>{r.setOptions(e)},[r,e]);const a=s.useSyncExternalStore(s.useCallback(i=>r.subscribe(oa.batchCalls(i)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=s.useCallback((i,l)=>{r.mutate(i,l).catch(Ka)},[r]);if(a.error&&g3(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}/** * @remix-run/router v1.23.3 * * Copyright (c) Remix Software Inc. @@ -476,7 +476,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function F1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gPe(){return Math.random().toString(36).substr(2,8)}function Ej(e,t){return{usr:e.state,key:e.key,idx:t}}function NO(e,t,n,r){return n===void 0&&(n=null),Hm({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hu(t):t,{state:n,key:t&&t.key||r||gPe()})}function gU(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function hu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function pPe(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,l=Ls.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(Hm({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){l=Ls.Pop;let p=d(),S=p==null?null:p-u;u=p,c&&c({action:l,location:b.location,delta:S})}function m(p,S){l=Ls.Push;let C=NO(b.location,p,S);n&&n(C,p),u=d()+1;let x=Ej(C,u),w=b.createHref(C);try{i.pushState(x,"",w)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;a.location.assign(w)}o&&c&&c({action:l,location:b.location,delta:1})}function g(p,S){l=Ls.Replace;let C=NO(b.location,p,S);n&&n(C,p),u=d();let x=Ej(C,u),w=b.createHref(C);i.replaceState(x,"",w),o&&c&&c({action:l,location:b.location,delta:0})}function h(p){let S=a.location.origin!=="null"?a.location.origin:a.location.href,C=typeof p=="string"?p:gU(p);return C=C.replace(/ $/,"%20"),ea(S,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,S)}let b={get action(){return l},get location(){return e(a,i)},listen(p){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener($j,f),c=p,()=>{a.removeEventListener($j,f),c=null}},createHref(p){return t(a,p)},createURL:h,encodeLocation(p){let S=h(p);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:m,replace:g,go(p){return i.go(p)}};return b}var Pj;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Pj||(Pj={}));function hPe(e,t,n){return n===void 0&&(n="/"),bPe(e,t,n)}function bPe(e,t,n,r){let a=typeof t=="string"?hu(t):t,o=bU(a.pathname||"/",n);if(o==null)return null;let i=pU(e);yPe(i);let l=null,c=TPe(o);for(let u=0;l==null&&u{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(ea(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Uc([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(ea(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),pU(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:PPe(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,i);else for(let c of hU(o.path))a(o,i,c)}),t}function hU(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let i=hU(r.join("/")),l=[];return l.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function yPe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:OPe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const CPe=/^:[\w-]+$/,SPe=3,xPe=2,wPe=1,$Pe=10,EPe=-2,Oj=e=>e==="*";function PPe(e,t){let n=e.split("/"),r=n.length;return n.some(Oj)&&(r+=EPe),t&&(r+=xPe),n.filter(a=>!Oj(a)).reduce((a,o)=>a+(CPe.test(o)?SPe:o===""?wPe:$Pe),r)}function OPe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function IPe(e,t,n){let{routesMeta:r}=e,a={},o="/",i=[];for(let l=0;l{let{paramName:m,isOptional:g}=d;if(m==="*"){let b=l[f]||"";i=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const h=l[f];return g&&!h?u[m]=void 0:u[m]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function MPe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),F1(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 r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function TPe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return F1(!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 bU(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const NPe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_Pe=e=>NPe.test(e);function jPe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?hu(e):e,o;if(n)if(_Pe(n))o=n;else{if(n.includes("//")){let i=n;n=SU(n),F1(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?o=Ij(n.substring(1),"/"):o=Ij(n,t)}else o=t;return{pathname:o,search:kPe(r),hash:APe(a)}}function Ij(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function nw(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function FPe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function yU(e,t){let n=FPe(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function CU(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=hu(e):(a=Hm({},e),ea(!a.pathname||!a.pathname.includes("?"),nw("?","pathname","search",a)),ea(!a.pathname||!a.pathname.includes("#"),nw("#","pathname","hash",a)),ea(!a.search||!a.search.includes("#"),nw("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;a.pathname=m.join("/")}l=f>=0?t[f]:"/"}let c=jPe(a,l),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const SU=e=>e.replace(/\/\/+/g,"/"),Uc=e=>SU(e.join("/")),DPe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kPe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,APe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function LPe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xU=["post","put","patch","delete"];new Set(xU);const BPe=["get",...xU];new Set(BPe);/** + */function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function H1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function TPe(){return Math.random().toString(36).substr(2,8)}function Bj(e,t){return{usr:e.state,key:e.key,idx:t}}function zO(e,t,n,r){return n===void 0&&(n=null),Hm({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yu(t):t,{state:n,key:t&&t.key||r||TPe()})}function _U(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function yu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function NPe(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,l=As.Pop,c=null,u=d();u==null&&(u=0,i.replaceState(Hm({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){l=As.Pop;let p=d(),S=p==null?null:p-u;u=p,c&&c({action:l,location:b.location,delta:S})}function m(p,S){l=As.Push;let C=zO(b.location,p,S);n&&n(C,p),u=d()+1;let x=Bj(C,u),w=b.createHref(C);try{i.pushState(x,"",w)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;a.location.assign(w)}o&&c&&c({action:l,location:b.location,delta:1})}function g(p,S){l=As.Replace;let C=zO(b.location,p,S);n&&n(C,p),u=d();let x=Bj(C,u),w=b.createHref(C);i.replaceState(x,"",w),o&&c&&c({action:l,location:b.location,delta:0})}function h(p){let S=a.location.origin!=="null"?a.location.origin:a.location.href,C=typeof p=="string"?p:_U(p);return C=C.replace(/ $/,"%20"),ta(S,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,S)}let b={get action(){return l},get location(){return e(a,i)},listen(p){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(Lj,f),c=p,()=>{a.removeEventListener(Lj,f),c=null}},createHref(p){return t(a,p)},createURL:h,encodeLocation(p){let S=h(p);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:m,replace:g,go(p){return i.go(p)}};return b}var zj;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(zj||(zj={}));function _Pe(e,t,n){return n===void 0&&(n="/"),jPe(e,t,n)}function jPe(e,t,n,r){let a=typeof t=="string"?yu(t):t,o=DU(a.pathname||"/",n);if(o==null)return null;let i=jU(e);FPe(i);let l=null,c=UPe(o);for(let u=0;l==null&&u{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};c.relativePath.startsWith("/")&&(ta(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Uc([r,c.relativePath]),d=n.concat(c);o.children&&o.children.length>0&&(ta(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),jU(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:HPe(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,i);else for(let c of FU(o.path))a(o,i,c)}),t}function FU(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let i=FU(r.join("/")),l=[];return l.push(...i.map(c=>c===""?o:[o,c].join("/"))),a&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function FPe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:VPe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const DPe=/^:[\w-]+$/,kPe=3,APe=2,LPe=1,BPe=10,zPe=-2,Hj=e=>e==="*";function HPe(e,t){let n=e.split("/"),r=n.length;return n.some(Hj)&&(r+=zPe),t&&(r+=APe),n.filter(a=>!Hj(a)).reduce((a,o)=>a+(DPe.test(o)?kPe:o===""?LPe:BPe),r)}function VPe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function WPe(e,t,n){let{routesMeta:r}=e,a={},o="/",i=[];for(let l=0;l{let{paramName:m,isOptional:g}=d;if(m==="*"){let b=l[f]||"";i=o.slice(0,o.length-b.length).replace(/(.)\/+$/,"$1")}const h=l[f];return g&&!h?u[m]=void 0:u[m]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function qPe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),H1(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 r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function UPe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return H1(!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 DU(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const GPe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,YPe=e=>GPe.test(e);function XPe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?yu(e):e,o;if(n)if(YPe(n))o=n;else{if(n.includes("//")){let i=n;n=LU(n),H1(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?o=Vj(n.substring(1),"/"):o=Vj(n,t)}else o=t;return{pathname:o,search:ZPe(r),hash:eOe(a)}}function Vj(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function dw(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function QPe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function kU(e,t){let n=QPe(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function AU(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=yu(e):(a=Hm({},e),ta(!a.pathname||!a.pathname.includes("?"),dw("?","pathname","search",a)),ta(!a.pathname||!a.pathname.includes("#"),dw("#","pathname","hash",a)),ta(!a.search||!a.search.includes("#"),dw("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(i==null)l=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;a.pathname=m.join("/")}l=f>=0?t[f]:"/"}let c=XPe(a,l),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const LU=e=>e.replace(/\/\/+/g,"/"),Uc=e=>LU(e.join("/")),JPe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ZPe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eOe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tOe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const BU=["post","put","patch","delete"];new Set(BU);const nOe=["get",...BU];new Set(nOe);/** * React Router v6.30.4 * * Copyright (c) Remix Software Inc. @@ -485,7 +485,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Vm(){return Vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),s.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=CU(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Uc([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,o,e])}const VPe=s.createContext(null);function WPe(e){let t=s.useContext(Xl).outlet;return t&&s.createElement(VPe.Provider,{value:e},t)}function KPe(){let{matches:e}=s.useContext(Xl),t=e[e.length-1];return t?t.params:{}}function qPe(e,t){return UPe(e,t)}function UPe(e,t,n,r){jg()||ea(!1);let{navigator:a}=s.useContext(_g),{matches:o}=s.useContext(Xl),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=Fg(),d;if(t){var f;let p=typeof t=="string"?hu(t):t;c==="/"||(f=p.pathname)!=null&&f.startsWith(c)||ea(!1),d=p}else d=u;let m=d.pathname||"/",g=m;if(c!=="/"){let p=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(p.length).join("/")}let h=hPe(e,{pathname:g}),b=JPe(h&&h.map(p=>Object.assign({},p,{params:Object.assign({},l,p.params),pathname:Uc([c,a.encodeLocation?a.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?c:Uc([c,a.encodeLocation?a.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),o,n,r);return t&&b?s.createElement(D1.Provider,{value:{location:Vm({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Ls.Pop}},b):b}function GPe(){let e=nOe(),t=LPe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),n?s.createElement("pre",{style:a},n):null,null)}const YPe=s.createElement(GPe,null);class XPe extends s.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?s.createElement(Xl.Provider,{value:this.props.routeContext},s.createElement(wU.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function QPe(e){let{routeContext:t,match:n,children:r}=e,a=s.useContext(i3);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),s.createElement(Xl.Provider,{value:t},r)}function JPe(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let d=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||ea(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let g,h=!1,b=null,p=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,b=f.route.errorElement||YPe,c&&(u<0&&m===0?(aOe("route-fallback"),h=!0,p=null):u===m&&(h=!0,p=f.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,m+1)),C=()=>{let x;return g?x=b:h?x=p:f.route.Component?x=s.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,s.createElement(QPe,{match:f,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?s.createElement(XPe,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}var EU=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(EU||{}),PU=(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})(PU||{});function ZPe(e){let t=s.useContext(i3);return t||ea(!1),t}function eOe(e){let t=s.useContext(zPe);return t||ea(!1),t}function tOe(e){let t=s.useContext(Xl);return t||ea(!1),t}function OU(e){let t=tOe(),n=t.matches[t.matches.length-1];return n.route.id||ea(!1),n.route.id}function nOe(){var e;let t=s.useContext(wU),n=eOe(),r=OU();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function rOe(){let{router:e}=ZPe(EU.UseNavigateStable),t=OU(PU.UseNavigateStable),n=s.useRef(!1);return $U(()=>{n.current=!0}),s.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Vm({fromRouteId:t},o)))},[e,t])}const Rj={};function aOe(e,t,n){Rj[e]||(Rj[e]=!0)}function oOe(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Rh(e){let{to:t,replace:n,state:r,relative:a}=e;jg()||ea(!1);let{future:o,static:i}=s.useContext(_g),{matches:l}=s.useContext(Xl),{pathname:c}=Fg(),u=Dg(),d=CU(t,yU(l,o.v7_relativeSplatPath),c,a==="path"),f=JSON.stringify(d);return s.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:a}),[u,f,a,n,r]),null}function iOe(e){return WPe(e.context)}function Rl(e){ea(!1)}function lOe(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Ls.Pop,navigator:o,static:i=!1,future:l}=e;jg()&&ea(!1);let c=t.replace(/^\/*/,"/"),u=s.useMemo(()=>({basename:c,navigator:o,static:i,future:Vm({v7_relativeSplatPath:!1},l)}),[c,l,o,i]);typeof r=="string"&&(r=hu(r));let{pathname:d="/",search:f="",hash:m="",state:g=null,key:h="default"}=r,b=s.useMemo(()=>{let p=bU(d,c);return p==null?null:{location:{pathname:p,search:f,hash:m,state:g,key:h},navigationType:a}},[c,d,f,m,g,h,a]);return b==null?null:s.createElement(_g.Provider,{value:u},s.createElement(D1.Provider,{children:n,value:b}))}function sOe(e){let{children:t,location:n}=e;return qPe(_O(t),n)}new Promise(()=>{});function _O(e,t){t===void 0&&(t=[]);let n=[];return s.Children.forEach(e,(r,a)=>{if(!s.isValidElement(r))return;let o=[...t,a];if(r.type===s.Fragment){n.push.apply(n,_O(r.props.children,o));return}r.type!==Rl&&ea(!1),!r.props.index||!r.props.children||ea(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=_O(r.props.children,o)),n.push(i)}),n}/** + */function Vm(){return Vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),s.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=AU(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Uc([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,i,o,e])}const oOe=s.createContext(null);function iOe(e){let t=s.useContext(Xl).outlet;return t&&s.createElement(oOe.Provider,{value:e},t)}function lOe(){let{matches:e}=s.useContext(Xl),t=e[e.length-1];return t?t.params:{}}function sOe(e,t){return cOe(e,t)}function cOe(e,t,n,r){jg()||ta(!1);let{navigator:a}=s.useContext(_g),{matches:o}=s.useContext(Xl),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let c=i?i.pathnameBase:"/";i&&i.route;let u=Fg(),d;if(t){var f;let p=typeof t=="string"?yu(t):t;c==="/"||(f=p.pathname)!=null&&f.startsWith(c)||ta(!1),d=p}else d=u;let m=d.pathname||"/",g=m;if(c!=="/"){let p=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(p.length).join("/")}let h=_Pe(e,{pathname:g}),b=mOe(h&&h.map(p=>Object.assign({},p,{params:Object.assign({},l,p.params),pathname:Uc([c,a.encodeLocation?a.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?c:Uc([c,a.encodeLocation?a.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),o,n,r);return t&&b?s.createElement(V1.Provider,{value:{location:Vm({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:As.Pop}},b):b}function uOe(){let e=bOe(),t=tOe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),n?s.createElement("pre",{style:a},n):null,null)}const dOe=s.createElement(uOe,null);class fOe extends s.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?s.createElement(Xl.Provider,{value:this.props.routeContext},s.createElement(zU.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vOe(e){let{routeContext:t,match:n,children:r}=e,a=s.useContext(h3);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),s.createElement(Xl.Provider,{value:t},r)}function mOe(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let d=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||ta(!1),i=i.slice(0,Math.min(i.length,d+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let g,h=!1,b=null,p=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,b=f.route.errorElement||dOe,c&&(u<0&&m===0?(COe("route-fallback"),h=!0,p=null):u===m&&(h=!0,p=f.route.hydrateFallbackElement||null)));let S=t.concat(i.slice(0,m+1)),C=()=>{let x;return g?x=b:h?x=p:f.route.Component?x=s.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,s.createElement(vOe,{match:f,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?s.createElement(fOe,{location:n.location,revalidation:n.revalidation,component:b,error:g,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}var VU=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(VU||{}),WU=(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})(WU||{});function gOe(e){let t=s.useContext(h3);return t||ta(!1),t}function pOe(e){let t=s.useContext(rOe);return t||ta(!1),t}function hOe(e){let t=s.useContext(Xl);return t||ta(!1),t}function KU(e){let t=hOe(),n=t.matches[t.matches.length-1];return n.route.id||ta(!1),n.route.id}function bOe(){var e;let t=s.useContext(zU),n=pOe(),r=KU();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function yOe(){let{router:e}=gOe(VU.UseNavigateStable),t=KU(WU.UseNavigateStable),n=s.useRef(!1);return HU(()=>{n.current=!0}),s.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Vm({fromRouteId:t},o)))},[e,t])}const Wj={};function COe(e,t,n){Wj[e]||(Wj[e]=!0)}function SOe(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Mh(e){let{to:t,replace:n,state:r,relative:a}=e;jg()||ta(!1);let{future:o,static:i}=s.useContext(_g),{matches:l}=s.useContext(Xl),{pathname:c}=Fg(),u=Dg(),d=AU(t,kU(l,o.v7_relativeSplatPath),c,a==="path"),f=JSON.stringify(d);return s.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:a}),[u,f,a,n,r]),null}function xOe(e){return iOe(e.context)}function Rl(e){ta(!1)}function wOe(e){let{basename:t="/",children:n=null,location:r,navigationType:a=As.Pop,navigator:o,static:i=!1,future:l}=e;jg()&&ta(!1);let c=t.replace(/^\/*/,"/"),u=s.useMemo(()=>({basename:c,navigator:o,static:i,future:Vm({v7_relativeSplatPath:!1},l)}),[c,l,o,i]);typeof r=="string"&&(r=yu(r));let{pathname:d="/",search:f="",hash:m="",state:g=null,key:h="default"}=r,b=s.useMemo(()=>{let p=DU(d,c);return p==null?null:{location:{pathname:p,search:f,hash:m,state:g,key:h},navigationType:a}},[c,d,f,m,g,h,a]);return b==null?null:s.createElement(_g.Provider,{value:u},s.createElement(V1.Provider,{children:n,value:b}))}function $Oe(e){let{children:t,location:n}=e;return sOe(HO(t),n)}new Promise(()=>{});function HO(e,t){t===void 0&&(t=[]);let n=[];return s.Children.forEach(e,(r,a)=>{if(!s.isValidElement(r))return;let o=[...t,a];if(r.type===s.Fragment){n.push.apply(n,HO(r.props.children,o));return}r.type!==Rl&&ta(!1),!r.props.index||!r.props.children||ta(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=HO(r.props.children,o)),n.push(i)}),n}/** * React Router DOM v6.30.4 * * Copyright (c) Remix Software Inc. @@ -494,7 +494,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * LICENSE.md file in the root directory of this source tree. * * @license MIT - */const cOe="6";try{window.__reactRouterVersion=cOe}catch{}const uOe="startTransition",Mj=sg[uOe];function dOe(e){let{basename:t,children:n,future:r,window:a}=e,o=s.useRef();o.current==null&&(o.current=mPe({window:a,v5Compat:!0}));let i=o.current,[l,c]=s.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=s.useCallback(f=>{u&&Mj?Mj(()=>c(f)):c(f)},[c,u]);return s.useLayoutEffect(()=>i.listen(d),[i,d]),s.useEffect(()=>oOe(r),[r]),s.createElement(lOe,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}var Tj;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Tj||(Tj={}));var Nj;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Nj||(Nj={}));const IU=s.createContext({});function RU(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;tt.tagName==="STYLE")}function NU(e,t={}){if(!MU())return null;const{csp:n,prepend:r,priority:a=0}=t,o=gOe(r),i=o==="prependQueue",l=document.createElement("style");l.setAttribute(_j,o),i&&a&&l.setAttribute(jj,`${a}`),n!=null&&n.nonce&&(l.nonce=n.nonce),l.innerHTML=e;const c=l3(t),{firstChild:u}=c;if(r){if(i){const d=(t.styles||s3(c)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(_j)))return!1;const m=Number(f.getAttribute(jj)||0);return a>=m});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function pOe(e,t={}){let{styles:n}=t;return n||(n=s3(l3(t))),n.find(r=>r.getAttribute(TU(t))===e)}function hOe(e,t){const n=jO.get(e);if(!n||!mOe(document,n)){const r=NU("",t);if(!r)return;const{parentNode:a}=r;jO.set(e,a),e.removeChild(r)}}function bOe(e,t,n={}){var c;if(!MU())return null;const r=l3(n),a=s3(r),o={...n,styles:a};hOe(r,o);const i=pOe(t,o);if(i)return(c=o.csp)!=null&&c.nonce&&i.nonce!==o.csp.nonce&&(i.nonce=o.csp.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=NU(e,o);return l==null||l.setAttribute(TU(o),t),l}function yOe(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function COe(e){const t=yOe(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}const Fj={};function SOe(e,t){e||Fj[t]||(Fj[t]=!0)}function xOe(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function wOe(e,t){SOe(e,`[@ant-design/icons] ${t}`)}function Dj(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function kj(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[xOe(n)]=r}return t},{})}function FO(e,t,n){return n?ee.createElement(e.tag,{key:t,...kj(e.attrs),...n},(e.children||[]).map((r,a)=>FO(r,`${t}-${e.tag}-${a}`))):ee.createElement(e.tag,{key:t,...kj(e.attrs)},(e.children||[]).map((r,a)=>FO(r,`${t}-${e.tag}-${a}`)))}const $Oe=` + */const EOe="6";try{window.__reactRouterVersion=EOe}catch{}const POe="startTransition",Kj=sg[POe];function OOe(e){let{basename:t,children:n,future:r,window:a}=e,o=s.useRef();o.current==null&&(o.current=MPe({window:a,v5Compat:!0}));let i=o.current,[l,c]=s.useState({action:i.action,location:i.location}),{v7_startTransition:u}=r||{},d=s.useCallback(f=>{u&&Kj?Kj(()=>c(f)):c(f)},[c,u]);return s.useLayoutEffect(()=>i.listen(d),[i,d]),s.useEffect(()=>SOe(r),[r]),s.createElement(wOe,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}var qj;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(qj||(qj={}));var Uj;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Uj||(Uj={}));const qU=s.createContext({});function UU(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;tt.tagName==="STYLE")}function XU(e,t={}){if(!GU())return null;const{csp:n,prepend:r,priority:a=0}=t,o=TOe(r),i=o==="prependQueue",l=document.createElement("style");l.setAttribute(Gj,o),i&&a&&l.setAttribute(Yj,`${a}`),n!=null&&n.nonce&&(l.nonce=n.nonce),l.innerHTML=e;const c=b3(t),{firstChild:u}=c;if(r){if(i){const d=(t.styles||y3(c)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(Gj)))return!1;const m=Number(f.getAttribute(Yj)||0);return a>=m});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function NOe(e,t={}){let{styles:n}=t;return n||(n=y3(b3(t))),n.find(r=>r.getAttribute(YU(t))===e)}function _Oe(e,t){const n=VO.get(e);if(!n||!MOe(document,n)){const r=XU("",t);if(!r)return;const{parentNode:a}=r;VO.set(e,a),e.removeChild(r)}}function jOe(e,t,n={}){var c;if(!GU())return null;const r=b3(n),a=y3(r),o={...n,styles:a};_Oe(r,o);const i=NOe(t,o);if(i)return(c=o.csp)!=null&&c.nonce&&i.nonce!==o.csp.nonce&&(i.nonce=o.csp.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=XU(e,o);return l==null||l.setAttribute(YU(o),t),l}function FOe(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function DOe(e){const t=FOe(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}const Xj={};function kOe(e,t){e||Xj[t]||(Xj[t]=!0)}function AOe(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function LOe(e,t){kOe(e,`[@ant-design/icons] ${t}`)}function Qj(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Jj(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[AOe(n)]=r}return t},{})}function WO(e,t,n){return n?ee.createElement(e.tag,{key:t,...Jj(e.attrs),...n},(e.children||[]).map((r,a)=>WO(r,`${t}-${e.tag}-${a}`))):ee.createElement(e.tag,{key:t,...Jj(e.attrs)},(e.children||[]).map((r,a)=>WO(r,`${t}-${e.tag}-${a}`)))}const BOe=` .anticon { display: inline-flex; align-items: center; @@ -548,9 +548,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,EOe=e=>{const{csp:t,prefixCls:n,layer:r,zeroRuntime:a}=s.useContext(IU);let o=$Oe;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} { +`,zOe=e=>{const{csp:t,prefixCls:n,layer:r,zeroRuntime:a}=s.useContext(qU);let o=BOe;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} { ${o} -}`),s.useEffect(()=>{if(a)return;const i=e.current,l=COe(i);bOe(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:l})},[])},_U=e=>{const{icon:t,className:n,onClick:r,style:a,primaryColor:o,secondaryColor:i,...l}=e,c=s.useRef(null);if(EOe(c),wOe(Dj(t),`icon should be icon definiton, but got ${t}`),!Dj(t))return null;const u=t;return FO(u.icon,`svg-${u.name}`,{className:n,onClick:r,style:a,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:c})};_U.displayName="IconReact";function DO(){return DO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:n,icon:r,spin:a,rotate:o,tabIndex:i,onClick:l,twoToneColor:c,...u}=e,{prefixCls:d="anticon",rootClassName:f}=s.useContext(IU),m=fOe(f,d,{[`${d}-${r.name}`]:!!r.name,[`${d}-spin`]:!!a||r.name==="loading"},n);let g=i;g===void 0&&l&&(g=-1);const h=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0;return s.createElement("span",DO({role:"img","aria-label":r.name},u,{ref:t,tabIndex:g,onClick:l,className:m}),s.createElement(_U,{icon:r,style:h}))});var Mh={},Aj;function POe(){if(Aj)return Mh;Aj=1,Object.defineProperty(Mh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"};return Mh.default=e,Mh}var OOe=POe();const IOe=an(OOe);function kO(){return kO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,kO({},e,{ref:t,icon:IOe})),jU=s.forwardRef(ROe);var Th={},Lj;function MOe(){if(Lj)return Th;Lj=1,Object.defineProperty(Th,"__esModule",{value:!0});var e={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"};return Th.default=e,Th}var TOe=MOe();const NOe=an(TOe);function AO(){return AO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,AO({},e,{ref:t,icon:NOe})),FU=s.forwardRef(_Oe);var Nh={},Bj;function DU(){if(Bj)return Nh;Bj=1,Object.defineProperty(Nh,"__esModule",{value:!0});var e={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"};return Nh.default=e,Nh}var jOe=DU();const FOe=an(jOe);function LO(){return LO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,LO({},e,{ref:t,icon:FOe})),kOe=s.forwardRef(DOe);var _h={},zj;function AOe(){if(zj)return _h;zj=1,Object.defineProperty(_h,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};return _h.default=e,_h}var jh={},Hj;function LOe(){if(Hj)return jh;Hj=1,Object.defineProperty(jh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"};return jh.default=e,jh}var BOe=LOe();const zOe=an(BOe);function BO(){return BO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,BO({},e,{ref:t,icon:zOe})),VOe=s.forwardRef(HOe);var Fh={},Vj;function WOe(){if(Vj)return Fh;Vj=1,Object.defineProperty(Fh,"__esModule",{value:!0});var e={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"};return Fh.default=e,Fh}var KOe=WOe();const qOe=an(KOe);function zO(){return zO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,zO({},e,{ref:t,icon:qOe})),GOe=s.forwardRef(UOe);var Dh={},Wj;function YOe(){if(Wj)return Dh;Wj=1,Object.defineProperty(Dh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};return Dh.default=e,Dh}var XOe=YOe();const QOe=an(XOe);function HO(){return HO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,HO({},e,{ref:t,icon:QOe})),c3=s.forwardRef(JOe);var kh={},Kj;function ZOe(){if(Kj)return kh;Kj=1,Object.defineProperty(kh,"__esModule",{value:!0});var e={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"};return kh.default=e,kh}var eIe=ZOe();const tIe=an(eIe);function VO(){return VO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,VO({},e,{ref:t,icon:tIe})),rIe=s.forwardRef(nIe);var Ah={},qj;function aIe(){if(qj)return Ah;qj=1,Object.defineProperty(Ah,"__esModule",{value:!0});var e={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"};return Ah.default=e,Ah}var oIe=aIe();const iIe=an(oIe);function WO(){return WO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,WO({},e,{ref:t,icon:iIe})),sIe=s.forwardRef(lIe);var Lh={},Uj;function cIe(){if(Uj)return Lh;Uj=1,Object.defineProperty(Lh,"__esModule",{value:!0});var e={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};return Lh.default=e,Lh}var uIe=cIe();const dIe=an(uIe);function KO(){return KO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,KO({},e,{ref:t,icon:dIe})),vIe=s.forwardRef(fIe);var Bh={},Gj;function mIe(){if(Gj)return Bh;Gj=1,Object.defineProperty(Bh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"};return Bh.default=e,Bh}var gIe=mIe();const pIe=an(gIe);function qO(){return qO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,qO({},e,{ref:t,icon:pIe})),Yj=s.forwardRef(hIe);var zh={},Xj;function bIe(){if(Xj)return zh;Xj=1,Object.defineProperty(zh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:"code",theme:"outlined"};return zh.default=e,zh}var yIe=bIe();const CIe=an(yIe);function UO(){return UO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,UO({},e,{ref:t,icon:CIe})),xIe=s.forwardRef(SIe);var Hh={},Qj;function wIe(){if(Qj)return Hh;Qj=1,Object.defineProperty(Hh,"__esModule",{value:!0});var e={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"};return Hh.default=e,Hh}var $Ie=wIe();const EIe=an($Ie);function GO(){return GO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,GO({},e,{ref:t,icon:EIe})),OIe=s.forwardRef(PIe);var Vh={},Jj;function IIe(){if(Jj)return Vh;Jj=1,Object.defineProperty(Vh,"__esModule",{value:!0});var e={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"};return Vh.default=e,Vh}var RIe=IIe();const MIe=an(RIe);function YO(){return YO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,YO({},e,{ref:t,icon:MIe})),NIe=s.forwardRef(TIe);var Wh={},Zj;function _Ie(){if(Zj)return Wh;Zj=1,Object.defineProperty(Wh,"__esModule",{value:!0});var e={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"};return Wh.default=e,Wh}var jIe=_Ie();const FIe=an(jIe);function XO(){return XO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,XO({},e,{ref:t,icon:FIe})),kIe=s.forwardRef(DIe);var Kh={},eF;function AIe(){if(eF)return Kh;eF=1,Object.defineProperty(Kh,"__esModule",{value:!0});var e={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"};return Kh.default=e,Kh}var LIe=AIe();const BIe=an(LIe);function QO(){return QO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,QO({},e,{ref:t,icon:BIe})),HIe=s.forwardRef(zIe);var qh={},tF;function VIe(){if(tF)return qh;tF=1,Object.defineProperty(qh,"__esModule",{value:!0});var e={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"};return qh.default=e,qh}var WIe=VIe();const KIe=an(WIe);function JO(){return JO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,JO({},e,{ref:t,icon:KIe})),UIe=s.forwardRef(qIe);var Uh={},nF;function GIe(){if(nF)return Uh;nF=1,Object.defineProperty(Uh,"__esModule",{value:!0});var e={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"};return Uh.default=e,Uh}var YIe=GIe();const XIe=an(YIe);function ZO(){return ZO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,ZO({},e,{ref:t,icon:XIe})),JIe=s.forwardRef(QIe);var Gh={},rF;function ZIe(){if(rF)return Gh;rF=1,Object.defineProperty(Gh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};return Gh.default=e,Gh}var eRe=ZIe();const tRe=an(eRe);function eI(){return eI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,eI({},e,{ref:t,icon:tRe})),rRe=s.forwardRef(nRe);var Yh={},aF;function aRe(){if(aF)return Yh;aF=1,Object.defineProperty(Yh,"__esModule",{value:!0});var e={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"};return Yh.default=e,Yh}var oRe=aRe();const iRe=an(oRe);function tI(){return tI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,tI({},e,{ref:t,icon:iRe})),sRe=s.forwardRef(lRe);var Xh={},oF;function cRe(){if(oF)return Xh;oF=1,Object.defineProperty(Xh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M644.7 669.2a7.92 7.92 0 00-6.5-3.3H594c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.8-5.3 0-12.7-6.5-12.7h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-22.9-31.9zM688 306v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-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-8H296zm184 458H208V148h560v296c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h312c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm402.6-320.8l-192-66.7c-.9-.3-1.7-.4-2.6-.4s-1.8.1-2.6.4l-192 66.7a7.96 7.96 0 00-5.4 7.5v251.1c0 2.5 1.1 4.8 3.1 6.3l192 150.2c1.4 1.1 3.2 1.7 4.9 1.7s3.5-.6 4.9-1.7l192-150.2c1.9-1.5 3.1-3.8 3.1-6.3V538.7c0-3.4-2.2-6.4-5.4-7.5zM826 763.7L688 871.6 550 763.7V577l138-48 138 48v186.7z"}}]},name:"file-protect",theme:"outlined"};return Xh.default=e,Xh}var uRe=cRe();const dRe=an(uRe);function nI(){return nI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,nI({},e,{ref:t,icon:dRe})),vRe=s.forwardRef(fRe);var Qh={},iF;function mRe(){if(iF)return Qh;iF=1,Object.defineProperty(Qh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};return Qh.default=e,Qh}var gRe=mRe();const pRe=an(gRe);function rI(){return rI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,rI({},e,{ref:t,icon:pRe})),bRe=s.forwardRef(hRe);var Jh={},lF;function yRe(){if(lF)return Jh;lF=1,Object.defineProperty(Jh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};return Jh.default=e,Jh}var CRe=yRe();const SRe=an(CRe);function aI(){return aI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,aI({},e,{ref:t,icon:SRe})),wRe=s.forwardRef(xRe);var Zh={},sF;function $Re(){if(sF)return Zh;sF=1,Object.defineProperty(Zh,"__esModule",{value:!0});var e={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"};return Zh.default=e,Zh}var ERe=$Re();const PRe=an(ERe);function oI(){return oI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,oI({},e,{ref:t,icon:PRe})),IRe=s.forwardRef(ORe);var e0={},cF;function RRe(){if(cF)return e0;cF=1,Object.defineProperty(e0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};return e0.default=e,e0}var MRe=RRe();const TRe=an(MRe);function iI(){return iI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,iI({},e,{ref:t,icon:TRe})),_Re=s.forwardRef(NRe);var t0={},uF;function jRe(){if(uF)return t0;uF=1,Object.defineProperty(t0,"__esModule",{value:!0});var e={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"};return t0.default=e,t0}var FRe=jRe();const DRe=an(FRe);function lI(){return lI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,lI({},e,{ref:t,icon:DRe})),ARe=s.forwardRef(kRe);var n0={},dF;function LRe(){if(dF)return n0;dF=1,Object.defineProperty(n0,"__esModule",{value:!0});var e={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 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"};return n0.default=e,n0}var BRe=LRe();const zRe=an(BRe);function sI(){return sI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,sI({},e,{ref:t,icon:zRe})),rw=s.forwardRef(HRe);var r0={},fF;function VRe(){if(fF)return r0;fF=1,Object.defineProperty(r0,"__esModule",{value:!0});var e={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-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z"}}]},name:"pause-circle",theme:"filled"};return r0.default=e,r0}var WRe=VRe();const KRe=an(WRe);function cI(){return cI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,cI({},e,{ref:t,icon:KRe})),URe=s.forwardRef(qRe);var a0={},vF;function GRe(){if(vF)return a0;vF=1,Object.defineProperty(a0,"__esModule",{value:!0});var e={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"};return a0.default=e,a0}var YRe=GRe();const XRe=an(YRe);function uI(){return uI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,uI({},e,{ref:t,icon:XRe})),mF=s.forwardRef(QRe);var o0={},gF;function JRe(){if(gF)return o0;gF=1,Object.defineProperty(o0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"};return o0.default=e,o0}var ZRe=JRe();const e4e=an(ZRe);function dI(){return dI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,dI({},e,{ref:t,icon:e4e})),n4e=s.forwardRef(t4e);var i0={},pF;function r4e(){if(pF)return i0;pF=1,Object.defineProperty(i0,"__esModule",{value:!0});var e={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"};return i0.default=e,i0}var a4e=r4e();const o4e=an(a4e);function fI(){return fI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,fI({},e,{ref:t,icon:o4e})),kU=s.forwardRef(i4e);var l0={},hF;function l4e(){if(hF)return l0;hF=1,Object.defineProperty(l0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"};return l0.default=e,l0}var s4e=l4e();const c4e=an(s4e);function vI(){return vI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,vI({},e,{ref:t,icon:c4e})),mI=s.forwardRef(u4e);var s0={},bF;function d4e(){if(bF)return s0;bF=1,Object.defineProperty(s0,"__esModule",{value:!0});var e={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"};return s0.default=e,s0}var f4e=d4e();const v4e=an(f4e);function gI(){return gI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,gI({},e,{ref:t,icon:v4e})),g4e=s.forwardRef(m4e);var c0={},yF;function p4e(){if(yF)return c0;yF=1,Object.defineProperty(c0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};return c0.default=e,c0}var h4e=p4e();const b4e=an(h4e);function pI(){return pI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,pI({},e,{ref:t,icon:b4e})),C4e=s.forwardRef(y4e);var u0={},CF;function S4e(){if(CF)return u0;CF=1,Object.defineProperty(u0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};return u0.default=e,u0}var x4e=S4e();const w4e=an(x4e);function hI(){return hI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,hI({},e,{ref:t,icon:w4e})),SF=s.forwardRef($4e);var d0={},xF;function E4e(){if(xF)return d0;xF=1,Object.defineProperty(d0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};return d0.default=e,d0}var P4e=E4e();const O4e=an(P4e);function bI(){return bI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,bI({},e,{ref:t,icon:O4e})),R4e=s.forwardRef(I4e);var f0={},wF;function M4e(){if(wF)return f0;wF=1,Object.defineProperty(f0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};return f0.default=e,f0}var T4e=M4e();const N4e=an(T4e);function yI(){return yI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,yI({},e,{ref:t,icon:N4e})),AU=s.forwardRef(_4e);var v0={},$F;function j4e(){if($F)return v0;$F=1,Object.defineProperty(v0,"__esModule",{value:!0});var e={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"};return v0.default=e,v0}var F4e=j4e();const D4e=an(F4e);function CI(){return CI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Ln,CI({},e,{ref:t,icon:D4e})),A4e=s.forwardRef(k4e);var L4e=P(P({},w9),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const LU={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},SI={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},L4e),timePickerLocale:Object.assign({},LU)};SI.lang.ok="确定";const wo="${label}不是一个有效的${type}",B4e={locale:"zh-cn",Pagination:QK,DatePicker:SI,TimePicker:LU,Calendar:SI,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:wo,method:wo,array:wo,object:wo,number:wo,date:wo,boolean:wo,integer:wo,float:wo,regexp:wo,email:wo,url:wo,hex:wo},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};var aw={exports:{}},ow={};/** +}`),s.useEffect(()=>{if(a)return;const i=e.current,l=DOe(i);jOe(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:l})},[])},QU=e=>{const{icon:t,className:n,onClick:r,style:a,primaryColor:o,secondaryColor:i,...l}=e,c=s.useRef(null);if(zOe(c),LOe(Qj(t),`icon should be icon definiton, but got ${t}`),!Qj(t))return null;const u=t;return WO(u.icon,`svg-${u.name}`,{className:n,onClick:r,style:a,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:c})};QU.displayName="IconReact";function KO(){return KO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:n,icon:r,spin:a,rotate:o,tabIndex:i,onClick:l,twoToneColor:c,...u}=e,{prefixCls:d="anticon",rootClassName:f}=s.useContext(qU),m=IOe(f,d,{[`${d}-${r.name}`]:!!r.name,[`${d}-spin`]:!!a||r.name==="loading"},n);let g=i;g===void 0&&l&&(g=-1);const h=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0;return s.createElement("span",KO({role:"img","aria-label":r.name},u,{ref:t,tabIndex:g,onClick:l,className:m}),s.createElement(QU,{icon:r,style:h}))});var Th={},Zj;function HOe(){if(Zj)return Th;Zj=1,Object.defineProperty(Th,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 00-11.3 0l-39.6 39.6a8.03 8.03 0 000 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 00-11.3 0l-67.9 67.9a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z"}}]},name:"alert",theme:"outlined"};return Th.default=e,Th}var VOe=HOe();const WOe=rn(VOe);function qO(){return qO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,qO({},e,{ref:t,icon:WOe})),qOe=s.forwardRef(KOe);var Nh={},eF;function UOe(){if(eF)return Nh;eF=1,Object.defineProperty(Nh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"};return Nh.default=e,Nh}var GOe=UOe();const YOe=rn(GOe);function UO(){return UO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,UO({},e,{ref:t,icon:YOe})),JU=s.forwardRef(XOe);var _h={},tF;function QOe(){if(tF)return _h;tF=1,Object.defineProperty(_h,"__esModule",{value:!0});var e={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"};return _h.default=e,_h}var JOe=QOe();const ZOe=rn(JOe);function GO(){return GO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,GO({},e,{ref:t,icon:ZOe})),ZU=s.forwardRef(eIe);var jh={},nF;function tIe(){if(nF)return jh;nF=1,Object.defineProperty(jh,"__esModule",{value:!0});var e={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"};return jh.default=e,jh}var Fh={},rF;function nIe(){if(rF)return Fh;rF=1,Object.defineProperty(Fh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};return Fh.default=e,Fh}var Dh={},aF;function rIe(){if(aF)return Dh;aF=1,Object.defineProperty(Dh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0034.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"};return Dh.default=e,Dh}var aIe=rIe();const oIe=rn(aIe);function YO(){return YO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,YO({},e,{ref:t,icon:oIe})),lIe=s.forwardRef(iIe);var kh={},oF;function sIe(){if(oF)return kh;oF=1,Object.defineProperty(kh,"__esModule",{value:!0});var e={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"};return kh.default=e,kh}var cIe=sIe();const uIe=rn(cIe);function XO(){return XO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,XO({},e,{ref:t,icon:uIe})),fIe=s.forwardRef(dIe);var Ah={},iF;function vIe(){if(iF)return Ah;iF=1,Object.defineProperty(Ah,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};return Ah.default=e,Ah}var mIe=vIe();const gIe=rn(mIe);function QO(){return QO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,QO({},e,{ref:t,icon:gIe})),C3=s.forwardRef(pIe);var Lh={},lF;function hIe(){if(lF)return Lh;lF=1,Object.defineProperty(Lh,"__esModule",{value:!0});var e={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"};return Lh.default=e,Lh}var bIe=hIe();const yIe=rn(bIe);function JO(){return JO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,JO({},e,{ref:t,icon:yIe})),SIe=s.forwardRef(CIe);var Bh={},sF;function xIe(){if(sF)return Bh;sF=1,Object.defineProperty(Bh,"__esModule",{value:!0});var e={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"};return Bh.default=e,Bh}var wIe=xIe();const $Ie=rn(wIe);function ZO(){return ZO=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,ZO({},e,{ref:t,icon:$Ie})),PIe=s.forwardRef(EIe);var zh={},cF;function OIe(){if(cF)return zh;cF=1,Object.defineProperty(zh,"__esModule",{value:!0});var e={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};return zh.default=e,zh}var IIe=OIe();const RIe=rn(IIe);function eI(){return eI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,eI({},e,{ref:t,icon:RIe})),TIe=s.forwardRef(MIe);var Hh={},uF;function NIe(){if(uF)return Hh;uF=1,Object.defineProperty(Hh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"};return Hh.default=e,Hh}var _Ie=NIe();const jIe=rn(_Ie);function tI(){return tI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,tI({},e,{ref:t,icon:jIe})),dF=s.forwardRef(FIe);var Vh={},fF;function DIe(){if(fF)return Vh;fF=1,Object.defineProperty(Vh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 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:"code",theme:"outlined"};return Vh.default=e,Vh}var kIe=DIe();const AIe=rn(kIe);function nI(){return nI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,nI({},e,{ref:t,icon:AIe})),BIe=s.forwardRef(LIe);var Wh={},vF;function zIe(){if(vF)return Wh;vF=1,Object.defineProperty(Wh,"__esModule",{value:!0});var e={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"};return Wh.default=e,Wh}var HIe=zIe();const VIe=rn(HIe);function rI(){return rI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,rI({},e,{ref:t,icon:VIe})),KIe=s.forwardRef(WIe);var Kh={},mF;function qIe(){if(mF)return Kh;mF=1,Object.defineProperty(Kh,"__esModule",{value:!0});var e={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"};return Kh.default=e,Kh}var UIe=qIe();const GIe=rn(UIe);function aI(){return aI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,aI({},e,{ref:t,icon:GIe})),XIe=s.forwardRef(YIe);var qh={},gF;function QIe(){if(gF)return qh;gF=1,Object.defineProperty(qh,"__esModule",{value:!0});var e={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"};return qh.default=e,qh}var JIe=QIe();const ZIe=rn(JIe);function oI(){return oI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,oI({},e,{ref:t,icon:ZIe})),tRe=s.forwardRef(eRe);var Uh={},pF;function nRe(){if(pF)return Uh;pF=1,Object.defineProperty(Uh,"__esModule",{value:!0});var e={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"};return Uh.default=e,Uh}var rRe=nRe();const aRe=rn(rRe);function iI(){return iI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,iI({},e,{ref:t,icon:aRe})),iRe=s.forwardRef(oRe);var Gh={},hF;function lRe(){if(hF)return Gh;hF=1,Object.defineProperty(Gh,"__esModule",{value:!0});var e={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"};return Gh.default=e,Gh}var sRe=lRe();const cRe=rn(sRe);function lI(){return lI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,lI({},e,{ref:t,icon:cRe})),dRe=s.forwardRef(uRe);var Yh={},bF;function fRe(){if(bF)return Yh;bF=1,Object.defineProperty(Yh,"__esModule",{value:!0});var e={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"};return Yh.default=e,Yh}var vRe=fRe();const mRe=rn(vRe);function sI(){return sI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,sI({},e,{ref:t,icon:mRe})),pRe=s.forwardRef(gRe);var Xh={},yF;function hRe(){if(yF)return Xh;yF=1,Object.defineProperty(Xh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};return Xh.default=e,Xh}var bRe=hRe();const yRe=rn(bRe);function cI(){return cI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,cI({},e,{ref:t,icon:yRe})),SRe=s.forwardRef(CRe);var Qh={},CF;function xRe(){if(CF)return Qh;CF=1,Object.defineProperty(Qh,"__esModule",{value:!0});var e={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"};return Qh.default=e,Qh}var wRe=xRe();const $Re=rn(wRe);function uI(){return uI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,uI({},e,{ref:t,icon:$Re})),PRe=s.forwardRef(ERe);var Jh={},SF;function ORe(){if(SF)return Jh;SF=1,Object.defineProperty(Jh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M644.7 669.2a7.92 7.92 0 00-6.5-3.3H594c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.8-5.3 0-12.7-6.5-12.7h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-22.9-31.9zM688 306v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-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-8H296zm184 458H208V148h560v296c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h312c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm402.6-320.8l-192-66.7c-.9-.3-1.7-.4-2.6-.4s-1.8.1-2.6.4l-192 66.7a7.96 7.96 0 00-5.4 7.5v251.1c0 2.5 1.1 4.8 3.1 6.3l192 150.2c1.4 1.1 3.2 1.7 4.9 1.7s3.5-.6 4.9-1.7l192-150.2c1.9-1.5 3.1-3.8 3.1-6.3V538.7c0-3.4-2.2-6.4-5.4-7.5zM826 763.7L688 871.6 550 763.7V577l138-48 138 48v186.7z"}}]},name:"file-protect",theme:"outlined"};return Jh.default=e,Jh}var IRe=ORe();const RRe=rn(IRe);function dI(){return dI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,dI({},e,{ref:t,icon:RRe})),TRe=s.forwardRef(MRe);var Zh={},xF;function NRe(){if(xF)return Zh;xF=1,Object.defineProperty(Zh,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};return Zh.default=e,Zh}var _Re=NRe();const jRe=rn(_Re);function fI(){return fI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,fI({},e,{ref:t,icon:jRe})),DRe=s.forwardRef(FRe);var e0={},wF;function kRe(){if(wF)return e0;wF=1,Object.defineProperty(e0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};return e0.default=e,e0}var ARe=kRe();const LRe=rn(ARe);function vI(){return vI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,vI({},e,{ref:t,icon:LRe})),zRe=s.forwardRef(BRe);var t0={},$F;function HRe(){if($F)return t0;$F=1,Object.defineProperty(t0,"__esModule",{value:!0});var e={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"};return t0.default=e,t0}var VRe=HRe();const WRe=rn(VRe);function mI(){return mI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,mI({},e,{ref:t,icon:WRe})),qRe=s.forwardRef(KRe);var n0={},EF;function URe(){if(EF)return n0;EF=1,Object.defineProperty(n0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};return n0.default=e,n0}var GRe=URe();const YRe=rn(GRe);function gI(){return gI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,gI({},e,{ref:t,icon:YRe})),QRe=s.forwardRef(XRe);var r0={},PF;function JRe(){if(PF)return r0;PF=1,Object.defineProperty(r0,"__esModule",{value:!0});var e={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"};return r0.default=e,r0}var ZRe=JRe();const e4e=rn(ZRe);function pI(){return pI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,pI({},e,{ref:t,icon:e4e})),n4e=s.forwardRef(t4e);var a0={},OF;function r4e(){if(OF)return a0;OF=1,Object.defineProperty(a0,"__esModule",{value:!0});var e={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 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"};return a0.default=e,a0}var a4e=r4e();const o4e=rn(a4e);function hI(){return hI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,hI({},e,{ref:t,icon:o4e})),fw=s.forwardRef(i4e);var o0={},IF;function l4e(){if(IF)return o0;IF=1,Object.defineProperty(o0,"__esModule",{value:!0});var e={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-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z"}}]},name:"pause-circle",theme:"filled"};return o0.default=e,o0}var s4e=l4e();const c4e=rn(s4e);function bI(){return bI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,bI({},e,{ref:t,icon:c4e})),d4e=s.forwardRef(u4e);var i0={},RF;function f4e(){if(RF)return i0;RF=1,Object.defineProperty(i0,"__esModule",{value:!0});var e={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"};return i0.default=e,i0}var v4e=f4e();const m4e=rn(v4e);function yI(){return yI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,yI({},e,{ref:t,icon:m4e})),CI=s.forwardRef(g4e);var l0={},MF;function p4e(){if(MF)return l0;MF=1,Object.defineProperty(l0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0zm0 144a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"profile",theme:"outlined"};return l0.default=e,l0}var h4e=p4e();const b4e=rn(h4e);function SI(){return SI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,SI({},e,{ref:t,icon:b4e})),eG=s.forwardRef(y4e);var s0={},TF;function C4e(){if(TF)return s0;TF=1,Object.defineProperty(s0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"};return s0.default=e,s0}var S4e=C4e();const x4e=rn(S4e);function xI(){return xI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,xI({},e,{ref:t,icon:x4e})),$4e=s.forwardRef(w4e);var c0={},NF;function E4e(){if(NF)return c0;NF=1,Object.defineProperty(c0,"__esModule",{value:!0});var e={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"};return c0.default=e,c0}var P4e=E4e();const O4e=rn(P4e);function wI(){return wI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,wI({},e,{ref:t,icon:O4e})),S3=s.forwardRef(I4e);var u0={},_F;function R4e(){if(_F)return u0;_F=1,Object.defineProperty(u0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"};return u0.default=e,u0}var M4e=R4e();const T4e=rn(M4e);function $I(){return $I=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,$I({},e,{ref:t,icon:T4e})),EI=s.forwardRef(N4e);var d0={},jF;function _4e(){if(jF)return d0;jF=1,Object.defineProperty(d0,"__esModule",{value:!0});var e={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"};return d0.default=e,d0}var j4e=_4e();const F4e=rn(j4e);function PI(){return PI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,PI({},e,{ref:t,icon:F4e})),tG=s.forwardRef(D4e);var f0={},FF;function k4e(){if(FF)return f0;FF=1,Object.defineProperty(f0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};return f0.default=e,f0}var A4e=k4e();const L4e=rn(A4e);function OI(){return OI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,OI({},e,{ref:t,icon:L4e})),z4e=s.forwardRef(B4e);var v0={},DF;function H4e(){if(DF)return v0;DF=1,Object.defineProperty(v0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};return v0.default=e,v0}var V4e=H4e();const W4e=rn(V4e);function II(){return II=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,II({},e,{ref:t,icon:W4e})),kF=s.forwardRef(K4e);var m0={},AF;function q4e(){if(AF)return m0;AF=1,Object.defineProperty(m0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};return m0.default=e,m0}var U4e=q4e();const G4e=rn(U4e);function RI(){return RI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,RI({},e,{ref:t,icon:G4e})),X4e=s.forwardRef(Y4e);var g0={},LF;function Q4e(){if(LF)return g0;LF=1,Object.defineProperty(g0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};return g0.default=e,g0}var J4e=Q4e();const Z4e=rn(J4e);function MI(){return MI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,MI({},e,{ref:t,icon:Z4e})),nG=s.forwardRef(e3e);var p0={},BF;function t3e(){if(BF)return p0;BF=1,Object.defineProperty(p0,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",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:"unordered-list",theme:"outlined"};return p0.default=e,p0}var n3e=t3e();const r3e=rn(n3e);function TI(){return TI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,TI({},e,{ref:t,icon:r3e})),o3e=s.forwardRef(a3e);var h0={},zF;function i3e(){if(zF)return h0;zF=1,Object.defineProperty(h0,"__esModule",{value:!0});var e={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"};return h0.default=e,h0}var l3e=i3e();const s3e=rn(l3e);function NI(){return NI=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.createElement(Dn,NI({},e,{ref:t,icon:s3e})),u3e=s.forwardRef(c3e);var d3e=P(P({},B9),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});const rG={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},_I={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},d3e),timePickerLocale:Object.assign({},rG)};_I.lang.ok="确定";const $o="${label}不是一个有效的${type}",f3e={locale:"zh-cn",Pagination:gq,DatePicker:_I,TimePicker:rG,Calendar:_I,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:$o,method:$o,array:$o,object:$o,number:$o,date:$o,boolean:$o,integer:$o,float:$o,regexp:$o,email:$o,url:$o,hex:$o},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};var vw={exports:{}},mw={};/** * @license React * use-sync-external-store-shim.production.js * @@ -558,29 +558,29 @@ ${o} * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var EF;function z4e(){if(EF)return ow;EF=1;var e=ci();function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function l(f,m){var g=m(),h=r({inst:{value:g,getSnapshot:m}}),b=h[0].inst,p=h[1];return o(function(){b.value=g,b.getSnapshot=m,c(b)&&p({inst:b})},[f,g,m]),a(function(){return c(b)&&p({inst:b}),f(function(){c(b)&&p({inst:b})})},[f]),i(g),g}function c(f){var m=f.getSnapshot;f=f.value;try{var g=m();return!n(f,g)}catch{return!0}}function u(f,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return ow.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,ow}var PF;function H4e(){return PF||(PF=1,aw.exports=z4e()),aw.exports}var OF=H4e();const BU=0,zU=1,HU=2,IF=3;var RF=Object.prototype.hasOwnProperty;function xI(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&xI(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(RF.call(e,n)&&++r&&!RF.call(t,n)||!(n in t)||!xI(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Fl=new WeakMap,Dl=()=>{},fa=Dl(),ay=Object,Bn=e=>e===fa,Oi=e=>typeof e=="function",Kl=(e,t)=>({...e,...t}),VU=e=>Oi(e.then),iw={},m0={},u3="undefined",kg=typeof window!=u3,wI=typeof document!=u3,V4e=kg&&"Deno"in window,W4e=()=>kg&&typeof window.requestAnimationFrame!=u3,WU=(e,t)=>{const n=Fl.get(e);return[()=>!Bn(t)&&e.get(t)||iw,r=>{if(!Bn(t)){const a=e.get(t);t in m0||(m0[t]=a),n[5](t,Kl(a,r),a||iw)}},n[6],()=>!Bn(t)&&t in m0?m0[t]:!Bn(t)&&e.get(t)||iw]};let $I=!0;const K4e=()=>$I,[EI,PI]=kg&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Dl,Dl],q4e=()=>{const e=wI&&document.visibilityState;return Bn(e)||e!=="hidden"},U4e=e=>(wI&&document.addEventListener("visibilitychange",e),EI("focus",e),()=>{wI&&document.removeEventListener("visibilitychange",e),PI("focus",e)}),G4e=e=>{const t=()=>{$I=!0,e()},n=()=>{$I=!1};return EI("online",t),EI("offline",n),()=>{PI("online",t),PI("offline",n)}},Y4e={isOnline:K4e,isVisible:q4e},X4e={initFocus:U4e,initReconnect:G4e},MF=!ee.useId,Od=!kg||V4e,Q4e=e=>W4e()?window.requestAnimationFrame(e):setTimeout(e,1),eb=Od?s.useEffect:s.useLayoutEffect,lw=typeof navigator<"u"&&navigator.connection,TF=!Od&&lw&&(["slow-2g","2g"].includes(lw.effectiveType)||lw.saveData),g0=new WeakMap,J4e=e=>ay.prototype.toString.call(e),sw=(e,t)=>e===`[object ${t}]`;let Z4e=0;const OI=e=>{const t=typeof e,n=J4e(e),r=sw(n,"Date"),a=sw(n,"RegExp"),o=sw(n,"Object");let i,l;if(ay(e)===e&&!r&&!a){if(i=g0.get(e),i)return i;if(i=++Z4e+"~",g0.set(e,i),Array.isArray(e)){for(i="@",l=0;l{if(Oi(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?OI(e):"",[e,t]};let e3e=0;const II=()=>++e3e;async function KU(...e){const[t,n,r,a]=e,o=Kl({populateCache:!0,throwOnError:!0},typeof a=="boolean"?{revalidate:a}:a||{});let i=o.populateCache;const l=o.rollbackOnError;let c=o.optimisticData;const u=m=>typeof l=="function"?l(m):l!==!1,d=o.throwOnError;if(Oi(n)){const m=n,g=[],h=t.keys();for(const b of h)!/^\$(inf|sub)\$/.test(b)&&m(t.get(b)._k)&&g.push(b);return Promise.all(g.map(f))}return f(n);async function f(m){const[g]=d3(m);if(!g)return;const[h,b]=WU(t,g),[p,S,C,x]=Fl.get(t),w=()=>{const j=p[g];return(Oi(o.revalidate)?o.revalidate(h().data,m):o.revalidate!==!1)&&(delete C[g],delete x[g],j&&j[0])?j[0](HU).then(()=>h().data):h().data};if(e.length<3)return w();let $=r,E,R=!1;const I=II();S[g]=[I,0];const O=!Bn(c),T=h(),N=T.data,A=T._c,k=Bn(A)?N:A;if(O&&(c=Oi(c)?c(k,N):c,b({data:c,_c:k})),Oi($))try{$=$(k)}catch(j){E=j,R=!0}if($&&VU($))if($=await $.catch(j=>{E=j,R=!0}),I!==S[g][0]){if(R)throw E;return $}else R&&O&&u(E)&&(i=!0,b({data:k,_c:fa}));if(i&&!R)if(Oi(i)){const j=i($,k);b({data:j,error:fa,_c:fa})}else b({data:$,error:fa,_c:fa});if(S[g][1]=II(),Promise.resolve(w()).then(()=>{b({_c:fa})}),R){if(d)throw E;return}return $}}const NF=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},qU=(e,t)=>{if(!Fl.has(e)){const n=Kl(X4e,t),r=Object.create(null),a=KU.bind(fa,e);let o=Dl;const i=Object.create(null),l=(d,f)=>{const m=i[d]||[];return i[d]=m,m.push(f),()=>{const g=m.indexOf(f);g>=0&&(m[g]=m[m.length-1],m.pop())}},c=(d,f,m)=>{e.set(d,f);const g=i[d];if(g)for(const h of g)h(f,m)},u=()=>{if(!Fl.has(e)&&(Fl.set(e,[r,Object.create(null),Object.create(null),Object.create(null),a,c,l]),!Od)){const d=n.initFocus(setTimeout.bind(fa,NF.bind(fa,r,BU))),f=n.initReconnect(setTimeout.bind(fa,NF.bind(fa,r,zU)));o=()=>{d&&d(),f&&f(),Fl.delete(e)}}};return u(),[e,a,u,o]}return[e,Fl.get(e)[4]]},t3e=(e,t,n,r,a)=>{const o=n.errorRetryCount,i=a.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!Bn(o)&&i>o||setTimeout(r,l,a)},n3e=xI,[f3,r3e]=qU(new Map),UU=Kl({onLoadingSlow:Dl,onSuccess:Dl,onError:Dl,onErrorRetry:t3e,onDiscarded:Dl,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:TF?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:TF?5e3:3e3,compare:n3e,isPaused:()=>!1,cache:f3,mutate:r3e,fallback:{}},Y4e),GU=(e,t)=>{const n=Kl(e,t);if(t){const{use:r,fallback:a}=e,{use:o,fallback:i}=t;r&&o&&(n.use=r.concat(o)),a&&i&&(n.fallback=Kl(a,i))}return n},RI=s.createContext({}),a3e=e=>{const{value:t}=e,n=s.useContext(RI),r=Oi(t),a=s.useMemo(()=>r?t(n):t,[r,n,t]),o=s.useMemo(()=>r?a:GU(n,a),[r,n,a]),i=a&&a.provider,l=s.useRef(fa);i&&!l.current&&(l.current=qU(i(o.cache||f3),a));const c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),eb(()=>{if(c)return c[2]&&c[2](),c[3]},[]),s.createElement(RI.Provider,Kl(e,{value:o}))},o3e="$inf$",YU=kg&&window.__SWR_DEVTOOLS_USE__,i3e=YU?window.__SWR_DEVTOOLS_USE__:[],l3e=()=>{YU&&(window.__SWR_DEVTOOLS_REACT__=ee)},s3e=e=>Oi(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],v3=()=>{const e=s.useContext(RI);return s.useMemo(()=>Kl(UU,e),[e])},c3e=e=>(t,n,r)=>e(t,n&&((...o)=>{const[i]=d3(t),[,,,l]=Fl.get(f3);if(i.startsWith(o3e))return n(...o);const c=l[i];return Bn(c)?n(...o):(delete l[i],c)}),r),u3e=i3e.concat(c3e),d3e=e=>function(...n){const r=v3(),[a,o,i]=s3e(n),l=GU(r,i);let c=e;const{use:u}=l,d=(u||[]).concat(u3e);for(let f=d.length;f--;)c=d[f](c);return c(a,o||l.fetcher||null,l)},f3e=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const a=r.indexOf(n);a>=0&&(r[a]=r[r.length-1],r.pop())}};l3e();const cw=ee.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),uw={dedupe:!0},oy=Promise.resolve(fa);oy.status="fulfilled";oy.value=fa;const v3e=()=>Dl,m3e=(e,t,n)=>{const{cache:r,compare:a,suspense:o,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:m,strictServerPrefetchWarning:g}=n,[h,b,p,S]=Fl.get(r),[C,x]=d3(e),w=s.useRef(!1),$=s.useRef(!1),E=s.useRef(C),R=s.useRef(t),I=s.useRef(n),O=()=>I.current,T=()=>O().isVisible()&&O().isOnline(),[N,A,k,j]=WU(r,C),D=s.useRef({}).current,F=Bn(i)?Bn(n.fallback)?fa:n.fallback[C]:i,L=(se,ve)=>{for(const he in D){const Ce=he;if(Ce==="data"){if(!a(se[Ce],ve[Ce])&&(!Bn(se[Ce])||!a(J,ve[Ce])))return!1}else if(ve[Ce]!==se[Ce])return!1}return!0},B=!w.current,K=s.useMemo(()=>{const se=N(),ve=j(),he=ge=>{const ye=Kl(ge);return delete ye._k,(()=>{if(!C||!t||O().isPaused())return!1;if(B&&!Bn(l))return l;const $e=Bn(F)?ye.data:F;return Bn($e)||c})()?{isValidating:!0,isLoading:!0,...ye}:ye},Ce=he(se),pe=se===ve?Ce:he(ve);let Se=Ce;return[()=>{const ge=he(N());return L(ge,Se)?(Se.data=ge.data,Se.isLoading=ge.isLoading,Se.isValidating=ge.isValidating,Se.error=ge.error,Se):(Se=ge,ge)},()=>pe]},[r,C]),W=OF.useSyncExternalStore(s.useCallback(se=>k(C,(ve,he)=>{L(he,ve)||se()}),[r,C]),K[0],K[1]),V=h[C]&&h[C].length>0,q=W.data,U=Bn(q)?F&&VU(F)?cw(F):F:q,G=W.error,Y=s.useRef(U),J=m?Bn(q)?Bn(Y.current)?U:Y.current:q:U,Q=C&&Bn(U),Z=s.useRef(null);!Od&&OF.useSyncExternalStore(v3e,()=>(Z.current=!1,Z),()=>(Z.current=!0,Z));const ne=Z.current;g&&ne&&!o&&Q&&console.warn(`Missing pre-initiated data for serialized key "${C}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const ae=!C||!t||O().isPaused()||V&&!Bn(G)?!1:B&&!Bn(l)?l:o?Bn(U)?!1:c:Bn(U)||c,le=B&&ae,re=Bn(W.isValidating)?le:W.isValidating,fe=Bn(W.isLoading)?le:W.isLoading,ue=s.useCallback(async se=>{const ve=R.current;if(!C||!ve||$.current||O().isPaused())return!1;let he,Ce,pe=!0;const Se=se||{},ge=!p[C]||!Se.dedupe,ye=()=>MF?!$.current&&C===E.current&&w.current:C===E.current,xe={isValidating:!1,isLoading:!1},$e=()=>{A(xe)},He=()=>{const Re=p[C];Re&&Re[1]===Ce&&delete p[C]},Te={isValidating:!0};Bn(N().data)&&(Te.isLoading=!0);try{if(ge&&(A(Te),n.loadingTimeout&&Bn(N().data)&&setTimeout(()=>{pe&&ye()&&O().onLoadingSlow(C,n)},n.loadingTimeout),p[C]=[ve(x),II()]),[he,Ce]=p[C],he=await he,ge&&setTimeout(He,n.dedupingInterval),!p[C]||p[C][1]!==Ce)return ge&&ye()&&O().onDiscarded(C),!1;xe.error=fa;const Re=b[C];if(!Bn(Re)&&(Ce<=Re[0]||Ce<=Re[1]||Re[1]===0))return $e(),ge&&ye()&&O().onDiscarded(C),!1;const Fe=N().data;xe.data=a(Fe,he)?Fe:he,ge&&ye()&&O().onSuccess(he,C,n)}catch(Re){He();const Fe=O(),{shouldRetryOnError:je}=Fe;Fe.isPaused()||(xe.error=Re,ge&&ye()&&(Fe.onError(Re,C,Fe),(je===!0||Oi(je)&&je(Re))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||T())&&Fe.onErrorRetry(Re,C,Fe,Ee=>{const Le=h[C];Le&&Le[0]&&Le[0](IF,Ee)},{retryCount:(Se.retryCount||0)+1,dedupe:!0})))}return pe=!1,$e(),!0},[C,r]),de=s.useCallback((...se)=>KU(r,E.current,...se),[]);if(eb(()=>{R.current=t,I.current=n,Bn(q)||(Y.current=q)}),eb(()=>{if(!C)return;const se=ue.bind(fa,uw);let ve=0;O().revalidateOnFocus&&(ve=Date.now()+O().focusThrottleInterval);const Ce=f3e(C,h,(pe,Se={})=>{if(pe==BU){const ge=Date.now();O().revalidateOnFocus&&ge>ve&&T()&&(ve=ge+O().focusThrottleInterval,se())}else if(pe==zU)O().revalidateOnReconnect&&T()&&se();else{if(pe==HU)return ue();if(pe==IF)return ue(Se)}});return $.current=!1,E.current=C,w.current=!0,A({_k:x}),ae&&(p[C]||(Bn(U)||Od?se():Q4e(se))),()=>{$.current=!0,Ce()}},[C]),eb(()=>{let se;function ve(){const Ce=Oi(u)?u(N().data):u;Ce&&se!==-1&&(se=setTimeout(he,Ce))}function he(){!N().error&&(d||O().isVisible())&&(f||O().isOnline())?ue(uw).then(ve):ve()}return ve(),()=>{se&&(clearTimeout(se),se=-1)}},[u,d,f,C]),s.useDebugValue(J),o){if(!MF&&Od&&Q)throw new Error("Fallback data is required when using Suspense in SSR.");Q&&(R.current=t,I.current=n,$.current=!1);const se=S[C],ve=!Bn(se)&&Q?de(se):oy;if(cw(ve),!Bn(G)&&Q)throw G;const he=Q?ue(uw):oy;!Bn(J)&&Q&&(he.status="fulfilled",he.value=!0),cw(he)}return{mutate:de,get data(){return D.data=!0,J},get error(){return D.error=!0,G},get isValidating(){return D.isValidating=!0,re},get isLoading(){return D.isLoading=!0,fe}}},g3e=ay.defineProperty(a3e,"defaultValue",{value:UU}),m3=d3e(m3e),p3e={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},h3e={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},b3e={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Hledat",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybráno",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Nefixováno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončit celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"Přidat řádek"}},switch:{open:"Otevřít",close:"Zavřít"}},y3e={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},C3e={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},S3e={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},x3e={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},w3e={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},$3e={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},E3e={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},P3e={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},O3e={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},I3e={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},R3e={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},M3e={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},T3e={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},N3e={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},_3e={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},j3e={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},F3e={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},D3e={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},k3e={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},A3e={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},L3e={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},B3e={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}},z3e={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},H3e={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},V3e={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},W3e={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},K3e={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},q3e={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},U3e={moneySymbol:"HK$",deleteThisLine:"刪除此項",copyThisLine:"複製此項",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"搜尋",reset:"重設",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選取",selected:"已選取",item:"項"},pagination:{total:{range:"第",total:"項/總共",item:"項"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重設",columnDisplay:"列顯示",columnSetting:"列設定",fullScreen:"全螢幕",exitFullScreen:"退出全螢幕",reload:"重新整理",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}},G3e={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}};var Yn=function(t,n){return{getMessage:function(a,o){var i=Un(n,a.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(i)return i;var l=t.replace("_","-");if(l==="zh-CN")return o;var c=ru["zh-CN"];return c?c.getMessage(a,o):o},locale:t}},Y3e=Yn("mn_MN",T3e),X3e=Yn("ar_EG",p3e),Id=Yn("zh_CN",q3e),Q3e=Yn("en_US",S3e),J3e=Yn("en_GB",C3e),Z3e=Yn("vi_VN",K3e),eMe=Yn("it_IT",I3e),tMe=Yn("ja_JP",R3e),nMe=Yn("es_ES",x3e),rMe=Yn("ca_ES",h3e),aMe=Yn("ru_RU",k3e),oMe=Yn("sr_RS",L3e),iMe=Yn("ms_MY",N3e),lMe=Yn("zh_TW",G3e),sMe=Yn("zh_HK",U3e),cMe=Yn("fr_FR",$3e),uMe=Yn("pt_BR",F3e),dMe=Yn("ko_KR",M3e),fMe=Yn("id_ID",O3e),vMe=Yn("de_DE",y3e),mMe=Yn("fa_IR",w3e),gMe=Yn("tr_TR",H3e),pMe=Yn("pl_PL",j3e),hMe=Yn("hr_",P3e),bMe=Yn("th_TH",z3e),yMe=Yn("cs_cz",b3e),CMe=Yn("sk_SK",A3e),SMe=Yn("he_IL",E3e),xMe=Yn("uk_UA",V3e),wMe=Yn("uz_UZ",W3e),$Me=Yn("nl_NL",_3e),EMe=Yn("ro_RO",D3e),PMe=Yn("sv_SE",B3e),ru={"mn-MN":Y3e,"ar-EG":X3e,"zh-CN":Id,"en-US":Q3e,"en-GB":J3e,"vi-VN":Z3e,"it-IT":eMe,"ja-JP":tMe,"es-ES":nMe,"ca-ES":rMe,"ru-RU":aMe,"sr-RS":oMe,"ms-MY":iMe,"zh-TW":lMe,"zh-HK":sMe,"fr-FR":cMe,"pt-BR":uMe,"ko-KR":dMe,"id-ID":fMe,"de-DE":vMe,"fa-IR":mMe,"tr-TR":gMe,"pl-PL":pMe,"hr-HR":hMe,"th-TH":bMe,"cs-CZ":yMe,"sk-SK":CMe,"he-IL":SMe,"uk-UA":xMe,"uz-UZ":wMe,"nl-NL":$Me,"ro-RO":EMe,"sv-SE":PMe},OMe=Object.keys(ru),XU=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return OMe.find(function(r){var a=r.toLocaleLowerCase();return a.includes(n)})};function wa(e,t){IMe(e)&&(e="100%");var n=RMe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function p0(e){return Math.min(1,Math.max(0,e))}function IMe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function RMe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function QU(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function h0(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Nc(e){return e.length===1?"0"+e:String(e)}function MMe(e,t,n){return{r:wa(e,255)*255,g:wa(t,255)*255,b:wa(n,255)*255}}function _F(e,t,n){e=wa(e,255),t=wa(t,255),n=wa(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,l=(r+a)/2;if(r===a)i=0,o=0;else{var c=r-a;switch(i=l>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function TMe(e,t,n){var r,a,o;if(e=wa(e,360),t=wa(t,100),n=wa(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=dw(l,i,e+1/3),a=dw(l,i,e),o=dw(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function jF(e,t,n){e=wa(e,255),t=wa(t,255),n=wa(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,l=r-a,c=r===0?0:l/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var MI={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function DMe(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,l=!1;return typeof e=="string"&&(e=LMe(e)),typeof e=="object"&&(El(e.r)&&El(e.g)&&El(e.b)?(t=MMe(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):El(e.h)&&El(e.s)&&El(e.v)?(r=h0(e.s),a=h0(e.v),t=NMe(e.h,r,a),i=!0,l="hsv"):El(e.h)&&El(e.s)&&El(e.l)&&(r=h0(e.s),o=h0(e.l),t=TMe(e.h,r,o),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=QU(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var kMe="[-\\+]?\\d+%?",AMe="[-\\+]?\\d*\\.\\d+%?",Bs="(?:".concat(AMe,")|(?:").concat(kMe,")"),fw="[\\s|\\(]+(".concat(Bs,")[,|\\s]+(").concat(Bs,")[,|\\s]+(").concat(Bs,")\\s*\\)?"),vw="[\\s|\\(]+(".concat(Bs,")[,|\\s]+(").concat(Bs,")[,|\\s]+(").concat(Bs,")[,|\\s]+(").concat(Bs,")\\s*\\)?"),yi={CSS_UNIT:new RegExp(Bs),rgb:new RegExp("rgb"+fw),rgba:new RegExp("rgba"+vw),hsl:new RegExp("hsl"+fw),hsla:new RegExp("hsla"+vw),hsv:new RegExp("hsv"+fw),hsva:new RegExp("hsva"+vw),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function LMe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(MI[e])e=MI[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=yi.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=yi.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=yi.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=yi.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=yi.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=yi.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=yi.hex8.exec(e),n?{r:Eo(n[1]),g:Eo(n[2]),b:Eo(n[3]),a:DF(n[4]),format:t?"name":"hex8"}:(n=yi.hex6.exec(e),n?{r:Eo(n[1]),g:Eo(n[2]),b:Eo(n[3]),format:t?"name":"hex"}:(n=yi.hex4.exec(e),n?{r:Eo(n[1]+n[1]),g:Eo(n[2]+n[2]),b:Eo(n[3]+n[3]),a:DF(n[4]+n[4]),format:t?"name":"hex8"}:(n=yi.hex3.exec(e),n?{r:Eo(n[1]+n[1]),g:Eo(n[2]+n[2]),b:Eo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function El(e){return!!yi.CSS_UNIT.exec(String(e))}var BMe=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=FMe(t)),this.originalInput=t;var a=DMe(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=QU(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=jF(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=jF(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=_F(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=_F(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),FF(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),_Me(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(wa(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(wa(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+FF(this.r,this.g,this.b,!1),n=0,r=Object.entries(MI);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=p0(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=p0(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=p0(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=p0(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,a=1103547991^n,o=0,i;o>>16,2246822507)^Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&a)+(r>>>0)},g3=Pm(function(e){return e}),ZU={theme:g3,token:P(P({},Wm),Ei==null||(mw=Ei.defaultAlgorithm)===null||mw===void 0?void 0:mw.call(Ei,Ei==null?void 0:Ei.defaultSeed)),hashId:"pro-".concat(JU(JSON.stringify(Wm)))},zMe=function(){return ZU};const HMe=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:Wm,emptyTheme:g3,hashCode:JU,token:ZU,useToken:zMe},Symbol.toStringTag,{value:"Module"}));var ao=function(t,n){return new BMe(t).setAlpha(n).toRgbString()},VMe=function(){return typeof Ei>"u"||!Ei?HMe:Ei},co=VMe(),Rd=co.useToken,Al=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}},gw=function(t){return{color:t.colorLink,outline:"none",cursor:"pointer",transition:"color ".concat(t.motionDurationSlow),"&:focus, &:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive}}};function $n(e,t){var n,r=s.useContext(Wr),a=r.token,o=a===void 0?{}:a,i=s.useContext(Wr),l=i.hashed,c=Rd(),u=c.token,d=c.hashId,f=s.useContext(Wr);f.theme;var m=s.useContext(Mt.ConfigContext),g=m.getPrefixCls,h=m.csp;return o.layout||(o=P({},u)),o.proComponentsCls=(n=o.proComponentsCls)!==null&&n!==void 0?n:".".concat(g("pro")),o.antCls=".".concat(g()),{wrapSSR:fb({token:o,path:[e],nonce:h==null?void 0:h.nonce,layer:{name:"antd-pro"}},function(){return t(o)}),hashId:l?d:""}}var WMe=function(t,n){var r,a,o,i,l,c=P({},t);return P(P({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:c==null||(r=c.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:ao(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},c),{},{header:P({colorBgHeader:ao(n.colorBgElevated,.6),colorBgScrollHeader:ao(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:ao(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(c==null||(a=c.header)===null||a===void 0?void 0:a.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(o=c.header)===null||o===void 0?void 0:o.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:ao(n.colorTextBase,.95),colorBgRightActionsItemHover:ao(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},c.header),sider:P({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:ao(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:ao(n.colorTextBase,.06),colorBgMenuItemHover:ao(n.colorTextBase,.03),colorBgMenuItemSelected:ao(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:ao(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:ao(n.colorTextBase,.95)},c.sider),pageContainer:P({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((i=c.pageContainer)===null||i===void 0?void 0:i.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((l=c.pageContainer)===null||l===void 0?void 0:l.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},c.pageContainer)})},KMe=function(){for(var t={},n=arguments.length,r=new Array(n),a=0;a1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(A6e(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){iy(e,t+1)},r.onerror=function(){iy(e,t+1)}),aG.add(n),document.body.appendChild(r)}}function oG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?iy(t.reverse()):iy([t]));var a=s.forwardRef(function(o,i){var l=o.type,c=o.children,u=Ue(o,k6e),d=null;return o.type&&(d=s.createElement("use",{xlinkHref:"#".concat(l)})),c&&(d=c),s.createElement(rG,Me({},r,u,{ref:i}),d)});return a.displayName="Iconfont",a}var L6e=function(t){return z({},t.componentCls,z(z(z(z(z(z(z(z({display:"inline-flex",gap:t.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:t.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:t.colorBgTextHover},"&-active":z({paddingBlock:0,paddingInline:8,backgroundColor:t.colorBgTextHover},"&".concat(t.componentCls,"-allow-clear:hover:not(").concat(t.componentCls,"-disabled)"),z(z({},"".concat(t.componentCls,"-arrow"),{display:"none"}),"".concat(t.componentCls,"-close"),{display:"inline-flex"}))},"".concat(t.antCls,"-select"),z({},"".concat(t.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(t.antCls,"-picker"),z({},"".concat(t.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",z(z({color:t.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(t.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:t.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:t.colorIconHover})),"&-disabled",z({color:t.colorTextPlaceholder,cursor:"not-allowed"},"".concat(t.componentCls,"-icon"),{color:t.colorTextPlaceholder})),"&-small",z(z(z({height:"24px",paddingBlock:0,paddingInline:4,fontSize:t.fontSizeSM,lineHeight:"24px"},"&".concat(t.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(t.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(t.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(t.lineWidth,"px solid ").concat(t.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:t.colorBgContainer}))};function B6e(e){return $n("FieldLabel",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[L6e(n)]})}var z6e=function(t,n){var r,a,o,i=t.label,l=t.onClear,c=t.value,u=t.disabled,d=t.onLabelClick,f=t.ellipsis,m=t.placeholder,g=t.className,h=t.formatter,b=t.bordered,p=t.style,S=t.downIcon,C=t.allowClear,x=C===void 0?!0:C,w=t.valueMaxLength,$=w===void 0?41:w,E=(Mt==null||(r=Mt.useConfig)===null||r===void 0?void 0:r.call(Mt))||{componentSize:"middle"},R=E.componentSize,I=R,O=s.useContext(Mt.ConfigContext),T=O.getPrefixCls,N=T("pro-core-field-label"),A=B6e(N),k=A.wrapSSR,j=A.hashId,D=kn(),F=s.useRef(null),L=s.useRef(null);s.useImperativeHandle(n,function(){return{labelRef:L,clearRef:F}});var B=function(q){return q.every(function(U){return typeof U=="string"})?q.join(","):q.map(function(U,G){var Y=G===q.length-1?"":",";return typeof U=="string"?_.jsxs("span",{children:[U,Y]},G):_.jsxs("span",{style:{display:"flex"},children:[U,Y]},G)})},K=function(q){return h?h(q):Array.isArray(q)?B(q):q},W=function(q,U){if(U!=null&&U!==""&&(!Array.isArray(U)||U.length)){var G,Y,J=q?_.jsxs("span",{onClick:function(){d==null||d()},className:"".concat(N,"-text"),children:[q,": "]}):"",Q=K(U);if(!f)return _.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[J,K(U)]});var Z=function(){var le=Array.isArray(U)&&U.length>1,re=D.getMessage("form.lightFilter.itemUnit","项");return typeof Q=="string"&&Q.length>$&&le?"...".concat(U.length).concat(re):""},ne=Z();return _.jsxs("span",{title:typeof Q=="string"?Q:void 0,style:{display:"inline-flex",alignItems:"center"},children:[J,_.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof Q=="string"?Q==null||(G=Q.toString())===null||G===void 0||(Y=G.slice)===null||Y===void 0?void 0:Y.call(G,0,$):Q}),ne]})}return q||m};return k(_.jsxs("span",{className:oe(N,j,"".concat(N,"-").concat((a=(o=t.size)!==null&&o!==void 0?o:I)!==null&&a!==void 0?a:"middle"),z(z(z(z({},"".concat(N,"-active"),(Array.isArray(c)?c.length>0:!!c)||c===0),"".concat(N,"-disabled"),u),"".concat(N,"-bordered"),b),"".concat(N,"-allow-clear"),x),g),style:p,ref:L,onClick:function(){var q;t==null||(q=t.onClick)===null||q===void 0||q.call(t)},children:[W(i,c),(c||c===0)&&x&&_.jsx(ul,{role:"button",title:D.getMessage("form.lightFilter.clear","清除"),className:oe("".concat(N,"-icon"),j,"".concat(N,"-close")),onClick:function(q){u||l==null||l(),q.stopPropagation()},ref:F}),S!==!1?S??_.jsx(Ys,{className:oe("".concat(N,"-icon"),j,"".concat(N,"-arrow"))}):null]}))},fl=ee.forwardRef(z6e),jr=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},H6e=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,AF=function(t){return t==="*"||t==="x"||t==="X"},LF=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},V6e=function(t,n){return it(t)!==it(n)?[String(t),String(n)]:[t,n]},W6e=function(t,n){if(AF(t)||AF(n))return 0;var r=V6e(LF(t),LF(n)),a=ce(r,2),o=a[0],i=a[1];return o>i?1:o"u"?uo:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||uo},bu=function(t,n){var r=vl(p3(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return jr(r)},q6e=function(t){return z(z(z({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function U6e(e){return $n("FilterDropdown",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[q6e(n)]})}var iG=function(t){var n=t.children,r=t.label,a=t.footer,o=t.open,i=t.onOpenChange,l=t.disabled,c=t.onVisibleChange,u=t.visible,d=t.footerRender,f=t.placement,m=s.useContext(Mt.ConfigContext),g=m.getPrefixCls,h=g("pro-core-field-dropdown"),b=U6e(h),p=b.wrapSSR,S=b.hashId,C=bu(o||u||!1,i||c),x=s.useRef(null);return p(_.jsx(Bi,P(P({placement:f,trigger:["click"]},C),{},{styles:{body:{padding:0}},content:_.jsxs("div",{ref:x,className:oe("".concat(h,"-overlay"),z(z({},"".concat(h,"-overlay-").concat(f),f),"hashId",S)),children:[_.jsx(Mt,{getPopupContainer:function(){return x.current||document.body},children:_.jsx("div",{className:"".concat(h,"-content ").concat(S).trim(),children:n})}),a&&_.jsx(t6e,P({disabled:l,footerRender:d},a))]}),children:_.jsx("span",{className:"".concat(h,"-label ").concat(S).trim(),children:r})})))},G6e=function(t){var n="".concat(t.antCls,"-progress-bg");return z({},t.componentCls,{"&-multiple":{paddingBlockStart:6,paddingBlockEnd:12,paddingInline:8},"&-progress":{"&-success":z({},n,{backgroundColor:t.colorSuccess}),"&-error":z({},n,{backgroundColor:t.colorError}),"&-warning":z({},n,{backgroundColor:t.colorWarning})},"&-rule":{display:"flex",alignItems:"center","&-icon":{"&-default":{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"22px","&-circle":{width:"6px",height:"6px",backgroundColor:t.colorTextSecondary,borderRadius:"4px"}},"&-loading":{color:t.colorPrimary},"&-error":{color:t.colorError},"&-success":{color:t.colorSuccess}},"&-text":{color:t.colorText}}})};function Y6e(e){return $n("InlineErrorFormItem",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[G6e(n)]})}var X6e=["rules","name","children","popoverProps"],Q6e=["errorType","rules","name","popoverProps","children"],lG={marginBlockStart:-5,marginBlockEnd:-5,marginInlineStart:0,marginInlineEnd:0},J6e=function(t){var n=t.inputProps,r=t.input,a=t.extra,o=t.errorList,i=t.popoverProps,l=s.useState(!1),c=ce(l,2),u=c[0],d=c[1],f=s.useState([]),m=ce(f,2),g=m[0],h=m[1],b=s.useContext(Mt.ConfigContext),p=b.getPrefixCls,S=p(),C=Rd(),x=Y6e("".concat(S,"-form-item-with-help")),w=x.wrapSSR,$=x.hashId;s.useEffect(function(){n.validateStatus!=="validating"&&h(n.errors)},[n.errors,n.validateStatus]);var E=bu(g.length<1?!1:u,function(I){I!==u&&d(I)}),R=n.validateStatus==="validating";return _.jsx(Bi,P(P(P({trigger:(i==null?void 0:i.trigger)||["click"],placement:(i==null?void 0:i.placement)||"topLeft"},E),{},{getPopupContainer:i==null?void 0:i.getPopupContainer,getTooltipContainer:i==null?void 0:i.getTooltipContainer,content:w(_.jsx("div",{className:"".concat(S,"-form-item ").concat($," ").concat(C.hashId).trim(),style:{margin:0,padding:0},children:_.jsxs("div",{className:"".concat(S,"-form-item-with-help ").concat($," ").concat(C.hashId).trim(),children:[R?_.jsx(Ya,{}):null,o]})}))},i),{},{children:_.jsxs(_.Fragment,{children:[r,a]})}),"popover")},Z6e=function(t){var n=t.rules,r=t.name,a=t.children,o=t.popoverProps,i=Ue(t,X6e);return _.jsx(Fn.Item,P(P({name:r,rules:n,hasFeedback:!1,shouldUpdate:function(c,u){if(c===u)return!1;var d=[r].flat(1);d.length>1&&d.pop();try{return JSON.stringify(Un(c,d))!==JSON.stringify(Un(u,d))}catch{return!0}},_internalItemRender:{mark:"pro_table_render",render:function(c,u){return _.jsx(J6e,P({inputProps:c,popoverProps:o},u))}}},i),{},{style:P(P({},lG),i==null?void 0:i.style),children:a}))},eTe=function(t){var n=t.errorType,r=t.rules,a=t.name,o=t.popoverProps,i=t.children,l=Ue(t,Q6e);return a&&r!==null&&r!==void 0&&r.length&&n==="popover"?_.jsx(Z6e,P(P({name:a,rules:r,popoverProps:o},l),{},{children:i})):_.jsx(Fn.Item,P(P({rules:r,shouldUpdate:a?function(c,u){if(c===u)return!1;var d=[a].flat(1);d.length>1&&d.pop();try{return JSON.stringify(Un(c,d))!==JSON.stringify(Un(u,d))}catch{return!0}}:void 0},l),{},{style:P(P({},lG),l.style),name:a,children:i}))},tTe=function(t){return z({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function nTe(e){return $n("LabelIconTip",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[tTe(n)]})}var au=ee.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,a=e.subTitle,o=s.useContext(Mt.ConfigContext),i=o.getPrefixCls,l=i("pro-core-label-tip"),c=nTe(l),u=c.wrapSSR,d=c.hashId;if(!n&&!a)return _.jsx(_.Fragment,{children:t});var f=typeof n=="string"||ee.isValidElement(n)?{title:n}:n,m=(f==null?void 0:f.icon)||_.jsx(w6e,{});return u(_.jsxs("div",{className:oe(l,d),onMouseDown:function(h){return h.stopPropagation()},onMouseLeave:function(h){return h.stopPropagation()},onMouseMove:function(h){return h.stopPropagation()},children:[_.jsx("div",{className:oe("".concat(l,"-title"),d,z({},"".concat(l,"-title-ellipsis"),r)),children:t}),a&&_.jsx("div",{className:"".concat(l,"-subtitle ").concat(d).trim(),children:a}),n&&_.jsx(Kn,P(P({},f),{},{children:_.jsx("span",{className:"".concat(l,"-icon ").concat(d).trim(),children:m})}))]}))}),Lg=ee.createContext({}),nb={exports:{}},rTe=nb.exports,zF;function aTe(){return zF||(zF=1,(function(e,t){(function(n,r){e.exports=r()})(rTe,(function(){var n="month",r="quarter";return function(a,o){var i=o.prototype;i.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=i.add;i.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):l.bind(this)(u,d)};var c=i.startOf;i.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;if(f.p(u)===r){var g=this.quarter()-1;return m?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}}))})(nb)),nb.exports}var oTe=aTe();const iTe=an(oTe);var Zs=function(t){return t==null};In.extend(iTe);var sG={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function HF(e){return Object.prototype.toString.call(e)==="[object Object]"}function lTe(e){if(HF(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(HF(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var TI=function(t){return!!(t!=null&&t._isAMomentObject)},VF=function(t,n,r){if(!n)return t;if(In.isDayjs(t)||TI(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(sG[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},sTe=function e(t,n,r,a,o){var i={};return typeof window>"u"||it(t)!=="object"||Zs(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(l){var c=o?[o,l].flat(1):[l],u=Un(r,c)||"text",d="text",f;typeof u=="string"?d=u:(d=u.valueType,f=u.dateFormat);var m=t[l];if(!(Zs(m)&&a)){if(lTe(m)&&!Array.isArray(m)&&!In.isDayjs(m)&&!TI(m)){i[l]=e(m,n,r,a,c);return}if(Array.isArray(m)){i[l]=m.map(function(g,h){return In.isDayjs(g)||TI(g)?VF(g,f||n,d):e(g,n,r,a,[l,"".concat(h)].flat(1))});return}i[l]=VF(m,f||n,d)}}),i)},WF=function(t,n){return typeof n=="function"?n(In(t)):In(t).format(n)},cG=function(t,n){var r=Array.isArray(t)?t:[],a=ce(r,2),o=a[0],i=a[1],l,c;Array.isArray(n)?(l=n[0],c=n[1]):it(n)==="object"&&n.type==="mask"?(l=n.format,c=n.format):(l=n,c=n);var u=o?WF(o,l):"",d=i?WF(i,c):"",f=u&&d?"".concat(u," ~ ").concat(d):"";return f},cTe=function(t){var n;return!!(t!=null&&(n=t.valueType)!==null&&n!==void 0&&n.toString().startsWith("date")||(t==null?void 0:t.valueType)==="select"||t!=null&&t.valueEnum)},uTe=function(t){var n;return((n=t.ellipsis)===null||n===void 0?void 0:n.showTitle)===!1?!1:t.ellipsis},dTe=function(t,n,r){if(n.copyable||n.ellipsis){var a=n.copyable&&r?{text:r,tooltips:["",""]}:void 0,o=cTe(n),i=uTe(n)&&r?{tooltip:(n==null?void 0:n.tooltip)!==!1&&o?_.jsx("div",{className:"pro-table-tooltip-text",children:t}):r}:!1;return _.jsx(On.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:a,ellipsis:i,children:t})}return t};function La(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1?{menu:t}:{overlay:_.jsx(Yl,P({},t))};return jr(n)},zn=function(t){var n=s.useRef(null);return n.current=t,s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=s.useState(e),a=ce(r,2),o=a[0],i=a[1],l=h3(e);return s.useEffect(function(){var c=setTimeout(function(){i(l.current)},t);return function(){return clearTimeout(c)}},n?[t].concat(ke(n)):void 0),o}function Ll(e,t,n,r){if(e===t)return!0;if(e&&t&&it(e)==="object"&&it(t)==="object"){if(e.constructor!==t.constructor)return!1;var a,o,i;if(Array.isArray(e)){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!Ll(e[o],t[o],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var l=Q0(e.entries()),c;try{for(l.s();!(c=l.n()).done;)if(o=c.value,!t.has(o[0]))return!1}catch(h){l.e(h)}finally{l.f()}var u=Q0(e.entries()),d;try{for(u.s();!(d=u.n()).done;)if(o=d.value,!Ll(o[1],t.get(o[0]),n,r))return!1}catch(h){u.e(h)}finally{u.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=Q0(e.entries()),m;try{for(f.s();!(m=f.n()).done;)if(o=m.value,!t.has(o[0]))return!1}catch(h){f.e(h)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(i=Object.keys(e),a=i.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=a;o--!==0;){var g=i[o];if(!(n!=null&&n.includes(g))&&!(g==="_owner"&&e.$$typeof)&&!Ll(e[g],t[g],n,r))return!1}return!0}return e!==e&&t!==t}var vTe=function(t,n,r){return Ll(t,n,r)};function b3(e,t){var n=s.useRef();return vTe(e,n.current,t)||(n.current=e),n.current}function ly(e,t,n){s.useEffect(e,b3(t||[],n))}function fG(e,t,n,r){var a=k1(mn(ht().mark(function o(){return ht().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:e();case 1:case"end":return l.stop()}},o)})),r||16);s.useEffect(function(){a.run()},b3(t||[],n))}function _a(e,t){return ee.useMemo(e,b3(t))}var mTe=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,yu=function(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!mTe};function gTe(e,t){var n=typeof e.pageName=="string"?e.title:t;s.useEffect(function(){yu()&&n&&(document.title=n)},[e.title,n])}var pw=0;function pTe(e){var t=s.useRef(null),n=s.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(pw+=1,pw.toString())}),r=ce(n,1),a=r[0],o=s.useRef(a),i=(function(){var d=mn(ht().mark(function f(){var m,g,h,b;return ht().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return(m=t.current)===null||m===void 0||m.abort(),h=new AbortController,t.current=h,S.next=5,Promise.race([(g=e.request)===null||g===void 0?void 0:g.call(e,e.params,e),new Promise(function(C,x){var w;(w=t.current)===null||w===void 0||(w=w.signal)===null||w===void 0||w.addEventListener("abort",function(){x(new Error("aborted"))})})]);case 5:return b=S.sent,S.abrupt("return",b);case 7:case"end":return S.stop()}},f)}));return function(){return d.apply(this,arguments)}})();s.useEffect(function(){return function(){pw+=1}},[]);var l=m3([o.current,e.params],i,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),c=l.data,u=l.error;return[c||u]}var pm=function(t){var n=s.useRef();return s.useEffect(function(){n.current=t}),n.current};function hTe(){var e=s.useState(!0),t=ce(e,2),n=t[1],r=s.useCallback(function(){return n(function(a){return!a})},[]);return r}function bTe(e,t){var n=s.useMemo(function(){var r={current:t};return new Proxy(r,{set:function(o,i,l){return Object.is(o[i],l)||(o[i]=l,e(n)),!0}})},[]);return n}function yTe(e){var t=hTe(),n=bTe(t,e);return n}var CTe=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function STe(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var y3=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},A1=function(){for(var t={},n=arguments.length,r=new Array(n),a=0;a0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(KF+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var a=63&r[t];n+=a<36?a.toString(36):a<62?(a-26).toString(36).toUpperCase():a<63?"_":"-"}return n},Km=function(){return typeof window>"u"?qF():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():qF()},vG=function(t){if(t&&t!==!0)return t},xTe=function(t){var n={};return Object.keys(t||{}).forEach(function(r){var a;Array.isArray(t[r])&&((a=t[r])===null||a===void 0?void 0:a.length)===0||t[r]!==void 0&&(n[r]=t[r])}),n};In.extend(TV);var UF=function(t){return!!(t!=null&&t._isAMomentObject)},Bg=function e(t,n){return Zs(t)||In.isDayjs(t)||UF(t)?UF(t)?In(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?In(t):In(t,n)},wTe=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","validateDebounce","addonBefore","addonAfter","addonWarpStyle"];function $Te(e){var t={};return wTe.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var ETe="valueType request plain renderFormItem render text formItemProps valueEnum",PTe="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function mG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n="".concat(ETe," ").concat(PTe).split(/[\s\n]+/),r={};return Object.keys(e||{}).forEach(function(a){n.includes(a)&&!t||(r[a]=e[a])}),r}function OTe(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&it(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var ITe=function(t){var n=t.color,r=t.children;return _.jsx(Oo,{color:n,text:r})},Ql=function(t){return OTe(t)==="map"?t:new Map(Object.entries(t||{}))},RTe={Success:function(t){var n=t.children;return _.jsx(Oo,{status:"success",text:n})},Error:function(t){var n=t.children;return _.jsx(Oo,{status:"error",text:n})},Default:function(t){var n=t.children;return _.jsx(Oo,{status:"default",text:n})},Processing:function(t){var n=t.children;return _.jsx(Oo,{status:"processing",text:n})},Warning:function(t){var n=t.children;return _.jsx(Oo,{status:"warning",text:n})},success:function(t){var n=t.children;return _.jsx(Oo,{status:"success",text:n})},error:function(t){var n=t.children;return _.jsx(Oo,{status:"error",text:n})},default:function(t){var n=t.children;return _.jsx(Oo,{status:"default",text:n})},processing:function(t){var n=t.children;return _.jsx(Oo,{status:"processing",text:n})},warning:function(t){var n=t.children;return _.jsx(Oo,{status:"warning",text:n})}},Af=function e(t,n,r){if(Array.isArray(t))return _.jsx(Jn,{split:",",size:2,wrap:!0,children:t.map(function(u,d){return e(u,n,d)})},r);var a=Ql(n);if(!a.has(t)&&!a.has("".concat(t)))return(t==null?void 0:t.label)||t;var o=a.get(t)||a.get("".concat(t));if(!o)return _.jsx(ee.Fragment,{children:(t==null?void 0:t.label)||t},r);var i=o.status,l=o.color,c=RTe[i||"Init"];return c?_.jsx(c,{children:o.text},r):l?_.jsx(ITe,{color:l,children:o.text},r):_.jsx(ee.Fragment,{children:o.text||o},r)},b0={exports:{}},GF;function MTe(){return GF||(GF=1,(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=S();r.configure=S,r.stringify=r,r.default=r,t.stringify=r,t.configure=S,e.exports=r;const a=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(C){return C.length<5e3&&!a.test(C)?`"${C}"`:JSON.stringify(C)}function i(C,x){if(C.length>200||x)return C.sort(x);for(let w=1;w$;)C[E]=C[E-1],E--;C[E]=$}return C}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(C){return l.call(C)!==void 0&&C.length!==0}function u(C,x,w){C.length= 1`)}return w===void 0?1/0:w}function h(C){return C===1?"1 item":`${C} items`}function b(C){const x=new Set;for(const w of C)(typeof w=="string"||typeof w=="number")&&x.add(String(w));return x}function p(C){if(n.call(C,"strict")){const x=C.strict;if(typeof x!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(x)return w=>{let $=`Object can not safely be stringified. Received type ${typeof w}`;throw typeof w!="function"&&($+=` (${w.toString()})`),new Error($)}}}function S(C){C={...C};const x=p(C);x&&(C.bigint===void 0&&(C.bigint=!1),"circularValue"in C||(C.circularValue=Error));const w=d(C),$=m(C,"bigint"),E=f(C),R=typeof E=="function"?E:void 0,I=g(C,"maximumDepth"),O=g(C,"maximumBreadth");function T(D,F,L,B,K,W){let V=F[D];switch(typeof V=="object"&&V!==null&&typeof V.toJSON=="function"&&(V=V.toJSON(D)),V=B.call(F,D,V),typeof V){case"string":return o(V);case"object":{if(V===null)return"null";if(L.indexOf(V)!==-1)return w;let q="",U=",";const G=W;if(Array.isArray(V)){if(V.length===0)return"[]";if(I"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:l;return mw.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,mw}var VF;function m3e(){return VF||(VF=1,vw.exports=v3e()),vw.exports}var WF=m3e();const aG=0,oG=1,iG=2,KF=3;var qF=Object.prototype.hasOwnProperty;function jI(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&jI(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(qF.call(e,n)&&++r&&!qF.call(t,n)||!(n in t)||!jI(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Fl=new WeakMap,Dl=()=>{},va=Dl(),sy=Object,zn=e=>e===va,Ri=e=>typeof e=="function",Kl=(e,t)=>({...e,...t}),lG=e=>Ri(e.then),gw={},b0={},x3="undefined",kg=typeof window!=x3,FI=typeof document!=x3,g3e=kg&&"Deno"in window,p3e=()=>kg&&typeof window.requestAnimationFrame!=x3,sG=(e,t)=>{const n=Fl.get(e);return[()=>!zn(t)&&e.get(t)||gw,r=>{if(!zn(t)){const a=e.get(t);t in b0||(b0[t]=a),n[5](t,Kl(a,r),a||gw)}},n[6],()=>!zn(t)&&t in b0?b0[t]:!zn(t)&&e.get(t)||gw]};let DI=!0;const h3e=()=>DI,[kI,AI]=kg&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Dl,Dl],b3e=()=>{const e=FI&&document.visibilityState;return zn(e)||e!=="hidden"},y3e=e=>(FI&&document.addEventListener("visibilitychange",e),kI("focus",e),()=>{FI&&document.removeEventListener("visibilitychange",e),AI("focus",e)}),C3e=e=>{const t=()=>{DI=!0,e()},n=()=>{DI=!1};return kI("online",t),kI("offline",n),()=>{AI("online",t),AI("offline",n)}},S3e={isOnline:h3e,isVisible:b3e},x3e={initFocus:y3e,initReconnect:C3e},UF=!ee.useId,Rd=!kg||g3e,w3e=e=>p3e()?window.requestAnimationFrame(e):setTimeout(e,1),ab=Rd?s.useEffect:s.useLayoutEffect,pw=typeof navigator<"u"&&navigator.connection,GF=!Rd&&pw&&(["slow-2g","2g"].includes(pw.effectiveType)||pw.saveData),y0=new WeakMap,$3e=e=>sy.prototype.toString.call(e),hw=(e,t)=>e===`[object ${t}]`;let E3e=0;const LI=e=>{const t=typeof e,n=$3e(e),r=hw(n,"Date"),a=hw(n,"RegExp"),o=hw(n,"Object");let i,l;if(sy(e)===e&&!r&&!a){if(i=y0.get(e),i)return i;if(i=++E3e+"~",y0.set(e,i),Array.isArray(e)){for(i="@",l=0;l{if(Ri(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?LI(e):"",[e,t]};let P3e=0;const BI=()=>++P3e;async function cG(...e){const[t,n,r,a]=e,o=Kl({populateCache:!0,throwOnError:!0},typeof a=="boolean"?{revalidate:a}:a||{});let i=o.populateCache;const l=o.rollbackOnError;let c=o.optimisticData;const u=m=>typeof l=="function"?l(m):l!==!1,d=o.throwOnError;if(Ri(n)){const m=n,g=[],h=t.keys();for(const b of h)!/^\$(inf|sub)\$/.test(b)&&m(t.get(b)._k)&&g.push(b);return Promise.all(g.map(f))}return f(n);async function f(m){const[g]=w3(m);if(!g)return;const[h,b]=sG(t,g),[p,S,C,x]=Fl.get(t),w=()=>{const j=p[g];return(Ri(o.revalidate)?o.revalidate(h().data,m):o.revalidate!==!1)&&(delete C[g],delete x[g],j&&j[0])?j[0](iG).then(()=>h().data):h().data};if(e.length<3)return w();let $=r,E,R=!1;const I=BI();S[g]=[I,0];const O=!zn(c),T=h(),_=T.data,k=T._c,A=zn(k)?_:k;if(O&&(c=Ri(c)?c(A,_):c,b({data:c,_c:A})),Ri($))try{$=$(A)}catch(j){E=j,R=!0}if($&&lG($))if($=await $.catch(j=>{E=j,R=!0}),I!==S[g][0]){if(R)throw E;return $}else R&&O&&u(E)&&(i=!0,b({data:A,_c:va}));if(i&&!R)if(Ri(i)){const j=i($,A);b({data:j,error:va,_c:va})}else b({data:$,error:va,_c:va});if(S[g][1]=BI(),Promise.resolve(w()).then(()=>{b({_c:va})}),R){if(d)throw E;return}return $}}const YF=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},uG=(e,t)=>{if(!Fl.has(e)){const n=Kl(x3e,t),r=Object.create(null),a=cG.bind(va,e);let o=Dl;const i=Object.create(null),l=(d,f)=>{const m=i[d]||[];return i[d]=m,m.push(f),()=>{const g=m.indexOf(f);g>=0&&(m[g]=m[m.length-1],m.pop())}},c=(d,f,m)=>{e.set(d,f);const g=i[d];if(g)for(const h of g)h(f,m)},u=()=>{if(!Fl.has(e)&&(Fl.set(e,[r,Object.create(null),Object.create(null),Object.create(null),a,c,l]),!Rd)){const d=n.initFocus(setTimeout.bind(va,YF.bind(va,r,aG))),f=n.initReconnect(setTimeout.bind(va,YF.bind(va,r,oG)));o=()=>{d&&d(),f&&f(),Fl.delete(e)}}};return u(),[e,a,u,o]}return[e,Fl.get(e)[4]]},O3e=(e,t,n,r,a)=>{const o=n.errorRetryCount,i=a.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!zn(o)&&i>o||setTimeout(r,l,a)},I3e=jI,[$3,R3e]=uG(new Map),dG=Kl({onLoadingSlow:Dl,onSuccess:Dl,onError:Dl,onErrorRetry:O3e,onDiscarded:Dl,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:GF?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:GF?5e3:3e3,compare:I3e,isPaused:()=>!1,cache:$3,mutate:R3e,fallback:{}},S3e),fG=(e,t)=>{const n=Kl(e,t);if(t){const{use:r,fallback:a}=e,{use:o,fallback:i}=t;r&&o&&(n.use=r.concat(o)),a&&i&&(n.fallback=Kl(a,i))}return n},zI=s.createContext({}),M3e=e=>{const{value:t}=e,n=s.useContext(zI),r=Ri(t),a=s.useMemo(()=>r?t(n):t,[r,n,t]),o=s.useMemo(()=>r?a:fG(n,a),[r,n,a]),i=a&&a.provider,l=s.useRef(va);i&&!l.current&&(l.current=uG(i(o.cache||$3),a));const c=l.current;return c&&(o.cache=c[0],o.mutate=c[1]),ab(()=>{if(c)return c[2]&&c[2](),c[3]},[]),s.createElement(zI.Provider,Kl(e,{value:o}))},T3e="$inf$",vG=kg&&window.__SWR_DEVTOOLS_USE__,N3e=vG?window.__SWR_DEVTOOLS_USE__:[],_3e=()=>{vG&&(window.__SWR_DEVTOOLS_REACT__=ee)},j3e=e=>Ri(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],E3=()=>{const e=s.useContext(zI);return s.useMemo(()=>Kl(dG,e),[e])},F3e=e=>(t,n,r)=>e(t,n&&((...o)=>{const[i]=w3(t),[,,,l]=Fl.get($3);if(i.startsWith(T3e))return n(...o);const c=l[i];return zn(c)?n(...o):(delete l[i],c)}),r),D3e=N3e.concat(F3e),k3e=e=>function(...n){const r=E3(),[a,o,i]=j3e(n),l=fG(r,i);let c=e;const{use:u}=l,d=(u||[]).concat(D3e);for(let f=d.length;f--;)c=d[f](c);return c(a,o||l.fetcher||null,l)},A3e=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const a=r.indexOf(n);a>=0&&(r[a]=r[r.length-1],r.pop())}};_3e();const bw=ee.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),yw={dedupe:!0},cy=Promise.resolve(va);cy.status="fulfilled";cy.value=va;const L3e=()=>Dl,B3e=(e,t,n)=>{const{cache:r,compare:a,suspense:o,fallbackData:i,revalidateOnMount:l,revalidateIfStale:c,refreshInterval:u,refreshWhenHidden:d,refreshWhenOffline:f,keepPreviousData:m,strictServerPrefetchWarning:g}=n,[h,b,p,S]=Fl.get(r),[C,x]=w3(e),w=s.useRef(!1),$=s.useRef(!1),E=s.useRef(C),R=s.useRef(t),I=s.useRef(n),O=()=>I.current,T=()=>O().isVisible()&&O().isOnline(),[_,k,A,j]=sG(r,C),D=s.useRef({}).current,F=zn(i)?zn(n.fallback)?va:n.fallback[C]:i,L=(se,ve)=>{for(const he in D){const Ce=he;if(Ce==="data"){if(!a(se[Ce],ve[Ce])&&(!zn(se[Ce])||!a(J,ve[Ce])))return!1}else if(ve[Ce]!==se[Ce])return!1}return!0},B=!w.current,K=s.useMemo(()=>{const se=_(),ve=j(),he=ge=>{const ye=Kl(ge);return delete ye._k,(()=>{if(!C||!t||O().isPaused())return!1;if(B&&!zn(l))return l;const $e=zn(F)?ye.data:F;return zn($e)||c})()?{isValidating:!0,isLoading:!0,...ye}:ye},Ce=he(se),pe=se===ve?Ce:he(ve);let Se=Ce;return[()=>{const ge=he(_());return L(ge,Se)?(Se.data=ge.data,Se.isLoading=ge.isLoading,Se.isValidating=ge.isValidating,Se.error=ge.error,Se):(Se=ge,ge)},()=>pe]},[r,C]),W=WF.useSyncExternalStore(s.useCallback(se=>A(C,(ve,he)=>{L(he,ve)||se()}),[r,C]),K[0],K[1]),V=h[C]&&h[C].length>0,q=W.data,U=zn(q)?F&&lG(F)?bw(F):F:q,G=W.error,Y=s.useRef(U),J=m?zn(q)?zn(Y.current)?U:Y.current:q:U,Q=C&&zn(U),Z=s.useRef(null);!Rd&&WF.useSyncExternalStore(L3e,()=>(Z.current=!1,Z),()=>(Z.current=!0,Z));const ne=Z.current;g&&ne&&!o&&Q&&console.warn(`Missing pre-initiated data for serialized key "${C}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const ae=!C||!t||O().isPaused()||V&&!zn(G)?!1:B&&!zn(l)?l:o?zn(U)?!1:c:zn(U)||c,le=B&&ae,re=zn(W.isValidating)?le:W.isValidating,fe=zn(W.isLoading)?le:W.isLoading,ue=s.useCallback(async se=>{const ve=R.current;if(!C||!ve||$.current||O().isPaused())return!1;let he,Ce,pe=!0;const Se=se||{},ge=!p[C]||!Se.dedupe,ye=()=>UF?!$.current&&C===E.current&&w.current:C===E.current,xe={isValidating:!1,isLoading:!1},$e=()=>{k(xe)},He=()=>{const Re=p[C];Re&&Re[1]===Ce&&delete p[C]},Te={isValidating:!0};zn(_().data)&&(Te.isLoading=!0);try{if(ge&&(k(Te),n.loadingTimeout&&zn(_().data)&&setTimeout(()=>{pe&&ye()&&O().onLoadingSlow(C,n)},n.loadingTimeout),p[C]=[ve(x),BI()]),[he,Ce]=p[C],he=await he,ge&&setTimeout(He,n.dedupingInterval),!p[C]||p[C][1]!==Ce)return ge&&ye()&&O().onDiscarded(C),!1;xe.error=va;const Re=b[C];if(!zn(Re)&&(Ce<=Re[0]||Ce<=Re[1]||Re[1]===0))return $e(),ge&&ye()&&O().onDiscarded(C),!1;const Fe=_().data;xe.data=a(Fe,he)?Fe:he,ge&&ye()&&O().onSuccess(he,C,n)}catch(Re){He();const Fe=O(),{shouldRetryOnError:je}=Fe;Fe.isPaused()||(xe.error=Re,ge&&ye()&&(Fe.onError(Re,C,Fe),(je===!0||Ri(je)&&je(Re))&&(!O().revalidateOnFocus||!O().revalidateOnReconnect||T())&&Fe.onErrorRetry(Re,C,Fe,Ee=>{const Le=h[C];Le&&Le[0]&&Le[0](KF,Ee)},{retryCount:(Se.retryCount||0)+1,dedupe:!0})))}return pe=!1,$e(),!0},[C,r]),de=s.useCallback((...se)=>cG(r,E.current,...se),[]);if(ab(()=>{R.current=t,I.current=n,zn(q)||(Y.current=q)}),ab(()=>{if(!C)return;const se=ue.bind(va,yw);let ve=0;O().revalidateOnFocus&&(ve=Date.now()+O().focusThrottleInterval);const Ce=A3e(C,h,(pe,Se={})=>{if(pe==aG){const ge=Date.now();O().revalidateOnFocus&&ge>ve&&T()&&(ve=ge+O().focusThrottleInterval,se())}else if(pe==oG)O().revalidateOnReconnect&&T()&&se();else{if(pe==iG)return ue();if(pe==KF)return ue(Se)}});return $.current=!1,E.current=C,w.current=!0,k({_k:x}),ae&&(p[C]||(zn(U)||Rd?se():w3e(se))),()=>{$.current=!0,Ce()}},[C]),ab(()=>{let se;function ve(){const Ce=Ri(u)?u(_().data):u;Ce&&se!==-1&&(se=setTimeout(he,Ce))}function he(){!_().error&&(d||O().isVisible())&&(f||O().isOnline())?ue(yw).then(ve):ve()}return ve(),()=>{se&&(clearTimeout(se),se=-1)}},[u,d,f,C]),s.useDebugValue(J),o){if(!UF&&Rd&&Q)throw new Error("Fallback data is required when using Suspense in SSR.");Q&&(R.current=t,I.current=n,$.current=!1);const se=S[C],ve=!zn(se)&&Q?de(se):cy;if(bw(ve),!zn(G)&&Q)throw G;const he=Q?ue(yw):cy;!zn(J)&&Q&&(he.status="fulfilled",he.value=!0),bw(he)}return{mutate:de,get data(){return D.data=!0,J},get error(){return D.error=!0,G},get isValidating(){return D.isValidating=!0,re},get isLoading(){return D.isLoading=!0,fe}}},z3e=sy.defineProperty(M3e,"defaultValue",{value:dG}),P3=k3e(B3e),H3e={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},V3e={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},W3e={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Hledat",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybráno",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Nefixováno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončit celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"Přidat řádek"}},switch:{open:"Otevřít",close:"Zavřít"}},K3e={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},q3e={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},U3e={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},G3e={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},Y3e={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},X3e={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},Q3e={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},J3e={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},Z3e={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},eMe={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},tMe={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},nMe={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},rMe={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},aMe={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},oMe={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},iMe={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},lMe={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},sMe={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},cMe={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},uMe={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},dMe={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},fMe={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}},vMe={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},mMe={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},gMe={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},pMe={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},hMe={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},bMe={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},yMe={moneySymbol:"HK$",deleteThisLine:"刪除此項",copyThisLine:"複製此項",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"搜尋",reset:"重設",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選取",selected:"已選取",item:"項"},pagination:{total:{range:"第",total:"項/總共",item:"項"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重設",columnDisplay:"列顯示",columnSetting:"列設定",fullScreen:"全螢幕",exitFullScreen:"退出全螢幕",reload:"重新整理",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}},CMe={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}};var Xn=function(t,n){return{getMessage:function(a,o){var i=Gn(n,a.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(i)return i;var l=t.replace("_","-");if(l==="zh-CN")return o;var c=ru["zh-CN"];return c?c.getMessage(a,o):o},locale:t}},SMe=Xn("mn_MN",rMe),xMe=Xn("ar_EG",H3e),Md=Xn("zh_CN",bMe),wMe=Xn("en_US",U3e),$Me=Xn("en_GB",q3e),EMe=Xn("vi_VN",hMe),PMe=Xn("it_IT",eMe),OMe=Xn("ja_JP",tMe),IMe=Xn("es_ES",G3e),RMe=Xn("ca_ES",V3e),MMe=Xn("ru_RU",cMe),TMe=Xn("sr_RS",dMe),NMe=Xn("ms_MY",aMe),_Me=Xn("zh_TW",CMe),jMe=Xn("zh_HK",yMe),FMe=Xn("fr_FR",X3e),DMe=Xn("pt_BR",lMe),kMe=Xn("ko_KR",nMe),AMe=Xn("id_ID",Z3e),LMe=Xn("de_DE",K3e),BMe=Xn("fa_IR",Y3e),zMe=Xn("tr_TR",mMe),HMe=Xn("pl_PL",iMe),VMe=Xn("hr_",J3e),WMe=Xn("th_TH",vMe),KMe=Xn("cs_cz",W3e),qMe=Xn("sk_SK",uMe),UMe=Xn("he_IL",Q3e),GMe=Xn("uk_UA",gMe),YMe=Xn("uz_UZ",pMe),XMe=Xn("nl_NL",oMe),QMe=Xn("ro_RO",sMe),JMe=Xn("sv_SE",fMe),ru={"mn-MN":SMe,"ar-EG":xMe,"zh-CN":Md,"en-US":wMe,"en-GB":$Me,"vi-VN":EMe,"it-IT":PMe,"ja-JP":OMe,"es-ES":IMe,"ca-ES":RMe,"ru-RU":MMe,"sr-RS":TMe,"ms-MY":NMe,"zh-TW":_Me,"zh-HK":jMe,"fr-FR":FMe,"pt-BR":DMe,"ko-KR":kMe,"id-ID":AMe,"de-DE":LMe,"fa-IR":BMe,"tr-TR":zMe,"pl-PL":HMe,"hr-HR":VMe,"th-TH":WMe,"cs-CZ":KMe,"sk-SK":qMe,"he-IL":UMe,"uk-UA":GMe,"uz-UZ":YMe,"nl-NL":XMe,"ro-RO":QMe,"sv-SE":JMe},ZMe=Object.keys(ru),mG=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return ZMe.find(function(r){var a=r.toLocaleLowerCase();return a.includes(n)})};function xa(e,t){e6e(e)&&(e="100%");var n=t6e(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function C0(e){return Math.min(1,Math.max(0,e))}function e6e(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function t6e(e){return typeof e=="string"&&e.indexOf("%")!==-1}function gG(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function S0(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Nc(e){return e.length===1?"0"+e:String(e)}function n6e(e,t,n){return{r:xa(e,255)*255,g:xa(t,255)*255,b:xa(n,255)*255}}function XF(e,t,n){e=xa(e,255),t=xa(t,255),n=xa(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,l=(r+a)/2;if(r===a)i=0,o=0;else{var c=r-a;switch(i=l>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function r6e(e,t,n){var r,a,o;if(e=xa(e,360),t=xa(t,100),n=xa(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Cw(l,i,e+1/3),a=Cw(l,i,e),o=Cw(l,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function QF(e,t,n){e=xa(e,255),t=xa(t,255),n=xa(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,l=r-a,c=r===0?0:l/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var HI={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function s6e(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,l=!1;return typeof e=="string"&&(e=d6e(e)),typeof e=="object"&&(El(e.r)&&El(e.g)&&El(e.b)?(t=n6e(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):El(e.h)&&El(e.s)&&El(e.v)?(r=S0(e.s),a=S0(e.v),t=a6e(e.h,r,a),i=!0,l="hsv"):El(e.h)&&El(e.s)&&El(e.l)&&(r=S0(e.s),o=S0(e.l),t=r6e(e.h,r,o),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=gG(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var c6e="[-\\+]?\\d+%?",u6e="[-\\+]?\\d*\\.\\d+%?",Ls="(?:".concat(u6e,")|(?:").concat(c6e,")"),Sw="[\\s|\\(]+(".concat(Ls,")[,|\\s]+(").concat(Ls,")[,|\\s]+(").concat(Ls,")\\s*\\)?"),xw="[\\s|\\(]+(".concat(Ls,")[,|\\s]+(").concat(Ls,")[,|\\s]+(").concat(Ls,")[,|\\s]+(").concat(Ls,")\\s*\\)?"),xi={CSS_UNIT:new RegExp(Ls),rgb:new RegExp("rgb"+Sw),rgba:new RegExp("rgba"+xw),hsl:new RegExp("hsl"+Sw),hsla:new RegExp("hsla"+xw),hsv:new RegExp("hsv"+Sw),hsva:new RegExp("hsva"+xw),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d6e(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(HI[e])e=HI[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=xi.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=xi.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=xi.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=xi.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=xi.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=xi.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=xi.hex8.exec(e),n?{r:Po(n[1]),g:Po(n[2]),b:Po(n[3]),a:ZF(n[4]),format:t?"name":"hex8"}:(n=xi.hex6.exec(e),n?{r:Po(n[1]),g:Po(n[2]),b:Po(n[3]),format:t?"name":"hex"}:(n=xi.hex4.exec(e),n?{r:Po(n[1]+n[1]),g:Po(n[2]+n[2]),b:Po(n[3]+n[3]),a:ZF(n[4]+n[4]),format:t?"name":"hex8"}:(n=xi.hex3.exec(e),n?{r:Po(n[1]+n[1]),g:Po(n[2]+n[2]),b:Po(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function El(e){return!!xi.CSS_UNIT.exec(String(e))}var f6e=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=l6e(t)),this.originalInput=t;var a=s6e(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=gG(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=QF(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=QF(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=XF(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=XF(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),JF(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),o6e(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(xa(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(xa(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+JF(this.r,this.g,this.b,!1),n=0,r=Object.entries(HI);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=C0(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=C0(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=C0(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=C0(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,a=1103547991^n,o=0,i;o>>16,2246822507)^Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&a)+(r>>>0)},O3=Gd(function(e){return e}),hG={theme:O3,token:P(P({},Wm),so==null||(ww=so.defaultAlgorithm)===null||ww===void 0?void 0:ww.call(so,so==null?void 0:so.defaultSeed)),hashId:"pro-".concat(pG(JSON.stringify(Wm)))},v6e=function(){return hG};const m6e=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:Wm,emptyTheme:O3,hashCode:pG,token:hG,useToken:v6e},Symbol.toStringTag,{value:"Module"}));var ao=function(t,n){return new f6e(t).setAlpha(n).toRgbString()},g6e=function(){return typeof so>"u"||!so?m6e:so},uo=g6e(),Td=uo.useToken,Al=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}},$w=function(t){return{color:t.colorLink,outline:"none",cursor:"pointer",transition:"color ".concat(t.motionDurationSlow),"&:focus, &:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive}}};function En(e,t){var n,r=s.useContext(qr),a=r.token,o=a===void 0?{}:a,i=s.useContext(qr),l=i.hashed,c=Td(),u=c.token,d=c.hashId,f=s.useContext(qr);f.theme;var m=s.useContext(Rt.ConfigContext),g=m.getPrefixCls,h=m.csp;return o.layout||(o=P({},u)),o.proComponentsCls=(n=o.proComponentsCls)!==null&&n!==void 0?n:".".concat(g("pro")),o.antCls=".".concat(g()),{wrapSSR:pb({token:o,path:[e],nonce:h==null?void 0:h.nonce,layer:{name:"antd-pro"}},function(){return t(o)}),hashId:l?d:""}}var p6e=function(t,n){var r,a,o,i,l,c=P({},t);return P(P({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:c==null||(r=c.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:ao(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},c),{},{header:P({colorBgHeader:ao(n.colorBgElevated,.6),colorBgScrollHeader:ao(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:ao(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(c==null||(a=c.header)===null||a===void 0?void 0:a.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(o=c.header)===null||o===void 0?void 0:o.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:ao(n.colorTextBase,.95),colorBgRightActionsItemHover:ao(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},c.header),sider:P({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:ao(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:ao(n.colorTextBase,.06),colorBgMenuItemHover:ao(n.colorTextBase,.03),colorBgMenuItemSelected:ao(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:ao(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:ao(n.colorTextBase,.95)},c.sider),pageContainer:P({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((i=c.pageContainer)===null||i===void 0?void 0:i.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((l=c.pageContainer)===null||l===void 0?void 0:l.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},c.pageContainer)})},h6e=function(){for(var t={},n=arguments.length,r=new Array(n),a=0;a1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(uTe(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){uy(e,t+1)},r.onerror=function(){uy(e,t+1)}),xG.add(n),document.body.appendChild(r)}}function wG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?uy(t.reverse()):uy([t]));var a=s.forwardRef(function(o,i){var l=o.type,c=o.children,u=Ue(o,cTe),d=null;return o.type&&(d=s.createElement("use",{xlinkHref:"#".concat(l)})),c&&(d=c),s.createElement(SG,Me({},r,u,{ref:i}),d)});return a.displayName="Iconfont",a}var dTe=function(t){return z({},t.componentCls,z(z(z(z(z(z(z(z({display:"inline-flex",gap:t.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:t.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:t.colorBgTextHover},"&-active":z({paddingBlock:0,paddingInline:8,backgroundColor:t.colorBgTextHover},"&".concat(t.componentCls,"-allow-clear:hover:not(").concat(t.componentCls,"-disabled)"),z(z({},"".concat(t.componentCls,"-arrow"),{display:"none"}),"".concat(t.componentCls,"-close"),{display:"inline-flex"}))},"".concat(t.antCls,"-select"),z({},"".concat(t.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(t.antCls,"-picker"),z({},"".concat(t.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",z(z({color:t.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(t.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:t.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:t.colorIconHover})),"&-disabled",z({color:t.colorTextPlaceholder,cursor:"not-allowed"},"".concat(t.componentCls,"-icon"),{color:t.colorTextPlaceholder})),"&-small",z(z(z({height:"24px",paddingBlock:0,paddingInline:4,fontSize:t.fontSizeSM,lineHeight:"24px"},"&".concat(t.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(t.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(t.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(t.lineWidth,"px solid ").concat(t.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:t.colorBgContainer}))};function fTe(e){return En("FieldLabel",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[dTe(n)]})}var vTe=function(t,n){var r,a,o,i=t.label,l=t.onClear,c=t.value,u=t.disabled,d=t.onLabelClick,f=t.ellipsis,m=t.placeholder,g=t.className,h=t.formatter,b=t.bordered,p=t.style,S=t.downIcon,C=t.allowClear,x=C===void 0?!0:C,w=t.valueMaxLength,$=w===void 0?41:w,E=(Rt==null||(r=Rt.useConfig)===null||r===void 0?void 0:r.call(Rt))||{componentSize:"middle"},R=E.componentSize,I=R,O=s.useContext(Rt.ConfigContext),T=O.getPrefixCls,_=T("pro-core-field-label"),k=fTe(_),A=k.wrapSSR,j=k.hashId,D=An(),F=s.useRef(null),L=s.useRef(null);s.useImperativeHandle(n,function(){return{labelRef:L,clearRef:F}});var B=function(q){return q.every(function(U){return typeof U=="string"})?q.join(","):q.map(function(U,G){var Y=G===q.length-1?"":",";return typeof U=="string"?N.jsxs("span",{children:[U,Y]},G):N.jsxs("span",{style:{display:"flex"},children:[U,Y]},G)})},K=function(q){return h?h(q):Array.isArray(q)?B(q):q},W=function(q,U){if(U!=null&&U!==""&&(!Array.isArray(U)||U.length)){var G,Y,J=q?N.jsxs("span",{onClick:function(){d==null||d()},className:"".concat(_,"-text"),children:[q,": "]}):"",Q=K(U);if(!f)return N.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[J,K(U)]});var Z=function(){var le=Array.isArray(U)&&U.length>1,re=D.getMessage("form.lightFilter.itemUnit","项");return typeof Q=="string"&&Q.length>$&&le?"...".concat(U.length).concat(re):""},ne=Z();return N.jsxs("span",{title:typeof Q=="string"?Q:void 0,style:{display:"inline-flex",alignItems:"center"},children:[J,N.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof Q=="string"?Q==null||(G=Q.toString())===null||G===void 0||(Y=G.slice)===null||Y===void 0?void 0:Y.call(G,0,$):Q}),ne]})}return q||m};return A(N.jsxs("span",{className:oe(_,j,"".concat(_,"-").concat((a=(o=t.size)!==null&&o!==void 0?o:I)!==null&&a!==void 0?a:"middle"),z(z(z(z({},"".concat(_,"-active"),(Array.isArray(c)?c.length>0:!!c)||c===0),"".concat(_,"-disabled"),u),"".concat(_,"-bordered"),b),"".concat(_,"-allow-clear"),x),g),style:p,ref:L,onClick:function(){var q;t==null||(q=t.onClick)===null||q===void 0||q.call(t)},children:[W(i,c),(c||c===0)&&x&&N.jsx(dl,{role:"button",title:D.getMessage("form.lightFilter.clear","清除"),className:oe("".concat(_,"-icon"),j,"".concat(_,"-close")),onClick:function(q){u||l==null||l(),q.stopPropagation()},ref:F}),S!==!1?S??N.jsx(Gs,{className:oe("".concat(_,"-icon"),j,"".concat(_,"-arrow"))}):null]}))},fl=ee.forwardRef(vTe),Fr=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},mTe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,tD=function(t){return t==="*"||t==="x"||t==="X"},nD=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},gTe=function(t,n){return it(t)!==it(n)?[String(t),String(n)]:[t,n]},pTe=function(t,n){if(tD(t)||tD(n))return 0;var r=gTe(nD(t),nD(n)),a=ce(r,2),o=a[0],i=a[1];return o>i?1:o"u"?fo:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||fo},Cu=function(t,n){var r=vl(I3(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return Fr(r)},bTe=function(t){return z(z(z({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function yTe(e){return En("FilterDropdown",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[bTe(n)]})}var $G=function(t){var n=t.children,r=t.label,a=t.footer,o=t.open,i=t.onOpenChange,l=t.disabled,c=t.onVisibleChange,u=t.visible,d=t.footerRender,f=t.placement,m=s.useContext(Rt.ConfigContext),g=m.getPrefixCls,h=g("pro-core-field-dropdown"),b=yTe(h),p=b.wrapSSR,S=b.hashId,C=Cu(o||u||!1,i||c),x=s.useRef(null);return p(N.jsx(Vi,P(P({placement:f,trigger:["click"]},C),{},{styles:{body:{padding:0}},content:N.jsxs("div",{ref:x,className:oe("".concat(h,"-overlay"),z(z({},"".concat(h,"-overlay-").concat(f),f),"hashId",S)),children:[N.jsx(Rt,{getPopupContainer:function(){return x.current||document.body},children:N.jsx("div",{className:"".concat(h,"-content ").concat(S).trim(),children:n})}),a&&N.jsx(O6e,P({disabled:l,footerRender:d},a))]}),children:N.jsx("span",{className:"".concat(h,"-label ").concat(S).trim(),children:r})})))},CTe=function(t){var n="".concat(t.antCls,"-progress-bg");return z({},t.componentCls,{"&-multiple":{paddingBlockStart:6,paddingBlockEnd:12,paddingInline:8},"&-progress":{"&-success":z({},n,{backgroundColor:t.colorSuccess}),"&-error":z({},n,{backgroundColor:t.colorError}),"&-warning":z({},n,{backgroundColor:t.colorWarning})},"&-rule":{display:"flex",alignItems:"center","&-icon":{"&-default":{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"22px","&-circle":{width:"6px",height:"6px",backgroundColor:t.colorTextSecondary,borderRadius:"4px"}},"&-loading":{color:t.colorPrimary},"&-error":{color:t.colorError},"&-success":{color:t.colorSuccess}},"&-text":{color:t.colorText}}})};function STe(e){return En("InlineErrorFormItem",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[CTe(n)]})}var xTe=["rules","name","children","popoverProps"],wTe=["errorType","rules","name","popoverProps","children"],EG={marginBlockStart:-5,marginBlockEnd:-5,marginInlineStart:0,marginInlineEnd:0},$Te=function(t){var n=t.inputProps,r=t.input,a=t.extra,o=t.errorList,i=t.popoverProps,l=s.useState(!1),c=ce(l,2),u=c[0],d=c[1],f=s.useState([]),m=ce(f,2),g=m[0],h=m[1],b=s.useContext(Rt.ConfigContext),p=b.getPrefixCls,S=p(),C=Td(),x=STe("".concat(S,"-form-item-with-help")),w=x.wrapSSR,$=x.hashId;s.useEffect(function(){n.validateStatus!=="validating"&&h(n.errors)},[n.errors,n.validateStatus]);var E=Cu(g.length<1?!1:u,function(I){I!==u&&d(I)}),R=n.validateStatus==="validating";return N.jsx(Vi,P(P(P({trigger:(i==null?void 0:i.trigger)||["click"],placement:(i==null?void 0:i.placement)||"topLeft"},E),{},{getPopupContainer:i==null?void 0:i.getPopupContainer,getTooltipContainer:i==null?void 0:i.getTooltipContainer,content:w(N.jsx("div",{className:"".concat(S,"-form-item ").concat($," ").concat(C.hashId).trim(),style:{margin:0,padding:0},children:N.jsxs("div",{className:"".concat(S,"-form-item-with-help ").concat($," ").concat(C.hashId).trim(),children:[R?N.jsx(Ya,{}):null,o]})}))},i),{},{children:N.jsxs(N.Fragment,{children:[r,a]})}),"popover")},ETe=function(t){var n=t.rules,r=t.name,a=t.children,o=t.popoverProps,i=Ue(t,xTe);return N.jsx(Fn.Item,P(P({name:r,rules:n,hasFeedback:!1,shouldUpdate:function(c,u){if(c===u)return!1;var d=[r].flat(1);d.length>1&&d.pop();try{return JSON.stringify(Gn(c,d))!==JSON.stringify(Gn(u,d))}catch{return!0}},_internalItemRender:{mark:"pro_table_render",render:function(c,u){return N.jsx($Te,P({inputProps:c,popoverProps:o},u))}}},i),{},{style:P(P({},EG),i==null?void 0:i.style),children:a}))},PTe=function(t){var n=t.errorType,r=t.rules,a=t.name,o=t.popoverProps,i=t.children,l=Ue(t,wTe);return a&&r!==null&&r!==void 0&&r.length&&n==="popover"?N.jsx(ETe,P(P({name:a,rules:r,popoverProps:o},l),{},{children:i})):N.jsx(Fn.Item,P(P({rules:r,shouldUpdate:a?function(c,u){if(c===u)return!1;var d=[a].flat(1);d.length>1&&d.pop();try{return JSON.stringify(Gn(c,d))!==JSON.stringify(Gn(u,d))}catch{return!0}}:void 0},l),{},{style:P(P({},EG),l.style),name:a,children:i}))},OTe=function(t){return z({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function ITe(e){return En("LabelIconTip",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[OTe(n)]})}var au=ee.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,a=e.subTitle,o=s.useContext(Rt.ConfigContext),i=o.getPrefixCls,l=i("pro-core-label-tip"),c=ITe(l),u=c.wrapSSR,d=c.hashId;if(!n&&!a)return N.jsx(N.Fragment,{children:t});var f=typeof n=="string"||ee.isValidElement(n)?{title:n}:n,m=(f==null?void 0:f.icon)||N.jsx(Y6e,{});return u(N.jsxs("div",{className:oe(l,d),onMouseDown:function(h){return h.stopPropagation()},onMouseLeave:function(h){return h.stopPropagation()},onMouseMove:function(h){return h.stopPropagation()},children:[N.jsx("div",{className:oe("".concat(l,"-title"),d,z({},"".concat(l,"-title-ellipsis"),r)),children:t}),a&&N.jsx("div",{className:"".concat(l,"-subtitle ").concat(d).trim(),children:a}),n&&N.jsx(Bn,P(P({},f),{},{children:N.jsx("span",{className:"".concat(l,"-icon ").concat(d).trim(),children:m})}))]}))}),Lg=ee.createContext({}),ib={exports:{}},RTe=ib.exports,aD;function MTe(){return aD||(aD=1,(function(e,t){(function(n,r){e.exports=r()})(RTe,(function(){var n="month",r="quarter";return function(a,o){var i=o.prototype;i.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=i.add;i.add=function(u,d){return u=Number(u),this.$utils().p(d)===r?this.add(3*u,n):l.bind(this)(u,d)};var c=i.startOf;i.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;if(f.p(u)===r){var g=this.quarter()-1;return m?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(u,d)}}}))})(ib)),ib.exports}var TTe=MTe();const NTe=rn(TTe);var Js=function(t){return t==null};In.extend(NTe);var PG={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function oD(e){return Object.prototype.toString.call(e)==="[object Object]"}function _Te(e){if(oD(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(oD(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var VI=function(t){return!!(t!=null&&t._isAMomentObject)},iD=function(t,n,r){if(!n)return t;if(In.isDayjs(t)||VI(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(PG[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},jTe=function e(t,n,r,a,o){var i={};return typeof window>"u"||it(t)!=="object"||Js(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(l){var c=o?[o,l].flat(1):[l],u=Gn(r,c)||"text",d="text",f;typeof u=="string"?d=u:(d=u.valueType,f=u.dateFormat);var m=t[l];if(!(Js(m)&&a)){if(_Te(m)&&!Array.isArray(m)&&!In.isDayjs(m)&&!VI(m)){i[l]=e(m,n,r,a,c);return}if(Array.isArray(m)){i[l]=m.map(function(g,h){return In.isDayjs(g)||VI(g)?iD(g,f||n,d):e(g,n,r,a,[l,"".concat(h)].flat(1))});return}i[l]=iD(m,f||n,d)}}),i)},lD=function(t,n){return typeof n=="function"?n(In(t)):In(t).format(n)},OG=function(t,n){var r=Array.isArray(t)?t:[],a=ce(r,2),o=a[0],i=a[1],l,c;Array.isArray(n)?(l=n[0],c=n[1]):it(n)==="object"&&n.type==="mask"?(l=n.format,c=n.format):(l=n,c=n);var u=o?lD(o,l):"",d=i?lD(i,c):"",f=u&&d?"".concat(u," ~ ").concat(d):"";return f},FTe=function(t){var n;return!!(t!=null&&(n=t.valueType)!==null&&n!==void 0&&n.toString().startsWith("date")||(t==null?void 0:t.valueType)==="select"||t!=null&&t.valueEnum)},DTe=function(t){var n;return((n=t.ellipsis)===null||n===void 0?void 0:n.showTitle)===!1?!1:t.ellipsis},kTe=function(t,n,r){if(n.copyable||n.ellipsis){var a=n.copyable&&r?{text:r,tooltips:["",""]}:void 0,o=FTe(n),i=DTe(n)&&r?{tooltip:(n==null?void 0:n.tooltip)!==!1&&o?N.jsx("div",{className:"pro-table-tooltip-text",children:t}):r}:!1;return N.jsx(an.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:a,ellipsis:i,children:t})}return t};function Aa(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1?{menu:t}:{overlay:N.jsx(Yl,P({},t))};return Fr(n)},Hn=function(t){var n=s.useRef(null);return n.current=t,s.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;i1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=s.useState(e),a=ce(r,2),o=a[0],i=a[1],l=R3(e);return s.useEffect(function(){var c=setTimeout(function(){i(l.current)},t);return function(){return clearTimeout(c)}},n?[t].concat(ke(n)):void 0),o}function Ll(e,t,n,r){if(e===t)return!0;if(e&&t&&it(e)==="object"&&it(t)==="object"){if(e.constructor!==t.constructor)return!1;var a,o,i;if(Array.isArray(e)){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!Ll(e[o],t[o],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var l=tb(e.entries()),c;try{for(l.s();!(c=l.n()).done;)if(o=c.value,!t.has(o[0]))return!1}catch(h){l.e(h)}finally{l.f()}var u=tb(e.entries()),d;try{for(u.s();!(d=u.n()).done;)if(o=d.value,!Ll(o[1],t.get(o[0]),n,r))return!1}catch(h){u.e(h)}finally{u.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=tb(e.entries()),m;try{for(f.s();!(m=f.n()).done;)if(o=m.value,!t.has(o[0]))return!1}catch(h){f.e(h)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(i=Object.keys(e),a=i.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[o]))return!1;for(o=a;o--!==0;){var g=i[o];if(!(n!=null&&n.includes(g))&&!(g==="_owner"&&e.$$typeof)&&!Ll(e[g],t[g],n,r))return!1}return!0}return e!==e&&t!==t}var LTe=function(t,n,r){return Ll(t,n,r)};function M3(e,t){var n=s.useRef();return LTe(e,n.current,t)||(n.current=e),n.current}function dy(e,t,n){s.useEffect(e,M3(t||[],n))}function MG(e,t,n,r){var a=W1(gn(ht().mark(function o(){return ht().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:e();case 1:case"end":return l.stop()}},o)})),r||16);s.useEffect(function(){a.run()},M3(t||[],n))}function Na(e,t){return ee.useMemo(e,M3(t))}var BTe=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,Su=function(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!BTe};function zTe(e,t){var n=typeof e.pageName=="string"?e.title:t;s.useEffect(function(){Su()&&n&&(document.title=n)},[e.title,n])}var Ew=0;function HTe(e){var t=s.useRef(null),n=s.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(Ew+=1,Ew.toString())}),r=ce(n,1),a=r[0],o=s.useRef(a),i=(function(){var d=gn(ht().mark(function f(){var m,g,h,b;return ht().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return(m=t.current)===null||m===void 0||m.abort(),h=new AbortController,t.current=h,S.next=5,Promise.race([(g=e.request)===null||g===void 0?void 0:g.call(e,e.params,e),new Promise(function(C,x){var w;(w=t.current)===null||w===void 0||(w=w.signal)===null||w===void 0||w.addEventListener("abort",function(){x(new Error("aborted"))})})]);case 5:return b=S.sent,S.abrupt("return",b);case 7:case"end":return S.stop()}},f)}));return function(){return d.apply(this,arguments)}})();s.useEffect(function(){return function(){Ew+=1}},[]);var l=P3([o.current,e.params],i,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),c=l.data,u=l.error;return[c||u]}var pm=function(t){var n=s.useRef();return s.useEffect(function(){n.current=t}),n.current};function VTe(){var e=s.useState(!0),t=ce(e,2),n=t[1],r=s.useCallback(function(){return n(function(a){return!a})},[]);return r}function WTe(e,t){var n=s.useMemo(function(){var r={current:t};return new Proxy(r,{set:function(o,i,l){return Object.is(o[i],l)||(o[i]=l,e(n)),!0}})},[]);return n}function KTe(e){var t=VTe(),n=WTe(t,e);return n}var qTe=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function UTe(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var T3=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},K1=function(){for(var t={},n=arguments.length,r=new Array(n),a=0;a0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(sD+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var a=63&r[t];n+=a<36?a.toString(36):a<62?(a-26).toString(36).toUpperCase():a<63?"_":"-"}return n},Km=function(){return typeof window>"u"?cD():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():cD()},TG=function(t){if(t&&t!==!0)return t},GTe=function(t){var n={};return Object.keys(t||{}).forEach(function(r){var a;Array.isArray(t[r])&&((a=t[r])===null||a===void 0?void 0:a.length)===0||t[r]!==void 0&&(n[r]=t[r])}),n};In.extend(YV);var uD=function(t){return!!(t!=null&&t._isAMomentObject)},Bg=function e(t,n){return Js(t)||In.isDayjs(t)||uD(t)?uD(t)?In(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?In(t):In(t,n)},YTe=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","validateDebounce","addonBefore","addonAfter","addonWarpStyle"];function XTe(e){var t={};return YTe.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var QTe="valueType request plain renderFormItem render text formItemProps valueEnum",JTe="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function NG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n="".concat(QTe," ").concat(JTe).split(/[\s\n]+/),r={};return Object.keys(e||{}).forEach(function(a){n.includes(a)&&!t||(r[a]=e[a])}),r}function ZTe(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&it(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var e8e=function(t){var n=t.color,r=t.children;return N.jsx(Io,{color:n,text:r})},Ql=function(t){return ZTe(t)==="map"?t:new Map(Object.entries(t||{}))},t8e={Success:function(t){var n=t.children;return N.jsx(Io,{status:"success",text:n})},Error:function(t){var n=t.children;return N.jsx(Io,{status:"error",text:n})},Default:function(t){var n=t.children;return N.jsx(Io,{status:"default",text:n})},Processing:function(t){var n=t.children;return N.jsx(Io,{status:"processing",text:n})},Warning:function(t){var n=t.children;return N.jsx(Io,{status:"warning",text:n})},success:function(t){var n=t.children;return N.jsx(Io,{status:"success",text:n})},error:function(t){var n=t.children;return N.jsx(Io,{status:"error",text:n})},default:function(t){var n=t.children;return N.jsx(Io,{status:"default",text:n})},processing:function(t){var n=t.children;return N.jsx(Io,{status:"processing",text:n})},warning:function(t){var n=t.children;return N.jsx(Io,{status:"warning",text:n})}},Af=function e(t,n,r){if(Array.isArray(t))return N.jsx(qn,{split:",",size:2,wrap:!0,children:t.map(function(u,d){return e(u,n,d)})},r);var a=Ql(n);if(!a.has(t)&&!a.has("".concat(t)))return(t==null?void 0:t.label)||t;var o=a.get(t)||a.get("".concat(t));if(!o)return N.jsx(ee.Fragment,{children:(t==null?void 0:t.label)||t},r);var i=o.status,l=o.color,c=t8e[i||"Init"];return c?N.jsx(c,{children:o.text},r):l?N.jsx(e8e,{color:l,children:o.text},r):N.jsx(ee.Fragment,{children:o.text||o},r)},x0={exports:{}},dD;function n8e(){return dD||(dD=1,(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=S();r.configure=S,r.stringify=r,r.default=r,t.stringify=r,t.configure=S,e.exports=r;const a=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(C){return C.length<5e3&&!a.test(C)?`"${C}"`:JSON.stringify(C)}function i(C,x){if(C.length>200||x)return C.sort(x);for(let w=1;w$;)C[E]=C[E-1],E--;C[E]=$}return C}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function c(C){return l.call(C)!==void 0&&C.length!==0}function u(C,x,w){C.length= 1`)}return w===void 0?1/0:w}function h(C){return C===1?"1 item":`${C} items`}function b(C){const x=new Set;for(const w of C)(typeof w=="string"||typeof w=="number")&&x.add(String(w));return x}function p(C){if(n.call(C,"strict")){const x=C.strict;if(typeof x!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(x)return w=>{let $=`Object can not safely be stringified. Received type ${typeof w}`;throw typeof w!="function"&&($+=` (${w.toString()})`),new Error($)}}}function S(C){C={...C};const x=p(C);x&&(C.bigint===void 0&&(C.bigint=!1),"circularValue"in C||(C.circularValue=Error));const w=d(C),$=m(C,"bigint"),E=f(C),R=typeof E=="function"?E:void 0,I=g(C,"maximumDepth"),O=g(C,"maximumBreadth");function T(D,F,L,B,K,W){let V=F[D];switch(typeof V=="object"&&V!==null&&typeof V.toJSON=="function"&&(V=V.toJSON(D)),V=B.call(F,D,V),typeof V){case"string":return o(V);case"object":{if(V===null)return"null";if(L.indexOf(V)!==-1)return w;let q="",U=",";const G=W;if(Array.isArray(V)){if(V.length===0)return"[]";if(IO){const fe=V.length-O-1;q+=`${U}"... ${h(fe)} not stringified"`}return K!==""&&(q+=` ${G}`),L.pop(),`[${q}]`}let Y=Object.keys(V);const J=Y.length;if(J===0)return"{}";if(IO){const ae=J-O;q+=`${Z}"...":${Q}"${h(ae)} not stringified"`,Z=U}return K!==""&&Z.length>1&&(q=` ${W}${q} -${G}`),L.pop(),`{${q}}`}case"number":return isFinite(V)?String(V):x?x(V):"null";case"boolean":return V===!0?"true":"false";case"undefined":return;case"bigint":if($)return String(V);default:return x?x(V):void 0}}function N(D,F,L,B,K,W){switch(typeof F=="object"&&F!==null&&typeof F.toJSON=="function"&&(F=F.toJSON(D)),typeof F){case"string":return o(F);case"object":{if(F===null)return"null";if(L.indexOf(F)!==-1)return w;const V=W;let q="",U=",";if(Array.isArray(F)){if(F.length===0)return"[]";if(IO){const ne=F.length-O-1;q+=`${U}"... ${h(ne)} not stringified"`}return K!==""&&(q+=` +${W}`);const J=Math.min(F.length,O);let Q=0;for(;QO){const ne=F.length-O-1;q+=`${U}"... ${h(ne)} not stringified"`}return K!==""&&(q+=` ${V}`),L.pop(),`[${q}]`}L.push(F);let G="";K!==""&&(W+=K,U=`, -${W}`,G=" ");let Y="";for(const J of B){const Q=N(J,F[J],L,B,K,W);Q!==void 0&&(q+=`${Y}${o(J)}:${G}${Q}`,Y=U)}return K!==""&&Y.length>1&&(q=` +${W}`,G=" ");let Y="";for(const J of B){const Q=_(J,F[J],L,B,K,W);Q!==void 0&&(q+=`${Y}${o(J)}:${G}${Q}`,Y=U)}return K!==""&&Y.length>1&&(q=` ${W}${q} -${V}`),L.pop(),`{${q}}`}case"number":return isFinite(F)?String(F):x?x(F):"null";case"boolean":return F===!0?"true":"false";case"undefined":return;case"bigint":if($)return String(F);default:return x?x(F):void 0}}function A(D,F,L,B,K){switch(typeof F){case"string":return o(F);case"object":{if(F===null)return"null";if(typeof F.toJSON=="function"){if(F=F.toJSON(D),typeof F!="object")return A(D,F,L,B,K);if(F===null)return"null"}if(L.indexOf(F)!==-1)return w;const W=K;if(Array.isArray(F)){if(F.length===0)return"[]";if(IO){const re=F.length-O-1;Q+=`${Z}"... ${h(re)} not stringified"`}return Q+=` +${K}`,ne=Math.min(F.length,O);let ae=0;for(;aeO){const re=F.length-O-1;Q+=`${Z}"... ${h(re)} not stringified"`}return Q+=` ${W}`,L.pop(),`[${Q}]`}let V=Object.keys(F);const q=V.length;if(q===0)return"{}";if(IO){const Q=q-O;G+=`${Y}"...": "${h(Q)} not stringified"`,Y=U}return Y!==""&&(G=` +${K}`;let G="",Y="",J=Math.min(q,O);c(F)&&(G+=u(F,U,O),V=V.slice(F.length),J-=F.length,Y=U),E&&(V=i(V,R)),L.push(F);for(let Q=0;QO){const Q=q-O;G+=`${Y}"...": "${h(Q)} not stringified"`,Y=U}return Y!==""&&(G=` ${K}${G} -${W}`),L.pop(),`{${G}}`}case"number":return isFinite(F)?String(F):x?x(F):"null";case"boolean":return F===!0?"true":"false";case"undefined":return;case"bigint":if($)return String(F);default:return x?x(F):void 0}}function k(D,F,L){switch(typeof F){case"string":return o(F);case"object":{if(F===null)return"null";if(typeof F.toJSON=="function"){if(F=F.toJSON(D),typeof F!="object")return k(D,F,L);if(F===null)return"null"}if(L.indexOf(F)!==-1)return w;let B="";const K=F.length!==void 0;if(K&&Array.isArray(F)){if(F.length===0)return"[]";if(IO){const Q=F.length-O-1;B+=`,"... ${h(Q)} not stringified"`}return L.pop(),`[${B}]`}let W=Object.keys(F);const V=W.length;if(V===0)return"{}";if(IO){const G=V-O;B+=`${q}"...":"${h(G)} not stringified"`}return L.pop(),`{${B}}`}case"number":return isFinite(F)?String(F):x?x(F):"null";case"boolean":return F===!0?"true":"false";case"undefined":return;case"bigint":if($)return String(F);default:return x?x(F):void 0}}function j(D,F,L){if(arguments.length>1){let B="";if(typeof L=="number"?B=" ".repeat(Math.min(L,10)):typeof L=="string"&&(B=L.slice(0,10)),F!=null){if(typeof F=="function")return T("",{"":D},[],F,B,"");if(Array.isArray(F))return N("",D,[],b(F),B,"")}if(B.length!==0)return A("",D,[],B,"")}return k("",D,[])}return j}})(b0,b0.exports)),b0.exports}var TTe=MTe();const NTe=an(TTe),_Te=NTe.configure;var zs=_Te({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function jTe(){this.__data__=[],this.size=0}function zg(e,t){return e===t||e!==e&&t!==t}function L1(e,t){for(var n=e.length;n--;)if(zg(e[n][0],t))return n;return-1}var FTe=Array.prototype,DTe=FTe.splice;function kTe(e){var t=this.__data__,n=L1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():DTe.call(t,n,1),--this.size,!0}function ATe(e){var t=this.__data__,n=L1(t,e);return n<0?void 0:t[n][1]}function LTe(e){return L1(this.__data__,e)>-1}function BTe(e,t){var n=this.__data__,r=L1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Jl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=GNe}function Hg(e){return e!=null&&SG(e.length)&&!C3(e)}function YNe(e){return iu(e)&&Hg(e)}function XNe(){return!1}var xG=typeof _o=="object"&&_o&&!_o.nodeType&&_o,tD=xG&&typeof jo=="object"&&jo&&!jo.nodeType&&jo,QNe=tD&&tD.exports===xG,nD=QNe?ml.Buffer:void 0,JNe=nD?nD.isBuffer:void 0,Gm=JNe||XNe,ZNe="[object Object]",e8e=Function.prototype,t8e=Object.prototype,wG=e8e.toString,n8e=t8e.hasOwnProperty,r8e=wG.call(Object);function a8e(e){if(!iu(e)||Lf(e)!=ZNe)return!1;var t=yG(e);if(t===null)return!0;var n=n8e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&wG.call(n)==r8e}var o8e="[object Arguments]",i8e="[object Array]",l8e="[object Boolean]",s8e="[object Date]",c8e="[object Error]",u8e="[object Function]",d8e="[object Map]",f8e="[object Number]",v8e="[object Object]",m8e="[object RegExp]",g8e="[object Set]",p8e="[object String]",h8e="[object WeakMap]",b8e="[object ArrayBuffer]",y8e="[object DataView]",C8e="[object Float32Array]",S8e="[object Float64Array]",x8e="[object Int8Array]",w8e="[object Int16Array]",$8e="[object Int32Array]",E8e="[object Uint8Array]",P8e="[object Uint8ClampedArray]",O8e="[object Uint16Array]",I8e="[object Uint32Array]",wr={};wr[C8e]=wr[S8e]=wr[x8e]=wr[w8e]=wr[$8e]=wr[E8e]=wr[P8e]=wr[O8e]=wr[I8e]=!0;wr[o8e]=wr[i8e]=wr[b8e]=wr[l8e]=wr[y8e]=wr[s8e]=wr[c8e]=wr[u8e]=wr[d8e]=wr[f8e]=wr[v8e]=wr[m8e]=wr[g8e]=wr[p8e]=wr[h8e]=!1;function R8e(e){return iu(e)&&SG(e.length)&&!!wr[Lf(e)]}function M8e(e){return function(t){return e(t)}}var $G=typeof _o=="object"&&_o&&!_o.nodeType&&_o,hm=$G&&typeof jo=="object"&&jo&&!jo.nodeType&&jo,T8e=hm&&hm.exports===$G,bw=T8e&&gG.process,rD=(function(){try{var e=hm&&hm.require&&hm.require("util").types;return e||bw&&bw.binding&&bw.binding("util")}catch{}})(),aD=rD&&rD.isTypedArray,H1=aD?M8e(aD):R8e;function jI(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var N8e=Object.prototype,_8e=N8e.hasOwnProperty;function j8e(e,t,n){var r=e[t];(!(_8e.call(e,t)&&zg(r,n))||n===void 0&&!(t in e))&&S3(e,t,n)}function F8e(e,t,n,r){var a=!n;n||(n={});for(var o=-1,i=t.length;++o-1&&e%1==0&&e0){if(++t>=Q8e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var t5e=e5e(X8e);function n5e(e,t){return t5e(G8e(e,t,RG),e+"")}function r5e(e,t,n){if(!Cu(n))return!1;var r=typeof t;return(r=="number"?Hg(n)&&EG(t,n.length):r=="string"&&t in n)?zg(n[t],e):!1}function a5e(e){return n5e(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&r5e(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,a=Object.keys(n).reduce(function(l,c){var u=n[c];return Zs(u)||(l[c]=u),l},{});if(Object.keys(a).length<1||typeof window>"u"||it(t)!=="object"||Zs(t)||t instanceof Blob)return t;var o=Array.isArray(t)?[]:{},i=function l(c,u){var d=Array.isArray(c),f=d?[]:{};return c==null||c===void 0?f:(Object.keys(c).forEach(function(m){var g=function x(w,$){return Array.isArray(w)&&w.forEach(function(E,R){if(E){var I=$==null?void 0:$[R];typeof E=="function"&&($[R]=E($,m,c)),it(E)==="object"&&!Array.isArray(E)&&Object.keys(E).forEach(function(O){var T=I==null?void 0:I[O];if(typeof E[O]=="function"&&T){var N=E[O](I[O],m,c);I[O]=it(N)==="object"?N[O]:N}else it(E[O])==="object"&&Array.isArray(E[O])&&T&&x(E[O],T)}),it(E)==="object"&&Array.isArray(E)&&I&&x(E,I)}}),m},h=u?[u,m].flat(1):[m].flat(1),b=c[m],p=Un(a,h),S=function(){var w,$,E=!1;if(typeof p=="function"){$=p==null?void 0:p(b,m,c);var R=it($);R!=="object"&&R!=="undefined"?(w=m,E=!0):w=$}else w=g(p,b);if(Array.isArray(w)){f=br(f,w,b);return}it(w)==="object"&&!Array.isArray(o)?o=FI(o,w):it(w)==="object"&&Array.isArray(o)?f=P(P({},f),w):(w!==null||w!==void 0)&&(f=br(f,[w],E?$:b))};if(p&&typeof p=="function"&&S(),!(typeof window>"u")){if(o5e(b)){var C=l(b,h);if(Object.keys(C).length<1)return;f=br(f,[m],C);return}S()}}),r?f:c)};return o=Array.isArray(t)&&Array.isArray(o)?ke(i(t)):A1({},i(t),o),o},Fo=function(t){return t===void 0?{}:vl(uo,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}},l5e=["map_row_parentKey"],s5e=["map_row_parentKey","map_row_key"],c5e=["map_row_key"],yw=function(t){return(Qo.warn||Qo.warning)(t)},oo=function(t){return Array.isArray(t)?t.join(","):t};function nm(e,t){var n,r=e.getRowKey,a=e.row,o=e.data,i=e.childrenColumnName,l=i===void 0?"children":i,c=(n=oo(e.key))===null||n===void 0?void 0:n.toString(),u=new Map;function d(m,g,h){m.forEach(function(b,p){var S=(h||0)*10+p,C=r(b,S).toString();b&&it(b)==="object"&&l in b&&d(b[l]||[],C,S);var x=P(P({},b),{},{map_row_key:C,children:void 0,map_row_parentKey:g});delete x.children,g||delete x.map_row_parentKey,u.set(C,x)})}t==="top"&&u.set(c,P(P({},u.get(c)),a)),d(o),t==="update"&&u.set(c,P(P({},u.get(c)),a)),t==="delete"&&u.delete(c);var f=function(g){var h=new Map,b=[],p=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;g.forEach(function(x){if(x.map_row_parentKey&&!x.map_row_key){var w=x.map_row_parentKey,$=Ue(x,l5e);if(h.has(w)||h.set(w,[]),C){var E;(E=h.get(w))===null||E===void 0||E.push($)}}})};return p(t==="top"),g.forEach(function(S){if(S.map_row_parentKey&&S.map_row_key){var C,x=S.map_row_parentKey,w=S.map_row_key,$=Ue(S,s5e);h.has(w)&&($[l]=h.get(w)),h.has(x)||h.set(x,[]),(C=h.get(x))===null||C===void 0||C.push($)}}),p(t==="update"),g.forEach(function(S){if(!S.map_row_parentKey){var C=S.map_row_key,x=Ue(S,c5e);if(C&&h.has(C)){var w=P(P({},x),{},z({},l,h.get(C)));b.push(w);return}b.push(x)}}),b};return f(u)}function u5e(e,t){var n=e.recordKey,r=e.onSave,a=e.row,o=e.children,i=e.newLineConfig,l=e.editorType,c=e.tableName,u=s.useContext(Lg),d=Fn.useFormInstance(),f=_t(!1),m=ce(f,2),g=m[0],h=m[1],b=zn(mn(ht().mark(function p(){var S,C,x,w,$,E,R,I,O;return ht().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.prev=0,C=l==="Map",x=[c,Array.isArray(n)?n[0]:n].map(function(A){return A==null?void 0:A.toString()}).flat(1).filter(Boolean),h(!0),N.next=6,d.validateFields(x,{recursive:!0});case 6:return w=(u==null||(S=u.getFieldFormatValue)===null||S===void 0?void 0:S.call(u,x))||d.getFieldValue(x),Array.isArray(n)&&n.length>1&&($=fR(n),E=$.slice(1),R=Un(w,E),br(w,E,R)),I=C?br({},x,w):w,N.next=11,r==null?void 0:r(n,A1({},a,I),a,i);case 11:return O=N.sent,h(!1),N.abrupt("return",O);case 16:throw N.prev=16,N.t0=N.catch(0),console.log(N.t0),h(!1),N.t0;case 21:case"end":return N.stop()}},p,null,[[0,16]])})));return s.useImperativeHandle(t,function(){return{save:b}},[b]),_.jsxs("a",{onClick:(function(){var p=mn(ht().mark(function S(C){return ht().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return C.stopPropagation(),C.preventDefault(),w.prev=2,w.next=5,b();case 5:w.next=9;break;case 7:w.prev=7,w.t0=w.catch(2);case 9:case"end":return w.stop()}},S,null,[[2,7]])}));return function(S){return p.apply(this,arguments)}})(),children:[g?_.jsx(Ya,{style:{marginInlineEnd:8}}):null,o||"保存"]},"save")}var d5e=function(t){var n=t.recordKey,r=t.onDelete,a=t.preEditRowRef,o=t.row,i=t.children,l=t.deletePopconfirmMessage,c=_t(function(){return!1}),u=ce(c,2),d=u[0],f=u[1],m=zn(mn(ht().mark(function g(){var h;return ht().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,f(!0),p.next=4,r==null?void 0:r(n,o);case 4:return h=p.sent,f(!1),p.abrupt("return",h);case 9:return p.prev=9,p.t0=p.catch(0),console.log(p.t0),f(!1),p.abrupt("return",null);case 14:return p.prev=14,a&&(a.current=null),p.finish(14);case 17:case"end":return p.stop()}},g,null,[[0,9,14,17]])})));return i!==!1?_.jsx(k4,{title:l,onConfirm:function(){return m()},children:_.jsxs("a",{children:[d?_.jsx(Ya,{style:{marginInlineEnd:8}}):null,i||"删除"]})},"delete"):null},f5e=function(t){var n=t.recordKey,r=t.tableName,a=t.newLineConfig,o=t.editorType,i=t.onCancel,l=t.cancelEditable,c=t.row,u=t.cancelText,d=t.preEditRowRef,f=s.useContext(Lg),m=Fn.useFormInstance();return _.jsx("a",{onClick:(function(){var g=mn(ht().mark(function h(b){var p,S,C,x,w,$,E;return ht().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return b.stopPropagation(),b.preventDefault(),S=o==="Map",C=[r,n].flat(1).filter(Boolean),x=(f==null||(p=f.getFieldFormatValue)===null||p===void 0?void 0:p.call(f,C))||(m==null?void 0:m.getFieldValue(C)),w=S?br({},C,x):x,I.next=8,i==null?void 0:i(n,w,c,a);case 8:return $=I.sent,I.next=11,l(n);case 11:if((d==null?void 0:d.current)===null){I.next=15;break}m.setFieldsValue(br({},C,d==null?void 0:d.current)),I.next=17;break;case 15:return I.next=17,(E=t.onDelete)===null||E===void 0?void 0:E.call(t,n,c);case 17:return d&&(d.current=null),I.abrupt("return",$);case 19:case"end":return I.stop()}},h)}));return function(h){return g.apply(this,arguments)}})(),children:u||"取消"},"cancel")};function v5e(e,t){var n=t.recordKey,r=t.newLineConfig,a=t.saveText,o=t.deleteText,i=s.forwardRef(u5e),l=s.createRef();return{save:_.jsx(i,P(P({},t),{},{row:e,ref:l,children:a}),"save"+n),saveRef:l,delete:(r==null?void 0:r.options.recordKey)!==n?_.jsx(d5e,P(P({},t),{},{row:e,children:o}),"delete"+n):void 0,cancel:_.jsx(f5e,P(P({},t),{},{row:e}),"cancel"+n)}}function m5e(e){var t=kn(),n=s.useRef(null),r=s.useState(void 0),a=ce(r,2),o=a[0],i=a[1],l=function(){var G=new Map,Y=function J(Q,Z){Q==null||Q.forEach(function(ne,ae){var le,re=Z==null?ae.toString():Z+"_"+ae.toString();G.set(re,oo(e.getRowKey(ne,-1))),G.set((le=oo(e.getRowKey(ne,-1)))===null||le===void 0?void 0:le.toString(),re),e.childrenColumnName&&ne!==null&&ne!==void 0&&ne[e.childrenColumnName]&&J(ne[e.childrenColumnName],re)})};return Y(e.dataSource),G},c=s.useMemo(function(){return l()},[]),u=s.useRef(c),d=s.useRef(void 0);fG(function(){u.current=l()},[e.dataSource]),d.current=o;var f=e.type||"single",m=Bq(e.dataSource,"children",e.getRowKey),g=ce(m,1),h=g[0],b=_t([],{value:e.editableKeys,onChange:e.onChange?function(U){var G,Y,J;e==null||(G=e.onChange)===null||G===void 0||G.call(e,(Y=U==null?void 0:U.filter(function(Q){return Q!==void 0}))!==null&&Y!==void 0?Y:[],(J=U==null?void 0:U.map(function(Q){return h(Q)}).filter(function(Q){return Q!==void 0}))!==null&&J!==void 0?J:[])}:void 0}),p=ce(b,2),S=p[0],C=p[1],x=s.useMemo(function(){var U=f==="single"?S==null?void 0:S.slice(0,1):S;return new Set(U)},[(S||[]).join(","),f]),w=pm(S),$=zn(function(U){var G,Y,J,Q,Z=(G=e.getRowKey(U,U.index))===null||G===void 0||(Y=G.toString)===null||Y===void 0?void 0:Y.call(G),ne=(J=e.getRowKey(U,-1))===null||J===void 0||(Q=J.toString)===null||Q===void 0?void 0:Q.call(J),ae=S==null?void 0:S.map(function(fe){return fe==null?void 0:fe.toString()}),le=(w==null?void 0:w.map(function(fe){return fe==null?void 0:fe.toString()}))||[],re=e.tableName&&!!(le!=null&&le.includes(ne))||!!(le!=null&&le.includes(Z));return{recordKey:ne,isEditable:e.tableName&&(ae==null?void 0:ae.includes(ne))||(ae==null?void 0:ae.includes(Z)),preIsEditable:re}}),E=zn(function(U,G){var Y,J;return x.size>0&&f==="single"&&e.onlyOneLineEditorAlertMessage!==!1?(yw(e.onlyOneLineEditorAlertMessage||t.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1):(x.add(U),C(Array.from(x)),n.current=(Y=G??((J=e.dataSource)===null||J===void 0?void 0:J.find(function(Q,Z){return e.getRowKey(Q,Z)===U})))!==null&&Y!==void 0?Y:null,!0)}),R=zn((function(){var U=mn(ht().mark(function G(Y,J){var Q,Z;return ht().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(Q=oo(Y).toString(),Z=u.current.get(Q),!(!x.has(Q)&&Z&&(J??!0)&&e.tableName)){ae.next=5;break}return R(Z,!1),ae.abrupt("return");case 5:return o&&o.options.recordKey===Y&&i(void 0),x.delete(Q),x.delete(oo(Y)),C(Array.from(x)),ae.abrupt("return",!0);case 10:case"end":return ae.stop()}},G)}));return function(G,Y){return U.apply(this,arguments)}})()),I=k1(mn(ht().mark(function U(){var G,Y,J,Q,Z=arguments;return ht().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:for(Y=Z.length,J=new Array(Y),Q=0;Q0&&f==="single"&&e.onlyOneLineEditorAlertMessage!==!1)return yw(e.onlyOneLineEditorAlertMessage||t.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1;var Y=e.getRowKey(U,-1);if(!Y&&Y!==0)throw $a(!!Y,`请设置 recordCreatorProps.record 并返回一个唯一的key - https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("请设置 recordCreatorProps.record 并返回一个唯一的key");if(x.add(Y),C(Array.from(x)),(G==null?void 0:G.newRecordType)==="dataSource"||e.tableName){var J,Q={data:e.dataSource,getRowKey:e.getRowKey,row:P(P({},U),{},{map_row_parentKey:G!=null&&G.parentKey?(J=oo(G==null?void 0:G.parentKey))===null||J===void 0?void 0:J.toString():void 0}),key:Y,childrenColumnName:e.childrenColumnName||"children"};e.setDataSource(nm(Q,(G==null?void 0:G.position)==="top"?"top":"update"))}else i({defaultValue:U,options:P(P({},G),{},{recordKey:Y})});return!0}),k=(e==null?void 0:e.saveText)||t.getMessage("editableTable.action.save","保存"),j=(e==null?void 0:e.deleteText)||t.getMessage("editableTable.action.delete","删除"),D=(e==null?void 0:e.cancelText)||t.getMessage("editableTable.action.cancel","取消"),F=zn((function(){var U=mn(ht().mark(function G(Y,J,Q,Z){var ne,ae,le,re,fe,ue,de;return ht().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,e==null||(ne=e.onSave)===null||ne===void 0?void 0:ne.call(e,Y,J,Q,Z);case 2:return re=se.sent,se.next=5,R(Y);case 5:if(fe=Z||d.current||{},ue=fe.options,!(!(ue!=null&&ue.parentKey)&&(ue==null?void 0:ue.recordKey)===Y)){se.next=9;break}return(ue==null?void 0:ue.position)==="top"?e.setDataSource([J].concat(ke(e.dataSource))):e.setDataSource([].concat(ke(e.dataSource),[J])),se.abrupt("return",re);case 9:return de={data:e.dataSource,getRowKey:e.getRowKey,row:ue?P(P({},J),{},{map_row_parentKey:(ae=oo((le=ue==null?void 0:ue.parentKey)!==null&&le!==void 0?le:""))===null||ae===void 0?void 0:ae.toString()}):J,key:Y,childrenColumnName:e.childrenColumnName||"children"},e.setDataSource(nm(de,(ue==null?void 0:ue.position)==="top"?"top":"update")),se.next=13,R(Y);case 13:return se.abrupt("return",re);case 14:case"end":return se.stop()}},G)}));return function(G,Y,J,Q){return U.apply(this,arguments)}})()),L=zn((function(){var U=mn(ht().mark(function G(Y,J){var Q,Z,ne;return ht().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Z={data:e.dataSource,getRowKey:e.getRowKey,row:J,key:Y,childrenColumnName:e.childrenColumnName||"children"},le.next=3,e==null||(Q=e.onDelete)===null||Q===void 0?void 0:Q.call(e,Y,J);case 3:return ne=le.sent,le.next=6,R(Y,!1);case 6:return e.setDataSource(nm(Z,"delete")),le.abrupt("return",ne);case 8:case"end":return le.stop()}},G)}));return function(G,Y){return U.apply(this,arguments)}})()),B=zn((function(){var U=mn(ht().mark(function G(Y,J,Q,Z){var ne,ae;return ht().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.next=2,e==null||(ne=e.onCancel)===null||ne===void 0?void 0:ne.call(e,Y,J,Q,Z);case 2:return ae=re.sent,re.abrupt("return",ae);case 4:case"end":return re.stop()}},G)}));return function(G,Y,J,Q){return U.apply(this,arguments)}})()),K=e.actionRender&&typeof e.actionRender=="function",W=K?e.actionRender:function(){},V=zn(W),q=function(G){var Y=e.getRowKey(G,G.index),J={saveText:k,cancelText:D,deleteText:j,addEditRecord:A,recordKey:Y,cancelEditable:R,index:G.index,tableName:e.tableName,newLineConfig:o,onCancel:B,onDelete:L,onSave:F,editableKeys:S,setEditableRowKeys:C,preEditRowRef:n,deletePopconfirmMessage:e.deletePopconfirmMessage||"".concat(t.getMessage("deleteThisLine","删除此项"),"?")},Q=v5e(G,J);return e.tableName?T.current.set(u.current.get(oo(Y))||oo(Y),Q.saveRef):T.current.set(oo(Y),Q.saveRef),K?V(G,J,{save:Q.save,delete:Q.delete,cancel:Q.cancel}):[Q.save,Q.delete,Q.cancel]};return{editableKeys:S,setEditableRowKeys:C,isEditable:$,actionRender:q,startEditable:E,cancelEditable:R,addEditRecord:A,saveEditable:N,newLineRecord:o,preEditableKeys:w,onValuesChange:O,getRealIndex:e.getRealIndex}}function sd(e){var t=typeof window>"u",n=s.useState(function(){return t?!1:window.matchMedia(e).matches}),r=ce(n,2),a=r[0],o=r[1];return s.useLayoutEffect(function(){if(!t){var i=window.matchMedia(e),l=function(u){return o(u.matches)};return i.addListener(l),function(){return i.removeListener(l)}}},[e]),a}var ws={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},g5e=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(ws).find(function(r){var a=ws[r].matchMedia;return!!window.matchMedia(a).matches});return t=n,t},p5e=function(){var t=sd(ws.md.matchMedia),n=sd(ws.lg.matchMedia),r=sd(ws.xxl.matchMedia),a=sd(ws.xl.matchMedia),o=sd(ws.sm.matchMedia),i=sd(ws.xs.matchMedia),l=s.useState(g5e()),c=ce(l,2),u=c[0],d=c[1];return s.useEffect(function(){if(r){d("xxl");return}if(a){d("xl");return}if(n){d("lg");return}if(t){d("md");return}if(o){d("sm");return}if(i){d("xs");return}d("md")},[t,n,r,a,o,i]),u},h5e=function(t){var n=t.componentCls,r=t.antCls;return z({},"".concat(n,"-actions"),z(z({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:t.marginXS,background:t.colorBgContainer,borderBlockStart:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:t.colorTextSecondary,transition:"color 0.3s","&:hover":{color:t.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:t.marginSM,marginInline:0,color:t.colorTextSecondary,textAlign:"center",a:{color:t.colorTextSecondary,transition:"color 0.3s","&:hover":{color:t.colorPrimaryHover}},div:z(z({position:"relative",display:"block",minWidth:32,fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer","&:hover":{color:t.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(r,`-btn), - > .anticon`),{display:"inline-block",width:"100%",color:t.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:t.colorPrimaryHover}}),".anticon",{fontSize:t.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)}}))};function b5e(e){return $n("ProCardActions",function(t){var n=P(P({},t),{},{componentCls:".".concat(e),cardActionIconSize:16});return[h5e(n)]})}var y5e=function(t){var n=t.actions,r=t.prefixCls,a=b5e(r),o=a.wrapSSR,i=a.hashId;return Array.isArray(n)&&n!==null&&n!==void 0&&n.length?o(_.jsx("ul",{className:oe("".concat(r,"-actions"),i),children:n.map(function(l,c){return _.jsx("li",{style:{width:"".concat(100/n.length,"%"),padding:0,margin:0},className:oe("".concat(r,"-actions-item"),i),children:l},"action-".concat(c))})})):o(_.jsx("ul",{className:oe("".concat(r,"-actions"),i),children:n}))},C5e=function(t){return z({},t.componentCls,z(z(z(z(z({display:"flex",fontSize:t.fontSize,"& + &":{marginBlockStart:4},"&-tip":{marginInlineStart:4},"&-wrapper":z({display:"flex",width:"100%"},"".concat(t.componentCls,"-status"),{width:"14px"}),"&-icon":{marginInlineEnd:16},"&-trend-icon":{width:0,height:0,borderInlineEnd:"3.5px solid transparent",borderBlockEnd:"9px solid #000",borderInlineStart:"3.5px solid transparent","&-up":{transform:"rotate(0deg)"},"&-down":{transform:"rotate(180deg)"}},"&-content":z({width:"100%"},"".concat(t.antCls,"-statistic-content"),{"&-value-int":{fontSize:t.fontSizeHeading3}}),"&-description":{width:"100%"}},"".concat(t.antCls,"-statistic-title"),{color:t.colorText}),"&-trend-up",z({},"".concat(t.antCls,"-statistic-content"),z({color:"#f5222d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#f5222d"}))),"&-trend-down",z({},"".concat(t.antCls,"-statistic-content"),z({color:"#389e0d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#52c41a"}))),"& &-layout-horizontal",z(z(z({display:"flex",justifyContent:"space-between"},"".concat(t.antCls,"-statistic-title"),{marginBlockEnd:0}),"".concat(t.antCls,"-statistic-content-value"),{fontWeight:500}),"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSize})),"& &-layout-inline",z(z(z({display:"inline-flex",color:t.colorTextSecondary},"".concat(t.antCls,"-statistic-title"),{marginInlineEnd:"6px",marginBlockEnd:0}),"".concat(t.antCls,"-statistic-content"),{color:t.colorTextSecondary}),"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSizeSM})))};function S5e(e){return $n("Statistic",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[C5e(n)]})}var x5e=["className","layout","style","description","children","title","tip","status","trend","prefix","icon"],MG=function(t){var n=t.className,r=t.layout,a=r===void 0?"inline":r,o=t.style,i=t.description;t.children;var l=t.title,c=t.tip,u=t.status,d=t.trend,f=t.prefix,m=t.icon,g=Ue(t,x5e),h=s.useContext(Mt.ConfigContext),b=h.getPrefixCls,p=b("pro-card-statistic"),S=S5e(p),C=S.wrapSSR,x=S.hashId,w=oe(p,n,x),$=oe("".concat(p,"-status"),x),E=oe("".concat(p,"-icon"),x),R=oe("".concat(p,"-wrapper"),x),I=oe("".concat(p,"-content"),x),O=oe(x,z(z({},"".concat(p,"-layout-").concat(a),a),"".concat(p,"-trend-").concat(d),d)),T=c&&_.jsx(Kn,{title:c,children:_.jsx(AK,{className:"".concat(p,"-tip ").concat(x).trim()})}),N=oe("".concat(p,"-trend-icon"),x,z({},"".concat(p,"-trend-icon-").concat(d),d)),A=d&&_.jsx("div",{className:N}),k=u&&_.jsx("div",{className:$,children:_.jsx(Oo,{status:u,text:null})}),j=m&&_.jsx("div",{className:E,children:m});return C(_.jsxs("div",{className:w,style:o,children:[j,_.jsxs("div",{className:R,children:[k,_.jsxs("div",{className:I,children:[_.jsx(E1,P({title:(l||T)&&_.jsxs(_.Fragment,{children:[l,T]}),prefix:(A||f)&&_.jsxs(_.Fragment,{children:[A,f]}),className:O},g)),i&&_.jsx("div",{className:"".concat(p,"-description ").concat(x).trim(),children:i})]})]})]}))},w5e=new Cn("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),$5e=function(t){return z({},t.componentCls,z(z({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(t.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(t.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:t.borderRadius,animationName:w5e,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function E5e(e){return $n("ProCardLoading",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[$5e(n)]})}var P5e=function(t){var n=t.style,r=t.prefix,a=E5e(r||"ant-pro-card"),o=a.wrapSSR;return o(_.jsxs("div",{className:"".concat(r,"-loading-content"),style:n,children:[_.jsx(Pi,{gutter:8,children:_.jsx(Xr,{span:22,children:_.jsx("div",{className:"".concat(r,"-loading-block")})})}),_.jsxs(Pi,{gutter:8,children:[_.jsx(Xr,{span:8,children:_.jsx("div",{className:"".concat(r,"-loading-block")})}),_.jsx(Xr,{span:15,children:_.jsx("div",{className:"".concat(r,"-loading-block")})})]}),_.jsxs(Pi,{gutter:8,children:[_.jsx(Xr,{span:6,children:_.jsx("div",{className:"".concat(r,"-loading-block")})}),_.jsx(Xr,{span:18,children:_.jsx("div",{className:"".concat(r,"-loading-block")})})]}),_.jsxs(Pi,{gutter:8,children:[_.jsx(Xr,{span:13,children:_.jsx("div",{className:"".concat(r,"-loading-block")})}),_.jsx(Xr,{span:9,children:_.jsx("div",{className:"".concat(r,"-loading-block")})})]}),_.jsxs(Pi,{gutter:8,children:[_.jsx(Xr,{span:4,children:_.jsx("div",{className:"".concat(r,"-loading-block")})}),_.jsx(Xr,{span:3,children:_.jsx("div",{className:"".concat(r,"-loading-block")})}),_.jsx(Xr,{span:16,children:_.jsx("div",{className:"".concat(r,"-loading-block")})})]})]}))},O5e=["tab","children"],I5e=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function R5e(e){return e.filter(function(t){return t})}function M5e(e,t,n){if(e)return e.map(function(a){return P(P({},a),{},{children:_.jsx(af,P(P({},n==null?void 0:n.cardProps),{},{children:a.children}))})});$a(!n,"Tabs.TabPane is deprecated. Please use `items` directly.");var r=rr(t).map(function(a){if(ee.isValidElement(a)){var o=a.key,i=a.props,l=i||{},c=l.tab,u=l.children,d=Ue(l,O5e),f=P(P({key:String(o)},d),{},{children:_.jsx(af,P(P({},n==null?void 0:n.cardProps),{},{children:u})),label:c});return f}return null});return R5e(r)}var T5e=function(t){var n=s.useContext(Mt.ConfigContext),r=n.getPrefixCls;if(uo.startsWith("5"))return _.jsx(_.Fragment,{});var a=t.key,o=t.tab,i=t.tabKey,l=t.disabled,c=t.destroyInactiveTabPane,u=t.children,d=t.className,f=t.style,m=t.cardProps,g=Ue(t,I5e),h=r("pro-card-tabpane"),b=oe(h,d);return _.jsx(il.TabPane,P(P({tabKey:i,tab:o,className:b,style:f,disabled:l,destroyInactiveTabPane:c},g),{},{children:_.jsx(af,P(P({},m),{},{children:u}))}),a)},iD=function(t){return{backgroundColor:t.controlItemBgActive,borderColor:t.controlOutline}},N5e=function(t){var n=t.componentCls;return z(z(z({},n,P(P({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:t.colorBgContainer,borderRadius:t.borderRadius,transition:"all 0.3s"},Al==null?void 0:Al(t)),{},z(z(z(z(z(z(z(z(z(z({"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)},"&-hoverable":z({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(n,"-checked:hover"),{borderColor:t.controlOutline}),"&-checked":P(P({},iD(t)),{},{"&::after":{visibility:"visible",position:"absolute",insetBlockStart:2,insetInlineEnd:2,opacity:1,width:0,height:0,border:"6px solid ".concat(t.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":P({},iD(t)),"&&-ghost":z({backgroundColor:"transparent"},"> ".concat(n),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:t.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},"".concat(n,"-body-direction-column"),{flexDirection:"column"}),"".concat(n,"-body-wrap"),{flexWrap:"wrap"}),"&&-collapse",z({},"> ".concat(n),{"&-header":{paddingBlockEnd:t.padding,borderBlockEnd:0},"&-body":{display:"none"}})),"".concat(n,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:t.paddingLG,paddingBlock:t.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:t.padding},borderBlockEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)},"&-collapsible":{cursor:"pointer"}}),"".concat(n,"-title"),{color:t.colorText,fontWeight:500,fontSize:t.fontSizeLG,lineHeight:t.lineHeight}),"".concat(n,"-extra"),{color:t.colorText}),"".concat(n,"-type-inner"),z({},"".concat(n,"-header"),{backgroundColor:t.colorFillAlter})),"".concat(n,"-collapsible-icon"),{marginInlineEnd:t.marginXS,color:t.colorIconHover,":hover":{color:t.colorPrimaryHover},"& svg":{transition:"transform ".concat(t.motionDurationMid)}}),"".concat(n,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:t.paddingLG,paddingBlock:t.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),"&&-size-small",z(z({},n,{"&-header":{paddingInline:t.paddingSM,paddingBlock:t.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:t.paddingXS}},"&-title":{fontSize:t.fontSize},"&-body":{paddingInline:t.paddingSM,paddingBlock:t.paddingSM}}),"".concat(n,"-header").concat(n,"-header-collapsible"),{paddingBlock:t.paddingXS})))),"".concat(n,"-col"),z(z({},"&".concat(n,"-split-vertical"),{borderInlineEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)}),"&".concat(n,"-split-horizontal"),{borderBlockEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)})),"".concat(n,"-tabs"),z(z(z(z(z(z({},"".concat(t.antCls,"-tabs-top > ").concat(t.antCls,"-tabs-nav"),z({marginBlockEnd:0},"".concat(t.antCls,"-tabs-nav-list"),{marginBlockStart:t.marginXS,paddingInlineStart:t.padding})),"".concat(t.antCls,"-tabs-bottom > ").concat(t.antCls,"-tabs-nav"),z({marginBlockEnd:0},"".concat(t.antCls,"-tabs-nav-list"),{paddingInlineStart:t.padding})),"".concat(t.antCls,"-tabs-left"),z({},"".concat(t.antCls,"-tabs-content-holder"),z({},"".concat(t.antCls,"-tabs-content"),z({},"".concat(t.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(t.antCls,"-tabs-left > ").concat(t.antCls,"-tabs-nav"),z({marginInlineEnd:0},"".concat(t.antCls,"-tabs-nav-list"),{paddingBlockStart:t.padding})),"".concat(t.antCls,"-tabs-right"),z({},"".concat(t.antCls,"-tabs-content-holder"),z({},"".concat(t.antCls,"-tabs-content"),z({},"".concat(t.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(t.antCls,"-tabs-right > ").concat(t.antCls,"-tabs-nav"),z({},"".concat(t.antCls,"-tabs-nav-list"),{paddingBlockStart:t.padding})))},TG=24,_5e=function(t,n){var r=n.componentCls;return t===0?z({},"".concat(r,"-col-0"),{display:"none"}):z({},"".concat(r,"-col-").concat(t),{flexShrink:0,width:"".concat(t/TG*100,"%")})},j5e=function(t){return Array(TG+1).fill(1).map(function(n,r){return _5e(r,t)})};function F5e(e){return $n("ProCard",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[N5e(n),j5e(n)]})}var D5e=["className","style","bodyStyle","headStyle","title","subTitle","extra","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","colStyle","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],af=ee.forwardRef(function(e,t){var n,r=e.className,a=e.style,o=e.bodyStyle,i=e.headStyle,l=e.title,c=e.subTitle,u=e.extra,d=e.wrap,f=d===void 0?!1:d,m=e.layout,g=e.loading,h=e.gutter,b=h===void 0?0:h,p=e.tooltip,S=e.split,C=e.headerBordered,x=C===void 0?!1:C,w=e.bordered,$=w===void 0?!1:w,E=e.boxShadow,R=E===void 0?!1:E,I=e.children,O=e.size,T=e.actions,N=e.ghost,A=N===void 0?!1:N,k=e.hoverable,j=k===void 0?!1:k,D=e.direction,F=e.collapsed,L=e.collapsible,B=L===void 0?!1:L,K=e.collapsibleIconRender,W=e.colStyle,V=e.defaultCollapsed,q=V===void 0?!1:V,U=e.onCollapse,G=e.checked,Y=e.onChecked,J=e.tabs,Q=e.type,Z=Ue(e,D5e),ne=s.useContext(Mt.ConfigContext),ae=ne.getPrefixCls,le=uu()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},re=_t(q,{value:F,onChange:U}),fe=ce(re,2),ue=fe[0],de=fe[1],ie=["xxl","xl","lg","md","sm","xs"],se=M5e(J==null?void 0:J.items,I,J),ve=function(_e){var Be=[0,0],Qe=Array.isArray(_e)?_e:[_e,0];return Qe.forEach(function(lt,Ke){if(it(lt)==="object")for(var et=0;et=0&&Ke<=24)),Ze=ge(_.jsx("div",{style:P(P(P(P({},et),he(He>0,{paddingInlineEnd:He/2,paddingInlineStart:He/2})),he(Te>0,{paddingBlockStart:Te/2,paddingBlockEnd:Te/2})),W),className:st,children:ee.cloneElement(we)}));return ee.cloneElement(Ze,{key:"pro-card-col-".concat((we==null?void 0:we.key)||_e)})}return we}),Ee=oe("".concat(pe),r,ye,(n={},z(z(z(z(z(z(z(z(z(z(n,"".concat(pe,"-border"),$),"".concat(pe,"-box-shadow"),R),"".concat(pe,"-contain-card"),Re),"".concat(pe,"-loading"),g),"".concat(pe,"-split"),S==="vertical"||S==="horizontal"),"".concat(pe,"-ghost"),A),"".concat(pe,"-hoverable"),j),"".concat(pe,"-size-").concat(O),O),"".concat(pe,"-type-").concat(Q),Q),"".concat(pe,"-collapse"),ue),z(n,"".concat(pe,"-checked"),G))),Le=oe("".concat(pe,"-body"),ye,z(z(z({},"".concat(pe,"-body-center"),m==="center"),"".concat(pe,"-body-direction-column"),S==="horizontal"||D==="column"),"".concat(pe,"-body-wrap"),f&&Re)),Pe=o,ze=ee.isValidElement(g)?g:_.jsx(P5e,{prefix:pe,style:(o==null?void 0:o.padding)===0||(o==null?void 0:o.padding)==="0px"?{padding:24}:void 0}),Oe=B&&F===void 0&&(K?K({collapsed:ue}):_.jsx(ai,{onClick:function(){B==="icon"&&de(!ue)},rotate:ue?void 0:90,className:"".concat(pe,"-collapsible-icon ").concat(ye).trim()}));return ge(_.jsxs("div",P(P({className:Ee,style:a,ref:t,onClick:function(_e){var Be;Y==null||Y(_e),Z==null||(Be=Z.onClick)===null||Be===void 0||Be.call(Z,_e)}},nn(Z,["prefixCls","colSpan"])),{},{children:[(l||u||Oe)&&_.jsxs("div",{className:oe("".concat(pe,"-header"),ye,z(z({},"".concat(pe,"-header-border"),x||Q==="inner"),"".concat(pe,"-header-collapsible"),Oe)),style:i,onClick:function(){(B==="header"||B===!0)&&de(!ue)},children:[_.jsxs("div",{className:"".concat(pe,"-title ").concat(ye).trim(),children:[Oe,_.jsx(au,{label:l,tooltip:p,subTitle:c})]}),u&&_.jsx("div",{className:"".concat(pe,"-extra ").concat(ye).trim(),onClick:function(_e){return _e.stopPropagation()},children:u})]}),J?_.jsx("div",{className:"".concat(pe,"-tabs ").concat(ye).trim(),children:_.jsx(il,P(P({onChange:J.onChange},nn(J,["cardProps"])),{},{items:se,children:g?ze:I}))}):_.jsx("div",{className:Le,style:Pe,children:g?ze:je}),T?_.jsx(y5e,{actions:T,prefixCls:pe}):null]})))}),k5e=function(t){var n=t.componentCls;return z({},n,{"&-divider":{flex:"none",width:t.lineWidth,marginInline:t.marginXS,marginBlock:t.marginLG,backgroundColor:t.colorSplit,"&-horizontal":{width:"initial",height:t.lineWidth,marginInline:t.marginLG,marginBlock:t.marginXS}},"&&-size-small &-divider":{marginBlock:t.marginLG,marginInline:t.marginXS,"&-horizontal":{marginBlock:t.marginXS,marginInline:t.marginLG}}})};function A5e(e){return $n("ProCardDivider",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[k5e(n)]})}var NG=function(t){var n=s.useContext(Mt.ConfigContext),r=n.getPrefixCls,a=r("pro-card"),o="".concat(a,"-divider"),i=A5e(a),l=i.wrapSSR,c=i.hashId,u=t.className,d=t.style,f=d===void 0?{}:d,m=t.type,g=oe(o,u,c,z({},"".concat(o,"-").concat(m),m));return l(_.jsx("div",{className:g,style:f}))},L5e=function(t){return z({},t.componentCls,{display:"flex",flexDirection:"column",justifyContent:"flex-end",marginBlock:t.marginLG,marginInline:0,color:t.colorText,fontWeight:"500",fontSize:"20px",lineHeight:"38px"})};function B5e(e){return $n("ProCardOperation",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[L5e(n)]})}var z5e=function(t){var n=t.className,r=t.style,a=r===void 0?{}:r,o=t.children,i=s.useContext(Mt.ConfigContext),l=i.getPrefixCls,c=l("pro-card-operation"),u=B5e(c),d=u.wrapSSR,f=u.hashId,m=oe(c,n,f);return d(_.jsx("div",{className:m,style:a,children:o}))},H5e=function(t){return z({},t.componentCls,{"&-chart":{display:"flex",flexDirection:"column",marginBlockStart:8,marginBlockEnd:8,"&-left":{marginBlockStart:0,marginInlineEnd:"16px"},"&-right":{marginBlockStart:0,marginInlineStart:"16px"}},"&-content":{display:"flex",flexDirection:"column","&-horizontal":z({flexDirection:"row"},"".concat(t.componentCls,"-chart"),{alignItems:"center",alignSelf:"flex-start"})},"&-footer":{marginBlockStart:8,paddingBlockStart:"16px",borderBlockStart:"rgba(0, 0, 0, 0.08) solid ".concat(t.colorBorder)}})};function V5e(e){return $n("StatisticCard",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[H5e(n)]})}var W5e=["children","statistic","className","chart","chartPlacement","footer"],qa=function(t){var n=t.children,r=t.statistic,a=t.className,o=t.chart,i=t.chartPlacement,l=t.footer,c=Ue(t,W5e),u=s.useContext(Mt.ConfigContext),d=u.getPrefixCls,f=d("pro-statistic-card"),m=V5e(f),g=m.wrapSSR,h=m.hashId,b=oe(f,a,h),p=r&&_.jsx(MG,P({layout:"vertical"},r)),S=oe("".concat(f,"-chart"),h,z(z({},"".concat(f,"-chart-left"),i==="left"&&o&&r),"".concat(f,"-chart-right"),i==="right"&&o&&r)),C=o&&_.jsx("div",{className:S,children:o}),x=oe("".concat(f,"-content "),h,z({},"".concat(f,"-content-horizontal"),i==="left"||i==="right")),w=(C||p)&&(i==="left"?_.jsxs("div",{className:x,children:[C,p]}):_.jsxs("div",{className:x,children:[p,C]})),$=l&&_.jsx("div",{className:"".concat(f,"-footer ").concat(h).trim(),children:l});return g(_.jsxs(af,P(P({className:b},c),{},{children:[w,n,$]})))},K5e=function(t){return _.jsx(qa,P({bodyStyle:{padding:0}},t))};qa.Statistic=MG;qa.Divider=NG;qa.Operation=z5e;qa.isProCard=!0;qa.Group=K5e;var q5e=function(t){return _.jsx(af,P({bodyStyle:{padding:0}},t))},Vg=af;Vg.isProCard=!0;Vg.Divider=NG;Vg.TabPane=T5e;Vg.Group=q5e;var bm=function(){return bm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||!window.URL)return{};var d=[];i.forEach(function(m,g){d.push({key:g,value:m})}),d=d.reduce(function(m,g){return(m[g.key]=m[g.key]||[]).push(g),m},{}),d=Object.keys(d).map(function(m){var g=d[m];return g.length===1?[m,g[0].value]:[m,g.map(function(h){var b=h.value;return b})]});var f=bm({},e);return d.forEach(function(m){var g=m[0],h=m[1];f[g]=X5e(g,h,{},e)}),f},[t.disabled,e,i]);function c(d){if(!(typeof window>"u"||!window.URL)){var f=U5e(d);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),i.toString()!==f.searchParams.toString()&&a({})}}s.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||c(bm(bm({},e),l))},[t.disabled,l]);var u=function(d){c(d)};return s.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var d=function(){a({})};return window.addEventListener("popstate",d),function(){window.removeEventListener("popstate",d)}},[t.disabled]),[l,u]}var Y5e={true:!0,false:!1};function X5e(e,t,n,r){if(!n)return t;var a=n[e],o=t===void 0?r[e]:t;return a===Number?Number(o):a===Boolean||t==="true"||t==="false"?Y5e[o]:Array.isArray(a)?a.find(function(i){return i==o})||r[e]:o}var Zl=ee.createContext({}),Q5e=["children","Wrapper"],J5e=["children","Wrapper"],x3=s.createContext({grid:!1,colProps:void 0,rowProps:void 0}),Z5e=function(t){var n=t.grid,r=t.rowProps,a=t.colProps;return{grid:!!n,RowWrapper:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.children,c=i.Wrapper,u=Ue(i,Q5e);return n?_.jsx(Pi,P(P(P({gutter:8},r),u),{},{children:l})):c?_.jsx(c,{children:l}):l},ColWrapper:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.children,c=i.Wrapper,u=Ue(i,J5e),d=s.useMemo(function(){var f=P(P({},a),u);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[u]);return n?_.jsx(Xr,P(P({},d),{},{children:l})):c?_.jsx(c,{children:l}):l}}},Bf=function(t){var n=s.useMemo(function(){return it(t)==="object"?t:{grid:t}},[t]),r=s.useContext(x3),a=r.grid,o=r.colProps;return s.useMemo(function(){return Z5e({grid:!!(a||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||o,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,a,JSON.stringify([o,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},e_e=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],t_e=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],lD={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},n_e=["switch","radioButton","radio","rate"];function _G(e,t){e.displayName="ProFormComponent";var n=function(o){var i=P(P({},o==null?void 0:o.filedConfig),t),l=i.valueType,c=i.customLightMode,u=i.lightFilterLabelFormatter,d=i.valuePropName,f=d===void 0?"value":d,m=i.ignoreWidth,g=i.defaultProps,h=Ue(i,e_e),b=P(P({},g),o),p=b.label,S=b.tooltip,C=b.placeholder,x=b.width,w=b.bordered,$=b.messageVariables,E=b.ignoreFormItem,R=b.transform,I=b.convertValue,O=b.readonly,T=b.allowClear;b.colSize;var N=b.getFormItemProps,A=b.getFieldProps;b.filedConfig;var k=b.cacheForSwr,j=b.proFieldProps,D=Ue(b,t_e),F=l||D.valueType,L=s.useMemo(function(){return m||n_e.includes(F)},[m,F]),B=s.useState(),K=ce(B,2),W=K[1],V=s.useState(),q=ce(V,2),U=q[0],G=q[1],Y=ee.useContext(Zl),J=_a(function(){return{formItemProps:N==null?void 0:N(),fieldProps:A==null?void 0:A()}},[A,N,D.dependenciesValues,U]),Q=_a(function(){var ge=P(P(P(P({},E?jr({value:D.value}):{}),{},{placeholder:C,disabled:o.disabled},Y.fieldProps),J.fieldProps),D.fieldProps);return ge.style=jr(ge==null?void 0:ge.style),ge},[E,D.value,D.fieldProps,C,o.disabled,Y.fieldProps,J.fieldProps]),Z=$Te(D),ne=_a(function(){return P(P(P(P({},Y.formItemProps),Z),J.formItemProps),D.formItemProps)},[J.formItemProps,Y.formItemProps,D.formItemProps,Z]),ae=_a(function(){return P(P({messageVariables:$},h),ne)},[h,ne,$]);$a(!D.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var le=s.useContext(Gs),re=le.prefixName,fe=_a(function(){var ge,ye=ae==null?void 0:ae.name;Array.isArray(ye)&&(ye=ye.join("_")),Array.isArray(re)&&ye&&(ye="".concat(re.join("."),".").concat(ye));var xe=ye&&"form-".concat((ge=Y.formKey)!==null&&ge!==void 0?ge:"","-field-").concat(ye);return xe},[zs(ae==null?void 0:ae.name),re,Y.formKey]),ue=zn(function(){var ge;N||A?G([]):D.renderFormItem&&W([]);for(var ye=arguments.length,xe=new Array(ye),$e=0;$e0?se.map(function(he,Ce){var pe=ve==null?void 0:ve[Ce],Se=pe==null?void 0:pe["data-item"];return P(P(P({},Se||{}),he),{},{label:F&&Se?Se.label:he.label})}):[]},de=function ie(se){return se.map(function(ve,he){var Ce,pe=ve,Se=pe.className,ge=pe.optionType,ye=Ue(pe,l_e),xe=ve[W],$e=ve[q],He=(Ce=ve[G])!==null&&Ce!==void 0?Ce:[];return ge==="optGroup"||ve.options?P(P({label:xe},ye),{},{data_title:xe,title:xe,key:$e??"".concat(xe==null?void 0:xe.toString(),"-").concat(he,"-").concat(Km()),children:ie(He)}):P(P({title:xe},ye),{},{data_title:xe,value:$e??he,key:$e??"".concat(xe==null?void 0:xe.toString(),"-").concat(he,"-").concat(Km()),"data-item":ve,className:"".concat(re,"-option ").concat(Se||"").trim(),label:(r==null?void 0:r(ve))||xe})})};return _.jsx(dl,P(P({ref:ne,className:fe,allowClear:!0,autoClearSearchValue:u,disabled:$,mode:a,showSearch:A,searchValue:Q,optionFilterProp:S,optionLabelProp:x,onClear:function(){T==null||T(),R(void 0),A&&Z(void 0)}},L),{},{filterOption:L.filterOption==!1?!1:function(ie,se){var ve,he;return L.filterOption&&typeof L.filterOption=="function"?L.filterOption(ie,P(P({},se),{},{label:se==null?void 0:se.data_title})):!!(se!=null&&(ve=se.data_title)!==null&&ve!==void 0&&ve.toString().toLowerCase().includes(ie.toLowerCase())||se!=null&&(he=se[S])!==null&&he!==void 0&&he.toString().toLowerCase().includes(ie.toLowerCase()))},onSearch:A?function(ie){b&&R(ie),o==null||o(ie),Z(ie)}:void 0,onChange:function(se,ve){A&&u&&(R(void 0),o==null||o(""),Z(void 0));for(var he=arguments.length,Ce=new Array(he>2?he-2:0),pe=2;pe-1&&r%1==0&&r-1&&n%1==0&&n<=e}return Dw=t,Dw}var kw,ID;function T_e(){if(ID)return kw;ID=1;var e=$u(),t=E3(),n=gl(),r="[object Arguments]",a="[object Array]",o="[object Boolean]",i="[object Date]",l="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",h="[object String]",b="[object WeakMap]",p="[object ArrayBuffer]",S="[object DataView]",C="[object Float32Array]",x="[object Float64Array]",w="[object Int8Array]",$="[object Int16Array]",E="[object Int32Array]",R="[object Uint8Array]",I="[object Uint8ClampedArray]",O="[object Uint16Array]",T="[object Uint32Array]",N={};N[C]=N[x]=N[w]=N[$]=N[E]=N[R]=N[I]=N[O]=N[T]=!0,N[r]=N[a]=N[p]=N[o]=N[S]=N[i]=N[l]=N[c]=N[u]=N[d]=N[f]=N[m]=N[g]=N[h]=N[b]=!1;function A(k){return n(k)&&t(k.length)&&!!N[e(k)]}return kw=A,kw}var Aw,RD;function P3(){if(RD)return Aw;RD=1;function e(t){return function(n){return t(n)}}return Aw=e,Aw}var am={exports:{}};am.exports;var MD;function O3(){return MD||(MD=1,(function(e,t){var n=FG(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,i=o&&n.process,l=(function(){try{var c=a&&a.require&&a.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}})();e.exports=l})(am,am.exports)),am.exports}var Lw,TD;function I3(){if(TD)return Lw;TD=1;var e=T_e(),t=P3(),n=O3(),r=n&&n.isTypedArray,a=r?t(r):e;return Lw=a,Lw}var Bw,ND;function kG(){if(ND)return Bw;ND=1;var e=I_e(),t=w3(),n=Ao(),r=V1(),a=$3(),o=I3(),i=Object.prototype,l=i.hasOwnProperty;function c(u,d){var f=n(u),m=!f&&t(u),g=!f&&!m&&r(u),h=!f&&!m&&!g&&o(u),b=f||m||g||h,p=b?e(u.length,String):[],S=p.length;for(var C in u)(d||l.call(u,C))&&!(b&&(C=="length"||g&&(C=="offset"||C=="parent")||h&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||a(C,S)))&&p.push(C);return p}return Bw=c,Bw}var zw,_D;function R3(){if(_D)return zw;_D=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return zw=t,zw}var Hw,jD;function AG(){if(jD)return Hw;jD=1;function e(t,n){return function(r){return t(n(r))}}return Hw=e,Hw}var Vw,FD;function N_e(){if(FD)return Vw;FD=1;var e=AG(),t=e(Object.keys,Object);return Vw=t,Vw}var Ww,DD;function __e(){if(DD)return Ww;DD=1;var e=R3(),t=N_e(),n=Object.prototype,r=n.hasOwnProperty;function a(o){if(!e(o))return t(o);var i=[];for(var l in Object(o))r.call(o,l)&&l!="constructor"&&i.push(l);return i}return Ww=a,Ww}var Kw,kD;function di(){if(kD)return Kw;kD=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Kw=e,Kw}var qw,AD;function M3(){if(AD)return qw;AD=1;var e=$u(),t=di(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function i(l){if(!t(l))return!1;var c=e(l);return c==r||c==a||c==n||c==o}return qw=i,qw}var Uw,LD;function Hf(){if(LD)return Uw;LD=1;var e=M3(),t=E3();function n(r){return r!=null&&t(r.length)&&!e(r)}return Uw=n,Uw}var Gw,BD;function Kg(){if(BD)return Gw;BD=1;var e=kG(),t=__e(),n=Hf();function r(a){return n(a)?e(a):t(a)}return Gw=r,Gw}var Yw,zD;function LG(){if(zD)return Yw;zD=1;var e=DG(),t=Kg();function n(r,a){return r&&e(r,a,t)}return Yw=n,Yw}var Xw,HD;function W1(){if(HD)return Xw;HD=1;function e(t){return t}return Xw=e,Xw}var Qw,VD;function BG(){if(VD)return Qw;VD=1;var e=W1();function t(n){return typeof n=="function"?n:e}return Qw=t,Qw}var Jw,WD;function T3(){if(WD)return Jw;WD=1;var e=LG(),t=BG();function n(r,a){return r&&e(r,t(a))}return Jw=n,Jw}var Zw,KD;function N3(){if(KD)return Zw;KD=1;var e=AG(),t=e(Object.getPrototypeOf,Object);return Zw=t,Zw}var e2,qD;function zG(){if(qD)return e2;qD=1;var e=$u(),t=N3(),n=gl(),r="[object Object]",a=Function.prototype,o=Object.prototype,i=a.toString,l=o.hasOwnProperty,c=i.call(Object);function u(d){if(!n(d)||e(d)!=r)return!1;var f=t(d);if(f===null)return!0;var m=l.call(f,"constructor")&&f.constructor;return typeof m=="function"&&m instanceof m&&i.call(m)==c}return e2=u,e2}var t2,UD;function HG(){if(UD)return t2;UD=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=Array(a);++r-1}return l2=t,l2}var s2,ek;function A_e(){if(ek)return s2;ek=1;var e=K1();function t(n,r){var a=this.__data__,o=e(a,n);return o<0?(++this.size,a.push([n,r])):a[o][1]=r,this}return s2=t,s2}var c2,tk;function q1(){if(tk)return c2;tk=1;var e=j_e(),t=F_e(),n=D_e(),r=k_e(),a=A_e();function o(i){var l=-1,c=i==null?0:i.length;for(this.clear();++lg))return!1;var b=f.get(i),p=f.get(l);if(b&&p)return b==l&&p==i;var S=-1,C=!0,x=c&a?new e:void 0;for(f.set(i,l),f.set(l,i);++S0&&arguments[0]!==void 0?arguments[0]:[],m=[];return(0,l.default)(f,function(g){Array.isArray(g)?d(g).map(function(h){return m.push(h)}):(0,o.default)(g)?(0,r.default)(g,function(h,b){h===!0&&m.push(b),m.push(b+"-"+h)}):(0,t.default)(g)&&m.push(g)}),m};return cd.default=u,cd}var ud={},D$,R7;function nY(){if(R7)return D$;R7=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r1&&arguments[1]!==void 0?arguments[1]:[],d=c.default&&(0,r.default)(c.default)||{};return u.map(function(f){var m=c[f];return m&&(0,t.default)(m,function(g,h){d[h]||(d[h]={}),d[h]=a({},d[h],m[h])}),f}),d};return ud.default=i,ud}var dd={},lA;function sFe(){if(lA)return dd;lA=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.autoprefix=void 0;var e=T3(),t=r(e),n=Object.assign||function(i){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:"span";return(function(f){i(m,f);function m(){var g,h,b,p;a(this,m);for(var S=arguments.length,C=Array(S),x=0;x1&&arguments[1]!==void 0?arguments[1]:"span";return(function(f){i(m,f);function m(){var g,h,b,p;a(this,m);for(var S=arguments.length,C=Array(S),x=0;x1&&arguments[1]!==void 0?arguments[1]:!0;a[l]=c};return n===0&&o("first-child"),n===r-1&&o("last-child"),(n===0||n%2===0)&&o("even"),Math.abs(n%2)===1&&o("odd"),o("nth-child",n),a};return y0.default=e,y0}var dA;function fFe(){if(dA)return no;dA=1,Object.defineProperty(no,"__esModule",{value:!0}),no.ReactCSS=no.loop=no.handleActive=no.handleHover=no.hover=void 0;var e=zje(),t=m(e),n=lFe(),r=m(n),a=sFe(),o=m(a),i=cFe(),l=m(i),c=uFe(),u=m(c),d=dFe(),f=m(d);function m(h){return h&&h.__esModule?h:{default:h}}no.hover=l.default,no.handleHover=l.default,no.handleActive=u.default,no.loop=f.default;var g=no.ReactCSS=function(b){for(var p=arguments.length,S=Array(p>1?p-1:0),C=1;C0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return xE=r,xE}var wE,wA;function wFe(){if(wA)return wE;wA=1;var e=SFe(),t=xFe(),n=t(e);return wE=n,wE}var $E,$A;function $Fe(){if($A)return $E;$A=1;var e=W1(),t=yFe(),n=wFe();function r(a,o){return n(t(a,o,e),a+"")}return $E=r,$E}var EE,EA;function EFe(){if(EA)return EE;EA=1;var e=qg(),t=Hf(),n=$3(),r=di();function a(o,i,l){if(!r(l))return!1;var c=typeof i;return(c=="number"?t(l)&&n(i,l.length):c=="string"&&i in l)?e(l[i],o):!1}return EE=a,EE}var PE,PA;function PFe(){if(PA)return PE;PA=1;var e=$Fe(),t=EFe();function n(r){return e(function(a,o){var i=-1,l=o.length,c=l>1?o[l-1]:void 0,u=l>2?o[2]:void 0;for(c=r.length>3&&typeof c=="function"?(l--,c):void 0,u&&t(o[0],o[1],u)&&(c=l<3?void 0:c,l=1),a=Object(a);++il?m=1:m=Math.round(f*100/l)/100,n.a!==m)return{h:n.h,s:n.s,l:n.l,a:m,source:"rgb"}}else{var g;if(d<0?g=0:d>i?g=1:g=Math.round(d*100/i)/100,a!==g)return{h:n.h,s:n.s,l:n.l,a:g,source:"rgb"}}return null},IE={},TFe=function(t,n,r,a){if(typeof document>"u"&&!a)return null;var o=a?new a:document.createElement("canvas");o.width=r*2,o.height=r*2;var i=o.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,o.width,o.height),i.fillStyle=n,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),o.toDataURL()):null},NFe=function(t,n,r,a){var o="".concat(t,"-").concat(n,"-").concat(r).concat(a?"-server":"");if(IE[o])return IE[o];var i=TFe(t,n,r,a);return IE[o]=i,i};function Ym(e){"@babel/helpers - typeof";return Ym=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ym(e)}function IA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function C0(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dy(e){return dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dy(e)}var UFe=(function(e){HFe(n,e);var t=VFe(n);function n(){var r;AFe(this,n);for(var a=arguments.length,o=new Array(a),i=0;iO){const Q=F.length-O-1;B+=`,"... ${h(Q)} not stringified"`}return L.pop(),`[${B}]`}let W=Object.keys(F);const V=W.length;if(V===0)return"{}";if(IO){const G=V-O;B+=`${q}"...":"${h(G)} not stringified"`}return L.pop(),`{${B}}`}case"number":return isFinite(F)?String(F):x?x(F):"null";case"boolean":return F===!0?"true":"false";case"undefined":return;case"bigint":if($)return String(F);default:return x?x(F):void 0}}function j(D,F,L){if(arguments.length>1){let B="";if(typeof L=="number"?B=" ".repeat(Math.min(L,10)):typeof L=="string"&&(B=L.slice(0,10)),F!=null){if(typeof F=="function")return T("",{"":D},[],F,B,"");if(Array.isArray(F))return _("",D,[],b(F),B,"")}if(B.length!==0)return k("",D,[],B,"")}return A("",D,[])}return j}})(x0,x0.exports)),x0.exports}var r8e=n8e();const a8e=rn(r8e),o8e=a8e.configure;var Bs=o8e({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function i8e(){this.__data__=[],this.size=0}function zg(e,t){return e===t||e!==e&&t!==t}function q1(e,t){for(var n=e.length;n--;)if(zg(e[n][0],t))return n;return-1}var l8e=Array.prototype,s8e=l8e.splice;function c8e(e){var t=this.__data__,n=q1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():s8e.call(t,n,1),--this.size,!0}function u8e(e){var t=this.__data__,n=q1(t,e);return n<0?void 0:t[n][1]}function d8e(e){return q1(this.__data__,e)>-1}function f8e(e,t){var n=this.__data__,r=q1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Jl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=CNe}function Hg(e){return e!=null&&LG(e.length)&&!N3(e)}function SNe(e){return iu(e)&&Hg(e)}function xNe(){return!1}var BG=typeof jo=="object"&&jo&&!jo.nodeType&&jo,bD=BG&&typeof Fo=="object"&&Fo&&!Fo.nodeType&&Fo,wNe=bD&&bD.exports===BG,yD=wNe?ml.Buffer:void 0,$Ne=yD?yD.isBuffer:void 0,Gm=$Ne||xNe,ENe="[object Object]",PNe=Function.prototype,ONe=Object.prototype,zG=PNe.toString,INe=ONe.hasOwnProperty,RNe=zG.call(Object);function MNe(e){if(!iu(e)||Lf(e)!=ENe)return!1;var t=kG(e);if(t===null)return!0;var n=INe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&zG.call(n)==RNe}var TNe="[object Arguments]",NNe="[object Array]",_Ne="[object Boolean]",jNe="[object Date]",FNe="[object Error]",DNe="[object Function]",kNe="[object Map]",ANe="[object Number]",LNe="[object Object]",BNe="[object RegExp]",zNe="[object Set]",HNe="[object String]",VNe="[object WeakMap]",WNe="[object ArrayBuffer]",KNe="[object DataView]",qNe="[object Float32Array]",UNe="[object Float64Array]",GNe="[object Int8Array]",YNe="[object Int16Array]",XNe="[object Int32Array]",QNe="[object Uint8Array]",JNe="[object Uint8ClampedArray]",ZNe="[object Uint16Array]",e5e="[object Uint32Array]",wr={};wr[qNe]=wr[UNe]=wr[GNe]=wr[YNe]=wr[XNe]=wr[QNe]=wr[JNe]=wr[ZNe]=wr[e5e]=!0;wr[TNe]=wr[NNe]=wr[WNe]=wr[_Ne]=wr[KNe]=wr[jNe]=wr[FNe]=wr[DNe]=wr[kNe]=wr[ANe]=wr[LNe]=wr[BNe]=wr[zNe]=wr[HNe]=wr[VNe]=!1;function t5e(e){return iu(e)&&LG(e.length)&&!!wr[Lf(e)]}function n5e(e){return function(t){return e(t)}}var HG=typeof jo=="object"&&jo&&!jo.nodeType&&jo,hm=HG&&typeof Fo=="object"&&Fo&&!Fo.nodeType&&Fo,r5e=hm&&hm.exports===HG,Ow=r5e&&_G.process,CD=(function(){try{var e=hm&&hm.require&&hm.require("util").types;return e||Ow&&Ow.binding&&Ow.binding("util")}catch{}})(),SD=CD&&CD.isTypedArray,Y1=SD?n5e(SD):t5e;function qI(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var a5e=Object.prototype,o5e=a5e.hasOwnProperty;function i5e(e,t,n){var r=e[t];(!(o5e.call(e,t)&&zg(r,n))||n===void 0&&!(t in e))&&_3(e,t,n)}function l5e(e,t,n,r){var a=!n;n||(n={});for(var o=-1,i=t.length;++o-1&&e%1==0&&e0){if(++t>=w5e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var O5e=P5e(x5e);function I5e(e,t){return O5e(C5e(e,t,UG),e+"")}function R5e(e,t,n){if(!xu(n))return!1;var r=typeof t;return(r=="number"?Hg(n)&&VG(t,n.length):r=="string"&&t in n)?zg(n[t],e):!1}function M5e(e){return I5e(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(a--,o):void 0,i&&R5e(n[0],n[1],i)&&(o=a<3?void 0:o,a=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,a=Object.keys(n).reduce(function(l,c){var u=n[c];return Js(u)||(l[c]=u),l},{});if(Object.keys(a).length<1||typeof window>"u"||it(t)!=="object"||Js(t)||t instanceof Blob)return t;var o=Array.isArray(t)?[]:{},i=function l(c,u){var d=Array.isArray(c),f=d?[]:{};return c==null||c===void 0?f:(Object.keys(c).forEach(function(m){var g=function x(w,$){return Array.isArray(w)&&w.forEach(function(E,R){if(E){var I=$==null?void 0:$[R];typeof E=="function"&&($[R]=E($,m,c)),it(E)==="object"&&!Array.isArray(E)&&Object.keys(E).forEach(function(O){var T=I==null?void 0:I[O];if(typeof E[O]=="function"&&T){var _=E[O](I[O],m,c);I[O]=it(_)==="object"?_[O]:_}else it(E[O])==="object"&&Array.isArray(E[O])&&T&&x(E[O],T)}),it(E)==="object"&&Array.isArray(E)&&I&&x(E,I)}}),m},h=u?[u,m].flat(1):[m].flat(1),b=c[m],p=Gn(a,h),S=function(){var w,$,E=!1;if(typeof p=="function"){$=p==null?void 0:p(b,m,c);var R=it($);R!=="object"&&R!=="undefined"?(w=m,E=!0):w=$}else w=g(p,b);if(Array.isArray(w)){f=br(f,w,b);return}it(w)==="object"&&!Array.isArray(o)?o=UI(o,w):it(w)==="object"&&Array.isArray(o)?f=P(P({},f),w):(w!==null||w!==void 0)&&(f=br(f,[w],E?$:b))};if(p&&typeof p=="function"&&S(),!(typeof window>"u")){if(T5e(b)){var C=l(b,h);if(Object.keys(C).length<1)return;f=br(f,[m],C);return}S()}}),r?f:c)};return o=Array.isArray(t)&&Array.isArray(o)?ke(i(t)):K1({},i(t),o),o},Do=function(t){return t===void 0?{}:vl(fo,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}},_5e=["map_row_parentKey"],j5e=["map_row_parentKey","map_row_key"],F5e=["map_row_key"],Iw=function(t){return(Jo.warn||Jo.warning)(t)},oo=function(t){return Array.isArray(t)?t.join(","):t};function nm(e,t){var n,r=e.getRowKey,a=e.row,o=e.data,i=e.childrenColumnName,l=i===void 0?"children":i,c=(n=oo(e.key))===null||n===void 0?void 0:n.toString(),u=new Map;function d(m,g,h){m.forEach(function(b,p){var S=(h||0)*10+p,C=r(b,S).toString();b&&it(b)==="object"&&l in b&&d(b[l]||[],C,S);var x=P(P({},b),{},{map_row_key:C,children:void 0,map_row_parentKey:g});delete x.children,g||delete x.map_row_parentKey,u.set(C,x)})}t==="top"&&u.set(c,P(P({},u.get(c)),a)),d(o),t==="update"&&u.set(c,P(P({},u.get(c)),a)),t==="delete"&&u.delete(c);var f=function(g){var h=new Map,b=[],p=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;g.forEach(function(x){if(x.map_row_parentKey&&!x.map_row_key){var w=x.map_row_parentKey,$=Ue(x,_5e);if(h.has(w)||h.set(w,[]),C){var E;(E=h.get(w))===null||E===void 0||E.push($)}}})};return p(t==="top"),g.forEach(function(S){if(S.map_row_parentKey&&S.map_row_key){var C,x=S.map_row_parentKey,w=S.map_row_key,$=Ue(S,j5e);h.has(w)&&($[l]=h.get(w)),h.has(x)||h.set(x,[]),(C=h.get(x))===null||C===void 0||C.push($)}}),p(t==="update"),g.forEach(function(S){if(!S.map_row_parentKey){var C=S.map_row_key,x=Ue(S,F5e);if(C&&h.has(C)){var w=P(P({},x),{},z({},l,h.get(C)));b.push(w);return}b.push(x)}}),b};return f(u)}function D5e(e,t){var n=e.recordKey,r=e.onSave,a=e.row,o=e.children,i=e.newLineConfig,l=e.editorType,c=e.tableName,u=s.useContext(Lg),d=Fn.useFormInstance(),f=Nt(!1),m=ce(f,2),g=m[0],h=m[1],b=Hn(gn(ht().mark(function p(){var S,C,x,w,$,E,R,I,O;return ht().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.prev=0,C=l==="Map",x=[c,Array.isArray(n)?n[0]:n].map(function(k){return k==null?void 0:k.toString()}).flat(1).filter(Boolean),h(!0),_.next=6,d.validateFields(x,{recursive:!0});case 6:return w=(u==null||(S=u.getFieldFormatValue)===null||S===void 0?void 0:S.call(u,x))||d.getFieldValue(x),Array.isArray(n)&&n.length>1&&($=ER(n),E=$.slice(1),R=Gn(w,E),br(w,E,R)),I=C?br({},x,w):w,_.next=11,r==null?void 0:r(n,K1({},a,I),a,i);case 11:return O=_.sent,h(!1),_.abrupt("return",O);case 16:throw _.prev=16,_.t0=_.catch(0),console.log(_.t0),h(!1),_.t0;case 21:case"end":return _.stop()}},p,null,[[0,16]])})));return s.useImperativeHandle(t,function(){return{save:b}},[b]),N.jsxs("a",{onClick:(function(){var p=gn(ht().mark(function S(C){return ht().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return C.stopPropagation(),C.preventDefault(),w.prev=2,w.next=5,b();case 5:w.next=9;break;case 7:w.prev=7,w.t0=w.catch(2);case 9:case"end":return w.stop()}},S,null,[[2,7]])}));return function(S){return p.apply(this,arguments)}})(),children:[g?N.jsx(Ya,{style:{marginInlineEnd:8}}):null,o||"保存"]},"save")}var k5e=function(t){var n=t.recordKey,r=t.onDelete,a=t.preEditRowRef,o=t.row,i=t.children,l=t.deletePopconfirmMessage,c=Nt(function(){return!1}),u=ce(c,2),d=u[0],f=u[1],m=Hn(gn(ht().mark(function g(){var h;return ht().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,f(!0),p.next=4,r==null?void 0:r(n,o);case 4:return h=p.sent,f(!1),p.abrupt("return",h);case 9:return p.prev=9,p.t0=p.catch(0),console.log(p.t0),f(!1),p.abrupt("return",null);case 14:return p.prev=14,a&&(a.current=null),p.finish(14);case 17:case"end":return p.stop()}},g,null,[[0,9,14,17]])})));return i!==!1?N.jsx(G4,{title:l,onConfirm:function(){return m()},children:N.jsxs("a",{children:[d?N.jsx(Ya,{style:{marginInlineEnd:8}}):null,i||"删除"]})},"delete"):null},A5e=function(t){var n=t.recordKey,r=t.tableName,a=t.newLineConfig,o=t.editorType,i=t.onCancel,l=t.cancelEditable,c=t.row,u=t.cancelText,d=t.preEditRowRef,f=s.useContext(Lg),m=Fn.useFormInstance();return N.jsx("a",{onClick:(function(){var g=gn(ht().mark(function h(b){var p,S,C,x,w,$,E;return ht().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return b.stopPropagation(),b.preventDefault(),S=o==="Map",C=[r,n].flat(1).filter(Boolean),x=(f==null||(p=f.getFieldFormatValue)===null||p===void 0?void 0:p.call(f,C))||(m==null?void 0:m.getFieldValue(C)),w=S?br({},C,x):x,I.next=8,i==null?void 0:i(n,w,c,a);case 8:return $=I.sent,I.next=11,l(n);case 11:if((d==null?void 0:d.current)===null){I.next=15;break}m.setFieldsValue(br({},C,d==null?void 0:d.current)),I.next=17;break;case 15:return I.next=17,(E=t.onDelete)===null||E===void 0?void 0:E.call(t,n,c);case 17:return d&&(d.current=null),I.abrupt("return",$);case 19:case"end":return I.stop()}},h)}));return function(h){return g.apply(this,arguments)}})(),children:u||"取消"},"cancel")};function L5e(e,t){var n=t.recordKey,r=t.newLineConfig,a=t.saveText,o=t.deleteText,i=s.forwardRef(D5e),l=s.createRef();return{save:N.jsx(i,P(P({},t),{},{row:e,ref:l,children:a}),"save"+n),saveRef:l,delete:(r==null?void 0:r.options.recordKey)!==n?N.jsx(k5e,P(P({},t),{},{row:e,children:o}),"delete"+n):void 0,cancel:N.jsx(A5e,P(P({},t),{},{row:e}),"cancel"+n)}}function B5e(e){var t=An(),n=s.useRef(null),r=s.useState(void 0),a=ce(r,2),o=a[0],i=a[1],l=function(){var G=new Map,Y=function J(Q,Z){Q==null||Q.forEach(function(ne,ae){var le,re=Z==null?ae.toString():Z+"_"+ae.toString();G.set(re,oo(e.getRowKey(ne,-1))),G.set((le=oo(e.getRowKey(ne,-1)))===null||le===void 0?void 0:le.toString(),re),e.childrenColumnName&&ne!==null&&ne!==void 0&&ne[e.childrenColumnName]&&J(ne[e.childrenColumnName],re)})};return Y(e.dataSource),G},c=s.useMemo(function(){return l()},[]),u=s.useRef(c),d=s.useRef(void 0);MG(function(){u.current=l()},[e.dataSource]),d.current=o;var f=e.type||"single",m=aU(e.dataSource,"children",e.getRowKey),g=ce(m,1),h=g[0],b=Nt([],{value:e.editableKeys,onChange:e.onChange?function(U){var G,Y,J;e==null||(G=e.onChange)===null||G===void 0||G.call(e,(Y=U==null?void 0:U.filter(function(Q){return Q!==void 0}))!==null&&Y!==void 0?Y:[],(J=U==null?void 0:U.map(function(Q){return h(Q)}).filter(function(Q){return Q!==void 0}))!==null&&J!==void 0?J:[])}:void 0}),p=ce(b,2),S=p[0],C=p[1],x=s.useMemo(function(){var U=f==="single"?S==null?void 0:S.slice(0,1):S;return new Set(U)},[(S||[]).join(","),f]),w=pm(S),$=Hn(function(U){var G,Y,J,Q,Z=(G=e.getRowKey(U,U.index))===null||G===void 0||(Y=G.toString)===null||Y===void 0?void 0:Y.call(G),ne=(J=e.getRowKey(U,-1))===null||J===void 0||(Q=J.toString)===null||Q===void 0?void 0:Q.call(J),ae=S==null?void 0:S.map(function(fe){return fe==null?void 0:fe.toString()}),le=(w==null?void 0:w.map(function(fe){return fe==null?void 0:fe.toString()}))||[],re=e.tableName&&!!(le!=null&&le.includes(ne))||!!(le!=null&&le.includes(Z));return{recordKey:ne,isEditable:e.tableName&&(ae==null?void 0:ae.includes(ne))||(ae==null?void 0:ae.includes(Z)),preIsEditable:re}}),E=Hn(function(U,G){var Y,J;return x.size>0&&f==="single"&&e.onlyOneLineEditorAlertMessage!==!1?(Iw(e.onlyOneLineEditorAlertMessage||t.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1):(x.add(U),C(Array.from(x)),n.current=(Y=G??((J=e.dataSource)===null||J===void 0?void 0:J.find(function(Q,Z){return e.getRowKey(Q,Z)===U})))!==null&&Y!==void 0?Y:null,!0)}),R=Hn((function(){var U=gn(ht().mark(function G(Y,J){var Q,Z;return ht().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(Q=oo(Y).toString(),Z=u.current.get(Q),!(!x.has(Q)&&Z&&(J??!0)&&e.tableName)){ae.next=5;break}return R(Z,!1),ae.abrupt("return");case 5:return o&&o.options.recordKey===Y&&i(void 0),x.delete(Q),x.delete(oo(Y)),C(Array.from(x)),ae.abrupt("return",!0);case 10:case"end":return ae.stop()}},G)}));return function(G,Y){return U.apply(this,arguments)}})()),I=W1(gn(ht().mark(function U(){var G,Y,J,Q,Z=arguments;return ht().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:for(Y=Z.length,J=new Array(Y),Q=0;Q0&&f==="single"&&e.onlyOneLineEditorAlertMessage!==!1)return Iw(e.onlyOneLineEditorAlertMessage||t.getMessage("editableTable.onlyOneLineEditor","只能同时编辑一行")),!1;var Y=e.getRowKey(U,-1);if(!Y&&Y!==0)throw wa(!!Y,`请设置 recordCreatorProps.record 并返回一个唯一的key + https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("请设置 recordCreatorProps.record 并返回一个唯一的key");if(x.add(Y),C(Array.from(x)),(G==null?void 0:G.newRecordType)==="dataSource"||e.tableName){var J,Q={data:e.dataSource,getRowKey:e.getRowKey,row:P(P({},U),{},{map_row_parentKey:G!=null&&G.parentKey?(J=oo(G==null?void 0:G.parentKey))===null||J===void 0?void 0:J.toString():void 0}),key:Y,childrenColumnName:e.childrenColumnName||"children"};e.setDataSource(nm(Q,(G==null?void 0:G.position)==="top"?"top":"update"))}else i({defaultValue:U,options:P(P({},G),{},{recordKey:Y})});return!0}),A=(e==null?void 0:e.saveText)||t.getMessage("editableTable.action.save","保存"),j=(e==null?void 0:e.deleteText)||t.getMessage("editableTable.action.delete","删除"),D=(e==null?void 0:e.cancelText)||t.getMessage("editableTable.action.cancel","取消"),F=Hn((function(){var U=gn(ht().mark(function G(Y,J,Q,Z){var ne,ae,le,re,fe,ue,de;return ht().wrap(function(se){for(;;)switch(se.prev=se.next){case 0:return se.next=2,e==null||(ne=e.onSave)===null||ne===void 0?void 0:ne.call(e,Y,J,Q,Z);case 2:return re=se.sent,se.next=5,R(Y);case 5:if(fe=Z||d.current||{},ue=fe.options,!(!(ue!=null&&ue.parentKey)&&(ue==null?void 0:ue.recordKey)===Y)){se.next=9;break}return(ue==null?void 0:ue.position)==="top"?e.setDataSource([J].concat(ke(e.dataSource))):e.setDataSource([].concat(ke(e.dataSource),[J])),se.abrupt("return",re);case 9:return de={data:e.dataSource,getRowKey:e.getRowKey,row:ue?P(P({},J),{},{map_row_parentKey:(ae=oo((le=ue==null?void 0:ue.parentKey)!==null&&le!==void 0?le:""))===null||ae===void 0?void 0:ae.toString()}):J,key:Y,childrenColumnName:e.childrenColumnName||"children"},e.setDataSource(nm(de,(ue==null?void 0:ue.position)==="top"?"top":"update")),se.next=13,R(Y);case 13:return se.abrupt("return",re);case 14:case"end":return se.stop()}},G)}));return function(G,Y,J,Q){return U.apply(this,arguments)}})()),L=Hn((function(){var U=gn(ht().mark(function G(Y,J){var Q,Z,ne;return ht().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return Z={data:e.dataSource,getRowKey:e.getRowKey,row:J,key:Y,childrenColumnName:e.childrenColumnName||"children"},le.next=3,e==null||(Q=e.onDelete)===null||Q===void 0?void 0:Q.call(e,Y,J);case 3:return ne=le.sent,le.next=6,R(Y,!1);case 6:return e.setDataSource(nm(Z,"delete")),le.abrupt("return",ne);case 8:case"end":return le.stop()}},G)}));return function(G,Y){return U.apply(this,arguments)}})()),B=Hn((function(){var U=gn(ht().mark(function G(Y,J,Q,Z){var ne,ae;return ht().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.next=2,e==null||(ne=e.onCancel)===null||ne===void 0?void 0:ne.call(e,Y,J,Q,Z);case 2:return ae=re.sent,re.abrupt("return",ae);case 4:case"end":return re.stop()}},G)}));return function(G,Y,J,Q){return U.apply(this,arguments)}})()),K=e.actionRender&&typeof e.actionRender=="function",W=K?e.actionRender:function(){},V=Hn(W),q=function(G){var Y=e.getRowKey(G,G.index),J={saveText:A,cancelText:D,deleteText:j,addEditRecord:k,recordKey:Y,cancelEditable:R,index:G.index,tableName:e.tableName,newLineConfig:o,onCancel:B,onDelete:L,onSave:F,editableKeys:S,setEditableRowKeys:C,preEditRowRef:n,deletePopconfirmMessage:e.deletePopconfirmMessage||"".concat(t.getMessage("deleteThisLine","删除此项"),"?")},Q=L5e(G,J);return e.tableName?T.current.set(u.current.get(oo(Y))||oo(Y),Q.saveRef):T.current.set(oo(Y),Q.saveRef),K?V(G,J,{save:Q.save,delete:Q.delete,cancel:Q.cancel}):[Q.save,Q.delete,Q.cancel]};return{editableKeys:S,setEditableRowKeys:C,isEditable:$,actionRender:q,startEditable:E,cancelEditable:R,addEditRecord:k,saveEditable:_,newLineRecord:o,preEditableKeys:w,onValuesChange:O,getRealIndex:e.getRealIndex}}function ud(e){var t=typeof window>"u",n=s.useState(function(){return t?!1:window.matchMedia(e).matches}),r=ce(n,2),a=r[0],o=r[1];return s.useLayoutEffect(function(){if(!t){var i=window.matchMedia(e),l=function(u){return o(u.matches)};return i.addListener(l),function(){return i.removeListener(l)}}},[e]),a}var ws={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},z5e=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(ws).find(function(r){var a=ws[r].matchMedia;return!!window.matchMedia(a).matches});return t=n,t},H5e=function(){var t=ud(ws.md.matchMedia),n=ud(ws.lg.matchMedia),r=ud(ws.xxl.matchMedia),a=ud(ws.xl.matchMedia),o=ud(ws.sm.matchMedia),i=ud(ws.xs.matchMedia),l=s.useState(z5e()),c=ce(l,2),u=c[0],d=c[1];return s.useEffect(function(){if(r){d("xxl");return}if(a){d("xl");return}if(n){d("lg");return}if(t){d("md");return}if(o){d("sm");return}if(i){d("xs");return}d("md")},[t,n,r,a,o,i]),u},V5e=function(t){var n=t.componentCls,r=t.antCls;return z({},"".concat(n,"-actions"),z(z({marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:t.marginXS,background:t.colorBgContainer,borderBlockStart:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit),minHeight:42},"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:t.colorTextSecondary,transition:"color 0.3s","&:hover":{color:t.colorPrimaryHover}}),"& > li > div",{flex:1,width:"100%",marginBlock:t.marginSM,marginInline:0,color:t.colorTextSecondary,textAlign:"center",a:{color:t.colorTextSecondary,transition:"color 0.3s","&:hover":{color:t.colorPrimaryHover}},div:z(z({position:"relative",display:"block",minWidth:32,fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer","&:hover":{color:t.colorPrimaryHover,transition:"color 0.3s"}},"a:not(".concat(r,`-btn), + > .anticon`),{display:"inline-block",width:"100%",color:t.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:t.colorPrimaryHover}}),".anticon",{fontSize:t.cardActionIconSize,lineHeight:"22px"}),"&:not(:last-child)":{borderInlineEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)}}))};function W5e(e){return En("ProCardActions",function(t){var n=P(P({},t),{},{componentCls:".".concat(e),cardActionIconSize:16});return[V5e(n)]})}var K5e=function(t){var n=t.actions,r=t.prefixCls,a=W5e(r),o=a.wrapSSR,i=a.hashId;return Array.isArray(n)&&n!==null&&n!==void 0&&n.length?o(N.jsx("ul",{className:oe("".concat(r,"-actions"),i),children:n.map(function(l,c){return N.jsx("li",{style:{width:"".concat(100/n.length,"%"),padding:0,margin:0},className:oe("".concat(r,"-actions-item"),i),children:l},"action-".concat(c))})})):o(N.jsx("ul",{className:oe("".concat(r,"-actions"),i),children:n}))},q5e=function(t){return z({},t.componentCls,z(z(z(z(z({display:"flex",fontSize:t.fontSize,"& + &":{marginBlockStart:4},"&-tip":{marginInlineStart:4},"&-wrapper":z({display:"flex",width:"100%"},"".concat(t.componentCls,"-status"),{width:"14px"}),"&-icon":{marginInlineEnd:16},"&-trend-icon":{width:0,height:0,borderInlineEnd:"3.5px solid transparent",borderBlockEnd:"9px solid #000",borderInlineStart:"3.5px solid transparent","&-up":{transform:"rotate(0deg)"},"&-down":{transform:"rotate(180deg)"}},"&-content":z({width:"100%"},"".concat(t.antCls,"-statistic-content"),{"&-value-int":{fontSize:t.fontSizeHeading3}}),"&-description":{width:"100%"}},"".concat(t.antCls,"-statistic-title"),{color:t.colorText}),"&-trend-up",z({},"".concat(t.antCls,"-statistic-content"),z({color:"#f5222d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#f5222d"}))),"&-trend-down",z({},"".concat(t.antCls,"-statistic-content"),z({color:"#389e0d"},"".concat(t.componentCls,"-trend-icon"),{borderBlockEndColor:"#52c41a"}))),"& &-layout-horizontal",z(z(z({display:"flex",justifyContent:"space-between"},"".concat(t.antCls,"-statistic-title"),{marginBlockEnd:0}),"".concat(t.antCls,"-statistic-content-value"),{fontWeight:500}),"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSize})),"& &-layout-inline",z(z(z({display:"inline-flex",color:t.colorTextSecondary},"".concat(t.antCls,"-statistic-title"),{marginInlineEnd:"6px",marginBlockEnd:0}),"".concat(t.antCls,"-statistic-content"),{color:t.colorTextSecondary}),"".concat(t.antCls,"-statistic-title,").concat(t.antCls,"-statistic-content,").concat(t.antCls,"-statistic-content-suffix,").concat(t.antCls,"-statistic-content-prefix,").concat(t.antCls,"-statistic-content-value-decimal"),{fontSize:t.fontSizeSM})))};function U5e(e){return En("Statistic",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[q5e(n)]})}var G5e=["className","layout","style","description","children","title","tip","status","trend","prefix","icon"],GG=function(t){var n=t.className,r=t.layout,a=r===void 0?"inline":r,o=t.style,i=t.description;t.children;var l=t.title,c=t.tip,u=t.status,d=t.trend,f=t.prefix,m=t.icon,g=Ue(t,G5e),h=s.useContext(Rt.ConfigContext),b=h.getPrefixCls,p=b("pro-card-statistic"),S=U5e(p),C=S.wrapSSR,x=S.hashId,w=oe(p,n,x),$=oe("".concat(p,"-status"),x),E=oe("".concat(p,"-icon"),x),R=oe("".concat(p,"-wrapper"),x),I=oe("".concat(p,"-content"),x),O=oe(x,z(z({},"".concat(p,"-layout-").concat(a),a),"".concat(p,"-trend-").concat(d),d)),T=c&&N.jsx(Bn,{title:c,children:N.jsx(nq,{className:"".concat(p,"-tip ").concat(x).trim()})}),_=oe("".concat(p,"-trend-icon"),x,z({},"".concat(p,"-trend-icon-").concat(d),d)),k=d&&N.jsx("div",{className:_}),A=u&&N.jsx("div",{className:$,children:N.jsx(Io,{status:u,text:null})}),j=m&&N.jsx("div",{className:E,children:m});return C(N.jsxs("div",{className:w,style:o,children:[j,N.jsxs("div",{className:R,children:[A,N.jsxs("div",{className:I,children:[N.jsx(N1,P({title:(l||T)&&N.jsxs(N.Fragment,{children:[l,T]}),prefix:(k||f)&&N.jsxs(N.Fragment,{children:[k,f]}),className:O},g)),i&&N.jsx("div",{className:"".concat(p,"-description ").concat(x).trim(),children:i})]})]})]}))},Y5e=new Sn("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),X5e=function(t){return z({},t.componentCls,z(z({"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},"".concat(t.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),"".concat(t.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:t.borderRadius,animationName:Y5e,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}))};function Q5e(e){return En("ProCardLoading",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[X5e(n)]})}var J5e=function(t){var n=t.style,r=t.prefix,a=Q5e(r||"ant-pro-card"),o=a.wrapSSR;return o(N.jsxs("div",{className:"".concat(r,"-loading-content"),style:n,children:[N.jsx(Ii,{gutter:8,children:N.jsx(Qr,{span:22,children:N.jsx("div",{className:"".concat(r,"-loading-block")})})}),N.jsxs(Ii,{gutter:8,children:[N.jsx(Qr,{span:8,children:N.jsx("div",{className:"".concat(r,"-loading-block")})}),N.jsx(Qr,{span:15,children:N.jsx("div",{className:"".concat(r,"-loading-block")})})]}),N.jsxs(Ii,{gutter:8,children:[N.jsx(Qr,{span:6,children:N.jsx("div",{className:"".concat(r,"-loading-block")})}),N.jsx(Qr,{span:18,children:N.jsx("div",{className:"".concat(r,"-loading-block")})})]}),N.jsxs(Ii,{gutter:8,children:[N.jsx(Qr,{span:13,children:N.jsx("div",{className:"".concat(r,"-loading-block")})}),N.jsx(Qr,{span:9,children:N.jsx("div",{className:"".concat(r,"-loading-block")})})]}),N.jsxs(Ii,{gutter:8,children:[N.jsx(Qr,{span:4,children:N.jsx("div",{className:"".concat(r,"-loading-block")})}),N.jsx(Qr,{span:3,children:N.jsx("div",{className:"".concat(r,"-loading-block")})}),N.jsx(Qr,{span:16,children:N.jsx("div",{className:"".concat(r,"-loading-block")})})]})]}))},Z5e=["tab","children"],e_e=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function t_e(e){return e.filter(function(t){return t})}function n_e(e,t,n){if(e)return e.map(function(a){return P(P({},a),{},{children:N.jsx(lf,P(P({},n==null?void 0:n.cardProps),{},{children:a.children}))})});wa(!n,"Tabs.TabPane is deprecated. Please use `items` directly.");var r=rr(t).map(function(a){if(ee.isValidElement(a)){var o=a.key,i=a.props,l=i||{},c=l.tab,u=l.children,d=Ue(l,Z5e),f=P(P({key:String(o)},d),{},{children:N.jsx(lf,P(P({},n==null?void 0:n.cardProps),{},{children:u})),label:c});return f}return null});return t_e(r)}var r_e=function(t){var n=s.useContext(Rt.ConfigContext),r=n.getPrefixCls;if(fo.startsWith("5"))return N.jsx(N.Fragment,{});var a=t.key,o=t.tab,i=t.tabKey,l=t.disabled,c=t.destroyInactiveTabPane,u=t.children,d=t.className,f=t.style,m=t.cardProps,g=Ue(t,e_e),h=r("pro-card-tabpane"),b=oe(h,d);return N.jsx(Bi.TabPane,P(P({tabKey:i,tab:o,className:b,style:f,disabled:l,destroyInactiveTabPane:c},g),{},{children:N.jsx(lf,P(P({},m),{},{children:u}))}),a)},wD=function(t){return{backgroundColor:t.controlItemBgActive,borderColor:t.controlOutline}},a_e=function(t){var n=t.componentCls;return z(z(z({},n,P(P({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:t.colorBgContainer,borderRadius:t.borderRadius,transition:"all 0.3s"},Al==null?void 0:Al(t)),{},z(z(z(z(z(z(z(z(z(z({"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)},"&-hoverable":z({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(n,"-checked:hover"),{borderColor:t.controlOutline}),"&-checked":P(P({},wD(t)),{},{"&::after":{visibility:"visible",position:"absolute",insetBlockStart:2,insetInlineEnd:2,opacity:1,width:0,height:0,border:"6px solid ".concat(t.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":P({},wD(t)),"&&-ghost":z({backgroundColor:"transparent"},"> ".concat(n),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:t.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},"".concat(n,"-body-direction-column"),{flexDirection:"column"}),"".concat(n,"-body-wrap"),{flexWrap:"wrap"}),"&&-collapse",z({},"> ".concat(n),{"&-header":{paddingBlockEnd:t.padding,borderBlockEnd:0},"&-body":{display:"none"}})),"".concat(n,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:t.paddingLG,paddingBlock:t.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:t.padding},borderBlockEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)},"&-collapsible":{cursor:"pointer"}}),"".concat(n,"-title"),{color:t.colorText,fontWeight:500,fontSize:t.fontSizeLG,lineHeight:t.lineHeight}),"".concat(n,"-extra"),{color:t.colorText}),"".concat(n,"-type-inner"),z({},"".concat(n,"-header"),{backgroundColor:t.colorFillAlter})),"".concat(n,"-collapsible-icon"),{marginInlineEnd:t.marginXS,color:t.colorIconHover,":hover":{color:t.colorPrimaryHover},"& svg":{transition:"transform ".concat(t.motionDurationMid)}}),"".concat(n,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:t.paddingLG,paddingBlock:t.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),"&&-size-small",z(z({},n,{"&-header":{paddingInline:t.paddingSM,paddingBlock:t.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:t.paddingXS}},"&-title":{fontSize:t.fontSize},"&-body":{paddingInline:t.paddingSM,paddingBlock:t.paddingSM}}),"".concat(n,"-header").concat(n,"-header-collapsible"),{paddingBlock:t.paddingXS})))),"".concat(n,"-col"),z(z({},"&".concat(n,"-split-vertical"),{borderInlineEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)}),"&".concat(n,"-split-horizontal"),{borderBlockEnd:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorSplit)})),"".concat(n,"-tabs"),z(z(z(z(z(z({},"".concat(t.antCls,"-tabs-top > ").concat(t.antCls,"-tabs-nav"),z({marginBlockEnd:0},"".concat(t.antCls,"-tabs-nav-list"),{marginBlockStart:t.marginXS,paddingInlineStart:t.padding})),"".concat(t.antCls,"-tabs-bottom > ").concat(t.antCls,"-tabs-nav"),z({marginBlockEnd:0},"".concat(t.antCls,"-tabs-nav-list"),{paddingInlineStart:t.padding})),"".concat(t.antCls,"-tabs-left"),z({},"".concat(t.antCls,"-tabs-content-holder"),z({},"".concat(t.antCls,"-tabs-content"),z({},"".concat(t.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(t.antCls,"-tabs-left > ").concat(t.antCls,"-tabs-nav"),z({marginInlineEnd:0},"".concat(t.antCls,"-tabs-nav-list"),{paddingBlockStart:t.padding})),"".concat(t.antCls,"-tabs-right"),z({},"".concat(t.antCls,"-tabs-content-holder"),z({},"".concat(t.antCls,"-tabs-content"),z({},"".concat(t.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),"".concat(t.antCls,"-tabs-right > ").concat(t.antCls,"-tabs-nav"),z({},"".concat(t.antCls,"-tabs-nav-list"),{paddingBlockStart:t.padding})))},YG=24,o_e=function(t,n){var r=n.componentCls;return t===0?z({},"".concat(r,"-col-0"),{display:"none"}):z({},"".concat(r,"-col-").concat(t),{flexShrink:0,width:"".concat(t/YG*100,"%")})},i_e=function(t){return Array(YG+1).fill(1).map(function(n,r){return o_e(r,t)})};function l_e(e){return En("ProCard",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[a_e(n),i_e(n)]})}var s_e=["className","style","bodyStyle","headStyle","title","subTitle","extra","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","colStyle","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],lf=ee.forwardRef(function(e,t){var n,r=e.className,a=e.style,o=e.bodyStyle,i=e.headStyle,l=e.title,c=e.subTitle,u=e.extra,d=e.wrap,f=d===void 0?!1:d,m=e.layout,g=e.loading,h=e.gutter,b=h===void 0?0:h,p=e.tooltip,S=e.split,C=e.headerBordered,x=C===void 0?!1:C,w=e.bordered,$=w===void 0?!1:w,E=e.boxShadow,R=E===void 0?!1:E,I=e.children,O=e.size,T=e.actions,_=e.ghost,k=_===void 0?!1:_,A=e.hoverable,j=A===void 0?!1:A,D=e.direction,F=e.collapsed,L=e.collapsible,B=L===void 0?!1:L,K=e.collapsibleIconRender,W=e.colStyle,V=e.defaultCollapsed,q=V===void 0?!1:V,U=e.onCollapse,G=e.checked,Y=e.onChecked,J=e.tabs,Q=e.type,Z=Ue(e,s_e),ne=s.useContext(Rt.ConfigContext),ae=ne.getPrefixCls,le=du()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},re=Nt(q,{value:F,onChange:U}),fe=ce(re,2),ue=fe[0],de=fe[1],ie=["xxl","xl","lg","md","sm","xs"],se=n_e(J==null?void 0:J.items,I,J),ve=function(_e){var Be=[0,0],Qe=Array.isArray(_e)?_e:[_e,0];return Qe.forEach(function(lt,Ke){if(it(lt)==="object")for(var et=0;et=0&&Ke<=24)),Ze=ge(N.jsx("div",{style:P(P(P(P({},et),he(He>0,{paddingInlineEnd:He/2,paddingInlineStart:He/2})),he(Te>0,{paddingBlockStart:Te/2,paddingBlockEnd:Te/2})),W),className:st,children:ee.cloneElement(we)}));return ee.cloneElement(Ze,{key:"pro-card-col-".concat((we==null?void 0:we.key)||_e)})}return we}),Ee=oe("".concat(pe),r,ye,(n={},z(z(z(z(z(z(z(z(z(z(n,"".concat(pe,"-border"),$),"".concat(pe,"-box-shadow"),R),"".concat(pe,"-contain-card"),Re),"".concat(pe,"-loading"),g),"".concat(pe,"-split"),S==="vertical"||S==="horizontal"),"".concat(pe,"-ghost"),k),"".concat(pe,"-hoverable"),j),"".concat(pe,"-size-").concat(O),O),"".concat(pe,"-type-").concat(Q),Q),"".concat(pe,"-collapse"),ue),z(n,"".concat(pe,"-checked"),G))),Le=oe("".concat(pe,"-body"),ye,z(z(z({},"".concat(pe,"-body-center"),m==="center"),"".concat(pe,"-body-direction-column"),S==="horizontal"||D==="column"),"".concat(pe,"-body-wrap"),f&&Re)),Pe=o,ze=ee.isValidElement(g)?g:N.jsx(J5e,{prefix:pe,style:(o==null?void 0:o.padding)===0||(o==null?void 0:o.padding)==="0px"?{padding:24}:void 0}),Oe=B&&F===void 0&&(K?K({collapsed:ue}):N.jsx(oi,{onClick:function(){B==="icon"&&de(!ue)},rotate:ue?void 0:90,className:"".concat(pe,"-collapsible-icon ").concat(ye).trim()}));return ge(N.jsxs("div",P(P({className:Ee,style:a,ref:t,onClick:function(_e){var Be;Y==null||Y(_e),Z==null||(Be=Z.onClick)===null||Be===void 0||Be.call(Z,_e)}},nn(Z,["prefixCls","colSpan"])),{},{children:[(l||u||Oe)&&N.jsxs("div",{className:oe("".concat(pe,"-header"),ye,z(z({},"".concat(pe,"-header-border"),x||Q==="inner"),"".concat(pe,"-header-collapsible"),Oe)),style:i,onClick:function(){(B==="header"||B===!0)&&de(!ue)},children:[N.jsxs("div",{className:"".concat(pe,"-title ").concat(ye).trim(),children:[Oe,N.jsx(au,{label:l,tooltip:p,subTitle:c})]}),u&&N.jsx("div",{className:"".concat(pe,"-extra ").concat(ye).trim(),onClick:function(_e){return _e.stopPropagation()},children:u})]}),J?N.jsx("div",{className:"".concat(pe,"-tabs ").concat(ye).trim(),children:N.jsx(Bi,P(P({onChange:J.onChange},nn(J,["cardProps"])),{},{items:se,children:g?ze:I}))}):N.jsx("div",{className:Le,style:Pe,children:g?ze:je}),T?N.jsx(K5e,{actions:T,prefixCls:pe}):null]})))}),c_e=function(t){var n=t.componentCls;return z({},n,{"&-divider":{flex:"none",width:t.lineWidth,marginInline:t.marginXS,marginBlock:t.marginLG,backgroundColor:t.colorSplit,"&-horizontal":{width:"initial",height:t.lineWidth,marginInline:t.marginLG,marginBlock:t.marginXS}},"&&-size-small &-divider":{marginBlock:t.marginLG,marginInline:t.marginXS,"&-horizontal":{marginBlock:t.marginXS,marginInline:t.marginLG}}})};function u_e(e){return En("ProCardDivider",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[c_e(n)]})}var XG=function(t){var n=s.useContext(Rt.ConfigContext),r=n.getPrefixCls,a=r("pro-card"),o="".concat(a,"-divider"),i=u_e(a),l=i.wrapSSR,c=i.hashId,u=t.className,d=t.style,f=d===void 0?{}:d,m=t.type,g=oe(o,u,c,z({},"".concat(o,"-").concat(m),m));return l(N.jsx("div",{className:g,style:f}))},d_e=function(t){return z({},t.componentCls,{display:"flex",flexDirection:"column",justifyContent:"flex-end",marginBlock:t.marginLG,marginInline:0,color:t.colorText,fontWeight:"500",fontSize:"20px",lineHeight:"38px"})};function f_e(e){return En("ProCardOperation",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[d_e(n)]})}var v_e=function(t){var n=t.className,r=t.style,a=r===void 0?{}:r,o=t.children,i=s.useContext(Rt.ConfigContext),l=i.getPrefixCls,c=l("pro-card-operation"),u=f_e(c),d=u.wrapSSR,f=u.hashId,m=oe(c,n,f);return d(N.jsx("div",{className:m,style:a,children:o}))},m_e=function(t){return z({},t.componentCls,{"&-chart":{display:"flex",flexDirection:"column",marginBlockStart:8,marginBlockEnd:8,"&-left":{marginBlockStart:0,marginInlineEnd:"16px"},"&-right":{marginBlockStart:0,marginInlineStart:"16px"}},"&-content":{display:"flex",flexDirection:"column","&-horizontal":z({flexDirection:"row"},"".concat(t.componentCls,"-chart"),{alignItems:"center",alignSelf:"flex-start"})},"&-footer":{marginBlockStart:8,paddingBlockStart:"16px",borderBlockStart:"rgba(0, 0, 0, 0.08) solid ".concat(t.colorBorder)}})};function g_e(e){return En("StatisticCard",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[m_e(n)]})}var p_e=["children","statistic","className","chart","chartPlacement","footer"],qa=function(t){var n=t.children,r=t.statistic,a=t.className,o=t.chart,i=t.chartPlacement,l=t.footer,c=Ue(t,p_e),u=s.useContext(Rt.ConfigContext),d=u.getPrefixCls,f=d("pro-statistic-card"),m=g_e(f),g=m.wrapSSR,h=m.hashId,b=oe(f,a,h),p=r&&N.jsx(GG,P({layout:"vertical"},r)),S=oe("".concat(f,"-chart"),h,z(z({},"".concat(f,"-chart-left"),i==="left"&&o&&r),"".concat(f,"-chart-right"),i==="right"&&o&&r)),C=o&&N.jsx("div",{className:S,children:o}),x=oe("".concat(f,"-content "),h,z({},"".concat(f,"-content-horizontal"),i==="left"||i==="right")),w=(C||p)&&(i==="left"?N.jsxs("div",{className:x,children:[C,p]}):N.jsxs("div",{className:x,children:[p,C]})),$=l&&N.jsx("div",{className:"".concat(f,"-footer ").concat(h).trim(),children:l});return g(N.jsxs(lf,P(P({className:b},c),{},{children:[w,n,$]})))},h_e=function(t){return N.jsx(qa,P({bodyStyle:{padding:0}},t))};qa.Statistic=GG;qa.Divider=XG;qa.Operation=v_e;qa.isProCard=!0;qa.Group=h_e;var b_e=function(t){return N.jsx(lf,P({bodyStyle:{padding:0}},t))},Vg=lf;Vg.isProCard=!0;Vg.Divider=XG;Vg.TabPane=r_e;Vg.Group=b_e;var bm=function(){return bm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||!window.URL)return{};var d=[];i.forEach(function(m,g){d.push({key:g,value:m})}),d=d.reduce(function(m,g){return(m[g.key]=m[g.key]||[]).push(g),m},{}),d=Object.keys(d).map(function(m){var g=d[m];return g.length===1?[m,g[0].value]:[m,g.map(function(h){var b=h.value;return b})]});var f=bm({},e);return d.forEach(function(m){var g=m[0],h=m[1];f[g]=x_e(g,h,{},e)}),f},[t.disabled,e,i]);function c(d){if(!(typeof window>"u"||!window.URL)){var f=y_e(d);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),i.toString()!==f.searchParams.toString()&&a({})}}s.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||c(bm(bm({},e),l))},[t.disabled,l]);var u=function(d){c(d)};return s.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var d=function(){a({})};return window.addEventListener("popstate",d),function(){window.removeEventListener("popstate",d)}},[t.disabled]),[l,u]}var S_e={true:!0,false:!1};function x_e(e,t,n,r){if(!n)return t;var a=n[e],o=t===void 0?r[e]:t;return a===Number?Number(o):a===Boolean||t==="true"||t==="false"?S_e[o]:Array.isArray(a)?a.find(function(i){return i==o})||r[e]:o}var Zl=ee.createContext({}),w_e=["children","Wrapper"],$_e=["children","Wrapper"],j3=s.createContext({grid:!1,colProps:void 0,rowProps:void 0}),E_e=function(t){var n=t.grid,r=t.rowProps,a=t.colProps;return{grid:!!n,RowWrapper:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.children,c=i.Wrapper,u=Ue(i,w_e);return n?N.jsx(Ii,P(P(P({gutter:8},r),u),{},{children:l})):c?N.jsx(c,{children:l}):l},ColWrapper:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=i.children,c=i.Wrapper,u=Ue(i,$_e),d=s.useMemo(function(){var f=P(P({},a),u);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[u]);return n?N.jsx(Qr,P(P({},d),{},{children:l})):c?N.jsx(c,{children:l}):l}}},Bf=function(t){var n=s.useMemo(function(){return it(t)==="object"?t:{grid:t}},[t]),r=s.useContext(j3),a=r.grid,o=r.colProps;return s.useMemo(function(){return E_e({grid:!!(a||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||o,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,a,JSON.stringify([o,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},P_e=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],O_e=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],$D={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},I_e=["switch","radioButton","radio","rate"];function QG(e,t){e.displayName="ProFormComponent";var n=function(o){var i=P(P({},o==null?void 0:o.filedConfig),t),l=i.valueType,c=i.customLightMode,u=i.lightFilterLabelFormatter,d=i.valuePropName,f=d===void 0?"value":d,m=i.ignoreWidth,g=i.defaultProps,h=Ue(i,P_e),b=P(P({},g),o),p=b.label,S=b.tooltip,C=b.placeholder,x=b.width,w=b.bordered,$=b.messageVariables,E=b.ignoreFormItem,R=b.transform,I=b.convertValue,O=b.readonly,T=b.allowClear;b.colSize;var _=b.getFormItemProps,k=b.getFieldProps;b.filedConfig;var A=b.cacheForSwr,j=b.proFieldProps,D=Ue(b,O_e),F=l||D.valueType,L=s.useMemo(function(){return m||I_e.includes(F)},[m,F]),B=s.useState(),K=ce(B,2),W=K[1],V=s.useState(),q=ce(V,2),U=q[0],G=q[1],Y=ee.useContext(Zl),J=Na(function(){return{formItemProps:_==null?void 0:_(),fieldProps:k==null?void 0:k()}},[k,_,D.dependenciesValues,U]),Q=Na(function(){var ge=P(P(P(P({},E?Fr({value:D.value}):{}),{},{placeholder:C,disabled:o.disabled},Y.fieldProps),J.fieldProps),D.fieldProps);return ge.style=Fr(ge==null?void 0:ge.style),ge},[E,D.value,D.fieldProps,C,o.disabled,Y.fieldProps,J.fieldProps]),Z=XTe(D),ne=Na(function(){return P(P(P(P({},Y.formItemProps),Z),J.formItemProps),D.formItemProps)},[J.formItemProps,Y.formItemProps,D.formItemProps,Z]),ae=Na(function(){return P(P({messageVariables:$},h),ne)},[h,ne,$]);wa(!D.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var le=s.useContext(Us),re=le.prefixName,fe=Na(function(){var ge,ye=ae==null?void 0:ae.name;Array.isArray(ye)&&(ye=ye.join("_")),Array.isArray(re)&&ye&&(ye="".concat(re.join("."),".").concat(ye));var xe=ye&&"form-".concat((ge=Y.formKey)!==null&&ge!==void 0?ge:"","-field-").concat(ye);return xe},[Bs(ae==null?void 0:ae.name),re,Y.formKey]),ue=Hn(function(){var ge;_||k?G([]):D.renderFormItem&&W([]);for(var ye=arguments.length,xe=new Array(ye),$e=0;$e0?se.map(function(he,Ce){var pe=ve==null?void 0:ve[Ce],Se=pe==null?void 0:pe["data-item"];return P(P(P({},Se||{}),he),{},{label:F&&Se?Se.label:he.label})}):[]},de=function ie(se){return se.map(function(ve,he){var Ce,pe=ve,Se=pe.className,ge=pe.optionType,ye=Ue(pe,__e),xe=ve[W],$e=ve[q],He=(Ce=ve[G])!==null&&Ce!==void 0?Ce:[];return ge==="optGroup"||ve.options?P(P({label:xe},ye),{},{data_title:xe,title:xe,key:$e??"".concat(xe==null?void 0:xe.toString(),"-").concat(he,"-").concat(Km()),children:ie(He)}):P(P({title:xe},ye),{},{data_title:xe,value:$e??he,key:$e??"".concat(xe==null?void 0:xe.toString(),"-").concat(he,"-").concat(Km()),"data-item":ve,className:"".concat(re,"-option ").concat(Se||"").trim(),label:(r==null?void 0:r(ve))||xe})})};return N.jsx(li,P(P({ref:ne,className:fe,allowClear:!0,autoClearSearchValue:u,disabled:$,mode:a,showSearch:k,searchValue:Q,optionFilterProp:S,optionLabelProp:x,onClear:function(){T==null||T(),R(void 0),k&&Z(void 0)}},L),{},{filterOption:L.filterOption==!1?!1:function(ie,se){var ve,he;return L.filterOption&&typeof L.filterOption=="function"?L.filterOption(ie,P(P({},se),{},{label:se==null?void 0:se.data_title})):!!(se!=null&&(ve=se.data_title)!==null&&ve!==void 0&&ve.toString().toLowerCase().includes(ie.toLowerCase())||se!=null&&(he=se[S])!==null&&he!==void 0&&he.toString().toLowerCase().includes(ie.toLowerCase()))},onSearch:k?function(ie){b&&R(ie),o==null||o(ie),Z(ie)}:void 0,onChange:function(se,ve){k&&u&&(R(void 0),o==null||o(""),Z(void 0));for(var he=arguments.length,Ce=new Array(he>2?he-2:0),pe=2;pe-1&&r%1==0&&r-1&&n%1==0&&n<=e}return Kw=t,Kw}var qw,KD;function rje(){if(KD)return qw;KD=1;var e=Pu(),t=k3(),n=gl(),r="[object Arguments]",a="[object Array]",o="[object Boolean]",i="[object Date]",l="[object Error]",c="[object Function]",u="[object Map]",d="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",h="[object String]",b="[object WeakMap]",p="[object ArrayBuffer]",S="[object DataView]",C="[object Float32Array]",x="[object Float64Array]",w="[object Int8Array]",$="[object Int16Array]",E="[object Int32Array]",R="[object Uint8Array]",I="[object Uint8ClampedArray]",O="[object Uint16Array]",T="[object Uint32Array]",_={};_[C]=_[x]=_[w]=_[$]=_[E]=_[R]=_[I]=_[O]=_[T]=!0,_[r]=_[a]=_[p]=_[o]=_[S]=_[i]=_[l]=_[c]=_[u]=_[d]=_[f]=_[m]=_[g]=_[h]=_[b]=!1;function k(A){return n(A)&&t(A.length)&&!!_[e(A)]}return qw=k,qw}var Uw,qD;function A3(){if(qD)return Uw;qD=1;function e(t){return function(n){return t(n)}}return Uw=e,Uw}var am={exports:{}};am.exports;var UD;function L3(){return UD||(UD=1,(function(e,t){var n=ZG(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,i=o&&n.process,l=(function(){try{var c=a&&a.require&&a.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}})();e.exports=l})(am,am.exports)),am.exports}var Gw,GD;function B3(){if(GD)return Gw;GD=1;var e=rje(),t=A3(),n=L3(),r=n&&n.isTypedArray,a=r?t(r):e;return Gw=a,Gw}var Yw,YD;function tY(){if(YD)return Yw;YD=1;var e=eje(),t=F3(),n=Lo(),r=X1(),a=D3(),o=B3(),i=Object.prototype,l=i.hasOwnProperty;function c(u,d){var f=n(u),m=!f&&t(u),g=!f&&!m&&r(u),h=!f&&!m&&!g&&o(u),b=f||m||g||h,p=b?e(u.length,String):[],S=p.length;for(var C in u)(d||l.call(u,C))&&!(b&&(C=="length"||g&&(C=="offset"||C=="parent")||h&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||a(C,S)))&&p.push(C);return p}return Yw=c,Yw}var Xw,XD;function z3(){if(XD)return Xw;XD=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return Xw=t,Xw}var Qw,QD;function nY(){if(QD)return Qw;QD=1;function e(t,n){return function(r){return t(n(r))}}return Qw=e,Qw}var Jw,JD;function aje(){if(JD)return Jw;JD=1;var e=nY(),t=e(Object.keys,Object);return Jw=t,Jw}var Zw,ZD;function oje(){if(ZD)return Zw;ZD=1;var e=z3(),t=aje(),n=Object.prototype,r=n.hasOwnProperty;function a(o){if(!e(o))return t(o);var i=[];for(var l in Object(o))r.call(o,l)&&l!="constructor"&&i.push(l);return i}return Zw=a,Zw}var e2,e7;function mi(){if(e7)return e2;e7=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return e2=e,e2}var t2,t7;function H3(){if(t7)return t2;t7=1;var e=Pu(),t=mi(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function i(l){if(!t(l))return!1;var c=e(l);return c==r||c==a||c==n||c==o}return t2=i,t2}var n2,n7;function Hf(){if(n7)return n2;n7=1;var e=H3(),t=k3();function n(r){return r!=null&&t(r.length)&&!e(r)}return n2=n,n2}var r2,r7;function Kg(){if(r7)return r2;r7=1;var e=tY(),t=oje(),n=Hf();function r(a){return n(a)?e(a):t(a)}return r2=r,r2}var a2,a7;function rY(){if(a7)return a2;a7=1;var e=eY(),t=Kg();function n(r,a){return r&&e(r,a,t)}return a2=n,a2}var o2,o7;function Q1(){if(o7)return o2;o7=1;function e(t){return t}return o2=e,o2}var i2,i7;function aY(){if(i7)return i2;i7=1;var e=Q1();function t(n){return typeof n=="function"?n:e}return i2=t,i2}var l2,l7;function V3(){if(l7)return l2;l7=1;var e=rY(),t=aY();function n(r,a){return r&&e(r,t(a))}return l2=n,l2}var s2,s7;function W3(){if(s7)return s2;s7=1;var e=nY(),t=e(Object.getPrototypeOf,Object);return s2=t,s2}var c2,c7;function oY(){if(c7)return c2;c7=1;var e=Pu(),t=W3(),n=gl(),r="[object Object]",a=Function.prototype,o=Object.prototype,i=a.toString,l=o.hasOwnProperty,c=i.call(Object);function u(d){if(!n(d)||e(d)!=r)return!1;var f=t(d);if(f===null)return!0;var m=l.call(f,"constructor")&&f.constructor;return typeof m=="function"&&m instanceof m&&i.call(m)==c}return c2=u,c2}var u2,u7;function iY(){if(u7)return u2;u7=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=Array(a);++r-1}return p2=t,p2}var h2,h7;function uje(){if(h7)return h2;h7=1;var e=J1();function t(n,r){var a=this.__data__,o=e(a,n);return o<0?(++this.size,a.push([n,r])):a[o][1]=r,this}return h2=t,h2}var b2,b7;function Z1(){if(b7)return b2;b7=1;var e=ije(),t=lje(),n=sje(),r=cje(),a=uje();function o(i){var l=-1,c=i==null?0:i.length;for(this.clear();++lg))return!1;var b=f.get(i),p=f.get(l);if(b&&p)return b==l&&p==i;var S=-1,C=!0,x=c&a?new e:void 0;for(f.set(i,l),f.set(l,i);++S0&&arguments[0]!==void 0?arguments[0]:[],m=[];return(0,l.default)(f,function(g){Array.isArray(g)?d(g).map(function(h){return m.push(h)}):(0,o.default)(g)?(0,r.default)(g,function(h,b){h===!0&&m.push(b),m.push(b+"-"+h)}):(0,t.default)(g)&&m.push(g)}),m};return dd.default=u,dd}var fd={},K$,qk;function CY(){if(qk)return K$;qk=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r1&&arguments[1]!==void 0?arguments[1]:[],d=c.default&&(0,r.default)(c.default)||{};return u.map(function(f){var m=c[f];return m&&(0,t.default)(m,function(g,h){d[h]||(d[h]={}),d[h]=a({},d[h],m[h])}),f}),d};return fd.default=i,fd}var vd={},$A;function jFe(){if($A)return vd;$A=1,Object.defineProperty(vd,"__esModule",{value:!0}),vd.autoprefix=void 0;var e=V3(),t=r(e),n=Object.assign||function(i){for(var l=1;l1&&arguments[1]!==void 0?arguments[1]:"span";return(function(f){i(m,f);function m(){var g,h,b,p;a(this,m);for(var S=arguments.length,C=Array(S),x=0;x1&&arguments[1]!==void 0?arguments[1]:"span";return(function(f){i(m,f);function m(){var g,h,b,p;a(this,m);for(var S=arguments.length,C=Array(S),x=0;x1&&arguments[1]!==void 0?arguments[1]:!0;a[l]=c};return n===0&&o("first-child"),n===r-1&&o("last-child"),(n===0||n%2===0)&&o("even"),Math.abs(n%2)===1&&o("odd"),o("nth-child",n),a};return w0.default=e,w0}var IA;function AFe(){if(IA)return no;IA=1,Object.defineProperty(no,"__esModule",{value:!0}),no.ReactCSS=no.loop=no.handleActive=no.handleHover=no.hover=void 0;var e=vFe(),t=m(e),n=_Fe(),r=m(n),a=jFe(),o=m(a),i=FFe(),l=m(i),c=DFe(),u=m(c),d=kFe(),f=m(d);function m(h){return h&&h.__esModule?h:{default:h}}no.hover=l.default,no.handleHover=l.default,no.handleActive=u.default,no.loop=f.default;var g=no.ReactCSS=function(b){for(var p=arguments.length,S=Array(p>1?p-1:0),C=1;C0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return TE=r,TE}var NE,BA;function YFe(){if(BA)return NE;BA=1;var e=UFe(),t=GFe(),n=t(e);return NE=n,NE}var _E,zA;function XFe(){if(zA)return _E;zA=1;var e=Q1(),t=KFe(),n=YFe();function r(a,o){return n(t(a,o,e),a+"")}return _E=r,_E}var jE,HA;function QFe(){if(HA)return jE;HA=1;var e=qg(),t=Hf(),n=D3(),r=mi();function a(o,i,l){if(!r(l))return!1;var c=typeof i;return(c=="number"?t(l)&&n(i,l.length):c=="string"&&i in l)?e(l[i],o):!1}return jE=a,jE}var FE,VA;function JFe(){if(VA)return FE;VA=1;var e=XFe(),t=QFe();function n(r){return e(function(a,o){var i=-1,l=o.length,c=l>1?o[l-1]:void 0,u=l>2?o[2]:void 0;for(c=r.length>3&&typeof c=="function"?(l--,c):void 0,u&&t(o[0],o[1],u)&&(c=l<3?void 0:c,l=1),a=Object(a);++il?m=1:m=Math.round(f*100/l)/100,n.a!==m)return{h:n.h,s:n.s,l:n.l,a:m,source:"rgb"}}else{var g;if(d<0?g=0:d>i?g=1:g=Math.round(d*100/i)/100,a!==g)return{h:n.h,s:n.s,l:n.l,a:g,source:"rgb"}}return null},kE={},rDe=function(t,n,r,a){if(typeof document>"u"&&!a)return null;var o=a?new a:document.createElement("canvas");o.width=r*2,o.height=r*2;var i=o.getContext("2d");return i?(i.fillStyle=t,i.fillRect(0,0,o.width,o.height),i.fillStyle=n,i.fillRect(0,0,r,r),i.translate(r,r),i.fillRect(0,0,r,r),o.toDataURL()):null},aDe=function(t,n,r,a){var o="".concat(t,"-").concat(n,"-").concat(r).concat(a?"-server":"");if(kE[o])return kE[o];var i=rDe(t,n,r,a);return kE[o]=i,i};function Ym(e){"@babel/helpers - typeof";return Ym=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ym(e)}function KA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $0(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gy(e)}var yDe=(function(e){mDe(n,e);var t=gDe(n);function n(){var r;uDe(this,n);for(var a=arguments.length,o=new Array(a),i=0;ii)f=0;else{var m=-(d*100/i)+100;f=360*m/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var g;if(u<0)g=0;else if(u>o)g=359;else{var h=u*100/o;g=360*h/100}if(r.h!==g)return{h:g,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function lf(e){"@babel/helpers - typeof";return lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lf(e)}function YFe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XFe(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fy(e){return fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fy(e)}var oDe=(function(e){eDe(n,e);var t=tDe(n);function n(){var r;YFe(this,n);for(var a=arguments.length,o=new Array(a),i=0;ii)f=0;else{var m=-(d*100/i)+100;f=360*m/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var g;if(u<0)g=0;else if(u>o)g=359;else{var h=u*100/o;g=360*h/100}if(r.h!==g)return{h:g,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function cf(e){"@babel/helpers - typeof";return cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cf(e)}function SDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xDe(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},py(e)}var TDe=(function(e){PDe(n,e);var t=ODe(n);function n(){var r;SDe(this,n);for(var a=arguments.length,o=new Array(a),i=0;i=c||j<0||C&&D>=m}function I(){var k=t();if(R(k))return O(k);h=setTimeout(I,E(k))}function O(k){return h=void 0,x&&d?w(k):(d=f=void 0,g)}function T(){h!==void 0&&clearTimeout(h),p=0,d=b=f=h=void 0}function N(){return h===void 0?g:O(t())}function A(){var k=t(),j=R(k);if(d=arguments,f=this,b=k,j){if(h===void 0)return $(b);if(C)return clearTimeout(h),h=setTimeout(I,c),w(b)}return h===void 0&&(h=setTimeout(I,c)),g}return A.cancel=T,A.flush=N,A}return _E=i,_E}var jE,FA;function uDe(){if(FA)return jE;FA=1;var e=vY(),t=di(),n="Expected a function";function r(a,o,i){var l=!0,c=!0;if(typeof a!="function")throw new TypeError(n);return t(i)&&(l="leading"in i?!!i.leading:l,c="trailing"in i?!!i.trailing:c),e(a,o,{leading:l,maxWait:o,trailing:c})}return jE=r,jE}var dDe=uDe();const fDe=an(dDe);var vDe=function(t,n,r){var a=r.getBoundingClientRect(),o=a.width,i=a.height,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=l-(r.getBoundingClientRect().left+window.pageXOffset),d=c-(r.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>o&&(u=o),d<0?d=0:d>i&&(d=i);var f=u/o,m=1-d/i;return{h:n.h,s:f,v:m,a:n.a,source:"hsv"}};function sf(e){"@babel/helpers - typeof";return sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sf(e)}function mDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gDe(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vy(e)}var $De=(function(e){yDe(n,e);var t=CDe(n);function n(r){var a;return mDe(this,n),a=t.call(this,r),a.handleChange=function(o){typeof a.props.onChange=="function"&&a.throttle(a.props.onChange,vDe(o,a.props.hsl,a.container),o)},a.handleMouseDown=function(o){a.handleChange(o);var i=a.getContainerRenderWindow();i.addEventListener("mousemove",a.handleChange),i.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.throttle=fDe(function(o,i,l){o(i,l)},50),a}return pDe(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var a=this.container,o=window;!o.document.contains(a)&&o.parent!==o;)o=o.parent;return o}},{key:"unbindEventListeners",value:function(){var a=this.getContainerRenderWindow();a.removeEventListener("mousemove",this.handleChange),a.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var a=this,o=this.props.style||{},i=o.color,l=o.white,c=o.black,u=o.pointer,d=o.circle,f=oc({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), + `),ee.createElement("div",{style:l.pointer},this.props.pointer?ee.createElement(this.props.pointer,this.props):ee.createElement("div",{style:l.slider}))))}}]),n})(s.PureComponent||s.Component),AE,UA;function NDe(){if(UA)return AE;UA=1;var e=Ui(),t=function(){return e.Date.now()};return AE=t,AE}var LE,GA;function _De(){if(GA)return LE;GA=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return LE=t,LE}var BE,YA;function jDe(){if(YA)return BE;YA=1;var e=_De(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return BE=n,BE}var zE,XA;function FDe(){if(XA)return zE;XA=1;var e=jDe(),t=mi(),n=aC(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,l=parseInt;function c(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=t(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=o.test(u);return f||i.test(u)?l(u.slice(2),f?2:8):a.test(u)?r:+u}return zE=c,zE}var HE,QA;function TY(){if(QA)return HE;QA=1;var e=mi(),t=NDe(),n=FDe(),r="Expected a function",a=Math.max,o=Math.min;function i(l,c,u){var d,f,m,g,h,b,p=0,S=!1,C=!1,x=!0;if(typeof l!="function")throw new TypeError(r);c=n(c)||0,e(u)&&(S=!!u.leading,C="maxWait"in u,m=C?a(n(u.maxWait)||0,c):m,x="trailing"in u?!!u.trailing:x);function w(A){var j=d,D=f;return d=f=void 0,p=A,g=l.apply(D,j),g}function $(A){return p=A,h=setTimeout(I,c),S?w(A):g}function E(A){var j=A-b,D=A-p,F=c-j;return C?o(F,m-D):F}function R(A){var j=A-b,D=A-p;return b===void 0||j>=c||j<0||C&&D>=m}function I(){var A=t();if(R(A))return O(A);h=setTimeout(I,E(A))}function O(A){return h=void 0,x&&d?w(A):(d=f=void 0,g)}function T(){h!==void 0&&clearTimeout(h),p=0,d=b=f=h=void 0}function _(){return h===void 0?g:O(t())}function k(){var A=t(),j=R(A);if(d=arguments,f=this,b=A,j){if(h===void 0)return $(b);if(C)return clearTimeout(h),h=setTimeout(I,c),w(b)}return h===void 0&&(h=setTimeout(I,c)),g}return k.cancel=T,k.flush=_,k}return HE=i,HE}var VE,JA;function DDe(){if(JA)return VE;JA=1;var e=TY(),t=mi(),n="Expected a function";function r(a,o,i){var l=!0,c=!0;if(typeof a!="function")throw new TypeError(n);return t(i)&&(l="leading"in i?!!i.leading:l,c="trailing"in i?!!i.trailing:c),e(a,o,{leading:l,maxWait:o,trailing:c})}return VE=r,VE}var kDe=DDe();const ADe=rn(kDe);var LDe=function(t,n,r){var a=r.getBoundingClientRect(),o=a.width,i=a.height,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=l-(r.getBoundingClientRect().left+window.pageXOffset),d=c-(r.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>o&&(u=o),d<0?d=0:d>i&&(d=i);var f=u/o,m=1-d/i;return{h:n.h,s:f,v:m,a:n.a,source:"hsv"}};function uf(e){"@babel/helpers - typeof";return uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uf(e)}function BDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zDe(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hy(e)}var XDe=(function(e){KDe(n,e);var t=qDe(n);function n(r){var a;return BDe(this,n),a=t.call(this,r),a.handleChange=function(o){typeof a.props.onChange=="function"&&a.throttle(a.props.onChange,LDe(o,a.props.hsl,a.container),o)},a.handleMouseDown=function(o){a.handleChange(o);var i=a.getContainerRenderWindow();i.addEventListener("mousemove",a.handleChange),i.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.throttle=ADe(function(o,i,l){o(i,l)},50),a}return HDe(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var a=this.container,o=window;!o.document.contains(a)&&o.parent!==o;)o=o.parent;return o}},{key:"unbindEventListeners",value:function(){var a=this.getContainerRenderWindow();a.removeEventListener("mousemove",this.handleChange),a.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var a=this,o=this.props.style||{},i=o.color,l=o.white,c=o.black,u=o.pointer,d=o.circle,f=ac({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:i,white:l,black:c,pointer:u,circle:d}},{custom:!!this.props.style});return ee.createElement("div",{style:f.color,ref:function(g){return a.container=g},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ee.createElement("style",null,` .saturation-white { background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); @@ -604,8 +604,8 @@ ${W}`),L.pop(),`{${G}}`}case"number":return isFinite(F)?String(F):x?x(F):"null"; background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); background: linear-gradient(to top, #000, rgba(0,0,0,0)); } - `),ee.createElement("div",{style:f.white,className:"saturation-white"},ee.createElement("div",{style:f.black,className:"saturation-black"}),ee.createElement("div",{style:f.pointer},this.props.pointer?ee.createElement(this.props.pointer,this.props):ee.createElement("div",{style:f.circle}))))}}]),n})(s.PureComponent||s.Component),EDe=vY();const PDe=an(EDe);var FE,DA;function ODe(){if(DA)return FE;DA=1;var e=nY(),t=tY(),n=BG(),r=Ao();function a(o,i){var l=r(o)?e:t;return l(o,n(i))}return FE=a,FE}var DE,kA;function IDe(){return kA||(kA=1,DE=ODe()),DE}var RDe=IDe();const MDe=an(RDe);function my(e){"@babel/helpers - typeof";return my=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},my(e)}var TDe=/^\s+/,NDe=/\s+$/;function cn(e,t){if(e=e||"",t=t||{},e instanceof cn)return e;if(!(this instanceof cn))return new cn(e,t);var n=_De(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}cn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,a,o,i,l;return n=t.r/255,r=t.g/255,a=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),a<=.03928?l=a/12.92:l=Math.pow((a+.055)/1.055,2.4),.2126*o+.7152*i+.0722*l},setAlpha:function(t){return this._a=mY(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=LA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=LA(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+a+"%)":"hsva("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=AA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=AA(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+a+"%)":"hsla("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return BA(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return kDe(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ir(this._r,255)*100)+"%",g:Math.round(Ir(this._g,255)*100)+"%",b:Math.round(Ir(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ir(this._r,255)*100)+"%, "+Math.round(Ir(this._g,255)*100)+"%, "+Math.round(Ir(this._b,255)*100)+"%)":"rgba("+Math.round(Ir(this._r,255)*100)+"%, "+Math.round(Ir(this._g,255)*100)+"%, "+Math.round(Ir(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:YDe[BA(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+zA(this._r,this._g,this._b,this._a),r=n,a=this._gradientType?"GradientType = 1, ":"";if(t){var o=cn(t);r="#"+zA(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,a=this._a<1&&this._a>=0,o=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return cn(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(zDe,arguments)},brighten:function(){return this._applyModification(HDe,arguments)},darken:function(){return this._applyModification(VDe,arguments)},desaturate:function(){return this._applyModification(ADe,arguments)},saturate:function(){return this._applyModification(LDe,arguments)},greyscale:function(){return this._applyModification(BDe,arguments)},spin:function(){return this._applyModification(WDe,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(UDe,arguments)},complement:function(){return this._applyCombination(KDe,arguments)},monochromatic:function(){return this._applyCombination(GDe,arguments)},splitcomplement:function(){return this._applyCombination(qDe,arguments)},triad:function(){return this._applyCombination(HA,[3])},tetrad:function(){return this._applyCombination(HA,[4])}};cn.fromRatio=function(e,t){if(my(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=im(e[r]));e=n}return cn(e,t)};function _De(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,l=!1;return typeof e=="string"&&(e=ZDe(e)),my(e)=="object"&&(Pl(e.r)&&Pl(e.g)&&Pl(e.b)?(t=jDe(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Pl(e.h)&&Pl(e.s)&&Pl(e.v)?(r=im(e.s),a=im(e.v),t=DDe(e.h,r,a),i=!0,l="hsv"):Pl(e.h)&&Pl(e.s)&&Pl(e.l)&&(r=im(e.s),o=im(e.l),t=FDe(e.h,r,o),i=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=mY(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function jDe(e,t,n){return{r:Ir(e,255)*255,g:Ir(t,255)*255,b:Ir(n,255)*255}}function AA(e,t,n){e=Ir(e,255),t=Ir(t,255),n=Ir(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,i,l=(r+a)/2;if(r==a)o=i=0;else{var c=r-a;switch(i=l>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(t===0)r=a=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=i(c,l,e+1/3),a=i(c,l,e),o=i(c,l,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function LA(e,t,n){e=Ir(e,255),t=Ir(t,255),n=Ir(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,i,l=r,c=r-a;if(i=r===0?0:c/r,r==a)o=0;else{switch(r){case e:o=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(cn(r));return o}function GDe(e,t){t=t||6;for(var n=cn(e).toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;t--;)i.push(cn({h:r,s:a,v:o})),o=(o+l)%1;return i}cn.mix=function(e,t,n){n=n===0?0:n||50;var r=cn(e).toRgb(),a=cn(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return cn(i)};cn.readability=function(e,t){var n=cn(e),r=cn(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};cn.isReadable=function(e,t,n){var r=cn.readability(e,t),a,o;switch(o=!1,a=eke(n),a.level+a.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};cn.mostReadable=function(e,t,n){var r=null,a=0,o,i,l,c;n=n||{},i=n.includeFallbackColors,l=n.level,c=n.size;for(var u=0;ua&&(a=o,r=cn(t[u]));return cn.isReadable(e,r,{level:l,size:c})||!i?r:(n.includeFallbackColors=!1,cn.mostReadable(e,["#fff","#000"],n))};var BI=cn.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},YDe=cn.hexNames=XDe(BI);function XDe(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function mY(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ir(e,t){QDe(e)&&(e="100%");var n=JDe(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function eC(e){return Math.min(1,Math.max(0,e))}function Po(e){return parseInt(e,16)}function QDe(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function JDe(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ii(e){return e.length==1?"0"+e:""+e}function im(e){return e<=1&&(e=e*100+"%"),e}function gY(e){return Math.round(parseFloat(e)*255).toString(16)}function VA(e){return Po(e)/255}var Ci=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Pl(e){return!!Ci.CSS_UNIT.exec(e)}function ZDe(e){e=e.replace(TDe,"").replace(NDe,"").toLowerCase();var t=!1;if(BI[e])e=BI[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ci.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ci.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ci.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ci.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ci.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ci.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ci.hex8.exec(e))?{r:Po(n[1]),g:Po(n[2]),b:Po(n[3]),a:VA(n[4]),format:t?"name":"hex8"}:(n=Ci.hex6.exec(e))?{r:Po(n[1]),g:Po(n[2]),b:Po(n[3]),format:t?"name":"hex"}:(n=Ci.hex4.exec(e))?{r:Po(n[1]+""+n[1]),g:Po(n[2]+""+n[2]),b:Po(n[3]+""+n[3]),a:VA(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ci.hex3.exec(e))?{r:Po(n[1]+""+n[1]),g:Po(n[2]+""+n[2]),b:Po(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function eke(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var WA=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,a=0;return MDe(n,function(o){if(t[o]&&(r+=1,isNaN(t[o])||(a+=1),o==="s"||o==="l")){var i=/^\d+%$/;i.test(t[o])&&(a+=1)}}),r===a?t:!1},S0=function(t,n){var r=t.hex?cn(t.hex):cn(t),a=r.toHsl(),o=r.toHsv(),i=r.toRgb(),l=r.toHex();a.s===0&&(a.h=n||0,o.h=n||0);var c=l==="000000"&&i.a===0;return{hsl:a,hex:c?"transparent":"#".concat(l),rgb:i,hsv:o,oldHue:t.h||n||a.h,source:t.source}},tke=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&cn(t).isValid()};function cf(e){"@babel/helpers - typeof";return cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cf(e)}function zI(){return zI=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gy(e)}var dke=function(t){var n=(function(r){ike(o,r);var a=lke(o);function o(i){var l;return rke(this,o),l=a.call(this),l.handleChange=function(c,u){var d=WA(c);if(d){var f=S0(c,c.h||l.state.oldHue);l.setState(f),l.props.onChangeComplete&&l.debounce(l.props.onChangeComplete,f,u),l.props.onChange&&l.props.onChange(f,u)}},l.handleSwatchHover=function(c,u){var d=WA(c);if(d){var f=S0(c,c.h||l.state.oldHue);l.props.onSwatchHover&&l.props.onSwatchHover(f,u)}},l.state=jv({},S0(i.color,0)),l.debounce=PDe(function(c,u,d){c(u,d)},100),l}return ake(o,[{key:"render",value:function(){var l={};return this.props.onSwatchHover&&(l.onSwatchHover=this.handleSwatchHover),ee.createElement(t,zI({},this.props,this.state,{onChange:this.handleChange},l))}}],[{key:"getDerivedStateFromProps",value:function(l,c){return jv({},S0(l.color,c.oldHue))}}]),o})(s.PureComponent||s.Component);return n.propTypes=jv({},t.propTypes),n.defaultProps=jv(jv({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function uf(e){"@babel/helpers - typeof";return uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uf(e)}function fke(e,t,n){return t=hY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mke(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function py(e){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},py(e)}var xke=1,bY=38,wke=40,$ke=[bY,wke],Eke=function(t){return $ke.indexOf(t)>-1},Pke=function(t){return Number(String(t).replace(/%/g,""))},Oke=1,Fv=(function(e){hke(n,e);var t=bke(n);function n(r){var a;return vke(this,n),a=t.call(this),a.handleBlur=function(){a.state.blurValue&&a.setState({value:a.state.blurValue,blurValue:null})},a.handleChange=function(o){a.setUpdatedValue(o.target.value,o)},a.handleKeyDown=function(o){var i=Pke(o.target.value);if(!isNaN(i)&&Eke(o.keyCode)){var l=a.getArrowOffset(),c=o.keyCode===bY?i+l:i-l;a.setUpdatedValue(c,o)}},a.handleDrag=function(o){if(a.props.dragLabel){var i=Math.round(a.props.value+o.movementX);i>=0&&i<=a.props.dragMax&&a.props.onChange&&a.props.onChange(a.getValueObjectWithLabel(i),o)}},a.handleMouseDown=function(o){a.props.dragLabel&&(o.preventDefault(),a.handleDrag(o),window.addEventListener("mousemove",a.handleDrag),window.addEventListener("mouseup",a.handleMouseUp))},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleDrag),window.removeEventListener("mouseup",a.handleMouseUp)},a.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},a.inputId="rc-editable-input-".concat(Oke++),a}return gke(n,[{key:"componentDidUpdate",value:function(a,o){this.props.value!==this.state.value&&(a.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(a){return fke({},this.props.label,a)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||xke}},{key:"setUpdatedValue",value:function(a,o){var i=this.props.label?this.getValueObjectWithLabel(a):a;this.props.onChange&&this.props.onChange(i,o),this.setState({value:a})}},{key:"render",value:function(){var a=this,o=oc({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return ee.createElement("div",{style:o.wrap},ee.createElement("input",{id:this.inputId,style:o.input,ref:function(l){return a.input=l},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?ee.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n})(s.PureComponent||s.Component);function df(e){"@babel/helpers - typeof";return df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},df(e)}function WI(){return WI=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hy(e)}var Ake=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return(function(r){_ke(o,r);var a=jke(o);function o(){var i;Ike(this,o);for(var l=arguments.length,c=new Array(l),u=0;u100&&(d.a=100),d.a/=100,n==null||n({h:a==null?void 0:a.h,s:a==null?void 0:a.s,l:a==null?void 0:a.l,a:d.a,source:"rgb"},f))};return ee.createElement("div",{style:l.fields,className:"flexbox-fix"},ee.createElement("div",{style:l.double},ee.createElement(Fv,{style:{input:l.input,label:l.label},label:"hex",value:o==null?void 0:o.replace("#",""),onChange:c})),ee.createElement("div",{style:l.single},ee.createElement(Fv,{style:{input:l.input,label:l.label},label:"r",value:r==null?void 0:r.r,onChange:c,dragLabel:"true",dragMax:"255"})),ee.createElement("div",{style:l.single},ee.createElement(Fv,{style:{input:l.input,label:l.label},label:"g",value:r==null?void 0:r.g,onChange:c,dragLabel:"true",dragMax:"255"})),ee.createElement("div",{style:l.single},ee.createElement(Fv,{style:{input:l.input,label:l.label},label:"b",value:r==null?void 0:r.b,onChange:c,dragLabel:"true",dragMax:"255"})),ee.createElement("div",{style:l.alpha},ee.createElement(Fv,{style:{input:l.input,label:l.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:c,dragLabel:"true",dragMax:"100"})))};function Qm(e){"@babel/helpers - typeof";return Qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qm(e)}function YA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function XA(e){for(var t=1;t-1}function o7e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&CY()?R4:r7e}var i7e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=t.old,u=s.useContext(Mt.ConfigContext),d=u.getPrefixCls,f=ee.useMemo(function(){return o7e(c)},[c]),m=d("pro-field-color-picker"),g=s.useMemo(function(){return c?"":oe(z({},m,CY()))},[m,c]);if(a==="read"){var h=_.jsx(f,{value:r,mode:"read",ref:n,className:g,open:!1});return o?o(r,P({mode:a},l),h):h}if(a==="edit"||a==="update"){var b=P({display:"table-cell"},l.style),p=_.jsx(f,P(P({ref:n,presets:[a7e]},l),{},{style:b,className:g}));return i?i(r,P(P({mode:a},l),{},{style:b}),p):p}return null};const l7e=ee.forwardRef(i7e);In.extend(c4);var s7e=function(t,n){return t?typeof n=="function"?n(In(t)):In(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},c7e=function(t,n){var r=t.text,a=t.mode,o=t.format,i=t.label,l=t.light,c=t.render,u=t.renderFormItem,d=t.plain,f=t.showTime,m=t.fieldProps,g=t.picker,h=t.bordered,b=t.lightLabel,p=kn(),S=s.useState(!1),C=ce(S,2),x=C[0],w=C[1];if(a==="read"){var $=s7e(r,m.format||o);return c?c(r,P({mode:a},m),_.jsx(_.Fragment,{children:$})):_.jsx(_.Fragment,{children:$})}if(a==="edit"||a==="update"){var E,R=m.disabled,I=m.value,O=m.placeholder,T=O===void 0?p.getMessage("tableForm.selectPlaceholder","请选择"):O,N=Bg(I);return l?E=_.jsx(fl,{label:i,onClick:function(){var k;m==null||(k=m.onOpenChange)===null||k===void 0||k.call(m,!0),w(!0)},style:N?{paddingInlineEnd:0}:void 0,disabled:R,value:N||x?_.jsx(ii,P(P(P({picker:g,showTime:f,format:o,ref:n},m),{},{value:N,onOpenChange:function(k){var j;w(k),m==null||(j=m.onOpenChange)===null||j===void 0||j.call(m,k)}},Fo(!1)),{},{open:x})):void 0,allowClear:!1,downIcon:N||x?!1:void 0,bordered:h,ref:b}):E=_.jsx(ii,P(P(P({picker:g,showTime:f,format:o,placeholder:T},Fo(d===void 0?!0:!d)),{},{ref:n},m),{},{value:N})),u?u(r,P({mode:a},m),E):E}return null};const md=ee.forwardRef(c7e);var u7e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.placeholder,l=t.renderFormItem,c=t.fieldProps,u=kn(),d=i||u.getMessage("tableForm.inputPlaceholder","请输入"),f=s.useCallback(function(S){var C=S??void 0;return!c.stringMode&&typeof C=="string"&&(C=Number(C)),typeof C=="number"&&!Zs(C)&&!Zs(c.precision)&&(C=Number(C.toFixed(c.precision))),C},[c]);if(a==="read"){var m,g={};c!=null&&c.precision&&(g={minimumFractionDigits:Number(c.precision),maximumFractionDigits:Number(c.precision)});var h=new Intl.NumberFormat(void 0,P(P({},g),(c==null?void 0:c.intlProps)||{})).format(Number(r)),b=c!=null&&c.stringMode?_.jsx("span",{children:r}):_.jsx("span",{ref:n,children:(c==null||(m=c.formatter)===null||m===void 0?void 0:m.call(c,h))||h});return o?o(r,P({mode:a},c),b):b}if(a==="edit"||a==="update"){var p=_.jsx(ll,P(P({ref:n,min:0,placeholder:d},nn(c,["onChange","onBlur"])),{},{onChange:function(C){var x;return c==null||(x=c.onChange)===null||x===void 0?void 0:x.call(c,f(C))},onBlur:function(C){var x;return c==null||(x=c.onBlur)===null||x===void 0?void 0:x.call(c,f(C.target.value))}}));return l?l(r,P({mode:a},c),p):p}return null};const d7e=ee.forwardRef(u7e);var f7e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.placeholder,l=t.renderFormItem,c=t.fieldProps,u=t.separator,d=u===void 0?"~":u,f=t.separatorWidth,m=f===void 0?30:f,g=c.value,h=c.defaultValue,b=c.onChange,p=c.id,S=kn(),C=co.useToken(),x=C.token,w=_t(function(){return h},{value:g,onChange:b}),$=ce(w,2),E=$[0],R=$[1],I=s.useRef(E);if(a==="read"){var O=function(K){var W,V=new Intl.NumberFormat(void 0,P({minimumSignificantDigits:2},(c==null?void 0:c.intlProps)||{})).format(Number(K));return(c==null||(W=c.formatter)===null||W===void 0?void 0:W.call(c,V))||V},T=_.jsxs("span",{ref:n,children:[O(r[0])," ",d," ",O(r[1])]});return o?o(r,P({mode:a},c),T):T}if(a==="edit"||a==="update"){var N=function(){if(Array.isArray(I.current)){var K=ce(I.current,2),W=K[0],V=K[1];typeof W=="number"&&typeof V=="number"&&W>V?R([V,W]):W===void 0&&V===void 0&&R(void 0)}},A=function(K,W){var V=ke(E||[]);V[K]=W===null?void 0:W,I.current=V,R(V)},k=(c==null?void 0:c.placeholder)||i||[S.getMessage("tableForm.inputPlaceholder","请输入"),S.getMessage("tableForm.inputPlaceholder","请输入")],j=function(K){return Array.isArray(k)?k[K]:k},D=Jn.Compact||Kr.Group,F=Jn.Compact?{}:{compact:!0},L=_.jsxs(D,P(P({},F),{},{onBlur:N,children:[_.jsx(ll,P(P({},c),{},{placeholder:j(0),id:p??"".concat(p,"-0"),style:{width:"calc((100% - ".concat(m,"px) / 2)")},value:E==null?void 0:E[0],defaultValue:h==null?void 0:h[0],onChange:function(K){return A(0,K)}})),_.jsx(Kr,{style:{width:m,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:x==null?void 0:x.colorBgContainer},placeholder:d,disabled:!0}),_.jsx(ll,P(P({},c),{},{placeholder:j(1),id:p??"".concat(p,"-1"),style:{width:"calc((100% - ".concat(m,"px) / 2)"),borderInlineStart:0},value:E==null?void 0:E[1],defaultValue:h==null?void 0:h[1],onChange:function(K){return A(1,K)}}))]}));return l?l(r,P({mode:a},c),L):L}return null};const v7e=ee.forwardRef(f7e);var rb={exports:{}},m7e=rb.exports,JA;function g7e(){return JA||(JA=1,(function(e,t){(function(n,r){e.exports=r()})(m7e,(function(){return function(n,r,a){n=n||{};var o=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,d,f,m){return o.fromToBase(u,d,f,m)}a.en.relativeTime=i,o.fromToBase=function(u,d,f,m,g){for(var h,b,p,S=f.$locale().relativeTime||i,C=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],x=C.length,w=0;w0,E<=$.r||!$.r){E<=1&&w>0&&($=C[w-1]);var R=S[$.l];g&&(E=g(""+E)),b=typeof R=="string"?R.replace("%d",E):R(E,d,$.l,p);break}}if(d)return b;var I=p?S.future:S.past;return typeof I=="function"?I(b):I.replace("%s",b)},o.to=function(u,d){return l(u,d,this,!0)},o.from=function(u,d){return l(u,d,this)};var c=function(u){return u.$u?a.utc():a()};o.toNow=function(u){return this.to(c(this),u)},o.fromNow=function(u){return this.from(c(this),u)}}}))})(rb)),rb.exports}var p7e=g7e();const h7e=an(p7e);In.extend(h7e);var b7e=function(t,n){var r=t.text,a=t.mode,o=t.plain,i=t.render,l=t.renderFormItem,c=t.format,u=t.fieldProps,d=kn();if(a==="read"){var f=_.jsx(Kn,{title:In(r).format((u==null?void 0:u.format)||c||"YYYY-MM-DD HH:mm:ss"),children:In(r).fromNow()});return i?i(r,P({mode:a},u),_.jsx(_.Fragment,{children:f})):_.jsx(_.Fragment,{children:f})}if(a==="edit"||a==="update"){var m=d.getMessage("tableForm.selectPlaceholder","请选择"),g=Bg(u.value),h=_.jsx(ii,P(P(P({ref:n,placeholder:m,showTime:!0},Fo(o===void 0?!0:!o)),u),{},{value:g}));return l?l(r,P({mode:a},u),h):h}return null};const y7e=ee.forwardRef(b7e);var SY=ee.forwardRef(function(e,t){var n=e.text,r=e.mode,a=e.render,o=e.renderFormItem,i=e.fieldProps,l=e.placeholder,c=e.width,u=kn(),d=l||u.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=_.jsx(UK,P({ref:t,width:c||32,src:n},i));return a?a(n,P({mode:r},i),f):f}if(r==="edit"||r==="update"){var m=_.jsx(Kr,P({ref:t,placeholder:d},i));return o?o(n,P({mode:r},i),m):m}return null}),C7e=function(t,n){var r=t.border,a=r===void 0?!1:r,o=t.children,i=s.useContext(Mt.ConfigContext),l=i.getPrefixCls,c=l("pro-field-index-column"),u=$n("IndexColumn",function(){return z({},".".concat(c),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),d=u.wrapSSR,f=u.hashId;return d(_.jsx("div",{ref:n,className:oe(c,f,z(z({},"".concat(c,"-border"),a),"top-three",o>3)),children:o}))};const ZA=ee.forwardRef(C7e);var S7e=["contentRender","numberFormatOptions","numberPopoverRender","open"],x7e=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],xY=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),w7e={style:"currency",currency:"USD"},$7e={style:"currency",currency:"RUB"},E7e={style:"currency",currency:"RSD"},P7e={style:"currency",currency:"MYR"},O7e={style:"currency",currency:"BRL"},I7e={default:xY,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":w7e,"ru-RU":$7e,"ms-MY":P7e,"sr-RS":E7e,"pt-BR":O7e},eL=function(t,n,r,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",i=n==null?void 0:n.toString().replaceAll(",","");if(typeof i=="string"){var l=Number(i);if(Number.isNaN(l))return i;i=l}if(!i&&i!==0)return"";var c=!1;try{c=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var u=new Intl.NumberFormat(c&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",P(P({},I7e[t||"zh-Hans-CN"]||xY),{},{maximumFractionDigits:r},a)),d=u.format(i),f=function(S){var C=S.match(/\d+/);if(C){var x=C[0];return S.slice(S.indexOf(x))}else return S},m=f(d),g=d||"",h=ce(g,1),b=h[0];return["+","-"].includes(b)?"".concat(o||"").concat(b).concat(m):"".concat(o||"").concat(m)}catch{return i}},kE=2,R7e=ee.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,a=Ue(e,S7e),o=_t(function(){return a.defaultValue},{value:a.value,onChange:a.onChange}),i=ce(o,2),l=i[0],c=i[1],u=n==null?void 0:n(P(P({},a),{},{value:l})),d=bu(u?r:!1);return _.jsx(Bi,P(P({placement:"topLeft"},d),{},{trigger:["focus","click"],content:u,getPopupContainer:function(m){return(m==null?void 0:m.parentElement)||document.body},children:_.jsx(ll,P(P({ref:t},a),{},{value:l,onChange:c}))}))}),M7e=function(t,n){var r,a=t.text,o=t.mode,i=t.render,l=t.renderFormItem,c=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var u=t.placeholder,d=t.locale,f=t.customSymbol,m=f===void 0?c.customSymbol:f,g=t.numberFormatOptions,h=g===void 0?c==null?void 0:c.numberFormatOptions:g,b=t.numberPopoverRender,p=b===void 0?(c==null?void 0:c.numberPopoverRender)||!1:b,S=Ue(t,x7e),C=(r=c==null?void 0:c.precision)!==null&&r!==void 0?r:kE,x=kn();d&&ru[d]&&(x=ru[d]);var w=u||x.getMessage("tableForm.inputPlaceholder","请输入"),$=s.useMemo(function(){if(m)return m;if(!(S.moneySymbol===!1||c.moneySymbol===!1))return x.getMessage("moneySymbol","¥")},[m,c.moneySymbol,x,S.moneySymbol]),E=s.useCallback(function(O){var T=new RegExp("\\B(?=(\\d{".concat(3+Math.max(C-kE,0),"})+(?!\\d))"),"g"),N=String(O).split("."),A=ce(N,2),k=A[0],j=A[1],D=k.replace(T,","),F="";return j&&C>0&&(F=".".concat(j.slice(0,C===void 0?kE:C))),"".concat(D).concat(F)},[C]);if(o==="read"){var R=_.jsx("span",{ref:n,children:eL(d||!1,a,C,h??c.numberFormatOptions,$)});return i?i(a,P({mode:o},c),R):R}if(o==="edit"||o==="update"){var I=_.jsx(R7e,P(P({contentRender:function(T){if(p===!1||!T.value)return null;var N=eL($||d||!1,"".concat(E(T.value)),C,P(P({},h),{},{notation:"compact"}),$);return typeof p=="function"?p==null?void 0:p(T,N):N},ref:n,precision:C,formatter:function(T){return T&&$?"".concat($," ").concat(E(T)):T==null?void 0:T.toString()},parser:function(T){return $&&T?T.replace(new RegExp("\\".concat($,"\\s?|(,*)"),"g"),""):T},placeholder:w},nn(c,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:c.onBlur?function(O){var T,N=O.target.value;$&&N&&(N=N.replace(new RegExp("\\".concat($,"\\s?|(,*)"),"g"),"")),(T=c.onBlur)===null||T===void 0||T.call(c,N)}:void 0}));return l?l(a,P({mode:o},c),I):I}return null};const wY=ee.forwardRef(M7e);var tL=function(t){return t.map(function(n,r){var a;return ee.isValidElement(n)?ee.cloneElement(n,P(P({key:r},n==null?void 0:n.props),{},{style:P({},n==null||(a=n.props)===null||a===void 0?void 0:a.style)})):_.jsx(ee.Fragment,{children:n},r)})},T7e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.fieldProps,l=s.useContext(Mt.ConfigContext),c=l.getPrefixCls,u=c("pro-field-option"),d=co.useToken(),f=d.token;if(s.useImperativeHandle(n,function(){return{}}),o){var m=o(r,P({mode:a},i),_.jsx(_.Fragment,{}));return!m||(m==null?void 0:m.length)<1||!Array.isArray(m)?null:_.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:tL(m)})}return!r||!Array.isArray(r)?ee.isValidElement(r)?r:null:_.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:tL(r)})};const N7e=ee.forwardRef(T7e);var _7e=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],j7e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps;t.proFieldKey;var c=Ue(t,_7e),u=kn(),d=_t(function(){return c.open||c.visible||!1},{value:c.open||c.visible,onChange:c.onOpenChange||c.onVisible}),f=ce(d,2),m=f[0],g=f[1];if(a==="read"){var h=_.jsx(_.Fragment,{children:"-"});return r&&(h=_.jsxs(Jn,{children:[_.jsx("span",{ref:n,children:m?r:"********"}),_.jsx("a",{onClick:function(){return g(!m)},children:m?_.jsx(j4,{}):_.jsx(GK,{})})]})),o?o(r,P({mode:a},l),h):h}if(a==="edit"||a==="update"){var b=_.jsx(Kr.Password,P({placeholder:u.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},l));return i?i(r,P({mode:a},l),b):b}return null};const F7e=ee.forwardRef(j7e);function D7e(e){return e===0?null:e>0?"+":"-"}function k7e(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function A7e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}function by(e){return it(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var L7e=function(t,n){var r=t.text,a=t.prefix,o=t.precision,i=t.suffix,l=i===void 0?"%":i,c=t.mode,u=t.showColor,d=u===void 0?!1:u,f=t.render,m=t.renderFormItem,g=t.fieldProps,h=t.placeholder,b=t.showSymbol,p=kn(),S=h||p.getMessage("tableForm.inputPlaceholder","请输入"),C=s.useMemo(function(){return typeof r=="string"&&r.includes("%")?by(r.replace("%","")):by(r)},[r]),x=s.useMemo(function(){return typeof b=="function"?b==null?void 0:b(r):b},[b,r]);if(c==="read"){var w=d?{color:k7e(C)}:{},$=_.jsxs("span",{style:w,ref:n,children:[a&&_.jsx("span",{children:a}),x&&_.jsxs(s.Fragment,{children:[D7e(C)," "]}),A7e(Math.abs(C),o),l&&l]});return f?f(r,P(P({mode:c},g),{},{prefix:a,precision:o,showSymbol:x,suffix:l}),$):$}if(c==="edit"||c==="update"){var E=_.jsx(ll,P({ref:n,formatter:function(I){return I&&a?"".concat(a," ").concat(I).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):I},parser:function(I){return I?I.replace(/.*\s|,/g,""):""},placeholder:S},g));return m?m(r,P({mode:c},g),E):E}return null};const $Y=ee.forwardRef(L7e);function B7e(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var z7e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.plain,l=t.renderFormItem,c=t.fieldProps,u=t.placeholder,d=kn(),f=u||d.getMessage("tableForm.inputPlaceholder","请输入"),m=s.useMemo(function(){return typeof r=="string"&&r.includes("%")?by(r.replace("%","")):by(r)},[r]);if(a==="read"){var g=_.jsx(lq,P({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:m,steps:i?10:void 0,status:B7e(m)},c));return o?o(m,P({mode:a},c),g):g}if(a==="edit"||a==="update"){var h=_.jsx(ll,P({ref:n,placeholder:f},c));return l?l(r,P({mode:a},c),h):h}return null};const EY=ee.forwardRef(z7e);var H7e=["radioType","renderFormItem","mode","render"],V7e=function(t,n){var r,a,o=t.radioType,i=t.renderFormItem,l=t.mode,c=t.render,u=Ue(t,H7e),d=s.useContext(Mt.ConfigContext),f=d.getPrefixCls,m=f("pro-field-radio"),g=zf(u),h=ce(g,3),b=h[0],p=h[1],S=h[2],C=s.useRef(),x=(r=Fn.Item)===null||r===void 0||(a=r.useStatus)===null||a===void 0?void 0:a.call(r);s.useImperativeHandle(n,function(){return P(P({},C.current||{}),{},{fetchData:function(j){return S(j)}})},[S]);var w=$n("FieldRadioRadio",function(k){return z(z(z({},".".concat(m,"-error"),{span:{color:k.colorError}}),".".concat(m,"-warning"),{span:{color:k.colorWarning}}),".".concat(m,"-vertical"),z({},"".concat(k.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),$=w.wrapSSR,E=w.hashId;if(b)return _.jsx(Hi,{size:"small"});if(l==="read"){var R=p!=null&&p.length?p==null?void 0:p.reduce(function(k,j){var D;return P(P({},k),{},z({},(D=j.value)!==null&&D!==void 0?D:"",j.label))},{}):void 0,I=_.jsx(_.Fragment,{children:Af(u.text,Ql(u.valueEnum||R))});if(c){var O;return(O=c(u.text,P({mode:l},u.fieldProps),I))!==null&&O!==void 0?O:null}return I}if(l==="edit"){var T,N=$(_.jsx(If.Group,P(P({ref:C,optionType:o},u.fieldProps),{},{className:oe((T=u.fieldProps)===null||T===void 0?void 0:T.className,z(z({},"".concat(m,"-error"),(x==null?void 0:x.status)==="error"),"".concat(m,"-warning"),(x==null?void 0:x.status)==="warning"),E,"".concat(m,"-").concat(u.fieldProps.layout||"horizontal")),options:p})));if(i){var A;return(A=i(u.text,P(P({mode:l},u.fieldProps),{},{options:p,loading:b}),N))!==null&&A!==void 0?A:null}return N}return null};const nL=ee.forwardRef(V7e);var W7e=function(t,n){var r=t.text,a=t.mode,o=t.light,i=t.label,l=t.format,c=t.render,u=t.picker,d=t.renderFormItem,f=t.plain,m=t.showTime,g=t.lightLabel,h=t.bordered,b=t.fieldProps,p=kn(),S=Array.isArray(r)?r:[],C=ce(S,2),x=C[0],w=C[1],$=ee.useState(!1),E=ce($,2),R=E[0],I=E[1],O=s.useCallback(function(L){if(typeof(b==null?void 0:b.format)=="function"){var B;return b==null||(B=b.format)===null||B===void 0?void 0:B.call(b,L)}return(b==null?void 0:b.format)||l||"YYYY-MM-DD"},[b,l]),T=x?In(x).format(O(In(x))):"",N=w?In(w).format(O(In(w))):"";if(a==="read"){var A=_.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[_.jsx("div",{children:T||"-"}),_.jsx("div",{children:N||"-"})]});return c?c(r,P({mode:a},b),_.jsx("span",{children:A})):A}if(a==="edit"||a==="update"){var k=Bg(b.value),j,D=function(B){var K;b==null||(K=b.onChange)===null||K===void 0||K.call(b,B),B||I(!1)};if(o){var F;j=_.jsx(fl,{label:i,onClick:function(){var B;b==null||(B=b.onOpenChange)===null||B===void 0||B.call(b,!0),I(!0)},style:k?{paddingInlineEnd:0}:void 0,disabled:b.disabled,value:k||R?_.jsx(ii.RangePicker,P(P(P({picker:u,showTime:m,format:l},Fo(!1)),b),{},{placeholder:(F=b.placeholder)!==null&&F!==void 0?F:[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")],value:k,onOpenChange:function(B){var K;k&&I(B),b==null||(K=b.onOpenChange)===null||K===void 0||K.call(b,B)},onChange:D})):null,allowClear:!1,bordered:h,ref:g,downIcon:k||R?!1:void 0})}else j=_.jsx(ii.RangePicker,P(P(P({ref:n,format:l,showTime:m,placeholder:[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]},Fo(f===void 0?!0:!f)),b),{},{value:k}));return d?d(r,P({mode:a},b),j):j}return null};const gd=ee.forwardRef(W7e);var K7e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps;if(a==="read"){var c=_.jsx(f_,P(P({allowHalf:!0,disabled:!0,ref:n},l),{},{value:r}));return o?o(r,P({mode:a},l),_.jsx(_.Fragment,{children:c})):c}if(a==="edit"||a==="update"){var u=_.jsx(f_,P({allowHalf:!0,ref:n},l));return i?i(r,P({mode:a},l),u):u}return null};const q7e=ee.forwardRef(K7e);function U7e(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var a=Math.floor(t/(3600*24)),o=Math.floor(t/3600%24),i=Math.floor(t/60%60),l=Math.floor(t%60);return n="".concat(l,"秒"),i>0&&(n="".concat(i,"分钟").concat(n)),o>0&&(n="".concat(o,"小时").concat(n)),a>0&&(n="".concat(a,"天").concat(n)),r&&(n+="前"),n}var G7e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=kn(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入");if(a==="read"){var f=U7e(Number(r)),m=_.jsx("span",{ref:n,children:f});return o?o(r,P({mode:a},l),m):m}if(a==="edit"||a==="update"){var g=_.jsx(ll,P({ref:n,min:0,style:{width:"100%"},placeholder:d},l));return i?i(r,P({mode:a},l),g):g}return null};const Y7e=ee.forwardRef(G7e);var X7e=["mode","render","renderFormItem","fieldProps","emptyText"],Q7e=function(t,n){var r=t.mode,a=t.render,o=t.renderFormItem,i=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=Ue(t,X7e),d=s.useRef(),f=zf(t),m=ce(f,3),g=m[0],h=m[1],b=m[2];if(s.useImperativeHandle(n,function(){return P(P({},d.current||{}),{},{fetchData:function($){return b($)}})},[b]),g)return _.jsx(Hi,{size:"small"});if(r==="read"){var p=h!=null&&h.length?h==null?void 0:h.reduce(function(w,$){var E;return P(P({},w),{},z({},(E=$.value)!==null&&E!==void 0?E:"",$.label))},{}):void 0,S=_.jsx(_.Fragment,{children:Af(u.text,Ql(u.valueEnum||p))});if(a){var C;return(C=a(u.text,P({mode:r},i),_.jsx(_.Fragment,{children:S})))!==null&&C!==void 0?C:c}return S}if(r==="edit"||r==="update"){var x=_.jsx(nK,P(P({ref:d},nn(i||{},["allowClear"])),{},{options:h}));return o?o(u.text,P(P({mode:r},i),{},{options:h,loading:g}),x):x}return null};const J7e=ee.forwardRef(Q7e);var Z7e=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps;if(a==="read"){var c=r;return o?o(r,P({mode:a},l),_.jsx(_.Fragment,{children:c})):_.jsx(_.Fragment,{children:c})}if(a==="edit"||a==="update"){var u=_.jsx(yK,P(P({ref:n},l),{},{style:P({minWidth:120},l==null?void 0:l.style)}));return i?i(r,P({mode:a},l),u):u}return null};const eAe=ee.forwardRef(Z7e);var tAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.light,l=t.label,c=t.renderFormItem,u=t.fieldProps,d=kn(),f=s.useMemo(function(){var p,S;return r==null||"".concat(r).length<1?"-":r?(p=u==null?void 0:u.checkedChildren)!==null&&p!==void 0?p:d.getMessage("switch.open","打开"):(S=u==null?void 0:u.unCheckedChildren)!==null&&S!==void 0?S:d.getMessage("switch.close","关闭")},[u==null?void 0:u.checkedChildren,u==null?void 0:u.unCheckedChildren,r]);if(a==="read")return o?o(r,P({mode:a},u),_.jsx(_.Fragment,{children:f})):f??"-";if(a==="edit"||a==="update"){var m,g=_.jsx(L4,P(P({ref:n,size:i?"small":void 0},nn(u,["value"])),{},{checked:(m=u==null?void 0:u.checked)!==null&&m!==void 0?m:u==null?void 0:u.value}));if(i){var h=u.disabled,b=u.bordered;return _.jsx(fl,{label:l,disabled:h,bordered:b,downIcon:!1,value:_.jsx("div",{style:{paddingLeft:8},children:g}),allowClear:!1})}return c?c(r,P({mode:a},u),g):g}return null};const nAe=ee.forwardRef(tAe);var rAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=t.emptyText,u=c===void 0?"-":c,d=l||{},f=d.autoFocus,m=d.prefix,g=m===void 0?"":m,h=d.suffix,b=h===void 0?"":h,p=kn(),S=s.useRef();if(s.useImperativeHandle(n,function(){return S.current},[]),s.useEffect(function(){if(f){var E;(E=S.current)===null||E===void 0||E.focus()}},[f]),a==="read"){var C=_.jsxs(_.Fragment,{children:[g,r??u,b]});if(o){var x;return(x=o(r,P({mode:a},l),C))!==null&&x!==void 0?x:u}return C}if(a==="edit"||a==="update"){var w=p.getMessage("tableForm.inputPlaceholder","请输入"),$=_.jsx(Kr,P({ref:S,placeholder:w,allowClear:!0},l));return i?i(r,P({mode:a},l),$):$}return null};const aAe=ee.forwardRef(rAe);var oAe=function(t,n){var r=t.text,a=t.fieldProps,o=s.useContext(Mt.ConfigContext),i=o.getPrefixCls,l=i("pro-field-readonly"),c="".concat(l,"-textarea"),u=$n("TextArea",function(){return z({},".".concat(c),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),d=u.wrapSSR,f=u.hashId;return d(_.jsx("span",P(P({ref:n,className:oe(f,l,c)},nn(a,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const iAe=ee.forwardRef(oAe);var lAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=kn();if(a==="read"){var u=_.jsx(iAe,P(P({},t),{},{ref:n}));return o?o(r,P({mode:a},nn(l,["showCount"])),u):u}if(a==="edit"||a==="update"){var d=_.jsx(Kr.TextArea,P({ref:n,rows:3,onKeyPress:function(m){m.key==="Enter"&&m.stopPropagation()},placeholder:c.getMessage("tableForm.inputPlaceholder","请输入")},l));return i?i(r,P({mode:a},l),d):d}return null};const sAe=ee.forwardRef(lAe);var cAe=function(t,n){var r=t.text,a=t.mode,o=t.light,i=t.label,l=t.format,c=t.render,u=t.renderFormItem,d=t.plain,f=t.fieldProps,m=t.lightLabel,g=s.useState(!1),h=ce(g,2),b=h[0],p=h[1],S=kn(),C=(f==null?void 0:f.format)||l||"HH:mm:ss",x=In.isDayjs(r)||typeof r=="number";if(a==="read"){var w=_.jsx("span",{ref:n,children:r?In(r,x?void 0:C).format(C):"-"});return c?c(r,P({mode:a},f),_.jsx("span",{children:w})):w}if(a==="edit"||a==="update"){var $,E=f.disabled,R=f.value,I=Bg(R,C);if(o){var O;$=_.jsx(fl,{onClick:function(){var N;f==null||(N=f.onOpenChange)===null||N===void 0||N.call(f,!0),p(!0)},style:I?{paddingInlineEnd:0}:void 0,label:i,disabled:E,value:I||b?_.jsx(tu,P(P(P({},Fo(!1)),{},{format:l,ref:n},f),{},{placeholder:(O=f.placeholder)!==null&&O!==void 0?O:S.getMessage("tableForm.selectPlaceholder","请选择"),value:I,onOpenChange:function(N){var A;p(N),f==null||(A=f.onOpenChange)===null||A===void 0||A.call(f,N)},open:b})):null,downIcon:I||b?!1:void 0,allowClear:!1,ref:m})}else $=_.jsx(ii.TimePicker,P(P(P({ref:n,format:l},Fo(d===void 0?!0:!d)),f),{},{value:I}));return u?u(r,P({mode:a},f),$):$}return null},uAe=function(t,n){var r=t.text,a=t.light,o=t.label,i=t.mode,l=t.lightLabel,c=t.format,u=t.render,d=t.renderFormItem,f=t.plain,m=t.fieldProps,g=kn(),h=s.useState(!1),b=ce(h,2),p=b[0],S=b[1],C=(m==null?void 0:m.format)||c||"HH:mm:ss",x=Array.isArray(r)?r:[],w=ce(x,2),$=w[0],E=w[1],R=In.isDayjs($)||typeof $=="number",I=In.isDayjs(E)||typeof E=="number",O=$?In($,R?void 0:C).format(C):"",T=E?In(E,I?void 0:C).format(C):"";if(i==="read"){var N=_.jsxs("div",{ref:n,children:[_.jsx("div",{children:O||"-"}),_.jsx("div",{children:T||"-"})]});return u?u(r,P({mode:i},m),_.jsx("span",{children:N})):N}if(i==="edit"||i==="update"){var A=Bg(m.value,C),k;if(a){var j=m.disabled,D=m.placeholder,F=D===void 0?[g.getMessage("tableForm.selectPlaceholder","请选择"),g.getMessage("tableForm.selectPlaceholder","请选择")]:D;k=_.jsx(fl,{onClick:function(){var B;m==null||(B=m.onOpenChange)===null||B===void 0||B.call(m,!0),S(!0)},style:A?{paddingInlineEnd:0}:void 0,label:o,disabled:j,placeholder:F,value:A||p?_.jsx(tu.RangePicker,P(P(P({},Fo(!1)),{},{format:c,ref:n},m),{},{placeholder:F,value:A,onOpenChange:function(B){var K;S(B),m==null||(K=m.onOpenChange)===null||K===void 0||K.call(m,B)},open:p})):null,downIcon:A||p?!1:void 0,allowClear:!1,ref:l})}else k=_.jsx(tu.RangePicker,P(P(P({ref:n,format:c},Fo(f===void 0?!0:!f)),m),{},{value:A}));return d?d(r,P({mode:i},m),k):k}return null},dAe=ee.forwardRef(uAe);const fAe=ee.forwardRef(cAe);var vAe=["radioType","renderFormItem","mode","light","label","render"],mAe=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],gAe=function(t,n){t.radioType;var r=t.renderFormItem,a=t.mode,o=t.light,i=t.label,l=t.render,c=Ue(t,vAe),u=s.useContext(Mt.ConfigContext),d=u.getPrefixCls,f=d("pro-field-tree-select"),m=s.useRef(null),g=s.useState(!1),h=ce(g,2),b=h[0],p=h[1],S=c.fieldProps,C=S.onSearch,x=S.onClear,w=S.onChange,$=S.onBlur,E=S.showSearch,R=S.autoClearSearchValue;S.treeData;var I=S.fetchDataOnSearch,O=S.searchValue,T=Ue(S,mAe),N=kn(),A=zf(P(P({},c),{},{defaultKeyWords:O})),k=ce(A,3),j=k[0],D=k[1],F=k[2],L=_t(void 0,{onChange:C,value:O}),B=ce(L,2),K=B[0],W=B[1];s.useImperativeHandle(n,function(){return P(P({},m.current||{}),{},{fetchData:function(ue){return F(ue)}})});var V=s.useMemo(function(){if(a==="read"){var fe=(T==null?void 0:T.fieldNames)||{},ue=fe.value,de=ue===void 0?"value":ue,ie=fe.label,se=ie===void 0?"label":ie,ve=fe.children,he=ve===void 0?"children":ve,Ce=new Map,pe=function Se(ge){if(!(ge!=null&&ge.length))return Ce;for(var ye=ge.length,xe=0;xe4&&(g+=7),m.add(g,n));return h.diff(b,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;return f.p(u)==="isoweek"?m?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}}))})(ab)),ab.exports}var yAe=bAe();const CAe=an(yAe);var ob={exports:{}},SAe=ob.exports,aL;function xAe(){return aL||(aL=1,(function(e,t){(function(n,r){e.exports=r()})(SAe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,a,o){var i=a.prototype,l=i.format;o.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(f,m){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(g,h,b){var p=b&&b.toUpperCase();return h||m[b]||n[b]||m[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,C,x){return C||x.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})(ob)),ob.exports}var wAe=xAe();const $Ae=an(wAe);var EAe=["fieldProps"],PAe=["fieldProps"],OAe=["fieldProps"],IAe=["fieldProps"],RAe=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],MAe=["placeholder"];In.extend(RV);In.extend(MV);In.extend(CAe);In.extend(c4);In.extend(IV);In.extend($Ae);var TAe=function(t,n,r){var a=mG(r.fieldProps);return n.type==="progress"?_.jsx(EY,P(P({},r),{},{text:t,fieldProps:P({status:n.status?n.status:void 0},a)})):n.type==="money"?_.jsx(wY,P(P({locale:n.locale},r),{},{fieldProps:a,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?_.jsx($Y,P(P({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:a,showColor:n.showColor})):n.type==="image"?_.jsx(SY,P(P({},r),{},{text:t,width:n.width})):t},NAe=function(t,n,r,a){var o=r.mode,i=o===void 0?"read":o,l=r.emptyText,c=l===void 0?"-":l;if(c!==!1&&i==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var u=r.fieldProps,d=r.render;return d?d(t,P({mode:i},u),_.jsx(_.Fragment,{children:c})):_.jsx(_.Fragment,{children:c})}if(delete r.emptyText,it(n)==="object")return TAe(t,n,r);var f=a&&a[n];if(f){if(delete r.ref,i==="read"){var m;return(m=f.render)===null||m===void 0?void 0:m.call(f,t,P(P({text:t},r),{},{mode:i||"read"}),_.jsx(_.Fragment,{children:t}))}if(i==="update"||i==="edit"){var g;return(g=f.renderFormItem)===null||g===void 0?void 0:g.call(f,t,P({text:t},r),_.jsx(_.Fragment,{children:t}))}}if(n==="money")return _.jsx(wY,P(P({},r),{},{text:t}));if(n==="date")return _.jsx(ro,{isLight:r.light,children:_.jsx(md,P({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return _.jsx(ro,{isLight:r.light,children:_.jsx(md,P({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var h=r.fieldProps,b=Ue(r,EAe);return _.jsx(ro,{isLight:r.light,children:_.jsx(gd,P({text:t,format:"YYYY-W",showTime:!0,fieldProps:P({picker:"week"},h)},b))})}if(n==="dateMonthRange"){var p=r.fieldProps,S=Ue(r,PAe);return _.jsx(ro,{isLight:r.light,children:_.jsx(gd,P({text:t,format:"YYYY-MM",showTime:!0,fieldProps:P({picker:"month"},p)},S))})}if(n==="dateQuarterRange"){var C=r.fieldProps,x=Ue(r,OAe);return _.jsx(ro,{isLight:r.light,children:_.jsx(gd,P({text:t,format:"YYYY-Q",showTime:!0,fieldProps:P({picker:"quarter"},C)},x))})}if(n==="dateYearRange"){var w=r.fieldProps,$=Ue(r,IAe);return _.jsx(ro,{isLight:r.light,children:_.jsx(gd,P({text:t,format:"YYYY",showTime:!0,fieldProps:P({picker:"year"},w)},$))})}return n==="dateMonth"?_.jsx(ro,{isLight:r.light,children:_.jsx(md,P({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?_.jsx(ro,{isLight:r.light,children:_.jsx(md,P({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?_.jsx(ro,{isLight:r.light,children:_.jsx(md,P({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?_.jsx(gd,P({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?_.jsx(ro,{isLight:r.light,children:_.jsx(md,P({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?_.jsx(ro,{isLight:r.light,children:_.jsx(gd,P({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?_.jsx(ro,{isLight:r.light,children:_.jsx(fAe,P({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?_.jsx(ro,{isLight:r.light,children:_.jsx(dAe,P({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?_.jsx(y7e,P({text:t},r)):n==="index"?_.jsx(ZA,{children:t+1}):n==="indexBorder"?_.jsx(ZA,{border:!0,children:t+1}):n==="progress"?_.jsx(EY,P(P({},r),{},{text:t})):n==="percent"?_.jsx($Y,P({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?_.jsx(wf,{src:t,size:22,shape:"circle"}):n==="code"?_.jsx(cD,P({text:t},r)):n==="jsonCode"?_.jsx(cD,P({text:t,language:"json"},r)):n==="textarea"?_.jsx(sAe,P({text:t},r)):n==="digit"?_.jsx(d7e,P({text:t},r)):n==="digitRange"?_.jsx(v7e,P({text:t},r)):n==="second"?_.jsx(Y7e,P({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?_.jsx(ro,{isLight:r.light,children:_.jsx(m_e,P({text:t},r))}):n==="checkbox"?_.jsx(S_e,P({text:t},r)):n==="radio"?_.jsx(nL,P({text:t},r)):n==="radioButton"?_.jsx(nL,P({radioType:"button",text:t},r)):n==="rate"?_.jsx(q7e,P({text:t},r)):n==="slider"?_.jsx(eAe,P({text:t},r)):n==="switch"?_.jsx(nAe,P({text:t},r)):n==="option"?_.jsx(N7e,P({text:t},r)):n==="password"?_.jsx(F7e,P({text:t},r)):n==="image"?_.jsx(SY,P({text:t},r)):n==="cascader"?_.jsx(h_e,P({text:t},r)):n==="treeSelect"?_.jsx(pAe,P({text:t},r)):n==="color"?_.jsx(l7e,P({text:t},r)):n==="segmented"?_.jsx(J7e,P({text:t},r)):_.jsx(aAe,P({text:t},r))},_Ae=function(t,n){var r,a,o,i,l,c,u=t.text,d=t.valueType,f=d===void 0?"text":d,m=t.mode,g=m===void 0?"read":m,h=t.onChange,b=t.renderFormItem,p=t.value,S=t.readonly,C=t.fieldProps,x=Ue(t,RAe),w=s.useContext(Js),$=zn(function(){for(var I,O=arguments.length,T=new Array(O),N=0;N=T)return null;var ye=c,xe=ye.Icon,$e=xe===void 0?tG:xe,He=ye.tooltipText;return _.jsx(Kn,{title:He,children:_.jsx($e,{className:oe("".concat(m,"-action-icon action-down"),k),onClick:mn(ht().mark(function Te(){return ht().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,g.move(x,ge);case 2:case"end":return Fe.stop()}},Te)}))})},"down")},[l,m,k,g,i]),de=s.useMemo(function(){return[le,re,fe,ue].filter(function(ge){return ge!=null})},[le,re,fe,ue]),ie=(b==null?void 0:b(C,g,de,T))||de,se=ie.length>0&&K!=="read"?_.jsx("div",{className:oe("".concat(m,"-action"),z({},"".concat(m,"-action-small"),D==="small"),k),children:ie}):null,ve={name:N.name,field:C,index:x,record:w==null||(r=w.getFieldValue)===null||r===void 0?void 0:r.call(w,[F.listName,$,C.name].filter(function(ge){return ge!==void 0}).flat(1)),fields:p,operation:g,meta:S},he=Bf(),Ce=he.grid,pe=(u==null?void 0:u(ae,ve))||ae,Se=(d==null?void 0:d({listDom:_.jsx("div",{className:oe("".concat(m,"-container"),E,k),style:P({width:Ce?"100%":void 0},R),children:pe}),action:se},ve))||_.jsxs("div",{className:oe("".concat(m,"-item"),k,z(z({},"".concat(m,"-item-default"),f===void 0),"".concat(m,"-item-show-label"),f)),style:{display:"flex",alignItems:"flex-end"},children:[_.jsx("div",{className:oe("".concat(m,"-container"),E,k),style:P({width:Ce?"100%":void 0},R),children:pe}),se]});return _.jsx(ff.Provider,{value:P(P({},C),{},{listName:[F.listName,$,C.name].filter(function(ge){return ge!==void 0}).flat(1)}),children:Se})},HAe=function(t){var n=kn(),r=t.creatorButtonProps,a=t.prefixCls,o=t.children,i=t.creatorRecord,l=t.action,c=t.fields,u=t.actionGuard,d=t.max,f=t.fieldExtraRender,m=t.meta,g=t.containerClassName,h=t.containerStyle,b=t.onAfterAdd,p=t.onAfterRemove,S=s.useContext(Wr),C=S.hashId,x=s.useRef(new Map),w=s.useState(!1),$=ce(w,2),E=$[0],R=$[1],I=s.useMemo(function(){return c.map(function(j){var D,F;if(!((D=x.current)!==null&&D!==void 0&&D.has(j.key.toString()))){var L;(L=x.current)===null||L===void 0||L.set(j.key.toString(),Km())}var B=(F=x.current)===null||F===void 0?void 0:F.get(j.key.toString());return P(P({},j),{},{uuid:B})})},[c]),O=s.useMemo(function(){var j=P({},l),D=I.length;return u!=null&&u.beforeAddRow?j.add=mn(ht().mark(function F(){var L,B,K,W,V,q=arguments;return ht().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:for(L=q.length,B=new Array(L),K=0;K div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":z(z(z(z({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function sLe(e){return $n("ProFormGroup",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[lLe(n)]})}var RY=ee.forwardRef(function(e,t){var n=ee.useContext(Zl),r=n.groupProps,a=P(P({},r),e),o=a.children,i=a.collapsible,l=a.defaultCollapsed,c=a.style,u=a.labelLayout,d=a.title,f=d===void 0?e.label:d,m=a.tooltip,g=a.align,h=g===void 0?"start":g,b=a.direction,p=a.size,S=p===void 0?32:p,C=a.titleStyle,x=a.titleRender,w=a.spaceProps,$=a.extra,E=a.autoFocus,R=_t(function(){return l||!1},{value:e.collapsed,onChange:e.onCollapse}),I=ce(R,2),O=I[0],T=I[1],N=s.useContext(Mt.ConfigContext),A=N.getPrefixCls,k=Bf(e),j=k.ColWrapper,D=k.RowWrapper,F=A("pro-form-group"),L=sLe(F),B=L.wrapSSR,K=L.hashId,W=i&&_.jsx(ai,{style:{marginInlineEnd:8},rotate:O?void 0:90}),V=_.jsx(au,{label:W?_.jsxs("div",{children:[W,f]}):f,tooltip:m}),q=s.useCallback(function(Z){var ne=Z.children;return _.jsx(Jn,P(P({},w),{},{className:oe("".concat(F,"-container ").concat(K),w==null?void 0:w.className),size:S,align:h,direction:b,style:P({rowGap:0},w==null?void 0:w.style),children:ne}))},[h,F,b,K,S,w]),U=x?x(V,e):V,G=s.useMemo(function(){var Z=[],ne=ee.Children.toArray(o).map(function(ae,le){var re;return ee.isValidElement(ae)&&ae!==null&&ae!==void 0&&(re=ae.props)!==null&&re!==void 0&&re.hidden?(Z.push(ae),null):le===0&&ee.isValidElement(ae)&&E?ee.cloneElement(ae,P(P({},ae.props),{},{autoFocus:E})):ae});return[_.jsx(D,{Wrapper:q,children:ne},"children"),Z.length>0?_.jsx("div",{style:{display:"none"},children:Z}):null]},[o,D,q,E]),Y=ce(G,2),J=Y[0],Q=Y[1];return B(_.jsx(j,{children:_.jsxs("div",{className:oe(F,K,z({},"".concat(F,"-twoLine"),u==="twoLine")),style:c,ref:t,children:[Q,(f||m||$)&&_.jsx("div",{className:"".concat(F,"-title ").concat(K).trim(),style:C,onClick:function(){T(!O)},children:$?_.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[U,_.jsx("span",{onClick:function(ne){return ne.stopPropagation()},children:$})]}):U}),_.jsx("div",{style:{display:i&&O?"none":void 0},children:J})]})}))});RY.displayName="ProForm-Group";var cLe=function(t){return z({},t.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};function uLe(e){return $n("DrawerForm",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[cLe(n)]})}var dLe=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];function MY(e){var t,n,r=e.children,a=e.trigger,o=e.onVisibleChange,i=e.drawerProps,l=e.onFinish,c=e.submitTimeout,u=e.title,d=e.width,f=e.resize,m=e.onOpenChange,g=e.visible,h=e.open,b=Ue(e,dLe);$a(!b.footer||!(i!=null&&i.footer),"DrawerForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var p=ee.useMemo(function(){var se,ve,he,Ce={onResize:function(){},maxWidth:yu()?window.innerWidth*.8:void 0,minWidth:300};return typeof f=="boolean"?f?Ce:{}:jr({onResize:(se=f==null?void 0:f.onResize)!==null&&se!==void 0?se:Ce.onResize,maxWidth:(ve=f==null?void 0:f.maxWidth)!==null&&ve!==void 0?ve:Ce.maxWidth,minWidth:(he=f==null?void 0:f.minWidth)!==null&&he!==void 0?he:Ce.minWidth})},[f]),S=s.useContext(Mt.ConfigContext),C=S.getPrefixCls("pro-form-drawer"),x=uLe(C),w=x.wrapSSR,$=x.hashId,E=function(ve){return"".concat(C,"-").concat(ve," ").concat($)},R=s.useState([]),I=ce(R,2),O=I[1],T=s.useState(!1),N=ce(T,2),A=N[0],k=N[1],j=s.useState(!1),D=ce(j,2),F=D[0],L=D[1],B=s.useState(d||(f?p==null?void 0:p.minWidth:800)),K=ce(B,2),W=K[0],V=K[1],q=_t(!!g,{value:h||g,onChange:m||o}),U=ce(q,2),G=U[0],Y=U[1],J=s.useRef(null),Q=s.useCallback(function(se){J.current===null&&se&&O([]),J.current=se},[]),Z=s.useRef(),ne=s.useCallback(function(){var se,ve,he,Ce=(se=(ve=(he=b.formRef)===null||he===void 0?void 0:he.current)!==null&&ve!==void 0?ve:b.form)!==null&&se!==void 0?se:Z.current;Ce&&i!==null&&i!==void 0&&i.destroyOnClose&&Ce.resetFields()},[i==null?void 0:i.destroyOnClose,b.form,b.formRef]);s.useEffect(function(){G&&(h||g)&&(m==null||m(!0),o==null||o(!0)),F&&V(p==null?void 0:p.minWidth)},[g,G,F]),s.useImperativeHandle(b.formRef,function(){return Z.current},[Z.current]);var ae=s.useMemo(function(){return a?ee.cloneElement(a,P(P({key:"trigger"},a.props),{},{onClick:(function(){var se=mn(ht().mark(function he(Ce){var pe,Se;return ht().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:Y(!G),L(!Object.keys(p)),(pe=a.props)===null||pe===void 0||(Se=pe.onClick)===null||Se===void 0||Se.call(pe,Ce);case 3:case"end":return ye.stop()}},he)}));function ve(he){return se.apply(this,arguments)}return ve})()})):null},[Y,a,G,L,F]),le=s.useMemo(function(){var se,ve,he,Ce,pe;return b.submitter===!1?!1:Ds({searchConfig:{submitText:(se=(ve=S.locale)===null||ve===void 0||(ve=ve.Modal)===null||ve===void 0?void 0:ve.okText)!==null&&se!==void 0?se:"确认",resetText:(he=(Ce=S.locale)===null||Ce===void 0||(Ce=Ce.Modal)===null||Ce===void 0?void 0:Ce.cancelText)!==null&&he!==void 0?he:"取消"},resetButtonProps:{preventDefault:!0,disabled:c?A:void 0,onClick:function(ge){var ye;Y(!1),i==null||(ye=i.onClose)===null||ye===void 0||ye.call(i,ge)}}},(pe=b.submitter)!==null&&pe!==void 0?pe:{})},[b.submitter,(t=S.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.okText,(n=S.locale)===null||n===void 0||(n=n.Modal)===null||n===void 0?void 0:n.cancelText,c,A,Y,i]),re=s.useCallback(function(se,ve){return _.jsxs(_.Fragment,{children:[se,J.current&&ve?_.jsx(ee.Fragment,{children:Ua.createPortal(ve,J.current)},"submitter"):ve]})},[]),fe=zn((function(){var se=mn(ht().mark(function ve(he){var Ce,pe,Se;return ht().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return Ce=l==null?void 0:l(he),c&&Ce instanceof Promise&&(k(!0),pe=setTimeout(function(){return k(!1)},c),Ce.finally(function(){clearTimeout(pe),k(!1)})),ye.next=4,Ce;case 4:return Se=ye.sent,Se&&Y(!1),ye.abrupt("return",Se);case 7:case"end":return ye.stop()}},ve)}));return function(ve){return se.apply(this,arguments)}})()),ue=bu(G,o),de=s.useCallback(function(se){var ve,he,Ce=(document.body.offsetWidth||1e3)-(se.clientX-document.body.offsetLeft),pe=(ve=p==null?void 0:p.minWidth)!==null&&ve!==void 0?ve:d||800,Se=(he=p==null?void 0:p.maxWidth)!==null&&he!==void 0?he:window.innerWidth*.8;if(CeSe){V(Se);return}V(Ce)},[p==null?void 0:p.maxWidth,p==null?void 0:p.minWidth,d]),ie=s.useCallback(function(){document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",ie)},[de]);return w(_.jsxs(_.Fragment,{children:[_.jsxs(N4,P(P(P({title:u,width:W},i),ue),{},{afterOpenChange:function(ve){var he;ve||ne(),i==null||(he=i.afterOpenChange)===null||he===void 0||he.call(i,ve)},onClose:function(ve){var he;c&&A||(Y(!1),i==null||(he=i.onClose)===null||he===void 0||he.call(i,ve))},footer:b.submitter!==!1&&_.jsx("div",{ref:Q,style:{display:"flex",justifyContent:"flex-end"}}),children:[f?_.jsx("div",{className:oe(E("sidebar-dragger"),$,z(z({},E("sidebar-dragger-min-disabled"),W===(p==null?void 0:p.minWidth)),E("sidebar-dragger-max-disabled"),W===(p==null?void 0:p.maxWidth))),onMouseDown:function(ve){var he;p==null||(he=p.onResize)===null||he===void 0||he.call(p),ve.stopPropagation(),ve.preventDefault(),document.addEventListener("mousemove",de),document.addEventListener("mouseup",ie),L(!0)}}):null,_.jsx(_.Fragment,{children:_.jsx(Vf,P(P({formComponentType:"DrawerForm",layout:"vertical"},b),{},{formRef:Z,onInit:function(ve,he){var Ce;b.formRef&&(b.formRef.current=he),b==null||(Ce=b.onInit)===null||Ce===void 0||Ce.call(b,ve,he),Z.current=he},submitter:le,onFinish:(function(){var se=mn(ht().mark(function ve(he){var Ce;return ht().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,fe(he);case 2:return Ce=Se.sent,Se.abrupt("return",Ce);case 4:case"end":return Se.stop()}},ve)}));return function(ve){return se.apply(this,arguments)}})(),contentRender:re,children:r}))})]})),ae]}))}var fLe=function(t){return z({},t.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:t.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:t.marginXS},"&-item":z({whiteSpace:"nowrap"},"".concat(t.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:t.controlHeight,height:t.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":z({},"".concat(t.componentCls,"-collapse-icon"),{backgroundColor:t.colorBgTextHover})})};function vLe(e){return $n("LightFilter",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[fLe(n)]})}var mLe=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],gLe=function(t){var n=t.items,r=t.prefixCls,a=t.size,o=a===void 0?"middle":a,i=t.collapse,l=t.collapseLabel,c=t.onValuesChange,u=t.bordered,d=t.values,f=t.footerRender,m=t.placement,g=kn(),h="".concat(r,"-light-filter"),b=vLe(h),p=b.wrapSSR,S=b.hashId,C=s.useState(!1),x=ce(C,2),w=x[0],$=x[1],E=s.useState(function(){return P({},d)}),R=ce(E,2),I=R[0],O=R[1];s.useEffect(function(){O(P({},d))},[d]);var T=s.useMemo(function(){var j=[],D=[];return n.forEach(function(F){var L=F.props||{},B=L.secondary;B||i?j.push(F):D.push(F)}),{collapseItems:j,outsideItems:D}},[t.items]),N=T.collapseItems,A=T.outsideItems,k=function(){return l||(i?_.jsx(m6e,{className:"".concat(h,"-collapse-icon ").concat(S).trim()}):_.jsx(fl,{size:o,label:g.getMessage("form.lightFilter.more","更多筛选")}))};return p(_.jsx("div",{className:oe(h,S,"".concat(h,"-").concat(o),z({},"".concat(h,"-effective"),Object.keys(d).some(function(j){return Array.isArray(d[j])?d[j].length>0:d[j]}))),children:_.jsxs("div",{className:"".concat(h,"-container ").concat(S).trim(),children:[A.map(function(j,D){if(!(j!=null&&j.props))return j;var F=j.key,L=(j==null?void 0:j.props)||{},B=L.fieldProps,K=B!=null&&B.placement?B==null?void 0:B.placement:m;return _.jsx("div",{className:"".concat(h,"-item ").concat(S).trim(),children:ee.cloneElement(j,{fieldProps:P(P({},j.props.fieldProps),{},{placement:K}),proFieldProps:P(P({},j.props.proFieldProps),{},{light:!0,label:j.props.label,bordered:u}),bordered:u})},F||D)}),N.length?_.jsx("div",{className:"".concat(h,"-item ").concat(S).trim(),children:_.jsx(iG,{padding:24,open:w,onOpenChange:function(D){$(D)},placement:m,label:k(),footerRender:f,footer:{onConfirm:function(){c(P({},I)),$(!1)},onClear:function(){var D={};N.forEach(function(F){var L=F.props.name;D[L]=void 0}),c(D)}},children:N.map(function(j){var D=j.key,F=j.props,L=F.name,B=F.fieldProps,K=P(P({},B),{},{onChange:function(q){return O(P(P({},I),{},z({},L,q!=null&&q.target?q.target.value:q))),!1}});I.hasOwnProperty(L)&&(K[j.props.valuePropName||"value"]=I[L]);var W=B!=null&&B.placement?B==null?void 0:B.placement:m;return _.jsx("div",{className:"".concat(h,"-line ").concat(S).trim(),children:ee.cloneElement(j,{fieldProps:P(P({},K),{},{placement:W})})},D)})})},"more"):null]})}))};function pLe(e){var t=e.size,n=e.collapse,r=e.collapseLabel,a=e.initialValues,o=e.onValuesChange,i=e.form,l=e.placement,c=e.formRef,u=e.bordered;e.ignoreRules;var d=e.footerRender,f=Ue(e,mLe),m=s.useContext(Mt.ConfigContext),g=m.getPrefixCls,h=g("pro-form"),b=s.useState(function(){return P({},a)}),p=ce(b,2),S=p[0],C=p[1],x=s.useRef();return s.useImperativeHandle(c,function(){return x.current},[x.current]),_.jsx(Vf,P(P({size:t,initialValues:a,form:i,contentRender:function($){return _.jsx(gLe,{prefixCls:h,items:$==null?void 0:$.flatMap(function(E){var R;return!E||!(E!=null&&E.type)?E:(E==null||(R=E.type)===null||R===void 0?void 0:R.displayName)==="ProForm-Group"?E.props.children:E}),size:t,bordered:u,collapse:n,collapseLabel:r,placement:l,values:S||{},footerRender:d,onValuesChange:function(R){var I,O,T=P(P({},S),R);C(T),(I=x.current)===null||I===void 0||I.setFieldsValue(T),(O=x.current)===null||O===void 0||O.submit(),o&&o(R,T)}})},formRef:x,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},nn(f,["labelWidth"])),{},{onValuesChange:function($,E){var R;C(E),o==null||o($,E),(R=x.current)===null||R===void 0||R.submit()}}))}var hLe=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function bLe(e){var t,n,r=e.children,a=e.trigger,o=e.onVisibleChange,i=e.onOpenChange,l=e.modalProps,c=e.onFinish,u=e.submitTimeout,d=e.title,f=e.width,m=e.visible,g=e.open,h=Ue(e,hLe);$a(!h.footer||!(l!=null&&l.footer),"ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var b=s.useContext(Mt.ConfigContext),p=s.useState([]),S=ce(p,2),C=S[1],x=s.useState(!1),w=ce(x,2),$=w[0],E=w[1],R=_t(!!m,{value:g||m,onChange:i||o}),I=ce(R,2),O=I[0],T=I[1],N=s.useRef(null),A=s.useCallback(function(W){N.current===null&&W&&C([]),N.current=W},[]),k=s.useRef(),j=s.useCallback(function(){var W,V,q,U=(W=(V=h.form)!==null&&V!==void 0?V:(q=h.formRef)===null||q===void 0?void 0:q.current)!==null&&W!==void 0?W:k.current;U&&l!==null&&l!==void 0&&l.destroyOnClose&&U.resetFields()},[l==null?void 0:l.destroyOnClose,h.form,h.formRef]);s.useImperativeHandle(h.formRef,function(){return k.current},[k.current]),s.useEffect(function(){(g||m)&&(i==null||i(!0),o==null||o(!0))},[m,g]);var D=s.useMemo(function(){return a?ee.cloneElement(a,P(P({key:"trigger"},a.props),{},{onClick:(function(){var W=mn(ht().mark(function q(U){var G,Y;return ht().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:T(!O),(G=a.props)===null||G===void 0||(Y=G.onClick)===null||Y===void 0||Y.call(G,U);case 2:case"end":return Q.stop()}},q)}));function V(q){return W.apply(this,arguments)}return V})()})):null},[T,a,O]),F=s.useMemo(function(){var W,V,q,U,G,Y,J;return h.submitter===!1?!1:Ds({searchConfig:{submitText:(W=(V=l==null?void 0:l.okText)!==null&&V!==void 0?V:(q=b.locale)===null||q===void 0||(q=q.Modal)===null||q===void 0?void 0:q.okText)!==null&&W!==void 0?W:"确认",resetText:(U=(G=l==null?void 0:l.cancelText)!==null&&G!==void 0?G:(Y=b.locale)===null||Y===void 0||(Y=Y.Modal)===null||Y===void 0?void 0:Y.cancelText)!==null&&U!==void 0?U:"取消"},resetButtonProps:{preventDefault:!0,disabled:u?$:void 0,onClick:function(Z){var ne;T(!1),l==null||(ne=l.onCancel)===null||ne===void 0||ne.call(l,Z)}}},(J=h.submitter)!==null&&J!==void 0?J:{})},[(t=b.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.cancelText,(n=b.locale)===null||n===void 0||(n=n.Modal)===null||n===void 0?void 0:n.okText,l,h.submitter,T,$,u]),L=s.useCallback(function(W,V){return _.jsxs(_.Fragment,{children:[W,N.current&&V?_.jsx(ee.Fragment,{children:Ua.createPortal(V,N.current)},"submitter"):V]})},[]),B=s.useCallback((function(){var W=mn(ht().mark(function V(q){var U,G,Y;return ht().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return U=c==null?void 0:c(q),u&&U instanceof Promise&&(E(!0),G=setTimeout(function(){return E(!1)},u),U.finally(function(){clearTimeout(G),E(!1)})),Q.next=4,U;case 4:return Y=Q.sent,Y&&T(!1),Q.abrupt("return",Y);case 7:case"end":return Q.stop()}},V)}));return function(V){return W.apply(this,arguments)}})(),[c,T,u]),K=bu(O);return _.jsxs(_.Fragment,{children:[_.jsx(Vi,P(P(P({title:d,width:f||800},l),K),{},{onCancel:function(V){var q;u&&$||(T(!1),l==null||(q=l.onCancel)===null||q===void 0||q.call(l,V))},afterClose:function(){var V;j(),O&&T(!1),l==null||(V=l.afterClose)===null||V===void 0||V.call(l)},footer:h.submitter!==!1?_.jsx("div",{ref:A,style:{display:"flex",justifyContent:"flex-end"}}):null,children:_.jsx(Vf,P(P({formComponentType:"ModalForm",layout:"vertical"},h),{},{onInit:function(V,q){var U;h.formRef&&(h.formRef.current=q),h==null||(U=h.onInit)===null||U===void 0||U.call(h,V,q),k.current=q},formRef:k,submitter:F,onFinish:(function(){var W=mn(ht().mark(function V(q){var U;return ht().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,B(q);case 2:return U=Y.sent,Y.abrupt("return",U);case 4:case"end":return Y.stop()}},V)}));return function(V){return W.apply(this,arguments)}})(),contentRender:L,children:r}))})),D]})}var yLe=function(t,n,r,a){return t?_.jsxs(_.Fragment,{children:[r.getMessage("tableForm.collapsed","展开"),a&&"(".concat(a,")"),_.jsx(Ys,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(t?0:.5,"turn)")}})]}):_.jsxs(_.Fragment,{children:[r.getMessage("tableForm.expand","收起"),_.jsx(Ys,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(t?0:.5,"turn)")}})]})},CLe=function(t){var n=t.setCollapsed,r=t.collapsed,a=r===void 0?!1:r,o=t.submitter,i=t.style,l=t.hiddenNum,c=s.useContext(Mt.ConfigContext),u=c.getPrefixCls,d=kn(),f=s.useContext(Wr),m=f.hashId,g=vG(t.collapseRender)||yLe;return _.jsxs(Jn,{style:i,size:16,children:[o,t.collapseRender!==!1&&_.jsx("a",{className:"".concat(u("pro-query-filter-collapse-button")," ").concat(m).trim(),onClick:function(){return n(!a)},children:g==null?void 0:g(a,t,d,l)})]})},SLe=function(t){return z({},t.componentCls,z(z(z(z({"&&":{padding:24}},"".concat(t.antCls,"-form-item"),{marginBlock:0}),"".concat(t.proComponentsCls,"-form-group-title"),{marginBlock:0}),"&-row",{rowGap:24,"&-split":z(z({},"".concat(t.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:t.marginXS}),"&:last-child",{marginBlockEnd:12}),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(t.colorSplit)}}}),"&-collapse-button",{display:"flex",alignItems:"center",color:t.colorPrimary}))};function xLe(e){return $n("QueryFilter",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[SLe(n)]})}var wLe=["collapsed","layout","defaultCollapsed","defaultColsNumber","defaultFormItemsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],pd,$Le={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},lL={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},ELe=function(t,n,r){if(r&&typeof r=="number")return{span:r,layout:t};var a=r?["xs","sm","md","lg","xl","xxl"].map(function(i){return[$Le[i],24/r[i],"horizontal"]}):lL[t||"default"],o=(a||lL.default).find(function(i){return nw)&&!!V;O+=1;var ae=ee.isValidElement(W)&&(W.key||"".concat((Y=W.props)===null||Y===void 0?void 0:Y.name))||V;return ee.isValidElement(W)&&ne?t.preserve?{itemDom:ee.cloneElement(W,{hidden:!0,key:ae||V}),hidden:!0,colSpan:Q}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:W,colSpan:Q,hidden:!1}}),j=k.map(function(W,V){var q,U,G=W.itemDom,Y=W.colSpan,J=G==null||(q=G.props)===null||q===void 0?void 0:q.hidden;if(J)return G;var Q=ee.isValidElement(G)&&(G.key||"".concat((U=G.props)===null||U===void 0?void 0:U.name))||V;return 24-A%2424){var U,G;return 24-((U=(G=t.submitterColSpanProps)===null||G===void 0?void 0:G.span)!==null&&U!==void 0?U:x.span)}return 24-q},[A,A%24+((n=(r=t.submitterColSpanProps)===null||r===void 0?void 0:r.span)!==null&&n!==void 0?n:x.span),(a=t.submitterColSpanProps)===null||a===void 0?void 0:a.span]),B=s.useContext(Mt.ConfigContext),K=B.getPrefixCls("pro-query-filter");return _.jsxs(Pi,{gutter:$,justify:"start",className:oe("".concat(K,"-row"),c),children:[j,R&&_.jsx(Xr,P(P({span:x.span,offset:L,className:oe((o=t.submitterColSpanProps)===null||o===void 0?void 0:o.className)},t.submitterColSpanProps),{},{style:{textAlign:"end"},children:_.jsx(Fn.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(K,"-actions ").concat(c).trim(),children:_.jsx(CLe,{hiddenNum:D,collapsed:g,collapseRender:F?p:!1,submitter:R,setCollapsed:h},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},ILe=yu()?(pd=document)===null||pd===void 0||(pd=pd.body)===null||pd===void 0?void 0:pd.clientWidth:1024;function RLe(e){var t=e.collapsed,n=e.layout,r=e.defaultCollapsed,a=r===void 0?!0:r,o=e.defaultColsNumber,i=e.defaultFormItemsNumber,l=e.span,c=e.searchGutter,u=c===void 0?24:c;e.searchText,e.resetText;var d=e.optionRender,f=e.collapseRender,m=e.onReset,g=e.onCollapse,h=e.labelWidth,b=h===void 0?"80":h,p=e.style,S=e.split,C=e.preserve,x=C===void 0?!0:C,w=e.ignoreRules,$=e.showHiddenNum,E=$===void 0?!1:$,R=e.submitterColSpanProps,I=Ue(e,wLe),O=s.useContext(Mt.ConfigContext),T=O.getPrefixCls("pro-query-filter"),N=xLe(T),A=N.wrapSSR,k=N.hashId,j=_t(function(){return typeof(p==null?void 0:p.width)=="number"?p==null?void 0:p.width:ILe}),D=ce(j,2),F=D[0],L=D[1],B=s.useMemo(function(){return ELe(n,F+16,l)},[n,F,l]),K=s.useMemo(function(){if(i!==void 0)return i;if(o!==void 0){var V=24/B.span-1;return o>V?V:o}return Math.max(1,24/B.span-1)},[o,i,B.span]),W=s.useMemo(function(){if(b&&B.layout!=="vertical"&&b!=="auto")return{labelCol:{flex:"0 0 ".concat(b,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(b,"px)")}},style:{flexWrap:"nowrap"}}},[B.layout,b]);return A(_.jsx(Rr,{onResize:function(q){F!==q.width&&q.width>17&&L(q.width)},children:_.jsx("div",{className:"".concat(T,"-container ").concat(k),style:e.containerStyle,children:_.jsx(Vf,P(P({isKeyPressSubmit:!0,preserve:x},I),{},{className:oe(T,k,I.className),onReset:m,style:p,layout:B.layout,fieldProps:{style:{width:"100%"}},formItemProps:W,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(q,U,G){return _.jsx(OLe,{spanSize:B,collapsed:t,form:G,submitterColSpanProps:R,collapseRender:f,defaultCollapsed:a,onCollapse:g,optionRender:d,submitter:U,items:q,split:S,baseClassName:T,resetText:e.resetText,searchText:e.searchText,searchGutter:u,preserve:x,ignoreRules:w,showLength:K,showHiddenNum:E})}}))})},"resize-observer"))}var MLe=["onFinish","step","formRef","title","stepProps"];function TLe(e){var t=s.useRef(),n=s.useContext(TY),r=s.useContext(NY),a=P(P({},e),r),o=a.onFinish,i=a.step,l=a.formRef;a.title,a.stepProps;var c=Ue(a,MLe);return $a(!c.submitter,"StepForm 不包含提交按钮,请在 StepsForm 上"),s.useImperativeHandle(l,function(){return t.current},[l==null?void 0:l.current]),s.useEffect(function(){if(a.name||a.step){var u=(a.name||a.step).toString();return n==null||n.regForm(u,a),function(){n==null||n.unRegForm(u)}}},[]),n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[i||0]=t),_.jsx(Vf,P({formRef:t,onFinish:(function(){var u=mn(ht().mark(function d(f){var m;return ht().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(c.name&&(n==null||n.onFormFinish(c.name,f)),!o){h.next=9;break}return n==null||n.setLoading(!0),h.next=5,o==null?void 0:o(f);case 5:return m=h.sent,m&&(n==null||n.next()),n==null||n.setLoading(!1),h.abrupt("return");case 9:n!=null&&n.lastStep||n==null||n.next();case 10:case"end":return h.stop()}},d)}));return function(d){return u.apply(this,arguments)}})(),onInit:function(d,f){var m;t.current=f,n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[i||0]=t),c==null||(m=c.onInit)===null||m===void 0||m.call(c,d,f)},layout:"vertical"},nn(c,["layoutType","columns"])))}var NLe=function(t){return z({},t.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":z({maxWidth:"1160px",margin:"auto"},"".concat(t.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};function _Le(e){return $n("StepsForm",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[NLe(n)]})}var jLe=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],TY=ee.createContext(void 0),FLe={horizontal:function(t){var n=t.stepsDom,r=t.formDom;return _.jsxs(_.Fragment,{children:[_.jsx(Pi,{gutter:{xs:8,sm:16,md:24},children:_.jsx(Xr,{span:24,children:n})}),_.jsx(Pi,{gutter:{xs:8,sm:16,md:24},children:_.jsx(Xr,{span:24,children:r})})]})},vertical:function(t){var n=t.stepsDom,r=t.formDom;return _.jsxs(Pi,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[_.jsx(Xr,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:ee.cloneElement(n,{style:{height:"100%"}})}),_.jsx(Xr,{children:_.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:r})})]})}},NY=ee.createContext(null);function DLe(e){var t=s.useContext(Mt.ConfigContext),n=t.getPrefixCls,r=n("pro-steps-form"),a=_Le(r),o=a.wrapSSR,i=a.hashId;e.current,e.onCurrentChange;var l=e.submitter,c=e.stepsFormRender,u=e.stepsRender,d=e.stepFormRender,f=e.stepsProps,m=e.onFinish,g=e.formProps,h=e.containerStyle,b=e.formRef,p=e.formMapRef,S=e.layoutRender,C=Ue(e,jLe),x=s.useRef(new Map),w=s.useRef(new Map),$=s.useRef([]),E=s.useState([]),R=ce(E,2),I=R[0],O=R[1],T=s.useState(!1),N=ce(T,2),A=N[0],k=N[1],j=kn(),D=_t(0,{value:e.current,onChange:e.onCurrentChange}),F=ce(D,2),L=F[0],B=F[1],K=s.useMemo(function(){return FLe[(f==null?void 0:f.direction)||"horizontal"]},[f==null?void 0:f.direction]),W=s.useMemo(function(){return L===I.length-1},[I.length,L]),V=s.useCallback(function(ie,se){w.current.has(ie)||O(function(ve){return[].concat(ke(ve),[ie])}),w.current.set(ie,se)},[]),q=s.useCallback(function(ie){O(function(se){return se.filter(function(ve){return ve!==ie})}),w.current.delete(ie),x.current.delete(ie)},[]);s.useImperativeHandle(p,function(){return $.current},[$.current]),s.useImperativeHandle(b,function(){var ie;return(ie=$.current[L||0])===null||ie===void 0?void 0:ie.current},[L,$.current]);var U=s.useCallback((function(){var ie=mn(ht().mark(function se(ve,he){var Ce,pe;return ht().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(x.current.set(ve,he),!(!W||!m)){ge.next=3;break}return ge.abrupt("return");case 3:return k(!0),Ce=A1.apply(void 0,[{}].concat(ke(Array.from(x.current.values())))),ge.prev=5,ge.next=8,m(Ce);case 8:pe=ge.sent,pe&&(B(0),$.current.forEach(function(ye){var xe;return(xe=ye.current)===null||xe===void 0?void 0:xe.resetFields()})),ge.next=15;break;case 12:ge.prev=12,ge.t0=ge.catch(5),console.log(ge.t0);case 15:return ge.prev=15,k(!1),ge.finish(15);case 18:case"end":return ge.stop()}},se,null,[[5,12,15,18]])}));return function(se,ve){return ie.apply(this,arguments)}})(),[W,m,k,B]),G=s.useMemo(function(){var ie=vl(uo,"4.24.0")>-1,se=ie?{items:I.map(function(ve){var he=w.current.get(ve);return P({key:ve,title:he==null?void 0:he.title},he==null?void 0:he.stepProps)})}:{};return _.jsx("div",{className:"".concat(r,"-steps-container ").concat(i).trim(),style:{maxWidth:Math.min(I.length*320,1160)},children:_.jsx(aO,P(P(P({},f),se),{},{current:L,onChange:void 0,children:!ie&&I.map(function(ve){var he=w.current.get(ve);return _.jsx(aO.Step,P({title:he==null?void 0:he.title},he==null?void 0:he.stepProps),ve)})}))})},[I,i,r,L,f]),Y=zn(function(){var ie,se=$.current[L];(ie=se.current)===null||ie===void 0||ie.submit()}),J=zn(function(){L<1||B(L-1)}),Q=s.useMemo(function(){return l!==!1&&_.jsx(jn,P(P({type:"primary",loading:A},l==null?void 0:l.submitButtonProps),{},{onClick:function(){var se;l==null||(se=l.onSubmit)===null||se===void 0||se.call(l),Y()},children:j.getMessage("stepsForm.next","下一步")}),"next")},[j,A,Y,l]),Z=s.useMemo(function(){return l!==!1&&_.jsx(jn,P(P({},l==null?void 0:l.resetButtonProps),{},{onClick:function(){var se;J(),l==null||(se=l.onReset)===null||se===void 0||se.call(l)},children:j.getMessage("stepsForm.prev","上一步")}),"pre")},[j,J,l]),ne=s.useMemo(function(){return l!==!1&&_.jsx(jn,P(P({type:"primary",loading:A},l==null?void 0:l.submitButtonProps),{},{onClick:function(){var se;l==null||(se=l.onSubmit)===null||se===void 0||se.call(l),Y()},children:j.getMessage("stepsForm.submit","提交")}),"submit")},[j,A,Y,l]),ae=zn(function(){L>I.length-2||B(L+1)}),le=s.useMemo(function(){var ie=[],se=L||0;if(se<1?I.length===1?ie.push(ne):ie.push(Q):se+1===I.length?ie.push(Z,ne):ie.push(Z,Q),ie=ie.filter(ee.isValidElement),l&&l.render){var ve,he={form:(ve=$.current[L])===null||ve===void 0?void 0:ve.current,onSubmit:Y,step:L,onPre:J};return l.render(he,ie)}return l&&(l==null?void 0:l.render)===!1?null:ie},[I.length,Q,Y,Z,J,L,ne,l]),re=s.useMemo(function(){return rr(e.children).map(function(ie,se){var ve=ie.props,he=ve.name||"".concat(se),Ce=L===se,pe=Ce?{contentRender:d,submitter:!1}:{};return _.jsx("div",{className:oe("".concat(r,"-step"),i,z({},"".concat(r,"-step-active"),Ce)),children:_.jsx(NY.Provider,{value:P(P(P(P({},pe),g),ve),{},{name:he,step:se}),children:ie})},he)})},[g,i,r,e.children,L,d]),fe=s.useMemo(function(){return u?u(I.map(function(ie){var se;return{key:ie,title:(se=w.current.get(ie))===null||se===void 0?void 0:se.title}}),G):G},[I,G,u]),ue=s.useMemo(function(){return _.jsxs("div",{className:"".concat(r,"-container ").concat(i).trim(),style:h,children:[re,c?null:_.jsx(Jn,{children:le})]})},[h,re,i,r,c,le]),de=s.useMemo(function(){var ie={stepsDom:fe,formDom:ue};return c?c(S?S(ie):K(ie),le):S?S(ie):K(ie)},[fe,ue,K,c,le,S]);return o(_.jsx("div",{className:oe(r,i),children:_.jsx(Fn.Provider,P(P({},C),{},{children:_.jsx(TY.Provider,{value:{loading:A,setLoading:k,regForm:V,keyArray:I,next:ae,formArrayRef:$,formMapRef:w,lastStep:W,unRegForm:q,onFormFinish:U},children:de})}))}))}function tC(e){return _.jsx(Ag,{needDeps:!0,children:_.jsx(DLe,P({},e))})}tC.StepForm=TLe;tC.useForm=Fn.useForm;var kLe=function(t){var n=t.children;return _.jsx(_.Fragment,{children:n})},ALe=["steps","columns","forceUpdate","grid"],LLe=function(t){var n=t.steps,r=t.columns,a=t.forceUpdate,o=t.grid,i=Ue(t,ALe),l=h3(i),c=s.useCallback(function(d){var f,m;(f=(m=l.current).onCurrentChange)===null||f===void 0||f.call(m,d),a([])},[a,l]),u=s.useMemo(function(){return n==null?void 0:n.map(function(d,f){return s.createElement(_Y,P(P({grid:o},d),{},{key:f,layoutType:"StepForm",columns:r[f]}))})},[r,o,n]);return _.jsx(tC,P(P({},i),{},{onCurrentChange:c,children:u}))},BLe=function(t,n){if(t.valueType==="dependency"){var r,a,o,i=(r=t.getFieldProps)===null||r===void 0?void 0:r.call(t);return $a(Array.isArray((a=t.name)!==null&&a!==void 0?a:i==null?void 0:i.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),$a(typeof t.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((o=t.name)!==null&&o!==void 0?o:i==null?void 0:i.name)?s.createElement(Xg,P(P({name:t.name},i),{},{key:t.key}),function(l){return!t.columns||typeof t.columns!="function"?null:n.genItems(t.columns(l))}):null}return!0},zLe=function(t){if(t.valueType==="divider"){var n;return s.createElement(tK,P(P({},(n=t.getFieldProps)===null||n===void 0?void 0:n.call(t)),{},{key:t.key}))}return!0},HLe=["key"],VLe=function(t,n){var r=n.action,a=n.formRef,o=n.type,i=n.originItem,l=P(P({},nn(t,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:t.name||t.key||t.dataIndex,width:t.width,render:t!=null&&t.render?function(f,m,g){var h,b,p,S;return t==null||(h=t.render)===null||h===void 0?void 0:h.call(t,f,m,g,r==null?void 0:r.current,P(P({type:o},t),{},{key:(b=t.key)===null||b===void 0?void 0:b.toString(),formItemProps:(p=t.getFormItemProps)===null||p===void 0?void 0:p.call(t),fieldProps:(S=t.getFieldProps)===null||S===void 0?void 0:S.call(t)}))}:void 0}),c=function(){var m=l.key,g=Ue(l,HLe);return _.jsx(si,P(P({},g),{},{ignoreFormItem:!0}),m)},u=t!=null&&t.renderFormItem?function(f,m){var g,h,b,p,S=jr(P(P({},m),{},{onChange:void 0}));return t==null||(g=t.renderFormItem)===null||g===void 0?void 0:g.call(t,P(P({type:o},t),{},{key:(h=t.key)===null||h===void 0?void 0:h.toString(),formItemProps:(b=t.getFormItemProps)===null||b===void 0?void 0:b.call(t),fieldProps:(p=t.getFieldProps)===null||p===void 0?void 0:p.call(t),originProps:i}),P(P({},S),{},{defaultRender:c,type:o}),a.current)}:void 0,d=function(){if(t!=null&&t.renderFormItem){var m=u==null?void 0:u(null,{});if(!m||t.ignoreFormItem)return m}return s.createElement(si,P(P({},l),{},{key:[t.key,t.index||0].join("-"),renderFormItem:u}))};return t.dependencies?_.jsx(Xg,{name:t.dependencies||[],children:d},t.key):d()},WLe=function(t,n){var r=n.genItems;if(t.valueType==="formList"&&t.dataIndex){var a,o;return!t.columns||!Array.isArray(t.columns)?null:s.createElement(PY,P(P({},(a=t.getFormItemProps)===null||a===void 0?void 0:a.call(t)),{},{key:t.key,name:t.dataIndex,label:t.label,initialValue:t.initialValue,colProps:t.colProps,rowProps:t.rowProps},(o=t.getFieldProps)===null||o===void 0?void 0:o.call(t)),r(t.columns))}return!0},KLe=function(t,n){var r=n.genItems;if(t.valueType==="formSet"&&t.dataIndex){var a,o;return!t.columns||!Array.isArray(t.columns)?null:s.createElement(tLe,P(P({},(a=t.getFormItemProps)===null||a===void 0?void 0:a.call(t)),{},{key:t.key,initialValue:t.initialValue,name:t.dataIndex,label:t.label,colProps:t.colProps,rowProps:t.rowProps},(o=t.getFieldProps)===null||o===void 0?void 0:o.call(t)),r(t.columns))}return!0},qLe=function(t,n){var r=n.genItems;if(t.valueType==="group"){var a;return!t.columns||!Array.isArray(t.columns)?null:_.jsx(ym,P(P({label:t.label,colProps:t.colProps,rowProps:t.rowProps},(a=t.getFieldProps)===null||a===void 0?void 0:a.call(t)),{},{children:r(t.columns)}),t.key)}return!0},ULe=function(t){return t.valueType&&typeof t.valueType=="string"&&["index","indexBorder","option"].includes(t==null?void 0:t.valueType)?null:!0},sL=[ULe,qLe,WLe,KLe,zLe,BLe],GLe=function(t,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:[],U=cL(q);if(!U)throw new Error("nameList is require");var G=(V=k())===null||V===void 0?void 0:V.getFieldValue(U),Y=U?br({},U,G):G,J=ke(U);return J.shift(),Un(o(Y,p,J),U)},getFieldFormatValueObject:function(V){var q,U=cL(V),G=(q=k())===null||q===void 0?void 0:q.getFieldValue(U),Y=U?br({},U,G):G;return o(Y,p,U)},validateFieldsReturnFormatValue:(function(){var W=mn(ht().mark(function q(U){var G,Y,J;return ht().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(!(!Array.isArray(U)&&U)){Z.next=2;break}throw new Error("nameList must be array");case 2:return Z.next=4,(G=k())===null||G===void 0?void 0:G.validateFields(U);case 4:return Y=Z.sent,J=o(Y,p),Z.abrupt("return",J||{});case 7:case"end":return Z.stop()}},q)}));function V(q){return W.apply(this,arguments)}return V})()}},[p,o]),D=s.useMemo(function(){return ee.Children.toArray(n).map(function(W,V){return V===0&&ee.isValidElement(W)&&C?ee.cloneElement(W,P(P({},W.props),{},{autoFocus:C})):W})},[C,n]),F=s.useMemo(function(){return typeof a=="boolean"||!a?{}:a},[a]),L=s.useMemo(function(){if(a!==!1)return _.jsx(rBe,P(P({},F),{},{onReset:function(){var V,q,U=o((V=T.current)===null||V===void 0?void 0:V.getFieldsValue(),p);if(F==null||(q=F.onReset)===null||q===void 0||q.call(F,U),h==null||h(U),m){var G,Y=Object.keys(o((G=T.current)===null||G===void 0?void 0:G.getFieldsValue(),!1)).reduce(function(J,Q){return P(P({},J),{},z({},Q,U[Q]||void 0))},f);g(ib(m,Y||{},"set"))}},submitButtonProps:P({loading:u},F.submitButtonProps)}),"submitter")},[a,F,u,o,p,h,m,f,g]),B=s.useMemo(function(){var W=x?_.jsx(A,{children:D}):D;return r?r(W,L,T.current):W},[x,A,D,r,L]),K=pm(e.initialValues);return s.useEffect(function(){if(!(m||!e.initialValues||!K||E.request)){var W=Ll(e.initialValues,K);$a(W,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ?
: null "),$a(W,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),s.useImperativeHandle(i,function(){return P(P({},T.current),j)},[j,T.current]),s.useEffect(function(){var W,V,q=o((W=T.current)===null||W===void 0||(V=W.getFieldsValue)===null||V===void 0?void 0:V.call(W,!0),p);l==null||l(q,P(P({},T.current),j))},[]),_.jsx(Lg.Provider,{value:P(P({},j),{},{formRef:T}),children:_.jsx(Mt,{componentSize:E.size||O,children:_.jsxs(x3.Provider,{value:{grid:x,colProps:$},children:[E.component!==!1&&_.jsx("input",{type:"text",style:{display:"none"}}),B]})})})}var uL=0;function Vf(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,a=e.isKeyPressSubmit,o=e.syncToUrlAsImportant,i=o===void 0?!1:o,l=e.syncToInitialValues,c=l===void 0?!0:l;e.children,e.contentRender,e.submitter;var u=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,m=e.groupProps,g=e.dateFormatter,h=g===void 0?"string":g,b=e.formRef;e.onInit;var p=e.form,S=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var C=e.omitNil,x=C===void 0?!0:C,w=e.request,$=e.params,E=e.initialValues,R=e.formKey,I=R===void 0?uL:R;e.readonly;var O=e.onLoadingChange,T=e.loading,N=Ue(e,fBe),A=s.useRef({}),k=_t(!1,{onChange:O,value:T}),j=ce(k,2),D=j[0],F=j[1],L=G5e({},{disabled:!r}),B=ce(L,2),K=B[0],W=B[1],V=s.useRef(Km());s.useEffect(function(){uL+=0},[]);var q=pTe({request:w,params:$,proFieldKey:I}),U=ce(q,1),G=U[0],Y=s.useContext(Mt.ConfigContext),J=Y.getPrefixCls,Q=J("pro-form"),Z=$n("ProForm",function(pe){return z({},".".concat(Q),z({},"> div:not(".concat(pe.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ne=Z.wrapSSR,ae=Z.hashId,le=s.useState(function(){return r?ib(r,K,"get"):{}}),re=ce(le,2),fe=re[0],ue=re[1],de=s.useRef({}),ie=s.useRef({}),se=zn(function(pe,Se,ge){return i5e(sTe(pe,h,ie.current,Se,ge),de.current,Se)});s.useEffect(function(){c||ue({})},[c]);var ve=zn(function(){return P(P({},K),n)});s.useEffect(function(){r&&W(ib(r,ve(),"set"))},[n,ve,r]);var he=s.useMemo(function(){if(!(typeof window>"u")&&S&&["DrawerForm"].includes(S))return function(pe){return pe.parentNode||document.body}},[S]),Ce=zn(mn(ht().mark(function pe(){var Se,ge,ye,xe,$e,He,Te;return ht().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(N.onFinish){Fe.next=2;break}return Fe.abrupt("return");case 2:if(!D){Fe.next=4;break}return Fe.abrupt("return");case 4:return Fe.prev=4,ye=A==null||(Se=A.current)===null||Se===void 0||(ge=Se.getFieldsFormatValue)===null||ge===void 0?void 0:ge.call(Se),xe=N.onFinish(ye),xe instanceof Promise&&F(!0),Fe.next=10,xe;case 10:r&&(Te=Object.keys(A==null||($e=A.current)===null||$e===void 0||(He=$e.getFieldsFormatValue)===null||He===void 0?void 0:He.call($e,void 0,!1)).reduce(function(je,Ee){var Le;return P(P({},je),{},z({},Ee,(Le=ye[Ee])!==null&&Le!==void 0?Le:void 0))},n),Object.keys(K).forEach(function(je){Te[je]!==!1&&Te[je]!==0&&!Te[je]&&(Te[je]=void 0)}),W(ib(r,Te,"set"))),F(!1),Fe.next=18;break;case 14:Fe.prev=14,Fe.t0=Fe.catch(4),console.log(Fe.t0),F(!1);case 18:case"end":return Fe.stop()}},pe,null,[[4,14]])})));return s.useImperativeHandle(b,function(){return A.current},[!G]),!G&&e.request?_.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:_.jsx(Hi,{})}):ne(_.jsx(Yg.Provider,{value:{mode:e.readonly?"read":"edit"},children:_.jsx(Ag,{needDeps:!0,children:_.jsx(Zl.Provider,{value:{formRef:A,fieldProps:u,proFieldProps:d,formItemProps:f,groupProps:m,formComponentType:S,getPopupContainer:he,formKey:V.current,setFieldValueType:function(Se,ge){var ye=ge.valueType,xe=ye===void 0?"text":ye,$e=ge.dateFormat,He=ge.transform;Array.isArray(Se)&&(de.current=br(de.current,Se,He),ie.current=br(ie.current,Se,{valueType:xe,dateFormat:$e}))}},children:_.jsx(ff.Provider,{value:{},children:_.jsx(Fn,P(P({onKeyPress:function(Se){if(a&&Se.key==="Enter"){var ge;(ge=A.current)===null||ge===void 0||ge.submit()}},autoComplete:"off",form:p},nn(N,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(Se){A.current&&(A.current.nativeElement=Se==null?void 0:Se.nativeElement)},initialValues:i?P(P(P({},E),G),fe):P(P(P({},fe),E),G),onValuesChange:function(Se,ge){var ye;N==null||(ye=N.onValuesChange)===null||ye===void 0||ye.call(N,se(Se,!!x),se(ge,!!x))},className:oe(e.className,Q,ae),onFinish:Ce,children:_.jsx(vBe,P(P({transformKey:se,autoComplete:"off",loading:D,onUrlSearchChange:W},e),{},{formRef:A,initialValues:P(P({},E),G)}))}))})})})}))}var mBe=function(t){return z(z({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),z({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function gBe(e){return $n("LightWrapper",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[mBe(n)]})}var pBe=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],hBe=function(t){var n=t.label,r=t.size,a=t.disabled,o=t.onChange,i=t.className,l=t.style,c=t.children,u=t.valuePropName,d=t.placeholder,f=t.labelFormatter,m=t.bordered,g=t.footerRender,h=t.allowClear,b=t.otherFieldProps,p=t.valueType,S=t.placement,C=Ue(t,pBe),x=s.useContext(Mt.ConfigContext),w=x.getPrefixCls,$=w("pro-field-light-wrapper"),E=gBe($),R=E.wrapSSR,I=E.hashId,O=s.useState(t[u]),T=ce(O,2),N=T[0],A=T[1],k=_t(!1),j=ce(k,2),D=j[0],F=j[1],L=function(){for(var V,q=arguments.length,U=new Array(q),G=0;G *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function yBe(e){return $n("ProLayoutFooterToolbar",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[bBe(n)]})}function CBe(e,t){var n=t.stylish;return $n("ProLayoutFooterToolbarStylish",function(r){var a=P(P({},r),{},{componentCls:".".concat(e)});return n?[z({},"".concat(a.componentCls),n==null?void 0:n(a))]:[]})}var SBe=["children","className","extra","portalDom","style","renderContent"],xBe=function(t){var n=t.children,r=t.className,a=t.extra,o=t.portalDom,i=o===void 0?!0:o,l=t.style,c=t.renderContent,u=Ue(t,SBe),d=s.useContext(Mt.ConfigContext),f=d.getPrefixCls,m=d.getTargetContainer,g=t.prefixCls||f("pro"),h="".concat(g,"-footer-bar"),b=yBe(h),p=b.wrapSSR,S=b.hashId,C=s.useContext(Zm),x=s.useMemo(function(){var O=C.hasSiderMenu,T=C.isMobile,N=C.siderWidth;if(O)return N?T?"100%":"calc(100% - ".concat(N,"px)"):"100%"},[C.collapsed,C.hasSiderMenu,C.isMobile,C.siderWidth]),w=s.useMemo(function(){return typeof window>"u"||typeof document>"u"?null:(m==null?void 0:m())||document.body},[]),$=CBe("".concat(h,".").concat(h,"-stylish"),{stylish:t.stylish}),E=_.jsxs(_.Fragment,{children:[_.jsx("div",{className:"".concat(h,"-left ").concat(S).trim(),children:a}),_.jsx("div",{className:"".concat(h,"-right ").concat(S).trim(),children:n})]});s.useEffect(function(){return!C||!(C!=null&&C.setHasFooterToolbar)?function(){}:(C==null||C.setHasFooterToolbar(!0),function(){var O;C==null||(O=C.setHasFooterToolbar)===null||O===void 0||O.call(C,!1)})},[]);var R=_.jsx("div",P(P({className:oe(r,S,h,z({},"".concat(h,"-stylish"),!!t.stylish)),style:P({width:x},l)},nn(u,["prefixCls"])),{},{children:c?c(P(P(P({},t),C),{},{leftWidth:x}),E):E})),I=!yu()||!i||!w?R:Ua.createPortal(R,w,h);return $.wrapSSR(p(_.jsx(ee.Fragment,{children:I},h)))},Zm=s.createContext({}),wBe=function(t){return z({},t.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function $Be(e){return $n("ProLayoutGridContent",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[wBe(n)]})}var EBe=function(t){var n=s.useContext(Zm),r=t.children,a=t.contentWidth,o=t.className,i=t.style,l=s.useContext(Mt.ConfigContext),c=l.getPrefixCls,u=t.prefixCls||c("pro"),d=a||n.contentWidth,f="".concat(u,"-grid-content"),m=$Be(f),g=m.wrapSSR,h=m.hashId,b=d==="Fixed"&&n.layout==="top";return g(_.jsx("div",{className:oe(f,h,o,z({},"".concat(f,"-wide"),b)),style:i,children:_.jsx("div",{className:"".concat(u,"-grid-content-children ").concat(h).trim(),children:r})}))},x0={exports:{}},Dv={},AE={exports:{}},dL;function Qg(){return dL||(dL=1,(function(e){var t=_1().default;function n(r,a){if(typeof WeakMap=="function")var o=new WeakMap,i=new WeakMap;return(e.exports=n=function(c,u){if(!u&&c&&c.__esModule)return c;var d,f,m={__proto__:null,default:c};if(c===null||t(c)!="object"&&typeof c!="function")return m;if(d=u?i:o){if(d.has(c))return d.get(c);d.set(c,m)}for(var g in c)g!=="default"&&{}.hasOwnProperty.call(c,g)&&((f=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(c,g))&&(f.get||f.set)?d(m,g,f):m[g]=c[g]);return m},e.exports.__esModule=!0,e.exports.default=e.exports)(r,a)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(AE)),AE.exports}var LE={exports:{}},fL;function L3(){return fL||(fL=1,(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;rn.length)&&(r=n.length);for(var a=0,o=Array(r);a0&&arguments[0]!==void 0?arguments[0]:{},x=C.mark;return x?x.startsWith("data-")?x:"data-".concat(x):i}function u(C){if(C.attachTo)return C.attachTo;var x=document.querySelector("head");return x||document.body}function d(C){return C==="queue"?"prependQueue":C?"prepend":"append"}function f(C){return Array.from((l.get(C)||C).children).filter(function(x){return x.tagName==="STYLE"})}function m(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,n.default)())return null;var w=x.csp,$=x.prepend,E=x.priority,R=E===void 0?0:E,I=d($),O=I==="prependQueue",T=document.createElement("style");T.setAttribute(a,I),O&&R&&T.setAttribute(o,"".concat(R)),w!=null&&w.nonce&&(T.nonce=w==null?void 0:w.nonce),T.innerHTML=C;var N=u(x),A=N.firstChild;if($){if(O){var k=(x.styles||f(N)).filter(function(j){if(!["prepend","prependQueue"].includes(j.getAttribute(a)))return!1;var D=Number(j.getAttribute(o)||0);return R>=D});if(k.length)return N.insertBefore(T,k[k.length-1].nextSibling),T}N.insertBefore(T,A)}else N.appendChild(T);return T}function g(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=u(x);return(x.styles||f(w)).find(function($){return $.getAttribute(c(x))===C})}function h(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=g(C,x);if(w){var $=u(x);$.removeChild(w)}}function b(C,x){var w=l.get(C);if(!w||!(0,r.default)(document,w)){var $=m("",x),E=$.parentNode;l.set(C,E),C.removeChild($)}}function p(){l.clear()}function S(C,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$=u(w),E=f($),R=(0,t.default)((0,t.default)({},w),{},{styles:E});b($,R);var I=g(x,R);if(I){var O,T;if((O=R.csp)!==null&&O!==void 0&&O.nonce&&I.nonce!==((T=R.csp)===null||T===void 0?void 0:T.nonce)){var N;I.nonce=(N=R.csp)===null||N===void 0?void 0:N.nonce}return I.innerHTML!==C&&(I.innerHTML=C),I}var A=m(C,R);return A.setAttribute(c(R),x),A}return wc}var Bv={},EL;function FBe(){if(EL)return Bv;EL=1,Object.defineProperty(Bv,"__esModule",{value:!0}),Bv.getShadowRoot=n,Bv.inShadow=t;function e(r){var a;return r==null||(a=r.getRootNode)===null||a===void 0?void 0:a.call(r)}function t(r){return e(r)instanceof ShadowRoot}function n(r){return t(r)?e(r):null}return Bv}var $o={},PL;function DBe(){if(PL)return $o;PL=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.call=o,$o.default=void 0,$o.note=r,$o.noteOnce=l,$o.preMessage=void 0,$o.resetWarned=a,$o.warning=n,$o.warningOnce=i;var e={},t=$o.preMessage=function(u){};function n(c,u){}function r(c,u){}function a(){e={}}function o(c,u,d){!u&&!e[d]&&(c(!1,d),e[d]=!0)}function i(c,u){o(n,c,u)}function l(c,u){o(r,c,u)}return i.preMessage=t,i.resetWarned=a,i.noteOnce=l,$o.default=i,$o}var OL;function B3(){if(OL)return Va;OL=1;var e=Qg().default,t=Wi().default;Object.defineProperty(Va,"__esModule",{value:!0}),Va.generate=h,Va.getSecondaryColor=b,Va.iconStyles=void 0,Va.isIconDefinition=m,Va.normalizeAttrs=g,Va.normalizeTwoToneColors=p,Va.useInsertStyles=Va.svgBaseProps=void 0,Va.warning=f;var n=t(j1()),r=t(_1()),a=DY,o=jBe(),i=FBe(),l=t(DBe()),c=e(ci()),u=t(kY());function d(C){return C.replace(/-(.)/g,function(x,w){return w.toUpperCase()})}function f(C,x){(0,l.default)(C,"[@ant-design/icons] ".concat(x))}function m(C){return(0,r.default)(C)==="object"&&typeof C.name=="string"&&typeof C.theme=="string"&&((0,r.default)(C.icon)==="object"||typeof C.icon=="function")}function g(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(C).reduce(function(x,w){var $=C[w];switch(w){case"class":x.className=$,delete x.class;break;default:delete x[w],x[d(w)]=$}return x},{})}function h(C,x,w){return w?c.default.createElement(C.tag,(0,n.default)((0,n.default)({key:x},g(C.attrs)),w),(C.children||[]).map(function($,E){return h($,"".concat(x,"-").concat(C.tag,"-").concat(E))})):c.default.createElement(C.tag,(0,n.default)({key:x},g(C.attrs)),(C.children||[]).map(function($,E){return h($,"".concat(x,"-").concat(C.tag,"-").concat(E))}))}function b(C){return(0,a.generate)(C)[0]}function p(C){return C?Array.isArray(C)?C:[C]:[]}Va.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var S=Va.iconStyles=` + `),ee.createElement("div",{style:f.white,className:"saturation-white"},ee.createElement("div",{style:f.black,className:"saturation-black"}),ee.createElement("div",{style:f.pointer},this.props.pointer?ee.createElement(this.props.pointer,this.props):ee.createElement("div",{style:f.circle}))))}}]),n})(s.PureComponent||s.Component),QDe=TY();const JDe=rn(QDe);var WE,ZA;function ZDe(){if(ZA)return WE;ZA=1;var e=CY(),t=yY(),n=aY(),r=Lo();function a(o,i){var l=r(o)?e:t;return l(o,n(i))}return WE=a,WE}var KE,eL;function e7e(){return eL||(eL=1,KE=ZDe()),KE}var t7e=e7e();const n7e=rn(t7e);function by(e){"@babel/helpers - typeof";return by=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},by(e)}var r7e=/^\s+/,a7e=/\s+$/;function un(e,t){if(e=e||"",t=t||{},e instanceof un)return e;if(!(this instanceof un))return new un(e,t);var n=o7e(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}un.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,a,o,i,l;return n=t.r/255,r=t.g/255,a=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),a<=.03928?l=a/12.92:l=Math.pow((a+.055)/1.055,2.4),.2126*o+.7152*i+.0722*l},setAlpha:function(t){return this._a=NY(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=nL(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=nL(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+a+"%)":"hsva("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=tL(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=tL(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+a+"%)":"hsla("+n+", "+r+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return rL(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return c7e(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Rr(this._r,255)*100)+"%",g:Math.round(Rr(this._g,255)*100)+"%",b:Math.round(Rr(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Rr(this._r,255)*100)+"%, "+Math.round(Rr(this._g,255)*100)+"%, "+Math.round(Rr(this._b,255)*100)+"%)":"rgba("+Math.round(Rr(this._r,255)*100)+"%, "+Math.round(Rr(this._g,255)*100)+"%, "+Math.round(Rr(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:S7e[rL(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+aL(this._r,this._g,this._b,this._a),r=n,a=this._gradientType?"GradientType = 1, ":"";if(t){var o=un(t);r="#"+aL(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,a=this._a<1&&this._a>=0,o=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return o?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return un(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v7e,arguments)},brighten:function(){return this._applyModification(m7e,arguments)},darken:function(){return this._applyModification(g7e,arguments)},desaturate:function(){return this._applyModification(u7e,arguments)},saturate:function(){return this._applyModification(d7e,arguments)},greyscale:function(){return this._applyModification(f7e,arguments)},spin:function(){return this._applyModification(p7e,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(y7e,arguments)},complement:function(){return this._applyCombination(h7e,arguments)},monochromatic:function(){return this._applyCombination(C7e,arguments)},splitcomplement:function(){return this._applyCombination(b7e,arguments)},triad:function(){return this._applyCombination(oL,[3])},tetrad:function(){return this._applyCombination(oL,[4])}};un.fromRatio=function(e,t){if(by(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=im(e[r]));e=n}return un(e,t)};function o7e(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,l=!1;return typeof e=="string"&&(e=E7e(e)),by(e)=="object"&&(Pl(e.r)&&Pl(e.g)&&Pl(e.b)?(t=i7e(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Pl(e.h)&&Pl(e.s)&&Pl(e.v)?(r=im(e.s),a=im(e.v),t=s7e(e.h,r,a),i=!0,l="hsv"):Pl(e.h)&&Pl(e.s)&&Pl(e.l)&&(r=im(e.s),o=im(e.l),t=l7e(e.h,r,o),i=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=NY(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function i7e(e,t,n){return{r:Rr(e,255)*255,g:Rr(t,255)*255,b:Rr(n,255)*255}}function tL(e,t,n){e=Rr(e,255),t=Rr(t,255),n=Rr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,i,l=(r+a)/2;if(r==a)o=i=0;else{var c=r-a;switch(i=l>.5?c/(2-r-a):c/(r+a),r){case e:o=(t-n)/c+(t1&&(f-=1),f<1/6?u+(d-u)*6*f:f<1/2?d:f<2/3?u+(d-u)*(2/3-f)*6:u}if(t===0)r=a=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;r=i(c,l,e+1/3),a=i(c,l,e),o=i(c,l,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function nL(e,t,n){e=Rr(e,255),t=Rr(t,255),n=Rr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o,i,l=r,c=r-a;if(i=r===0?0:c/r,r==a)o=0;else{switch(r){case e:o=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(un(r));return o}function C7e(e,t){t=t||6;for(var n=un(e).toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;t--;)i.push(un({h:r,s:a,v:o})),o=(o+l)%1;return i}un.mix=function(e,t,n){n=n===0?0:n||50;var r=un(e).toRgb(),a=un(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return un(i)};un.readability=function(e,t){var n=un(e),r=un(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};un.isReadable=function(e,t,n){var r=un.readability(e,t),a,o;switch(o=!1,a=P7e(n),a.level+a.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};un.mostReadable=function(e,t,n){var r=null,a=0,o,i,l,c;n=n||{},i=n.includeFallbackColors,l=n.level,c=n.size;for(var u=0;ua&&(a=o,r=un(t[u]));return un.isReadable(e,r,{level:l,size:c})||!i?r:(n.includeFallbackColors=!1,un.mostReadable(e,["#fff","#000"],n))};var JI=un.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},S7e=un.hexNames=x7e(JI);function x7e(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function NY(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Rr(e,t){w7e(e)&&(e="100%");var n=$7e(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function lC(e){return Math.min(1,Math.max(0,e))}function Oo(e){return parseInt(e,16)}function w7e(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function $7e(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Mi(e){return e.length==1?"0"+e:""+e}function im(e){return e<=1&&(e=e*100+"%"),e}function _Y(e){return Math.round(parseFloat(e)*255).toString(16)}function iL(e){return Oo(e)/255}var wi=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Pl(e){return!!wi.CSS_UNIT.exec(e)}function E7e(e){e=e.replace(r7e,"").replace(a7e,"").toLowerCase();var t=!1;if(JI[e])e=JI[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=wi.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=wi.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=wi.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=wi.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=wi.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=wi.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=wi.hex8.exec(e))?{r:Oo(n[1]),g:Oo(n[2]),b:Oo(n[3]),a:iL(n[4]),format:t?"name":"hex8"}:(n=wi.hex6.exec(e))?{r:Oo(n[1]),g:Oo(n[2]),b:Oo(n[3]),format:t?"name":"hex"}:(n=wi.hex4.exec(e))?{r:Oo(n[1]+""+n[1]),g:Oo(n[2]+""+n[2]),b:Oo(n[3]+""+n[3]),a:iL(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=wi.hex3.exec(e))?{r:Oo(n[1]+""+n[1]),g:Oo(n[2]+""+n[2]),b:Oo(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function P7e(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var lL=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,a=0;return n7e(n,function(o){if(t[o]&&(r+=1,isNaN(t[o])||(a+=1),o==="s"||o==="l")){var i=/^\d+%$/;i.test(t[o])&&(a+=1)}}),r===a?t:!1},E0=function(t,n){var r=t.hex?un(t.hex):un(t),a=r.toHsl(),o=r.toHsv(),i=r.toRgb(),l=r.toHex();a.s===0&&(a.h=n||0,o.h=n||0);var c=l==="000000"&&i.a===0;return{hsl:a,hex:c?"transparent":"#".concat(l),rgb:i,hsv:o,oldHue:t.h||n||a.h,source:t.source}},O7e=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&un(t).isValid()};function df(e){"@babel/helpers - typeof";return df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},df(e)}function ZI(){return ZI=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}var k7e=function(t){var n=(function(r){N7e(o,r);var a=_7e(o);function o(i){var l;return R7e(this,o),l=a.call(this),l.handleChange=function(c,u){var d=lL(c);if(d){var f=E0(c,c.h||l.state.oldHue);l.setState(f),l.props.onChangeComplete&&l.debounce(l.props.onChangeComplete,f,u),l.props.onChange&&l.props.onChange(f,u)}},l.handleSwatchHover=function(c,u){var d=lL(c);if(d){var f=E0(c,c.h||l.state.oldHue);l.props.onSwatchHover&&l.props.onSwatchHover(f,u)}},l.state=jv({},E0(i.color,0)),l.debounce=JDe(function(c,u,d){c(u,d)},100),l}return M7e(o,[{key:"render",value:function(){var l={};return this.props.onSwatchHover&&(l.onSwatchHover=this.handleSwatchHover),ee.createElement(t,ZI({},this.props,this.state,{onChange:this.handleChange},l))}}],[{key:"getDerivedStateFromProps",value:function(l,c){return jv({},E0(l.color,c.oldHue))}}]),o})(s.PureComponent||s.Component);return n.propTypes=jv({},t.propTypes),n.defaultProps=jv(jv({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function ff(e){"@babel/helpers - typeof";return ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ff(e)}function A7e(e,t,n){return t=FY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B7e(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cy(e){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cy(e)}var G7e=1,DY=38,Y7e=40,X7e=[DY,Y7e],Q7e=function(t){return X7e.indexOf(t)>-1},J7e=function(t){return Number(String(t).replace(/%/g,""))},Z7e=1,Fv=(function(e){V7e(n,e);var t=W7e(n);function n(r){var a;return L7e(this,n),a=t.call(this),a.handleBlur=function(){a.state.blurValue&&a.setState({value:a.state.blurValue,blurValue:null})},a.handleChange=function(o){a.setUpdatedValue(o.target.value,o)},a.handleKeyDown=function(o){var i=J7e(o.target.value);if(!isNaN(i)&&Q7e(o.keyCode)){var l=a.getArrowOffset(),c=o.keyCode===DY?i+l:i-l;a.setUpdatedValue(c,o)}},a.handleDrag=function(o){if(a.props.dragLabel){var i=Math.round(a.props.value+o.movementX);i>=0&&i<=a.props.dragMax&&a.props.onChange&&a.props.onChange(a.getValueObjectWithLabel(i),o)}},a.handleMouseDown=function(o){a.props.dragLabel&&(o.preventDefault(),a.handleDrag(o),window.addEventListener("mousemove",a.handleDrag),window.addEventListener("mouseup",a.handleMouseUp))},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleDrag),window.removeEventListener("mouseup",a.handleMouseUp)},a.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},a.inputId="rc-editable-input-".concat(Z7e++),a}return z7e(n,[{key:"componentDidUpdate",value:function(a,o){this.props.value!==this.state.value&&(a.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(a){return A7e({},this.props.label,a)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||G7e}},{key:"setUpdatedValue",value:function(a,o){var i=this.props.label?this.getValueObjectWithLabel(a):a;this.props.onChange&&this.props.onChange(i,o),this.setState({value:a})}},{key:"render",value:function(){var a=this,o=ac({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return ee.createElement("div",{style:o.wrap},ee.createElement("input",{id:this.inputId,style:o.input,ref:function(l){return a.input=l},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?ee.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n})(s.PureComponent||s.Component);function vf(e){"@babel/helpers - typeof";return vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vf(e)}function nR(){return nR=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sy(e){return Sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sy(e)}var uke=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return(function(r){oke(o,r);var a=ike(o);function o(){var i;eke(this,o);for(var l=arguments.length,c=new Array(l),u=0;u100&&(d.a=100),d.a/=100,n==null||n({h:a==null?void 0:a.h,s:a==null?void 0:a.s,l:a==null?void 0:a.l,a:d.a,source:"rgb"},f))};return ee.createElement("div",{style:l.fields,className:"flexbox-fix"},ee.createElement("div",{style:l.double},ee.createElement(Fv,{style:{input:l.input,label:l.label},label:"hex",value:o==null?void 0:o.replace("#",""),onChange:c})),ee.createElement("div",{style:l.single},ee.createElement(Fv,{style:{input:l.input,label:l.label},label:"r",value:r==null?void 0:r.r,onChange:c,dragLabel:"true",dragMax:"255"})),ee.createElement("div",{style:l.single},ee.createElement(Fv,{style:{input:l.input,label:l.label},label:"g",value:r==null?void 0:r.g,onChange:c,dragLabel:"true",dragMax:"255"})),ee.createElement("div",{style:l.single},ee.createElement(Fv,{style:{input:l.input,label:l.label},label:"b",value:r==null?void 0:r.b,onChange:c,dragLabel:"true",dragMax:"255"})),ee.createElement("div",{style:l.alpha},ee.createElement(Fv,{style:{input:l.input,label:l.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:c,dragLabel:"true",dragMax:"100"})))};function Qm(e){"@babel/helpers - typeof";return Qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qm(e)}function fL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vL(e){for(var t=1;t-1}function Tke(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&AY()?z4:Rke}var Nke=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=t.old,u=s.useContext(Rt.ConfigContext),d=u.getPrefixCls,f=ee.useMemo(function(){return Tke(c)},[c]),m=d("pro-field-color-picker"),g=s.useMemo(function(){return c?"":oe(z({},m,AY()))},[m,c]);if(a==="read"){var h=N.jsx(f,{value:r,mode:"read",ref:n,className:g,open:!1});return o?o(r,P({mode:a},l),h):h}if(a==="edit"||a==="update"){var b=P({display:"table-cell"},l.style),p=N.jsx(f,P(P({ref:n,presets:[Mke]},l),{},{style:b,className:g}));return i?i(r,P(P({mode:a},l),{},{style:b}),p):p}return null};const _ke=ee.forwardRef(Nke);In.extend(S4);var jke=function(t,n){return t?typeof n=="function"?n(In(t)):In(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},Fke=function(t,n){var r=t.text,a=t.mode,o=t.format,i=t.label,l=t.light,c=t.render,u=t.renderFormItem,d=t.plain,f=t.showTime,m=t.fieldProps,g=t.picker,h=t.bordered,b=t.lightLabel,p=An(),S=s.useState(!1),C=ce(S,2),x=C[0],w=C[1];if(a==="read"){var $=jke(r,m.format||o);return c?c(r,P({mode:a},m),N.jsx(N.Fragment,{children:$})):N.jsx(N.Fragment,{children:$})}if(a==="edit"||a==="update"){var E,R=m.disabled,I=m.value,O=m.placeholder,T=O===void 0?p.getMessage("tableForm.selectPlaceholder","请选择"):O,_=Bg(I);return l?E=N.jsx(fl,{label:i,onClick:function(){var A;m==null||(A=m.onOpenChange)===null||A===void 0||A.call(m,!0),w(!0)},style:_?{paddingInlineEnd:0}:void 0,disabled:R,value:_||x?N.jsx(si,P(P(P({picker:g,showTime:f,format:o,ref:n},m),{},{value:_,onOpenChange:function(A){var j;w(A),m==null||(j=m.onOpenChange)===null||j===void 0||j.call(m,A)}},Do(!1)),{},{open:x})):void 0,allowClear:!1,downIcon:_||x?!1:void 0,bordered:h,ref:b}):E=N.jsx(si,P(P(P({picker:g,showTime:f,format:o,placeholder:T},Do(d===void 0?!0:!d)),{},{ref:n},m),{},{value:_})),u?u(r,P({mode:a},m),E):E}return null};const pd=ee.forwardRef(Fke);var Dke=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.placeholder,l=t.renderFormItem,c=t.fieldProps,u=An(),d=i||u.getMessage("tableForm.inputPlaceholder","请输入"),f=s.useCallback(function(S){var C=S??void 0;return!c.stringMode&&typeof C=="string"&&(C=Number(C)),typeof C=="number"&&!Js(C)&&!Js(c.precision)&&(C=Number(C.toFixed(c.precision))),C},[c]);if(a==="read"){var m,g={};c!=null&&c.precision&&(g={minimumFractionDigits:Number(c.precision),maximumFractionDigits:Number(c.precision)});var h=new Intl.NumberFormat(void 0,P(P({},g),(c==null?void 0:c.intlProps)||{})).format(Number(r)),b=c!=null&&c.stringMode?N.jsx("span",{children:r}):N.jsx("span",{ref:n,children:(c==null||(m=c.formatter)===null||m===void 0?void 0:m.call(c,h))||h});return o?o(r,P({mode:a},c),b):b}if(a==="edit"||a==="update"){var p=N.jsx(cl,P(P({ref:n,min:0,placeholder:d},nn(c,["onChange","onBlur"])),{},{onChange:function(C){var x;return c==null||(x=c.onChange)===null||x===void 0?void 0:x.call(c,f(C))},onBlur:function(C){var x;return c==null||(x=c.onBlur)===null||x===void 0?void 0:x.call(c,f(C.target.value))}}));return l?l(r,P({mode:a},c),p):p}return null};const kke=ee.forwardRef(Dke);var Ake=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.placeholder,l=t.renderFormItem,c=t.fieldProps,u=t.separator,d=u===void 0?"~":u,f=t.separatorWidth,m=f===void 0?30:f,g=c.value,h=c.defaultValue,b=c.onChange,p=c.id,S=An(),C=uo.useToken(),x=C.token,w=Nt(function(){return h},{value:g,onChange:b}),$=ce(w,2),E=$[0],R=$[1],I=s.useRef(E);if(a==="read"){var O=function(K){var W,V=new Intl.NumberFormat(void 0,P({minimumSignificantDigits:2},(c==null?void 0:c.intlProps)||{})).format(Number(K));return(c==null||(W=c.formatter)===null||W===void 0?void 0:W.call(c,V))||V},T=N.jsxs("span",{ref:n,children:[O(r[0])," ",d," ",O(r[1])]});return o?o(r,P({mode:a},c),T):T}if(a==="edit"||a==="update"){var _=function(){if(Array.isArray(I.current)){var K=ce(I.current,2),W=K[0],V=K[1];typeof W=="number"&&typeof V=="number"&&W>V?R([V,W]):W===void 0&&V===void 0&&R(void 0)}},k=function(K,W){var V=ke(E||[]);V[K]=W===null?void 0:W,I.current=V,R(V)},A=(c==null?void 0:c.placeholder)||i||[S.getMessage("tableForm.inputPlaceholder","请输入"),S.getMessage("tableForm.inputPlaceholder","请输入")],j=function(K){return Array.isArray(A)?A[K]:A},D=qn.Compact||Vr.Group,F=qn.Compact?{}:{compact:!0},L=N.jsxs(D,P(P({},F),{},{onBlur:_,children:[N.jsx(cl,P(P({},c),{},{placeholder:j(0),id:p??"".concat(p,"-0"),style:{width:"calc((100% - ".concat(m,"px) / 2)")},value:E==null?void 0:E[0],defaultValue:h==null?void 0:h[0],onChange:function(K){return k(0,K)}})),N.jsx(Vr,{style:{width:m,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:x==null?void 0:x.colorBgContainer},placeholder:d,disabled:!0}),N.jsx(cl,P(P({},c),{},{placeholder:j(1),id:p??"".concat(p,"-1"),style:{width:"calc((100% - ".concat(m,"px) / 2)"),borderInlineStart:0},value:E==null?void 0:E[1],defaultValue:h==null?void 0:h[1],onChange:function(K){return k(1,K)}}))]}));return l?l(r,P({mode:a},c),L):L}return null};const Lke=ee.forwardRef(Ake);var lb={exports:{}},Bke=lb.exports,gL;function zke(){return gL||(gL=1,(function(e,t){(function(n,r){e.exports=r()})(Bke,(function(){return function(n,r,a){n=n||{};var o=r.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,d,f,m){return o.fromToBase(u,d,f,m)}a.en.relativeTime=i,o.fromToBase=function(u,d,f,m,g){for(var h,b,p,S=f.$locale().relativeTime||i,C=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],x=C.length,w=0;w0,E<=$.r||!$.r){E<=1&&w>0&&($=C[w-1]);var R=S[$.l];g&&(E=g(""+E)),b=typeof R=="string"?R.replace("%d",E):R(E,d,$.l,p);break}}if(d)return b;var I=p?S.future:S.past;return typeof I=="function"?I(b):I.replace("%s",b)},o.to=function(u,d){return l(u,d,this,!0)},o.from=function(u,d){return l(u,d,this)};var c=function(u){return u.$u?a.utc():a()};o.toNow=function(u){return this.to(c(this),u)},o.fromNow=function(u){return this.from(c(this),u)}}}))})(lb)),lb.exports}var Hke=zke();const Vke=rn(Hke);In.extend(Vke);var Wke=function(t,n){var r=t.text,a=t.mode,o=t.plain,i=t.render,l=t.renderFormItem,c=t.format,u=t.fieldProps,d=An();if(a==="read"){var f=N.jsx(Bn,{title:In(r).format((u==null?void 0:u.format)||c||"YYYY-MM-DD HH:mm:ss"),children:In(r).fromNow()});return i?i(r,P({mode:a},u),N.jsx(N.Fragment,{children:f})):N.jsx(N.Fragment,{children:f})}if(a==="edit"||a==="update"){var m=d.getMessage("tableForm.selectPlaceholder","请选择"),g=Bg(u.value),h=N.jsx(si,P(P(P({ref:n,placeholder:m,showTime:!0},Do(o===void 0?!0:!o)),u),{},{value:g}));return l?l(r,P({mode:a},u),h):h}return null};const Kke=ee.forwardRef(Wke);var LY=ee.forwardRef(function(e,t){var n=e.text,r=e.mode,a=e.render,o=e.renderFormItem,i=e.fieldProps,l=e.placeholder,c=e.width,u=An(),d=l||u.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=N.jsx(dq,P({ref:t,width:c||32,src:n},i));return a?a(n,P({mode:r},i),f):f}if(r==="edit"||r==="update"){var m=N.jsx(Vr,P({ref:t,placeholder:d},i));return o?o(n,P({mode:r},i),m):m}return null}),qke=function(t,n){var r=t.border,a=r===void 0?!1:r,o=t.children,i=s.useContext(Rt.ConfigContext),l=i.getPrefixCls,c=l("pro-field-index-column"),u=En("IndexColumn",function(){return z({},".".concat(c),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),d=u.wrapSSR,f=u.hashId;return d(N.jsx("div",{ref:n,className:oe(c,f,z(z({},"".concat(c,"-border"),a),"top-three",o>3)),children:o}))};const pL=ee.forwardRef(qke);var Uke=["contentRender","numberFormatOptions","numberPopoverRender","open"],Gke=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],BY=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),Yke={style:"currency",currency:"USD"},Xke={style:"currency",currency:"RUB"},Qke={style:"currency",currency:"RSD"},Jke={style:"currency",currency:"MYR"},Zke={style:"currency",currency:"BRL"},eAe={default:BY,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":Yke,"ru-RU":Xke,"ms-MY":Jke,"sr-RS":Qke,"pt-BR":Zke},hL=function(t,n,r,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",i=n==null?void 0:n.toString().replaceAll(",","");if(typeof i=="string"){var l=Number(i);if(Number.isNaN(l))return i;i=l}if(!i&&i!==0)return"";var c=!1;try{c=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var u=new Intl.NumberFormat(c&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",P(P({},eAe[t||"zh-Hans-CN"]||BY),{},{maximumFractionDigits:r},a)),d=u.format(i),f=function(S){var C=S.match(/\d+/);if(C){var x=C[0];return S.slice(S.indexOf(x))}else return S},m=f(d),g=d||"",h=ce(g,1),b=h[0];return["+","-"].includes(b)?"".concat(o||"").concat(b).concat(m):"".concat(o||"").concat(m)}catch{return i}},qE=2,tAe=ee.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,a=Ue(e,Uke),o=Nt(function(){return a.defaultValue},{value:a.value,onChange:a.onChange}),i=ce(o,2),l=i[0],c=i[1],u=n==null?void 0:n(P(P({},a),{},{value:l})),d=Cu(u?r:!1);return N.jsx(Vi,P(P({placement:"topLeft"},d),{},{trigger:["focus","click"],content:u,getPopupContainer:function(m){return(m==null?void 0:m.parentElement)||document.body},children:N.jsx(cl,P(P({ref:t},a),{},{value:l,onChange:c}))}))}),nAe=function(t,n){var r,a=t.text,o=t.mode,i=t.render,l=t.renderFormItem,c=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var u=t.placeholder,d=t.locale,f=t.customSymbol,m=f===void 0?c.customSymbol:f,g=t.numberFormatOptions,h=g===void 0?c==null?void 0:c.numberFormatOptions:g,b=t.numberPopoverRender,p=b===void 0?(c==null?void 0:c.numberPopoverRender)||!1:b,S=Ue(t,Gke),C=(r=c==null?void 0:c.precision)!==null&&r!==void 0?r:qE,x=An();d&&ru[d]&&(x=ru[d]);var w=u||x.getMessage("tableForm.inputPlaceholder","请输入"),$=s.useMemo(function(){if(m)return m;if(!(S.moneySymbol===!1||c.moneySymbol===!1))return x.getMessage("moneySymbol","¥")},[m,c.moneySymbol,x,S.moneySymbol]),E=s.useCallback(function(O){var T=new RegExp("\\B(?=(\\d{".concat(3+Math.max(C-qE,0),"})+(?!\\d))"),"g"),_=String(O).split("."),k=ce(_,2),A=k[0],j=k[1],D=A.replace(T,","),F="";return j&&C>0&&(F=".".concat(j.slice(0,C===void 0?qE:C))),"".concat(D).concat(F)},[C]);if(o==="read"){var R=N.jsx("span",{ref:n,children:hL(d||!1,a,C,h??c.numberFormatOptions,$)});return i?i(a,P({mode:o},c),R):R}if(o==="edit"||o==="update"){var I=N.jsx(tAe,P(P({contentRender:function(T){if(p===!1||!T.value)return null;var _=hL($||d||!1,"".concat(E(T.value)),C,P(P({},h),{},{notation:"compact"}),$);return typeof p=="function"?p==null?void 0:p(T,_):_},ref:n,precision:C,formatter:function(T){return T&&$?"".concat($," ").concat(E(T)):T==null?void 0:T.toString()},parser:function(T){return $&&T?T.replace(new RegExp("\\".concat($,"\\s?|(,*)"),"g"),""):T},placeholder:w},nn(c,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:c.onBlur?function(O){var T,_=O.target.value;$&&_&&(_=_.replace(new RegExp("\\".concat($,"\\s?|(,*)"),"g"),"")),(T=c.onBlur)===null||T===void 0||T.call(c,_)}:void 0}));return l?l(a,P({mode:o},c),I):I}return null};const zY=ee.forwardRef(nAe);var bL=function(t){return t.map(function(n,r){var a;return ee.isValidElement(n)?ee.cloneElement(n,P(P({key:r},n==null?void 0:n.props),{},{style:P({},n==null||(a=n.props)===null||a===void 0?void 0:a.style)})):N.jsx(ee.Fragment,{children:n},r)})},rAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.fieldProps,l=s.useContext(Rt.ConfigContext),c=l.getPrefixCls,u=c("pro-field-option"),d=uo.useToken(),f=d.token;if(s.useImperativeHandle(n,function(){return{}}),o){var m=o(r,P({mode:a},i),N.jsx(N.Fragment,{}));return!m||(m==null?void 0:m.length)<1||!Array.isArray(m)?null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:bL(m)})}return!r||!Array.isArray(r)?ee.isValidElement(r)?r:null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:u,children:bL(r)})};const aAe=ee.forwardRef(rAe);var oAe=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],iAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps;t.proFieldKey;var c=Ue(t,oAe),u=An(),d=Nt(function(){return c.open||c.visible||!1},{value:c.open||c.visible,onChange:c.onOpenChange||c.onVisible}),f=ce(d,2),m=f[0],g=f[1];if(a==="read"){var h=N.jsx(N.Fragment,{children:"-"});return r&&(h=N.jsxs(qn,{children:[N.jsx("span",{ref:n,children:m?r:"********"}),N.jsx("a",{onClick:function(){return g(!m)},children:m?N.jsx(K4,{}):N.jsx(fq,{})})]})),o?o(r,P({mode:a},l),h):h}if(a==="edit"||a==="update"){var b=N.jsx(Vr.Password,P({placeholder:u.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},l));return i?i(r,P({mode:a},l),b):b}return null};const lAe=ee.forwardRef(iAe);function sAe(e){return e===0?null:e>0?"+":"-"}function cAe(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function uAe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}function xy(e){return it(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var dAe=function(t,n){var r=t.text,a=t.prefix,o=t.precision,i=t.suffix,l=i===void 0?"%":i,c=t.mode,u=t.showColor,d=u===void 0?!1:u,f=t.render,m=t.renderFormItem,g=t.fieldProps,h=t.placeholder,b=t.showSymbol,p=An(),S=h||p.getMessage("tableForm.inputPlaceholder","请输入"),C=s.useMemo(function(){return typeof r=="string"&&r.includes("%")?xy(r.replace("%","")):xy(r)},[r]),x=s.useMemo(function(){return typeof b=="function"?b==null?void 0:b(r):b},[b,r]);if(c==="read"){var w=d?{color:cAe(C)}:{},$=N.jsxs("span",{style:w,ref:n,children:[a&&N.jsx("span",{children:a}),x&&N.jsxs(s.Fragment,{children:[sAe(C)," "]}),uAe(Math.abs(C),o),l&&l]});return f?f(r,P(P({mode:c},g),{},{prefix:a,precision:o,showSymbol:x,suffix:l}),$):$}if(c==="edit"||c==="update"){var E=N.jsx(cl,P({ref:n,formatter:function(I){return I&&a?"".concat(a," ").concat(I).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):I},parser:function(I){return I?I.replace(/.*\s|,/g,""):""},placeholder:S},g));return m?m(r,P({mode:c},g),E):E}return null};const HY=ee.forwardRef(dAe);function fAe(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var vAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.plain,l=t.renderFormItem,c=t.fieldProps,u=t.placeholder,d=An(),f=u||d.getMessage("tableForm.inputPlaceholder","请输入"),m=s.useMemo(function(){return typeof r=="string"&&r.includes("%")?xy(r.replace("%","")):xy(r)},[r]);if(a==="read"){var g=N.jsx(Eq,P({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:m,steps:i?10:void 0,status:fAe(m)},c));return o?o(m,P({mode:a},c),g):g}if(a==="edit"||a==="update"){var h=N.jsx(cl,P({ref:n,placeholder:f},c));return l?l(r,P({mode:a},c),h):h}return null};const VY=ee.forwardRef(vAe);var mAe=["radioType","renderFormItem","mode","render"],gAe=function(t,n){var r,a,o=t.radioType,i=t.renderFormItem,l=t.mode,c=t.render,u=Ue(t,mAe),d=s.useContext(Rt.ConfigContext),f=d.getPrefixCls,m=f("pro-field-radio"),g=zf(u),h=ce(g,3),b=h[0],p=h[1],S=h[2],C=s.useRef(),x=(r=Fn.Item)===null||r===void 0||(a=r.useStatus)===null||a===void 0?void 0:a.call(r);s.useImperativeHandle(n,function(){return P(P({},C.current||{}),{},{fetchData:function(j){return S(j)}})},[S]);var w=En("FieldRadioRadio",function(A){return z(z(z({},".".concat(m,"-error"),{span:{color:A.colorError}}),".".concat(m,"-warning"),{span:{color:A.colorWarning}}),".".concat(m,"-vertical"),z({},"".concat(A.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),$=w.wrapSSR,E=w.hashId;if(b)return N.jsx(vi,{size:"small"});if(l==="read"){var R=p!=null&&p.length?p==null?void 0:p.reduce(function(A,j){var D;return P(P({},A),{},z({},(D=j.value)!==null&&D!==void 0?D:"",j.label))},{}):void 0,I=N.jsx(N.Fragment,{children:Af(u.text,Ql(u.valueEnum||R))});if(c){var O;return(O=c(u.text,P({mode:l},u.fieldProps),I))!==null&&O!==void 0?O:null}return I}if(l==="edit"){var T,_=$(N.jsx(Rf.Group,P(P({ref:C,optionType:o},u.fieldProps),{},{className:oe((T=u.fieldProps)===null||T===void 0?void 0:T.className,z(z({},"".concat(m,"-error"),(x==null?void 0:x.status)==="error"),"".concat(m,"-warning"),(x==null?void 0:x.status)==="warning"),E,"".concat(m,"-").concat(u.fieldProps.layout||"horizontal")),options:p})));if(i){var k;return(k=i(u.text,P(P({mode:l},u.fieldProps),{},{options:p,loading:b}),_))!==null&&k!==void 0?k:null}return _}return null};const yL=ee.forwardRef(gAe);var pAe=function(t,n){var r=t.text,a=t.mode,o=t.light,i=t.label,l=t.format,c=t.render,u=t.picker,d=t.renderFormItem,f=t.plain,m=t.showTime,g=t.lightLabel,h=t.bordered,b=t.fieldProps,p=An(),S=Array.isArray(r)?r:[],C=ce(S,2),x=C[0],w=C[1],$=ee.useState(!1),E=ce($,2),R=E[0],I=E[1],O=s.useCallback(function(L){if(typeof(b==null?void 0:b.format)=="function"){var B;return b==null||(B=b.format)===null||B===void 0?void 0:B.call(b,L)}return(b==null?void 0:b.format)||l||"YYYY-MM-DD"},[b,l]),T=x?In(x).format(O(In(x))):"",_=w?In(w).format(O(In(w))):"";if(a==="read"){var k=N.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[N.jsx("div",{children:T||"-"}),N.jsx("div",{children:_||"-"})]});return c?c(r,P({mode:a},b),N.jsx("span",{children:k})):k}if(a==="edit"||a==="update"){var A=Bg(b.value),j,D=function(B){var K;b==null||(K=b.onChange)===null||K===void 0||K.call(b,B),B||I(!1)};if(o){var F;j=N.jsx(fl,{label:i,onClick:function(){var B;b==null||(B=b.onOpenChange)===null||B===void 0||B.call(b,!0),I(!0)},style:A?{paddingInlineEnd:0}:void 0,disabled:b.disabled,value:A||R?N.jsx(si.RangePicker,P(P(P({picker:u,showTime:m,format:l},Do(!1)),b),{},{placeholder:(F=b.placeholder)!==null&&F!==void 0?F:[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")],value:A,onOpenChange:function(B){var K;A&&I(B),b==null||(K=b.onOpenChange)===null||K===void 0||K.call(b,B)},onChange:D})):null,allowClear:!1,bordered:h,ref:g,downIcon:A||R?!1:void 0})}else j=N.jsx(si.RangePicker,P(P(P({ref:n,format:l,showTime:m,placeholder:[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]},Do(f===void 0?!0:!f)),b),{},{value:A}));return d?d(r,P({mode:a},b),j):j}return null};const hd=ee.forwardRef(pAe);var hAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps;if(a==="read"){var c=N.jsx(O_,P(P({allowHalf:!0,disabled:!0,ref:n},l),{},{value:r}));return o?o(r,P({mode:a},l),N.jsx(N.Fragment,{children:c})):c}if(a==="edit"||a==="update"){var u=N.jsx(O_,P({allowHalf:!0,ref:n},l));return i?i(r,P({mode:a},l),u):u}return null};const bAe=ee.forwardRef(hAe);function yAe(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var a=Math.floor(t/(3600*24)),o=Math.floor(t/3600%24),i=Math.floor(t/60%60),l=Math.floor(t%60);return n="".concat(l,"秒"),i>0&&(n="".concat(i,"分钟").concat(n)),o>0&&(n="".concat(o,"小时").concat(n)),a>0&&(n="".concat(a,"天").concat(n)),r&&(n+="前"),n}var CAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=An(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入");if(a==="read"){var f=yAe(Number(r)),m=N.jsx("span",{ref:n,children:f});return o?o(r,P({mode:a},l),m):m}if(a==="edit"||a==="update"){var g=N.jsx(cl,P({ref:n,min:0,style:{width:"100%"},placeholder:d},l));return i?i(r,P({mode:a},l),g):g}return null};const SAe=ee.forwardRef(CAe);var xAe=["mode","render","renderFormItem","fieldProps","emptyText"],wAe=function(t,n){var r=t.mode,a=t.render,o=t.renderFormItem,i=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=Ue(t,xAe),d=s.useRef(),f=zf(t),m=ce(f,3),g=m[0],h=m[1],b=m[2];if(s.useImperativeHandle(n,function(){return P(P({},d.current||{}),{},{fetchData:function($){return b($)}})},[b]),g)return N.jsx(vi,{size:"small"});if(r==="read"){var p=h!=null&&h.length?h==null?void 0:h.reduce(function(w,$){var E;return P(P({},w),{},z({},(E=$.value)!==null&&E!==void 0?E:"",$.label))},{}):void 0,S=N.jsx(N.Fragment,{children:Af(u.text,Ql(u.valueEnum||p))});if(a){var C;return(C=a(u.text,P({mode:r},i),N.jsx(N.Fragment,{children:S})))!==null&&C!==void 0?C:c}return S}if(r==="edit"||r==="update"){var x=N.jsx(CK,P(P({ref:d},nn(i||{},["allowClear"])),{},{options:h}));return o?o(u.text,P(P({mode:r},i),{},{options:h,loading:g}),x):x}return null};const $Ae=ee.forwardRef(wAe);var EAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps;if(a==="read"){var c=r;return o?o(r,P({mode:a},l),N.jsx(N.Fragment,{children:c})):N.jsx(N.Fragment,{children:c})}if(a==="edit"||a==="update"){var u=N.jsx(kK,P(P({ref:n},l),{},{style:P({minWidth:120},l==null?void 0:l.style)}));return i?i(r,P({mode:a},l),u):u}return null};const PAe=ee.forwardRef(EAe);var OAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.light,l=t.label,c=t.renderFormItem,u=t.fieldProps,d=An(),f=s.useMemo(function(){var p,S;return r==null||"".concat(r).length<1?"-":r?(p=u==null?void 0:u.checkedChildren)!==null&&p!==void 0?p:d.getMessage("switch.open","打开"):(S=u==null?void 0:u.unCheckedChildren)!==null&&S!==void 0?S:d.getMessage("switch.close","关闭")},[u==null?void 0:u.checkedChildren,u==null?void 0:u.unCheckedChildren,r]);if(a==="read")return o?o(r,P({mode:a},u),N.jsx(N.Fragment,{children:f})):f??"-";if(a==="edit"||a==="update"){var m,g=N.jsx(X4,P(P({ref:n,size:i?"small":void 0},nn(u,["value"])),{},{checked:(m=u==null?void 0:u.checked)!==null&&m!==void 0?m:u==null?void 0:u.value}));if(i){var h=u.disabled,b=u.bordered;return N.jsx(fl,{label:l,disabled:h,bordered:b,downIcon:!1,value:N.jsx("div",{style:{paddingLeft:8},children:g}),allowClear:!1})}return c?c(r,P({mode:a},u),g):g}return null};const IAe=ee.forwardRef(OAe);var RAe=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=t.emptyText,u=c===void 0?"-":c,d=l||{},f=d.autoFocus,m=d.prefix,g=m===void 0?"":m,h=d.suffix,b=h===void 0?"":h,p=An(),S=s.useRef();if(s.useImperativeHandle(n,function(){return S.current},[]),s.useEffect(function(){if(f){var E;(E=S.current)===null||E===void 0||E.focus()}},[f]),a==="read"){var C=N.jsxs(N.Fragment,{children:[g,r??u,b]});if(o){var x;return(x=o(r,P({mode:a},l),C))!==null&&x!==void 0?x:u}return C}if(a==="edit"||a==="update"){var w=p.getMessage("tableForm.inputPlaceholder","请输入"),$=N.jsx(Vr,P({ref:S,placeholder:w,allowClear:!0},l));return i?i(r,P({mode:a},l),$):$}return null};const MAe=ee.forwardRef(RAe);var TAe=function(t,n){var r=t.text,a=t.fieldProps,o=s.useContext(Rt.ConfigContext),i=o.getPrefixCls,l=i("pro-field-readonly"),c="".concat(l,"-textarea"),u=En("TextArea",function(){return z({},".".concat(c),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),d=u.wrapSSR,f=u.hashId;return d(N.jsx("span",P(P({ref:n,className:oe(f,l,c)},nn(a,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const NAe=ee.forwardRef(TAe);var _Ae=function(t,n){var r=t.text,a=t.mode,o=t.render,i=t.renderFormItem,l=t.fieldProps,c=An();if(a==="read"){var u=N.jsx(NAe,P(P({},t),{},{ref:n}));return o?o(r,P({mode:a},nn(l,["showCount"])),u):u}if(a==="edit"||a==="update"){var d=N.jsx(Vr.TextArea,P({ref:n,rows:3,onKeyPress:function(m){m.key==="Enter"&&m.stopPropagation()},placeholder:c.getMessage("tableForm.inputPlaceholder","请输入")},l));return i?i(r,P({mode:a},l),d):d}return null};const jAe=ee.forwardRef(_Ae);var FAe=function(t,n){var r=t.text,a=t.mode,o=t.light,i=t.label,l=t.format,c=t.render,u=t.renderFormItem,d=t.plain,f=t.fieldProps,m=t.lightLabel,g=s.useState(!1),h=ce(g,2),b=h[0],p=h[1],S=An(),C=(f==null?void 0:f.format)||l||"HH:mm:ss",x=In.isDayjs(r)||typeof r=="number";if(a==="read"){var w=N.jsx("span",{ref:n,children:r?In(r,x?void 0:C).format(C):"-"});return c?c(r,P({mode:a},f),N.jsx("span",{children:w})):w}if(a==="edit"||a==="update"){var $,E=f.disabled,R=f.value,I=Bg(R,C);if(o){var O;$=N.jsx(fl,{onClick:function(){var _;f==null||(_=f.onOpenChange)===null||_===void 0||_.call(f,!0),p(!0)},style:I?{paddingInlineEnd:0}:void 0,label:i,disabled:E,value:I||b?N.jsx(tu,P(P(P({},Do(!1)),{},{format:l,ref:n},f),{},{placeholder:(O=f.placeholder)!==null&&O!==void 0?O:S.getMessage("tableForm.selectPlaceholder","请选择"),value:I,onOpenChange:function(_){var k;p(_),f==null||(k=f.onOpenChange)===null||k===void 0||k.call(f,_)},open:b})):null,downIcon:I||b?!1:void 0,allowClear:!1,ref:m})}else $=N.jsx(si.TimePicker,P(P(P({ref:n,format:l},Do(d===void 0?!0:!d)),f),{},{value:I}));return u?u(r,P({mode:a},f),$):$}return null},DAe=function(t,n){var r=t.text,a=t.light,o=t.label,i=t.mode,l=t.lightLabel,c=t.format,u=t.render,d=t.renderFormItem,f=t.plain,m=t.fieldProps,g=An(),h=s.useState(!1),b=ce(h,2),p=b[0],S=b[1],C=(m==null?void 0:m.format)||c||"HH:mm:ss",x=Array.isArray(r)?r:[],w=ce(x,2),$=w[0],E=w[1],R=In.isDayjs($)||typeof $=="number",I=In.isDayjs(E)||typeof E=="number",O=$?In($,R?void 0:C).format(C):"",T=E?In(E,I?void 0:C).format(C):"";if(i==="read"){var _=N.jsxs("div",{ref:n,children:[N.jsx("div",{children:O||"-"}),N.jsx("div",{children:T||"-"})]});return u?u(r,P({mode:i},m),N.jsx("span",{children:_})):_}if(i==="edit"||i==="update"){var k=Bg(m.value,C),A;if(a){var j=m.disabled,D=m.placeholder,F=D===void 0?[g.getMessage("tableForm.selectPlaceholder","请选择"),g.getMessage("tableForm.selectPlaceholder","请选择")]:D;A=N.jsx(fl,{onClick:function(){var B;m==null||(B=m.onOpenChange)===null||B===void 0||B.call(m,!0),S(!0)},style:k?{paddingInlineEnd:0}:void 0,label:o,disabled:j,placeholder:F,value:k||p?N.jsx(tu.RangePicker,P(P(P({},Do(!1)),{},{format:c,ref:n},m),{},{placeholder:F,value:k,onOpenChange:function(B){var K;S(B),m==null||(K=m.onOpenChange)===null||K===void 0||K.call(m,B)},open:p})):null,downIcon:k||p?!1:void 0,allowClear:!1,ref:l})}else A=N.jsx(tu.RangePicker,P(P(P({ref:n,format:c},Do(f===void 0?!0:!f)),m),{},{value:k}));return d?d(r,P({mode:i},m),A):A}return null},kAe=ee.forwardRef(DAe);const AAe=ee.forwardRef(FAe);var LAe=["radioType","renderFormItem","mode","light","label","render"],BAe=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],zAe=function(t,n){t.radioType;var r=t.renderFormItem,a=t.mode,o=t.light,i=t.label,l=t.render,c=Ue(t,LAe),u=s.useContext(Rt.ConfigContext),d=u.getPrefixCls,f=d("pro-field-tree-select"),m=s.useRef(null),g=s.useState(!1),h=ce(g,2),b=h[0],p=h[1],S=c.fieldProps,C=S.onSearch,x=S.onClear,w=S.onChange,$=S.onBlur,E=S.showSearch,R=S.autoClearSearchValue;S.treeData;var I=S.fetchDataOnSearch,O=S.searchValue,T=Ue(S,BAe),_=An(),k=zf(P(P({},c),{},{defaultKeyWords:O})),A=ce(k,3),j=A[0],D=A[1],F=A[2],L=Nt(void 0,{onChange:C,value:O}),B=ce(L,2),K=B[0],W=B[1];s.useImperativeHandle(n,function(){return P(P({},m.current||{}),{},{fetchData:function(ue){return F(ue)}})});var V=s.useMemo(function(){if(a==="read"){var fe=(T==null?void 0:T.fieldNames)||{},ue=fe.value,de=ue===void 0?"value":ue,ie=fe.label,se=ie===void 0?"label":ie,ve=fe.children,he=ve===void 0?"children":ve,Ce=new Map,pe=function Se(ge){if(!(ge!=null&&ge.length))return Ce;for(var ye=ge.length,xe=0;xe4&&(g+=7),m.add(g,n));return h.diff(b,"week")+1},l.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var c=l.startOf;l.startOf=function(u,d){var f=this.$utils(),m=!!f.u(d)||d;return f.p(u)==="isoweek"?m?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(u,d)}}}))})(sb)),sb.exports}var KAe=WAe();const qAe=rn(KAe);var cb={exports:{}},UAe=cb.exports,SL;function GAe(){return SL||(SL=1,(function(e,t){(function(n,r){e.exports=r()})(UAe,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,a,o){var i=a.prototype,l=i.format;o.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(f,m){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(g,h,b){var p=b&&b.toUpperCase();return h||m[b]||n[b]||m[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,C,x){return C||x.slice(1)}))}))})(c,u===void 0?{}:u);return l.call(this,d)}}}))})(cb)),cb.exports}var YAe=GAe();const XAe=rn(YAe);var QAe=["fieldProps"],JAe=["fieldProps"],ZAe=["fieldProps"],eLe=["fieldProps"],tLe=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],nLe=["placeholder"];In.extend(UV);In.extend(GV);In.extend(qAe);In.extend(S4);In.extend(qV);In.extend(XAe);var rLe=function(t,n,r){var a=NG(r.fieldProps);return n.type==="progress"?N.jsx(VY,P(P({},r),{},{text:t,fieldProps:P({status:n.status?n.status:void 0},a)})):n.type==="money"?N.jsx(zY,P(P({locale:n.locale},r),{},{fieldProps:a,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?N.jsx(HY,P(P({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:a,showColor:n.showColor})):n.type==="image"?N.jsx(LY,P(P({},r),{},{text:t,width:n.width})):t},aLe=function(t,n,r,a){var o=r.mode,i=o===void 0?"read":o,l=r.emptyText,c=l===void 0?"-":l;if(c!==!1&&i==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var u=r.fieldProps,d=r.render;return d?d(t,P({mode:i},u),N.jsx(N.Fragment,{children:c})):N.jsx(N.Fragment,{children:c})}if(delete r.emptyText,it(n)==="object")return rLe(t,n,r);var f=a&&a[n];if(f){if(delete r.ref,i==="read"){var m;return(m=f.render)===null||m===void 0?void 0:m.call(f,t,P(P({text:t},r),{},{mode:i||"read"}),N.jsx(N.Fragment,{children:t}))}if(i==="update"||i==="edit"){var g;return(g=f.renderFormItem)===null||g===void 0?void 0:g.call(f,t,P({text:t},r),N.jsx(N.Fragment,{children:t}))}}if(n==="money")return N.jsx(zY,P(P({},r),{},{text:t}));if(n==="date")return N.jsx(ro,{isLight:r.light,children:N.jsx(pd,P({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return N.jsx(ro,{isLight:r.light,children:N.jsx(pd,P({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var h=r.fieldProps,b=Ue(r,QAe);return N.jsx(ro,{isLight:r.light,children:N.jsx(hd,P({text:t,format:"YYYY-W",showTime:!0,fieldProps:P({picker:"week"},h)},b))})}if(n==="dateMonthRange"){var p=r.fieldProps,S=Ue(r,JAe);return N.jsx(ro,{isLight:r.light,children:N.jsx(hd,P({text:t,format:"YYYY-MM",showTime:!0,fieldProps:P({picker:"month"},p)},S))})}if(n==="dateQuarterRange"){var C=r.fieldProps,x=Ue(r,ZAe);return N.jsx(ro,{isLight:r.light,children:N.jsx(hd,P({text:t,format:"YYYY-Q",showTime:!0,fieldProps:P({picker:"quarter"},C)},x))})}if(n==="dateYearRange"){var w=r.fieldProps,$=Ue(r,eLe);return N.jsx(ro,{isLight:r.light,children:N.jsx(hd,P({text:t,format:"YYYY",showTime:!0,fieldProps:P({picker:"year"},w)},$))})}return n==="dateMonth"?N.jsx(ro,{isLight:r.light,children:N.jsx(pd,P({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?N.jsx(ro,{isLight:r.light,children:N.jsx(pd,P({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?N.jsx(ro,{isLight:r.light,children:N.jsx(pd,P({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?N.jsx(hd,P({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?N.jsx(ro,{isLight:r.light,children:N.jsx(pd,P({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?N.jsx(ro,{isLight:r.light,children:N.jsx(hd,P({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?N.jsx(ro,{isLight:r.light,children:N.jsx(AAe,P({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?N.jsx(ro,{isLight:r.light,children:N.jsx(kAe,P({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?N.jsx(Kke,P({text:t},r)):n==="index"?N.jsx(pL,{children:t+1}):n==="indexBorder"?N.jsx(pL,{border:!0,children:t+1}):n==="progress"?N.jsx(VY,P(P({},r),{},{text:t})):n==="percent"?N.jsx(HY,P({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?N.jsx($f,{src:t,size:22,shape:"circle"}):n==="code"?N.jsx(PD,P({text:t},r)):n==="jsonCode"?N.jsx(PD,P({text:t,language:"json"},r)):n==="textarea"?N.jsx(jAe,P({text:t},r)):n==="digit"?N.jsx(kke,P({text:t},r)):n==="digitRange"?N.jsx(Lke,P({text:t},r)):n==="second"?N.jsx(SAe,P({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?N.jsx(ro,{isLight:r.light,children:N.jsx(B_e,P({text:t},r))}):n==="checkbox"?N.jsx(U_e,P({text:t},r)):n==="radio"?N.jsx(yL,P({text:t},r)):n==="radioButton"?N.jsx(yL,P({radioType:"button",text:t},r)):n==="rate"?N.jsx(bAe,P({text:t},r)):n==="slider"?N.jsx(PAe,P({text:t},r)):n==="switch"?N.jsx(IAe,P({text:t},r)):n==="option"?N.jsx(aAe,P({text:t},r)):n==="password"?N.jsx(lAe,P({text:t},r)):n==="image"?N.jsx(LY,P({text:t},r)):n==="cascader"?N.jsx(V_e,P({text:t},r)):n==="treeSelect"?N.jsx(HAe,P({text:t},r)):n==="color"?N.jsx(_ke,P({text:t},r)):n==="segmented"?N.jsx($Ae,P({text:t},r)):N.jsx(MAe,P({text:t},r))},oLe=function(t,n){var r,a,o,i,l,c,u=t.text,d=t.valueType,f=d===void 0?"text":d,m=t.mode,g=m===void 0?"read":m,h=t.onChange,b=t.renderFormItem,p=t.value,S=t.readonly,C=t.fieldProps,x=Ue(t,tLe),w=s.useContext(Qs),$=Hn(function(){for(var I,O=arguments.length,T=new Array(O),_=0;_=T)return null;var ye=c,xe=ye.Icon,$e=xe===void 0?yG:xe,He=ye.tooltipText;return N.jsx(Bn,{title:He,children:N.jsx($e,{className:oe("".concat(m,"-action-icon action-down"),A),onClick:gn(ht().mark(function Te(){return ht().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,g.move(x,ge);case 2:case"end":return Fe.stop()}},Te)}))})},"down")},[l,m,A,g,i]),de=s.useMemo(function(){return[le,re,fe,ue].filter(function(ge){return ge!=null})},[le,re,fe,ue]),ie=(b==null?void 0:b(C,g,de,T))||de,se=ie.length>0&&K!=="read"?N.jsx("div",{className:oe("".concat(m,"-action"),z({},"".concat(m,"-action-small"),D==="small"),A),children:ie}):null,ve={name:_.name,field:C,index:x,record:w==null||(r=w.getFieldValue)===null||r===void 0?void 0:r.call(w,[F.listName,$,C.name].filter(function(ge){return ge!==void 0}).flat(1)),fields:p,operation:g,meta:S},he=Bf(),Ce=he.grid,pe=(u==null?void 0:u(ae,ve))||ae,Se=(d==null?void 0:d({listDom:N.jsx("div",{className:oe("".concat(m,"-container"),E,A),style:P({width:Ce?"100%":void 0},R),children:pe}),action:se},ve))||N.jsxs("div",{className:oe("".concat(m,"-item"),A,z(z({},"".concat(m,"-item-default"),f===void 0),"".concat(m,"-item-show-label"),f)),style:{display:"flex",alignItems:"flex-end"},children:[N.jsx("div",{className:oe("".concat(m,"-container"),E,A),style:P({width:Ce?"100%":void 0},R),children:pe}),se]});return N.jsx(mf.Provider,{value:P(P({},C),{},{listName:[F.listName,$,C.name].filter(function(ge){return ge!==void 0}).flat(1)}),children:Se})},mLe=function(t){var n=An(),r=t.creatorButtonProps,a=t.prefixCls,o=t.children,i=t.creatorRecord,l=t.action,c=t.fields,u=t.actionGuard,d=t.max,f=t.fieldExtraRender,m=t.meta,g=t.containerClassName,h=t.containerStyle,b=t.onAfterAdd,p=t.onAfterRemove,S=s.useContext(qr),C=S.hashId,x=s.useRef(new Map),w=s.useState(!1),$=ce(w,2),E=$[0],R=$[1],I=s.useMemo(function(){return c.map(function(j){var D,F;if(!((D=x.current)!==null&&D!==void 0&&D.has(j.key.toString()))){var L;(L=x.current)===null||L===void 0||L.set(j.key.toString(),Km())}var B=(F=x.current)===null||F===void 0?void 0:F.get(j.key.toString());return P(P({},j),{},{uuid:B})})},[c]),O=s.useMemo(function(){var j=P({},l),D=I.length;return u!=null&&u.beforeAddRow?j.add=gn(ht().mark(function F(){var L,B,K,W,V,q=arguments;return ht().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:for(L=q.length,B=new Array(L),K=0;K div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":z(z(z(z({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function jLe(e){return En("ProFormGroup",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[_Le(n)]})}var UY=ee.forwardRef(function(e,t){var n=ee.useContext(Zl),r=n.groupProps,a=P(P({},r),e),o=a.children,i=a.collapsible,l=a.defaultCollapsed,c=a.style,u=a.labelLayout,d=a.title,f=d===void 0?e.label:d,m=a.tooltip,g=a.align,h=g===void 0?"start":g,b=a.direction,p=a.size,S=p===void 0?32:p,C=a.titleStyle,x=a.titleRender,w=a.spaceProps,$=a.extra,E=a.autoFocus,R=Nt(function(){return l||!1},{value:e.collapsed,onChange:e.onCollapse}),I=ce(R,2),O=I[0],T=I[1],_=s.useContext(Rt.ConfigContext),k=_.getPrefixCls,A=Bf(e),j=A.ColWrapper,D=A.RowWrapper,F=k("pro-form-group"),L=jLe(F),B=L.wrapSSR,K=L.hashId,W=i&&N.jsx(oi,{style:{marginInlineEnd:8},rotate:O?void 0:90}),V=N.jsx(au,{label:W?N.jsxs("div",{children:[W,f]}):f,tooltip:m}),q=s.useCallback(function(Z){var ne=Z.children;return N.jsx(qn,P(P({},w),{},{className:oe("".concat(F,"-container ").concat(K),w==null?void 0:w.className),size:S,align:h,direction:b,style:P({rowGap:0},w==null?void 0:w.style),children:ne}))},[h,F,b,K,S,w]),U=x?x(V,e):V,G=s.useMemo(function(){var Z=[],ne=ee.Children.toArray(o).map(function(ae,le){var re;return ee.isValidElement(ae)&&ae!==null&&ae!==void 0&&(re=ae.props)!==null&&re!==void 0&&re.hidden?(Z.push(ae),null):le===0&&ee.isValidElement(ae)&&E?ee.cloneElement(ae,P(P({},ae.props),{},{autoFocus:E})):ae});return[N.jsx(D,{Wrapper:q,children:ne},"children"),Z.length>0?N.jsx("div",{style:{display:"none"},children:Z}):null]},[o,D,q,E]),Y=ce(G,2),J=Y[0],Q=Y[1];return B(N.jsx(j,{children:N.jsxs("div",{className:oe(F,K,z({},"".concat(F,"-twoLine"),u==="twoLine")),style:c,ref:t,children:[Q,(f||m||$)&&N.jsx("div",{className:"".concat(F,"-title ").concat(K).trim(),style:C,onClick:function(){T(!O)},children:$?N.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[U,N.jsx("span",{onClick:function(ne){return ne.stopPropagation()},children:$})]}):U}),N.jsx("div",{style:{display:i&&O?"none":void 0},children:J})]})}))});UY.displayName="ProForm-Group";var FLe=function(t){return z({},t.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};function DLe(e){return En("DrawerForm",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[FLe(n)]})}var kLe=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];function GY(e){var t,n,r=e.children,a=e.trigger,o=e.onVisibleChange,i=e.drawerProps,l=e.onFinish,c=e.submitTimeout,u=e.title,d=e.width,f=e.resize,m=e.onOpenChange,g=e.visible,h=e.open,b=Ue(e,kLe);wa(!b.footer||!(i!=null&&i.footer),"DrawerForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var p=ee.useMemo(function(){var se,ve,he,Ce={onResize:function(){},maxWidth:Su()?window.innerWidth*.8:void 0,minWidth:300};return typeof f=="boolean"?f?Ce:{}:Fr({onResize:(se=f==null?void 0:f.onResize)!==null&&se!==void 0?se:Ce.onResize,maxWidth:(ve=f==null?void 0:f.maxWidth)!==null&&ve!==void 0?ve:Ce.maxWidth,minWidth:(he=f==null?void 0:f.minWidth)!==null&&he!==void 0?he:Ce.minWidth})},[f]),S=s.useContext(Rt.ConfigContext),C=S.getPrefixCls("pro-form-drawer"),x=DLe(C),w=x.wrapSSR,$=x.hashId,E=function(ve){return"".concat(C,"-").concat(ve," ").concat($)},R=s.useState([]),I=ce(R,2),O=I[1],T=s.useState(!1),_=ce(T,2),k=_[0],A=_[1],j=s.useState(!1),D=ce(j,2),F=D[0],L=D[1],B=s.useState(d||(f?p==null?void 0:p.minWidth:800)),K=ce(B,2),W=K[0],V=K[1],q=Nt(!!g,{value:h||g,onChange:m||o}),U=ce(q,2),G=U[0],Y=U[1],J=s.useRef(null),Q=s.useCallback(function(se){J.current===null&&se&&O([]),J.current=se},[]),Z=s.useRef(),ne=s.useCallback(function(){var se,ve,he,Ce=(se=(ve=(he=b.formRef)===null||he===void 0?void 0:he.current)!==null&&ve!==void 0?ve:b.form)!==null&&se!==void 0?se:Z.current;Ce&&i!==null&&i!==void 0&&i.destroyOnClose&&Ce.resetFields()},[i==null?void 0:i.destroyOnClose,b.form,b.formRef]);s.useEffect(function(){G&&(h||g)&&(m==null||m(!0),o==null||o(!0)),F&&V(p==null?void 0:p.minWidth)},[g,G,F]),s.useImperativeHandle(b.formRef,function(){return Z.current},[Z.current]);var ae=s.useMemo(function(){return a?ee.cloneElement(a,P(P({key:"trigger"},a.props),{},{onClick:(function(){var se=gn(ht().mark(function he(Ce){var pe,Se;return ht().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:Y(!G),L(!Object.keys(p)),(pe=a.props)===null||pe===void 0||(Se=pe.onClick)===null||Se===void 0||Se.call(pe,Ce);case 3:case"end":return ye.stop()}},he)}));function ve(he){return se.apply(this,arguments)}return ve})()})):null},[Y,a,G,L,F]),le=s.useMemo(function(){var se,ve,he,Ce,pe;return b.submitter===!1?!1:Ds({searchConfig:{submitText:(se=(ve=S.locale)===null||ve===void 0||(ve=ve.Modal)===null||ve===void 0?void 0:ve.okText)!==null&&se!==void 0?se:"确认",resetText:(he=(Ce=S.locale)===null||Ce===void 0||(Ce=Ce.Modal)===null||Ce===void 0?void 0:Ce.cancelText)!==null&&he!==void 0?he:"取消"},resetButtonProps:{preventDefault:!0,disabled:c?k:void 0,onClick:function(ge){var ye;Y(!1),i==null||(ye=i.onClose)===null||ye===void 0||ye.call(i,ge)}}},(pe=b.submitter)!==null&&pe!==void 0?pe:{})},[b.submitter,(t=S.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.okText,(n=S.locale)===null||n===void 0||(n=n.Modal)===null||n===void 0?void 0:n.cancelText,c,k,Y,i]),re=s.useCallback(function(se,ve){return N.jsxs(N.Fragment,{children:[se,J.current&&ve?N.jsx(ee.Fragment,{children:Ua.createPortal(ve,J.current)},"submitter"):ve]})},[]),fe=Hn((function(){var se=gn(ht().mark(function ve(he){var Ce,pe,Se;return ht().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return Ce=l==null?void 0:l(he),c&&Ce instanceof Promise&&(A(!0),pe=setTimeout(function(){return A(!1)},c),Ce.finally(function(){clearTimeout(pe),A(!1)})),ye.next=4,Ce;case 4:return Se=ye.sent,Se&&Y(!1),ye.abrupt("return",Se);case 7:case"end":return ye.stop()}},ve)}));return function(ve){return se.apply(this,arguments)}})()),ue=Cu(G,o),de=s.useCallback(function(se){var ve,he,Ce=(document.body.offsetWidth||1e3)-(se.clientX-document.body.offsetLeft),pe=(ve=p==null?void 0:p.minWidth)!==null&&ve!==void 0?ve:d||800,Se=(he=p==null?void 0:p.maxWidth)!==null&&he!==void 0?he:window.innerWidth*.8;if(CeSe){V(Se);return}V(Ce)},[p==null?void 0:p.maxWidth,p==null?void 0:p.minWidth,d]),ie=s.useCallback(function(){document.removeEventListener("mousemove",de),document.removeEventListener("mouseup",ie)},[de]);return w(N.jsxs(N.Fragment,{children:[N.jsxs(km,P(P(P({title:u,width:W},i),ue),{},{afterOpenChange:function(ve){var he;ve||ne(),i==null||(he=i.afterOpenChange)===null||he===void 0||he.call(i,ve)},onClose:function(ve){var he;c&&k||(Y(!1),i==null||(he=i.onClose)===null||he===void 0||he.call(i,ve))},footer:b.submitter!==!1&&N.jsx("div",{ref:Q,style:{display:"flex",justifyContent:"flex-end"}}),children:[f?N.jsx("div",{className:oe(E("sidebar-dragger"),$,z(z({},E("sidebar-dragger-min-disabled"),W===(p==null?void 0:p.minWidth)),E("sidebar-dragger-max-disabled"),W===(p==null?void 0:p.maxWidth))),onMouseDown:function(ve){var he;p==null||(he=p.onResize)===null||he===void 0||he.call(p),ve.stopPropagation(),ve.preventDefault(),document.addEventListener("mousemove",de),document.addEventListener("mouseup",ie),L(!0)}}):null,N.jsx(N.Fragment,{children:N.jsx(Vf,P(P({formComponentType:"DrawerForm",layout:"vertical"},b),{},{formRef:Z,onInit:function(ve,he){var Ce;b.formRef&&(b.formRef.current=he),b==null||(Ce=b.onInit)===null||Ce===void 0||Ce.call(b,ve,he),Z.current=he},submitter:le,onFinish:(function(){var se=gn(ht().mark(function ve(he){var Ce;return ht().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,fe(he);case 2:return Ce=Se.sent,Se.abrupt("return",Ce);case 4:case"end":return Se.stop()}},ve)}));return function(ve){return se.apply(this,arguments)}})(),contentRender:re,children:r}))})]})),ae]}))}var ALe=function(t){return z({},t.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:t.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:t.marginXS},"&-item":z({whiteSpace:"nowrap"},"".concat(t.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:t.controlHeight,height:t.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":z({},"".concat(t.componentCls,"-collapse-icon"),{backgroundColor:t.colorBgTextHover})})};function LLe(e){return En("LightFilter",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[ALe(n)]})}var BLe=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],zLe=function(t){var n=t.items,r=t.prefixCls,a=t.size,o=a===void 0?"middle":a,i=t.collapse,l=t.collapseLabel,c=t.onValuesChange,u=t.bordered,d=t.values,f=t.footerRender,m=t.placement,g=An(),h="".concat(r,"-light-filter"),b=LLe(h),p=b.wrapSSR,S=b.hashId,C=s.useState(!1),x=ce(C,2),w=x[0],$=x[1],E=s.useState(function(){return P({},d)}),R=ce(E,2),I=R[0],O=R[1];s.useEffect(function(){O(P({},d))},[d]);var T=s.useMemo(function(){var j=[],D=[];return n.forEach(function(F){var L=F.props||{},B=L.secondary;B||i?j.push(F):D.push(F)}),{collapseItems:j,outsideItems:D}},[t.items]),_=T.collapseItems,k=T.outsideItems,A=function(){return l||(i?N.jsx(B6e,{className:"".concat(h,"-collapse-icon ").concat(S).trim()}):N.jsx(fl,{size:o,label:g.getMessage("form.lightFilter.more","更多筛选")}))};return p(N.jsx("div",{className:oe(h,S,"".concat(h,"-").concat(o),z({},"".concat(h,"-effective"),Object.keys(d).some(function(j){return Array.isArray(d[j])?d[j].length>0:d[j]}))),children:N.jsxs("div",{className:"".concat(h,"-container ").concat(S).trim(),children:[k.map(function(j,D){if(!(j!=null&&j.props))return j;var F=j.key,L=(j==null?void 0:j.props)||{},B=L.fieldProps,K=B!=null&&B.placement?B==null?void 0:B.placement:m;return N.jsx("div",{className:"".concat(h,"-item ").concat(S).trim(),children:ee.cloneElement(j,{fieldProps:P(P({},j.props.fieldProps),{},{placement:K}),proFieldProps:P(P({},j.props.proFieldProps),{},{light:!0,label:j.props.label,bordered:u}),bordered:u})},F||D)}),_.length?N.jsx("div",{className:"".concat(h,"-item ").concat(S).trim(),children:N.jsx($G,{padding:24,open:w,onOpenChange:function(D){$(D)},placement:m,label:A(),footerRender:f,footer:{onConfirm:function(){c(P({},I)),$(!1)},onClear:function(){var D={};_.forEach(function(F){var L=F.props.name;D[L]=void 0}),c(D)}},children:_.map(function(j){var D=j.key,F=j.props,L=F.name,B=F.fieldProps,K=P(P({},B),{},{onChange:function(q){return O(P(P({},I),{},z({},L,q!=null&&q.target?q.target.value:q))),!1}});I.hasOwnProperty(L)&&(K[j.props.valuePropName||"value"]=I[L]);var W=B!=null&&B.placement?B==null?void 0:B.placement:m;return N.jsx("div",{className:"".concat(h,"-line ").concat(S).trim(),children:ee.cloneElement(j,{fieldProps:P(P({},K),{},{placement:W})})},D)})})},"more"):null]})}))};function HLe(e){var t=e.size,n=e.collapse,r=e.collapseLabel,a=e.initialValues,o=e.onValuesChange,i=e.form,l=e.placement,c=e.formRef,u=e.bordered;e.ignoreRules;var d=e.footerRender,f=Ue(e,BLe),m=s.useContext(Rt.ConfigContext),g=m.getPrefixCls,h=g("pro-form"),b=s.useState(function(){return P({},a)}),p=ce(b,2),S=p[0],C=p[1],x=s.useRef();return s.useImperativeHandle(c,function(){return x.current},[x.current]),N.jsx(Vf,P(P({size:t,initialValues:a,form:i,contentRender:function($){return N.jsx(zLe,{prefixCls:h,items:$==null?void 0:$.flatMap(function(E){var R;return!E||!(E!=null&&E.type)?E:(E==null||(R=E.type)===null||R===void 0?void 0:R.displayName)==="ProForm-Group"?E.props.children:E}),size:t,bordered:u,collapse:n,collapseLabel:r,placement:l,values:S||{},footerRender:d,onValuesChange:function(R){var I,O,T=P(P({},S),R);C(T),(I=x.current)===null||I===void 0||I.setFieldsValue(T),(O=x.current)===null||O===void 0||O.submit(),o&&o(R,T)}})},formRef:x,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},nn(f,["labelWidth"])),{},{onValuesChange:function($,E){var R;C(E),o==null||o($,E),(R=x.current)===null||R===void 0||R.submit()}}))}var VLe=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function WLe(e){var t,n,r=e.children,a=e.trigger,o=e.onVisibleChange,i=e.onOpenChange,l=e.modalProps,c=e.onFinish,u=e.submitTimeout,d=e.title,f=e.width,m=e.visible,g=e.open,h=Ue(e,VLe);wa(!h.footer||!(l!=null&&l.footer),"ModalForm 是一个 ProForm 的特殊布局,如果想自定义按钮,请使用 submit.render 自定义。");var b=s.useContext(Rt.ConfigContext),p=s.useState([]),S=ce(p,2),C=S[1],x=s.useState(!1),w=ce(x,2),$=w[0],E=w[1],R=Nt(!!m,{value:g||m,onChange:i||o}),I=ce(R,2),O=I[0],T=I[1],_=s.useRef(null),k=s.useCallback(function(W){_.current===null&&W&&C([]),_.current=W},[]),A=s.useRef(),j=s.useCallback(function(){var W,V,q,U=(W=(V=h.form)!==null&&V!==void 0?V:(q=h.formRef)===null||q===void 0?void 0:q.current)!==null&&W!==void 0?W:A.current;U&&l!==null&&l!==void 0&&l.destroyOnClose&&U.resetFields()},[l==null?void 0:l.destroyOnClose,h.form,h.formRef]);s.useImperativeHandle(h.formRef,function(){return A.current},[A.current]),s.useEffect(function(){(g||m)&&(i==null||i(!0),o==null||o(!0))},[m,g]);var D=s.useMemo(function(){return a?ee.cloneElement(a,P(P({key:"trigger"},a.props),{},{onClick:(function(){var W=gn(ht().mark(function q(U){var G,Y;return ht().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:T(!O),(G=a.props)===null||G===void 0||(Y=G.onClick)===null||Y===void 0||Y.call(G,U);case 2:case"end":return Q.stop()}},q)}));function V(q){return W.apply(this,arguments)}return V})()})):null},[T,a,O]),F=s.useMemo(function(){var W,V,q,U,G,Y,J;return h.submitter===!1?!1:Ds({searchConfig:{submitText:(W=(V=l==null?void 0:l.okText)!==null&&V!==void 0?V:(q=b.locale)===null||q===void 0||(q=q.Modal)===null||q===void 0?void 0:q.okText)!==null&&W!==void 0?W:"确认",resetText:(U=(G=l==null?void 0:l.cancelText)!==null&&G!==void 0?G:(Y=b.locale)===null||Y===void 0||(Y=Y.Modal)===null||Y===void 0?void 0:Y.cancelText)!==null&&U!==void 0?U:"取消"},resetButtonProps:{preventDefault:!0,disabled:u?$:void 0,onClick:function(Z){var ne;T(!1),l==null||(ne=l.onCancel)===null||ne===void 0||ne.call(l,Z)}}},(J=h.submitter)!==null&&J!==void 0?J:{})},[(t=b.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.cancelText,(n=b.locale)===null||n===void 0||(n=n.Modal)===null||n===void 0?void 0:n.okText,l,h.submitter,T,$,u]),L=s.useCallback(function(W,V){return N.jsxs(N.Fragment,{children:[W,_.current&&V?N.jsx(ee.Fragment,{children:Ua.createPortal(V,_.current)},"submitter"):V]})},[]),B=s.useCallback((function(){var W=gn(ht().mark(function V(q){var U,G,Y;return ht().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return U=c==null?void 0:c(q),u&&U instanceof Promise&&(E(!0),G=setTimeout(function(){return E(!1)},u),U.finally(function(){clearTimeout(G),E(!1)})),Q.next=4,U;case 4:return Y=Q.sent,Y&&T(!1),Q.abrupt("return",Y);case 7:case"end":return Q.stop()}},V)}));return function(V){return W.apply(this,arguments)}})(),[c,T,u]),K=Cu(O);return N.jsxs(N.Fragment,{children:[N.jsx(Ki,P(P(P({title:d,width:f||800},l),K),{},{onCancel:function(V){var q;u&&$||(T(!1),l==null||(q=l.onCancel)===null||q===void 0||q.call(l,V))},afterClose:function(){var V;j(),O&&T(!1),l==null||(V=l.afterClose)===null||V===void 0||V.call(l)},footer:h.submitter!==!1?N.jsx("div",{ref:k,style:{display:"flex",justifyContent:"flex-end"}}):null,children:N.jsx(Vf,P(P({formComponentType:"ModalForm",layout:"vertical"},h),{},{onInit:function(V,q){var U;h.formRef&&(h.formRef.current=q),h==null||(U=h.onInit)===null||U===void 0||U.call(h,V,q),A.current=q},formRef:A,submitter:F,onFinish:(function(){var W=gn(ht().mark(function V(q){var U;return ht().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.next=2,B(q);case 2:return U=Y.sent,Y.abrupt("return",U);case 4:case"end":return Y.stop()}},V)}));return function(V){return W.apply(this,arguments)}})(),contentRender:L,children:r}))})),D]})}var KLe=function(t,n,r,a){return t?N.jsxs(N.Fragment,{children:[r.getMessage("tableForm.collapsed","展开"),a&&"(".concat(a,")"),N.jsx(Gs,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(t?0:.5,"turn)")}})]}):N.jsxs(N.Fragment,{children:[r.getMessage("tableForm.expand","收起"),N.jsx(Gs,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(t?0:.5,"turn)")}})]})},qLe=function(t){var n=t.setCollapsed,r=t.collapsed,a=r===void 0?!1:r,o=t.submitter,i=t.style,l=t.hiddenNum,c=s.useContext(Rt.ConfigContext),u=c.getPrefixCls,d=An(),f=s.useContext(qr),m=f.hashId,g=TG(t.collapseRender)||KLe;return N.jsxs(qn,{style:i,size:16,children:[o,t.collapseRender!==!1&&N.jsx("a",{className:"".concat(u("pro-query-filter-collapse-button")," ").concat(m).trim(),onClick:function(){return n(!a)},children:g==null?void 0:g(a,t,d,l)})]})},ULe=function(t){return z({},t.componentCls,z(z(z(z({"&&":{padding:24}},"".concat(t.antCls,"-form-item"),{marginBlock:0}),"".concat(t.proComponentsCls,"-form-group-title"),{marginBlock:0}),"&-row",{rowGap:24,"&-split":z(z({},"".concat(t.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:t.marginXS}),"&:last-child",{marginBlockEnd:12}),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(t.colorSplit)}}}),"&-collapse-button",{display:"flex",alignItems:"center",color:t.colorPrimary}))};function GLe(e){return En("QueryFilter",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[ULe(n)]})}var YLe=["collapsed","layout","defaultCollapsed","defaultColsNumber","defaultFormItemsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],bd,XLe={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},$L={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},QLe=function(t,n,r){if(r&&typeof r=="number")return{span:r,layout:t};var a=r?["xs","sm","md","lg","xl","xxl"].map(function(i){return[XLe[i],24/r[i],"horizontal"]}):$L[t||"default"],o=(a||$L.default).find(function(i){return nw)&&!!V;O+=1;var ae=ee.isValidElement(W)&&(W.key||"".concat((Y=W.props)===null||Y===void 0?void 0:Y.name))||V;return ee.isValidElement(W)&&ne?t.preserve?{itemDom:ee.cloneElement(W,{hidden:!0,key:ae||V}),hidden:!0,colSpan:Q}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:W,colSpan:Q,hidden:!1}}),j=A.map(function(W,V){var q,U,G=W.itemDom,Y=W.colSpan,J=G==null||(q=G.props)===null||q===void 0?void 0:q.hidden;if(J)return G;var Q=ee.isValidElement(G)&&(G.key||"".concat((U=G.props)===null||U===void 0?void 0:U.name))||V;return 24-k%2424){var U,G;return 24-((U=(G=t.submitterColSpanProps)===null||G===void 0?void 0:G.span)!==null&&U!==void 0?U:x.span)}return 24-q},[k,k%24+((n=(r=t.submitterColSpanProps)===null||r===void 0?void 0:r.span)!==null&&n!==void 0?n:x.span),(a=t.submitterColSpanProps)===null||a===void 0?void 0:a.span]),B=s.useContext(Rt.ConfigContext),K=B.getPrefixCls("pro-query-filter");return N.jsxs(Ii,{gutter:$,justify:"start",className:oe("".concat(K,"-row"),c),children:[j,R&&N.jsx(Qr,P(P({span:x.span,offset:L,className:oe((o=t.submitterColSpanProps)===null||o===void 0?void 0:o.className)},t.submitterColSpanProps),{},{style:{textAlign:"end"},children:N.jsx(Fn.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(K,"-actions ").concat(c).trim(),children:N.jsx(qLe,{hiddenNum:D,collapsed:g,collapseRender:F?p:!1,submitter:R,setCollapsed:h},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},eBe=Su()?(bd=document)===null||bd===void 0||(bd=bd.body)===null||bd===void 0?void 0:bd.clientWidth:1024;function tBe(e){var t=e.collapsed,n=e.layout,r=e.defaultCollapsed,a=r===void 0?!0:r,o=e.defaultColsNumber,i=e.defaultFormItemsNumber,l=e.span,c=e.searchGutter,u=c===void 0?24:c;e.searchText,e.resetText;var d=e.optionRender,f=e.collapseRender,m=e.onReset,g=e.onCollapse,h=e.labelWidth,b=h===void 0?"80":h,p=e.style,S=e.split,C=e.preserve,x=C===void 0?!0:C,w=e.ignoreRules,$=e.showHiddenNum,E=$===void 0?!1:$,R=e.submitterColSpanProps,I=Ue(e,YLe),O=s.useContext(Rt.ConfigContext),T=O.getPrefixCls("pro-query-filter"),_=GLe(T),k=_.wrapSSR,A=_.hashId,j=Nt(function(){return typeof(p==null?void 0:p.width)=="number"?p==null?void 0:p.width:eBe}),D=ce(j,2),F=D[0],L=D[1],B=s.useMemo(function(){return QLe(n,F+16,l)},[n,F,l]),K=s.useMemo(function(){if(i!==void 0)return i;if(o!==void 0){var V=24/B.span-1;return o>V?V:o}return Math.max(1,24/B.span-1)},[o,i,B.span]),W=s.useMemo(function(){if(b&&B.layout!=="vertical"&&b!=="auto")return{labelCol:{flex:"0 0 ".concat(b,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(b,"px)")}},style:{flexWrap:"nowrap"}}},[B.layout,b]);return k(N.jsx(Mr,{onResize:function(q){F!==q.width&&q.width>17&&L(q.width)},children:N.jsx("div",{className:"".concat(T,"-container ").concat(A),style:e.containerStyle,children:N.jsx(Vf,P(P({isKeyPressSubmit:!0,preserve:x},I),{},{className:oe(T,A,I.className),onReset:m,style:p,layout:B.layout,fieldProps:{style:{width:"100%"}},formItemProps:W,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(q,U,G){return N.jsx(ZLe,{spanSize:B,collapsed:t,form:G,submitterColSpanProps:R,collapseRender:f,defaultCollapsed:a,onCollapse:g,optionRender:d,submitter:U,items:q,split:S,baseClassName:T,resetText:e.resetText,searchText:e.searchText,searchGutter:u,preserve:x,ignoreRules:w,showLength:K,showHiddenNum:E})}}))})},"resize-observer"))}var nBe=["onFinish","step","formRef","title","stepProps"];function rBe(e){var t=s.useRef(),n=s.useContext(YY),r=s.useContext(XY),a=P(P({},e),r),o=a.onFinish,i=a.step,l=a.formRef;a.title,a.stepProps;var c=Ue(a,nBe);return wa(!c.submitter,"StepForm 不包含提交按钮,请在 StepsForm 上"),s.useImperativeHandle(l,function(){return t.current},[l==null?void 0:l.current]),s.useEffect(function(){if(a.name||a.step){var u=(a.name||a.step).toString();return n==null||n.regForm(u,a),function(){n==null||n.unRegForm(u)}}},[]),n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[i||0]=t),N.jsx(Vf,P({formRef:t,onFinish:(function(){var u=gn(ht().mark(function d(f){var m;return ht().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(c.name&&(n==null||n.onFormFinish(c.name,f)),!o){h.next=9;break}return n==null||n.setLoading(!0),h.next=5,o==null?void 0:o(f);case 5:return m=h.sent,m&&(n==null||n.next()),n==null||n.setLoading(!1),h.abrupt("return");case 9:n!=null&&n.lastStep||n==null||n.next();case 10:case"end":return h.stop()}},d)}));return function(d){return u.apply(this,arguments)}})(),onInit:function(d,f){var m;t.current=f,n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[i||0]=t),c==null||(m=c.onInit)===null||m===void 0||m.call(c,d,f)},layout:"vertical"},nn(c,["layoutType","columns"])))}var aBe=function(t){return z({},t.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":z({maxWidth:"1160px",margin:"auto"},"".concat(t.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};function oBe(e){return En("StepsForm",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[aBe(n)]})}var iBe=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],YY=ee.createContext(void 0),lBe={horizontal:function(t){var n=t.stepsDom,r=t.formDom;return N.jsxs(N.Fragment,{children:[N.jsx(Ii,{gutter:{xs:8,sm:16,md:24},children:N.jsx(Qr,{span:24,children:n})}),N.jsx(Ii,{gutter:{xs:8,sm:16,md:24},children:N.jsx(Qr,{span:24,children:r})})]})},vertical:function(t){var n=t.stepsDom,r=t.formDom;return N.jsxs(Ii,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[N.jsx(Qr,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:ee.cloneElement(n,{style:{height:"100%"}})}),N.jsx(Qr,{children:N.jsx("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:r})})]})}},XY=ee.createContext(null);function sBe(e){var t=s.useContext(Rt.ConfigContext),n=t.getPrefixCls,r=n("pro-steps-form"),a=oBe(r),o=a.wrapSSR,i=a.hashId;e.current,e.onCurrentChange;var l=e.submitter,c=e.stepsFormRender,u=e.stepsRender,d=e.stepFormRender,f=e.stepsProps,m=e.onFinish,g=e.formProps,h=e.containerStyle,b=e.formRef,p=e.formMapRef,S=e.layoutRender,C=Ue(e,iBe),x=s.useRef(new Map),w=s.useRef(new Map),$=s.useRef([]),E=s.useState([]),R=ce(E,2),I=R[0],O=R[1],T=s.useState(!1),_=ce(T,2),k=_[0],A=_[1],j=An(),D=Nt(0,{value:e.current,onChange:e.onCurrentChange}),F=ce(D,2),L=F[0],B=F[1],K=s.useMemo(function(){return lBe[(f==null?void 0:f.direction)||"horizontal"]},[f==null?void 0:f.direction]),W=s.useMemo(function(){return L===I.length-1},[I.length,L]),V=s.useCallback(function(ie,se){w.current.has(ie)||O(function(ve){return[].concat(ke(ve),[ie])}),w.current.set(ie,se)},[]),q=s.useCallback(function(ie){O(function(se){return se.filter(function(ve){return ve!==ie})}),w.current.delete(ie),x.current.delete(ie)},[]);s.useImperativeHandle(p,function(){return $.current},[$.current]),s.useImperativeHandle(b,function(){var ie;return(ie=$.current[L||0])===null||ie===void 0?void 0:ie.current},[L,$.current]);var U=s.useCallback((function(){var ie=gn(ht().mark(function se(ve,he){var Ce,pe;return ht().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(x.current.set(ve,he),!(!W||!m)){ge.next=3;break}return ge.abrupt("return");case 3:return A(!0),Ce=K1.apply(void 0,[{}].concat(ke(Array.from(x.current.values())))),ge.prev=5,ge.next=8,m(Ce);case 8:pe=ge.sent,pe&&(B(0),$.current.forEach(function(ye){var xe;return(xe=ye.current)===null||xe===void 0?void 0:xe.resetFields()})),ge.next=15;break;case 12:ge.prev=12,ge.t0=ge.catch(5),console.log(ge.t0);case 15:return ge.prev=15,A(!1),ge.finish(15);case 18:case"end":return ge.stop()}},se,null,[[5,12,15,18]])}));return function(se,ve){return ie.apply(this,arguments)}})(),[W,m,A,B]),G=s.useMemo(function(){var ie=vl(fo,"4.24.0")>-1,se=ie?{items:I.map(function(ve){var he=w.current.get(ve);return P({key:ve,title:he==null?void 0:he.title},he==null?void 0:he.stepProps)})}:{};return N.jsx("div",{className:"".concat(r,"-steps-container ").concat(i).trim(),style:{maxWidth:Math.min(I.length*320,1160)},children:N.jsx(vO,P(P(P({},f),se),{},{current:L,onChange:void 0,children:!ie&&I.map(function(ve){var he=w.current.get(ve);return N.jsx(vO.Step,P({title:he==null?void 0:he.title},he==null?void 0:he.stepProps),ve)})}))})},[I,i,r,L,f]),Y=Hn(function(){var ie,se=$.current[L];(ie=se.current)===null||ie===void 0||ie.submit()}),J=Hn(function(){L<1||B(L-1)}),Q=s.useMemo(function(){return l!==!1&&N.jsx(_n,P(P({type:"primary",loading:k},l==null?void 0:l.submitButtonProps),{},{onClick:function(){var se;l==null||(se=l.onSubmit)===null||se===void 0||se.call(l),Y()},children:j.getMessage("stepsForm.next","下一步")}),"next")},[j,k,Y,l]),Z=s.useMemo(function(){return l!==!1&&N.jsx(_n,P(P({},l==null?void 0:l.resetButtonProps),{},{onClick:function(){var se;J(),l==null||(se=l.onReset)===null||se===void 0||se.call(l)},children:j.getMessage("stepsForm.prev","上一步")}),"pre")},[j,J,l]),ne=s.useMemo(function(){return l!==!1&&N.jsx(_n,P(P({type:"primary",loading:k},l==null?void 0:l.submitButtonProps),{},{onClick:function(){var se;l==null||(se=l.onSubmit)===null||se===void 0||se.call(l),Y()},children:j.getMessage("stepsForm.submit","提交")}),"submit")},[j,k,Y,l]),ae=Hn(function(){L>I.length-2||B(L+1)}),le=s.useMemo(function(){var ie=[],se=L||0;if(se<1?I.length===1?ie.push(ne):ie.push(Q):se+1===I.length?ie.push(Z,ne):ie.push(Z,Q),ie=ie.filter(ee.isValidElement),l&&l.render){var ve,he={form:(ve=$.current[L])===null||ve===void 0?void 0:ve.current,onSubmit:Y,step:L,onPre:J};return l.render(he,ie)}return l&&(l==null?void 0:l.render)===!1?null:ie},[I.length,Q,Y,Z,J,L,ne,l]),re=s.useMemo(function(){return rr(e.children).map(function(ie,se){var ve=ie.props,he=ve.name||"".concat(se),Ce=L===se,pe=Ce?{contentRender:d,submitter:!1}:{};return N.jsx("div",{className:oe("".concat(r,"-step"),i,z({},"".concat(r,"-step-active"),Ce)),children:N.jsx(XY.Provider,{value:P(P(P(P({},pe),g),ve),{},{name:he,step:se}),children:ie})},he)})},[g,i,r,e.children,L,d]),fe=s.useMemo(function(){return u?u(I.map(function(ie){var se;return{key:ie,title:(se=w.current.get(ie))===null||se===void 0?void 0:se.title}}),G):G},[I,G,u]),ue=s.useMemo(function(){return N.jsxs("div",{className:"".concat(r,"-container ").concat(i).trim(),style:h,children:[re,c?null:N.jsx(qn,{children:le})]})},[h,re,i,r,c,le]),de=s.useMemo(function(){var ie={stepsDom:fe,formDom:ue};return c?c(S?S(ie):K(ie),le):S?S(ie):K(ie)},[fe,ue,K,c,le,S]);return o(N.jsx("div",{className:oe(r,i),children:N.jsx(Fn.Provider,P(P({},C),{},{children:N.jsx(YY.Provider,{value:{loading:k,setLoading:A,regForm:V,keyArray:I,next:ae,formArrayRef:$,formMapRef:w,lastStep:W,unRegForm:q,onFormFinish:U},children:de})}))}))}function sC(e){return N.jsx(Ag,{needDeps:!0,children:N.jsx(sBe,P({},e))})}sC.StepForm=rBe;sC.useForm=Fn.useForm;var cBe=function(t){var n=t.children;return N.jsx(N.Fragment,{children:n})},uBe=["steps","columns","forceUpdate","grid"],dBe=function(t){var n=t.steps,r=t.columns,a=t.forceUpdate,o=t.grid,i=Ue(t,uBe),l=R3(i),c=s.useCallback(function(d){var f,m;(f=(m=l.current).onCurrentChange)===null||f===void 0||f.call(m,d),a([])},[a,l]),u=s.useMemo(function(){return n==null?void 0:n.map(function(d,f){return s.createElement(QY,P(P({grid:o},d),{},{key:f,layoutType:"StepForm",columns:r[f]}))})},[r,o,n]);return N.jsx(sC,P(P({},i),{},{onCurrentChange:c,children:u}))},fBe=function(t,n){if(t.valueType==="dependency"){var r,a,o,i=(r=t.getFieldProps)===null||r===void 0?void 0:r.call(t);return wa(Array.isArray((a=t.name)!==null&&a!==void 0?a:i==null?void 0:i.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),wa(typeof t.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((o=t.name)!==null&&o!==void 0?o:i==null?void 0:i.name)?s.createElement(Xg,P(P({name:t.name},i),{},{key:t.key}),function(l){return!t.columns||typeof t.columns!="function"?null:n.genItems(t.columns(l))}):null}return!0},vBe=function(t){if(t.valueType==="divider"){var n;return s.createElement(yK,P(P({},(n=t.getFieldProps)===null||n===void 0?void 0:n.call(t)),{},{key:t.key}))}return!0},mBe=["key"],gBe=function(t,n){var r=n.action,a=n.formRef,o=n.type,i=n.originItem,l=P(P({},nn(t,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:t.name||t.key||t.dataIndex,width:t.width,render:t!=null&&t.render?function(f,m,g){var h,b,p,S;return t==null||(h=t.render)===null||h===void 0?void 0:h.call(t,f,m,g,r==null?void 0:r.current,P(P({type:o},t),{},{key:(b=t.key)===null||b===void 0?void 0:b.toString(),formItemProps:(p=t.getFormItemProps)===null||p===void 0?void 0:p.call(t),fieldProps:(S=t.getFieldProps)===null||S===void 0?void 0:S.call(t)}))}:void 0}),c=function(){var m=l.key,g=Ue(l,mBe);return N.jsx(ui,P(P({},g),{},{ignoreFormItem:!0}),m)},u=t!=null&&t.renderFormItem?function(f,m){var g,h,b,p,S=Fr(P(P({},m),{},{onChange:void 0}));return t==null||(g=t.renderFormItem)===null||g===void 0?void 0:g.call(t,P(P({type:o},t),{},{key:(h=t.key)===null||h===void 0?void 0:h.toString(),formItemProps:(b=t.getFormItemProps)===null||b===void 0?void 0:b.call(t),fieldProps:(p=t.getFieldProps)===null||p===void 0?void 0:p.call(t),originProps:i}),P(P({},S),{},{defaultRender:c,type:o}),a.current)}:void 0,d=function(){if(t!=null&&t.renderFormItem){var m=u==null?void 0:u(null,{});if(!m||t.ignoreFormItem)return m}return s.createElement(ui,P(P({},l),{},{key:[t.key,t.index||0].join("-"),renderFormItem:u}))};return t.dependencies?N.jsx(Xg,{name:t.dependencies||[],children:d},t.key):d()},pBe=function(t,n){var r=n.genItems;if(t.valueType==="formList"&&t.dataIndex){var a,o;return!t.columns||!Array.isArray(t.columns)?null:s.createElement(WY,P(P({},(a=t.getFormItemProps)===null||a===void 0?void 0:a.call(t)),{},{key:t.key,name:t.dataIndex,label:t.label,initialValue:t.initialValue,colProps:t.colProps,rowProps:t.rowProps},(o=t.getFieldProps)===null||o===void 0?void 0:o.call(t)),r(t.columns))}return!0},hBe=function(t,n){var r=n.genItems;if(t.valueType==="formSet"&&t.dataIndex){var a,o;return!t.columns||!Array.isArray(t.columns)?null:s.createElement(OLe,P(P({},(a=t.getFormItemProps)===null||a===void 0?void 0:a.call(t)),{},{key:t.key,initialValue:t.initialValue,name:t.dataIndex,label:t.label,colProps:t.colProps,rowProps:t.rowProps},(o=t.getFieldProps)===null||o===void 0?void 0:o.call(t)),r(t.columns))}return!0},bBe=function(t,n){var r=n.genItems;if(t.valueType==="group"){var a;return!t.columns||!Array.isArray(t.columns)?null:N.jsx(ym,P(P({label:t.label,colProps:t.colProps,rowProps:t.rowProps},(a=t.getFieldProps)===null||a===void 0?void 0:a.call(t)),{},{children:r(t.columns)}),t.key)}return!0},yBe=function(t){return t.valueType&&typeof t.valueType=="string"&&["index","indexBorder","option"].includes(t==null?void 0:t.valueType)?null:!0},EL=[yBe,bBe,pBe,hBe,vBe,fBe],CBe=function(t,n){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:[],U=PL(q);if(!U)throw new Error("nameList is require");var G=(V=A())===null||V===void 0?void 0:V.getFieldValue(U),Y=U?br({},U,G):G,J=ke(U);return J.shift(),Gn(o(Y,p,J),U)},getFieldFormatValueObject:function(V){var q,U=PL(V),G=(q=A())===null||q===void 0?void 0:q.getFieldValue(U),Y=U?br({},U,G):G;return o(Y,p,U)},validateFieldsReturnFormatValue:(function(){var W=gn(ht().mark(function q(U){var G,Y,J;return ht().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(!(!Array.isArray(U)&&U)){Z.next=2;break}throw new Error("nameList must be array");case 2:return Z.next=4,(G=A())===null||G===void 0?void 0:G.validateFields(U);case 4:return Y=Z.sent,J=o(Y,p),Z.abrupt("return",J||{});case 7:case"end":return Z.stop()}},q)}));function V(q){return W.apply(this,arguments)}return V})()}},[p,o]),D=s.useMemo(function(){return ee.Children.toArray(n).map(function(W,V){return V===0&&ee.isValidElement(W)&&C?ee.cloneElement(W,P(P({},W.props),{},{autoFocus:C})):W})},[C,n]),F=s.useMemo(function(){return typeof a=="boolean"||!a?{}:a},[a]),L=s.useMemo(function(){if(a!==!1)return N.jsx(RBe,P(P({},F),{},{onReset:function(){var V,q,U=o((V=T.current)===null||V===void 0?void 0:V.getFieldsValue(),p);if(F==null||(q=F.onReset)===null||q===void 0||q.call(F,U),h==null||h(U),m){var G,Y=Object.keys(o((G=T.current)===null||G===void 0?void 0:G.getFieldsValue(),!1)).reduce(function(J,Q){return P(P({},J),{},z({},Q,U[Q]||void 0))},f);g(ub(m,Y||{},"set"))}},submitButtonProps:P({loading:u},F.submitButtonProps)}),"submitter")},[a,F,u,o,p,h,m,f,g]),B=s.useMemo(function(){var W=x?N.jsx(k,{children:D}):D;return r?r(W,L,T.current):W},[x,k,D,r,L]),K=pm(e.initialValues);return s.useEffect(function(){if(!(m||!e.initialValues||!K||E.request)){var W=Ll(e.initialValues,K);wa(W,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? : null "),wa(W,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),s.useImperativeHandle(i,function(){return P(P({},T.current),j)},[j,T.current]),s.useEffect(function(){var W,V,q=o((W=T.current)===null||W===void 0||(V=W.getFieldsValue)===null||V===void 0?void 0:V.call(W,!0),p);l==null||l(q,P(P({},T.current),j))},[]),N.jsx(Lg.Provider,{value:P(P({},j),{},{formRef:T}),children:N.jsx(Rt,{componentSize:E.size||O,children:N.jsxs(j3.Provider,{value:{grid:x,colProps:$},children:[E.component!==!1&&N.jsx("input",{type:"text",style:{display:"none"}}),B]})})})}var OL=0;function Vf(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,a=e.isKeyPressSubmit,o=e.syncToUrlAsImportant,i=o===void 0?!1:o,l=e.syncToInitialValues,c=l===void 0?!0:l;e.children,e.contentRender,e.submitter;var u=e.fieldProps,d=e.proFieldProps,f=e.formItemProps,m=e.groupProps,g=e.dateFormatter,h=g===void 0?"string":g,b=e.formRef;e.onInit;var p=e.form,S=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var C=e.omitNil,x=C===void 0?!0:C,w=e.request,$=e.params,E=e.initialValues,R=e.formKey,I=R===void 0?OL:R;e.readonly;var O=e.onLoadingChange,T=e.loading,_=Ue(e,ABe),k=s.useRef({}),A=Nt(!1,{onChange:O,value:T}),j=ce(A,2),D=j[0],F=j[1],L=C_e({},{disabled:!r}),B=ce(L,2),K=B[0],W=B[1],V=s.useRef(Km());s.useEffect(function(){OL+=0},[]);var q=HTe({request:w,params:$,proFieldKey:I}),U=ce(q,1),G=U[0],Y=s.useContext(Rt.ConfigContext),J=Y.getPrefixCls,Q=J("pro-form"),Z=En("ProForm",function(pe){return z({},".".concat(Q),z({},"> div:not(".concat(pe.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ne=Z.wrapSSR,ae=Z.hashId,le=s.useState(function(){return r?ub(r,K,"get"):{}}),re=ce(le,2),fe=re[0],ue=re[1],de=s.useRef({}),ie=s.useRef({}),se=Hn(function(pe,Se,ge){return N5e(jTe(pe,h,ie.current,Se,ge),de.current,Se)});s.useEffect(function(){c||ue({})},[c]);var ve=Hn(function(){return P(P({},K),n)});s.useEffect(function(){r&&W(ub(r,ve(),"set"))},[n,ve,r]);var he=s.useMemo(function(){if(!(typeof window>"u")&&S&&["DrawerForm"].includes(S))return function(pe){return pe.parentNode||document.body}},[S]),Ce=Hn(gn(ht().mark(function pe(){var Se,ge,ye,xe,$e,He,Te;return ht().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(_.onFinish){Fe.next=2;break}return Fe.abrupt("return");case 2:if(!D){Fe.next=4;break}return Fe.abrupt("return");case 4:return Fe.prev=4,ye=k==null||(Se=k.current)===null||Se===void 0||(ge=Se.getFieldsFormatValue)===null||ge===void 0?void 0:ge.call(Se),xe=_.onFinish(ye),xe instanceof Promise&&F(!0),Fe.next=10,xe;case 10:r&&(Te=Object.keys(k==null||($e=k.current)===null||$e===void 0||(He=$e.getFieldsFormatValue)===null||He===void 0?void 0:He.call($e,void 0,!1)).reduce(function(je,Ee){var Le;return P(P({},je),{},z({},Ee,(Le=ye[Ee])!==null&&Le!==void 0?Le:void 0))},n),Object.keys(K).forEach(function(je){Te[je]!==!1&&Te[je]!==0&&!Te[je]&&(Te[je]=void 0)}),W(ub(r,Te,"set"))),F(!1),Fe.next=18;break;case 14:Fe.prev=14,Fe.t0=Fe.catch(4),console.log(Fe.t0),F(!1);case 18:case"end":return Fe.stop()}},pe,null,[[4,14]])})));return s.useImperativeHandle(b,function(){return k.current},[!G]),!G&&e.request?N.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:N.jsx(vi,{})}):ne(N.jsx(Yg.Provider,{value:{mode:e.readonly?"read":"edit"},children:N.jsx(Ag,{needDeps:!0,children:N.jsx(Zl.Provider,{value:{formRef:k,fieldProps:u,proFieldProps:d,formItemProps:f,groupProps:m,formComponentType:S,getPopupContainer:he,formKey:V.current,setFieldValueType:function(Se,ge){var ye=ge.valueType,xe=ye===void 0?"text":ye,$e=ge.dateFormat,He=ge.transform;Array.isArray(Se)&&(de.current=br(de.current,Se,He),ie.current=br(ie.current,Se,{valueType:xe,dateFormat:$e}))}},children:N.jsx(mf.Provider,{value:{},children:N.jsx(Fn,P(P({onKeyPress:function(Se){if(a&&Se.key==="Enter"){var ge;(ge=k.current)===null||ge===void 0||ge.submit()}},autoComplete:"off",form:p},nn(_,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(Se){k.current&&(k.current.nativeElement=Se==null?void 0:Se.nativeElement)},initialValues:i?P(P(P({},E),G),fe):P(P(P({},fe),E),G),onValuesChange:function(Se,ge){var ye;_==null||(ye=_.onValuesChange)===null||ye===void 0||ye.call(_,se(Se,!!x),se(ge,!!x))},className:oe(e.className,Q,ae),onFinish:Ce,children:N.jsx(LBe,P(P({transformKey:se,autoComplete:"off",loading:D,onUrlSearchChange:W},e),{},{formRef:k,initialValues:P(P({},E),G)}))}))})})})}))}var BBe=function(t){return z(z({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),z({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function zBe(e){return En("LightWrapper",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[BBe(n)]})}var HBe=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],VBe=function(t){var n=t.label,r=t.size,a=t.disabled,o=t.onChange,i=t.className,l=t.style,c=t.children,u=t.valuePropName,d=t.placeholder,f=t.labelFormatter,m=t.bordered,g=t.footerRender,h=t.allowClear,b=t.otherFieldProps,p=t.valueType,S=t.placement,C=Ue(t,HBe),x=s.useContext(Rt.ConfigContext),w=x.getPrefixCls,$=w("pro-field-light-wrapper"),E=zBe($),R=E.wrapSSR,I=E.hashId,O=s.useState(t[u]),T=ce(O,2),_=T[0],k=T[1],A=Nt(!1),j=ce(A,2),D=j[0],F=j[1],L=function(){for(var V,q=arguments.length,U=new Array(q),G=0;G *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function KBe(e){return En("ProLayoutFooterToolbar",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[WBe(n)]})}function qBe(e,t){var n=t.stylish;return En("ProLayoutFooterToolbarStylish",function(r){var a=P(P({},r),{},{componentCls:".".concat(e)});return n?[z({},"".concat(a.componentCls),n==null?void 0:n(a))]:[]})}var UBe=["children","className","extra","portalDom","style","renderContent"],GBe=function(t){var n=t.children,r=t.className,a=t.extra,o=t.portalDom,i=o===void 0?!0:o,l=t.style,c=t.renderContent,u=Ue(t,UBe),d=s.useContext(Rt.ConfigContext),f=d.getPrefixCls,m=d.getTargetContainer,g=t.prefixCls||f("pro"),h="".concat(g,"-footer-bar"),b=KBe(h),p=b.wrapSSR,S=b.hashId,C=s.useContext(Zm),x=s.useMemo(function(){var O=C.hasSiderMenu,T=C.isMobile,_=C.siderWidth;if(O)return _?T?"100%":"calc(100% - ".concat(_,"px)"):"100%"},[C.collapsed,C.hasSiderMenu,C.isMobile,C.siderWidth]),w=s.useMemo(function(){return typeof window>"u"||typeof document>"u"?null:(m==null?void 0:m())||document.body},[]),$=qBe("".concat(h,".").concat(h,"-stylish"),{stylish:t.stylish}),E=N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"".concat(h,"-left ").concat(S).trim(),children:a}),N.jsx("div",{className:"".concat(h,"-right ").concat(S).trim(),children:n})]});s.useEffect(function(){return!C||!(C!=null&&C.setHasFooterToolbar)?function(){}:(C==null||C.setHasFooterToolbar(!0),function(){var O;C==null||(O=C.setHasFooterToolbar)===null||O===void 0||O.call(C,!1)})},[]);var R=N.jsx("div",P(P({className:oe(r,S,h,z({},"".concat(h,"-stylish"),!!t.stylish)),style:P({width:x},l)},nn(u,["prefixCls"])),{},{children:c?c(P(P(P({},t),C),{},{leftWidth:x}),E):E})),I=!Su()||!i||!w?R:Ua.createPortal(R,w,h);return $.wrapSSR(p(N.jsx(ee.Fragment,{children:I},h)))},Zm=s.createContext({}),YBe=function(t){return z({},t.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function XBe(e){return En("ProLayoutGridContent",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[YBe(n)]})}var QBe=function(t){var n=s.useContext(Zm),r=t.children,a=t.contentWidth,o=t.className,i=t.style,l=s.useContext(Rt.ConfigContext),c=l.getPrefixCls,u=t.prefixCls||c("pro"),d=a||n.contentWidth,f="".concat(u,"-grid-content"),m=XBe(f),g=m.wrapSSR,h=m.hashId,b=d==="Fixed"&&n.layout==="top";return g(N.jsx("div",{className:oe(f,h,o,z({},"".concat(f,"-wide"),b)),style:i,children:N.jsx("div",{className:"".concat(u,"-grid-content-children ").concat(h).trim(),children:r})}))},P0={exports:{}},Dv={},UE={exports:{}},IL;function Qg(){return IL||(IL=1,(function(e){var t=B1().default;function n(r,a){if(typeof WeakMap=="function")var o=new WeakMap,i=new WeakMap;return(e.exports=n=function(c,u){if(!u&&c&&c.__esModule)return c;var d,f,m={__proto__:null,default:c};if(c===null||t(c)!="object"&&typeof c!="function")return m;if(d=u?i:o){if(d.has(c))return d.get(c);d.set(c,m)}for(var g in c)g!=="default"&&{}.hasOwnProperty.call(c,g)&&((f=(d=Object.defineProperty)&&Object.getOwnPropertyDescriptor(c,g))&&(f.get||f.set)?d(m,g,f):m[g]=c[g]);return m},e.exports.__esModule=!0,e.exports.default=e.exports)(r,a)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(UE)),UE.exports}var GE={exports:{}},RL;function Q3(){return RL||(RL=1,(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;rn.length)&&(r=n.length);for(var a=0,o=Array(r);a0&&arguments[0]!==void 0?arguments[0]:{},x=C.mark;return x?x.startsWith("data-")?x:"data-".concat(x):i}function u(C){if(C.attachTo)return C.attachTo;var x=document.querySelector("head");return x||document.body}function d(C){return C==="queue"?"prependQueue":C?"prepend":"append"}function f(C){return Array.from((l.get(C)||C).children).filter(function(x){return x.tagName==="STYLE"})}function m(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,n.default)())return null;var w=x.csp,$=x.prepend,E=x.priority,R=E===void 0?0:E,I=d($),O=I==="prependQueue",T=document.createElement("style");T.setAttribute(a,I),O&&R&&T.setAttribute(o,"".concat(R)),w!=null&&w.nonce&&(T.nonce=w==null?void 0:w.nonce),T.innerHTML=C;var _=u(x),k=_.firstChild;if($){if(O){var A=(x.styles||f(_)).filter(function(j){if(!["prepend","prependQueue"].includes(j.getAttribute(a)))return!1;var D=Number(j.getAttribute(o)||0);return R>=D});if(A.length)return _.insertBefore(T,A[A.length-1].nextSibling),T}_.insertBefore(T,k)}else _.appendChild(T);return T}function g(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=u(x);return(x.styles||f(w)).find(function($){return $.getAttribute(c(x))===C})}function h(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=g(C,x);if(w){var $=u(x);$.removeChild(w)}}function b(C,x){var w=l.get(C);if(!w||!(0,r.default)(document,w)){var $=m("",x),E=$.parentNode;l.set(C,E),C.removeChild($)}}function p(){l.clear()}function S(C,x){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$=u(w),E=f($),R=(0,t.default)((0,t.default)({},w),{},{styles:E});b($,R);var I=g(x,R);if(I){var O,T;if((O=R.csp)!==null&&O!==void 0&&O.nonce&&I.nonce!==((T=R.csp)===null||T===void 0?void 0:T.nonce)){var _;I.nonce=(_=R.csp)===null||_===void 0?void 0:_.nonce}return I.innerHTML!==C&&(I.innerHTML=C),I}var k=m(C,R);return k.setAttribute(c(R),x),k}return xc}var Bv={},HL;function l9e(){if(HL)return Bv;HL=1,Object.defineProperty(Bv,"__esModule",{value:!0}),Bv.getShadowRoot=n,Bv.inShadow=t;function e(r){var a;return r==null||(a=r.getRootNode)===null||a===void 0?void 0:a.call(r)}function t(r){return e(r)instanceof ShadowRoot}function n(r){return t(r)?e(r):null}return Bv}var Eo={},VL;function s9e(){if(VL)return Eo;VL=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.call=o,Eo.default=void 0,Eo.note=r,Eo.noteOnce=l,Eo.preMessage=void 0,Eo.resetWarned=a,Eo.warning=n,Eo.warningOnce=i;var e={},t=Eo.preMessage=function(u){};function n(c,u){}function r(c,u){}function a(){e={}}function o(c,u,d){!u&&!e[d]&&(c(!1,d),e[d]=!0)}function i(c,u){o(n,c,u)}function l(c,u){o(r,c,u)}return i.preMessage=t,i.resetWarned=a,i.noteOnce=l,Eo.default=i,Eo}var WL;function J3(){if(WL)return Ha;WL=1;var e=Qg().default,t=qi().default;Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.generate=h,Ha.getSecondaryColor=b,Ha.iconStyles=void 0,Ha.isIconDefinition=m,Ha.normalizeAttrs=g,Ha.normalizeTwoToneColors=p,Ha.useInsertStyles=Ha.svgBaseProps=void 0,Ha.warning=f;var n=t(z1()),r=t(B1()),a=eX,o=i9e(),i=l9e(),l=t(s9e()),c=e(di()),u=t(tX());function d(C){return C.replace(/-(.)/g,function(x,w){return w.toUpperCase()})}function f(C,x){(0,l.default)(C,"[@ant-design/icons] ".concat(x))}function m(C){return(0,r.default)(C)==="object"&&typeof C.name=="string"&&typeof C.theme=="string"&&((0,r.default)(C.icon)==="object"||typeof C.icon=="function")}function g(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(C).reduce(function(x,w){var $=C[w];switch(w){case"class":x.className=$,delete x.class;break;default:delete x[w],x[d(w)]=$}return x},{})}function h(C,x,w){return w?c.default.createElement(C.tag,(0,n.default)((0,n.default)({key:x},g(C.attrs)),w),(C.children||[]).map(function($,E){return h($,"".concat(x,"-").concat(C.tag,"-").concat(E))})):c.default.createElement(C.tag,(0,n.default)({key:x},g(C.attrs)),(C.children||[]).map(function($,E){return h($,"".concat(x,"-").concat(C.tag,"-").concat(E))}))}function b(C){return(0,a.generate)(C)[0]}function p(C){return C?Array.isArray(C)?C:[C]:[]}Ha.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var S=Ha.iconStyles=` .anticon { display: inline-flex; align-items: center; @@ -660,16 +660,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`;return Va.useInsertStyles=function(x){var w=(0,c.useContext)(u.default),$=w.csp,E=w.prefixCls,R=w.layer,I=S;E&&(I=I.replace(/anticon/g,E)),R&&(I="@layer ".concat(R,` { +`;return Ha.useInsertStyles=function(x){var w=(0,c.useContext)(u.default),$=w.csp,E=w.prefixCls,R=w.layer,I=S;E&&(I=I.replace(/anticon/g,E)),R&&(I="@layer ".concat(R,` { `).concat(I,` -}`)),(0,c.useEffect)(function(){var O=x.current,T=(0,i.getShadowRoot)(O);(0,o.updateCSS)(I,"@ant-design-icons",{prepend:!R,csp:$,attachTo:T})},[])},Va}var IL;function AY(){if(IL)return Lv;IL=1;var e=Wi().default,t=Qg().default;Object.defineProperty(Lv,"__esModule",{value:!0}),Lv.default=void 0;var n=e(FY()),r=e(j1()),a=t(ci()),o=B3(),i=["icon","className","onClick","style","primaryColor","secondaryColor"],l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function c(f){var m=f.primaryColor,g=f.secondaryColor;l.primaryColor=m,l.secondaryColor=g||(0,o.getSecondaryColor)(m),l.calculated=!!g}function u(){return(0,r.default)({},l)}var d=function(m){var g=m.icon,h=m.className,b=m.onClick,p=m.style,S=m.primaryColor,C=m.secondaryColor,x=(0,n.default)(m,i),w=a.useRef(),$=l;if(S&&($={primaryColor:S,secondaryColor:C||(0,o.getSecondaryColor)(S)}),(0,o.useInsertStyles)(w),(0,o.warning)((0,o.isIconDefinition)(g),"icon should be icon definiton, but got ".concat(g)),!(0,o.isIconDefinition)(g))return null;var E=g;return E&&typeof E.icon=="function"&&(E=(0,r.default)((0,r.default)({},E),{},{icon:E.icon($.primaryColor,$.secondaryColor)})),(0,o.generate)(E.icon,"svg-".concat(E.name),(0,r.default)((0,r.default)({className:h,onClick:b,style:p,"data-icon":E.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},x),{},{ref:w}))};return d.displayName="IconReact",d.getTwoToneColors=u,d.setTwoToneColors=c,Lv.default=d,Lv}var zv={},RL;function kBe(){if(RL)return zv;RL=1;var e=Wi().default;Object.defineProperty(zv,"__esModule",{value:!0}),zv.getTwoToneColor=o,zv.setTwoToneColor=a;var t=e(jY()),n=e(AY()),r=B3();function a(i){var l=(0,r.normalizeTwoToneColors)(i),c=(0,t.default)(l,2),u=c[0],d=c[1];return n.default.setTwoToneColors({primaryColor:u,secondaryColor:d})}function o(){var i=n.default.getTwoToneColors();return i.calculated?[i.primaryColor,i.secondaryColor]:i.primaryColor}return zv}var ML;function LY(){if(ML)return kv;ML=1;var e=Wi().default,t=Qg().default;Object.defineProperty(kv,"__esModule",{value:!0}),kv.default=void 0;var n=e(L3()),r=e(jY()),a=e(eU()),o=e(FY()),i=t(ci()),l=e(AB()),c=DY,u=e(kY()),d=e(AY()),f=kBe(),m=B3(),g=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,f.setTwoToneColor)(c.blue.primary);var h=i.forwardRef(function(b,p){var S=b.className,C=b.icon,x=b.spin,w=b.rotate,$=b.tabIndex,E=b.onClick,R=b.twoToneColor,I=(0,o.default)(b,g),O=i.useContext(u.default),T=O.prefixCls,N=T===void 0?"anticon":T,A=O.rootClassName,k=(0,l.default)(A,N,(0,a.default)((0,a.default)({},"".concat(N,"-").concat(C.name),!!C.name),"".concat(N,"-spin"),!!x||C.name==="loading"),S),j=$;j===void 0&&E&&(j=-1);var D=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,F=(0,m.normalizeTwoToneColors)(R),L=(0,r.default)(F,2),B=L[0],K=L[1];return i.createElement("span",(0,n.default)({role:"img","aria-label":C.name},I,{ref:p,tabIndex:j,onClick:E,className:k}),i.createElement(d.default,{icon:C,primaryColor:B,secondaryColor:K,style:D}))});return h.displayName="AntdIcon",h.getTwoToneColor=f.getTwoToneColor,h.setTwoToneColor=f.setTwoToneColor,kv.default=h,kv}var TL;function ABe(){if(TL)return Dv;TL=1;var e=Qg().default,t=Wi().default;Object.defineProperty(Dv,"__esModule",{value:!0}),Dv.default=void 0;var n=t(L3()),r=e(ci()),a=t(DU()),o=t(LY()),i=function(u,d){return r.createElement(o.default,(0,n.default)({},u,{ref:d,icon:a.default}))},l=r.forwardRef(i);return Dv.default=l,Dv}var NL;function LBe(){return NL||(NL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(ABe());function r(o){return o&&o.__esModule?o:{default:o}}const a=n;t.default=a,e.exports=a})(x0,x0.exports)),x0.exports}var BBe=LBe();const zBe=an(BBe);var E0={exports:{}},Hv={},_L;function HBe(){if(_L)return Hv;_L=1;var e=Qg().default,t=Wi().default;Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.default=void 0;var n=t(L3()),r=e(ci()),a=t(AOe()),o=t(LY()),i=function(u,d){return r.createElement(o.default,(0,n.default)({},u,{ref:d,icon:a.default}))},l=r.forwardRef(i);return Hv.default=l,Hv}var jL;function VBe(){return jL||(jL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(HBe());function r(o){return o&&o.__esModule?o:{default:o}}const a=n;t.default=a,e.exports=a})(E0,E0.exports)),E0.exports}var WBe=VBe();const KBe=an(WBe);var FL=function(){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},qBe=function(t){var n;return z({},t.componentCls,P(P({},Al==null?void 0:Al(t)),{},z(z(z(z(z(z(z(z({position:"relative",backgroundColor:t.colorWhite,paddingBlock:t.pageHeaderPaddingVertical+2,paddingInline:t.pageHeaderPadding,"&&-ghost":{backgroundColor:t.pageHeaderBgGhost},"&-no-children":{height:(n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent},"&&-has-breadcrumb":{paddingBlockStart:t.pageHeaderPaddingBreadCrumb},"&&-has-footer":{paddingBlockEnd:0},"& &-back":z({marginInlineEnd:t.margin,fontSize:16,lineHeight:1,"&-button":P(P({fontSize:16},gw==null?void 0:gw(t)),{},{color:t.pageHeaderColorBack,cursor:"pointer"})},"".concat(t.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:0})},"& ".concat("ant","-divider-vertical"),{height:14,marginBlock:0,marginInline:t.marginSM,verticalAlign:"middle"}),"& &-breadcrumb + &-heading",{marginBlockStart:t.marginXS}),"& &-heading",{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",marginBlock:t.marginXS/2,marginInlineEnd:0,marginInlineStart:0,overflow:"hidden"},"&-title":P(P({marginInlineEnd:t.marginSM,marginBlockEnd:0,color:t.colorTextHeading,fontWeight:600,fontSize:t.pageHeaderFontSizeHeaderTitle,lineHeight:t.controlHeight+"px"},FL()),{},z({},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:0,marginInlineStart:t.marginSM})),"&-avatar":z({marginInlineEnd:t.marginSM},"".concat(t.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:t.marginSM}),"&-tags":z({},"".concat(t.componentCls,"-rlt &"),{float:"right"}),"&-sub-title":P(P({marginInlineEnd:t.marginSM,color:t.colorTextSecondary,fontSize:t.pageHeaderFontSizeHeaderSubTitle,lineHeight:t.lineHeight},FL()),{},z({},"".concat(t.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:12})),"&-extra":z(z({marginBlock:t.marginXS/2,marginInlineEnd:0,marginInlineStart:0,whiteSpace:"nowrap","> *":z({"white-space":"unset"},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:t.marginSM,marginInlineStart:0})},"".concat(t.componentCls,"-rlt &"),{float:"left"}),"*:first-child",z({},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:0}))}),"&-content",{paddingBlockStart:t.pageHeaderPaddingContentPadding}),"&-footer",{marginBlockStart:t.margin}),"&-compact &-heading",{flexWrap:"wrap"}),"&-wide",{maxWidth:1152,margin:"0 auto"}),"&-rtl",{direction:"rtl"})))};function UBe(e){return $n("ProLayoutPageHeader",function(t){var n=P(P({},t),{},{componentCls:".".concat(e),pageHeaderBgGhost:"transparent",pageHeaderPadding:16,pageHeaderPaddingVertical:4,pageHeaderPaddingBreadCrumb:t.paddingSM,pageHeaderColorBack:t.colorTextHeading,pageHeaderFontSizeHeaderTitle:t.fontSizeHeading4,pageHeaderFontSizeHeaderSubTitle:14,pageHeaderPaddingContentPadding:t.paddingSM});return[qBe(n)]})}var GBe=function(t,n,r,a){return!r||!a?null:_.jsx("div",{className:"".concat(t,"-back ").concat(n).trim(),children:_.jsx("div",{role:"button",onClick:function(i){a==null||a(i)},className:"".concat(t,"-back-button ").concat(n).trim(),"aria-label":"back",children:r})})},YBe=function(t,n){var r;return(r=t.items)!==null&&r!==void 0&&r.length?_.jsx(s4,P(P({},t),{},{className:oe("".concat(n,"-breadcrumb"),t.className)})):null},XBe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return t.backIcon!==void 0?t.backIcon:n==="rtl"?_.jsx(KBe,{}):_.jsx(zBe,{})},QBe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",a=arguments.length>3?arguments[3]:void 0,o=n.title,i=n.avatar,l=n.subTitle,c=n.tags,u=n.extra,d=n.onBack,f="".concat(t,"-heading"),m=o||l||c||u;if(!m)return null;var g=XBe(n,r),h=GBe(t,a,g,d),b=h||i||m;return _.jsxs("div",{className:f+" "+a,children:[b&&_.jsxs("div",{className:"".concat(f,"-left ").concat(a).trim(),children:[h,i&&_.jsx(wf,P({className:oe("".concat(f,"-avatar"),a,i.className)},i)),o&&_.jsx("span",{className:"".concat(f,"-title ").concat(a).trim(),title:typeof o=="string"?o:void 0,children:o}),l&&_.jsx("span",{className:"".concat(f,"-sub-title ").concat(a).trim(),title:typeof l=="string"?l:void 0,children:l}),c&&_.jsx("span",{className:"".concat(f,"-tags ").concat(a).trim(),children:c})]}),u&&_.jsx("span",{className:"".concat(f,"-extra ").concat(a).trim(),children:_.jsx(Jn,{children:u})})]})},JBe=function(t,n,r){return n?_.jsx("div",{className:"".concat(t,"-footer ").concat(r).trim(),children:n}):null},ZBe=function(t,n,r){return _.jsx("div",{className:"".concat(t,"-content ").concat(r).trim(),children:n})},e9e=function e(t){return t==null?void 0:t.map(function(n){var r;return $a(!!n.breadcrumbName,"Route.breadcrumbName is deprecated, please use Route.title instead."),P(P({},n),{},{breadcrumbName:void 0,children:void 0,title:n.title||n.breadcrumbName},(r=n.children)!==null&&r!==void 0&&r.length?{menu:{items:e(n.children)}}:{})})},t9e=function(t){var n,r=s.useState(!1),a=ce(r,2),o=a[0],i=a[1],l=function(W){var V=W.width;return i(V<768)},c=s.useContext(Mt.ConfigContext),u=c.getPrefixCls,d=c.direction,f=t.prefixCls,m=t.style,g=t.footer,h=t.children,b=t.breadcrumb,p=t.breadcrumbRender,S=t.className,C=t.contentWidth,x=t.layout,w=t.ghost,$=w===void 0?!0:w,E=u("page-header",f),R=UBe(E),I=R.wrapSSR,O=R.hashId,T=function(){return b&&!(b!=null&&b.items)&&b!==null&&b!==void 0&&b.routes&&($a(!1,"The routes of Breadcrumb is deprecated, please use items instead."),b.items=e9e(b.routes)),b!=null&&b.items?YBe(b,E):null},N=T(),A=b&&"props"in b,k=(n=p==null?void 0:p(P(P({},t),{},{prefixCls:E}),N))!==null&&n!==void 0?n:N,j=A?b:k,D=oe(E,O,S,z(z(z(z(z(z({},"".concat(E,"-has-breadcrumb"),!!j),"".concat(E,"-has-footer"),!!g),"".concat(E,"-rtl"),d==="rtl"),"".concat(E,"-compact"),o),"".concat(E,"-wide"),C==="Fixed"&&x=="top"),"".concat(E,"-ghost"),$)),F=QBe(E,t,d,O),L=h&&ZBe(E,h,O),B=JBe(E,g,O);return!j&&!F&&!B&&!L?_.jsx("div",{className:oe(O,["".concat(E,"-no-children")])}):I(_.jsx(Rr,{onResize:l,children:_.jsxs("div",{className:D,style:m,children:[j,F,L,B]})}))},n9e=["isLoading","pastDelay","timedOut","error","retry"],BY=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=Ue(t,n9e);return _.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:_.jsx(Hi,P({size:"large"},n))})},r9e=function(t){if(!t)return 1;var n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1;return(window.devicePixelRatio||1)/n},a9e=function(t){var n=Rd(),r=n.token,a=t.children,o=t.style,i=t.className,l=t.markStyle,c=t.markClassName,u=t.zIndex,d=u===void 0?9:u,f=t.gapX,m=f===void 0?212:f,g=t.gapY,h=g===void 0?222:g,b=t.width,p=b===void 0?120:b,S=t.height,C=S===void 0?64:S,x=t.rotate,w=x===void 0?-22:x,$=t.image,E=t.offsetLeft,R=t.offsetTop,I=t.fontStyle,O=I===void 0?"normal":I,T=t.fontWeight,N=T===void 0?"normal":T,A=t.fontColor,k=A===void 0?r.colorFill:A,j=t.fontSize,D=j===void 0?16:j,F=t.fontFamily,L=F===void 0?"sans-serif":F,B=t.prefixCls,K=s.useContext(Mt.ConfigContext),W=K.getPrefixCls,V=W("pro-layout-watermark",B),q=oe("".concat(V,"-wrapper"),i),U=oe(V,c),G=s.useState(""),Y=ce(G,2),J=Y[0],Q=Y[1];return s.useEffect(function(){var Z=document.createElement("canvas"),ne=Z.getContext("2d"),ae=r9e(ne),le="".concat((m+p)*ae,"px"),re="".concat((h+C)*ae,"px"),fe=E||m/2,ue=R||h/2;if(Z.setAttribute("width",le),Z.setAttribute("height",re),!ne){console.error("当前环境不支持Canvas");return}ne.translate(fe*ae,ue*ae),ne.rotate(Math.PI/180*Number(w));var de=p*ae,ie=C*ae,se=function(Ce){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Se=Number(D)*ae;ne.font="".concat(O," normal ").concat(N," ").concat(Se,"px/").concat(ie,"px ").concat(L),ne.fillStyle=k,Array.isArray(Ce)?Ce==null||Ce.forEach(function(ge,ye){return ne.fillText(ge,0,ye*Se+pe)}):ne.fillText(Ce,0,pe?pe+Se:0),Q(Z.toDataURL())};if($){var ve=new Image;ve.crossOrigin="anonymous",ve.referrerPolicy="no-referrer",ve.src=$,ve.onload=function(){if(ne.drawImage(ve,0,0,de,ie),Q(Z.toDataURL()),t.content){se(t.content,ve.height+8);return}};return}if(t.content){se(t.content);return}},[m,h,E,R,w,O,N,p,C,L,k,$,t.content,D]),_.jsxs("div",{style:P({position:"relative"},o),className:q,children:[a,_.jsx("div",{className:U,style:P(P({zIndex:d,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+p,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},J?{backgroundImage:"url('".concat(J,"')")}:{}),l)})]})},o9e=[576,768,992,1200].map(function(e){return"@media (max-width: ".concat(e,"px)")}),nC=ce(o9e,4),DL=nC[0],kL=nC[1],i9e=nC[2],l9e=nC[3],s9e=function(t){var n,r,a,o,i,l,c,u,d,f,m,g,h,b,p,S,C,x;return z({},t.componentCls,z(z(z(z(z(z({position:"relative","&-children-container":{paddingBlockStart:0,paddingBlockEnd:(n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent,paddingInline:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingInlinePageContainerContent},"&-children-container-no-header":{paddingBlockStart:(a=t.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.paddingBlockPageContainerContent},"&-affix":z({},"".concat(t.antCls,"-affix"),z({},"".concat(t.componentCls,"-warp"),{backgroundColor:(o=t.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.colorBgPageContainerFixed,transition:"background-color 0.3s",boxShadow:"0 2px 8px #f0f1f2"}))},"& &-warp-page-header",z(z(z(z({paddingBlockStart:((i=(l=t.layout)===null||l===void 0||(l=l.pageContainer)===null||l===void 0?void 0:l.paddingBlockPageContainerContent)!==null&&i!==void 0?i:40)/4,paddingBlockEnd:((c=(u=t.layout)===null||u===void 0||(u=u.pageContainer)===null||u===void 0?void 0:u.paddingBlockPageContainerContent)!==null&&c!==void 0?c:40)/2,paddingInlineStart:(d=t.layout)===null||d===void 0||(d=d.pageContainer)===null||d===void 0?void 0:d.paddingInlinePageContainerContent,paddingInlineEnd:(f=t.layout)===null||f===void 0||(f=f.pageContainer)===null||f===void 0?void 0:f.paddingInlinePageContainerContent},"& ~ ".concat(t.proComponentsCls,"-grid-content"),z({},"".concat(t.proComponentsCls,"-page-container-children-content"),{paddingBlock:((m=(g=t.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent)!==null&&m!==void 0?m:24)/3})),"".concat(t.antCls,"-page-header-breadcrumb"),{paddingBlockStart:((h=(b=t.layout)===null||b===void 0||(b=b.pageContainer)===null||b===void 0?void 0:b.paddingBlockPageContainerContent)!==null&&h!==void 0?h:40)/4+10}),"".concat(t.antCls,"-page-header-heading"),{paddingBlockStart:((p=(S=t.layout)===null||S===void 0||(S=S.pageContainer)===null||S===void 0?void 0:S.paddingBlockPageContainerContent)!==null&&p!==void 0?p:40)/4}),"".concat(t.antCls,"-page-header-footer"),{marginBlockStart:((C=(x=t.layout)===null||x===void 0||(x=x.pageContainer)===null||x===void 0?void 0:x.paddingBlockPageContainerContent)!==null&&C!==void 0?C:40)/4})),"&-detail",z({display:"flex"},DL,{display:"block"})),"&-main",{width:"100%"}),"&-row",z({display:"flex",width:"100%"},kL,{display:"block"})),"&-content",{flex:"auto",width:"100%"}),"&-extraContent",z(z(z(z({flex:"0 1 auto",minWidth:"242px",marginInlineStart:88,textAlign:"end"},l9e,{marginInlineStart:44}),i9e,{marginInlineStart:20}),kL,{marginInlineStart:0,textAlign:"start"}),DL,{marginInlineStart:0})))};function c9e(e,t){return $n("ProLayoutPageContainer",function(n){var r,a=P(P({},n),{},{componentCls:".".concat(e),layout:P(P({},n==null?void 0:n.layout),{},{pageContainer:P(P({},n==null||(r=n.layout)===null||r===void 0?void 0:r.pageContainer),t)})});return[s9e(a)]})}function u9e(e,t){var n=t.stylish;return $n("ProLayoutPageContainerStylish",function(r){var a=P(P({},r),{},{componentCls:".".concat(e)});return n?[z({},"div".concat(a.componentCls),n==null?void 0:n(a))]:[]})}var d9e=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","childrenContentStyle","style","prefixCls","hashId","value","breadcrumbRender"],f9e=["children","loading","className","style","footer","affixProps","token","fixedHeader","breadcrumbRender","footerToolBarProps","childrenContentStyle"];function v9e(e){return it(e)==="object"?e:{spinning:e}}var m9e=function(t){var n=t.tabList,r=t.tabActiveKey,a=t.onTabChange,o=t.hashId,i=t.tabBarExtraContent,l=t.tabProps,c=t.prefixedClassName;return Array.isArray(n)||i?_.jsx(il,P(P({className:"".concat(c,"-tabs ").concat(o).trim(),activeKey:r,onChange:function(d){a&&a(d)},tabBarExtraContent:i,items:n==null?void 0:n.map(function(u,d){var f;return P(P({label:u.tab},u),{},{key:((f=u.key)===null||f===void 0?void 0:f.toString())||(d==null?void 0:d.toString())})})},l),{},{children:vl(uo,"4.23.0")<0?n==null?void 0:n.map(function(u,d){return _.jsx(il.TabPane,P({tab:u.tab},u),u.key||d)}):null})):null},g9e=function(t,n,r,a){return!t&&!n?null:_.jsx("div",{className:"".concat(r,"-detail ").concat(a).trim(),children:_.jsx("div",{className:"".concat(r,"-main ").concat(a).trim(),children:_.jsxs("div",{className:"".concat(r,"-row ").concat(a).trim(),children:[t&&_.jsx("div",{className:"".concat(r,"-content ").concat(a).trim(),children:t}),n&&_.jsx("div",{className:"".concat(r,"-extraContent ").concat(a).trim(),children:n})]})})})},p9e=function(t){var n,r=t.title,a=t.content,o=t.pageHeaderRender,i=t.header,l=t.prefixedClassName,c=t.extraContent;t.childrenContentStyle,t.style;var u=t.prefixCls,d=t.hashId,f=t.value,m=t.breadcrumbRender,g=Ue(t,d9e),h=function(){if(m)return m};if(o===!1)return null;if(o)return _.jsxs(_.Fragment,{children:[" ",o(P(P({},t),f))]});var b=r;!r&&r!==!1&&(b=f.title);var p=P(P(P({},f),{},{title:b},g),{},{footer:m9e(P(P({},g),{},{hashId:d,breadcrumbRender:m,prefixedClassName:l}))},i),S=p,C=S.breadcrumb,x=(!C||!(C!=null&&C.itemRender)&&!(C!=null&&(n=C.items)!==null&&n!==void 0&&n.length))&&!m;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(w){return!p[w]})&&x&&!a&&!c?null:_.jsx(t9e,P(P({},p),{},{className:"".concat(l,"-warp-page-header ").concat(d).trim(),breadcrumb:m===!1?void 0:P(P({},p.breadcrumb),f.breadcrumbProps),breadcrumbRender:h(),prefixCls:u,children:(i==null?void 0:i.children)||g9e(a,c,l,d)}))},h9e=function(t){var n,r,a=t.children,o=t.loading,i=o===void 0?!1:o,l=t.className,c=t.style,u=t.footer,d=t.affixProps,f=t.token,m=t.fixedHeader,g=t.breadcrumbRender,h=t.footerToolBarProps,b=t.childrenContentStyle,p=Ue(t,f9e),S=s.useContext(Zm);s.useEffect(function(){var B;return!S||!(S!=null&&S.setHasPageContainer)?function(){}:(S==null||(B=S.setHasPageContainer)===null||B===void 0||B.call(S,function(K){return K+1}),function(){var K;S==null||(K=S.setHasPageContainer)===null||K===void 0||K.call(S,function(W){return W-1})})},[]);var C=s.useContext(Wr),x=C.token,w=s.useContext(Mt.ConfigContext),$=w.getPrefixCls,E=t.prefixCls||$("pro"),R="".concat(E,"-page-container"),I=c9e(R,f),O=I.wrapSSR,T=I.hashId,N=u9e("".concat(R,".").concat(R,"-stylish"),{stylish:t.stylish}),A=s.useMemo(function(){var B;return g==!1?!1:g||(p==null||(B=p.header)===null||B===void 0?void 0:B.breadcrumbRender)},[g,p==null||(n=p.header)===null||n===void 0?void 0:n.breadcrumbRender]),k=p9e(P(P({},p),{},{breadcrumbRender:A,ghost:!0,hashId:T,prefixCls:void 0,prefixedClassName:R,value:S})),j=s.useMemo(function(){if(ee.isValidElement(i))return i;if(typeof i=="boolean"&&!i)return null;var B=v9e(i);return B.spinning?_.jsx(BY,P({},B)):null},[i]),D=s.useMemo(function(){return a?_.jsx(_.Fragment,{children:_.jsx("div",{className:oe(T,"".concat(R,"-children-container"),z({},"".concat(R,"-children-container-no-header"),!k)),style:b,children:a})}):null},[a,R,b,T]),F=s.useMemo(function(){var B=j||D;if(t.waterMarkProps||S.waterMarkProps){var K=P(P({},S.waterMarkProps),t.waterMarkProps);return _.jsx(a9e,P(P({},K),{},{children:B}))}return B},[t.waterMarkProps,S.waterMarkProps,j,D]),L=oe(R,T,l,z(z(z({},"".concat(R,"-with-footer"),u),"".concat(R,"-with-affix"),m&&k),"".concat(R,"-stylish"),!!p.stylish));return O(N.wrapSSR(_.jsxs(_.Fragment,{children:[_.jsxs("div",{style:c,className:L,children:[m&&k?_.jsx(wte,P(P({offsetTop:S.hasHeader&&S.fixedHeader?(r=x.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader:1},d),{},{className:"".concat(R,"-affix ").concat(T).trim(),children:_.jsx("div",{className:"".concat(R,"-warp ").concat(T).trim(),children:k})})):k,F&&_.jsx(EBe,{children:F})]}),u&&_.jsx(xBe,P(P({stylish:p.footerStylish,prefixCls:E},h),{},{children:u}))]})))},vf=function(t){return _.jsx(Ag,{needDeps:!0,children:_.jsx(h9e,P({},t))})},b9e=function(t){return z({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function y9e(e){return $n("ProLayoutFooter",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[b9e(n)]})}var C9e=function(t){var n=t.className,r=t.prefixCls,a=t.links,o=t.copyright,i=t.style,l=s.useContext(Mt.ConfigContext),c=l.getPrefixCls(r||"pro-global-footer"),u=y9e(c),d=u.wrapSSR,f=u.hashId;return(a==null||a===!1||Array.isArray(a)&&a.length===0)&&(o==null||o===!1)?null:d(_.jsxs("div",{className:oe(c,f,n),style:i,children:[a&&_.jsx("div",{className:"".concat(c,"-list ").concat(f).trim(),children:a.map(function(m){return _.jsx("a",{className:"".concat(c,"-list-link ").concat(f).trim(),title:m.key,target:m.blankTarget?"_blank":"_self",href:m.href,rel:"noreferrer",children:m.title},m.key)})}),o&&_.jsx("div",{className:"".concat(c,"-copyright ").concat(f).trim(),children:o})]}))},S9e=li.Footer,x9e=function(t){var n=t.links,r=t.copyright,a=t.style,o=t.className,i=t.prefixCls;return _.jsx(S9e,{className:o,style:P({padding:0},a),children:_.jsx(C9e,{links:n,prefixCls:i,copyright:r===!1?null:_.jsxs(s.Fragment,{children:[_.jsx(d6e,{})," ",r]})})})},AL=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var a=n.concat(e(r.children||r.routes)||[]);return a}return n},[])};function rC(e){return e.map(function(t){var n=t.children||[],r=P({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(a){return a&&a.name&&!a.hideInMenu}))return P(P({},t),{},{children:rC(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var w9e=function(){return _.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:_.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},$9e=function e(t){var n=t.appList,r=t.baseClassName,a=t.hashId,o=t.itemClick;return _.jsx("div",{className:"".concat(r,"-content ").concat(a).trim(),children:_.jsx("ul",{className:"".concat(r,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(i,l){var c;return i!=null&&(c=i.children)!==null&&c!==void 0&&c.length?_.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(a).trim(),children:[_.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(a).trim(),children:i.title}),_.jsx(e,{hashId:a,itemClick:o,appList:i==null?void 0:i.children,baseClassName:r})]},l):_.jsx("li",{className:"".concat(r,"-content-list-item ").concat(a).trim(),onClick:function(d){d.stopPropagation(),o==null||o(i)},children:_.jsxs("a",{href:o?void 0:i.url,target:i.target,rel:"noreferrer",children:[z3(i.icon),_.jsxs("div",{children:[_.jsx("div",{children:i.title}),i.desc?_.jsx("span",{children:i.desc}):null]})]})},l)})})})},E9e=function(t,n){if(t&&typeof t=="string"&&y3(t))return _.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return _.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return _.jsx("div",{id:"avatarLogo",children:r})}return t},P9e=function e(t){var n=t.appList,r=t.baseClassName,a=t.hashId,o=t.itemClick;return _.jsx("div",{className:"".concat(r,"-content ").concat(a).trim(),children:_.jsx("ul",{className:"".concat(r,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(i,l){var c;return i!=null&&(c=i.children)!==null&&c!==void 0&&c.length?_.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(a).trim(),children:[_.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(a).trim(),children:i.title}),_.jsx(e,{hashId:a,itemClick:o,appList:i==null?void 0:i.children,baseClassName:r})]},l):_.jsx("li",{className:"".concat(r,"-content-list-item ").concat(a).trim(),onClick:function(d){d.stopPropagation(),o==null||o(i)},children:_.jsxs("a",{href:o?"javascript:;":i.url,target:i.target,rel:"noreferrer",children:[E9e(i.icon,i.title),_.jsx("div",{children:_.jsx("div",{children:i.title})})]})},l)})})})},O9e=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":Al==null?void 0:Al(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},I9e=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},R9e=function(t){var n,r,a,o,i;return z({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(a=t.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:(o=t.layout)===null||o===void 0?void 0:o.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":z({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":I9e(t),"&-default":O9e(t)})};function M9e(e){return $n("AppsLogoComponents",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[R9e(n)]})}var z3=function(t){return typeof t=="string"?_.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},H3=function(t){var n,r=t.appList,a=t.appListRender,o=t.prefixCls,i=o===void 0?"ant-pro":o,l=t.onItemClick,c=ee.useRef(null),u=ee.useRef(null),d="".concat(i,"-layout-apps"),f=M9e(d),m=f.wrapSSR,g=f.hashId,h=s.useState(!1),b=ce(h,2),p=b[0],S=b[1],C=function(R){l==null||l(R,u)},x=s.useMemo(function(){var E=r==null?void 0:r.some(function(R){return!(R!=null&&R.desc)});return E?_.jsx(P9e,{hashId:g,appList:r,itemClick:l?C:void 0,baseClassName:"".concat(d,"-simple")}):_.jsx($9e,{hashId:g,appList:r,itemClick:l?C:void 0,baseClassName:"".concat(d,"-default")})},[r,d,g]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var w=a?a(t==null?void 0:t.appList,x):x,$=bu(void 0,function(E){return S(E)});return m(_.jsxs(_.Fragment,{children:[_.jsx("div",{ref:c,onClick:function(R){R.stopPropagation(),R.preventDefault()}}),_.jsx(Bi,P(P({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},$),{},{overlayClassName:"".concat(d,"-popover ").concat(g).trim(),content:w,getPopupContainer:function(){return c.current||document.body},children:_.jsx("span",{ref:u,onClick:function(R){R.stopPropagation()},className:oe("".concat(d,"-icon"),g,z({},"".concat(d,"-icon-active"),p)),children:_.jsx(w9e,{})})}))]}))};function T9e(){return _.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:_.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var N9e=function(t){var n,r,a;return z({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function _9e(e){return $n("SiderMenuCollapsedIcon",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[N9e(n)]})}var j9e=["isMobile","collapsed"],F9e=function(t){var n=t.isMobile,r=t.collapsed,a=Ue(t,j9e),o=_9e(t.className),i=o.wrapSSR,l=o.hashId;return n&&r?null:i(_.jsx("div",P(P({},a),{},{className:oe(t.className,l,z(z({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:_.jsx(T9e,{})})))},zY={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},D9e=function(t,n){var r,a,o=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(a=t.layout)===null||a===void 0?void 0:a.sider;return P(P(z({},"".concat(t.componentCls),z(z(z(z(z(z(z(z(z({background:"transparent",color:o==null?void 0:o.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),z({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",z(z(z({},"".concat(t.antCls,`-menu-item, +}`)),(0,c.useEffect)(function(){var O=x.current,T=(0,i.getShadowRoot)(O);(0,o.updateCSS)(I,"@ant-design-icons",{prepend:!R,csp:$,attachTo:T})},[])},Ha}var KL;function nX(){if(KL)return Lv;KL=1;var e=qi().default,t=Qg().default;Object.defineProperty(Lv,"__esModule",{value:!0}),Lv.default=void 0;var n=e(ZY()),r=e(z1()),a=t(di()),o=J3(),i=["icon","className","onClick","style","primaryColor","secondaryColor"],l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function c(f){var m=f.primaryColor,g=f.secondaryColor;l.primaryColor=m,l.secondaryColor=g||(0,o.getSecondaryColor)(m),l.calculated=!!g}function u(){return(0,r.default)({},l)}var d=function(m){var g=m.icon,h=m.className,b=m.onClick,p=m.style,S=m.primaryColor,C=m.secondaryColor,x=(0,n.default)(m,i),w=a.useRef(),$=l;if(S&&($={primaryColor:S,secondaryColor:C||(0,o.getSecondaryColor)(S)}),(0,o.useInsertStyles)(w),(0,o.warning)((0,o.isIconDefinition)(g),"icon should be icon definiton, but got ".concat(g)),!(0,o.isIconDefinition)(g))return null;var E=g;return E&&typeof E.icon=="function"&&(E=(0,r.default)((0,r.default)({},E),{},{icon:E.icon($.primaryColor,$.secondaryColor)})),(0,o.generate)(E.icon,"svg-".concat(E.name),(0,r.default)((0,r.default)({className:h,onClick:b,style:p,"data-icon":E.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},x),{},{ref:w}))};return d.displayName="IconReact",d.getTwoToneColors=u,d.setTwoToneColors=c,Lv.default=d,Lv}var zv={},qL;function c9e(){if(qL)return zv;qL=1;var e=qi().default;Object.defineProperty(zv,"__esModule",{value:!0}),zv.getTwoToneColor=o,zv.setTwoToneColor=a;var t=e(JY()),n=e(nX()),r=J3();function a(i){var l=(0,r.normalizeTwoToneColors)(i),c=(0,t.default)(l,2),u=c[0],d=c[1];return n.default.setTwoToneColors({primaryColor:u,secondaryColor:d})}function o(){var i=n.default.getTwoToneColors();return i.calculated?[i.primaryColor,i.secondaryColor]:i.primaryColor}return zv}var UL;function rX(){if(UL)return kv;UL=1;var e=qi().default,t=Qg().default;Object.defineProperty(kv,"__esModule",{value:!0}),kv.default=void 0;var n=e(Q3()),r=e(JY()),a=e(bU()),o=e(ZY()),i=t(di()),l=e(n9()),c=eX,u=e(tX()),d=e(nX()),f=c9e(),m=J3(),g=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,f.setTwoToneColor)(c.blue.primary);var h=i.forwardRef(function(b,p){var S=b.className,C=b.icon,x=b.spin,w=b.rotate,$=b.tabIndex,E=b.onClick,R=b.twoToneColor,I=(0,o.default)(b,g),O=i.useContext(u.default),T=O.prefixCls,_=T===void 0?"anticon":T,k=O.rootClassName,A=(0,l.default)(k,_,(0,a.default)((0,a.default)({},"".concat(_,"-").concat(C.name),!!C.name),"".concat(_,"-spin"),!!x||C.name==="loading"),S),j=$;j===void 0&&E&&(j=-1);var D=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,F=(0,m.normalizeTwoToneColors)(R),L=(0,r.default)(F,2),B=L[0],K=L[1];return i.createElement("span",(0,n.default)({role:"img","aria-label":C.name},I,{ref:p,tabIndex:j,onClick:E,className:A}),i.createElement(d.default,{icon:C,primaryColor:B,secondaryColor:K,style:D}))});return h.displayName="AntdIcon",h.getTwoToneColor=f.getTwoToneColor,h.setTwoToneColor=f.setTwoToneColor,kv.default=h,kv}var GL;function u9e(){if(GL)return Dv;GL=1;var e=Qg().default,t=qi().default;Object.defineProperty(Dv,"__esModule",{value:!0}),Dv.default=void 0;var n=t(Q3()),r=e(di()),a=t(tIe()),o=t(rX()),i=function(u,d){return r.createElement(o.default,(0,n.default)({},u,{ref:d,icon:a.default}))},l=r.forwardRef(i);return Dv.default=l,Dv}var YL;function d9e(){return YL||(YL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(u9e());function r(o){return o&&o.__esModule?o:{default:o}}const a=n;t.default=a,e.exports=a})(P0,P0.exports)),P0.exports}var f9e=d9e();const v9e=rn(f9e);var R0={exports:{}},Hv={},XL;function m9e(){if(XL)return Hv;XL=1;var e=Qg().default,t=qi().default;Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.default=void 0;var n=t(Q3()),r=e(di()),a=t(nIe()),o=t(rX()),i=function(u,d){return r.createElement(o.default,(0,n.default)({},u,{ref:d,icon:a.default}))},l=r.forwardRef(i);return Hv.default=l,Hv}var QL;function g9e(){return QL||(QL=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(m9e());function r(o){return o&&o.__esModule?o:{default:o}}const a=n;t.default=a,e.exports=a})(R0,R0.exports)),R0.exports}var p9e=g9e();const h9e=rn(p9e);var JL=function(){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},b9e=function(t){var n;return z({},t.componentCls,P(P({},Al==null?void 0:Al(t)),{},z(z(z(z(z(z(z(z({position:"relative",backgroundColor:t.colorWhite,paddingBlock:t.pageHeaderPaddingVertical+2,paddingInline:t.pageHeaderPadding,"&&-ghost":{backgroundColor:t.pageHeaderBgGhost},"&-no-children":{height:(n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent},"&&-has-breadcrumb":{paddingBlockStart:t.pageHeaderPaddingBreadCrumb},"&&-has-footer":{paddingBlockEnd:0},"& &-back":z({marginInlineEnd:t.margin,fontSize:16,lineHeight:1,"&-button":P(P({fontSize:16},$w==null?void 0:$w(t)),{},{color:t.pageHeaderColorBack,cursor:"pointer"})},"".concat(t.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:0})},"& ".concat("ant","-divider-vertical"),{height:14,marginBlock:0,marginInline:t.marginSM,verticalAlign:"middle"}),"& &-breadcrumb + &-heading",{marginBlockStart:t.marginXS}),"& &-heading",{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",marginBlock:t.marginXS/2,marginInlineEnd:0,marginInlineStart:0,overflow:"hidden"},"&-title":P(P({marginInlineEnd:t.marginSM,marginBlockEnd:0,color:t.colorTextHeading,fontWeight:600,fontSize:t.pageHeaderFontSizeHeaderTitle,lineHeight:t.controlHeight+"px"},JL()),{},z({},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:0,marginInlineStart:t.marginSM})),"&-avatar":z({marginInlineEnd:t.marginSM},"".concat(t.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:t.marginSM}),"&-tags":z({},"".concat(t.componentCls,"-rlt &"),{float:"right"}),"&-sub-title":P(P({marginInlineEnd:t.marginSM,color:t.colorTextSecondary,fontSize:t.pageHeaderFontSizeHeaderSubTitle,lineHeight:t.lineHeight},JL()),{},z({},"".concat(t.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:12})),"&-extra":z(z({marginBlock:t.marginXS/2,marginInlineEnd:0,marginInlineStart:0,whiteSpace:"nowrap","> *":z({"white-space":"unset"},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:t.marginSM,marginInlineStart:0})},"".concat(t.componentCls,"-rlt &"),{float:"left"}),"*:first-child",z({},"".concat(t.componentCls,"-rlt &"),{marginInlineEnd:0}))}),"&-content",{paddingBlockStart:t.pageHeaderPaddingContentPadding}),"&-footer",{marginBlockStart:t.margin}),"&-compact &-heading",{flexWrap:"wrap"}),"&-wide",{maxWidth:1152,margin:"0 auto"}),"&-rtl",{direction:"rtl"})))};function y9e(e){return En("ProLayoutPageHeader",function(t){var n=P(P({},t),{},{componentCls:".".concat(e),pageHeaderBgGhost:"transparent",pageHeaderPadding:16,pageHeaderPaddingVertical:4,pageHeaderPaddingBreadCrumb:t.paddingSM,pageHeaderColorBack:t.colorTextHeading,pageHeaderFontSizeHeaderTitle:t.fontSizeHeading4,pageHeaderFontSizeHeaderSubTitle:14,pageHeaderPaddingContentPadding:t.paddingSM});return[b9e(n)]})}var C9e=function(t,n,r,a){return!r||!a?null:N.jsx("div",{className:"".concat(t,"-back ").concat(n).trim(),children:N.jsx("div",{role:"button",onClick:function(i){a==null||a(i)},className:"".concat(t,"-back-button ").concat(n).trim(),"aria-label":"back",children:r})})},S9e=function(t,n){var r;return(r=t.items)!==null&&r!==void 0&&r.length?N.jsx(C4,P(P({},t),{},{className:oe("".concat(n,"-breadcrumb"),t.className)})):null},x9e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return t.backIcon!==void 0?t.backIcon:n==="rtl"?N.jsx(h9e,{}):N.jsx(v9e,{})},w9e=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",a=arguments.length>3?arguments[3]:void 0,o=n.title,i=n.avatar,l=n.subTitle,c=n.tags,u=n.extra,d=n.onBack,f="".concat(t,"-heading"),m=o||l||c||u;if(!m)return null;var g=x9e(n,r),h=C9e(t,a,g,d),b=h||i||m;return N.jsxs("div",{className:f+" "+a,children:[b&&N.jsxs("div",{className:"".concat(f,"-left ").concat(a).trim(),children:[h,i&&N.jsx($f,P({className:oe("".concat(f,"-avatar"),a,i.className)},i)),o&&N.jsx("span",{className:"".concat(f,"-title ").concat(a).trim(),title:typeof o=="string"?o:void 0,children:o}),l&&N.jsx("span",{className:"".concat(f,"-sub-title ").concat(a).trim(),title:typeof l=="string"?l:void 0,children:l}),c&&N.jsx("span",{className:"".concat(f,"-tags ").concat(a).trim(),children:c})]}),u&&N.jsx("span",{className:"".concat(f,"-extra ").concat(a).trim(),children:N.jsx(qn,{children:u})})]})},$9e=function(t,n,r){return n?N.jsx("div",{className:"".concat(t,"-footer ").concat(r).trim(),children:n}):null},E9e=function(t,n,r){return N.jsx("div",{className:"".concat(t,"-content ").concat(r).trim(),children:n})},P9e=function e(t){return t==null?void 0:t.map(function(n){var r;return wa(!!n.breadcrumbName,"Route.breadcrumbName is deprecated, please use Route.title instead."),P(P({},n),{},{breadcrumbName:void 0,children:void 0,title:n.title||n.breadcrumbName},(r=n.children)!==null&&r!==void 0&&r.length?{menu:{items:e(n.children)}}:{})})},O9e=function(t){var n,r=s.useState(!1),a=ce(r,2),o=a[0],i=a[1],l=function(W){var V=W.width;return i(V<768)},c=s.useContext(Rt.ConfigContext),u=c.getPrefixCls,d=c.direction,f=t.prefixCls,m=t.style,g=t.footer,h=t.children,b=t.breadcrumb,p=t.breadcrumbRender,S=t.className,C=t.contentWidth,x=t.layout,w=t.ghost,$=w===void 0?!0:w,E=u("page-header",f),R=y9e(E),I=R.wrapSSR,O=R.hashId,T=function(){return b&&!(b!=null&&b.items)&&b!==null&&b!==void 0&&b.routes&&(wa(!1,"The routes of Breadcrumb is deprecated, please use items instead."),b.items=P9e(b.routes)),b!=null&&b.items?S9e(b,E):null},_=T(),k=b&&"props"in b,A=(n=p==null?void 0:p(P(P({},t),{},{prefixCls:E}),_))!==null&&n!==void 0?n:_,j=k?b:A,D=oe(E,O,S,z(z(z(z(z(z({},"".concat(E,"-has-breadcrumb"),!!j),"".concat(E,"-has-footer"),!!g),"".concat(E,"-rtl"),d==="rtl"),"".concat(E,"-compact"),o),"".concat(E,"-wide"),C==="Fixed"&&x=="top"),"".concat(E,"-ghost"),$)),F=w9e(E,t,d,O),L=h&&E9e(E,h,O),B=$9e(E,g,O);return!j&&!F&&!B&&!L?N.jsx("div",{className:oe(O,["".concat(E,"-no-children")])}):I(N.jsx(Mr,{onResize:l,children:N.jsxs("div",{className:D,style:m,children:[j,F,L,B]})}))},I9e=["isLoading","pastDelay","timedOut","error","retry"],aX=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=Ue(t,I9e);return N.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:N.jsx(vi,P({size:"large"},n))})},R9e=function(t){if(!t)return 1;var n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||1;return(window.devicePixelRatio||1)/n},M9e=function(t){var n=Td(),r=n.token,a=t.children,o=t.style,i=t.className,l=t.markStyle,c=t.markClassName,u=t.zIndex,d=u===void 0?9:u,f=t.gapX,m=f===void 0?212:f,g=t.gapY,h=g===void 0?222:g,b=t.width,p=b===void 0?120:b,S=t.height,C=S===void 0?64:S,x=t.rotate,w=x===void 0?-22:x,$=t.image,E=t.offsetLeft,R=t.offsetTop,I=t.fontStyle,O=I===void 0?"normal":I,T=t.fontWeight,_=T===void 0?"normal":T,k=t.fontColor,A=k===void 0?r.colorFill:k,j=t.fontSize,D=j===void 0?16:j,F=t.fontFamily,L=F===void 0?"sans-serif":F,B=t.prefixCls,K=s.useContext(Rt.ConfigContext),W=K.getPrefixCls,V=W("pro-layout-watermark",B),q=oe("".concat(V,"-wrapper"),i),U=oe(V,c),G=s.useState(""),Y=ce(G,2),J=Y[0],Q=Y[1];return s.useEffect(function(){var Z=document.createElement("canvas"),ne=Z.getContext("2d"),ae=R9e(ne),le="".concat((m+p)*ae,"px"),re="".concat((h+C)*ae,"px"),fe=E||m/2,ue=R||h/2;if(Z.setAttribute("width",le),Z.setAttribute("height",re),!ne){console.error("当前环境不支持Canvas");return}ne.translate(fe*ae,ue*ae),ne.rotate(Math.PI/180*Number(w));var de=p*ae,ie=C*ae,se=function(Ce){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Se=Number(D)*ae;ne.font="".concat(O," normal ").concat(_," ").concat(Se,"px/").concat(ie,"px ").concat(L),ne.fillStyle=A,Array.isArray(Ce)?Ce==null||Ce.forEach(function(ge,ye){return ne.fillText(ge,0,ye*Se+pe)}):ne.fillText(Ce,0,pe?pe+Se:0),Q(Z.toDataURL())};if($){var ve=new Image;ve.crossOrigin="anonymous",ve.referrerPolicy="no-referrer",ve.src=$,ve.onload=function(){if(ne.drawImage(ve,0,0,de,ie),Q(Z.toDataURL()),t.content){se(t.content,ve.height+8);return}};return}if(t.content){se(t.content);return}},[m,h,E,R,w,O,_,p,C,L,A,$,t.content,D]),N.jsxs("div",{style:P({position:"relative"},o),className:q,children:[a,N.jsx("div",{className:U,style:P(P({zIndex:d,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+p,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},J?{backgroundImage:"url('".concat(J,"')")}:{}),l)})]})},T9e=[576,768,992,1200].map(function(e){return"@media (max-width: ".concat(e,"px)")}),cC=ce(T9e,4),ZL=cC[0],eB=cC[1],N9e=cC[2],_9e=cC[3],j9e=function(t){var n,r,a,o,i,l,c,u,d,f,m,g,h,b,p,S,C,x;return z({},t.componentCls,z(z(z(z(z(z({position:"relative","&-children-container":{paddingBlockStart:0,paddingBlockEnd:(n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent,paddingInline:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingInlinePageContainerContent},"&-children-container-no-header":{paddingBlockStart:(a=t.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.paddingBlockPageContainerContent},"&-affix":z({},"".concat(t.antCls,"-affix"),z({},"".concat(t.componentCls,"-warp"),{backgroundColor:(o=t.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.colorBgPageContainerFixed,transition:"background-color 0.3s",boxShadow:"0 2px 8px #f0f1f2"}))},"& &-warp-page-header",z(z(z(z({paddingBlockStart:((i=(l=t.layout)===null||l===void 0||(l=l.pageContainer)===null||l===void 0?void 0:l.paddingBlockPageContainerContent)!==null&&i!==void 0?i:40)/4,paddingBlockEnd:((c=(u=t.layout)===null||u===void 0||(u=u.pageContainer)===null||u===void 0?void 0:u.paddingBlockPageContainerContent)!==null&&c!==void 0?c:40)/2,paddingInlineStart:(d=t.layout)===null||d===void 0||(d=d.pageContainer)===null||d===void 0?void 0:d.paddingInlinePageContainerContent,paddingInlineEnd:(f=t.layout)===null||f===void 0||(f=f.pageContainer)===null||f===void 0?void 0:f.paddingInlinePageContainerContent},"& ~ ".concat(t.proComponentsCls,"-grid-content"),z({},"".concat(t.proComponentsCls,"-page-container-children-content"),{paddingBlock:((m=(g=t.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent)!==null&&m!==void 0?m:24)/3})),"".concat(t.antCls,"-page-header-breadcrumb"),{paddingBlockStart:((h=(b=t.layout)===null||b===void 0||(b=b.pageContainer)===null||b===void 0?void 0:b.paddingBlockPageContainerContent)!==null&&h!==void 0?h:40)/4+10}),"".concat(t.antCls,"-page-header-heading"),{paddingBlockStart:((p=(S=t.layout)===null||S===void 0||(S=S.pageContainer)===null||S===void 0?void 0:S.paddingBlockPageContainerContent)!==null&&p!==void 0?p:40)/4}),"".concat(t.antCls,"-page-header-footer"),{marginBlockStart:((C=(x=t.layout)===null||x===void 0||(x=x.pageContainer)===null||x===void 0?void 0:x.paddingBlockPageContainerContent)!==null&&C!==void 0?C:40)/4})),"&-detail",z({display:"flex"},ZL,{display:"block"})),"&-main",{width:"100%"}),"&-row",z({display:"flex",width:"100%"},eB,{display:"block"})),"&-content",{flex:"auto",width:"100%"}),"&-extraContent",z(z(z(z({flex:"0 1 auto",minWidth:"242px",marginInlineStart:88,textAlign:"end"},_9e,{marginInlineStart:44}),N9e,{marginInlineStart:20}),eB,{marginInlineStart:0,textAlign:"start"}),ZL,{marginInlineStart:0})))};function F9e(e,t){return En("ProLayoutPageContainer",function(n){var r,a=P(P({},n),{},{componentCls:".".concat(e),layout:P(P({},n==null?void 0:n.layout),{},{pageContainer:P(P({},n==null||(r=n.layout)===null||r===void 0?void 0:r.pageContainer),t)})});return[j9e(a)]})}function D9e(e,t){var n=t.stylish;return En("ProLayoutPageContainerStylish",function(r){var a=P(P({},r),{},{componentCls:".".concat(e)});return n?[z({},"div".concat(a.componentCls),n==null?void 0:n(a))]:[]})}var k9e=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","childrenContentStyle","style","prefixCls","hashId","value","breadcrumbRender"],A9e=["children","loading","className","style","footer","affixProps","token","fixedHeader","breadcrumbRender","footerToolBarProps","childrenContentStyle"];function L9e(e){return it(e)==="object"?e:{spinning:e}}var B9e=function(t){var n=t.tabList,r=t.tabActiveKey,a=t.onTabChange,o=t.hashId,i=t.tabBarExtraContent,l=t.tabProps,c=t.prefixedClassName;return Array.isArray(n)||i?N.jsx(Bi,P(P({className:"".concat(c,"-tabs ").concat(o).trim(),activeKey:r,onChange:function(d){a&&a(d)},tabBarExtraContent:i,items:n==null?void 0:n.map(function(u,d){var f;return P(P({label:u.tab},u),{},{key:((f=u.key)===null||f===void 0?void 0:f.toString())||(d==null?void 0:d.toString())})})},l),{},{children:vl(fo,"4.23.0")<0?n==null?void 0:n.map(function(u,d){return N.jsx(Bi.TabPane,P({tab:u.tab},u),u.key||d)}):null})):null},z9e=function(t,n,r,a){return!t&&!n?null:N.jsx("div",{className:"".concat(r,"-detail ").concat(a).trim(),children:N.jsx("div",{className:"".concat(r,"-main ").concat(a).trim(),children:N.jsxs("div",{className:"".concat(r,"-row ").concat(a).trim(),children:[t&&N.jsx("div",{className:"".concat(r,"-content ").concat(a).trim(),children:t}),n&&N.jsx("div",{className:"".concat(r,"-extraContent ").concat(a).trim(),children:n})]})})})},H9e=function(t){var n,r=t.title,a=t.content,o=t.pageHeaderRender,i=t.header,l=t.prefixedClassName,c=t.extraContent;t.childrenContentStyle,t.style;var u=t.prefixCls,d=t.hashId,f=t.value,m=t.breadcrumbRender,g=Ue(t,k9e),h=function(){if(m)return m};if(o===!1)return null;if(o)return N.jsxs(N.Fragment,{children:[" ",o(P(P({},t),f))]});var b=r;!r&&r!==!1&&(b=f.title);var p=P(P(P({},f),{},{title:b},g),{},{footer:B9e(P(P({},g),{},{hashId:d,breadcrumbRender:m,prefixedClassName:l}))},i),S=p,C=S.breadcrumb,x=(!C||!(C!=null&&C.itemRender)&&!(C!=null&&(n=C.items)!==null&&n!==void 0&&n.length))&&!m;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(w){return!p[w]})&&x&&!a&&!c?null:N.jsx(O9e,P(P({},p),{},{className:"".concat(l,"-warp-page-header ").concat(d).trim(),breadcrumb:m===!1?void 0:P(P({},p.breadcrumb),f.breadcrumbProps),breadcrumbRender:h(),prefixCls:u,children:(i==null?void 0:i.children)||z9e(a,c,l,d)}))},V9e=function(t){var n,r,a=t.children,o=t.loading,i=o===void 0?!1:o,l=t.className,c=t.style,u=t.footer,d=t.affixProps,f=t.token,m=t.fixedHeader,g=t.breadcrumbRender,h=t.footerToolBarProps,b=t.childrenContentStyle,p=Ue(t,A9e),S=s.useContext(Zm);s.useEffect(function(){var B;return!S||!(S!=null&&S.setHasPageContainer)?function(){}:(S==null||(B=S.setHasPageContainer)===null||B===void 0||B.call(S,function(K){return K+1}),function(){var K;S==null||(K=S.setHasPageContainer)===null||K===void 0||K.call(S,function(W){return W-1})})},[]);var C=s.useContext(qr),x=C.token,w=s.useContext(Rt.ConfigContext),$=w.getPrefixCls,E=t.prefixCls||$("pro"),R="".concat(E,"-page-container"),I=F9e(R,f),O=I.wrapSSR,T=I.hashId,_=D9e("".concat(R,".").concat(R,"-stylish"),{stylish:t.stylish}),k=s.useMemo(function(){var B;return g==!1?!1:g||(p==null||(B=p.header)===null||B===void 0?void 0:B.breadcrumbRender)},[g,p==null||(n=p.header)===null||n===void 0?void 0:n.breadcrumbRender]),A=H9e(P(P({},p),{},{breadcrumbRender:k,ghost:!0,hashId:T,prefixCls:void 0,prefixedClassName:R,value:S})),j=s.useMemo(function(){if(ee.isValidElement(i))return i;if(typeof i=="boolean"&&!i)return null;var B=L9e(i);return B.spinning?N.jsx(aX,P({},B)):null},[i]),D=s.useMemo(function(){return a?N.jsx(N.Fragment,{children:N.jsx("div",{className:oe(T,"".concat(R,"-children-container"),z({},"".concat(R,"-children-container-no-header"),!A)),style:b,children:a})}):null},[a,R,b,T]),F=s.useMemo(function(){var B=j||D;if(t.waterMarkProps||S.waterMarkProps){var K=P(P({},S.waterMarkProps),t.waterMarkProps);return N.jsx(M9e,P(P({},K),{},{children:B}))}return B},[t.waterMarkProps,S.waterMarkProps,j,D]),L=oe(R,T,l,z(z(z({},"".concat(R,"-with-footer"),u),"".concat(R,"-with-affix"),m&&A),"".concat(R,"-stylish"),!!p.stylish));return O(_.wrapSSR(N.jsxs(N.Fragment,{children:[N.jsxs("div",{style:c,className:L,children:[m&&A?N.jsx(Lte,P(P({offsetTop:S.hasHeader&&S.fixedHeader?(r=x.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader:1},d),{},{className:"".concat(R,"-affix ").concat(T).trim(),children:N.jsx("div",{className:"".concat(R,"-warp ").concat(T).trim(),children:A})})):A,F&&N.jsx(QBe,{children:F})]}),u&&N.jsx(GBe,P(P({stylish:p.footerStylish,prefixCls:E},h),{},{children:u}))]})))},uC=function(t){return N.jsx(Ag,{needDeps:!0,children:N.jsx(V9e,P({},t))})},W9e=function(t){return z({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function K9e(e){return En("ProLayoutFooter",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[W9e(n)]})}var q9e=function(t){var n=t.className,r=t.prefixCls,a=t.links,o=t.copyright,i=t.style,l=s.useContext(Rt.ConfigContext),c=l.getPrefixCls(r||"pro-global-footer"),u=K9e(c),d=u.wrapSSR,f=u.hashId;return(a==null||a===!1||Array.isArray(a)&&a.length===0)&&(o==null||o===!1)?null:d(N.jsxs("div",{className:oe(c,f,n),style:i,children:[a&&N.jsx("div",{className:"".concat(c,"-list ").concat(f).trim(),children:a.map(function(m){return N.jsx("a",{className:"".concat(c,"-list-link ").concat(f).trim(),title:m.key,target:m.blankTarget?"_blank":"_self",href:m.href,rel:"noreferrer",children:m.title},m.key)})}),o&&N.jsx("div",{className:"".concat(c,"-copyright ").concat(f).trim(),children:o})]}))},U9e=ci.Footer,G9e=function(t){var n=t.links,r=t.copyright,a=t.style,o=t.className,i=t.prefixCls;return N.jsx(U9e,{className:o,style:P({padding:0},a),children:N.jsx(q9e,{links:n,prefixCls:i,copyright:r===!1?null:N.jsxs(s.Fragment,{children:[N.jsx(k6e,{})," ",r]})})})},tB=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var a=n.concat(e(r.children||r.routes)||[]);return a}return n},[])};function dC(e){return e.map(function(t){var n=t.children||[],r=P({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(a){return a&&a.name&&!a.hideInMenu}))return P(P({},t),{},{children:dC(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var Y9e=function(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},X9e=function e(t){var n=t.appList,r=t.baseClassName,a=t.hashId,o=t.itemClick;return N.jsx("div",{className:"".concat(r,"-content ").concat(a).trim(),children:N.jsx("ul",{className:"".concat(r,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(i,l){var c;return i!=null&&(c=i.children)!==null&&c!==void 0&&c.length?N.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(a).trim(),children:[N.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(a).trim(),children:i.title}),N.jsx(e,{hashId:a,itemClick:o,appList:i==null?void 0:i.children,baseClassName:r})]},l):N.jsx("li",{className:"".concat(r,"-content-list-item ").concat(a).trim(),onClick:function(d){d.stopPropagation(),o==null||o(i)},children:N.jsxs("a",{href:o?void 0:i.url,target:i.target,rel:"noreferrer",children:[Z3(i.icon),N.jsxs("div",{children:[N.jsx("div",{children:i.title}),i.desc?N.jsx("span",{children:i.desc}):null]})]})},l)})})})},Q9e=function(t,n){if(t&&typeof t=="string"&&T3(t))return N.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return N.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return N.jsx("div",{id:"avatarLogo",children:r})}return t},J9e=function e(t){var n=t.appList,r=t.baseClassName,a=t.hashId,o=t.itemClick;return N.jsx("div",{className:"".concat(r,"-content ").concat(a).trim(),children:N.jsx("ul",{className:"".concat(r,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(i,l){var c;return i!=null&&(c=i.children)!==null&&c!==void 0&&c.length?N.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(a).trim(),children:[N.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(a).trim(),children:i.title}),N.jsx(e,{hashId:a,itemClick:o,appList:i==null?void 0:i.children,baseClassName:r})]},l):N.jsx("li",{className:"".concat(r,"-content-list-item ").concat(a).trim(),onClick:function(d){d.stopPropagation(),o==null||o(i)},children:N.jsxs("a",{href:o?"javascript:;":i.url,target:i.target,rel:"noreferrer",children:[Q9e(i.icon,i.title),N.jsx("div",{children:N.jsx("div",{children:i.title})})]})},l)})})})},Z9e=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":Al==null?void 0:Al(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},eze=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},tze=function(t){var n,r,a,o,i;return z({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(a=t.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:(o=t.layout)===null||o===void 0?void 0:o.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":z({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":eze(t),"&-default":Z9e(t)})};function nze(e){return En("AppsLogoComponents",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[tze(n)]})}var Z3=function(t){return typeof t=="string"?N.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},eM=function(t){var n,r=t.appList,a=t.appListRender,o=t.prefixCls,i=o===void 0?"ant-pro":o,l=t.onItemClick,c=ee.useRef(null),u=ee.useRef(null),d="".concat(i,"-layout-apps"),f=nze(d),m=f.wrapSSR,g=f.hashId,h=s.useState(!1),b=ce(h,2),p=b[0],S=b[1],C=function(R){l==null||l(R,u)},x=s.useMemo(function(){var E=r==null?void 0:r.some(function(R){return!(R!=null&&R.desc)});return E?N.jsx(J9e,{hashId:g,appList:r,itemClick:l?C:void 0,baseClassName:"".concat(d,"-simple")}):N.jsx(X9e,{hashId:g,appList:r,itemClick:l?C:void 0,baseClassName:"".concat(d,"-default")})},[r,d,g]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var w=a?a(t==null?void 0:t.appList,x):x,$=Cu(void 0,function(E){return S(E)});return m(N.jsxs(N.Fragment,{children:[N.jsx("div",{ref:c,onClick:function(R){R.stopPropagation(),R.preventDefault()}}),N.jsx(Vi,P(P({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},$),{},{overlayClassName:"".concat(d,"-popover ").concat(g).trim(),content:w,getPopupContainer:function(){return c.current||document.body},children:N.jsx("span",{ref:u,onClick:function(R){R.stopPropagation()},className:oe("".concat(d,"-icon"),g,z({},"".concat(d,"-icon-active"),p)),children:N.jsx(Y9e,{})})}))]}))};function rze(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var aze=function(t){var n,r,a;return z({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function oze(e){return En("SiderMenuCollapsedIcon",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[aze(n)]})}var ize=["isMobile","collapsed"],lze=function(t){var n=t.isMobile,r=t.collapsed,a=Ue(t,ize),o=oze(t.className),i=o.wrapSSR,l=o.hashId;return n&&r?null:i(N.jsx("div",P(P({},a),{},{className:oe(t.className,l,z(z({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:N.jsx(rze,{})})))},oX={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},sze=function(t,n){var r,a,o=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(a=t.layout)===null||a===void 0?void 0:a.sider;return P(P(z({},"".concat(t.componentCls),z(z(z(z(z(z(z(z(z({background:"transparent",color:o==null?void 0:o.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),z({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",z(z(z({},"".concat(t.antCls,`-menu-item, `).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,`-menu-item, `).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu > ").concat(t.antCls,`-menu-submenu-title, `).concat(t.antCls,"-menu-submenu > ").concat(t.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,`-menu-submenu-title, - `).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:o==null?void 0:o.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),z({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",z(z(z(z(z({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",z(z({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),z({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),z(z({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",z({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:z({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),z({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},z({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function k9e(e,t){return $n("ProLayoutBaseMenu"+t,function(n){var r=P(P({},n),{},{componentCls:".".concat(e)});return[D9e(r,t||"inline")]})}var LL=function(t){var n=s.useState(t.collapsed),r=ce(n,2),a=r[0],o=r[1],i=s.useState(!1),l=ce(i,2),c=l[0],u=l[1];return s.useEffect(function(){u(!1),setTimeout(function(){o(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:_.jsx(Kn,{title:t.title,open:a&&t.collapsed?c:!1,placement:"right",onOpenChange:u,children:t.children})},HY=oG({scriptUrl:zY.iconfontUrl}),BL=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(y3(t)||STe(t))return _.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return _.jsx(HY,{type:t})}return t},zL=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},A9e=ir(function e(t){var n=this;or(this,e),z(this,"props",void 0),z(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return r.map(function(i){return n.getSubMenuOrItem(i,a,o)}).filter(function(i){return i}).flat(1)}),z(this,"getSubMenuOrItem",function(r,a,o){var i=n.props,l=i.subMenuItemRender,c=i.baseClassName,u=i.prefixCls,d=i.collapsed,f=i.menu,m=i.iconPrefixes,g=i.layout,h=(f==null?void 0:f.type)==="group"&&g!=="top",b=n.props.token,p=n.getIntlName(r),S=(r==null?void 0:r.children)||(r==null?void 0:r.routes),C=h&&a===0?"group":void 0;if(Array.isArray(S)&&S.length>0){var x,w,$,E,R,I=a===0||h&&a===1,O=BL(r.icon,m,"".concat(c,"-icon ").concat((x=n.props)===null||x===void 0?void 0:x.hashId)),T=d&&I?zL(p):null,N=_.jsxs("div",{className:oe("".concat(c,"-item-title"),(w=n.props)===null||w===void 0?void 0:w.hashId,z(z(z(z({},"".concat(c,"-item-title-collapsed"),d),"".concat(c,"-item-title-collapsed-level-").concat(o),d),"".concat(c,"-group-item-title"),C==="group"),"".concat(c,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&d)),children:[C==="group"&&d?null:I&&O?_.jsx("span",{className:"".concat(c,"-item-icon ").concat(($=n.props)===null||$===void 0?void 0:$.hashId).trim(),children:O}):T,_.jsx("span",{className:oe("".concat(c,"-item-text"),(E=n.props)===null||E===void 0?void 0:E.hashId,z({},"".concat(c,"-item-text-has-icon"),C!=="group"&&I&&(O||T))),children:p})]}),A=l?l(P(P({},r),{},{isUrl:!1}),N,n.props):N;if(h&&a===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(S,a+1,a);var k=n.getNavMenuItems(S,a+1,h&&a===0&&n.props.collapsed?a:a+1);return[{type:C,key:r.key||r.path,label:A,onClick:h?void 0:r.onTitleClick,children:k,className:oe(z(z(z({},"".concat(c,"-group"),C==="group"),"".concat(c,"-submenu"),C!=="group"),"".concat(c,"-submenu-has-icon"),C!=="group"&&I&&O))},h&&a===0?{type:"divider",prefixCls:u,className:"".concat(c,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:b==null||(R=b.layout)===null||R===void 0||(R=R.sider)===null||R===void 0?void 0:R.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(c,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,a,o)}}),z(this,"getIntlName",function(r){var a=r.name,o=r.locale,i=n.props,l=i.menu,c=i.formatMessage,u=a;return o&&(l==null?void 0:l.locale)!==!1&&(u=c==null?void 0:c({id:o,defaultMessage:a})),n.props.menuTextRender?n.props.menuTextRender(r,u,n.props):u}),z(this,"getMenuItemPath",function(r,a,o){var i,l,c,u,d=n.conversionPath(r.path||"/"),f=n.props,m=f.location,g=m===void 0?{pathname:"/"}:m,h=f.isMobile,b=f.onCollapse,p=f.menuItemRender,S=f.iconPrefixes,C=n.getIntlName(r),x=n.props,w=x.baseClassName,$=x.menu,E=x.collapsed,R=($==null?void 0:$.type)==="group",I=a===0||R&&a===1,O=I?BL(r.icon,S,"".concat(w,"-icon ").concat((i=n.props)===null||i===void 0?void 0:i.hashId)):null,T=E&&I?zL(C):null,N=_.jsxs("div",{className:oe("".concat(w,"-item-title"),(l=n.props)===null||l===void 0?void 0:l.hashId,z(z(z({},"".concat(w,"-item-title-collapsed"),E),"".concat(w,"-item-title-collapsed-level-").concat(o),E),"".concat(w,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&E)),children:[_.jsx("span",{className:"".concat(w,"-item-icon ").concat((c=n.props)===null||c===void 0?void 0:c.hashId).trim(),style:{display:T===null&&!O?"none":""},children:O||_.jsx("span",{className:"anticon",children:T})}),_.jsx("span",{className:oe("".concat(w,"-item-text"),(u=n.props)===null||u===void 0?void 0:u.hashId,z({},"".concat(w,"-item-text-has-icon"),I&&(O||T))),children:C})]},d),A=y3(d);if(A){var k,j,D;N=_.jsxs("span",{onClick:function(){var B,K;(B=window)===null||B===void 0||(K=B.open)===null||K===void 0||K.call(B,d,"_blank")},className:oe("".concat(w,"-item-title"),(k=n.props)===null||k===void 0?void 0:k.hashId,z(z(z(z({},"".concat(w,"-item-title-collapsed"),E),"".concat(w,"-item-title-collapsed-level-").concat(o),E),"".concat(w,"-item-link"),!0),"".concat(w,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&E)),children:[_.jsx("span",{className:"".concat(w,"-item-icon ").concat((j=n.props)===null||j===void 0?void 0:j.hashId).trim(),style:{display:T===null&&!O?"none":""},children:O||_.jsx("span",{className:"anticon",children:T})}),_.jsx("span",{className:oe("".concat(w,"-item-text"),(D=n.props)===null||D===void 0?void 0:D.hashId,z({},"".concat(w,"-item-text-has-icon"),I&&(O||T))),children:C})]},d)}if(p){var F=P(P({},r),{},{isUrl:A,itemPath:d,isMobile:h,replace:d===g.pathname,onClick:function(){return b&&b(!0)},children:void 0});return a===0?_.jsx(LL,{collapsed:E,title:C,disable:r.disabledTooltip,children:p(F,N,n.props)}):p(F,N,n.props)}return a===0?_.jsx(LL,{collapsed:E,title:C,disable:r.disabledTooltip,children:N}):N}),z(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),L9e=function(t,n){var r=n.layout,a=n.collapsed,o={};return t&&!a&&["side","mix"].includes(r||"mix")&&(o={openKeys:t}),o},VY=function(t){var n=t.mode,r=t.className,a=t.handleOpenChange,o=t.style,i=t.menuData,l=t.prefixCls,c=t.menu,u=t.matchMenuKeys,d=t.iconfontUrl,f=t.selectedKeys,m=t.onSelect,g=t.menuRenderType,h=t.openKeys,b=s.useContext(Wr),p=b.dark,S=b.token,C="".concat(l,"-base-menu-").concat(n),x=s.useRef([]),w=_t(c==null?void 0:c.defaultOpenAll),$=ce(w,2),E=$[0],R=$[1],I=_t(function(){return c!=null&&c.defaultOpenAll?AL(i)||[]:h===!1?!1:[]},{value:h===!1?void 0:h,onChange:a}),O=ce(I,2),T=O[0],N=O[1],A=_t([],{value:f,onChange:m?function(q){m&&q&&m(q)}:void 0}),k=ce(A,2),j=k[0],D=k[1];s.useEffect(function(){c!=null&&c.defaultOpenAll||h===!1||u&&(N(u),D(u))},[u.join("-")]),s.useEffect(function(){d&&(HY=oG({scriptUrl:d}))},[d]),s.useEffect(function(){if(u.join("-")!==(j||[]).join("-")&&D(u),!E&&h!==!1&&u.join("-")!==(T||[]).join("-")){var q=u;(c==null?void 0:c.autoClose)===!1&&(q=Array.from(new Set([].concat(ke(u),ke(T||[]))))),N(q)}else c!=null&&c.ignoreFlatMenu&&E?N(AL(i)):R(!1)},[u.join("-")]);var F=s.useMemo(function(){return L9e(T,t)},[T&&T.join(","),t.layout,t.collapsed]),L=k9e(C,n),B=L.wrapSSR,K=L.hashId,W=s.useMemo(function(){return new A9e(P(P({},t),{},{token:S,menuRenderType:g,baseClassName:C,hashId:K}))},[t,S,g,C,K]);if(c!=null&&c.loading)return _.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:_.jsx(ql,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(x.current=u);var V=t.postMenuData?t.postMenuData(i):i;return V&&(V==null?void 0:V.length)<1?null:B(s.createElement(Yl,P(P({},F),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:x.current,theme:p?"dark":"light",selectedKeys:j,style:P({backgroundColor:"transparent",border:"none"},o),className:oe(r,K,C,z(z({},"".concat(C,"-horizontal"),n==="horizontal"),"".concat(C,"-collapsed"),t.collapsed)),items:W.getNavMenuItems(V,0,0),onOpenChange:function(U){t.collapsed||N(U)}},t.menuProps)))};function B9e(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return $n("ProLayoutSiderMenuStylish",function(a){var o=P(P({},a),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[z({},"div".concat(a.proComponentsCls,"-layout"),z({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var z9e=["title","render"],H9e=ee.memo(function(e){return _.jsx(_.Fragment,{children:e.children})}),V9e=li.Sider,HL=li._InternalSiderContext,W9e=HL===void 0?{Provider:H9e}:HL,V3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,a=t.title,o=t.layout,i=t[n];if(i===!1)return null;var l=z3(r),c=_.jsx("h1",{children:a??"Ant Design Pro"});return i?i(l,t.collapsed?null:c,t):t.isMobile?null:o==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?_.jsx("a",{children:l},"title"):_.jsxs("a",{children:[l,c]},"title")},VL=function(t){var n,r=t.collapsed,a=t.originCollapsed,o=t.fixSiderbar,i=t.menuFooterRender,l=t.onCollapse,c=t.theme,u=t.siderWidth,d=t.isMobile,f=t.onMenuHeaderClick,m=t.breakpoint,g=m===void 0?"lg":m,h=t.style,b=t.layout,p=t.menuExtraRender,S=p===void 0?!1:p,C=t.links,x=t.menuContentRender,w=t.collapsedButtonRender,$=t.prefixCls,E=t.avatarProps,R=t.rightContentRender,I=t.actionsRender,O=t.onOpenChange,T=t.stylish,N=t.logoStyle,A=s.useContext(Wr),k=A.hashId,j=s.useMemo(function(){return!(d||b==="mix")},[d,b]),D="".concat($,"-sider"),F=64,L=B9e("".concat(D,".").concat(D,"-stylish"),{stylish:T,proLayoutCollapsedWidth:F}),B=oe("".concat(D),k,z(z(z(z(z(z(z({},"".concat(D,"-fixed"),o),"".concat(D,"-fixed-mix"),b==="mix"&&!d&&o),"".concat(D,"-collapsed"),t.collapsed),"".concat(D,"-layout-").concat(b),b&&!d),"".concat(D,"-light"),c!=="dark"),"".concat(D,"-mix"),b==="mix"&&!d),"".concat(D,"-stylish"),!!T)),K=V3(t),W=S&&S(t),V=s.useMemo(function(){return x!==!1&&s.createElement(VY,P(P({},t),{},{key:"base-menu",mode:r&&!d?"vertical":"inline",handleOpenChange:O,style:{width:"100%"},className:"".concat(D,"-menu ").concat(k).trim()}))},[D,k,x,O,t]),q=(C||[]).map(function(re,fe){return{className:"".concat(D,"-link"),label:re,key:fe}}),U=s.useMemo(function(){return x?x(t,V):V},[x,V,t]),G=s.useMemo(function(){if(!E)return null;var re=E.title,fe=E.render,ue=Ue(E,z9e),de=_.jsxs("div",{className:"".concat(D,"-actions-avatar"),children:[ue!=null&&ue.src||ue!=null&&ue.srcSet||ue.icon||ue.children?_.jsx(wf,P({size:28},ue)):null,E.title&&!r&&_.jsx("span",{children:re})]});return fe?fe(E,de,t):de},[E,D,r]),Y=s.useMemo(function(){return I?_.jsx(Jn,{align:"center",size:4,direction:r?"vertical":"horizontal",className:oe(["".concat(D,"-actions-list"),r&&"".concat(D,"-actions-list-collapsed"),k]),children:[I==null?void 0:I(t)].flat(1).map(function(re,fe){return _.jsx("div",{className:"".concat(D,"-actions-list-item ").concat(k).trim(),children:re},fe)})}):null},[I,D,r]),J=s.useMemo(function(){return _.jsx(H3,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),Q=s.useMemo(function(){if(w===!1)return null;var re=_.jsx(F9e,{isMobile:d,collapsed:a,className:"".concat(D,"-collapsed-button"),onClick:function(){l==null||l(!a)}});return w?w(r,re):re},[w,d,a,D,r,l]),Z=s.useMemo(function(){return!G&&!Y?null:_.jsxs("div",{className:oe("".concat(D,"-actions"),k,r&&"".concat(D,"-actions-collapsed")),children:[G,Y]})},[Y,G,D,r,k]),ne=s.useMemo(function(){var re;return t!=null&&(re=t.menu)!==null&&re!==void 0&&re.hideMenuWhenCollapsed&&r?"".concat(D,"-hide-menu-collapsed"):null},[D,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),ae=i&&(i==null?void 0:i(t)),le=_.jsxs(_.Fragment,{children:[K&&_.jsxs("div",{className:oe([oe("".concat(D,"-logo"),k,z({},"".concat(D,"-logo-collapsed"),r))]),onClick:j?f:void 0,id:"logo",style:N,children:[K,J]}),W&&_.jsx("div",{className:oe(["".concat(D,"-extra"),!K&&"".concat(D,"-extra-no-logo"),k]),children:W}),_.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:U}),_.jsxs(W9e.Provider,{value:{},children:[C?_.jsx("div",{className:"".concat(D,"-links ").concat(k).trim(),children:_.jsx(Yl,{inlineIndent:16,className:"".concat(D,"-link-menu ").concat(k).trim(),selectedKeys:[],openKeys:[],theme:c,mode:"inline",items:q})}):null,j&&_.jsxs(_.Fragment,{children:[Z,!Y&&R?_.jsx("div",{className:oe("".concat(D,"-actions"),k,z({},"".concat(D,"-actions-collapsed"),r)),children:R==null?void 0:R(t)}):null]}),ae&&_.jsx("div",{className:oe(["".concat(D,"-footer"),k,z({},"".concat(D,"-footer-collapsed"),r)]),children:ae})]})]});return L.wrapSSR(_.jsxs(_.Fragment,{children:[o&&!d&&!ne&&_.jsx("div",{style:P({width:r?F:u,overflow:"hidden",flex:"0 0 ".concat(r?F:u,"px"),maxWidth:r?F:u,minWidth:r?F:u,transition:"all 0.2s ease 0s"},h)}),_.jsxs(V9e,{collapsible:!0,trigger:null,collapsed:r,breakpoint:g===!1?void 0:g,onCollapse:function(fe){d||l==null||l(fe)},collapsedWidth:F,style:h,theme:c,width:u,className:oe(B,k,ne),children:[ne?_.jsx("div",{className:"".concat(D,"-hide-when-collapsed ").concat(k).trim(),style:{height:"100%",width:"100%",opacity:ne?0:1},children:le}):le,Q]})]}))},K9e=function(t){var n,r,a,o,i;return z({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,"> div":{height:"44px",color:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgRightActionsItemHover}}}}})};function q9e(e){return $n("ProLayoutRightContent",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[K9e(n)]})}var U9e=["rightContentRender","avatarProps","actionsRender","headerContentRender"],G9e=["title","render"],WY=function(t){var n=t.rightContentRender,r=t.avatarProps,a=t.actionsRender;t.headerContentRender;var o=Ue(t,U9e),i=s.useContext(Mt.ConfigContext),l=i.getPrefixCls,c="".concat(l(),"-pro-global-header"),u=q9e(c),d=u.wrapSSR,f=u.hashId,m=s.useState("auto"),g=ce(m,2),h=g[0],b=g[1],p=s.useMemo(function(){if(!r)return null;var w=r.title,$=r.render,E=Ue(r,G9e),R=[E!=null&&E.src||E!=null&&E.srcSet||E.icon||E.children?s.createElement(wf,P(P({},E),{},{size:28,key:"avatar"})):null,w?_.jsx("span",{style:{marginInlineStart:8},children:w},"name"):void 0];return $?$(r,_.jsx("div",{children:R}),o):_.jsx("div",{children:R})},[r]),S=a||p?function(w){var $=a&&(a==null?void 0:a(w));return!$&&!p?null:Array.isArray($)?d(_.jsxs("div",{className:"".concat(c,"-header-actions ").concat(f).trim(),children:[$.filter(Boolean).map(function(E,R){var I=!1;if(ee.isValidElement(E)){var O;I=!!(E!=null&&(O=E.props)!==null&&O!==void 0&&O["aria-hidden"])}return _.jsx("div",{className:oe("".concat(c,"-header-actions-item ").concat(f),z({},"".concat(c,"-header-actions-hover"),!I)),children:E},R)}),p&&_.jsx("span",{className:"".concat(c,"-header-actions-avatar ").concat(f).trim(),children:p})]})):d(_.jsxs("div",{className:"".concat(c,"-header-actions ").concat(f).trim(),children:[$,p&&_.jsx("span",{className:"".concat(c,"-header-actions-avatar ").concat(f).trim(),children:p})]}))}:void 0,C=k1((function(){var w=mn(ht().mark(function $(E){return ht().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:b(E);case 1:case"end":return I.stop()}},$)}));return function($){return w.apply(this,arguments)}})(),160),x=S||n;return _.jsx("div",{className:"".concat(c,"-right-content ").concat(f).trim(),style:{minWidth:h,height:"100%"},children:_.jsx("div",{style:{height:"100%"},children:_.jsx(Rr,{onResize:function($){var E=$.width;C.run(E)},children:x?_.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:x(P(P({},o),{},{rightContentSize:h}))}):null})})})},Y9e=function(t){var n,r;return z({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":z({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function X9e(e){return $n("ProLayoutTopNavHeader",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[Y9e(n)]})}var KY=function(t){var n,r,a,o,i,l,c,u=s.useRef(null),d=t.onMenuHeaderClick,f=t.contentWidth,m=t.rightContentRender,g=t.className,h=t.style,b=t.headerContentRender,p=t.layout,S=t.actionsRender,C=s.useContext(Mt.ConfigContext),x=C.getPrefixCls,w=s.useContext(Wr),$=w.dark,E="".concat(t.prefixCls||x("pro"),"-top-nav-header"),R=X9e(E),I=R.wrapSSR,O=R.hashId,T=void 0;t.menuHeaderRender!==void 0?T="menuHeaderRender":(p==="mix"||p==="top")&&(T="headerTitleRender");var N=V3(P(P({},t),{},{collapsed:!1}),T),A=s.useContext(Wr),k=A.token,j=s.useMemo(function(){var D,F,L,B,K,W,V,q,U,G,Y,J,Q,Z=_.jsx(Mt,{theme:{hashed:Md(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:P({},uG({colorItemBg:((D=k.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorBgHeader)||"transparent",colorSubItemBg:((F=k.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgHeader)||"transparent",radiusItem:k.borderRadius,colorItemBgSelected:((L=k.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorBgMenuItemSelected)||(k==null?void 0:k.colorBgTextHover),itemHoverBg:((B=k.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorBgMenuItemHover)||(k==null?void 0:k.colorBgTextHover),colorItemBgSelectedHorizontal:((K=k.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorBgMenuItemSelected)||(k==null?void 0:k.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((W=k.layout)===null||W===void 0||(W=W.header)===null||W===void 0?void 0:W.colorTextMenu)||(k==null?void 0:k.colorTextSecondary),colorItemTextHoverHorizontal:((V=k.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuActive)||(k==null?void 0:k.colorText),colorItemTextSelectedHorizontal:((q=k.layout)===null||q===void 0||(q=q.header)===null||q===void 0?void 0:q.colorTextMenuSelected)||(k==null?void 0:k.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((U=k.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((G=k.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((Y=k.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:k==null?void 0:k.colorBgElevated,subMenuItemBg:k==null?void 0:k.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:k==null?void 0:k.colorBgElevated}))},token:{colorBgElevated:((J=k.layout)===null||J===void 0||(J=J.header)===null||J===void 0?void 0:J.colorBgHeader)||"transparent"}},children:_.jsx(VY,P(P(P({theme:$?"dark":"light"},t),{},{className:"".concat(E,"-base-menu ").concat(O).trim()},t.menuProps),{},{style:P({width:"100%"},(Q=t.menuProps)===null||Q===void 0?void 0:Q.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return b?b(t,Z):Z},[(n=k.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=k.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(a=k.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgMenuItemHover,(o=k.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenu,(i=k.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenuActive,(l=k.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorTextMenuSelected,(c=k.layout)===null||c===void 0||(c=c.header)===null||c===void 0?void 0:c.colorBgMenuElevated,k.borderRadius,k==null?void 0:k.colorBgTextHover,k==null?void 0:k.colorTextSecondary,k==null?void 0:k.colorText,k==null?void 0:k.colorTextBase,k.colorBgElevated,$,t,E,O,b]);return I(_.jsx("div",{className:oe(E,O,g,z({},"".concat(E,"-light"),!0)),style:h,children:_.jsxs("div",{ref:u,className:oe("".concat(E,"-main"),O,z({},"".concat(E,"-wide"),f==="Fixed"&&p==="top")),children:[N&&_.jsxs("div",{className:oe("".concat(E,"-main-left ").concat(O)),onClick:d,children:[_.jsx(H3,P({},t)),_.jsx("div",{className:"".concat(E,"-logo ").concat(O).trim(),id:"logo",children:N},"logo")]}),_.jsx("div",{style:{flex:1},className:"".concat(E,"-menu ").concat(O).trim(),children:j}),(m||S||t.avatarProps)&&_.jsx(WY,P(P({rightContentRender:m},t),{},{prefixCls:E}))]})}))},Q9e=function(t){var n,r,a;return z({},t.componentCls,z(z(z(z({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function J9e(e){return $n("ProLayoutGlobalHeader",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[Q9e(n)]})}var Z9e=function(t,n){return t===!1?null:t?t(n,null):n},eze=function(t){var n=t.isMobile,r=t.logo,a=t.collapsed,o=t.onCollapse,i=t.rightContentRender,l=t.menuHeaderRender,c=t.onMenuHeaderClick,u=t.className,d=t.style,f=t.layout,m=t.children,g=t.splitMenus,h=t.menuData,b=t.prefixCls,p=s.useContext(Mt.ConfigContext),S=p.getPrefixCls,C=p.direction,x="".concat(b||S("pro"),"-global-header"),w=J9e(x),$=w.wrapSSR,E=w.hashId,R=oe(u,x,E);if(f==="mix"&&!n&&g){var I=(h||[]).map(function(A){return P(P({},A),{},{children:void 0,routes:void 0})}),O=rC(I);return _.jsx(KY,P(P({mode:"horizontal"},t),{},{splitMenus:!1,menuData:O}))}var T=oe("".concat(x,"-logo"),E,z(z(z({},"".concat(x,"-logo-rtl"),C==="rtl"),"".concat(x,"-logo-mix"),f==="mix"),"".concat(x,"-logo-mobile"),n)),N=_.jsx("span",{className:T,children:_.jsx("a",{children:z3(r)})},"logo");return $(_.jsxs("div",{className:R,style:P({},d),children:[n&&_.jsx("span",{className:"".concat(x,"-collapsed-button ").concat(E).trim(),onClick:function(){o==null||o(!a)},children:_.jsx(P6e,{})}),n&&Z9e(l,N),f==="mix"&&!n&&_.jsxs(_.Fragment,{children:[_.jsx(H3,P({},t)),_.jsx("div",{className:T,onClick:c,children:V3(P(P({},t),{},{collapsed:!1}),"headerTitleRender")})]}),_.jsx("div",{style:{flex:1},children:m}),(i||t.actionsRender||t.avatarProps)&&_.jsx(WY,P({rightContentRender:i},t))]}))},tze=function(t){var n,r,a,o;return z({},"".concat(t.proComponentsCls,"-layout"),z({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function nze(e){return $n("ProLayoutHeader",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[tze(n)]})}function rze(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return $n("ProLayoutHeaderStylish",function(a){var o=P(P({},a),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[z({},"div".concat(a.proComponentsCls,"-layout"),z({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var WL=li.Header,aze=function(t){var n,r,a,o=t.isMobile,i=t.fixedHeader,l=t.className,c=t.style,u=t.collapsed,d=t.prefixCls,f=t.onCollapse,m=t.layout,g=t.headerRender,h=t.headerContentRender,b=s.useContext(Wr),p=b.token,S=s.useContext(Mt.ConfigContext),C=s.useState(!1),x=ce(C,2),w=x[0],$=x[1],E=i||m==="mix",R=s.useCallback(function(){var D=m==="top",F=rC(t.menuData||[]),L=_.jsx(eze,P(P({onCollapse:f},t),{},{menuData:F,children:h&&h(t,null)}));return D&&!o&&(L=_.jsx(KY,P(P({mode:"horizontal",onCollapse:f},t),{},{menuData:F}))),g&&typeof g=="function"?g(t,L):L},[h,g,o,m,f,t]);s.useEffect(function(){var D,F=(S==null||(D=S.getTargetContainer)===null||D===void 0?void 0:D.call(S))||document.body,L=function(){var K,W=F.scrollTop;return W>(((K=p.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.heightLayoutHeader)||56)&&!w?($(!0),!0):(w&&$(!1),!1)};if(E&&!(typeof window>"u"))return F.addEventListener("scroll",L,{passive:!0}),function(){F.removeEventListener("scroll",L)}},[(n=p.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,E,w]);var I=m==="top",O="".concat(d,"-layout-header"),T=nze(O),N=T.wrapSSR,A=T.hashId,k=rze("".concat(O,".").concat(O,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),j=oe(l,A,O,z(z(z(z(z(z(z({},"".concat(O,"-fixed-header"),E),"".concat(O,"-fixed-header-scroll"),w),"".concat(O,"-mix"),m==="mix"),"".concat(O,"-fixed-header-action"),!u),"".concat(O,"-top-menu"),I),"".concat(O,"-header"),!0),"".concat(O,"-stylish"),!!t.stylish));return m==="side"&&!o?null:k.wrapSSR(N(_.jsx(_.Fragment,{children:_.jsxs(Mt,{theme:{hashed:Md(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[E&&_.jsx(WL,{style:P({height:((r=p.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((a=p.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},c)}),_.jsx(WL,{className:j,style:c,children:R()})]})})))};const oze={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},ize=P({},oze),lze={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},sze=P({},lze),cze={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},uze=P({},cze),dze={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},fze=P({},dze),vze={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},mze=P({},vze);var KL={"zh-CN":fze,"zh-TW":mze,"en-US":ize,"it-IT":sze,"ko-KR":uze},gze=function(){if(!yu())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},pze=function(){var t=gze();return KL[t]||KL["zh-CN"]},Qi={},qL;function hze(){if(qL)return Qi;qL=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.TokenData=void 0,Qi.parse=f,Qi.compile=m,Qi.match=b,Qi.pathToRegexp=p,Qi.stringify=w;const e="/",t=R=>R,n=/^[$_\p{ID_Start}]$/u,r=/^[$\u200c\u200d\p{ID_Continue}]$/u,a="https://git.new/pathToRegexpError",o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function i(R){return R.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function l(R){return R.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*c(R){const I=[...R];let O=0;function T(){let N="";if(n.test(I[++O]))for(N+=I[O];r.test(I[++O]);)N+=I[O];else if(I[O]==='"'){let A=O;for(;Oh(N,I,O));return N=>{const A=[""];for(const k of T){const[j,...D]=k(N);A[0]+=j,A.push(...D)}return A}}function h(R,I,O){if(R.type==="text")return()=>[R.value];if(R.type==="group"){const N=g(R.tokens,I,O);return A=>{const[k,...j]=N(A);return j.length?[""]:[k]}}const T=O||t;return R.type==="wildcard"&&O!==!1?N=>{const A=N[R.name];if(A==null)return["",R.name];if(!Array.isArray(A)||A.length===0)throw new TypeError(`Expected "${R.name}" to be a non-empty array`);return[A.map((k,j)=>{if(typeof k!="string")throw new TypeError(`Expected "${R.name}/${j}" to be a string`);return T(k)}).join(I)]}:N=>{const A=N[R.name];if(A==null)return["",R.name];if(typeof A!="string")throw new TypeError(`Expected "${R.name}" to be a string`);return[T(A)]}}function b(R,I={}){const{decode:O=decodeURIComponent,delimiter:T=e}=I,{regexp:N,keys:A}=p(R,I),k=A.map(j=>O===!1?t:j.type==="param"?O:D=>D.split(T).map(O));return function(D){const F=N.exec(D);if(!F)return!1;const L=F[0],B=Object.create(null);for(let K=1;KW instanceof d?W:f(W,I));for(const{tokens:W}of L)for(const V of S(W,0,[])){const q=C(V,O,k);j.push(q)}let B=`^(?:${j.join("|")})`;return A&&(B+=`(?:${l(O)}$)?`),B+=T?"$":`(?=${l(O)}|$)`,{regexp:new RegExp(B,D),keys:k}}function*S(R,I,O){if(I===R.length)return yield O;const T=R[I];if(T.type==="group"){const N=O.slice();for(const A of S(T.tokens,0,N))yield*S(R,I+1,A)}else O.push(T);yield*S(R,I+1,O)}function C(R,I,O){let T="",N="",A=!0;for(let k=0;kr.test(T)):!1}function E(R){return(R==null?void 0:R.type)!=="text"?!0:!r.test(R.value[0])}return Qi}var UI=hze(),bze=function(t,n,r){if(r){var a=ke(r.keys()).find(function(i){try{return i.startsWith("http")?!1:UI.match(i)(t)}catch(l){return console.log("key",i,l),!1}});if(a)return r.get(a)}if(n){var o=Object.keys(n).find(function(i){try{return i!=null&&i.startsWith("http")?!1:UI.match(i)(t)}catch(l){return console.log("key",i,l),!1}});if(o)return n[o]}return{path:""}},UL=function(t,n){var r=t.pathname,a=r===void 0?"/":r,o=t.breadcrumb,i=t.breadcrumbMap,l=t.formatMessage,c=t.title,u=t.menu,d=u===void 0?{locale:!1}:u,f=n?"":c||"",m=bze(a,o,i);if(!m)return{title:f,id:"",pageName:f};var g=m.name;return d.locale!==!1&&m.locale&&l&&(g=l({id:m.locale||"",defaultMessage:m.name})),g?c?{title:"".concat(g," - ").concat(c),id:m.locale||"",pageName:g}:{title:g,id:m.locale||"",pageName:g}:{title:f,id:m.locale||"",pageName:f}},ya={},GL;function yze(){if(GL)return ya;GL=1;function e(h){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},e(h)}Object.defineProperty(ya,"__esModule",{value:!0}),ya.pathToRegexp=ya.tokensToRegexp=ya.regexpToFunction=ya.match=ya.tokensToFunction=ya.compile=ya.parse=void 0;function t(h){for(var b=[],p=0;p=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122||w===95){C+=h[x++];continue}break}if(!C)throw new TypeError("Missing parameter name at "+p);b.push({type:"NAME",index:p,value:C}),p=x;continue}if(S==="("){var $=1,E="",x=p+1;if(h[x]==="?")throw new TypeError('Pattern cannot start with "?" at '+x);for(;x-1:B===void 0;C||(N+="(?:"+T+"(?="+O+"))?"),K||(N+="(?="+T+"|"+O+")")}return new RegExp(N,c(p))}ya.tokensToRegexp=m;function g(h,b,p){return h instanceof RegExp?u(h,b):Array.isArray(h)?d(h,b,p):f(h,b,p)}return ya.pathToRegexp=g,ya}var lb=yze();function rl(e,t){return t>>>e|t<<32-e}function Cze(e,t,n){return e&t^~e&n}function Sze(e,t,n){return e&t^e&n^t&n}function xze(e){return rl(2,e)^rl(13,e)^rl(22,e)}function wze(e){return rl(6,e)^rl(11,e)^rl(25,e)}function $ze(e){return rl(7,e)^rl(18,e)^e>>>3}function Eze(e){return rl(17,e)^rl(19,e)^e>>>10}function Pze(e,t){return e[t&15]+=Eze(e[t+14&15])+e[t+9&15]+$ze(e[t+1&15])}var Oze=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],hr,Da,ra,Ize="0123456789abcdef";function YL(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Rze(){hr=new Array(8),Da=new Array(2),ra=new Array(64),Da[0]=Da[1]=0,hr[0]=1779033703,hr[1]=3144134277,hr[2]=1013904242,hr[3]=2773480762,hr[4]=1359893119,hr[5]=2600822924,hr[6]=528734635,hr[7]=1541459225}function GI(){var e,t,n,r,a,o,i,l,c,u,d=new Array(16);e=hr[0],t=hr[1],n=hr[2],r=hr[3],a=hr[4],o=hr[5],i=hr[6],l=hr[7];for(var f=0;f<16;f++)d[f]=ra[(f<<2)+3]|ra[(f<<2)+2]<<8|ra[(f<<2)+1]<<16|ra[f<<2]<<24;for(var m=0;m<64;m++)c=l+wze(a)+Cze(a,o,i)+Oze[m],m<16?c+=d[m]:c+=Pze(d,m),u=xze(e)+Sze(e,t,n),l=i,i=o,o=a,a=YL(r,c),r=n,n=t,t=e,e=YL(c,u);hr[0]+=e,hr[1]+=t,hr[2]+=n,hr[3]+=r,hr[4]+=a,hr[5]+=o,hr[6]+=i,hr[7]+=l}function Mze(e,t){var n,r,a=0;r=Da[0]>>3&63;var o=t&63;for((Da[0]+=t<<3)>29,n=0;n+63>3&63;if(ra[e++]=128,e<=56)for(var t=e;t<56;t++)ra[t]=0;else{for(var n=e;n<64;n++)ra[n]=0;GI();for(var r=0;r<56;r++)ra[r]=0}ra[56]=Da[1]>>>24&255,ra[57]=Da[1]>>>16&255,ra[58]=Da[1]>>>8&255,ra[59]=Da[1]&255,ra[60]=Da[0]>>>24&255,ra[61]=Da[0]>>>16&255,ra[62]=Da[0]>>>8&255,ra[63]=Da[0]&255,GI()}function Nze(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=Ize.charAt(hr[t]>>>n&15);return e}function _ze(e){return Rze(),Mze(e,e.length),Tze(),Nze()}var jze=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function mf(e){"@babel/helpers - typeof";return mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mf(e)}function Fze(e,t){return Aze(e)||kze(e,t)||K3(e,t)||Dze()}function Dze(){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 kze(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}function Aze(e){if(Array.isArray(e))return e}function Lze(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=K3(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){l=!0,o=u},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw o}}}}function Bze(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zze(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||q3(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},aHe=function(t,n){var r=t.menu,a=r===void 0?{}:r,o=t.indexRoute,i=t.path,l=i===void 0?"":i,c=t.children||[],u=a.name,d=u===void 0?t.name:u,f=a.icon,m=f===void 0?t.icon:f,g=a.hideChildren,h=g===void 0?t.hideChildren:g,b=a.flatMenu,p=b===void 0?t.flatMenu:b,S=o&&Object.keys(o).join(",")!=="redirect"?[Qr({path:l,menu:a},o)].concat(c||[]):c,C=Qr({},t);if(d&&(C.name=d),m&&(C.icon=m),S&&S.length){if(h)return delete C.children,C;var x=U3(Qr(Qr({},n),{},{data:S}),t);if(p)return x;delete C[No]}return C},Gc=function(t){return Array.isArray(t)&&t.length>0};function U3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,a=e.parentName,o=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(i){return i?Gc(i.children)||i.path||i.originPath||i.layout?!0:(i.redirect||i.unaccessible,!1):!1}).filter(function(i){var l,c;return!(i==null||(l=i.menu)===null||l===void 0)&&l.name||i!=null&&i.flatMenu||!(i==null||(c=i.menu)===null||c===void 0)&&c.flatMenu?!0:i.menu!==!1}).map(function(i){var l=Qr(Qr({},i),{},{path:i.path||i.originPath});return!l.children&&l[No]&&(l.children=l[No],delete l[No]),l.unaccessible&&delete l.name,l.path==="*"&&(l.path="."),l.path==="/*"&&(l.path="."),!l.path&&l.originPath&&(l.path=l.originPath),l}).map(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},l=i.children||i[No]||[],c=UY(i.path,t?t.path:"/"),u=i.name,d=rHe(i,a||"menu"),f=d!==!1&&o!==!1&&r&&d?r({id:d,defaultMessage:u}):u,m=t.pro_layout_parentKeys,g=m===void 0?[]:m;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var h=Jze(t,jze),b=new Set([].concat(XI(g),XI(i.parentKeys||[])));t.key&&b.add(t.key);var p=Qr(Qr(Qr({},h),{},{menu:void 0},i),{},{path:c,locale:d,key:i.key||nHe(Qr(Qr({},i),{},{path:c})),pro_layout_parentKeys:Array.from(b).filter(function(C){return C&&C!=="/"})});if(f?p.name=f:delete p.name,p.menu===void 0&&delete p.menu,Gc(l)){var S=U3(Qr(Qr({},e),{},{data:l,parentName:d||""}),p);Gc(S)&&(p.children=S)}return aHe(p,e)}).flat(1)}var GY=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||Gc(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=Qr({},n),a=r.children||n[No]||[];if(delete r[No],Gc(a)&&!r.hideChildrenInMenu&&a.some(function(i){return i&&!!i.name})){var o=GY(a);if(o.length)return Qr(Qr({},r),{},{children:o})}return Qr({},n)}).filter(function(n){return n})},oHe=(function(e){function t(){return Bze(this,t),Vze(this,t,arguments)}return qze(t,e),Hze(t,[{key:"get",value:function(r){var a;try{var o=Lze(this.entries()),i;try{for(o.s();!(i=o.n()).done;){var l=Fze(i.value,2),c=l[0],u=l[1],d=Jg(c);if(!q3(c)&&lb.pathToRegexp(d,[]).test(r)){a=u;break}}}catch(f){o.e(f)}finally{o.f()}}catch{a=void 0}return a}}])})(YI(Map)),iHe=function(t){var n=new oHe,r=function(o,i){o.forEach(function(l){var c=l.children||l[No]||[];Gc(c)&&r(c,l);var u=UY(l.path,i?i.path:"/");n.set(Jg(u),l)})};return r(t),n},YY=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[No];if(Gc(r)){var a=YY(r);if(a.length)return Qr({},n)}var o=Qr({},n);return delete o[No],delete o.children,o}).filter(function(n){return n})},lHe=function(t,n,r,a){var o=U3({data:XI(t).map(function(c){return Qr({},c)}),formatMessage:r,locale:n}),i=a?YY(o):GY(o),l=iHe(o);return{breadcrumb:l,menuData:i}};function ng(e){"@babel/helpers - typeof";return ng=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ng(e)}function QL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vv(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var a=Vv({},r);if(!(!a||!a.key)){!a.children&&a[No]&&(a.children=a[No],delete a[No]);var o=a.children||[];n[Jg(a.path||a.key||"/")]=Vv({},a),n[a.key||a.path||"/"]=Vv({},a),o&&(n=Vv(Vv({},n),XY(o)))}}),n},dHe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(a){if(a==="/"&&n==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!q3(a)){var o=Jg(a);try{if(r&&lb.pathToRegexp("".concat(o)).test(n)||lb.pathToRegexp("".concat(o),[]).test(n)||lb.pathToRegexp("".concat(o,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(a,o){return a===n?10:o===n?-10:a.substr(1).split("/").length-o.substr(1).split("/").length})},fHe=function(t,n,r,a){var o=XY(n),i=Object.keys(o),l=dHe(i,t,a);return!l||l.length<1?[]:l.map(function(c){var u=o[c]||{pro_layout_parentKeys:"",key:""},d=new Map,f=(u.pro_layout_parentKeys||[]).map(function(m){return d.has(m)?null:(d.set(m,!0),o[m])}).filter(function(m){return m});return u.key&&f.push(u),f}).flat(1)},vHe=function(t){var n=s.useContext(Wr),r=n.hashId,a=t.style,o=t.prefixCls,i=t.children,l=t.hasPageContainer,c=l===void 0?0:l,u=oe("".concat(o,"-content"),r,z(z({},"".concat(o,"-has-header"),t.hasHeader),"".concat(o,"-content-has-page-container"),c>0)),d=t.ErrorBoundary||eG;return t.ErrorBoundary===!1?_.jsx(li.Content,{className:u,style:a,children:i}):_.jsx(d,{children:_.jsx(li.Content,{className:u,style:a,children:i})})},mHe=function(){return _.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[_.jsxs("defs",{children:[_.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[_.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),_.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),_.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[_.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),_.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),_.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),_.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[_.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),_.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),_.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),_.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[_.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),_.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),_.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),_.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:_.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:_.jsx("g",{transform:"translate(20.000000, 20.000000)",children:_.jsxs("g",{children:[_.jsxs("g",{fillRule:"nonzero",children:[_.jsxs("g",{children:[_.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),_.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),_.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),_.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},JL=new Cn("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),gHe=function(t){var n,r,a,o,i,l,c,u,d,f,m,g;return z({},"".concat(t.proComponentsCls,"-layout"),z(z(z({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,z(z(z(z(z(z(z(z(z({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),z(z({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:not(").concat(t.antCls,"-menu-item-selected):hover"),{color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuTitle,animationName:JL,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":z({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(d=t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:JL,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((m=t.layout)===null||m===void 0||(m=m.header)===null||m===void 0?void 0:m.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((g=t.layout)===null||g===void 0||(g=g.header)===null||g===void 0?void 0:g.heightLayoutHeader)||56,"px")}}))};function pHe(e,t){var n=t.proLayoutCollapsedWidth;return $n("ProLayoutSiderMenu",function(r){var a=P(P({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[gHe(a)]})}var ZL=function(t){var n,r=t.isMobile,a=t.siderWidth,o=t.collapsed,i=t.onCollapse,l=t.style,c=t.className,u=t.hide,d=t.prefixCls,f=t.getContainer,m=s.useContext(Wr),g=m.token;s.useEffect(function(){r===!0&&(i==null||i(!0))},[r]);var h=nn(t,["className","style"]),b=ee.useContext(Mt.ConfigContext),p=b.direction,S=pHe("".concat(d,"-sider"),{proLayoutCollapsedWidth:64}),C=S.wrapSSR,x=S.hashId,w=oe("".concat(d,"-sider"),c,x);if(u)return null;var $=bu(!o,function(){return i==null?void 0:i(!0)});return C(r?_.jsx(N4,P(P({placement:p==="rtl"?"right":"left",className:oe("".concat(d,"-drawer-sider"),c)},$),{},{style:P({padding:0,height:"100vh"},l),onClose:function(){i==null||i(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:a,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=g.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:_.jsx(VL,P(P({},h),{},{isMobile:!0,className:w,collapsed:r?!1:o,splitMenus:!1,originCollapsed:o}))})):_.jsx(VL,P(P({className:w,originCollapsed:o},h),{},{style:l})))},hHe=function(){var t;return typeof process>"u"?uo:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||uo},bHe=function(t){var n,r,a,o,i,l,c,u,d,f,m,g,h,b,p,S,C,x,w,$,E,R,I,O,T,N,A,k,j,D,F,L;return(n=hHe())!==null&&n!==void 0&&n.startsWith("5")?{}:z(z(z({},t.componentCls,z(z({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(E={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},z(z(z(z(z(z(z(z(z(z(E,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),z(z({color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),z({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active, + `).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:o==null?void 0:o.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),z({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",z(z(z(z(z({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",z(z({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),z({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),z(z({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",z({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:z({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),z({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},z({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function cze(e,t){return En("ProLayoutBaseMenu"+t,function(n){var r=P(P({},n),{},{componentCls:".".concat(e)});return[sze(r,t||"inline")]})}var nB=function(t){var n=s.useState(t.collapsed),r=ce(n,2),a=r[0],o=r[1],i=s.useState(!1),l=ce(i,2),c=l[0],u=l[1];return s.useEffect(function(){u(!1),setTimeout(function(){o(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:N.jsx(Bn,{title:t.title,open:a&&t.collapsed?c:!1,placement:"right",onOpenChange:u,children:t.children})},iX=wG({scriptUrl:oX.iconfontUrl}),rB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(T3(t)||UTe(t))return N.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return N.jsx(iX,{type:t})}return t},aB=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},uze=lr(function e(t){var n=this;ir(this,e),z(this,"props",void 0),z(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return r.map(function(i){return n.getSubMenuOrItem(i,a,o)}).filter(function(i){return i}).flat(1)}),z(this,"getSubMenuOrItem",function(r,a,o){var i=n.props,l=i.subMenuItemRender,c=i.baseClassName,u=i.prefixCls,d=i.collapsed,f=i.menu,m=i.iconPrefixes,g=i.layout,h=(f==null?void 0:f.type)==="group"&&g!=="top",b=n.props.token,p=n.getIntlName(r),S=(r==null?void 0:r.children)||(r==null?void 0:r.routes),C=h&&a===0?"group":void 0;if(Array.isArray(S)&&S.length>0){var x,w,$,E,R,I=a===0||h&&a===1,O=rB(r.icon,m,"".concat(c,"-icon ").concat((x=n.props)===null||x===void 0?void 0:x.hashId)),T=d&&I?aB(p):null,_=N.jsxs("div",{className:oe("".concat(c,"-item-title"),(w=n.props)===null||w===void 0?void 0:w.hashId,z(z(z(z({},"".concat(c,"-item-title-collapsed"),d),"".concat(c,"-item-title-collapsed-level-").concat(o),d),"".concat(c,"-group-item-title"),C==="group"),"".concat(c,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&d)),children:[C==="group"&&d?null:I&&O?N.jsx("span",{className:"".concat(c,"-item-icon ").concat(($=n.props)===null||$===void 0?void 0:$.hashId).trim(),children:O}):T,N.jsx("span",{className:oe("".concat(c,"-item-text"),(E=n.props)===null||E===void 0?void 0:E.hashId,z({},"".concat(c,"-item-text-has-icon"),C!=="group"&&I&&(O||T))),children:p})]}),k=l?l(P(P({},r),{},{isUrl:!1}),_,n.props):_;if(h&&a===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(S,a+1,a);var A=n.getNavMenuItems(S,a+1,h&&a===0&&n.props.collapsed?a:a+1);return[{type:C,key:r.key||r.path,label:k,onClick:h?void 0:r.onTitleClick,children:A,className:oe(z(z(z({},"".concat(c,"-group"),C==="group"),"".concat(c,"-submenu"),C!=="group"),"".concat(c,"-submenu-has-icon"),C!=="group"&&I&&O))},h&&a===0?{type:"divider",prefixCls:u,className:"".concat(c,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:b==null||(R=b.layout)===null||R===void 0||(R=R.sider)===null||R===void 0?void 0:R.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(c,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,a,o)}}),z(this,"getIntlName",function(r){var a=r.name,o=r.locale,i=n.props,l=i.menu,c=i.formatMessage,u=a;return o&&(l==null?void 0:l.locale)!==!1&&(u=c==null?void 0:c({id:o,defaultMessage:a})),n.props.menuTextRender?n.props.menuTextRender(r,u,n.props):u}),z(this,"getMenuItemPath",function(r,a,o){var i,l,c,u,d=n.conversionPath(r.path||"/"),f=n.props,m=f.location,g=m===void 0?{pathname:"/"}:m,h=f.isMobile,b=f.onCollapse,p=f.menuItemRender,S=f.iconPrefixes,C=n.getIntlName(r),x=n.props,w=x.baseClassName,$=x.menu,E=x.collapsed,R=($==null?void 0:$.type)==="group",I=a===0||R&&a===1,O=I?rB(r.icon,S,"".concat(w,"-icon ").concat((i=n.props)===null||i===void 0?void 0:i.hashId)):null,T=E&&I?aB(C):null,_=N.jsxs("div",{className:oe("".concat(w,"-item-title"),(l=n.props)===null||l===void 0?void 0:l.hashId,z(z(z({},"".concat(w,"-item-title-collapsed"),E),"".concat(w,"-item-title-collapsed-level-").concat(o),E),"".concat(w,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&E)),children:[N.jsx("span",{className:"".concat(w,"-item-icon ").concat((c=n.props)===null||c===void 0?void 0:c.hashId).trim(),style:{display:T===null&&!O?"none":""},children:O||N.jsx("span",{className:"anticon",children:T})}),N.jsx("span",{className:oe("".concat(w,"-item-text"),(u=n.props)===null||u===void 0?void 0:u.hashId,z({},"".concat(w,"-item-text-has-icon"),I&&(O||T))),children:C})]},d),k=T3(d);if(k){var A,j,D;_=N.jsxs("span",{onClick:function(){var B,K;(B=window)===null||B===void 0||(K=B.open)===null||K===void 0||K.call(B,d,"_blank")},className:oe("".concat(w,"-item-title"),(A=n.props)===null||A===void 0?void 0:A.hashId,z(z(z(z({},"".concat(w,"-item-title-collapsed"),E),"".concat(w,"-item-title-collapsed-level-").concat(o),E),"".concat(w,"-item-link"),!0),"".concat(w,"-item-collapsed-show-title"),($==null?void 0:$.collapsedShowTitle)&&E)),children:[N.jsx("span",{className:"".concat(w,"-item-icon ").concat((j=n.props)===null||j===void 0?void 0:j.hashId).trim(),style:{display:T===null&&!O?"none":""},children:O||N.jsx("span",{className:"anticon",children:T})}),N.jsx("span",{className:oe("".concat(w,"-item-text"),(D=n.props)===null||D===void 0?void 0:D.hashId,z({},"".concat(w,"-item-text-has-icon"),I&&(O||T))),children:C})]},d)}if(p){var F=P(P({},r),{},{isUrl:k,itemPath:d,isMobile:h,replace:d===g.pathname,onClick:function(){return b&&b(!0)},children:void 0});return a===0?N.jsx(nB,{collapsed:E,title:C,disable:r.disabledTooltip,children:p(F,_,n.props)}):p(F,_,n.props)}return a===0?N.jsx(nB,{collapsed:E,title:C,disable:r.disabledTooltip,children:_}):_}),z(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),dze=function(t,n){var r=n.layout,a=n.collapsed,o={};return t&&!a&&["side","mix"].includes(r||"mix")&&(o={openKeys:t}),o},lX=function(t){var n=t.mode,r=t.className,a=t.handleOpenChange,o=t.style,i=t.menuData,l=t.prefixCls,c=t.menu,u=t.matchMenuKeys,d=t.iconfontUrl,f=t.selectedKeys,m=t.onSelect,g=t.menuRenderType,h=t.openKeys,b=s.useContext(qr),p=b.dark,S=b.token,C="".concat(l,"-base-menu-").concat(n),x=s.useRef([]),w=Nt(c==null?void 0:c.defaultOpenAll),$=ce(w,2),E=$[0],R=$[1],I=Nt(function(){return c!=null&&c.defaultOpenAll?tB(i)||[]:h===!1?!1:[]},{value:h===!1?void 0:h,onChange:a}),O=ce(I,2),T=O[0],_=O[1],k=Nt([],{value:f,onChange:m?function(q){m&&q&&m(q)}:void 0}),A=ce(k,2),j=A[0],D=A[1];s.useEffect(function(){c!=null&&c.defaultOpenAll||h===!1||u&&(_(u),D(u))},[u.join("-")]),s.useEffect(function(){d&&(iX=wG({scriptUrl:d}))},[d]),s.useEffect(function(){if(u.join("-")!==(j||[]).join("-")&&D(u),!E&&h!==!1&&u.join("-")!==(T||[]).join("-")){var q=u;(c==null?void 0:c.autoClose)===!1&&(q=Array.from(new Set([].concat(ke(u),ke(T||[]))))),_(q)}else c!=null&&c.ignoreFlatMenu&&E?_(tB(i)):R(!1)},[u.join("-")]);var F=s.useMemo(function(){return dze(T,t)},[T&&T.join(","),t.layout,t.collapsed]),L=cze(C,n),B=L.wrapSSR,K=L.hashId,W=s.useMemo(function(){return new uze(P(P({},t),{},{token:S,menuRenderType:g,baseClassName:C,hashId:K}))},[t,S,g,C,K]);if(c!=null&&c.loading)return N.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:N.jsx(ql,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(x.current=u);var V=t.postMenuData?t.postMenuData(i):i;return V&&(V==null?void 0:V.length)<1?null:B(s.createElement(Yl,P(P({},F),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:x.current,theme:p?"dark":"light",selectedKeys:j,style:P({backgroundColor:"transparent",border:"none"},o),className:oe(r,K,C,z(z({},"".concat(C,"-horizontal"),n==="horizontal"),"".concat(C,"-collapsed"),t.collapsed)),items:W.getNavMenuItems(V,0,0),onOpenChange:function(U){t.collapsed||_(U)}},t.menuProps)))};function fze(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return En("ProLayoutSiderMenuStylish",function(a){var o=P(P({},a),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[z({},"div".concat(a.proComponentsCls,"-layout"),z({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var vze=["title","render"],mze=ee.memo(function(e){return N.jsx(N.Fragment,{children:e.children})}),gze=ci.Sider,oB=ci._InternalSiderContext,pze=oB===void 0?{Provider:mze}:oB,tM=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,a=t.title,o=t.layout,i=t[n];if(i===!1)return null;var l=Z3(r),c=N.jsx("h1",{children:a??"Ant Design Pro"});return i?i(l,t.collapsed?null:c,t):t.isMobile?null:o==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?N.jsx("a",{children:l},"title"):N.jsxs("a",{children:[l,c]},"title")},iB=function(t){var n,r=t.collapsed,a=t.originCollapsed,o=t.fixSiderbar,i=t.menuFooterRender,l=t.onCollapse,c=t.theme,u=t.siderWidth,d=t.isMobile,f=t.onMenuHeaderClick,m=t.breakpoint,g=m===void 0?"lg":m,h=t.style,b=t.layout,p=t.menuExtraRender,S=p===void 0?!1:p,C=t.links,x=t.menuContentRender,w=t.collapsedButtonRender,$=t.prefixCls,E=t.avatarProps,R=t.rightContentRender,I=t.actionsRender,O=t.onOpenChange,T=t.stylish,_=t.logoStyle,k=s.useContext(qr),A=k.hashId,j=s.useMemo(function(){return!(d||b==="mix")},[d,b]),D="".concat($,"-sider"),F=64,L=fze("".concat(D,".").concat(D,"-stylish"),{stylish:T,proLayoutCollapsedWidth:F}),B=oe("".concat(D),A,z(z(z(z(z(z(z({},"".concat(D,"-fixed"),o),"".concat(D,"-fixed-mix"),b==="mix"&&!d&&o),"".concat(D,"-collapsed"),t.collapsed),"".concat(D,"-layout-").concat(b),b&&!d),"".concat(D,"-light"),c!=="dark"),"".concat(D,"-mix"),b==="mix"&&!d),"".concat(D,"-stylish"),!!T)),K=tM(t),W=S&&S(t),V=s.useMemo(function(){return x!==!1&&s.createElement(lX,P(P({},t),{},{key:"base-menu",mode:r&&!d?"vertical":"inline",handleOpenChange:O,style:{width:"100%"},className:"".concat(D,"-menu ").concat(A).trim()}))},[D,A,x,O,t]),q=(C||[]).map(function(re,fe){return{className:"".concat(D,"-link"),label:re,key:fe}}),U=s.useMemo(function(){return x?x(t,V):V},[x,V,t]),G=s.useMemo(function(){if(!E)return null;var re=E.title,fe=E.render,ue=Ue(E,vze),de=N.jsxs("div",{className:"".concat(D,"-actions-avatar"),children:[ue!=null&&ue.src||ue!=null&&ue.srcSet||ue.icon||ue.children?N.jsx($f,P({size:28},ue)):null,E.title&&!r&&N.jsx("span",{children:re})]});return fe?fe(E,de,t):de},[E,D,r]),Y=s.useMemo(function(){return I?N.jsx(qn,{align:"center",size:4,direction:r?"vertical":"horizontal",className:oe(["".concat(D,"-actions-list"),r&&"".concat(D,"-actions-list-collapsed"),A]),children:[I==null?void 0:I(t)].flat(1).map(function(re,fe){return N.jsx("div",{className:"".concat(D,"-actions-list-item ").concat(A).trim(),children:re},fe)})}):null},[I,D,r]),J=s.useMemo(function(){return N.jsx(eM,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),Q=s.useMemo(function(){if(w===!1)return null;var re=N.jsx(lze,{isMobile:d,collapsed:a,className:"".concat(D,"-collapsed-button"),onClick:function(){l==null||l(!a)}});return w?w(r,re):re},[w,d,a,D,r,l]),Z=s.useMemo(function(){return!G&&!Y?null:N.jsxs("div",{className:oe("".concat(D,"-actions"),A,r&&"".concat(D,"-actions-collapsed")),children:[G,Y]})},[Y,G,D,r,A]),ne=s.useMemo(function(){var re;return t!=null&&(re=t.menu)!==null&&re!==void 0&&re.hideMenuWhenCollapsed&&r?"".concat(D,"-hide-menu-collapsed"):null},[D,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),ae=i&&(i==null?void 0:i(t)),le=N.jsxs(N.Fragment,{children:[K&&N.jsxs("div",{className:oe([oe("".concat(D,"-logo"),A,z({},"".concat(D,"-logo-collapsed"),r))]),onClick:j?f:void 0,id:"logo",style:_,children:[K,J]}),W&&N.jsx("div",{className:oe(["".concat(D,"-extra"),!K&&"".concat(D,"-extra-no-logo"),A]),children:W}),N.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:U}),N.jsxs(pze.Provider,{value:{},children:[C?N.jsx("div",{className:"".concat(D,"-links ").concat(A).trim(),children:N.jsx(Yl,{inlineIndent:16,className:"".concat(D,"-link-menu ").concat(A).trim(),selectedKeys:[],openKeys:[],theme:c,mode:"inline",items:q})}):null,j&&N.jsxs(N.Fragment,{children:[Z,!Y&&R?N.jsx("div",{className:oe("".concat(D,"-actions"),A,z({},"".concat(D,"-actions-collapsed"),r)),children:R==null?void 0:R(t)}):null]}),ae&&N.jsx("div",{className:oe(["".concat(D,"-footer"),A,z({},"".concat(D,"-footer-collapsed"),r)]),children:ae})]})]});return L.wrapSSR(N.jsxs(N.Fragment,{children:[o&&!d&&!ne&&N.jsx("div",{style:P({width:r?F:u,overflow:"hidden",flex:"0 0 ".concat(r?F:u,"px"),maxWidth:r?F:u,minWidth:r?F:u,transition:"all 0.2s ease 0s"},h)}),N.jsxs(gze,{collapsible:!0,trigger:null,collapsed:r,breakpoint:g===!1?void 0:g,onCollapse:function(fe){d||l==null||l(fe)},collapsedWidth:F,style:h,theme:c,width:u,className:oe(B,A,ne),children:[ne?N.jsx("div",{className:"".concat(D,"-hide-when-collapsed ").concat(A).trim(),style:{height:"100%",width:"100%",opacity:ne?0:1},children:le}):le,Q]})]}))},hze=function(t){var n,r,a,o,i;return z({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,"> div":{height:"44px",color:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgRightActionsItemHover}}}}})};function bze(e){return En("ProLayoutRightContent",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[hze(n)]})}var yze=["rightContentRender","avatarProps","actionsRender","headerContentRender"],Cze=["title","render"],sX=function(t){var n=t.rightContentRender,r=t.avatarProps,a=t.actionsRender;t.headerContentRender;var o=Ue(t,yze),i=s.useContext(Rt.ConfigContext),l=i.getPrefixCls,c="".concat(l(),"-pro-global-header"),u=bze(c),d=u.wrapSSR,f=u.hashId,m=s.useState("auto"),g=ce(m,2),h=g[0],b=g[1],p=s.useMemo(function(){if(!r)return null;var w=r.title,$=r.render,E=Ue(r,Cze),R=[E!=null&&E.src||E!=null&&E.srcSet||E.icon||E.children?s.createElement($f,P(P({},E),{},{size:28,key:"avatar"})):null,w?N.jsx("span",{style:{marginInlineStart:8},children:w},"name"):void 0];return $?$(r,N.jsx("div",{children:R}),o):N.jsx("div",{children:R})},[r]),S=a||p?function(w){var $=a&&(a==null?void 0:a(w));return!$&&!p?null:Array.isArray($)?d(N.jsxs("div",{className:"".concat(c,"-header-actions ").concat(f).trim(),children:[$.filter(Boolean).map(function(E,R){var I=!1;if(ee.isValidElement(E)){var O;I=!!(E!=null&&(O=E.props)!==null&&O!==void 0&&O["aria-hidden"])}return N.jsx("div",{className:oe("".concat(c,"-header-actions-item ").concat(f),z({},"".concat(c,"-header-actions-hover"),!I)),children:E},R)}),p&&N.jsx("span",{className:"".concat(c,"-header-actions-avatar ").concat(f).trim(),children:p})]})):d(N.jsxs("div",{className:"".concat(c,"-header-actions ").concat(f).trim(),children:[$,p&&N.jsx("span",{className:"".concat(c,"-header-actions-avatar ").concat(f).trim(),children:p})]}))}:void 0,C=W1((function(){var w=gn(ht().mark(function $(E){return ht().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:b(E);case 1:case"end":return I.stop()}},$)}));return function($){return w.apply(this,arguments)}})(),160),x=S||n;return N.jsx("div",{className:"".concat(c,"-right-content ").concat(f).trim(),style:{minWidth:h,height:"100%"},children:N.jsx("div",{style:{height:"100%"},children:N.jsx(Mr,{onResize:function($){var E=$.width;C.run(E)},children:x?N.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:x(P(P({},o),{},{rightContentSize:h}))}):null})})})},Sze=function(t){var n,r;return z({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":z({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function xze(e){return En("ProLayoutTopNavHeader",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[Sze(n)]})}var cX=function(t){var n,r,a,o,i,l,c,u=s.useRef(null),d=t.onMenuHeaderClick,f=t.contentWidth,m=t.rightContentRender,g=t.className,h=t.style,b=t.headerContentRender,p=t.layout,S=t.actionsRender,C=s.useContext(Rt.ConfigContext),x=C.getPrefixCls,w=s.useContext(qr),$=w.dark,E="".concat(t.prefixCls||x("pro"),"-top-nav-header"),R=xze(E),I=R.wrapSSR,O=R.hashId,T=void 0;t.menuHeaderRender!==void 0?T="menuHeaderRender":(p==="mix"||p==="top")&&(T="headerTitleRender");var _=tM(P(P({},t),{},{collapsed:!1}),T),k=s.useContext(qr),A=k.token,j=s.useMemo(function(){var D,F,L,B,K,W,V,q,U,G,Y,J,Q,Z=N.jsx(Rt,{theme:{hashed:Nd(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:P({},IG({colorItemBg:((D=A.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorBgHeader)||"transparent",colorSubItemBg:((F=A.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgHeader)||"transparent",radiusItem:A.borderRadius,colorItemBgSelected:((L=A.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorBgMenuItemSelected)||(A==null?void 0:A.colorBgTextHover),itemHoverBg:((B=A.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorBgMenuItemHover)||(A==null?void 0:A.colorBgTextHover),colorItemBgSelectedHorizontal:((K=A.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorBgMenuItemSelected)||(A==null?void 0:A.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((W=A.layout)===null||W===void 0||(W=W.header)===null||W===void 0?void 0:W.colorTextMenu)||(A==null?void 0:A.colorTextSecondary),colorItemTextHoverHorizontal:((V=A.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuActive)||(A==null?void 0:A.colorText),colorItemTextSelectedHorizontal:((q=A.layout)===null||q===void 0||(q=q.header)===null||q===void 0?void 0:q.colorTextMenuSelected)||(A==null?void 0:A.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((U=A.layout)===null||U===void 0||(U=U.header)===null||U===void 0?void 0:U.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((G=A.layout)===null||G===void 0||(G=G.header)===null||G===void 0?void 0:G.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((Y=A.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:A==null?void 0:A.colorBgElevated,subMenuItemBg:A==null?void 0:A.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:A==null?void 0:A.colorBgElevated}))},token:{colorBgElevated:((J=A.layout)===null||J===void 0||(J=J.header)===null||J===void 0?void 0:J.colorBgHeader)||"transparent"}},children:N.jsx(lX,P(P(P({theme:$?"dark":"light"},t),{},{className:"".concat(E,"-base-menu ").concat(O).trim()},t.menuProps),{},{style:P({width:"100%"},(Q=t.menuProps)===null||Q===void 0?void 0:Q.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return b?b(t,Z):Z},[(n=A.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=A.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(a=A.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgMenuItemHover,(o=A.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenu,(i=A.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenuActive,(l=A.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorTextMenuSelected,(c=A.layout)===null||c===void 0||(c=c.header)===null||c===void 0?void 0:c.colorBgMenuElevated,A.borderRadius,A==null?void 0:A.colorBgTextHover,A==null?void 0:A.colorTextSecondary,A==null?void 0:A.colorText,A==null?void 0:A.colorTextBase,A.colorBgElevated,$,t,E,O,b]);return I(N.jsx("div",{className:oe(E,O,g,z({},"".concat(E,"-light"),!0)),style:h,children:N.jsxs("div",{ref:u,className:oe("".concat(E,"-main"),O,z({},"".concat(E,"-wide"),f==="Fixed"&&p==="top")),children:[_&&N.jsxs("div",{className:oe("".concat(E,"-main-left ").concat(O)),onClick:d,children:[N.jsx(eM,P({},t)),N.jsx("div",{className:"".concat(E,"-logo ").concat(O).trim(),id:"logo",children:_},"logo")]}),N.jsx("div",{style:{flex:1},className:"".concat(E,"-menu ").concat(O).trim(),children:j}),(m||S||t.avatarProps)&&N.jsx(sX,P(P({rightContentRender:m},t),{},{prefixCls:E}))]})}))},wze=function(t){var n,r,a;return z({},t.componentCls,z(z(z(z({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function $ze(e){return En("ProLayoutGlobalHeader",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[wze(n)]})}var Eze=function(t,n){return t===!1?null:t?t(n,null):n},Pze=function(t){var n=t.isMobile,r=t.logo,a=t.collapsed,o=t.onCollapse,i=t.rightContentRender,l=t.menuHeaderRender,c=t.onMenuHeaderClick,u=t.className,d=t.style,f=t.layout,m=t.children,g=t.splitMenus,h=t.menuData,b=t.prefixCls,p=s.useContext(Rt.ConfigContext),S=p.getPrefixCls,C=p.direction,x="".concat(b||S("pro"),"-global-header"),w=$ze(x),$=w.wrapSSR,E=w.hashId,R=oe(u,x,E);if(f==="mix"&&!n&&g){var I=(h||[]).map(function(k){return P(P({},k),{},{children:void 0,routes:void 0})}),O=dC(I);return N.jsx(cX,P(P({mode:"horizontal"},t),{},{splitMenus:!1,menuData:O}))}var T=oe("".concat(x,"-logo"),E,z(z(z({},"".concat(x,"-logo-rtl"),C==="rtl"),"".concat(x,"-logo-mix"),f==="mix"),"".concat(x,"-logo-mobile"),n)),_=N.jsx("span",{className:T,children:N.jsx("a",{children:Z3(r)})},"logo");return $(N.jsxs("div",{className:R,style:P({},d),children:[n&&N.jsx("span",{className:"".concat(x,"-collapsed-button ").concat(E).trim(),onClick:function(){o==null||o(!a)},children:N.jsx(J6e,{})}),n&&Eze(l,_),f==="mix"&&!n&&N.jsxs(N.Fragment,{children:[N.jsx(eM,P({},t)),N.jsx("div",{className:T,onClick:c,children:tM(P(P({},t),{},{collapsed:!1}),"headerTitleRender")})]}),N.jsx("div",{style:{flex:1},children:m}),(i||t.actionsRender||t.avatarProps)&&N.jsx(sX,P({rightContentRender:i},t))]}))},Oze=function(t){var n,r,a,o;return z({},"".concat(t.proComponentsCls,"-layout"),z({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function Ize(e){return En("ProLayoutHeader",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[Oze(n)]})}function Rze(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return En("ProLayoutHeaderStylish",function(a){var o=P(P({},a),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[z({},"div".concat(a.proComponentsCls,"-layout"),z({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var lB=ci.Header,Mze=function(t){var n,r,a,o=t.isMobile,i=t.fixedHeader,l=t.className,c=t.style,u=t.collapsed,d=t.prefixCls,f=t.onCollapse,m=t.layout,g=t.headerRender,h=t.headerContentRender,b=s.useContext(qr),p=b.token,S=s.useContext(Rt.ConfigContext),C=s.useState(!1),x=ce(C,2),w=x[0],$=x[1],E=i||m==="mix",R=s.useCallback(function(){var D=m==="top",F=dC(t.menuData||[]),L=N.jsx(Pze,P(P({onCollapse:f},t),{},{menuData:F,children:h&&h(t,null)}));return D&&!o&&(L=N.jsx(cX,P(P({mode:"horizontal",onCollapse:f},t),{},{menuData:F}))),g&&typeof g=="function"?g(t,L):L},[h,g,o,m,f,t]);s.useEffect(function(){var D,F=(S==null||(D=S.getTargetContainer)===null||D===void 0?void 0:D.call(S))||document.body,L=function(){var K,W=F.scrollTop;return W>(((K=p.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.heightLayoutHeader)||56)&&!w?($(!0),!0):(w&&$(!1),!1)};if(E&&!(typeof window>"u"))return F.addEventListener("scroll",L,{passive:!0}),function(){F.removeEventListener("scroll",L)}},[(n=p.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,E,w]);var I=m==="top",O="".concat(d,"-layout-header"),T=Ize(O),_=T.wrapSSR,k=T.hashId,A=Rze("".concat(O,".").concat(O,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),j=oe(l,k,O,z(z(z(z(z(z(z({},"".concat(O,"-fixed-header"),E),"".concat(O,"-fixed-header-scroll"),w),"".concat(O,"-mix"),m==="mix"),"".concat(O,"-fixed-header-action"),!u),"".concat(O,"-top-menu"),I),"".concat(O,"-header"),!0),"".concat(O,"-stylish"),!!t.stylish));return m==="side"&&!o?null:A.wrapSSR(_(N.jsx(N.Fragment,{children:N.jsxs(Rt,{theme:{hashed:Nd(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[E&&N.jsx(lB,{style:P({height:((r=p.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((a=p.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},c)}),N.jsx(lB,{className:j,style:c,children:R()})]})})))};const Tze={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},Nze=P({},Tze),_ze={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},jze=P({},_ze),Fze={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},Dze=P({},Fze),kze={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},Aze=P({},kze),Lze={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},Bze=P({},Lze);var sB={"zh-CN":Aze,"zh-TW":Bze,"en-US":Nze,"it-IT":jze,"ko-KR":Dze},zze=function(){if(!Su())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},Hze=function(){var t=zze();return sB[t]||sB["zh-CN"]},Zi={},cB;function Vze(){if(cB)return Zi;cB=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.TokenData=void 0,Zi.parse=f,Zi.compile=m,Zi.match=b,Zi.pathToRegexp=p,Zi.stringify=w;const e="/",t=R=>R,n=/^[$_\p{ID_Start}]$/u,r=/^[$\u200c\u200d\p{ID_Continue}]$/u,a="https://git.new/pathToRegexpError",o={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function i(R){return R.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function l(R){return R.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*c(R){const I=[...R];let O=0;function T(){let _="";if(n.test(I[++O]))for(_+=I[O];r.test(I[++O]);)_+=I[O];else if(I[O]==='"'){let k=O;for(;Oh(_,I,O));return _=>{const k=[""];for(const A of T){const[j,...D]=A(_);k[0]+=j,k.push(...D)}return k}}function h(R,I,O){if(R.type==="text")return()=>[R.value];if(R.type==="group"){const _=g(R.tokens,I,O);return k=>{const[A,...j]=_(k);return j.length?[""]:[A]}}const T=O||t;return R.type==="wildcard"&&O!==!1?_=>{const k=_[R.name];if(k==null)return["",R.name];if(!Array.isArray(k)||k.length===0)throw new TypeError(`Expected "${R.name}" to be a non-empty array`);return[k.map((A,j)=>{if(typeof A!="string")throw new TypeError(`Expected "${R.name}/${j}" to be a string`);return T(A)}).join(I)]}:_=>{const k=_[R.name];if(k==null)return["",R.name];if(typeof k!="string")throw new TypeError(`Expected "${R.name}" to be a string`);return[T(k)]}}function b(R,I={}){const{decode:O=decodeURIComponent,delimiter:T=e}=I,{regexp:_,keys:k}=p(R,I),A=k.map(j=>O===!1?t:j.type==="param"?O:D=>D.split(T).map(O));return function(D){const F=_.exec(D);if(!F)return!1;const L=F[0],B=Object.create(null);for(let K=1;KW instanceof d?W:f(W,I));for(const{tokens:W}of L)for(const V of S(W,0,[])){const q=C(V,O,A);j.push(q)}let B=`^(?:${j.join("|")})`;return k&&(B+=`(?:${l(O)}$)?`),B+=T?"$":`(?=${l(O)}|$)`,{regexp:new RegExp(B,D),keys:A}}function*S(R,I,O){if(I===R.length)return yield O;const T=R[I];if(T.type==="group"){const _=O.slice();for(const k of S(T.tokens,0,_))yield*S(R,I+1,k)}else O.push(T);yield*S(R,I+1,O)}function C(R,I,O){let T="",_="",k=!0;for(let A=0;Ar.test(T)):!1}function E(R){return(R==null?void 0:R.type)!=="text"?!0:!r.test(R.value[0])}return Zi}var oR=Vze(),Wze=function(t,n,r){if(r){var a=ke(r.keys()).find(function(i){try{return i.startsWith("http")?!1:oR.match(i)(t)}catch(l){return console.log("key",i,l),!1}});if(a)return r.get(a)}if(n){var o=Object.keys(n).find(function(i){try{return i!=null&&i.startsWith("http")?!1:oR.match(i)(t)}catch(l){return console.log("key",i,l),!1}});if(o)return n[o]}return{path:""}},uB=function(t,n){var r=t.pathname,a=r===void 0?"/":r,o=t.breadcrumb,i=t.breadcrumbMap,l=t.formatMessage,c=t.title,u=t.menu,d=u===void 0?{locale:!1}:u,f=n?"":c||"",m=Wze(a,o,i);if(!m)return{title:f,id:"",pageName:f};var g=m.name;return d.locale!==!1&&m.locale&&l&&(g=l({id:m.locale||"",defaultMessage:m.name})),g?c?{title:"".concat(g," - ").concat(c),id:m.locale||"",pageName:g}:{title:g,id:m.locale||"",pageName:g}:{title:f,id:m.locale||"",pageName:f}},Ca={},dB;function Kze(){if(dB)return Ca;dB=1;function e(h){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},e(h)}Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.pathToRegexp=Ca.tokensToRegexp=Ca.regexpToFunction=Ca.match=Ca.tokensToFunction=Ca.compile=Ca.parse=void 0;function t(h){for(var b=[],p=0;p=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122||w===95){C+=h[x++];continue}break}if(!C)throw new TypeError("Missing parameter name at "+p);b.push({type:"NAME",index:p,value:C}),p=x;continue}if(S==="("){var $=1,E="",x=p+1;if(h[x]==="?")throw new TypeError('Pattern cannot start with "?" at '+x);for(;x-1:B===void 0;C||(_+="(?:"+T+"(?="+O+"))?"),K||(_+="(?="+T+"|"+O+")")}return new RegExp(_,c(p))}Ca.tokensToRegexp=m;function g(h,b,p){return h instanceof RegExp?u(h,b):Array.isArray(h)?d(h,b,p):f(h,b,p)}return Ca.pathToRegexp=g,Ca}var db=Kze();function il(e,t){return t>>>e|t<<32-e}function qze(e,t,n){return e&t^~e&n}function Uze(e,t,n){return e&t^e&n^t&n}function Gze(e){return il(2,e)^il(13,e)^il(22,e)}function Yze(e){return il(6,e)^il(11,e)^il(25,e)}function Xze(e){return il(7,e)^il(18,e)^e>>>3}function Qze(e){return il(17,e)^il(19,e)^e>>>10}function Jze(e,t){return e[t&15]+=Qze(e[t+14&15])+e[t+9&15]+Xze(e[t+1&15])}var Zze=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],hr,Fa,aa,eHe="0123456789abcdef";function fB(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function tHe(){hr=new Array(8),Fa=new Array(2),aa=new Array(64),Fa[0]=Fa[1]=0,hr[0]=1779033703,hr[1]=3144134277,hr[2]=1013904242,hr[3]=2773480762,hr[4]=1359893119,hr[5]=2600822924,hr[6]=528734635,hr[7]=1541459225}function iR(){var e,t,n,r,a,o,i,l,c,u,d=new Array(16);e=hr[0],t=hr[1],n=hr[2],r=hr[3],a=hr[4],o=hr[5],i=hr[6],l=hr[7];for(var f=0;f<16;f++)d[f]=aa[(f<<2)+3]|aa[(f<<2)+2]<<8|aa[(f<<2)+1]<<16|aa[f<<2]<<24;for(var m=0;m<64;m++)c=l+Yze(a)+qze(a,o,i)+Zze[m],m<16?c+=d[m]:c+=Jze(d,m),u=Gze(e)+Uze(e,t,n),l=i,i=o,o=a,a=fB(r,c),r=n,n=t,t=e,e=fB(c,u);hr[0]+=e,hr[1]+=t,hr[2]+=n,hr[3]+=r,hr[4]+=a,hr[5]+=o,hr[6]+=i,hr[7]+=l}function nHe(e,t){var n,r,a=0;r=Fa[0]>>3&63;var o=t&63;for((Fa[0]+=t<<3)>29,n=0;n+63>3&63;if(aa[e++]=128,e<=56)for(var t=e;t<56;t++)aa[t]=0;else{for(var n=e;n<64;n++)aa[n]=0;iR();for(var r=0;r<56;r++)aa[r]=0}aa[56]=Fa[1]>>>24&255,aa[57]=Fa[1]>>>16&255,aa[58]=Fa[1]>>>8&255,aa[59]=Fa[1]&255,aa[60]=Fa[0]>>>24&255,aa[61]=Fa[0]>>>16&255,aa[62]=Fa[0]>>>8&255,aa[63]=Fa[0]&255,iR()}function aHe(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=eHe.charAt(hr[t]>>>n&15);return e}function oHe(e){return tHe(),nHe(e,e.length),rHe(),aHe()}var iHe=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function gf(e){"@babel/helpers - typeof";return gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gf(e)}function lHe(e,t){return uHe(e)||cHe(e,t)||rM(e,t)||sHe()}function sHe(){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 cHe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,l=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,a=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}function uHe(e){if(Array.isArray(e))return e}function dHe(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=rM(e))||t){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){l=!0,o=u},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw o}}}}function fHe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vHe(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||aM(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},MHe=function(t,n){var r=t.menu,a=r===void 0?{}:r,o=t.indexRoute,i=t.path,l=i===void 0?"":i,c=t.children||[],u=a.name,d=u===void 0?t.name:u,f=a.icon,m=f===void 0?t.icon:f,g=a.hideChildren,h=g===void 0?t.hideChildren:g,b=a.flatMenu,p=b===void 0?t.flatMenu:b,S=o&&Object.keys(o).join(",")!=="redirect"?[Jr({path:l,menu:a},o)].concat(c||[]):c,C=Jr({},t);if(d&&(C.name=d),m&&(C.icon=m),S&&S.length){if(h)return delete C.children,C;var x=oM(Jr(Jr({},n),{},{data:S}),t);if(p)return x;delete C[_o]}return C},Gc=function(t){return Array.isArray(t)&&t.length>0};function oM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,a=e.parentName,o=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(i){return i?Gc(i.children)||i.path||i.originPath||i.layout?!0:(i.redirect||i.unaccessible,!1):!1}).filter(function(i){var l,c;return!(i==null||(l=i.menu)===null||l===void 0)&&l.name||i!=null&&i.flatMenu||!(i==null||(c=i.menu)===null||c===void 0)&&c.flatMenu?!0:i.menu!==!1}).map(function(i){var l=Jr(Jr({},i),{},{path:i.path||i.originPath});return!l.children&&l[_o]&&(l.children=l[_o],delete l[_o]),l.unaccessible&&delete l.name,l.path==="*"&&(l.path="."),l.path==="/*"&&(l.path="."),!l.path&&l.originPath&&(l.path=l.originPath),l}).map(function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},l=i.children||i[_o]||[],c=dX(i.path,t?t.path:"/"),u=i.name,d=RHe(i,a||"menu"),f=d!==!1&&o!==!1&&r&&d?r({id:d,defaultMessage:u}):u,m=t.pro_layout_parentKeys,g=m===void 0?[]:m;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var h=$He(t,iHe),b=new Set([].concat(sR(g),sR(i.parentKeys||[])));t.key&&b.add(t.key);var p=Jr(Jr(Jr({},h),{},{menu:void 0},i),{},{path:c,locale:d,key:i.key||IHe(Jr(Jr({},i),{},{path:c})),pro_layout_parentKeys:Array.from(b).filter(function(C){return C&&C!=="/"})});if(f?p.name=f:delete p.name,p.menu===void 0&&delete p.menu,Gc(l)){var S=oM(Jr(Jr({},e),{},{data:l,parentName:d||""}),p);Gc(S)&&(p.children=S)}return MHe(p,e)}).flat(1)}var fX=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||Gc(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=Jr({},n),a=r.children||n[_o]||[];if(delete r[_o],Gc(a)&&!r.hideChildrenInMenu&&a.some(function(i){return i&&!!i.name})){var o=fX(a);if(o.length)return Jr(Jr({},r),{},{children:o})}return Jr({},n)}).filter(function(n){return n})},THe=(function(e){function t(){return fHe(this,t),gHe(this,t,arguments)}return bHe(t,e),mHe(t,[{key:"get",value:function(r){var a;try{var o=dHe(this.entries()),i;try{for(o.s();!(i=o.n()).done;){var l=lHe(i.value,2),c=l[0],u=l[1],d=Jg(c);if(!aM(c)&&db.pathToRegexp(d,[]).test(r)){a=u;break}}}catch(f){o.e(f)}finally{o.f()}}catch{a=void 0}return a}}])})(lR(Map)),NHe=function(t){var n=new THe,r=function(o,i){o.forEach(function(l){var c=l.children||l[_o]||[];Gc(c)&&r(c,l);var u=dX(l.path,i?i.path:"/");n.set(Jg(u),l)})};return r(t),n},vX=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[_o];if(Gc(r)){var a=vX(r);if(a.length)return Jr({},n)}var o=Jr({},n);return delete o[_o],delete o.children,o}).filter(function(n){return n})},_He=function(t,n,r,a){var o=oM({data:sR(t).map(function(c){return Jr({},c)}),formatMessage:r,locale:n}),i=a?vX(o):fX(o),l=NHe(o);return{breadcrumb:l,menuData:i}};function ng(e){"@babel/helpers - typeof";return ng=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ng(e)}function mB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vv(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var a=Vv({},r);if(!(!a||!a.key)){!a.children&&a[_o]&&(a.children=a[_o],delete a[_o]);var o=a.children||[];n[Jg(a.path||a.key||"/")]=Vv({},a),n[a.key||a.path||"/"]=Vv({},a),o&&(n=Vv(Vv({},n),mX(o)))}}),n},kHe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(a){if(a==="/"&&n==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!aM(a)){var o=Jg(a);try{if(r&&db.pathToRegexp("".concat(o)).test(n)||db.pathToRegexp("".concat(o),[]).test(n)||db.pathToRegexp("".concat(o,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(a,o){return a===n?10:o===n?-10:a.substr(1).split("/").length-o.substr(1).split("/").length})},AHe=function(t,n,r,a){var o=mX(n),i=Object.keys(o),l=kHe(i,t,a);return!l||l.length<1?[]:l.map(function(c){var u=o[c]||{pro_layout_parentKeys:"",key:""},d=new Map,f=(u.pro_layout_parentKeys||[]).map(function(m){return d.has(m)?null:(d.set(m,!0),o[m])}).filter(function(m){return m});return u.key&&f.push(u),f}).flat(1)},LHe=function(t){var n=s.useContext(qr),r=n.hashId,a=t.style,o=t.prefixCls,i=t.children,l=t.hasPageContainer,c=l===void 0?0:l,u=oe("".concat(o,"-content"),r,z(z({},"".concat(o,"-has-header"),t.hasHeader),"".concat(o,"-content-has-page-container"),c>0)),d=t.ErrorBoundary||bG;return t.ErrorBoundary===!1?N.jsx(ci.Content,{className:u,style:a,children:i}):N.jsx(d,{children:N.jsx(ci.Content,{className:u,style:a,children:i})})},BHe=function(){return N.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[N.jsxs("defs",{children:[N.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[N.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),N.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[N.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),N.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),N.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[N.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[N.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),N.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:N.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:N.jsx("g",{transform:"translate(20.000000, 20.000000)",children:N.jsxs("g",{children:[N.jsxs("g",{fillRule:"nonzero",children:[N.jsxs("g",{children:[N.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),N.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),N.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),N.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},gB=new Sn("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),zHe=function(t){var n,r,a,o,i,l,c,u,d,f,m,g;return z({},"".concat(t.proComponentsCls,"-layout"),z(z(z({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,z(z(z(z(z(z(z(z(z({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),z(z({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:not(").concat(t.antCls,"-menu-item-selected):hover"),{color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuTitle,animationName:gB,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":z({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(d=t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:gB,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((m=t.layout)===null||m===void 0||(m=m.header)===null||m===void 0?void 0:m.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((g=t.layout)===null||g===void 0||(g=g.header)===null||g===void 0?void 0:g.heightLayoutHeader)||56,"px")}}))};function HHe(e,t){var n=t.proLayoutCollapsedWidth;return En("ProLayoutSiderMenu",function(r){var a=P(P({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[zHe(a)]})}var pB=function(t){var n,r=t.isMobile,a=t.siderWidth,o=t.collapsed,i=t.onCollapse,l=t.style,c=t.className,u=t.hide,d=t.prefixCls,f=t.getContainer,m=s.useContext(qr),g=m.token;s.useEffect(function(){r===!0&&(i==null||i(!0))},[r]);var h=nn(t,["className","style"]),b=ee.useContext(Rt.ConfigContext),p=b.direction,S=HHe("".concat(d,"-sider"),{proLayoutCollapsedWidth:64}),C=S.wrapSSR,x=S.hashId,w=oe("".concat(d,"-sider"),c,x);if(u)return null;var $=Cu(!o,function(){return i==null?void 0:i(!0)});return C(r?N.jsx(km,P(P({placement:p==="rtl"?"right":"left",className:oe("".concat(d,"-drawer-sider"),c)},$),{},{style:P({padding:0,height:"100vh"},l),onClose:function(){i==null||i(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:a,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=g.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:N.jsx(iB,P(P({},h),{},{isMobile:!0,className:w,collapsed:r?!1:o,splitMenus:!1,originCollapsed:o}))})):N.jsx(iB,P(P({className:w,originCollapsed:o},h),{},{style:l})))},VHe=function(){var t;return typeof process>"u"?fo:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||fo},WHe=function(t){var n,r,a,o,i,l,c,u,d,f,m,g,h,b,p,S,C,x,w,$,E,R,I,O,T,_,k,A,j,D,F,L;return(n=VHe())!==null&&n!==void 0&&n.startsWith("5")?{}:z(z(z({},t.componentCls,z(z({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(E={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},z(z(z(z(z(z(z(z(z(z(E,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),z(z({color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),z({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active, `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(t.antCls,"-menu-light"),z({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,`-menu-submenu-active, @@ -684,8 +684,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).concat(t.antCls,"-menu-submenu-selected"),z({backgroundColor:(x=t.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.colorBgMenuItemSelected,borderRadius:t.borderRadius,transition:"none",color:"".concat((w=t.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.colorTextMenuSelected," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:"".concat(($=t.layout)===null||$===void 0||($=$.header)===null||$===void 0?void 0:$.colorTextMenuSelected," !important")})),"> ".concat(t.antCls,"-menu-item, > ").concat(t.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(t.antCls,"-menu-item::after, > ").concat(t.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(t.proComponentsCls,"-top-nav-header-base-menu"),z(z({},"&".concat(t.antCls,"-menu"),z({color:(R=t.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorTextMenu},"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-light"),z(z({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,`-menu-submenu-active, - `).concat(t.antCls,"-menu-submenu-title:hover"),z({color:(I=t.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:(O=t.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(T=t.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(N=t.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(A=t.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),z(z(z(z({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),z({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(t.antCls,`-menu-item:active, - `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(t.antCls,"-menu-item-selected"),{color:(k=t.layout)===null||k===void 0||(k=k.sider)===null||k===void 0?void 0:k.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(j=t.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),z(z({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(D=t.layout)===null||D===void 0||(D=D.sider)===null||D===void 0?void 0:D.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover, + `).concat(t.antCls,"-menu-submenu-title:hover"),z({color:(I=t.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:(O=t.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(T=t.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(_=t.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(k=t.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),z(z(z(z({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),z({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(t.antCls,`-menu-item:active, + `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(t.antCls,"-menu-item-selected"),{color:(A=t.layout)===null||A===void 0||(A=A.sider)===null||A===void 0?void 0:A.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(j=t.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),z(z({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(D=t.layout)===null||D===void 0||(D=D.sider)===null||D===void 0?void 0:D.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, - `).concat(t.antCls,"-menu-submenu-title:hover"),z({color:(F=t.layout)===null||F===void 0||(F=F.sider)===null||F===void 0?void 0:F.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(L=t.layout)===null||L===void 0||(L=L.sider)===null||L===void 0?void 0:L.colorTextMenuActive}))))},yHe=function(t){var n,r,a,o;return z(z({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,z(z(z(z({},"& ".concat(t.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(t.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(a=t.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(t.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(t.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(o=t.layout)===null||o===void 0?void 0:o.bgLayout}))};function CHe(e){return $n("ProLayout",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[yHe(n),bHe(n)]})}function SHe(e){if(!e||e==="/")return["/"];var t=e.split("/").filter(function(n){return n});return t.map(function(n,r){return"/".concat(t.slice(0,r+1).join("/"))})}var xHe=function(){var t;return typeof process>"u"?uo:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||uo},wHe=function(t,n,r){var a=t,o=a.breadcrumbName,i=a.title,l=a.path,c=r.findIndex(function(u){return u.linkPath===t.path})===r.length-1;return c?_.jsx("span",{children:i||o}):_.jsx("span",{onClick:l?function(){return location.href=l}:void 0,children:i||o})},$He=function(t,n){var r=n.formatMessage,a=n.menu;return t.locale&&r&&(a==null?void 0:a.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},EHe=function(t,n){var r=t.get(n);if(!r){var a=Array.from(t.keys())||[],o=a.find(function(i){try{return i!=null&&i.startsWith("http")?!1:UI.match(i.replace("?",""))(n)}catch(l){return console.log("path",i,l),!1}});o&&(r=t.get(o))}return r||{path:""}},PHe=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},OHe=function(t,n,r){var a=SHe(t==null?void 0:t.pathname),o=a.map(function(i){var l=EHe(n,i),c=$He(l,r),u=l.hideInBreadcrumb;return c&&!u?{linkPath:i,breadcrumbName:c,title:c,component:l.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(i){return i&&i.linkPath});return o},IHe=function(t){var n=PHe(t),r=n.location,a=n.breadcrumbMap;return r&&r.pathname&&a?OHe(r,a,t):[]},RHe=function(t,n){var r=t.breadcrumbRender,a=t.itemRender,o=n.breadcrumbProps||{},i=o.minLength,l=i===void 0?2:i,c=IHe(t),u=function(m){for(var g=a||wHe,h=arguments.length,b=new Array(h>1?h-1:0),p=1;p-1?{items:d,itemRender:u}:{routes:d,itemRender:u}};function MHe(e){return ke(e).reduce(function(t,n){var r=ce(n,2),a=r[0],o=r[1];return t[a]=o,t},{})}var THe=function e(t,n,r,a){var o=lHe(t,(n==null?void 0:n.locale)||!1,r,!0),i=o.menuData,l=o.breadcrumb;return a?e(a(i),n,r,void 0):{breadcrumb:MHe(l),breadcrumbMap:l,menuData:i}},NHe=function(t){var n=s.useState({}),r=ce(n,2),a=r[0],o=r[1];return s.useEffect(function(){o(jr({layout:it(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),a},_He=["id","defaultMessage"],jHe=["fixSiderbar","navTheme","layout"],eB=0,FHe=function(t,n){var r;return t.headerRender===!1||t.pure?null:_.jsx(aze,P(P({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},DHe=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(P({},t),_.jsx(x9e,{})):null},kHe=function(t,n){var r,a=t.layout,o=t.isMobile,i=t.selectedKeys,l=t.openKeys,c=t.splitMenus,u=t.suppressSiderWhenMenuEmpty,d=t.menuRender;if(t.menuRender===!1||t.pure)return null;var f=t.menuData;if(c&&(l!==!1||a==="mix")&&!o){var m=i||n,g=ce(m,1),h=g[0];if(h){var b;f=((b=t.menuData)===null||b===void 0||(b=b.find(function(x){return x.key===h}))===null||b===void 0?void 0:b.children)||[]}else f=[]}var p=rC(f||[]);if(p&&(p==null?void 0:p.length)<1&&(c||u))return null;if(a==="top"&&!o){var S;return _.jsx(ZL,P(P({matchMenuKeys:n},t),{},{hide:!0,stylish:(S=t.stylish)===null||S===void 0?void 0:S.sider}))}var C=_.jsx(ZL,P(P({matchMenuKeys:n},t),{},{menuData:p,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return d?d(t,C):C},AHe=function(t,n){var r=n.pageTitleRender,a=UL(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var o=r(t,a.title,a);if(typeof o=="string")return UL(P(P({},a),{},{title:o}));Wn(typeof o=="string","pro-layout: renderPageTitle return value should be a string")}return a},LHe=function(t,n,r){return t?n?64:r:0},BHe=function(t){var n,r,a,o,i,l,c,u,d,f,m,g,h,b,p=t||{},S=p.children,C=p.onCollapse,x=p.location,w=x===void 0?{pathname:"/"}:x,$=p.contentStyle,E=p.route,R=p.defaultCollapsed,I=p.style,O=p.siderWidth,T=p.menu,N=p.siderMenuType,A=p.isChildrenLayout,k=p.menuDataRender,j=p.actionRef,D=p.bgLayoutImgList,F=p.formatMessage,L=p.loading,B=s.useMemo(function(){return O||(t.layout==="mix"?215:256)},[t.layout,O]),K=s.useContext(Mt.ConfigContext),W=(n=t.prefixCls)!==null&&n!==void 0?n:K.getPrefixCls("pro"),V=_t(!1,{value:T==null?void 0:T.loading,onChange:T==null?void 0:T.onLoadingChange}),q=ce(V,2),U=q[0],G=q[1],Y=s.useState(function(){return eB+=1,"pro-layout-".concat(eB)}),J=ce(Y,1),Q=J[0],Z=s.useCallback(function(Kt){var Ut=Kt.id,kt=Kt.defaultMessage,Pt=Ue(Kt,_He);if(F)return F(P({id:Ut,defaultMessage:kt},Pt));var Lt=pze();return Lt[Ut]?Lt[Ut]:kt},[F]),ne=m3([Q,T==null?void 0:T.params],(function(){var Kt=mn(ht().mark(function Ut(kt){var Pt,Lt,nt,St;return ht().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return Lt=ce(kt,2),nt=Lt[1],G(!0),qe.next=4,T==null||(Pt=T.request)===null||Pt===void 0?void 0:Pt.call(T,nt||{},(E==null?void 0:E.children)||(E==null?void 0:E.routes)||[]);case 4:return St=qe.sent,G(!1),qe.abrupt("return",St);case 7:case"end":return qe.stop()}},Ut)}));return function(Ut){return Kt.apply(this,arguments)}})(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),ae=ne.data,le=ne.mutate,re=ne.isLoading;s.useEffect(function(){G(re)},[re]);var fe=v3(),ue=fe.cache;s.useEffect(function(){return function(){ue instanceof Map&&ue.delete(Q)}},[]);var de=s.useMemo(function(){return THe(ae||(E==null?void 0:E.children)||(E==null?void 0:E.routes)||[],T,Z,k)},[Z,T,k,ae,E==null?void 0:E.children,E==null?void 0:E.routes]),ie=de||{},se=ie.breadcrumb,ve=ie.breadcrumbMap,he=ie.menuData,Ce=he===void 0?[]:he;j&&T!==null&&T!==void 0&&T.request&&(j.current={reload:function(){le()}});var pe=s.useMemo(function(){return fHe(w.pathname||"/",Ce||[])},[w.pathname,Ce]),Se=s.useMemo(function(){return Array.from(new Set(pe.map(function(Kt){return Kt.key||Kt.path||""})))},[pe]),ge=pe[pe.length-1]||{},ye=NHe(ge),xe=P(P({},t),ye),$e=xe.fixSiderbar;xe.navTheme;var He=xe.layout,Te=Ue(xe,jHe),Re=p5e(),Fe=s.useMemo(function(){return(Re==="sm"||Re==="xs")&&!t.disableMobile},[Re,t.disableMobile]),je=He!=="top"&&!Fe,Ee=_t(function(){return R!==void 0?R:!!(Fe||Re==="md")},{value:t.collapsed,onChange:C}),Le=ce(Ee,2),Pe=Le[0],ze=Le[1],Oe=nn(P(P(P({prefixCls:W},t),{},{siderWidth:B},ye),{},{formatMessage:Z,breadcrumb:se,menu:P(P({},T),{},{type:N||(T==null?void 0:T.type),loading:U}),layout:He}),["className","style","breadcrumbRender"]),we=AHe(P(P({pathname:w.pathname},Oe),{},{breadcrumbMap:ve}),t),_e=RHe(P(P({},Oe),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:ve}),t),Be=kHe(P(P({},Oe),{},{menuData:Ce,onCollapse:ze,isMobile:Fe,collapsed:Pe}),Se),Qe=FHe(P(P({},Oe),{},{children:null,hasSiderMenu:!!Be,menuData:Ce,isMobile:Fe,collapsed:Pe,onCollapse:ze}),Se),lt=DHe(P({isMobile:Fe,collapsed:Pe},Oe)),Ke=s.useContext(Zm),et=Ke.isChildrenLayout,st=A!==void 0?A:et,Ze="".concat(W,"-layout"),vt=CHe(Ze),Ot=vt.wrapSSR,xt=vt.hashId,mt=oe(t.className,xt,"ant-design-pro",Ze,z(z(z(z(z({},"screen-".concat(Re),Re),"".concat(Ze,"-top-menu"),He==="top"),"".concat(Ze,"-is-children"),st),"".concat(Ze,"-fix-siderbar"),$e),"".concat(Ze,"-").concat(He),He)),yt=LHe(!!je,Pe,B),bt={position:"relative"};(st||$&&$.minHeight)&&(bt.minHeight=0),s.useEffect(function(){var Kt;(Kt=t.onPageChange)===null||Kt===void 0||Kt.call(t,t.location)},[w.pathname,(r=w.pathname)===null||r===void 0?void 0:r.search]);var tt=s.useState(!1),Ye=ce(tt,2),Ne=Ye[0],We=Ye[1],rt=s.useState(0),ct=ce(rt,2),At=ct[0],pt=ct[1];gTe(we,t.title||!1);var ft=s.useContext(Wr),ut=ft.token,Xt=s.useMemo(function(){return D&&D.length>0?D==null?void 0:D.map(function(Kt,Ut){return _.jsx("img",{src:Kt.src,style:P({position:"absolute"},Kt)},Ut)}):null},[D]);return Ot(_.jsx(Zm.Provider,{value:P(P({},Oe),{},{breadcrumb:_e,menuData:Ce,isMobile:Fe,collapsed:Pe,hasPageContainer:At,setHasPageContainer:pt,isChildrenLayout:!0,title:we.pageName,hasSiderMenu:!!Be,hasHeader:!!Qe,siderWidth:yt,hasFooter:!!lt,hasFooterToolbar:Ne,setHasFooterToolbar:We,pageTitleInfo:we,matchMenus:pe,matchMenuKeys:Se,currentMenu:ge}),children:t.pure?_.jsx(_.Fragment,{children:S}):_.jsxs("div",{className:mt,children:[Xt||(a=ut.layout)!==null&&a!==void 0&&a.bgLayout?_.jsx("div",{className:oe("".concat(Ze,"-bg-list"),xt),children:Xt}):null,_.jsxs(li,{style:P({minHeight:"100%",flexDirection:Be?"row":void 0},I),children:[_.jsx(Mt,{theme:{hashed:Md(),token:{controlHeightLG:((o=ut.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.menuHeight)||(ut==null?void 0:ut.controlHeightLG)},components:{Menu:uG({colorItemBg:((i=ut.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorMenuBackground)||"transparent",colorSubItemBg:((l=ut.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuBackground)||"transparent",radiusItem:ut.borderRadius,colorItemBgSelected:((c=ut.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemSelected)||(ut==null?void 0:ut.colorBgTextHover),colorItemBgHover:((u=ut.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemHover)||(ut==null?void 0:ut.colorBgTextHover),colorItemBgActive:((d=ut.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemActive)||(ut==null?void 0:ut.colorBgTextActive),colorItemBgSelectedHorizontal:((f=ut.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(ut==null?void 0:ut.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((m=ut.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenu)||(ut==null?void 0:ut.colorTextSecondary),colorItemTextHover:((g=ut.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((h=ut.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:ut==null?void 0:ut.colorBgElevated,subMenuItemBg:ut==null?void 0:ut.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:ut==null?void 0:ut.colorBgElevated})}},children:Be}),_.jsxs("div",{style:bt,className:"".concat(Ze,"-container ").concat(xt).trim(),children:[Qe,_.jsx(vHe,P(P({hasPageContainer:At,isChildrenLayout:st},Te),{},{hasHeader:!!Qe,prefixCls:Ze,style:$,children:L?_.jsx(BY,{}):S})),lt,Ne&&_.jsx("div",{className:"".concat(Ze,"-has-footer"),style:{height:64,marginBlockStart:(b=ut.layout)===null||b===void 0||(b=b.pageContainer)===null||b===void 0?void 0:b.paddingBlockPageContainerContent}})]})]})]})}))},zHe=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return _.jsx(Mt,{theme:n?{token:{colorPrimary:n}}:void 0,children:_.jsx(Ag,P(P({},r),{},{token:t.token,prefixCls:t.prefixCls,children:_.jsx(BHe,P(P({logo:_.jsx(mHe,{})},zY),{},{location:yu()?window.location:void 0},t))}))})},HHe=bG(Object.keys,Object),VHe=Object.prototype,WHe=VHe.hasOwnProperty;function QY(e){if(!z1(e))return HHe(e);var t=[];for(var n in Object(e))WHe.call(e,n)&&n!="constructor"&&t.push(n);return t}var JI=xu(ml,"DataView"),ZI=xu(ml,"Promise"),eR=xu(ml,"Set"),tR=xu(ml,"WeakMap"),tB="[object Map]",KHe="[object Object]",nB="[object Promise]",rB="[object Set]",aB="[object WeakMap]",oB="[object DataView]",qHe=Su(JI),UHe=Su(qm),GHe=Su(ZI),YHe=Su(eR),XHe=Su(tR),Ml=Lf;(JI&&Ml(new JI(new ArrayBuffer(1)))!=oB||qm&&Ml(new qm)!=tB||ZI&&Ml(ZI.resolve())!=nB||eR&&Ml(new eR)!=rB||tR&&Ml(new tR)!=aB)&&(Ml=function(e){var t=Lf(e),n=t==KHe?e.constructor:void 0,r=n?Su(n):"";if(r)switch(r){case qHe:return oB;case UHe:return tB;case GHe:return nB;case YHe:return rB;case XHe:return aB}return t});var QHe="[object Map]",JHe="[object Set]",ZHe=Object.prototype,eVe=ZHe.hasOwnProperty;function tVe(e){if(e==null)return!0;if(Hg(e)&&(lu(e)||typeof e=="string"||typeof e.splice=="function"||Gm(e)||H1(e)||uy(e)))return!e.length;var t=Ml(e);if(t==QHe||t==JHe)return!e.size;if(z1(e))return!QY(e).length;for(var n in e)if(eVe.call(e,n))return!1;return!0}var nVe="__lodash_hash_undefined__";function rVe(e){return this.__data__.set(e,nVe),this}function aVe(e){return this.__data__.has(e)}function Cy(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new wu;++tl))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,m=!0,g=n&sVe?new Cy:void 0;for(o.set(e,t),o.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:{},l=s.useRef(),c=s.useRef(null),u=s.useRef(),d=s.useRef(),f=s.useState(""),m=ce(f,2),g=m[0],h=m[1],b=s.useRef([]),p=_t(function(){return i.size||i.defaultSize||"middle"},{value:i.size,onChange:i.onSizeChange}),S=ce(p,2),C=S[0],x=S[1],w=s.useMemo(function(){var N,A;if(i!=null&&(N=i.columnsState)!==null&&N!==void 0&&N.defaultValue)return i.columnsState.defaultValue;var k={};return(A=i.columns)===null||A===void 0||A.forEach(function(j,D){var F=j.key,L=j.dataIndex,B=j.fixed,K=j.disable,W=Wf(F??L,D);W&&(k[W]={show:!0,fixed:B,disable:K})}),k},[i.columns]),$=_t(function(){var N,A,k=i.columnsState||{},j=k.persistenceType,D=k.persistenceKey;if(D&&j&&typeof window<"u"){var F=window[j];try{var L=F==null?void 0:F.getItem(D);if(L){var B;if(i!=null&&(B=i.columnsState)!==null&&B!==void 0&&B.defaultValue){var K;return FI({},i==null||(K=i.columnsState)===null||K===void 0?void 0:K.defaultValue,JSON.parse(L))}return JSON.parse(L)}}catch(W){console.warn(W)}}return i.columnsStateMap||((N=i.columnsState)===null||N===void 0?void 0:N.value)||((A=i.columnsState)===null||A===void 0?void 0:A.defaultValue)||w},{value:((e=i.columnsState)===null||e===void 0?void 0:e.value)||i.columnsStateMap,onChange:((t=i.columnsState)===null||t===void 0?void 0:t.onChange)||i.onColumnsStateChange}),E=ce($,2),R=E[0],I=E[1];s.useEffect(function(){var N=i.columnsState||{},A=N.persistenceType,k=N.persistenceKey;if(k&&A&&typeof window<"u"){var j=window[A];try{var D=j==null?void 0:j.getItem(k);if(D){var F;if(i!=null&&(F=i.columnsState)!==null&&F!==void 0&&F.defaultValue){var L;I(FI({},i==null||(L=i.columnsState)===null||L===void 0?void 0:L.defaultValue,JSON.parse(D)))}else I(JSON.parse(D))}else I(w)}catch(B){console.warn(B)}}},[(n=i.columnsState)===null||n===void 0?void 0:n.persistenceKey,(r=i.columnsState)===null||r===void 0?void 0:r.persistenceType,w]),$a(!i.columnsStateMap,"columnsStateMap已经废弃,请使用 columnsState.value 替换"),$a(!i.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var O=s.useCallback(function(){var N=i.columnsState||{},A=N.persistenceType,k=N.persistenceKey;if(!(!k||!A||typeof window>"u")){var j=window[A];try{j==null||j.removeItem(k)}catch(D){console.warn(D)}}},[i.columnsState]);s.useEffect(function(){var N,A;if(!(!((N=i.columnsState)!==null&&N!==void 0&&N.persistenceKey)||!((A=i.columnsState)!==null&&A!==void 0&&A.persistenceType))&&!(typeof window>"u")){var k=i.columnsState,j=k.persistenceType,D=k.persistenceKey,F=window[j];try{F==null||F.setItem(D,JSON.stringify(R))}catch(L){console.warn(L),O()}}},[(a=i.columnsState)===null||a===void 0?void 0:a.persistenceKey,R,(o=i.columnsState)===null||o===void 0?void 0:o.persistenceType]);var T={action:l.current,setAction:function(A){l.current=A},sortKeyColumns:b.current,setSortKeyColumns:function(A){b.current=A},propsRef:d,columnsMap:R,keyWords:g,setKeyWords:function(A){return h(A)},setTableSize:x,tableSize:C,prefixName:u.current,setPrefixName:function(A){u.current=A},setColumnsMap:I,columns:i.columns,rootDomRef:c,clearPersistenceStorage:O,defaultColumnKeyMap:w};return Object.defineProperty(T,"prefixName",{get:function(){return u.current}}),Object.defineProperty(T,"sortKeyColumns",{get:function(){return b.current}}),Object.defineProperty(T,"action",{get:function(){return l.current}}),T}var ic=s.createContext({}),UVe=function(t){var n=qVe(t.initValue);return _.jsx(ic.Provider,{value:n,children:t.children})},GVe=function(t){return z({},t.componentCls,{marginBlockEnd:16,backgroundColor:ao(t.colorTextBase,.02),borderRadius:t.borderRadius,border:"none","&-container":{paddingBlock:t.paddingSM,paddingInline:t.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:t.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};function YVe(e){return $n("ProTableAlert",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[GVe(n)]})}var XVe=function(t){var n=t.intl,r=t.onCleanSelected;return[_.jsx("a",{onClick:r,children:n.getMessage("alert.clear","清空")},"0")]};function QVe(e){var t=e.selectedRowKeys,n=t===void 0?[]:t,r=e.onCleanSelected,a=e.alwaysShowAlert,o=e.selectedRows,i=e.alertInfoRender,l=i===void 0?function(x){var w=x.intl;return _.jsxs(Jn,{children:[w.getMessage("alert.selected","已选择"),n.length,w.getMessage("alert.item","项"),"  "]})}:i,c=e.alertOptionRender,u=c===void 0?XVe:c,d=kn(),f=u&&u({onCleanSelected:r,selectedRowKeys:n,selectedRows:o,intl:d}),m=s.useContext(Mt.ConfigContext),g=m.getPrefixCls,h=g("pro-table-alert"),b=YVe(h),p=b.wrapSSR,S=b.hashId;if(l===!1)return null;var C=l({intl:d,selectedRowKeys:n,selectedRows:o,onCleanSelected:r});return C===!1||n.length<1&&!a?null:p(_.jsx("div",{className:"".concat(h," ").concat(S).trim(),children:_.jsx("div",{className:"".concat(h,"-container ").concat(S).trim(),children:_.jsxs("div",{className:"".concat(h,"-info ").concat(S).trim(),children:[_.jsx("div",{className:"".concat(h,"-info-content ").concat(S).trim(),children:C}),f?_.jsx("div",{className:"".concat(h,"-info-option ").concat(S).trim(),children:f}):null]})})}))}function JVe(e){var t=e.replace(/[A-Z]/g,function(n){return"-".concat(n.toLowerCase())});return t.startsWith("-")&&(t=t.slice(1)),t}var ZVe=function(t,n){return!t&&n!==!1?(n==null?void 0:n.filterType)==="light"?"LightFilter":"QueryFilter":"Form"},eWe=function(t,n,r){return!t&&r==="LightFilter"?nn(P({},n),["labelWidth","defaultCollapsed","filterType"]):t?{}:nn(P({labelWidth:n?n==null?void 0:n.labelWidth:void 0,defaultCollapsed:!0},n),["filterType"])},tWe=function(t,n){return t?nn(n,["ignoreRules"]):P({ignoreRules:!0},n)},nWe=function(t){var n=t.onSubmit,r=t.formRef,a=t.dateFormatter,o=a===void 0?"string":a,i=t.type,l=t.columns,c=t.action,u=t.ghost,d=t.manualRequest,f=t.onReset,m=t.submitButtonLoading,g=t.search,h=t.form,b=t.bordered,p=s.useContext(Wr),S=p.hashId,C=i==="form",x=(function(){var N=mn(ht().mark(function A(k,j){return ht().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:n&&n(k,j);case 1:case"end":return F.stop()}},A)}));return function(k,j){return N.apply(this,arguments)}})(),w=s.useContext(Mt.ConfigContext),$=w.getPrefixCls,E=s.useMemo(function(){return l.filter(function(N){return!(N===fo.EXPAND_COLUMN||N===fo.SELECTION_COLUMN||(N.hideInSearch||N.search===!1)&&i!=="form"||i==="form"&&N.hideInForm)}).map(function(N){var A,k=!N.valueType||["textarea","jsonCode","code"].includes(N==null?void 0:N.valueType)&&i==="table"?"text":N==null?void 0:N.valueType,j=(N==null?void 0:N.key)||(N==null||(A=N.dataIndex)===null||A===void 0?void 0:A.toString());return P(P(P({},N),{},{width:void 0},N.search&&it(N.search)==="object"?N.search:{}),{},{valueType:k,proFieldProps:P(P({},N.proFieldProps),{},{proFieldKey:j?"table-field-".concat(j):void 0})})})},[l,i]),R=$("pro-table-search"),I=$("pro-table-form"),O=s.useMemo(function(){return ZVe(C,g)},[g,C]),T=s.useMemo(function(){return{submitter:{submitButtonProps:{loading:m}}}},[m]);return _.jsx("div",{className:oe(S,z(z(z(z(z(z(z(z(z({},$("pro-card"),!0),"".concat($("pro-card"),"-border"),!!b),"".concat($("pro-card"),"-bordered"),!!b),"".concat($("pro-card"),"-ghost"),!!u),R,!0),I,C),$("pro-table-search-".concat(JVe(O))),!0),"".concat(R,"-ghost"),u),g==null?void 0:g.className,g!==!1&&(g==null?void 0:g.className))),children:_.jsx(_Y,P(P(P(P({layoutType:O,columns:E,type:i},T),eWe(C,g,O)),tWe(C,h||{})),{},{formRef:r,action:c,dateFormatter:o,onInit:function(A,k){if(r.current=k,i!=="form"){var j,D,F,L=(j=c.current)===null||j===void 0?void 0:j.pageInfo,B=A,K=B.current,W=K===void 0?L==null?void 0:L.current:K,V=B.pageSize,q=V===void 0?L==null?void 0:L.pageSize:V;if((D=c.current)===null||D===void 0||(F=D.setPageInfo)===null||F===void 0||F.call(D,P(P({},L),{},{current:parseInt(W,10),pageSize:parseInt(q,10)})),d)return;x(A,!0)}},onReset:function(A){f==null||f(A)},onFinish:function(A){x(A,!1)},initialValues:h==null?void 0:h.initialValues}))})},rWe=(function(e){vo(n,e);var t=Do(n);function n(){var r;or(this,n);for(var a=arguments.length,o=new Array(a),i=0;i span":{"> span.anticon":{color:t.colorPrimary}},"> span + span":{marginInlineStart:4}}}))};function oWe(e){return $n("ColumnSetting",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[aWe(n)]})}var iWe=["key","dataIndex","children"],lWe=["disabled"],YE=function(t){var n=t.title,r=t.show,a=t.children,o=t.columnKey,i=t.fixed,l=s.useContext(ic),c=l.columnsMap,u=l.setColumnsMap;return r?_.jsx(Kn,{title:n,children:_.jsx("span",{onClick:function(f){f.stopPropagation(),f.preventDefault();var m=c[o]||{},g=P(P({},c),{},z({},o,P(P({},m),{},{fixed:i})));u(g)},children:a})}):null},sWe=function(t){var n=t.columnKey,r=t.isLeaf,a=t.title,o=t.className,i=t.fixed,l=t.showListItemOption,c=kn(),u=s.useContext(Wr),d=u.hashId,f=_.jsxs("span",{className:"".concat(o,"-list-item-option ").concat(d).trim(),children:[_.jsx(YE,{columnKey:n,fixed:"left",title:c.getMessage("tableToolBar.leftPin","固定在列首"),show:i!=="left",children:_.jsx(uue,{})}),_.jsx(YE,{columnKey:n,fixed:void 0,title:c.getMessage("tableToolBar.noPin","不固定"),show:!!i,children:_.jsx(F6e,{})}),_.jsx(YE,{columnKey:n,fixed:"right",title:c.getMessage("tableToolBar.rightPin","固定在列尾"),show:i!=="right",children:_.jsx(N6e,{})})]});return _.jsxs("span",{className:"".concat(o,"-list-item ").concat(d).trim(),children:[_.jsx("div",{className:"".concat(o,"-list-item-title ").concat(d).trim(),children:a}),l&&!r?f:null]},n)},XE=function(t){var n,r,a,o=t.list,i=t.draggable,l=t.checkable,c=t.showListItemOption,u=t.className,d=t.showTitle,f=d===void 0?!0:d,m=t.title,g=t.listHeight,h=g===void 0?280:g,b=s.useContext(Wr),p=b.hashId,S=s.useContext(ic),C=S.columnsMap,x=S.setColumnsMap,w=S.sortKeyColumns,$=S.setSortKeyColumns,E=o&&o.length>0,R=s.useMemo(function(){if(!E)return{};var N=[],A=new Map,k=function j(D,F){return D.map(function(L){var B,K=L.key;L.dataIndex;var W=L.children,V=Ue(L,iWe),q=Wf(K,[F==null?void 0:F.columnKey,V.index].filter(Boolean).join("-")),U=C[q||"null"]||{show:!0};U.show!==!1&&!W&&N.push(q);var G=P(P({key:q},nn(V,["className"])),{},{selectable:!1,disabled:U.disable===!0,disableCheckbox:typeof U.disable=="boolean"?U.disable:(B=U.disable)===null||B===void 0?void 0:B.checkbox,isLeaf:F?!0:void 0});if(W){var Y;G.children=j(W,P(P({},U),{},{columnKey:q})),(Y=G.children)!==null&&Y!==void 0&&Y.every(function(J){return N==null?void 0:N.includes(J.key)})&&N.push(q)}return A.set(K,G),G})};return{list:k(o),keys:N,map:A}},[C,o,E]),I=zn(function(N,A,k){var j=P({},C),D=ke(w),F=D.findIndex(function(W){return W===N}),L=D.findIndex(function(W){return W===A}),B=k>=F;if(!(F<0)){var K=D[F];D.splice(F,1),k===0?D.unshift(K):D.splice(B?L:L+1,0,K),D.forEach(function(W,V){j[W]=P(P({},j[W]||{}),{},{order:V})}),x(j),$(D)}}),O=zn(function(N){var A=P({},C),k=function j(D){var F,L=P({},A[D]);if(L.show=N.checked,(F=R.map)!==null&&F!==void 0&&(F=F.get(D))!==null&&F!==void 0&&F.children){var B;(B=R.map.get(D))===null||B===void 0||(B=B.children)===null||B===void 0||B.forEach(function(K){return j(K.key)})}A[D]=L};k(N.node.key),x(P({},A))});if(!E)return null;var T=_.jsx(M1,{itemHeight:24,draggable:i&&!!((n=R.list)!==null&&n!==void 0&&n.length)&&((r=R.list)===null||r===void 0?void 0:r.length)>1,checkable:l,onDrop:function(A){var k=A.node.key,j=A.dragNode.key,D=A.dropPosition,F=A.dropToGap,L=D===-1||!F?D+1:D;I(j,k,L)},blockNode:!0,onCheck:function(A,k){return O(k)},checkedKeys:R.keys,showLine:!1,titleRender:function(A){var k=P(P({},A),{},{children:void 0});if(!k.title)return null;var j=La(k.title,k),D=_.jsx(On.Text,{style:{width:80},ellipsis:{tooltip:j},children:j});return _.jsx(sWe,P(P({className:u},nn(k,["key"])),{},{showListItemOption:c,title:D,columnKey:k.key}))},height:h,treeData:(a=R.list)===null||a===void 0?void 0:a.map(function(N){N.disabled;var A=Ue(N,lWe);return A})});return _.jsxs(_.Fragment,{children:[f&&_.jsx("span",{className:"".concat(u,"-list-title ").concat(p).trim(),children:m}),T]})},cWe=function(t){var n=t.localColumns,r=t.className,a=t.draggable,o=t.checkable,i=t.showListItemOption,l=t.listsHeight,c=s.useContext(Wr),u=c.hashId,d=[],f=[],m=[],g=kn();n.forEach(function(p){if(!p.hideInSetting){var S=p.fixed;if(S==="left"){f.push(p);return}if(S==="right"){d.push(p);return}m.push(p)}});var h=d&&d.length>0,b=f&&f.length>0;return _.jsxs("div",{className:oe("".concat(r,"-list"),u,z({},"".concat(r,"-list-group"),h||b)),children:[_.jsx(XE,{title:g.getMessage("tableToolBar.leftFixedTitle","固定在左侧"),list:f,draggable:a,checkable:o,showListItemOption:i,className:r,listHeight:l}),_.jsx(XE,{list:m,draggable:a,checkable:o,showListItemOption:i,title:g.getMessage("tableToolBar.noFixedTitle","不固定"),showTitle:b||h,className:r,listHeight:l}),_.jsx(XE,{title:g.getMessage("tableToolBar.rightFixedTitle","固定在右侧"),list:d,draggable:a,checkable:o,showListItemOption:i,className:r,listHeight:l})]})};function uWe(e){var t,n,r,a,o=s.useRef(null),i=s.useContext(ic),l=e.columns,c=e.checkedReset,u=c===void 0?!0:c,d=i.columnsMap,f=i.setColumnsMap,m=i.clearPersistenceStorage;s.useEffect(function(){var O;if((O=i.propsRef.current)!==null&&O!==void 0&&(O=O.columnsState)!==null&&O!==void 0&&O.value){var T;o.current=JSON.parse(JSON.stringify(((T=i.propsRef.current)===null||T===void 0||(T=T.columnsState)===null||T===void 0?void 0:T.value)||{}))}},[]);var g=zn(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,T={},N=function A(k){k.forEach(function(j){var D=j.key,F=j.fixed,L=j.index,B=j.children,K=j.disable,W=Wf(D,L);if(W){var V,q;T[W]={show:K?(V=d[W])===null||V===void 0?void 0:V.show:O,fixed:F,disable:K,order:(q=d[W])===null||q===void 0?void 0:q.order}}B&&A(B)})};N(l),f(T)}),h=zn(function(O){O.target.checked?g():g(!1)}),b=zn(function(){var O;m==null||m(),f(((O=i.propsRef.current)===null||O===void 0||(O=O.columnsState)===null||O===void 0?void 0:O.defaultValue)||o.current||i.defaultColumnKeyMap)}),p=Object.values(d).filter(function(O){return!O||O.show===!1}),S=p.length>0&&p.length!==l.length,C=kn(),x=s.useContext(Mt.ConfigContext),w=x.getPrefixCls,$=w("pro-table-column-setting"),E=oWe($),R=E.wrapSSR,I=E.hashId;return R(_.jsx(Bi,{arrow:!1,title:_.jsxs("div",{className:"".concat($,"-title ").concat(I).trim(),children:[e.checkable===!1?_.jsx("div",{}):_.jsx(Xs,{indeterminate:S,checked:p.length===0&&p.length!==l.length,onChange:function(T){h(T)},children:C.getMessage("tableToolBar.columnDisplay","列展示")}),u?_.jsx("a",{onClick:b,className:"".concat($,"-action-rest-button ").concat(I).trim(),children:C.getMessage("tableToolBar.reset","重置")}):null,e!=null&&e.extra?_.jsx(Jn,{size:12,align:"center",children:e.extra}):null]}),overlayClassName:"".concat($,"-overlay ").concat(I).trim(),trigger:"click",placement:"bottomRight",content:_.jsx(cWe,{checkable:(t=e.checkable)!==null&&t!==void 0?t:!0,draggable:(n=e.draggable)!==null&&n!==void 0?n:!0,showListItemOption:(r=e.showListItemOption)!==null&&r!==void 0?r:!0,className:$,localColumns:l,listsHeight:e.listsHeight}),children:e.children||_.jsx(Kn,{title:C.getMessage("tableToolBar.columnSetting","列设置"),children:(a=e.settingIcon)!==null&&a!==void 0?a:_.jsx(R6e,{})})}))}var dWe=function(t){var n=s.useContext(Wr),r=n.hashId,a=t.items,o=a===void 0?[]:a,i=t.type,l=i===void 0?"inline":i,c=t.prefixCls,u=t.activeKey,d=t.defaultActiveKey,f=_t(u||d,{value:u,onChange:t.onChange}),m=ce(f,2),g=m[0],h=m[1];if(o.length<1)return null;var b=o.find(function(S){return S.key===g})||o[0];if(l==="inline")return _.jsx("div",{className:oe("".concat(c,"-menu"),"".concat(c,"-inline-menu"),r),children:o.map(function(S,C){return _.jsx("div",{onClick:function(){h(S.key)},className:oe("".concat(c,"-inline-menu-item"),b.key===S.key?"".concat(c,"-inline-menu-item-active"):void 0,r),children:S.label},S.key||C)})});if(l==="tab")return _.jsx(il,{items:o.map(function(S){var C;return P(P({},S),{},{key:(C=S.key)===null||C===void 0?void 0:C.toString()})}),activeKey:b.key,onTabClick:function(C){return h(C)},children:vl(uo,"4.23.0")<0?o==null?void 0:o.map(function(S,C){return s.createElement(il.TabPane,P(P({},S),{},{key:S.key||C,tab:S.label}))}):null});var p=dG({selectedKeys:[b.key],onClick:function(C){h(C.key)},items:o.map(function(S,C){return{key:S.key||C,disabled:S.disabled,label:S.label}})});return _.jsx("div",{className:oe("".concat(c,"-menu"),"".concat(c,"-dropdownmenu")),children:_.jsx(Nf,P(P({trigger:["click"]},p),{},{children:_.jsxs(Jn,{className:"".concat(c,"-dropdownmenu-label"),children:[b.label,_.jsx(Ys,{})]})}))})},fWe=function(t){return z({},t.componentCls,z(z(z({lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:t.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.colorTextHeading,fontWeight:"500",fontSize:t.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:t.colorIconHover,fontSize:t.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:t.colorPrimary}},"&-left":z(z({display:"flex",flexWrap:"wrap",alignItems:"center",gap:t.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)"},"".concat(t.antCls,"-tabs"),{width:"100%"}),"&-has-tabs",{overflow:"hidden"}),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:t.marginXS},"&-extra-line":{marginBlockEnd:t.margin},"&-setting-items":{display:"flex",gap:t.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":z({"&:not(:last-child)":{marginInlineEnd:t.margin},display:"flex",alignItems:"center"},"div$".concat(t.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:t.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},"".concat(t.antCls,"-tabs-top > ").concat(t.antCls,"-tabs-nav"),z({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(t.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),"&-dropdownmenu-label",{fontWeight:"bold",fontSize:t.fontSizeIcon,textAlign:"center",cursor:"pointer"}),"@media (max-width: 768px)",z({},t.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})))};function vWe(e){return $n("ProTableListToolBar",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[fWe(n)]})}function mWe(e){if(ee.isValidElement(e))return e;if(e){var t=e,n=t.icon,r=t.tooltip,a=t.onClick,o=t.key;return n&&r?_.jsx(Kn,{title:r,children:_.jsx("span",{onClick:function(){a&&a(o)},children:n},o)}):_.jsx("span",{onClick:function(){a&&a(o)},children:n},o)}return null}var gWe=function(t){var n,r=t.prefixCls,a=t.tabs,o=t.multipleLine,i=t.filtersNode;return o?_.jsx("div",{className:"".concat(r,"-extra-line"),children:a!=null&&a.items&&a!==null&&a!==void 0&&a.items.length?_.jsx(il,{style:{width:"100%"},defaultActiveKey:a.defaultActiveKey,activeKey:a.activeKey,items:a.items.map(function(l,c){var u;return P(P({label:l.tab},l),{},{key:((u=l.key)===null||u===void 0?void 0:u.toString())||(c==null?void 0:c.toString())})}),onChange:a.onChange,tabBarExtraContent:i,children:(n=a.items)===null||n===void 0?void 0:n.map(function(l,c){return vl(uo,"4.23.0")<0?s.createElement(il.TabPane,P(P({},l),{},{key:l.key||c,tab:l.tab})):null})}):i}):null},pWe=function(t){var n=t.prefixCls,r=t.title,a=t.subTitle,o=t.tooltip,i=t.className,l=t.style,c=t.search,u=t.onSearch,d=t.multipleLine,f=d===void 0?!1:d,m=t.filter,g=t.actions,h=g===void 0?[]:g,b=t.settings,p=b===void 0?[]:b,S=t.tabs,C=t.menu,x=s.useContext(Mt.ConfigContext),w=x.getPrefixCls,$=co.useToken(),E=$.token,R=w("pro-table-list-toolbar",n),I=vWe(R),O=I.wrapSSR,T=I.hashId,N=kn(),A=s.useState(!1),k=ce(A,2),j=k[0],D=k[1],F=N.getMessage("tableForm.inputPlaceholder","请输入"),L=s.useMemo(function(){return c?ee.isValidElement(c)?c:_.jsx(Kr.Search,P(P({style:{width:200},placeholder:F},c),{},{onSearch:mn(ht().mark(function J(){var Q,Z,ne,ae,le,re,fe=arguments;return ht().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:for(ne=fe.length,ae=new Array(ne),le=0;lea":{fontSize:t.fontSize}}),"".concat(t.antCls,"-table").concat(t.antCls,"-table-tbody").concat(t.antCls,"-table-wrapper:only-child").concat(t.antCls,"-table"),{marginBlock:0,marginInline:0}),"".concat(t.antCls,"-table").concat(t.antCls,"-table-middle ").concat(t.componentCls),z({marginBlock:0,marginInline:-8},"".concat(t.proComponentsCls,"-card"),{backgroundColor:"initial"})),"& &-search",z(z(z(z({marginBlockEnd:"16px",background:t.colorBgContainer,"&-ghost":{background:"transparent"}},"&".concat(t.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),"&-form-option",z(z(z({},"".concat(t.antCls,"-form-item"),{}),"".concat(t.antCls,"-form-item-label"),{}),"".concat(t.antCls,"-form-item-control-input"),{})),"@media (max-width: 575px)",z({},t.componentCls,z({height:"auto !important",paddingBlockEnd:"24px"},"".concat(t.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"})))),"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:t.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}})),"@media (max-width: ".concat(t.screenXS,")px"),z({},t.componentCls,z({},"".concat(t.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),"@media (max-width: 575px)",z({},"".concat(t.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}}))};function OWe(e){return $n("ProTable",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[PWe(n)]})}var IWe=["data","success","total"],RWe=function(t){var n=t.pageInfo;if(n){var r=n.current,a=n.defaultCurrent,o=n.pageSize,i=n.defaultPageSize;return{current:r||a||1,total:0,pageSize:o||i||20}}return{current:1,total:0,pageSize:20}},MWe=function(t,n,r){var a,o=s.useRef(!1),i=s.useRef(null),l=r||{},c=l.onLoad,u=l.manual,d=l.polling,f=l.onRequestError,m=l.debounceTime,g=m===void 0?20:m,h=l.effects,b=h===void 0?[]:h,p=s.useRef(u),S=s.useRef(),C=_t(n,{value:r==null?void 0:r.dataSource,onChange:r==null?void 0:r.onDataSourceChange}),x=ce(C,2),w=x[0],$=x[1],E=_t(!1,{value:it(r==null?void 0:r.loading)==="object"?r==null||(a=r.loading)===null||a===void 0?void 0:a.spinning:r==null?void 0:r.loading,onChange:r==null?void 0:r.onLoadingChange}),R=ce(E,2),I=R[0],O=R[1],T=_t(function(){return RWe(r)},{onChange:r==null?void 0:r.onPageInfoChange}),N=ce(T,2),A=N[0],k=N[1],j=zn(function(Q){(Q.current!==A.current||Q.pageSize!==A.pageSize||Q.total!==A.total)&&k(Q)}),D=_t(!1),F=ce(D,2),L=F[0],B=F[1],K=function(Z,ne){Ua.unstable_batchedUpdates(function(){$(Z),(A==null?void 0:A.total)!==ne&&j(P(P({},A),{},{total:ne||Z.length}))})},W=pm(A==null?void 0:A.current),V=pm(A==null?void 0:A.pageSize),q=pm(d),U=zn(function(){Ua.unstable_batchedUpdates(function(){O(!1),B(!1)})}),G=(function(){var Q=mn(ht().mark(function Z(ne){var ae,le,re,fe,ue,de,ie,se,ve,he,Ce,pe;return ht().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(!p.current){ge.next=3;break}return p.current=!1,ge.abrupt("return");case 3:return ne?B(!0):O(!0),ae=A||{},le=ae.pageSize,re=ae.current,ge.prev=5,fe=(r==null?void 0:r.pageInfo)!==!1?{current:re,pageSize:le}:void 0,ge.next=9,t==null?void 0:t(fe);case 9:if(ge.t0=ge.sent,ge.t0){ge.next=12;break}ge.t0={};case 12:if(ue=ge.t0,de=ue.data,ie=de===void 0?[]:de,se=ue.success,ve=ue.total,he=ve===void 0?0:ve,Ce=Ue(ue,IWe),se!==!1){ge.next=21;break}return ge.abrupt("return",[]);case 21:return pe=VVe(ie,[r.postData].filter(function(ye){return ye})),K(pe,he),c==null||c(pe,Ce),ge.abrupt("return",pe);case 27:if(ge.prev=27,ge.t1=ge.catch(5),f!==void 0){ge.next=31;break}throw new Error(ge.t1);case 31:w===void 0&&$([]),f(ge.t1);case 33:return ge.prev=33,U(),ge.finish(33);case 36:return ge.abrupt("return",[]);case 37:case"end":return ge.stop()}},Z,null,[[5,27,33,36]])}));return function(ne){return Q.apply(this,arguments)}})(),Y=k1((function(){var Q=mn(ht().mark(function Z(ne){var ae,le,re;return ht().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(S.current&&clearTimeout(S.current),t){ue.next=3;break}return ue.abrupt("return");case 3:return ae=new AbortController,i.current=ae,ue.prev=5,ue.next=8,Promise.race([G(ne),new Promise(function(de,ie){var se,ve;(se=i.current)===null||se===void 0||(se=se.signal)===null||se===void 0||(ve=se.addEventListener)===null||ve===void 0||ve.call(se,"abort",function(){ie("aborted"),Y.cancel(),U()})})]);case 8:if(le=ue.sent,!ae.signal.aborted){ue.next=11;break}return ue.abrupt("return");case 11:return re=La(d,le),re&&!o.current&&(S.current=setTimeout(function(){Y.run(re)},Math.max(re,2e3))),ue.abrupt("return",le);case 16:if(ue.prev=16,ue.t0=ue.catch(5),ue.t0!=="aborted"){ue.next=20;break}return ue.abrupt("return");case 20:throw ue.t0;case 21:case"end":return ue.stop()}},Z,null,[[5,16]])}));return function(Z){return Q.apply(this,arguments)}})(),g||30),J=function(){var Z;(Z=i.current)===null||Z===void 0||Z.abort(),Y.cancel(),U()};return s.useEffect(function(){return d||clearTimeout(S.current),!q&&d&&Y.run(!0),function(){clearTimeout(S.current)}},[d]),s.useEffect(function(){return o.current=!1,function(){o.current=!0}},[]),s.useEffect(function(){var Q=A||{},Z=Q.current,ne=Q.pageSize;(!W||W===Z)&&(!V||V===ne)||r.pageInfo&&w&&(w==null?void 0:w.length)>ne||Z!==void 0&&w&&w.length<=ne&&(J(),Y.run(!1))},[A==null?void 0:A.current]),s.useEffect(function(){V&&(J(),Y.run(!1))},[A==null?void 0:A.pageSize]),ly(function(){return J(),Y.run(!1),u||(p.current=!1),function(){J()}},[].concat(ke(b),[u])),{dataSource:w,setDataSource:$,loading:it(r==null?void 0:r.loading)==="object"?P(P({},r==null?void 0:r.loading),{},{spinning:I}):I,reload:(function(){var Q=mn(ht().mark(function ne(){return ht().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return J(),le.abrupt("return",Y.run(!1));case 2:case"end":return le.stop()}},ne)}));function Z(){return Q.apply(this,arguments)}return Z})(),pageInfo:A,pollingLoading:L,reset:(function(){var Q=mn(ht().mark(function ne(){var ae,le,re,fe,ue,de,ie,se;return ht().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:ae=r||{},le=ae.pageInfo,re=le||{},fe=re.defaultCurrent,ue=fe===void 0?1:fe,de=re.defaultPageSize,ie=de===void 0?20:de,se={current:ue,total:0,pageSize:ie},j(se);case 4:case"end":return he.stop()}},ne)}));function Z(){return Q.apply(this,arguments)}return Z})(),setPageInfo:(function(){var Q=mn(ht().mark(function ne(ae){return ht().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:j(P(P({},A),ae));case 1:case"end":return re.stop()}},ne)}));function Z(ne){return Q.apply(this,arguments)}return Z})()}},TWe=function(t){return function(n,r){var a,o,i=n.fixed,l=n.index,c=r.fixed,u=r.index;if(i==="left"&&c!=="left"||c==="right"&&i!=="right")return-2;if(c==="left"&&i!=="left"||i==="right"&&c!=="right")return 2;var d=n.key||"".concat(l),f=r.key||"".concat(u);if((a=t[d])!==null&&a!==void 0&&a.order||(o=t[f])!==null&&o!==void 0&&o.order){var m,g;return(((m=t[d])===null||m===void 0?void 0:m.order)||0)-(((g=t[f])===null||g===void 0?void 0:g.order)||0)}return(n.index||0)-(r.index||0)}},NWe=["children"],_We=["",null,void 0],vB=function(){for(var t=arguments.length,n=new Array(t),r=0;rle.length?(le.push(J),le):(le.splice((l==null?void 0:l.current)*(l==null?void 0:l.pageSize)-1,0,J),le)}return[].concat(ke(a.dataSource),[J])},k=function(){return P(P({},O),{},{size:u,rowSelection:c===!1?void 0:c,className:n,style:d,columns:N,loading:a.loading,dataSource:R.newLineRecord?A(a.dataSource):a.dataSource,pagination:l,onChange:function(G,Y,J,Q){var Z;if((Z=O.onChange)===null||Z===void 0||Z.call(O,G,Y,J,Q),C(jr(Y)),Array.isArray(J)){var ne,ae=J.reduce(function(de,ie){return P(P({},de),{},z({},"".concat(ie.field),ie.order))},{});S((ne=jr(ae))!==null&&ne!==void 0?ne:{})}else{var le,re,fe=(le=J.column)===null||le===void 0?void 0:le.sorter,ue=(fe==null?void 0:fe.toString())===fe;S((re=jr(z({},"".concat(ue?fe:J.field),J.order)))!==null&&re!==void 0?re:{})}}})},j=s.useMemo(function(){return e.search===!1&&!e.headerTitle&&e.toolBarRender===!1},[]),D=_.jsx(x3.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:_.jsx(fo,P(P({},k()),{},{rowKey:t}))}),F=e.tableViewRender?e.tableViewRender(P(P({},k()),{},{rowSelection:c!==!1?c:void 0}),D):D,L=s.useMemo(function(){if(e.editable&&!e.name){var q,U,G;return _.jsxs(_.Fragment,{children:[f,p,s.createElement(mo,P(P({},(q=e.editable)===null||q===void 0?void 0:q.formProps),{},{formRef:(U=e.editable)===null||U===void 0||(U=U.formProps)===null||U===void 0?void 0:U.formRef,component:!1,form:(G=e.editable)===null||G===void 0?void 0:G.form,onValuesChange:R.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:e.dateFormatter}),F)]})}return _.jsxs(_.Fragment,{children:[f,p,F]})},[p,e.loading,!!e.editable,F,f]),B=s.useMemo(function(){return b===!1||j===!0||e.name?{}:m?{padding:0}:f?{paddingBlockStart:0}:f&&l===!1?{paddingBlockStart:0}:{padding:0}},[j,l,e.name,b,f,m]),K=b===!1||j===!0||e.name?L:_.jsx(Vg,P(P({ghost:e.ghost,bordered:eX("table",E),bodyStyle:B},b),{},{children:L})),W=function(){return e.tableRender?e.tableRender(e,K,{toolbar:f||void 0,alert:p||void 0,table:F||void 0}):K},V=_.jsxs("div",{className:oe($,z({},"".concat(r,"-polling"),a.pollingLoading)),style:h,ref:T.rootDomRef,children:[w?null:g,i!=="form"&&e.tableExtraRender&&_.jsx("div",{className:oe($,"".concat(r,"-extra")),children:e.tableExtraRender(e,a.dataSource||[])}),i!=="form"&&W()]});return!x||!(x!=null&&x.fullScreen)?V:_.jsx(Mt,{getPopupContainer:function(){return T.rootDomRef.current||document.body},children:V})}var HWe={},VWe=function(t){var n;t.cardBordered;var r=t.request,a=t.className,o=t.params,i=o===void 0?HWe:o,l=t.defaultData,c=t.headerTitle,u=t.postData,d=t.ghost,f=t.pagination,m=t.actionRef,g=t.columns,h=g===void 0?[]:g,b=t.toolBarRender,p=t.optionsRender,S=t.onLoad,C=t.onRequestError;t.style,t.cardProps,t.tableStyle,t.tableClassName,t.columnsStateMap,t.onColumnsStateChange;var x=t.options,w=t.search,$=t.name,E=t.onLoadingChange,R=t.rowSelection,I=R===void 0?!1:R,O=t.beforeSearchSubmit,T=t.tableAlertRender,N=t.defaultClassName,A=t.formRef,k=t.type,j=k===void 0?"table":k,D=t.columnEmptyText,F=D===void 0?"-":D,L=t.toolbar,B=t.rowKey,K=t.manualRequest,W=t.polling,V=t.tooltip,q=t.revalidateOnFocus,U=q===void 0?!1:q,G=t.searchFormRender,Y=Ue(t,BWe),J=OWe(t.defaultClassName),Q=J.wrapSSR,Z=J.hashId,ne=oe(N,a,Z),ae=s.useRef(),le=s.useRef(),re=A||le;s.useImperativeHandle(m,function(){return ae.current});var fe=_t(I?(I==null?void 0:I.defaultSelectedRowKeys)||[]:void 0,{value:I?I.selectedRowKeys:void 0}),ue=ce(fe,2),de=ue[0],ie=ue[1],se=_t(function(){if(!(K||w!==!1))return{}}),ve=ce(se,2),he=ve[0],Ce=ve[1],pe=_t({}),Se=ce(pe,2),ge=Se[0],ye=Se[1],xe=_t({}),$e=ce(xe,2),He=$e[0],Te=$e[1],Re=s.useCallback(function(Ne){for(var We=[],rt=0;rt0){var Ne=st.map(function(We){return Wf(We.key,We.index)});Pe.setSortKeyColumns(Ne)}},[st],["render","renderFormItem"],100),ly(function(){var Ne=Oe.pageInfo,We=f||{},rt=We.current,ct=rt===void 0?Ne==null?void 0:Ne.current:rt,At=We.pageSize,pt=At===void 0?Ne==null?void 0:Ne.pageSize:At;f&&(ct||pt)&&(pt!==(Ne==null?void 0:Ne.pageSize)||ct!==(Ne==null?void 0:Ne.current))&&Oe.setPageInfo({pageSize:pt||Ne.pageSize,current:ct||Ne.current})},[f&&f.pageSize,f&&f.current]);var Ze=P(P({selectedRowKeys:de},I),{},{onChange:function(We,rt,ct){I&&I.onChange&&I.onChange(We,rt,ct),ie(We)}}),vt=w!==!1&&(w==null?void 0:w.filterType)==="light",Ot=s.useCallback(function(Ne){if(x&&x.search){var We,rt,ct=x.search===!0?{}:x.search,At=ct.name,pt=At===void 0?"keyword":At,ft=(We=x.search)===null||We===void 0||(rt=We.onSearch)===null||rt===void 0?void 0:rt.call(We,Pe.keyWords);if(ft!==!1){Ce(P(P({},Ne),{},z({},pt,Pe.keyWords)));return}}Ce(Ne)},[Pe.keyWords,x,Ce]),xt=s.useMemo(function(){if(it(Oe.loading)==="object"){var Ne;return((Ne=Oe.loading)===null||Ne===void 0?void 0:Ne.spinning)||!1}return Oe.loading},[Oe.loading]),mt=s.useMemo(function(){var Ne=w===!1&&j!=="form"?null:_.jsx(rWe,{pagination:Be,beforeSearchSubmit:O,action:ae,columns:h,onFormSearchSubmit:function(rt){Ot(rt)},ghost:d,onReset:t.onReset,onSubmit:t.onSubmit,loading:!!xt,manualRequest:K,search:w,form:t.form,formRef:re,type:t.type||"table",cardBordered:t.cardBordered,dateFormatter:t.dateFormatter});return G&&Ne?_.jsx(_.Fragment,{children:G(t,Ne)}):Ne},[O,re,d,xt,K,Ot,Be,t,h,w,G,j]),yt=s.useMemo(function(){return de==null?void 0:de.map(function(Ne){var We;return(We=we.current)===null||We===void 0?void 0:We.get(Ne)})},[Oe.dataSource,de]),bt=s.useMemo(function(){return x===!1&&!c&&!b&&!L&&!vt},[x,c,b,L,vt]),tt=b===!1?null:_.jsx($We,{headerTitle:c,hideToolbar:bt,selectedRows:yt,selectedRowKeys:de,tableColumn:st,tooltip:V,toolbar:L,onFormSearchSubmit:function(We){Ce(P(P({},he),We))},searchNode:vt?mt:null,options:x,optionsRender:p,actionRef:ae,toolBarRender:b}),Ye=I!==!1?_.jsx(QVe,{selectedRowKeys:de,selectedRows:yt,onCleanSelected:Qe,alertOptionRender:Y.tableAlertOptionRender,alertInfoRender:T,alwaysShowAlert:I==null?void 0:I.alwaysShowAlert}):null;return Q(_.jsx(zWe,P(P({},t),{},{name:$,defaultClassName:N,size:Pe.tableSize,onSizeChange:Pe.setTableSize,pagination:Be,searchNode:mt,rowSelection:I!==!1?Ze:void 0,className:ne,tableColumn:st,isLightFilter:vt,action:Oe,alertDom:Ye,toolbarDom:tt,hideToolbar:bt,onSortChange:function(We){je||We===He||Te(We)},onFilterChange:function(We){Fe||We===ge||ye(We)},editableUtils:lt,getRowKey:_e})))},G3=function(t){var n=s.useContext(Mt.ConfigContext),r=n.getPrefixCls,a=t.ErrorBoundary===!1?ee.Fragment:t.ErrorBoundary||eG;return _.jsx(UVe,{initValue:t,children:_.jsx(Ag,{needDeps:!0,children:_.jsx(a,{children:_.jsx(VWe,P({defaultClassName:"".concat(r("pro-table"))},t))})})})};G3.Summary=fo.Summary;const Hs="openab.adminToken",sb="openab.lastEventId",nR="openab:unauthorized";function Y3(){var n,r;const e=((n=localStorage.getItem(Hs))==null?void 0:n.trim())||"";if(e)return e;const t=((r=sessionStorage.getItem(Hs))==null?void 0:r.trim())||"";return t&&(localStorage.setItem(Hs,t),sessionStorage.removeItem(Hs)),t}function WWe(e){localStorage.setItem(Hs,e.trim()),sessionStorage.removeItem(Hs)}function aX(){localStorage.removeItem(Hs),sessionStorage.removeItem(Hs),sessionStorage.removeItem(sb)}function KWe(e){const t=e.pathname+e.search+e.hash;return"/login?return_to="+encodeURIComponent(t)}function mB(e){const t=new URLSearchParams(e).get("return_to");return!t||!t.startsWith("/")||t.startsWith("//")||t.includes("\\")?"/overview":t}function oX(){aX(),window.dispatchEvent(new CustomEvent(nR))}const qWe="当前配置还有未保存的修改,确定要离开吗?";let Sy=!1;function gB(e){Sy=e}function UWe(){Sy=!1}function X3(e=t=>window.confirm(t)){return Sy?e(qWe)?(Sy=!1,!0):!1:!0}function pB(e,t,n){return e===t?!1:X3(n)}function iX(e){if(!e||typeof e!="object")return;const t=e.idx;return typeof t=="number"&&Number.isInteger(t)?t:void 0}function GWe(e,t){const n=iX(t);if(e===void 0||n===void 0)return;const r=e-n;return r===0?void 0:r}const lX="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAYAAAA+s9J6AABk1ElEQVR4AezBS3McaZZe67W2O0AmsyrL1K2WzDQ6gzPU//8xxzTowZGZJOuWKi/EJcK//QoeQQcQSTLILDAzecHz+N//7adwhso5UzhL5ZzuZqOyUVmpPEUSzlH5GCorlceScE5V8RTdjcpGZaOShD9Td/MUSfgzJeGcJDxFEj6k+EyobFSePftWzHwGVDYqn5LKs2efs5k/mcpGZaPy7Nm3YOYzobJS+ZRUzknCs2d/ppk/mcpGZaOySsKzZ1+z4jOhslF59uxbUXxmVJ49+5bMKk+hck4SNiorlY3KU6ic0918DJWNyvsk4bGq4im6m3NUHkvCJgkfUlWck4SnqCrOGWPwOVPZJGGThE9B5UNm/iAqXwKVz4nKs6/bzO9M5TGVjcqHqDyFyj9CZZWE35PK10zlKZLwtZv5A6msVD43KhuVZ8/+KDN/AJWNykYlCeeonJOEc1R+C5WVyioJvyeVc1S+ZCpPkYSv3czvTGWjslL5HKmsVJ49+6PM/EFUPlcqG5U/kso5Kk+RhGeft7mABgpooIAGCmiggAYKaKCABoqPp7JR2agk4RyVc5LwFCrvo/LsaVSenTcbKKEQBQNVYqAEOigYUDCgYDhQ+ZAkbJLwmIZzuptzEjlnmib+UUn4EJWnqHCWnJeEc+S8VHFOEs7pbs5ReYqq4rEkrJKwUjknCR9LZaPya0lYJeFjqZyThJk7BhAMB4YDAwEMB4YDw7NnByrfGpUkfCozXziV35PKs2+XShJWKklYqayS8FTFs2fPzlJRWal8ajNfOJXfk8qz91M5JwlfMpUkrFSSoLJKwqdQPHv27CwVlZXKRuVTmHl2lsqz91M5JwlfG5UkfCozXziVZ89+LypJWKkkYaWShE9hVvm1JHwqKueFc6qKp+huVDYqj1UV5yTh91RV/JnC0yThnKrinDEG56g8pvJYd/N7GmNwTlWxScImCR9DZeYrp/I+Ks/+XCrfupkPUPlaqKxUnn0dVM5Jwudu5huhslL5lFT+TCpPoTz7k818gMo5SficqWxUNirP/nwq5yThHJUv3cw3QmWl8jVReQrlrCQ8+33NfOVU3kVllYSnUHmS8FlTeYoknKNyThLOUfnSzXxDVD61Cm9pOSuC4aBtVsWvpDhHINyx+ZDmtyoei7wtBTaGZ080VxVPofIUVcVvobJSWSVyjsq7JOEfobJSqQAZHBUbw4OpWEXuBVDuNLvdjlUpKiuVibC6uLggCaZIQhK6GwJh0AkaVlVFSlRWKkmAsEnCahAqUExUuNcCaSIHQZpVsYocWRgoG9O8j3KQhFUSHlM5p4oPkFUSVkl4bJomzuluzknCx1LZqPxaElZJ2FQVM88+msq7GO40sVgJhPMaKODy8hJpNjpR4Q3Z7/eomKBSyDTNrOIM1UCzSsIgdDerJDgVK5UWKpKSGahAL4NTBQaQX4schOJAIPwmKkn4lqkkYTPz7KOobFQei+GoWUXeYnijKLl3WRMwsUoCiEASoJiUoyIdlgQISVjVRWjDSgWkSlRWy7KgEkBFhQEqApXBu0gIq4BAwHAkB4aPppKElUoSvgUqSVipJGGlspn5wqn8nlQeU1mpxMaAkU0EkU14m4EIpliWgeFABUIotAgFchBCRwKMBAMjoYZgqCpEVLRAMEBCwr3BJkAzWUDzLnJHmbhjaKFSNOFAIM05KqskqCRhpfKtUFklQSUJj808+ygqG5UHTeRXik2xkVVzZDjoAQIqICg6gRBgWQIlIJm4IxYYmISaIBx1QGAEGFCBmmYOmgMDCQfJoKcGi/eRsKmAaUoehI+ikgSVVRK+BSpJWKkkQWWVhNXMs7NUHlPZqIhgQ4oHAYoWDLRQgebXCueCiEDkIAXNUc8SoYEICTRQQnOnOVHhYBZamAQDFFQgghzJxGDVPCZho7KRO4I8aM5TScJKJQkrlVUSvnYqqySoJGGlspr5wqmck4RPRWWjAqFtsHmXULQQpCkiD1KsnKSBbhiBBpYFmpCEpmhCRwZhpFnS2KGFsTQrldliqkJljqgITMAkzEIVTAVVoNA98WtFs5FTleZB0XyYShJWKkn4lqkkYTPz7KOobFTOicWqWQkpkDvFPSGKE+wDIzAa9gP2y8K+ByPNzW5PhFCkJEIDBUTZ7wcrO6wEKkAHgZcXl0wWFzVxMc/MM1zOcAHUBAjFxEbCoDBN0QSR8G4NApEPUUnCSiUJ3wKVJKxUkrBSScJqTsI5Kk9RVZyj4R+RhKPwqahsVN4nCUfhxauX7HY37HYL3c00XVAXMtUFKklIS5Q0DKA7JKE7/Hwz2APdzX5ZWJbBfizsRxhpXr56RRNi0UATWqgUI4F5YlWA4aACBgSuEhgLLnu4CYVM08RFTUwF//k/XjIaaEhAoEomJ6yJEkxDmu6mu0lCeqEj0+ULQN4nCe+i8lskYZOEjXKgslJ5LAlJ2CRhk4RpmkjCJgmbJKg8RXfzPipJmHn2JNfXt0CYpolpumAQRkNngBMtULIaBWPAfoT9fs+uww2wIElYkEwXjJpgFgi7mmggFkkI0EK4I2+EimAwoqEiEDLCNElRmABFG5bANAb/+t//zqvLC77/7hWvvpeLWRDYwzJg3wummQzzVNTFJZVmLJIxePZ0M8+eZOwXpmmi5om0pAdNwzxRVTTQwDJg32G3H+z3e3ajWRJuA0sVUFATqzgBhcIYIUILAUKRhJaDCneapsCmKEITCmiiWEDNFGGhyLInHdLNtIQle27HFVe7C757ccGLF/JihosXcHszURQyCKLS3FGefRoznzmVz9nl5UtW3WFJaO44Yc1kgjHgZsD17Z7b3cJuWRgJ1ESmC3bLYKRQMQWKCCVapAcjQiBCEkBIEQYg91IcFRFMUbM0R43QgwbappDvvv8b2e+43i28vr3m4uqWVy8v+et3l7x8IZeTlDJbEFjGQrpJwPkCIs+eZubZExQv5on9aDoDKeZpZlgsDWMHV7vB7WhuloWbZbA0UIU1ozNdorIKBeGOMCDcaSmKVTqADEIFsJgIUryLgakmktDddDdJAMEJZ9m14IwXE5WmM7jaDW5vf6Yc/NMPP/Ddy4n5BUxC72fSjVVMFt3Ns6eZefYkCRQwOeMkEZbAzc3C1W7P6/2eoYxpoucZkAXphIyFuS5YJeGoyAgbKUggIpKESTHckUmB5n0q0B0YDd2QwFTMFjqx7BuQoqiaMMUYC0uDY/Bv//6/+cv3r/CH7/nuJcwTFJesNNDNs6eZ+cypnJPwp1r2jQpKN+xGc7XbcXW743oMdh3GNJNJ2qItRsIujRHTVBcgK5VCNt0gYkPCHVkZDqYK7xI52O92bEqxChQBA0wTCfSApQeVUMhcE+Ult7dX8PqKXvb89dUlr1684PJiYhK6efYJzHzjKhy0HETuNCiPGQ4qxaYt9iUIC3C7D69v91ztFpYOewvmwpoYyAh0N4MAhUIGdBoVlQooGFBIOBIqYZUEKEwDYiBywnAwdnuqimmamKYJlVV3k24GUE7MF9yZsIuMPfv9Aj149eqvLLdX/P3n11zf7vjhL+GHv7ziYpaKTM4UjYEIBmJjIIKBCIZn7zHzCahsVDYqYwxUNiobFQgblY3KKgnnyTkq71OBcmJVwqgmNpE7IcLY7yhlZmaqYgrQoRuaO6/gp4ZffoFfrm652S00wfkCq2ikgTQgCMxKCUUhUtwJkNAMHguyUY7kThNgsIBQ4Z0uLy9ZGchowgMJM3fS9AAyWJlQs8glN/uFi8tXTBcvudrt+PHffublT9f88z//M//yN5kjYy8TMl2IDbdLKGC+mOmlCaDNUXjMlnOSsFLZqGyS5hwF5RF5IN3hMZWNShIeS8IqCR9D5UNmvnlyFAwgB7FZOUHSLFmgZ6YqapqZDDvkxz38MuA6cOvMMnHgNFFVjB6sWu4ZKMA0MHFes4m8JeGg5USFdzI8sDlqkrCqQAirAKliKHNd4AxGFide3wwmZ364gFcXxXzBwRLQiQDL0mxaDio8+5WZb1gLcmpqiNDFQTkzepCWnqBLIjSyD/z4S7iOjNEkoapQoQqV9zF8EnKqwgnDgeGd7ABBjpKwEkhCBSoQwjRN0KG7ubq6YtxAvZq4/OF7Xr6A0RxMkySwLM00yarCs/eY+ca1ocKdpmgOAjYHTgVVxOA0MaaiG27G4Jd98/p6sNTERmXV3XyIKegQ3i8JZyU8lnAqHIV3CPIgCaskPNbdrJKwUhljcLPbc+3M6wmK75lnmAosGANUoIAGCmhAIDx7MPOMFiocGA7mFAGqJizoqeiSXcP10vx8c8Uvt82eC7onVFSSsOqEJFCySnhLCCLyjzOcMJwwHBTvEDAQwkogCQIVSIKBHoMkJGGyECikqliWhb///ZbdbuFvf/srr14VkYN5LhiA3DPcEQyr8HVLwofMfOPCHZsGpoCECg8CU00g3AZe75ufbm/4ebfnehnMly8xskrCKgnIBxWQhPB+STgr4UQ4FQ7C20wId+QgCSs7hFNJoEMqVBVVxaz0uOXmZseyb+Z5Zpq+Z5rAQE0Q7qTABgponp2a+dbZPFYBAxVooUdIwWi4WcKPNzt+ut1zw53LSxpBTljFpKz2Y2ElbwsreSrDPcOJ4sjwluKNQBLkjXDPwGQxTYUVkkBCKaToBmpi6fDzLzek5dX3L7mciwSKI8NB8UY4GHzdknCOysw3LIKsmneTREbDDrheFl7f7ng99mS+4OLiO/o2mLBRqSqqpAr2g99NBQj3DCeKI8OJCkdykIR7He51QJmmiUlJwhiD7qa7mZSl4XJ+gR1urm+hwzRNzK9ekEBNvFFA8+xtcxJWKhuVj1VVvE8SqorHVFYqR/IuSVipnNMdHlNZqaxU3ktIBipVRSUwwhiDJdCEl9+/Ytfw+mbh9W5hoXB+SU8TS4qLqbBlk4RlBEZIwuTMY0lYJWFVPEjCJgkrOU/FcFBywkASKpyQNwLdDYSN4V4pq4zBCAcCk8VRmOdLJMwXE9Dsd7f8+//5O8nf+Jf/+JL9LSh3AmOw9ILKNBU1T4zRfIwkbJKwUfmUkrBJwvuorLqbc1Q+ZOYrovJbGEBRCU0CEZwKAljsGm72g+vbwb4H1ETVzCLsO0zIxFESNkn4tSS8TxI2SfgYBgwUbzMcVDgh72e4VxwlwUB4UOGeTiSDsQQMYwRGc319y99/vOAvLyeqwCFLgxRVUlXQoYDmz6OShHdRScLvbeYrobJR+ViTRWjs0EApzAUKTLzeNz/vdry+3XOL9IuZyQsqoccCBS0H4SgJxSk7yFES5MhAEuQoCfIgCe8ToAKEtxiOEk6ER4LhXvHAcBSocEIekxEJkA6NMMLV1TVjDL77T/9ETVAFKiJzTSgsY4DyZ1NZJUElCR9L5almvnAqj6msVD6smWtiDOgElZ4Ei6YYwk8/X/F6aW57YXBBj9CCSDFBJGk2SdgkIRzJURJWSTgI95KwScKHGD6Z4t0qnJBT3U0C3QFFJjLBWJqrccXr16/4qy+5vIS6mOkRVummu3Ga+FyoJEElCX+Uma+EykblYxRgQBpoWiknRsGuB7dDftzdsmeiayKZYAAJVTJZJNwpVkkQSULCHSGySoeVSBJEjppVElZJ+C0MVHiLHKXDY4ZHgtwRDCcqHCThRDgxIiAqlWaaLtAZx47RzY8//sw8yasXL5gvYEHGGJiBkT+byioJK5UkqKyScI7KOUn4kJkvnMpjKhuVJJyVQAcSQEbBQrgee652g9sMhtJ1iRRJQcMEpCBAEjZJeCwJKzlKwiYJEDZJ2CThgwIJJPxJiu4wTRMGWpgCNcnkJS7N9fU1v/xSvHpxyfevpAqWJaQbqwifB5VVElSS8EeZ+YqobFQ+RnfDaCighJLdsnC1u+Wnmx2ZZkYkEZS5ZhB6wDIgM0QwkAQ5SsJKZJMEeaODQOQgCZsk/KPkyHAQjiqcMIAchXsVTiRhZTgIj4VVVWFgGQvLGOBEKVCsrq6u+HGemOoHXlwWExJkmiZ2NH8mlVUSHlP5o8x88ZqVCoSVCoSj8D4GqkNzJ0Uz0RQ7iusFXu+ayxffkwGjQyHTDFWwbxhjQSYIyFEFkmA4KN5IkDc6bAxE7iVhZfigAiqADSmwIQU0UECTcKdJCmiggIYUEFTeR44MB0UggoEINJ2ikBKW0SzLQhHGJCTM88zu9paff/6ZV9+95PLiJSpxgiocDUIBDRTQ/HlUkvBHmquKc5KwUtmobMYYrFQ2KptpmniKJGxUNiqrIhyFewmbUt6ngLlgdwtcSE0zP93C//zphtejmF/9J252C6Fwgk643e9YJYOaCpt7SahwkIRVwoHhXvGgAQOEA5EkFKcMJyoc9NgDDRTQmAIaKKCpFNiQAA0EaEIgkIQTaVYCAUwojkwDBWkqxVHo3Z4GLii4uMCEjKYIYwzmeeb6+pZ///f/zXff/RdefVfc3BRjNCqTYEDBgHKvlU0SIpCwMhwU75eEszJYySNyz+JEEjZJaIpzVM5rZj6CykZlo7JS2ahsVH5XBsKd5v3krIZpmujpgpvA7YB9F4OZRAYXFHcSYLAKC13cGVQEiiQIGEiCHBkOilOGgxKaBybIA8NBhROyah40R81Rc2Bz1Bw1R81R8T4G5Mg0q0qzkoYUFd5osDEgTQUQqopkoBOjm5ubHRcXl1TBGAEL06wMBwYiHxRhCr8rlSS8iwrhyWY+QGWjslFZqWxUNipfglBMlzPLJLt9uN7tWNIkYQzuJaGAJCAnkmA4SMLKcJCEVTgyHISjAAJyFN7osDIchCM5CquwMZwo3q3CiZaDCgdyZLhnoMKBbBoEUxBAIGAAuVdVZCyURbr55aefeXHxT7x6KcsSRD53KqskqCThUyo+kspG5ddUNipfgggtOAnCfj+4vdkxRoBmjD2hScIqCQeRJCQhCZskbJKQhI+VhCSskvBHqUCFE4aDItAhCUlIQhKSkIQkJIMwSAIdQmOHMKDDbEEHlV7Czz//zM3VFd1gi+GLobJS+ZRmPkBlo7JRWalsVDYqn70UUYawH3B9u2e37AkzKztUcSckQcBAExCIrAwk4aDDY8WR4d06rOQoCQJ2eKfwSDAcFKcMB0lYGd5jcCIQoAiEg0ojR6Y5Ee40qyIQkDuB4oGBjMEy9lz98prvv3sF8tlTWSVhpZIElYPwZDMfSWWj8msqG5UvQQScWQZc78NuGYwGJ1GBJhmYogICSZDCMYAAIYRVEuQoCavwRvigJKzs8C6GdyrOq/BBhntFMFCB7sEqgIEQis2A8EizMg02pEmHQuwwuslorl5fc/X9FX/5yyua8CVQWSVBJQmfysxHUNmobFRWKhuVjcpnb4LbHVzd7LhZFqDACZVSaMDGQBJWSUBOdZCjJBRHhhMV3pKElUAS5JEOG8OvBAF5W4WD7nAivJPhyEDAcKcRMNxpiiPDnQYKaDYVDuROQKCXwYSMHtBhUnY3N1z/8poffvieJnzOVFZJeEzlKDzVzAeobFQ2KiuVjcpG5XPXSCbYNVzvF0Y3qYmqohWRABWgg9wRwqaA4rEk/BZJeEwe6bCp8BZ5twr35IHhRIV7BjAQqIA0BggUzcpwUAHkTpMIFCtpVqbBphK6m5qLkUEFaprY3+64vb5hFha+LCpJ+JRmfoMkbJLwa0lQ+S1UzlE5RwXkfZIwzzPzPJOEZVlYloUkRLlZ4O9Xt/xyfU1fXsA0cbvfsXSYpomJiQRIcRSOilUSDPcm5UTCqsIJeTeRTSndzcrwlgKSAOF9CtmYsElCuJNmZbgXGgIGqoLhoGhWcic80qxMsyoaAgYymtGDSampqILL717RS/Pf/r9/5f/9r/8PtwN2ux3zPHNxMbPfL4wxePnyBbf7hY0Kgsq90Zyjck4SzknCKgmrJPwW0zSRhE0SNklYzXwDktDdJCEJq6oi0wW3AxZkWIQiFG0TQYWAQPFGoAXCgeFJkrAxEI4qEI4MJ4r3kweGexUIR0lYGTAcGI5sDFRAGiMVwMZwYHiQ5p5NBUxYFTAZDCgYoEOVkJDAsgcKqookJKCikvBNmPnKqSRhjEESupuqoqpglh9vYddhWDSSBBXlwPBG8y5JKB6EI8OBHVbhSI7CkeFehXuGo0BxyvAggNwz3KvwoINAEuSouBMOpDkIVAAbAhWQhoABbIoHIdxLMBwUYBoDpZBQgBS0QNOE6+trLl5dMk0TYwy6G5Wqorv53Kk81cxXTiUJ3U0SVFSmaWIUXO8WlhHCzIgEWalsKmA4iPwuKrxTccpwIgkQ7oWDCoQHAknYmEBAHlQ4kDuBCncGhAMDGAj3BGJYGQ4KMI1AKRVQkTsJdNAg4erqir++nJnnmTEG3c00TZRFEr4FM185lSQkYaOySuD6ZscuMoAGOhBEOZDmqDhVrJImPDAcGA6SsJKjcGQ4sMNBOCFvdDgRHhjkTrhX4cBwwgQ5SoLhXqVZyaqpcCAPikbuBCoctNwJ0qyKI8O9iaAcVCAJBAI04erqild/+57LywtUkvAlUXmqma+cykalqlDpbpYubm73LDUTIAkJqByEA4HiqAMFNBCh+HMlAcIm4SickKMkrJIgoZCVHFU4kDc6GO6EABUIRxI0NFDhwHAgUAGVlR2SYCAJSQjN7fUN+/2e7757SVWRhO4mggoJX7uZr5yKSlWhMk0Tq2VZ2EVulz37aSJzEaBpRBQq4UEDxVHxa4Z3S1iFI8NBeCPBQDgqjsIbCSvDQXgsVDireJAEA0l4TN6lMWB4JwnhqAKGA2lWFQ5UkrAyQAcSSIhh2e9ZloUEpmmiu+luOmGeZz53Kk8188VrBMKmeNCsVFZVRWqiA/uE2xF2LT2JHJlCgkghEE4VGwNJME0ooIECmqTABgQaKKCBAhooKhA+RgMFNpsKEAjNrxkOiiMTEpAgq7CqwEQDzUbANKuigbCqAAYEw4FpRFZyVOFAjircCSBhIKHTkFAdWAYsg+rgJFG6mwhVUoMTHYjca6D4ss3cUdmobFSS8JjKSmVVNKfCUVipnDMSNioblZXK+xRQNgZiEYpGNoUs+z3zXIwOFxcz1wOWQL+Y+df/9r+YLr+jLTpAoFgFCA1UYAAd3mgOBAMSygABAgQIEiAkAZqjpgLYEN6QyL0OB0VzFKQp7qTZGA7S4ddkFQjIqplSQCNHFe40labCkY3hkSABGrkTDqRZVUDkMTmqNAZIgGCDBAhTSUVGNZXi//z//4N/+eE/sCzh4uVM90QSaJgiqwJGgsIAmrCqKoqjJKyS8Kkk4TGVxzrht1DZqKxmvnCGey2QIoJpNoaDwVEDuwGDmWERuWe4U3yI4U5jQggwOBocZHAUjpoDmwObg0y0UOEthjvNUbOScCDvVBwZEKg0K2lWlWYlYJqikTcCRTiRZiXNY0WDIBOPVTgwIGDCUViZZiUwpemAgewX6mIi4V4SiiMDBXSghObrMfOVU0nCKgEFAvs9Jwwniner8EAIpwzvVJwyEDmogOGgaFaGUwYDFU40R8WRCSt5IFBpVrJpVgYqgGFleKN5rMKRzWNJWFU4SrMJICBgmnepwJJwe3vLxfwdhAOVb0XxlVNZqYzRbG5vQeXPZIAOdEhCEpKQhCSQkAQ70CEJSUhCEpJQQLEJKzmqNLJqTjUHNo8ZTsim+TUDhoMKJ+SoAvJ+BqQxcHN1jQHDgcqq+frNfOVU0g1Kd1NTkcDt7S0rAwLFKcOJCgfySCAdINwLJ0w4CCcMB8WmWRkOpFlVwABCBaQ5EXlMVk0F5KgCsmoM9wqogAQCBrDZVCBpVrJqCAcV7hnuNCs5qgQ5qvAgzWMTkg5XV1f8Nf8BElYqmwZKINwzEPkqzHzlVAKodDfF0W63Q2VVnFfhoxhOFBDeVuFeMoDChFUAgRAqQAcJBAjEYLgnEkBWzaoCApVmJc3KcFA0KwMSDCcqvNHIpqlwwkASAkhYBahwJxhQkSaAgQAV7nW4E3ZX15CQ0SgHTUAwHDSnDJR88Wa+ciqdINDdbPb7PVAU0OEtFe7JA8OpDhBW8isBElaGdzICjWyaCgcGJBgOpCFQ4ZGmhQpgsxKogDQrw0HRrExYFWCgWDUHAQPYrAx3mpUBDBtZhVWFN4JABQxoY4BApUlAHkyBAdzc3GIHOjCJCgnfgplvSBKUgzEGVmEAOVHhnjwwvFPxNsO9CvfkgeFehXuGgyIQkFVT4Z5AAIGikTvhoGgEDAdFszJhVRwZKMD/yx6c90iWWPlhPfe+F5FLVbGb5FDjRTIMGLAB/2f7+38G24BkwLBlWLC1a2YodteSGe/dnzMiOrOq2M0mNbRm1Ms58ZmOjzKelSfxokPiouKq6FChjErpkIxy1fEioTGnTYX4thQTLyo0xo/D2t3+kCT+mCSeVZVnVeVPUVWeVZWzqvKnSuKivKgqpRS2bbN022ccj0enE19//WhdV+9PO+tBx2fKR9nHs4rfMzqUb+v4RqlykUTFRRJBzbiIF+UsBInK+GicVUjRyhjtowoV2khC4qx8I+NZpXR8VKM8iYskrqLioxqClLOKqyCejArJGOOsguyCJC52em2Fr3/3O29+82s3t4vffvXO7f09RoXyiaKw+FxVOasqz2bG96kq36eqnCXxLIlnVeXPkbD6CZoZSZwlEfGsEFcVLzq+pXy3jhflo4qLJM46iBftqhJnhcooVx0vCm2U0qh4UUajEhLtqjLOylWHDuUToeKqRsWL8onQIXFR8aKMDhVPRsdFxUUF8WIZlsHEs6ryLOUqLioUUn4UVj9yVYWoKqoIM2NmUCooLypedEhcVHxLI/Et5aOKiyQ6JFE+164qnkS56oyzjiejfFQZZ+VslI868axRGWdlnHVclCdBfKacDUFQcdbxZDwrT+KiPBsdVzV6qKBGeRI6RJyVtie6yn7alKuqcjZo361Cyg/e6keuqkicVZUM+77b951a/SEd36tdJUE8K8Qn4qJDEs+SqNCoeFHoeDIKFRflquJFBT3KVSfOKi7akCjjrOOiXHWouGifGhUXqej4TPmofNRxUUGNDkJ5EjoklCdxsWDCWm1OmyRq6G5J/BSsfiKqSnWxs22bfd9ZVzWRimcVV3GVOCu/J55EBeVFxWc6ribKVRLlqhLlo46LQocYhYqLzvhUxZM4q7ho46xCXHUo46zjokJrZxXfGGftLBIqqPGs4sk4q5RnFRftSaiQGkKHchYdEheFJXSV7XRSExm6WwrxIkXFj87qR66qCFWlioR9382M9udLgngRn0lclKskzpJolG+r0K7Kdytno1JSVFy0cVZBjUp0KOOs4zNJVIhncRZxVvGZiu9UcdGuKi4qdChXHS8qdJUk1m7btjlL6G7jatCF+FFa/chVlbiqcjEzZkYjiUo8i2/ERSXO4qriIs7iWcVnOi4qXiTRSKJ81PGiDIV4UaEzzspVhykXFdS4iKsaFSqoIa4qziqU8qyNT1VclHERF53xmfg941mh4hvxqYrPVJU5bZKYGb22PUNR8S0VUn4UVj9EFVI+k9YKIyktGGcpCoUUM5jSaYP4XMV3qvi2Gh8FpYWigqJDEoUKEmeFFuWjjiejfCN0RjkbHReFDlVxERcVF4WOJ0PouChXFU+iEu2jiidxVsazjifjWbkq46oxKi4KnRGUOOsQlBGlsCQiCskoUYkqxB/UmLhI+UFb/T1bLF4ENSSeVfm2DBqjakE7q3FVg6E2275bl6Ov3r91v3xhdk6P4/7mteobp30zNT7VPpF4Vr5DPIl2NmiVcdZB4qwzztpQLirUlLNyNiouOqhRoUXFRcWLQk1JUa46LgodTDsr46zjRaETnypn46xDEoyr8aziolCh48l4Vs4iGWVchEJlVLUOtW/WtX39/r1abrk5ipNt220Th8NBFRW6S42rUMVeKBdJPEviT5HEf6iq8iLj+yTxx6x+cMbVuGpnnfIiqDFoJTWqypSL7lVOxZTf1/Gdyuc6noxdXI2zyjhrozxJnLVxVsazdlbOKi7aOCtPQosKZZy1z5XFhHZVcdGoIC7aVfmo46J8apx1XJRxNc46rioq9O4bu09V4qyNs4qLyrgaihIVyliXIrs2qhZqdxZXQfnxWf1YpalxlkR3O6tiXdt2GuwqtI8qvlPHd2pno+Ki46J8o8ZFqNC+reI7dSjfrYwgoTyJi4pvRJztzhIqlHgWTxJnnfG58amOixIX8aJ81IlPVVxUxh+SxKIcj0efqipTdLwYV1WMH4fVD1xQ/rCqMollWZxVcbMefPAg2SXEVYX4qJDEWeIzFVIhQcRV4htRQdGh4lsqiBcdFBU6lDiroOi4qKAoT+IPqhB0qPiWiouOz1RQXnTGWflchfK3VyFFEmc3NzfMqKWcVZVnU7Qn5WJcpfzgrX7oaiRtXLVPpKlIdsuyqLA0x5uDfPWOaaU8K5/rkMRZxWcaEyo+U8ZZxUWHCmp0qLiqKKSi46I8CR1UCBXaECqo0Z7EVXymjLOKi5oQUtFBXNUQakJ8VKOCuKiKclWJ35dEx5O4iKsaZxUX7dn4VFXbMtLl5uaGRFX5Q1Iu4sdj9WNQgyblqtDaUMXEYSlbqOK4Ljpjsks18aREUFpISYVBRVJaUIgoJWQXlKuICkEbpbQnoeKiPAkdEiouOi5KCBXaqLjoeFEhhURQriIqBG0I7UmouChPQgdx0b4RL8oopeJJfKpdVfwJxvdJIsV6d4ugnFWVsyk6TJG4iKv2w7f6gUsNaRfFpDHa57qbGVVtPaB2SbSDq8agVQZNRikyaGVIU0OaGoIaFS/a2ajQRWWclbPoeFGh46KcRcVFG8/aKE/iogxBiqLiRTsbFQqVOCtno+NFJS4yPlNDqC4tPhpnFRdJVHxiXMRFV5xVPBmfagQj0sXhQCJdzqpKfBSkXOxFhwnth231E5BEKZXR2tKlMmrCspDGuBodT8bVuBoVT4Z4MoQyJrSPKuOsURnlqhPPKi4qlKtKnLWzUXHRRoWKF40pChPaR5Vx1siMZ5VxFlRcVFyU3xM6tKj4lnY18aJ8rg1KxZPxrH00xSZSxbr4U0whTLHED97qj6gq3yWJs/L9kvg+Vb5XEmdV5VlVeTZCjdY+apNBy7brXm37pmrRxatXq3/wl7/yf/+zf+nudrXvu6pyPB7NjMcPD5I4HA4qXrTvELqojGftqjLOKp6EuKpRcZUiLso3Ms4qVEeFCm08q9CehBIyzpIoVzOjUPFkiKsaFVeJs4pvjE9ljwpqfCoZF1UqLjo+qlGhcFgKi9PphNG9SOL9abPc3Ho0vvjNP+CwcrMaY10PJjsTz5KIEiRxlhDfVlXOkvhP3eqHrMazKTq+U3kyoUa0rnJYF7fHg9lP1r5RVfbTJom1FzPj9PDo9nj0rOJbgoqLdlXxZBQ6VOKsnQ2h4iq0q4ono+OijEqp0EbFi8aEoOKiEVQ8ibMOlXHWzoZQcdFxUXFVXnSilIpvqbgKHZ+rUXFR2VUdvJjQLMviZikfsunbo8PdLWszY+9QiIvyUYXG7sdj9QM2SLmoDBafa+xmho6kDaoPbtbFm9e3fvs37x1uoorTdnJ2XFY7tscTs3hWvq18VPFklKsOlWhXlfGsXBUqnoyOi3I2KkiUIZSzuAhVlBJxVkGiXFWojHZVGc/KVRln7RvxjahQKEN8Y5y1q4TyqSF0UKOCCUZlJJEZ1WVZV4/bo8ObezdvXrEutpzsCRlVJa46JC4mtB+P1Q/emGqNCY1KobE7S2ImGElUleNN++LNa1/99r1933Xo0N2qSitrL87a5yr+oELHRSXaVWWclY86CB0vylWFdjYqtKuKFxVX8aLQcZXRrirjrHzUoeNbKnFWKONZB+VFxR9W46yqzIxkd1ZVkti2zWl2dbO4++KN+sUrlrJtccpYE+lS6FBBXHSRuGg/fKsfhUG7Ki9SaGdV5SyzS3bLcnB/f+vu7sbDh82+79Z1tS4l2S0V97dH+76r+Ez5RNpFjbOOi0q0q8ooV53xrFAp5aPKOGvfmChEVHxLKYKKs4qLyihXlVGuOuNZuar4RJSrzhBXNQTxjVGotO9SrqrG7COJqrJUmRn7vnuouPnVX7j9xWtuj1RMe1K2jLVWxFn5Rqi4SPlRaD8iKRcpT8qnqkp3YZhNVxxvVl+8+YXbmxvdraqcJXG2LAsTSSSRhEQSSSTxXSq0q8r4LoUO5Q+r0K4qPtOh4ztVaFeV8V0KHSo+U64641MVn2l/mqryrKqcJdHd1puj17/8wvr6nmKbnW6WNolnFRcdGo0KFT8Kqx+4KX9UVVmWRRW17ZI4W4ovvnyte/W7v4mHhwczo6qcbadHJT7V8ZmqcREXFd9S6LgoVx2fqbhoV5XxrEK56vjGOGslQlzFtxQ6LspVx4sKKs46PpfdWcVVjbO4Kp8r46ziIonu1omzbd8l8eru3qtff8GXX3B7I9k9zqaPB2XkNKpKxFkHcZGiMXGR8oO2+oHrMOWiBHGWGoSgSnerKlVlJpJd1+L+ns6txw+r9x++Mvs4Hm8JDw8PjusB7dmUiw5TRflcedLOKqhFG8tQYs3ojE50SDxp0s5KY9N2amSGtEqT8lFcLIPyqTYqo7JrURln7RtpFU8K0RjjjynUtM+075dWC9XtMbv325i13P3yleU//wte37GU0+Nu33dLHS3abnTYXU1R5cX48VgZ3yfxmapyVlUu4kUSz5I4627fZ2Y8qyrEWVX5YzptsMST0UGNs7jqRq0eT7uz7lV3k8icfHjY3Bxv/aN/+Bd++eUrf/VXf+Wrr95KuL07eHw4od3c3OluH94/2Pfd8XAw1fYiXapKd5vEKNu0DFWLYxePJ+v2wX3Fsj26X8vjwzu7g66jcovCTo2Zt7b9g9vDUabZbh3We6eHTS8svdtrd3Nz5/3jg/dfv/fq7l5m8/jwwd3N6v7uYB7f204f7Puuq5XVDF1H63q0nU4Oh0WvB6fTyZ44nU66W6PSFqWVVemJzMjOns3DvjneHkyRxOFwUFWy7yxtWRZ77b6e3UPH/stXjl++cfoHv7Z8+cqWsZ8eKA6Hg/20OTvWYj9tOi2FMOVFXKV8r6pylsSzJP5TsvqBa5+o8ftS5ap9S437u6N1KVW8cmOf12L39uv33r9/5+7u3r7FzGamTXZVJdgTbm6cZnc6nTxsu9O22cM+q1Fev/rCIdwsB+u6sr93Or13Om3WLm/u7z1u5fEDDx9OLHG8KevxYDGC0zay72pty82d9VDWw8mH01t//dXfqFr0YdXrYulF7THbydvfvbXWpprjsupumUYri7Nk9/DwyKmcda+O66qVmfHw9r3McIre41DtuB7cHm4cDjeONzdy0x63k4fHR9k3tS6q0bzfHmwitwe3v3zj/j/7teXL17bj4m1GhfZR+0Z8JkV8FD8eq5/Z9l13Oxzal19+6Xi89bu733n79XszzJzs+8kMM7tlOYjxcNo9LqsPszuddo+Pjx5Ou8d97NlNyru8dezF63Wx3B/ULNbl6P1pd384+uf/6l+6Ob52OHzh9v6V9XhQ63jY/72v3z+6vb2V21XfvbL3rbcfPjg9vHW/lncf3rq5uXFcbxwcPXx4tMyq61ZZ7ftJL7tVqx7bvtv3SEphm83x9s5pe8/Ouq7yuOkq+2m3P55sX72zb5t52O2nzaId14MPNzfqdjV3i6VvbOKxhqUsXXajjOXu4O71K69/+YX65S94dcOhbB1JqT1+6lY/cTObfd8lZV1Xh/XgF7+4dXt7dPrl7vS4e3zc7PtIIlOWZTHDX7978I//33/tcT2oKqy2dbEtnPYyaafTOHac9t1k82p/8Bf3d95vD/bTo1/+5W/0HJy2ow+nMR82fSzWG+6+8G++/srx5uC4Hmynzdfv31oP47/57/5bNwf2dx8sOZiH8X/+b/+XD28fvL595Zevf+3uvjy8/cput28n2/Zo36OqSNmMHHebsfbieDz63Vdv1Wl3evdofzyx7XobhhpP4vT4aN822wOpW7/6zRu/+uWX9qVkbVPsM84ON0fHV/e8fsVxxe7DdrI1lvYzVj9x67qqin2Pmc22R/dqXdu6ttevD/ad8lE3j4+cfnv023/6/3icsiyLWhd6pRb70kYpi70Xbx8/OL1771Sb//If/qXH3pzev/V+P8k2ZlbT96YPBtse+9Lu//JXPjzs/vrfP/gX/+Jf+Dd/9a+8etP+q//xv/YXd7cOt6/Z6Lf8u9/+zl//m6+9Ov7C428O7m9u3ay/YN9Uj/UubpZytu+7zge/e/hrvcSbm4Pj/Z0P//xf299+kHcPlj0OWSxK96LWkiopdrEt49TcfPlG/1f/hb45UEOGDEvTC9vJvj+qbde3RzfLrcrudDqh/NStfuJmNlVlXctVJLuIs/2xnK1rO6tCudjsDq/uPPat04xJTEKFRi/2nT2jZuwzXt8d/MU/und6/Q/Nh995/zf/zvuvT6bK7f0bx/XWv//w4Ldv3/mwnfwf/+v/7v3jo8cHvn771nLYHH79hVe/ujfIu5PaFpb29YcHv/3de1+Hh/cHhz748os3lhq3d+3Nm3uHYznNZqbVunr9l79xWHdf3L1St6/kn/4zc9rk8eRocehmIvtuiukyS7E0S7O2Ph64PbIWs9sqplt36y5ZVtnL7sm+Ke3ssKyy737qVj9pY5vdWXfrbt2tqiWRlNN2siyLVEvIsK70gfVYXn3xC9M3tm2zbZvTvtuUPag4ZQyW3h3Xg75dHQ7cfHlw7F97++bof/mf/4l//E/+qfcPq+7Xvj6dvD+9laZvDqQcDnf6vi3Hk5PyAQ+P7/3meCTFkcPtK3evF053Ttuthy3+6q//LbW5f3Xw5s09tfnw+NbN7dGbX9/4n/6H/55+T93Qq+myi07rZbXUgnHKbhLTK8uqDqu6LYebozquCBlZyyyrrWLPaHE8rNbDqjIe3n+wP+wOh4ObmxsP++6nbvUTdzwe7bOZPWZGdyuhSjLUqG5qzB5JsFoWluPieHtwu97JbLZ997iPx9Pmw7bb9nFzs8psDrW4OaB3g4fHsbxqd7984+1a/tX7r2yne/dvvvCofchOM6dxc3PrcHNvn7E/Pnj34WTF4XjHxGwnPUfvHzbqhr6xz43TPpbDat8fnDa+frd7+/C19x9+51e/+tLrv3zDfZtZ9B6K9/vJZHdoqtu27wrLYbWsi769tdzd6Nuj/bb9u+0r27Y5nB6pNoeFXmw2D/vm1XrvZPfweNITh8PB3c2tSmynTYWUn7R1ZlSVZ1XlWVVJ4s+RxPepat8libMq/1F9OD2qQlHFaXZV46yqLMdFdXncHq3r0ezjw+nRuq5iM3mUOaiMdWFZFzc3B/fVovzVv/1ra7MmzGZdy2l487o97rttWbxdeNe4O3r34YP15t52vHE8rmbbfP3h5P3D11a7u8PqN7/8pdPG/cq+75a7IyduX7/xb/7lX6ltcexbx8M9s2Gx18m7x0fLzb3bpX3Yy9arvcnhqPfiFPuycDzqjEk7rqvjulqPt/r2qG4OtkPbq02PWheHw4HDgY59320dqVjX1WbTibUXS2FiZlPxJJQ/S1V5lsSzJP7/kMT3SeLPMTNWP/vT1VCDUINRYsnmbJyN1mSV4os391ax7g9uE/fHcmgWdI+TxXZYzfFIH0wvtqU87iN263HltKsptUcNaxYHtLOmsbAeD443d3arfYsP+4Pb21uKWkhFdVhGLZHlYGsi1i7WstzdWHbWdbdaLHvTLetiuuzGNrHXeLBTdBAXFS8qdFHxolHxs0+sfvakXJVvG1eDwSAYHTqjxNkSEvYebTNpr1/dWbJZTuO479ZlHLAYsnussoW96bVNythsc2LfLXV0PK5eHe68XlY3y6M3d/fWYCcpgub29tYvfrGbx3un95we0cFIkWIvNjHTJqWKPSUp1ax3N44Wx0OsG8veWkmXWcspbPvYxKk2jj4KXSzDNAmNCo2Ki5Sr+NmT1U9aIwgaQSP+JDUqdLyYouKia7RRQUJ2ZjeeZDP7SbSlVneHO+vNnYd1oRbqZD3w5u5e7+UXN2+8WhY3eXR3e2cpEkoRFMfj0atflEO98fie7cM4nU72WVWVTfQacxrLsjgej9YigwldlmWxHErvu4j0IiFFEkFEhCKYol1VaCzDjvYkVFyMqxRByk/e6qcuLRU0gkZclYho0aKldkE8SaNVFowUQmOctdmispsZs6PbWVVZs3jTR18e7v3q1Rs3d1867Yus7f2pHQ7tzZsvnN49WLa2P24eTg+27WBZWLEUduzMjF44LG2pdlrHq1rt+yod+35SSzmebnS3N2/e6OE4pcbVsO/DHvZY20VSLopWjr2ylMfaTaG9qFBYwtLEVYopBikSKrSfttVP2HjWrtpVu4rvM4UsopUnQflGo0lLLdqie9W9W1AWx6UEdw5e9cHtcvDQzVqW5ejmblUeLTWqd4zdOM3u4RELS7saTqcHDw8nfTgwi312d/f3TlOImpYqi1a1WHthp1Iuhmy7bLt9H4uSYk9UvFiqtWZZfeVkLxTKi0ZQQVzsxWBv9qKGdRA/aaufvEa5KhTiqhG0F2kSNFqqjVUb42yMFi3oZVHTuk8qrYrCaMJh52bjeIrldFJ7oVU+WNx49+GDbNz0LxxuVrUc9LrYimzcLNR4MXm0z6OahRqn+WDbH51t+y5dTqeTqsXpdGI7uiiEZZDobmst2kqHjOyje9FpHTak2NuLlO+UIsVWnJpBNR2W+Elb/eA0gsaQpsbfRqftipSLiqvGqCAsIWEJg2g0aVdjPKkRZ0N50qqK2k3KJLaJDQc87uP22Nal9EK6ZIZQqHDTq0e7PbuH2XVOst64OXLEwzuOaHSXZVmsa+scfC5UJMROSELQKISqosqhF8flYM3CPkYMMpGMVEliihTKH1WhikbQ6PgPFD82qz9TVflzTI3vFVeJqnJWVYRWqqLS/qC4qCpnVeVZqi0hWipGVEUnKlE1emLxZCtmdJVeD6I8bidTm/SmMlQUWpk01fZtVMbSsTj48Pi1U7gprKvH8JDN6bY95iQ3t5JY6sY8UClrH4y29667jM1p46a5vSMfEKqjLPaNbR8ZGrtWtZvE4bByPErYncxKN07D0vZDy7vdIXF63NUsOiwWSy/SZYqpsc9YlEpTCxWqqdI1zmbbnVVG4zCxFJs462nSvi3Oks13qbQUCeMqibMkvleVZ5X4j6mqJPEsiWdJpFj9EKWcTbGmqfG3USFpykdpbM4qLONiGRfTrcKOKFdDBeOiXNWQFaNCEtUtRVyl2HtMs2GaGtpKRiUoZ3uxGoxGu0pTQ1xNtUphIaOFXlQ2Z0uVLYMxjZWeognSpdOWodChkPItCTVNUF6MqxQVOl5UKINW8bdT42rxQ5Vy0X7qajzr+JYUihRT/oj2qYoXVSS74/Ho71pV+UNS1IIuiqpSVarKn6LiKiEkcZZEEj/749rPLiqualzU+EOmylVLNZqUT3VcVJV2NTNujkcVf2eqyrOqUlXOqkpVqXJV2FjXVVWpKlP+JJUQJP6QKZ8pP3vWfvYnmSJFiiCY8kdVSOIicXs8KAQ18XelqjyrKt8pcby9kWKb8WyKFFPER4WaqCAh1EQSSSTxsz+u/UwLFWow/pDRok0RpBhtkPKNJu2jUaEws7u5udEhu78zVeWsqlSVs6pSVT5T5f7+XhL7vksivm2KuOrQE4LEp1IMUj5Tfvap9lNWoxLEd0kxhSLlM4PRrhotvq2dDYaJm/Wgmgol/mOrKmdV5VlV+dRpiCcLd3d3kti2TRJnKaZ8p5qoIAjlSSJFEp+a8pmKnz1pP3syGIyzqfG5Ji3aKEGcNdpHRUr5qKo0OiSxLq1CiQ4Vf2+mXMxEEorD4eBs33cpprwIUj5TWAYTQk2cJTFFikF8ruJn31iTSKKq/L4kutt3SeIsvl9V+T5JPKsqz6rKWRLfJwniT5VEVXlRkRBEzASjgoy1D3SzxLK2h8fNvi2WQ3n/4YM4a4IaFymqdciMdVnM6dHN4eDVLRU6Y1naoz9TIvGknFWVs6pCIb7PwwPHV8UeHnbu76hyvL3Rmt1FEkEm9mKKmXFYFqeHB0vw8GBuFofDwcPjyXo82k8nQhKfqiqlTPykJdF+Rg0Gg3GWGlMkoUixB73S5YSH0wklxZQn7TtNLMphaYoK5Wwof78WEpJQRZV1XSURf1yF08Mj2856UCGhqkQ8SxF06PjZJ9pPXGVUaJ+o8SyJJM5mqIVl4fHEhw8fXKTRvksSZ1Vxd3OjsRSVUfH3rpt9YsuwNMvicHsjRVU5C4IUU150MPHw9h2PjxwOzk6nTVUZMUXKt3T87BvtZ08G46yNT40yw6TsGb0QvH33wfuHk2jPRqN9qoOJ7nZ7e1RYikaj4+9VN0kkodDt/v7es5RvmSLlovH+7TvevqOocDqddLeZ8fumfKbiJ6/97KMa32Xfd2dJFHZ89e6tbXZXRdpH7VkSM6OVV3f3FnR5Mhh/36qoKheF4s2bN7rbzPhjKszDybvffcVpVJXso6okkWKKKT/7A9pP2vhofJfuts/YxWg7Pjzy9bv3ulZTLeUbjfasQhIxutvd/eKsUPGfjKpSVcTF4fVr67o6ze5P9fXvvuLdO7pVlT9Fx8+etJ99r2VZzIxnwcPDg/fv31vX1UWa/489ePuR60rTO/17v7X2jog88ExKqqo+uA9u2237eu7mev7xAQYYDDCwgQHGcJWryiWJEikmycyMiL3X+t7JnangoSVRVS2pSiTmeRBvknlFaUJiNUDwBvMXlwYKKAJsMHB8jGqh984iBRbfKgwlgsuLC6bzc5AopfB9xP/voPKesxKUyGCCtwULmSviQIiDIEmuOCiZpKCYrwWW6JhFhjCwa8mudep6gCkQN8JcC3NNJLgTToo7qwKYaxZIwTcFYCC5EYD5BvPjMARXwpAJEbAJXILZSQKDQeaGuBIYSEB0qoLtbmLezoxZWEWSGfQOVgAJDqwEB12JCBYmuOYAJThACQ5QggOU4MBKIIAEgkXy/quSeJNt3mSbd0mJd7J5F0kc2ObANgtJHNhmYZtrMqodSOTAGAhuBFjYIrhirsmAuSFRaiU8Y5tEFJKOMQFhpqmh1ZpSxAx89mLmN599wTYrtUPLTl1twB13IwTuqDdWRczzluOh8MndYwYggLnDahi52O4ZjgqlDIQqQkhCAsw126TBEpnGEraxwTbG2OAUtrGNMZkJBIjvFIYA9vsLVsOayUltnRhW/OKf/4lf/+//J7VWNDUqotaRXsTFPLPPhgNWtdLaniEK518+Y7M5Ij66T5kg5o6GgiNwCNWKVICkOaEnmoS4YkACAxIYkACBA0t0hAEbUiYMRSK4Yb4mYZuFbd4luWGbhW3eJIkfIjN5k20WtrFAEsEHIgUoscAC8y84kCEcLORAhnmeyeRKUKMwlJFVXTEOA6UMXOwnGmIHPNnB0xeX7LPgumbOAILMpLVGa43MZBFAVVKzcboqnKwGKlcSMpPE1NVIAra5EbwmIPh2wWvBv14SXFFiJYTp1RDAUFjdOuZy2oFEKQX3pE0NSdQ6IgX7yz3rsmJd10wvd5x/+RVc7MGwZqTMiVKEYZ47F7st57s9LTtRRyzA4prFNYuFEQtLJFcsFimxSPGKbQ5s8z4J3ncOIDiQQQZxI0hEghJIIBEJJIvMpDtJTFfQFXQF3YXmAmVABfYdnp695KsXF/QUUQdaJlbQe2eeZ3rvBCBDkCyK4M7tW5wcFwIIGZG4N8YSiBu2ObDNn4sEgbCNasESYBgKdx49YOfOHJAhZhqZnSIYQ4wG0pCmGDw3Xpw9Z/vFl3AxwVChJ2qJM6kWQxRCos/J7vKShQUWWGCBBRbfK8w12xzY5n0TvOdsYxuncArb2MY2ciIbMHISGJGAQYllFJUkaIi5J/vW2TVz2ZNdmvFopAMvdvDiYs9u6mQMpAaSCiESA0FEEAFyp/eOe+P4aM2dW8esK5AwSNQA3BFvs41tFraxzU8rCEEYBAihEuAOQ+H44T3K8UgrsO0zHRO1EIhIKIjT9RF9P9G2e9ZlQD158tljXn72GPambtaMUWBquHVGFTZ1pFrkfkYW38UCi28I84ptDmxzYBvbvA+C95wVmMAKrOAgnIgEJSIJDCRgUAJm4RI4Cg3REI2gqZBlIGvhosHjF8lnT854uWv0uqaXSi8V6oAoRASlFIZhoCjI7LjtUZ+4d+uEoxUUwNmokQwFisDu2GAb2xzY5s9BBhmCgm0WKsHshABunXD68QPmEV60S3okZSwUmWiN0WJTBgYqxTAoKE3MF3tePPmK3WePwUAURldiMn27h6mxKpVbp6fIIIMMMq9YvJJ8U5i32GZhG9u8TyrvMwsnIAHmmiHMNZMEhRvJwkquKUkFDegqSMICQqSgA13w6ZeXPH1xwdnFljkqDCtSBSioVGwIBEXUgCCJ7NQSHK8r9+7coohrFUN2CCMn07SD1TEHtnmTbcRPzCAJ0mQkEKRMRKesBu588ojd5Zb55ZZZZi2Rmbg3aq301jharel0tvsZh1kPlb6b+Oy3v+dXpTCcbojTY1bjiOc989RQLdRaSZKDBGSweCX5bjIIY27Y5sA2C0n83FXeeyIJwnwtuZGIJBCLFF8LbgQpMUu4BCqQQOuwneBi35h68vjsgou5McdIlgEr6A6yg7JTVZETYZQzZCfcOFkPPLx7i9MjEQlhqDXo8w6FkE3vCQbb2AaBbbAxBvGTc4eoYk5DM2UQlphINpHo3ilHz26xO79gv+/UtqNmEjJhsE0JYQrFSWbHCbnrzG3H57/5HUf3bnPn0X3K6QkaBkYHnpI27ailYkEKQpC8mwyYb7DNgW3eJ5X3mAViIRbChEEkMiBIJdccWMHCBCBmBS0CCkRAAy4mOLvY8/T5Oee7PRmVsjpiVQZmw9yg9U63Ic2wCuREfSLdcJ8o7mzGFfdunbAK6PNMDEENse0ddzPWgm3EX5YNkgCTmRTAguYk3FmtBurtY8rJhnl6ybbv2ShYRQWSWgf2+z0OsV6NVMz57oJOslmtKN1cPj1jf7nl5O4tbj24DyfHKEzNBgkOkMECCTo3LP5ktnnfVH4g27xJEgtJLGzzLpnJmySxkMTCNgeSOJAEAlvYYBIwtgGDuWLmeabUikpABHUYQLCb4Xw78XLq7Gzm1tnPE7sp2c6NqZnZwbBas2vJtNvSKEQt1FoJhHsjMomckRvKGeXM6dHIJ/fvcmcDThhrQDZaT1ZD5ZqTcRxpgoiglEKNSi8FG9wbPTtDDbJ3VCAiyJ4sIsA2PRMQCpBEZqIwIRFRCIwxhEkLSWBeSSCbUQgB8zyzKEOlG6Y2c3z/NpHwJH/P/slzalRGzDTNVAVWoWfSdjtUC+txw0rJTNKnhEhaT862e158+YyyHqljJUrh/iefoKGgcYBMylCpAZfTns3xisvdRPJNwQ3bvEkSb7LNu6TNu9jmXTKTd5HEu9im8h6TwQ5CiRwEHTlAXEkMDOMIUXCpEJXzyTx7ec5XZ885305c9KQrMEFXYAo9glQho5DdpAWlUlUoQ8UK6B1s6HvGUWhKpv0l63Xh4wd3uH0yMs9mVCecQMcGYxZGpIUTbLOwzU/FNt/FAhlCkAaLaxY0J7UWNneOufPJA160ZPfiJUNUbt25xYtn58gBIaTCtZ5YEJhxHDHQ3Gnd9HnP9nKLnTTM499/yvrkmNN7d9icnnBy7w5aDeQ082y3Y3W84UNX+UBZXAkaovcEQQfOtjs+++oFT5+fM6eJzTGpwAoIYQ0QBRChAUdBmYSTa+7IHWVH2ZBnNHWid05G8ejubR7dPeaowrTdoloRDZkrJhE3AlPJBNvYBvGKJIT4sdnmwILkNRlCgCFJrhVo2RmPBk5/+ZBiePrbPRcXe0pWcigUCjLXnMZ0JFFVyO0EIVRE5YqTno3WGnZSS8Hacdmf0bZ7CmLz4C6nqw0X8x4lEJB8uCofABnCgHiLCVomGZW5w8uLHU/Pt7zsxpsTShRcBiywRU9oQO8mAXtmqIEN6cQ2gVkUkhKdVW8wT6zHwkf37vHx/TusCyg76yoKDdkcWIADK0iCBDIT29jmTZL4oWxjzMI2C9ssbGOBBTLXIrkmgQVlGJj3ezCMR2uOPnnAPO14+rtPefziKQ9PPyZSuCe9d+hGDkoRpRT2+z1EEhkQokRQYyDHyqKUgiO4ON/y8nLLPE3cz+T40X2qhQEbQpB8mCrvOfGazCsmSIGp1NWK3QxfXbzkyYtLZioMK2bDrs2YhUgCKzBBKkBwvt9SFdQiiiAwciInJWeiz5ysCw/v3ubRvducrKA4iZypAvfE3LCELZKCHaQgE2xjG9ssJCEJIcD8GGzzJtssDCRBAWQoThYG0hCAJeacGSx0PHD7kwfMfeLFp8+4aBO1FwQURNRCQRQFBbOpI7ZJd3o3TpAChZHE7mLHsBoZEwpifnnJ5dkLju/fBRsZBFhcs7iW5pp4/1U+AGEQ32SCae7UFUwJF1PjYkq8LqDK5TxTyoDFNUXBVKSgcKP3zlALq7FSMbSJeZrp84TbjlvrFZ88vM/Du8fUAPfOqghVsb+8ZCyVRRIsksAEKWGCbpOZZCYEr0hCCDA/hG0Q12xjG9ssOiYFFmAIQ0muWUDAPM9EBF3BZZtYUyinRzz4619x99YDfvNffsOQRoZVqQy1Ui3ckzZ1ahG2IROcLEJCVRTBkSpjDMjQSzBPe6bLLURlVSqzG1180CrvuTBvEWAWAYiMwtRgOyeNQq8jnYo1kFVAI1kE2UUqcZqF6azGkaEERUaZQDKGifXAiPjFg/vcv33EukK2jjxDKciJsuMQEBhjB5bogiRYOIVtbGMb8ZokMD+YbWzzJtssLEhxTXzNIEAGspNFdIydSMnRMMKtNWXc8NEvd7SXE7vzC9yStEkJZ9Jbo7ckDJKpEg4REYAIizFENOP9BK5Ml5dkDWgNSkWGAJK3WSDzQai851LJIkhksJKDFJycrNh1sE1EIIneO9ZMRKFnBSU4kCAiCHFNFNRmsnU6id1YAUfrkdsnx9zaDHx8q5AJbZoZA8ZS6fNE751h2GCbGwICCBaysUQD0pDiSqI0JhCFxAiBjUiKO6KDGilIglBHgMU1RwKJxdcCbK65Im4EN2TAAQaTQICSg1IG5jbTeyciiDLQUzB3oovTf/obePySLz/9jMvnL+k5MapAdHp0KqIKaqkUBZKwjW3SyTzvUSnMTtabNQMz1AISOLEgeU3mgyGDBdUWC0ksJPGmTPMuEbzFNgvbLCTxLkXiW9ksJPGKzSs2yZUQKbBBgjDXUhCG3eVM2QycjIVNBGuZoQZZYJdm6kmGEKYA6p2CKZlUTNBRnyi9MwacbtbcOz7m7u01x2sgk0InCmDovVNckAppcO8srEJisu+RRB1XxFCYCjzbzkQEpQSXlxfU8QjKyNQaIpDMIDOMMF3sqGVkakm6cVpHEqgjzDkTIYqC7CYT6FDrihLQo9LaHgO1BmdPn9Cn+6xOC6010uBa6D0ppZAYd1NVqXXkWhfNQWhAg2C7Rx+d8vDRKdOTp3z2+z/w1VfPGAmOT9dM08wgWMkUmWoIrhh6moupsT5aYwe/++oLclX56NEnzH2irNfMhgxIXgtes4N3snkXiXfKTN5km4VtFlLwLjb/glhI3LCpvOdSYAE25pvaNEMMjBXu3jpmOzfOLrYQjfV6Q6xHOkLZcTbUG+oNZRJ9RtnYDJVbxyO3j4+4fXzM8SZYjzAAs41oQCBADjDgYFGiYpsUFBJVAQmeaVmYO0wJmVCAWkRBdIskCJKIithD2yPPrAZBCegieW0YBogGJGAWUgEC28hCEoGADjYyBGAVkk4IUkGEwICNuGKuCDkAkVwJKOsBFYPE+PE9fnWy4sXTZzz/8ikvX54zDKInzG6UFMVQEYGgCJ2smcdgthluHTOcHrG5fUqsBrIId0jA4lox12SumfddUPngBIswJLBZjSQgwd3Twr6dcLHbcrE7p9ARogAhUQRFohZTihiHwtFqw/Fq4PbxEbePB9YjVKB3aAlSggIZwrymBENEAEICm2tSwYI5k+02mOeZ3jsFKKWgMC1nIFjUIpxmbjOkOd4cUQqEAwQIMKzXa6QdTiMJSBY22OJAEpIwkA0KMIRIB7axTUiYpPMdBBg0BNk7GKIUyt0T7h5tODo94fLFS5589pjek2zJ3JNIUxUUCQK20wxTEkPl+O5tbj24x+ndO8RQ2Wdi8cGrfDAEmDcFZrWunO9mcioM6+DhnZGed3jy7CX7NpOZRARjDYZhYFNHxqGwKoVBcPvkiCpYFRgCooET3BOyoZXAEAYZwiBAhjCkk1JFSLRm0kkphVLEEMH5+TmtNdJmUUohDZlJBMgmArKb7J1CcnJyQhUoAtsIgeHoeE0EuHcijNIoABk7AaMQSCxss9vtOc4VEeAemASSb1CCA0ggWKRgcmIZ2ZBJ7SJCrO7dZnXvDnce3KdPM/N2x/b8gv3llt3llu0849YZNytiqKxOjzm9f5fj+3dgs6K5M/eGSvChq7zvHKDkhgCzEIkJpssdZCJ16Gs2A/zi/jGnR2t2ux1BUgRVQS3BUCpDETUKFVMDyI7nxJkkEAFjBBoLcyYQLMIgQIYgEdB7p9QKEj1nWu9EjJRY0YCvnj2nzUlEwTYS1+wEArsDAb1BdsZauXV6SgARgm4gcQbHxxtKKbTJSAYSKQBhG9SRBBImcIrz5+ec3lkxjhCCTBA3bAPJKwITQHLQsqNSGEqFNHPrkB3SlITh3jE1oTazmWfabs+02zNNE26do3GFaqGuV8TJEYxB2ky9kxgBFh+0yofAAST/kkim/cx6sybGkSnNtO8MtXLvpODNMdFnio0UBDcKItQJQ58nbKM0ShMyQVAEdFEILK6JRIYwiBuZDajYJm1sY8Hszuzg6dOn2GIYBmzjTFDBNmFjd9JJz5khxGo1cHJyBAkhUHZAGDg62hAFzIy0xjLC2IndkbgmCQO2efbsjDuPThjrCgkCkRQWmcnbEgQ4WFiijiMtO7tpIiIYhkJQ6XNj3xq7iwuKglUdKJuRejRSdcqRAQP7BhKEMGaeZ6bsUINaRlp2vo0MFggw77fKB0yG1VgZh0IE9N6hTbhPRB2ogpj3FCdSARJJiCsOJDFIIGGBQtgmDG6dlFEdwFwTQTgRB0nUwsI2izquUBnY7vY8Pb/k2YuXwMAwrNjPJrMTJSgyCpPZoYN7p66C9WrgaFVxh1LB3LBhvYYIYycq4J4ojLsxHQyhQBI4IMXZV8/ZXjzk1mZFDFwR3YI02UwpYmHxmpIbQSnQO7TWkIQkxlooq4qGAmkWLc2cDdlkJrYhzRCFQDSbuTdmJyqBFBRBimthPliVD4DMNZlX5ACSYRho00z3HgNjEakkcw/dDBKFRcc2TmEb6MwW63GFBaKAIHgtCNJC3AiMWCQLC0oUUtA7EIUyrKAE2/0lT5+dcXkx4WEgasXzTGYShSuJnJCJM0lPlBgZSmWokHMDVUxHCnBhGAElqCF1UCIVjLGNJBaSEMIJu/OJtktICEMC4UApbAMFSL5dMu8bJYKToyNsk5lM00xmYpthGLBNOrGNDFGCiCAiaHOjlAICOoQNITpmmvbUWvk2FtfM+6/yNdssbPMmSbxLZvJ9JHEgiQNJfB/bHEjiQBIC5M7CXDGYhbG5IlprLCSDoNiIJAAFkMYWN4QUSFxLgp6Q4jWL10zvSQ2ICBQiFCwSI8TcTQlBrcw707sZC6QG/tuvf0+USkfsdjukyjAUTFJrIJlxVXHbcnK04cvP/yf/6//yv6EE0mTr2CYkMs08iX/4h7/j//o//guunWFYk3MjohJRWGQmmYllIkbW62Mef/Ylt49OufOgsLuEYR2UAcpcmaYJSUQVEYFkJJEW4kqCe9J7chCIiIIFvXcOJIEgMZmdzE4I5mwsLMgQ1yRKVAzIYJuFDbaRuaHCwjYL27xJEu8iiYVtDmxzYJtvI4mFbd7FNu8iFSrvEdtI4iAAm28hzMKIwEogkBMLwpBKwoArySJ4W2CgKwBhAQ4QrwgYx0AJptN7p7NIUJKABbNBDspqTRrOLs1vP33K5bZhVtgCBYvECLGwG+EEJ2Tnk48fcbTeICAM8zwzFNHaxBhrShXr9chqPTJNW443IzkbSL4pgKBqxfOnF3x19wV3Ht7laA3nl4l7MAwj63EkbbqT3mdaSzKTtCHFaljxLjJYfKcuSPGKxTslIMDimvjhbHNgmwPb/DlUfuZss5DEm2yzCMxr4poDc0WJEaYA5kayCHMlsAIcvMniilh0CQiuKTCvCZh3MyKBRMHXEkgsqOtj5rkxuzFsKgr48vEFv/nt5zw927I+PQIHxiBuyMiAkgjorTPPM3//979iGArZIBAiKSrMvROjoMDRcXD37m0e/+ErILmmBq78S+EgqFy83PLFZ1/x0aO7HJ9CLYETeof5opFKCECgqJSAAsiAIXhbckMGmW+weCUFFt8g852SG8EPZ5sD2xzY5s+l8p6wjSRss5AEGEgWcmAZEK84sApJEiSpIAwpCBaBCZB4U7IIbggwNzpJcBDmWkRQSiGKWHQ3MhPbTHMjxpECTB0uXsLv/vCUL56eQ9nQLTICc8UGgW1wElxRgjvZZx4+eECQtGY2Y1AZkIxkFr3DMMInv3jIV188p7UJFOAKSnBwI4AEi97EEBvOn+/5H79+wi9++YC7j4ACl+cwrCsREAEEJJDZ6b3TM6kUOt/O4lvJYPGdZP4oCRR+HLY5sM2fi20qP3O2WUjCNpJY2AZMiCuJuOLA4loqWIjAQBKYJAUWpIMbAoI3WVxJFkK8KXhNgKpYJCZ7sjCJgVSQBKsKAXz5pfnvv/uUX//2c7ZT4da9++ymPU5hgSRsI4mF3ZmniRrB0fGGO3duIwm5Ea4oBOqUKuxO72aIgUePjvns3h1enG0pjLyiBIIbwcJNrFcnQPLkyzMWdXjA6V0YR5gmkzIKQxhzRUm3CUQGyHwrCxBYfC+ZV8J8g7lhgXktgTD/arY5sM2Bbf5cKu8J20jCNpJYyCCSN8lgAhxYgCAVhCGBIEmC4IZ4m8WV5IaxuWIEGBCJAQHmigPbQAJGYRRB1AGVAoLzCT774pLf/O4xXzx9SWekrkf2k0kKYBa2QcLuQCJgmiZu3z7mV4/ucXocVENxpU0zFKOaRAR97kQJWoO6gUcfPWR3+Sl9n6AECwi+wWIoKyIgs3H29CWtTXz0i/s8+GhFDdFD2JDZIUQoiBpEwDRNfCcD4i0BJBC8JvNKmO+V4lqYH41tDmzz52KbynvENpKwzUJAsEiSRQDBDbFIwEACVpCumCSVLAKQkwMZkLmRQABJGFIQJAkEVxxELYhKFJAgszH1xrTdMiVcXE784ctnfPr5M85eTnQ2bI5vUXrh7OyM1VqAQWJhG4lrprNaDdy7f5e//Td/Ta3ADEMJpn2nhHAmEUHPmc36hItnM1UD9+4dcfb0hGdfnvPdgqGMKMAktpjnmSdPLtjut5xv7/DJJ/dhhFphqAUCbGiGuScWpCDMHyUNFqTBgjBvkflW5kYKMNdSEOYHs82BbQ5sI4mfWuVnzjaS+Da2SUEQQLAwBwbEQgYEMtdkQBAGmbfJvCnMK2FAENxIwX7eU+tAqJKZXFzu+ersOV8+PePFxZ7nLy54uZ1IjThWTK2RbWIcN6yPBjITlGCQQE4CEzRE5/RoxYM7p3z8sMIE2WbKasB0SlnRMjGFlgkFpr6nTgPrEzi+teLp02fgBEauOYAACzBlrEQku92Ouc2MqwCNPH/6gq+ePOW//t//leNbGx5+9JCPPnrI6d0TxjVUQA4mAkhSXAtDCsKQgjBvsbhm8U7BjeRtYej8eGxzYJsD2/y5VNu8i20WkjiQxJ/CNge2eZMjOJDEgSQWKoU3mdckYYLODUtAgiFIEpC5Yd6QHITEWyxeC0BA8IqDAwtySMpmZJfJr//n5/zh0yc8efqCZy93HB3fYu4jLitSXPOYTPmCaXcGUViNt5gn0/tMhCky6nvwTKXx1w8f8KuHp6wBV2jd4M7J0YZpmkAjPUUdCttdY3PriEhIw1/9410+f/oZ+8uZaT8z6IihrBAj2YPuxm7eYnUkGIYVziQQm3IbSHqZyW3j8knn//nDf6eO4h//6R+4/+iIbihDhWgcyBCADAHI/KskN2yzEOKgiFds07kibki8RWJhmwPbHNidbyPxNfMuUvAm2yxs88eQTOUvzDaSWNhGEgvbSOJdEpDENyhZBD+UuCG+i0vlwp3HT57xPz79grOzHds+QB2ZOKYDZmGgAQ00IzqL3htQGGolmMl5R+87jgZxsq78za8+4vbxBgxtP5HTnpaFGkEmRCngwCQogaRHYgdy8O//4z/y3/7f3/H890/oAcPmiGyN3gtRg04AHRAJFBegEOZaMNJzT7SR6kRz5/mTS6o23H4oZoPMW2SuyfwkZF4x3882B7Y5sM2PyTb/GpWfAdtIYmEbSSxs831s8y6S+CmJyvn5zB9+/4THn39F7wMxnFBLIVPgAgKcIJABAwogqEVcXp5Ta3ByumFv8eLigke37/Gf/sO/5dHDWwyCPie9d0JiYRulofCaA0jedPvewIMHd7h4saPtAzRDEc5O64Ia4AHMDQfXDCKRjErgLOCOU3zx+IxpNqf3HkLhJ2WbH8I2B7Y5sM2PyTYHtvlTVH4mbCOJhW0k8XOXBLjw/MVLvnj8jP3OHB2dkDGiXnALUHAjgOCaAIOAgjnaFIpMzpeQM4/u3eZv/vqX/NUvH6KEnklkZ1UHqgYKwplQofNNFiRJEOz38PEn96mx4ne/fczLszNW4ynjasN+7kCAC4sw4CAMYiEyk2EccCbuQdQVFxcvaf05v7p4yGrgvWCbA9v8WGzzJtssbLOQxPep/IXZZiEJ2ywkYZuFJN7FNu8iiZ9OsNheNp6fbcEDQ11zsU96EyZQqchcSRaigAEFQaNPl5yebJj3Oy5ennHv7in//O/+no8e3ePy4pKT9YripJZgKIUKZEtwUIroCSkI8waDuNKIUhmO4SEnvHhxzna7pXtLl4lhoLcAAszXgmvmStDantVqoLvTG9RhQBqYpuTiorO6U/gp2eZdJPEutjmwzYFtfky2ObDNn6LyM2EbSSxsI4n3gRMKA70nmUFrybyboBQUQgYLZG4IwkKGAIoaz7/8nKLOLz9+yD/9w9/xq1/cJQT7LsYQQVAknMnUOtk6VQFD5S1KMK+kzFAhZygr+Nu/+5hbd055/PlTnj97ybQTY70NCAi+S3eSmWRybagrHAkE7wvbHNjmx2KbN9nmwDaS+D6VvzDbSGJhG0ksbCOJn7tMODk54eTkhMvtjLNhJ6tBtN4RJoHAQCInYIIk3FkNJmrjwf17/Mf/8G/5q1+c0ifo88zd0w1tapQQ2GTrZEskYUM2QxQQr1h8LZGDqc/knAzDiqN7cHT7mHFTiZI8/fIcsgMBGMyVJAUhrpVBtLbHdBSddAclm82KW7fE+8A2B7Y5sI3Ej8Y2B7b5Y1V+BmwjiYVtJLGwjSTexTZ/KWHIhJOTwr07p9gvcMBqhM2qcnm5xRQKCYKwEQk0RBKaYJr4z//87/j7f/O3rNZid9koglUJpv2enBtEoURAJhFBKQWlmHuDUoDkNXNgJQZiCOacaRdiHCr3H61Q+Zhxfcbnv3+BnNhBWoRBDpIrSsZSudxvgUTFNO9onlitN9y6DZfJT8o27yKJd7HNgW0ObPNjss2Bbf4UlT+SbQ5s8/+1B2/LdZx5HYbf37+/pZ1jJ7azZ2qqZioUnHHE/d8CHHAFMFWBAIFsHGut1d+LWpqekUXSdrJsS5b7eWaJHCIJN6nMVGZJmCVhkipu09EGjjfw93/3B/7pn/+Ff/3Tn2ibE9oArQV72O12tGHg+LhB37PbnfPwgzM+efqEf/yHryggXNh3GlB2xlFCp7UiiEolIIx7gVDV2Pc9PdC5YKeQK51JAgoUkLDtHSwefHjCHx59zpdffs633zzn66//gx+//56hBo6GI1R2ux3FhqNT2e/3PNs+w955/PQjvvjdUzrQAZXfSmVJVbFEZYnKz0nCRDuHCZMkzJIwU3mZxh2nkoSJShImKkm4VenEgg6PHp3w1Ve/4/Sk8Z//8z3Pfvxfznc7Hpw95OQINgMct3B2dsrHT7/kiy8+49Mnjb6DkgudogMdkNApeUEPlAWBCD38WeeXyIV0YtFL4h5ThAs2Hn8OZx+c8OHT3/Pjdz/y7Ief+OGHH/nhu+/Z9i3n5yPdkariwaNjHj/9hMcfP+bsww3P98Agq8M03gEqSZioJGGiEpapHCIJvyR2ej8HBx4cN/72j1/w6ZPH/NvX/863//0du3HP+fmOzz77jE8//oSz02NOjwbOTqEK9lsooeRS+LNAyV/IlQA9XComHdIhMuvMiusK6IECOp1isue/vh3ZtGMePIGHHz1g+/wB588esX3+MeM48s033zC6p7XGoycPefL0KacPB/Ydnm/PORoaq8M03hEqSZioJOEuaMj5/jmhcXp2wsdPTzg7/T3nf7OnNg17ePQBbAL7PYw7aIF06HspwqVwQwGdmQEMhEsjF8Ir6wSEDhjoAumMtWMzhAxH0KAJaY3Th0cMA3z4yUOSkAHSoApGZXQkTXo6q8M07jiVSRJUJklQuZSwRGVJEn6rAjIUvYe+3fFs7NSw4agax2cbhgGGAXqH7Ra2z3e43+G2ONkc8eC4+OmcKxaEK3Z6BIq/MFQAuRIu9Qh0/qqYSHhBilkHKp3Jg4enTPZ9ZL/f4wgqQxpQnJwVFhgYhfPdOSMjGYqhCjqrAzXeESpJmKgk4XVQWZKERWNn0xq9d8Yu7EfGdDSc985utyMJZ8cnfPTBhoEN589Hds9/YntetHZKD1csCFfsELmucyH8SsWs81edgnSebZ+RCBQDA8PxQMuGokhgt4Nx7HRGLMlmoKrQzr6PDGlEVgdo3HEqSZioJGGikoTb5ihlaG0Dm6J32PeRPkKlOPvgIX0cKTt9KwqOnVYFdYRcEAhXLAgXOhiMXAovEgiEDnSgmMh1Rae4yXAlHRKqFZXGkAaj7MdOuqgMKVJcKGoAqjAjfZR9HxmqsTpM4x2gkoSJShImKiQsUVmShENUFeM4YuBoGDDg2KmE45MjttuRASFhv99ThCSQsB93VBsg/IwCOjEYiGAgguGG4koRQEIsDJS8oAciVyx2ux3JEW0TkiCiEqRqYLffs9ls2LSiI8+3W8a+gwpDBiKrAzWVJSqzJEySMNOwJAlLtLMkCTepzEbDLAmzJFyqYpEssodFkWoDk+12y6QVF2S/PacsTOdSoMuVClUF6RQ32LlSTDpQQgdK6Ew6CMXATZ2ihA7oyHUlL3jQzqCD5zKyA4qSSzrSWqEj7qAHjmqAGpilyxKVJYZFSZiozFRmvXcOUyxRWZKEmcpM5VU13nEqSZioJGGikoRbl851hms6IbxMyaWSSyXXFDcVV0pQXqJ4VSX/j7x5KjOVmcp90LgHVJIwUUnCROVQKstkSRKWqCxJwm1SWaLyJqnMVGYq90VxT6jMVFb3i8pM5T5pvONUJklQmSRBZZKEQ6gskyVJuM9UliThECozlZnKfdG4J1SSMFFJwrtAZUkSbpPKXaAyU7lPinecykxlprK6H1RmKjOV+6BxD6gkYaKShIlKEg6hskzeZypLknAIlZnKTOW+aLxEEm5SeV0SFqksSYqbVGYqy8KSqmJRWNR7Z0kYWNJ7Z0kSDtF7Z0kSllQVS5KwTJao/JwkTFQOofKqVCYqsyQcQqVxz6ksSlitblPjPaeyJAl3mcpdprJE5H1XrFarW9W451SWyLIk3GUqd5nKEpH3XbFarW5V455TWSKr26Tyvmus3mkqh0jCm6SyWtZ678ySMEvC66AyScIsCTPllSRhloSZyiFGZJKESRKuG5EloVgUliUsUVk0FIeQZbJMZUlHllQVS3rvLEnCkt47S5IwU5mpTFQOkYSZykRlptJYrW6Ryl2j8jY1VgdReZeprEBlovK2NVar95jKTGWm8rY0VgdReZOS8CapHCIJh1A5hMrroDJTeZsaq9V7TOU6lYnKJAlvWmN1EJVDJOE2qRwiCYdQWZKEJSqvi8pE5W1qrG6VypIkrN48ldvSuEZlpnJTEmZJ+DVUZiqvKgkTlZnKq0rCq1CZqFyXhDdJZYnKkt47S6qKJVXFIXrvLFF5XVRmKr+WykRlSRJmSThE750lSShWq9WtaqxuVRJW7y+Vxmq1+s1UDtVY3aokrN5vjdVq9ZupLEnCEpXG6lYlYYnK6n4rVqvVrWpJmKjMVGYqkySoJCEJv5bKTGVWVSzpvTNLwiQJr0sSlgzDgMpMZabyMlXFIZKwpKq4y5KwpPfOb5GEm1RmKr8kCTOVN0llSRL+D3bfmxE3fEDrAAAAAElFTkSuQmCC";async function YWe(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function XWe(e){let t,n,r,a=!1;return function(i){t===void 0?(t=i,n=0,r=-1):t=JWe(t,i);const l=t.length;let c=0;for(;n0){const c=a.decode(i.subarray(0,l)),u=l+(i[l+1]===32?2:1),d=a.decode(i.subarray(u));switch(c){case"data":r.data=r.data?r.data+` -`+d:d;break;case"event":r.event=d;break;case"id":e(r.id=d);break;case"retry":const f=parseInt(d,10);isNaN(f)||t(r.retry=f);break}}}}function JWe(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function hB(){return{data:"",event:"",id:"",retry:void 0}}var ZWe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const g=Object.assign({},r);g.accept||(g.accept=rR);let h;function b(){h.abort(),document.hidden||$()}c||document.addEventListener("visibilitychange",b);let p=eKe,S=0;function C(){document.removeEventListener("visibilitychange",b),window.clearTimeout(S),h.abort()}n==null||n.addEventListener("abort",()=>{C(),f()});const x=u??window.fetch,w=a??nKe;async function $(){var E;h=new AbortController;try{const R=await x(e,Object.assign(Object.assign({},d),{headers:g,signal:h.signal}));await w(R),await YWe(R.body,XWe(QWe(I=>{I?g[bB]=I:delete g[bB]},I=>{p=I},o))),i==null||i(),C(),f()}catch(R){if(!h.signal.aborted)try{const I=(E=l==null?void 0:l(R))!==null&&E!==void 0?E:p;window.clearTimeout(S),S=window.setTimeout($,I)}catch(I){C(),m(I)}}}$()})}function nKe(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(rR)))throw new Error(`Expected content-type to be ${rR}, Actual: ${t}`)}const rKe=new Set(["starting","idle","running","suspended"]),aKe=new Set(["starting","running"]),oKe=new Set(["error","exited"]);function iKe(e){try{const t=JSON.parse(e);return!Number.isInteger(t.sequence)||typeof t.event!="string"||!t.snapshot||typeof t.snapshot.session_id!="string"?null:t}catch{return null}}function sX(e){return[...e].sort((t,n)=>String(n.updated_at||n.created_at).localeCompare(String(t.updated_at||t.created_at)))}function cX(e,t){return sX(e).filter(n=>{if(t.platform&&n.source.platform!==t.platform||t.status&&n.status!==t.status||t.profile&&n.profile_id!==t.profile&&n.profile_name!==t.profile)return!1;if(t.updatedRange){const r=new Date(n.updated_at).getTime(),a=new Date(t.updatedRange[0]).getTime(),o=new Date(t.updatedRange[1]).getTime();if(ro)return!1}return!0})}function lKe(e){return{total:e.length,active:e.filter(t=>rKe.has(t.status)).length,running:e.filter(t=>aKe.has(t.status)).length,failed:e.filter(t=>oKe.has(t.status)).length}}function sKe(e,t){const n=e?[...e]:[];if(!t.snapshot)return n;const r=n.findIndex(a=>{var o;return a.session_id===((o=t.snapshot)==null?void 0:o.session_id)});return r===-1?n.push(t.snapshot):n[r]=t.snapshot,sX(n)}function cKe(e,t){return e.snapshot?{id:(t||String(e.sequence))+":"+e.event,event:e.event,status:e.snapshot.status,at:e.snapshot.updated_at||e.snapshot.created_at,error:e.snapshot.last_error,sequence:e.sequence}:null}function uKe(e){const t=[{id:"created",event:"session.created",status:"idle",at:e.created_at}];return(e.updated_at!==e.created_at||e.status!=="idle")&&t.push({id:"current",event:"current",status:e.status,at:e.updated_at,error:e.last_error}),t}class yB extends Error{}function dKe(e){return new Promise(t=>window.setTimeout(t,e))}function fKe(e){const t=Ng(),[n,r]=s.useState("offline"),a=s.useRef(sessionStorage.getItem(sb)||"");return s.useEffect(()=>{let o=!1,i=0;const l=new AbortController;return(async()=>{for(;!o;){const u=Y3();if(!u){r("offline");return}r(i?"reconnecting":"connecting");try{await tKe("/api/v1/sessions/events",{signal:l.signal,openWhenHidden:!0,headers:{Authorization:"Bearer "+u,...a.current?{"Last-Event-ID":a.current}:{}},async onopen(d){if(d.status===401)throw oX(),new yB("unauthorized");if(!d.ok)throw new Error("SSE connection failed: "+d.status);i=0,r("live")},onmessage(d){d.id&&(a.current=d.id,sessionStorage.setItem(sb,d.id));const f=iKe(d.data);if(!f){t.setQueriesData({queryKey:["sessionTimeline"]},[]),t.invalidateQueries({queryKey:["sessions"]}),t.invalidateQueries({queryKey:["session"]});return}if(f.sequence&&!d.id&&(a.current=String(f.sequence),sessionStorage.setItem(sb,a.current)),t.setQueryData(["sessions"],m=>sKe(m,f)),f.snapshot){t.setQueryData(["session",f.snapshot.session_id],f.snapshot);const m=cKe(f,d.id);m&&t.setQueryData(["sessionTimeline",f.snapshot.session_id],(g=[])=>g.some(h=>h.id===m.id)?g:[...g,m].slice(-60))}},onclose(){throw new Error("SSE connection closed")},onerror(d){throw d}})}catch(d){if(o||l.signal.aborted)return;if(d instanceof yB){r("offline");return}i+=1,r("reconnecting"),await dKe(Math.min(1e3*2**(i-1),15e3))}}})(),()=>{o=!0,l.abort()}},[e,t]),n}const QE={connecting:"正在连接",live:"实时连接",reconnecting:"正在重连",offline:"离线"},uX="openab.admin.sider-collapsed";function vKe(){try{return window.localStorage.getItem(uX)==="1"}catch{return!1}}function mKe({onLogout:e}){const t=Fg(),n=Dg(),r=fKe(!0),[a,o]=s.useState(vKe);s.useEffect(()=>{try{window.localStorage.setItem(uX,a?"1":"0")}catch{}},[a]);const i=s.useMemo(()=>({path:"/",routes:[{path:"/overview",name:"总览",icon:_.jsx(OIe,{})},{path:"/sessions",name:"会话",icon:_.jsx(FU,{})},{path:"/profiles",name:"Agent Profile",icon:_.jsx(A4e,{})},{path:"/config",name:"Gateway 配置",icon:_.jsx(C4e,{})}]}),[]),l=()=>{X3()&&(aX(),e())};return _.jsx(zHe,{title:"OpenAB Plus",logo:_.jsx("img",{className:"layout-logo",src:lX,alt:""}),layout:"mix",navTheme:"light",fixedHeader:!0,fixSiderbar:!0,breakpoint:"lg",siderWidth:236,collapsed:a,onCollapse:o,route:i,location:{pathname:t.pathname},headerTitleRender:(c,u,d)=>_.jsxs("button",{type:"button",className:"header-brand",onClick:()=>{pB(t.pathname,"/overview")&&n("/overview")},"aria-label":"返回总览",children:[c,d!=null&&d.isMobile?null:_.jsxs("span",{className:"header-brand-text",children:[_.jsx("span",{className:"header-brand-title",children:"OpenAB Plus"}),_.jsx("span",{className:"header-brand-caption",children:"Admin Console"})]})]}),menuItemRender:(c,u)=>_.jsx("button",{type:"button",className:"menu-link",onClick:()=>{c.path&&pB(t.pathname,c.path)&&n(c.path)},children:u}),menuFooterRender:c=>_.jsxs("div",{className:"sider-footer"+(c!=null&&c.collapsed?" is-collapsed":""),children:[_.jsx("span",{className:"stream-dot is-"+r,"aria-hidden":"true"}),c!=null&&c.collapsed?null:_.jsxs("span",{className:"sider-footer-text",children:[_.jsx("span",{className:"sider-footer-label",children:QE[r]}),_.jsxs("span",{className:"sider-footer-version",children:["v","0.2.3"]})]})]}),avatarProps:!1,actionsRender:()=>[_.jsx(Kn,{title:"实时通道:"+QE[r],children:_.jsxs("span",{className:"stream-status is-"+r,children:[_.jsx("span",{className:"stream-dot","aria-hidden":"true"}),_.jsx("span",{className:"stream-label",children:QE[r]})]})},"stream"),_.jsx(Nf,{menu:{items:[{key:"logout",icon:_.jsx(ARe,{}),label:"退出登录",onClick:l}]},children:_.jsxs(jn,{type:"text",className:"account-button","aria-label":"账户菜单",children:[_.jsx(wf,{className:"account-avatar",size:"small",icon:_.jsx(jU,{})}),_.jsx("span",{className:"account-label",children:"管理员"}),_.jsx(kIe,{className:"account-button-caret"})]})},"account")],token:{header:{colorBgHeader:"#ffffff",colorHeaderTitle:"#1b2430",heightLayoutHeader:64},sider:{colorMenuBackground:"#ffffff",colorTextMenu:"#5b6b7c",colorTextMenuSecondary:"#8593a3",colorTextMenuSelected:"#1677ff",colorBgMenuItemSelected:"#e6f4ff",colorBgMenuItemHover:"#f5f8ff",colorTextMenuActive:"#1677ff",colorBgCollapsedButton:"#ffffff",colorTextCollapsedButton:"#8593a3",colorTextCollapsedButtonHover:"#1677ff"},pageContainer:{colorBgPageContainer:"#f5f7fa",paddingInlinePageContainerContent:24,paddingBlockPageContainerContent:20}},children:_.jsx("div",{className:"app-content",children:_.jsx(iOe,{})})})}class aC extends Error{constructor(n,r,a){super(r);_S(this,"status");_S(this,"payload");this.name="ApiError",this.status=n,this.payload=a}}async function gKe(e){const t=await e.text();if(!t)return null;try{return JSON.parse(t)}catch{return t}}function pKe(e,t){if(typeof e=="string"&&e.trim())return e;if(e&&typeof e=="object"){const n=e;if(typeof n.error=="string")return n.error;if(typeof n.message=="string")return n.message}return t}async function Ca(e,t={}){const{token:n,suppressUnauthorized:r=!1,...a}=t,o=(n??Y3()).trim(),i=new Headers(a.headers);o&&i.set("Authorization","Bearer "+o),a.body&&!i.has("Content-Type")&&i.set("Content-Type","application/json");const l=await fetch(e,{...a,headers:i}),c=await gKe(l);if(!l.ok)throw l.status===401&&!r&&oX(),new aC(l.status,pKe(c,"请求失败(HTTP "+l.status+")"),c);return c}const Jr={probe:e=>Ca("/api/v1/sessions",{token:e,suppressUnauthorized:!0}),sessions:()=>Ca("/api/v1/sessions"),session:e=>Ca("/api/v1/sessions/"+encodeURIComponent(e)),profiles:()=>Ca("/api/v1/agent-profiles"),agents:()=>Ca("/api/v1/agents"),profileSchema:e=>Ca("/api/v1/agents/"+encodeURIComponent(e)+"/config-schema"),createProfile:e=>Ca("/api/v1/agent-profiles",{method:"POST",body:JSON.stringify(e)}),updateProfile:(e,t)=>Ca("/api/v1/agent-profiles/"+encodeURIComponent(e),{method:"PUT",body:JSON.stringify(t)}),deleteProfile:e=>Ca("/api/v1/agent-profiles/"+encodeURIComponent(e),{method:"DELETE"}),setDefaultProfile:e=>Ca("/api/v1/agent-profiles/default/"+encodeURIComponent(e),{method:"PUT"}),clearDefaultProfile:()=>Ca("/api/v1/agent-profiles/default",{method:"DELETE"}),validateProfile:e=>Ca("/api/v1/agent-profiles/"+encodeURIComponent(e)+"/validate",{method:"POST"}),config:()=>Ca("/api/v1/config"),configStatus:()=>Ca("/api/v1/config/status"),validateConfig:e=>Ca("/api/v1/config/validate",{method:"POST",body:JSON.stringify({values:e})}),saveConfig:e=>Ca("/api/v1/config",{method:"PUT",body:JSON.stringify({values:e})}),reloadConfig:()=>Ca("/api/v1/config/reload",{method:"POST"})};function hKe({onAuthenticated:e,reason:t}){const[n,r]=s.useState(!1),[a,o]=s.useState(t||""),i=async({token:l})=>{const c=l.trim();r(!0),o("");try{await Jr.probe(c),WWe(c),e(c)}catch(u){u instanceof aC&&u.status===503?o("Gateway 尚未配置 Admin Token,请先完成服务端配置。"):o("Token 无效或 Gateway 暂时不可用。")}finally{r(!1)}};return _.jsx("main",{className:"login-page",children:_.jsxs("div",{className:"login-shell",children:[_.jsxs("section",{className:"login-hero","aria-label":"产品介绍",children:[_.jsxs("div",{className:"login-hero-brand",children:[_.jsx("img",{className:"brand-logo",src:lX,alt:""}),_.jsx("span",{children:"OpenAB Plus"})]}),_.jsx(On.Title,{className:"login-hero-title",children:"多平台 Agent 会话的运维控制台"}),_.jsx(On.Paragraph,{className:"login-hero-subtitle",children:"统一查看 Discord、Slack、Telegram 等平台接入的 Agent 会话,管理启动 Profile 与 Gateway 配置。"}),_.jsxs("ul",{className:"login-hero-points",children:[_.jsxs("li",{children:[_.jsx("span",{className:"login-point-icon blue","aria-hidden":"true",children:_.jsx(jU,{})}),_.jsxs("div",{children:[_.jsx("strong",{children:"实时会话流"}),_.jsx("span",{children:"状态事件通过 SSE 即时推送,无需手动刷新"})]})]}),_.jsxs("li",{children:[_.jsx("span",{className:"login-point-icon amber","aria-hidden":"true",children:_.jsx(AU,{})}),_.jsxs("div",{children:[_.jsx("strong",{children:"Profile 化运行参数"}),_.jsx("span",{children:"按 Agent 类型管理命令、模型与恢复策略"})]})]}),_.jsxs("li",{children:[_.jsx("span",{className:"login-point-icon green","aria-hidden":"true",children:_.jsx(mI,{})}),_.jsxs("div",{children:[_.jsx("strong",{children:"安全的配置管理"}),_.jsx("span",{children:"敏感字段始终脱敏,修改经校验后按策略生效"})]})]})]})]}),_.jsxs("section",{className:"login-card","aria-labelledby":"login-title",children:[_.jsxs("div",{className:"login-card-heading",children:[_.jsx(On.Title,{id:"login-title",level:3,children:"登录控制台"}),_.jsx(On.Text,{type:"secondary",children:"输入 Admin Token 继续"})]}),_.jsxs("div",{className:"login-security",children:[_.jsx(mI,{}),_.jsx("span",{children:"凭据保存在当前浏览器,可从 Slack 深链直接打开会话"})]}),a?_.jsx(ks,{type:"error",showIcon:!0,message:a,className:"login-alert"}):null,_.jsxs(Fn,{layout:"vertical",onFinish:i,requiredMark:!1,children:[_.jsx(Fn.Item,{name:"token",label:"Admin Token",rules:[{required:!0,message:"请输入 Admin Token"}],children:_.jsx(Kr.Password,{autoFocus:!0,size:"large",prefix:_.jsx(_Re,{}),autoComplete:"current-password",placeholder:"输入 Gateway Admin Token"})}),_.jsx(jn,{type:"primary",htmlType:"submit",size:"large",block:!0,loading:n,children:"登录控制台"})]}),_.jsx(On.Paragraph,{type:"secondary",className:"login-footnote",children:"该控制台不会发送 Prompt,也不会接管运行中的 Agent。"})]})]})})}const CB={starting:"启动中",idle:"空闲",running:"运行中",suspended:"已暂停",error:"失败",exited:"已退出",unknown:"未知"};function Td(e){if(!e)return"-";const t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(t)}function bKe(e){if(!e)return"-";const t=new Date(e).getTime();if(Number.isNaN(t))return e;const n=t-Date.now(),r=Math.abs(n),a=new Intl.RelativeTimeFormat("zh-CN",{numeric:"auto"});return r<6e4?a.format(Math.round(n/1e3),"second"):r<36e5?a.format(Math.round(n/6e4),"minute"):r<864e5?a.format(Math.round(n/36e5),"hour"):a.format(Math.round(n/864e5),"day")}function yKe(e){return{"session.created":"会话创建",status_changed:"状态变更",model_changed:"模型变更",profile_changed:"Profile 变更",profile_deleted:"Profile 已删除",session_error:"会话异常",current:"当前状态"}[e]||e.replaceAll("_"," ")}const SB={starting:{color:"processing",icon:_.jsx(IRe,{spin:!0})},idle:{color:"default",icon:_.jsx(rw,{})},running:{color:"success",icon:_.jsx(GOe,{})},suspended:{color:"warning",icon:_.jsx(URe,{})},error:{color:"error",icon:_.jsx(sIe,{})},exited:{color:"default",icon:_.jsx(rw,{})},unknown:{color:"default",icon:_.jsx(rw,{})}};function aR({status:e}){const t=SB[e]||SB.unknown;return _.jsx(Fa,{color:t.color,icon:t.icon,className:"status-tag",children:CB[e]||CB.unknown})}const xB=[{color:"#1668dc",background:"#e8f1ff"},{color:"#1f9d68",background:"#e7f6ef"},{color:"#b96d08",background:"#fff3dd"},{color:"#7b5cd6",background:"#f0ebfc"},{color:"#c04a7c",background:"#fceef4"},{color:"#0e8a9d",background:"#e6f6f9"}];function CKe(e){var o;const t=(e||"").trim();let n=0;for(const i of t)n=n*31+(i.codePointAt(0)||0)>>>0;const r=xB[n%xB.length],a=(((o=t.match(/[a-zA-Z0-9一-龥]/))==null?void 0:o[0])||"?").toUpperCase();return{color:r.color,background:r.background,initial:a}}function dX({name:e,size:t=26}){const n=CKe(e);return _.jsx("span",{className:"entity-mark","aria-hidden":"true",style:{width:t,height:t,color:n.color,background:n.background,fontSize:Math.round(t*.46)},children:n.initial})}function fX({sessions:e,loading:t,compact:n=!1,searchable:r=!0,onReload:a,title:o="会话",limit:i}){const l=Dg(),[c,u]=s.useState({}),d=s.useMemo(()=>{const g=cX(e,c).filter(h=>!c.agent||h.agent===c.agent);return typeof i=="number"?g.slice(0,i):g},[c,i,e]),f=g=>Object.fromEntries([...new Set(g.filter(Boolean))].map(h=>[h,{text:h}])),m=[{title:"状态",dataIndex:"status",width:112,valueType:"select",valueEnum:{starting:{text:"启动中"},idle:{text:"空闲"},running:{text:"运行中"},suspended:{text:"已暂停"},error:{text:"失败"},exited:{text:"已退出"}},render:(g,h)=>_.jsx(aR,{status:h.status})},{title:"Agent",dataIndex:"agent",width:128,valueType:"select",valueEnum:f(e.map(g=>g.agent)),render:(g,h)=>_.jsxs(Jn,{size:8,className:"agent-cell",children:[_.jsx(dX,{name:h.agent}),_.jsx(On.Text,{strong:!0,children:h.agent||"未报告"})]})},{title:"平台",dataIndex:["source","platform"],width:120,valueType:"select",valueEnum:f(e.map(g=>{var h;return(h=g.source)==null?void 0:h.platform})),render:(g,h)=>{var b;return((b=h.source)==null?void 0:b.platform)||"-"}},{title:"工作目录",dataIndex:"workdir",ellipsis:!0,hideInSearch:!0,render:(g,h)=>_.jsx(On.Text,{code:!0,ellipsis:{tooltip:h.workdir},children:h.workdir||"-"})},{title:"Profile",dataIndex:"profile_id",width:160,valueType:"select",valueEnum:Object.fromEntries(e.filter(g=>g.profile_id).map(g=>[g.profile_id,{text:g.profile_name||g.profile_id}])),render:(g,h)=>_.jsxs(Jn,{size:4,children:[_.jsx("span",{children:h.profile_name||h.profile_id||"-"}),h.profile_status==="deleted"?_.jsx(On.Text,{type:"danger",children:"已删除"}):null]})},{title:"更新时间",dataIndex:"updated_at",width:178,valueType:"dateTimeRange",render:(g,h)=>_.jsx(Kn,{title:Td(h.updated_at),children:_.jsx("span",{children:bKe(h.updated_at)})})},{title:"操作",valueType:"option",width:72,fixed:"right",render:(g,h)=>[_.jsx(Kn,{title:"查看详情",children:_.jsx(jn,{type:"text",icon:_.jsx(sRe,{}),"aria-label":"查看会话详情",onClick:()=>l("/sessions/"+encodeURIComponent(h.session_id))})},"view")]}];return _.jsx(G3,{className:"session-table",rowKey:"session_id",columns:m,dataSource:d,loading:t,search:r?{labelWidth:"auto",span:{xs:24,sm:12,md:8,lg:6,xl:6,xxl:6},defaultCollapsed:!1}:!1,onSubmit:g=>{var h;return u({platform:(h=g.source)==null?void 0:h.platform,status:g.status,profile:g.profile_id,agent:g.agent,updatedRange:g.updated_at})},onReset:()=>u({}),pagination:n?!1:{defaultPageSize:20,showSizeChanger:!0,showTotal:g=>"共 "+g+" 条"},scroll:{x:980},size:n?"small":"middle",options:{density:!n,fullScreen:!n,reload:a?()=>(a(),Promise.resolve()):!1,setting:!n},toolBarRender:()=>[_.jsx(jn,{icon:_.jsx(HIe,{}),onClick:()=>Qo.info("导出能力将在后续版本开放"),children:"导出"},"export"),a?_.jsx(jn,{type:"primary",icon:_.jsx(kU,{}),onClick:a,children:"全量校准"},"reconcile"):null],locale:{emptyText:_.jsx(xa,{className:"table-empty",image:xa.PRESENTED_IMAGE_SIMPLE,description:_.jsxs(Jn,{direction:"vertical",size:2,children:[_.jsx(On.Text,{strong:!0,children:"暂无会话"}),_.jsx(On.Text,{type:"secondary",children:"Agent 通过 Gateway 启动会话后,会实时显示在这里"})]})})},headerTitle:_.jsxs(Jn,{size:10,align:"center",children:[_.jsx("span",{children:o}),_.jsxs("span",{className:"table-count",children:["共 ",d.length," 条"]})]}),cardBordered:!0})}const{Statistic:O0}=qa;function SKe(e){if(!Array.isArray(e)||e.length!==2)return;const t=e.map(n=>{if(typeof n=="string")return n;if(n&&typeof n=="object"&&"toISOString"in n&&typeof n.toISOString=="function")return n.toISOString()});return t.every(n=>!!n)?[t[0],t[1]]:void 0}function xKe(){var u;const[e,t]=s.useState({}),n=sl({queryKey:["sessions"],queryFn:Jr.sessions,refetchInterval:3e4}),r=sl({queryKey:["profiles"],queryFn:Jr.profiles}),a=n.data||[],o=s.useMemo(()=>cX(a,e),[e,a]),i=lKe(o),l=[...new Set(a.map(d=>d.source.platform))],c=((u=r.data)==null?void 0:u.profiles)||[];return _.jsxs(vf,{title:"运行总览",subTitle:"Gateway 会话与 Agent 运行状态",className:"page-container",children:[_.jsxs(qa.Group,{direction:"row",style:{marginBottom:18},children:[_.jsx(qa,{statistic:{title:"会话总数",value:i.total,description:_.jsx(O0,{title:"Gateway 接入的全部会话",value:" "}),icon:_.jsx(FU,{style:{color:"#1677ff",fontSize:24}})}}),_.jsx(qa.Divider,{}),_.jsx(qa,{statistic:{title:"活跃会话",value:i.active,description:_.jsx(O0,{title:"空闲或运行中,可继续交互",value:" "}),icon:_.jsx(c3,{style:{color:"#52c41a",fontSize:24}})}}),_.jsx(qa.Divider,{}),_.jsx(qa,{statistic:{title:"运行中",value:i.running,description:_.jsx(O0,{title:"正在处理任务的会话",value:" "}),icon:_.jsx(AU,{style:{color:"#faad14",fontSize:24}})}}),_.jsx(qa.Divider,{}),_.jsx(qa,{statistic:{title:"失败",value:i.failed,description:_.jsx(O0,{title:"启动或运行异常,需要关注",value:" "}),icon:_.jsx(vIe,{style:{color:"#ff4d4f",fontSize:24}})}})]}),_.jsxs("section",{className:"overview-filter","aria-label":"总览筛选",children:[_.jsxs("div",{className:"section-heading",children:[_.jsx("span",{className:"section-heading-icon","aria-hidden":"true",children:_.jsx(bRe,{})}),_.jsxs("div",{className:"section-heading-text",children:[_.jsx(On.Text,{strong:!0,children:"筛选会话"}),_.jsx(On.Text,{type:"secondary",children:"按平台、状态、Profile 或更新时间过滤"})]})]}),_.jsxs(mo,{layout:"horizontal",submitter:!1,onValuesChange:(d,f)=>t({platform:f.platform,status:f.status,profile:f.profile,updatedRange:SKe(f.updatedRange)}),children:[_.jsx(Jo,{name:"platform",label:"平台",allowClear:!0,width:"sm",options:l.map(d=>({label:d,value:d}))}),_.jsx(Jo,{name:"status",label:"状态",allowClear:!0,width:"sm",options:[{label:"启动中",value:"starting"},{label:"空闲",value:"idle"},{label:"运行中",value:"running"},{label:"已暂停",value:"suspended"},{label:"失败",value:"error"},{label:"已退出",value:"exited"}]}),_.jsx(Jo,{name:"profile",label:"Profile",allowClear:!0,width:"sm",options:c.map(d=>({label:d.name||d.id,value:d.id}))}),_.jsx(AAe,{name:"updatedRange",label:"更新时间",fieldProps:{allowClear:!0}})]})]}),_.jsx(fX,{title:"最近会话",sessions:o,loading:n.isLoading,compact:!0,searchable:!1,limit:8,onReload:()=>void n.refetch()})]})}function wKe(){const e=sl({queryKey:["sessions"],queryFn:Jr.sessions,refetchInterval:3e4});return _.jsx(vf,{title:"会话",subTitle:"跨平台 Agent 会话与实时状态",className:"page-container",children:_.jsx(fX,{sessions:e.data||[],loading:e.isLoading,onReload:()=>void e.refetch(),title:"全部会话"})})}function $Ke(){var u;const t=KPe().id||"",n=Dg(),r=Ng(),a=sl({queryKey:["session",t],queryFn:()=>Jr.session(t),enabled:!!t}),o=sl({queryKey:["sessionTimeline",t],queryFn:async()=>[],enabled:!1,initialData:[]});if(s.useEffect(()=>{a.data&&r.setQueryData(["sessionTimeline",t],(d=[])=>d.length?d:uKe(a.data))},[r,t,a.data]),a.isLoading)return _.jsx("div",{className:"page-loading",children:_.jsx(Hi,{size:"large"})});if(!a.data)return _.jsx(vf,{title:"会话详情",className:"page-container",children:_.jsx(xa,{description:"未找到该会话",children:_.jsx(jn,{onClick:()=>n("/sessions"),children:"返回会话列表"})})});const i=a.data,l=o.data||[],c=i.metadata_source==="acp"?"ACP 运行时":i.metadata_source==="configured"?"配置值":"未报告";return _.jsxs(vf,{title:i.session_id,subTitle:i.agent||"Agent 未报告",className:"page-container",extra:[_.jsx(jn,{icon:_.jsx(kOe,{}),onClick:()=>n("/sessions"),children:"返回"},"back"),i.external_url?_.jsx(jn,{type:"primary",icon:_.jsx(wRe,{}),href:i.external_url,target:"_blank",rel:"noreferrer",children:"打开来源"},"external"):null],children:[i.last_error?_.jsx(ks,{type:"error",showIcon:!0,message:"会话异常",description:i.last_error,className:"detail-alert"}):null,_.jsxs("div",{className:"session-detail-grid",children:[_.jsxs("section",{className:"detail-panel timeline-panel",children:[_.jsx("div",{className:"panel-heading",children:_.jsxs("div",{className:"panel-heading-title",children:[_.jsx("span",{className:"panel-icon blue","aria-hidden":"true",children:_.jsx(VOe,{})}),_.jsxs("div",{children:[_.jsx(On.Title,{level:4,children:"事件时间线"}),_.jsx(On.Text,{type:"secondary",children:"实时状态事件,最多保留当前会话最近 60 条"})]})]})}),l.length?_.jsx(Uq,{items:[...l].reverse().map(d=>({color:d.status==="error"?"red":d.status==="running"?"green":"blue",dot:d.status==="error"?_.jsx(JIe,{}):_.jsx(rIe,{}),children:_.jsxs("div",{className:"timeline-entry",children:[_.jsxs("div",{className:"timeline-title",children:[_.jsx(On.Text,{strong:!0,children:yKe(d.event)}),_.jsx(aR,{status:d.status})]}),_.jsx(On.Text,{type:"secondary",children:Td(d.at)}),d.error?_.jsx(On.Paragraph,{type:"danger",children:d.error}):null]})}))}):_.jsx(xa,{image:xa.PRESENTED_IMAGE_SIMPLE,description:"暂无事件"})]}),_.jsxs("aside",{className:"detail-panel metadata-panel",children:[_.jsxs("div",{className:"panel-heading",children:[_.jsxs("div",{className:"panel-heading-title",children:[_.jsx("span",{className:"panel-icon violet","aria-hidden":"true",children:_.jsx(n4e,{})}),_.jsxs("div",{children:[_.jsx(On.Title,{level:4,children:"会话元数据"}),_.jsx(On.Text,{type:"secondary",children:"来源、工作目录与运行参数"})]})]}),_.jsx(aR,{status:i.status})]}),_.jsxs(Sa,{column:1,size:"small",colon:!1,children:[_.jsx(Sa.Item,{label:"Agent",children:i.agent||"未报告"}),_.jsx(Sa.Item,{label:"平台",children:i.source.platform||"-"}),_.jsx(Sa.Item,{label:"Thread",children:_.jsx(On.Text,{copyable:!0,code:!0,children:i.source.thread_id||"-"})}),_.jsx(Sa.Item,{label:"工作目录",children:_.jsx(On.Text,{copyable:!0,code:!0,children:i.workdir||"-"})}),_.jsx(Sa.Item,{label:"Profile",children:_.jsxs(Jn,{size:6,children:[_.jsx("span",{children:i.profile_name||i.profile_id||"-"}),i.profile_status==="deleted"?_.jsx(On.Text,{type:"danger",children:"已删除"}):null]})}),_.jsx(Sa.Item,{label:"模型",children:i.model||"未报告"}),_.jsx(Sa.Item,{label:"Thinking",children:i.reasoning_effort||"未报告"}),_.jsx(Sa.Item,{label:"元数据来源",children:c}),_.jsx(Sa.Item,{label:"创建时间",children:Td(i.created_at)}),_.jsx(Sa.Item,{label:"更新时间",children:Td(i.updated_at)})]}),(u=i.profile_config_errors)!=null&&u.length?_.jsx(ks,{type:"warning",showIcon:!0,message:"Profile 配置告警",description:i.profile_config_errors.map(d=>_.jsxs("div",{children:[d.config_id,": ",d.error]},d.config_id))}):null]})]})]})}function EKe(e){var n,r;const t={};for(const a of e||[]){const o=(n=a.key)==null?void 0:n.trim(),i=(r=a.value)==null?void 0:r.trim();o&&i&&(t[o]=i)}return t}function PKe(e){const t={};for(const[n,r]of Object.entries(e||{}))r==null||r===""||(t[n]=String(r));return t}function OKe(e){return e?{...e,args:e.args||[],inherit_env:e.inherit_env||[],config_options:e.config_options||{},env_ref_entries:Object.entries(e.env_refs||{}).map(([t,n])=>({key:t,value:n}))}:{enabled:!0,workdir_strategy:"system_default",recovery_strategy:"resume_session",args:[],inherit_env:[],config_options:{},env_ref_entries:[]}}function IKe(e){var r,a,o;const t=i=>(i==null?void 0:i.trim())||void 0,n=Number(e.timeout_secs);return{id:((r=e.id)==null?void 0:r.trim())||"",name:((a=e.name)==null?void 0:a.trim())||"",agent_type:((o=e.agent_type)==null?void 0:o.trim())||"",enabled:e.enabled!==!1,command:t(e.command),args:(e.args||[]).map(i=>i.trim()).filter(Boolean),default_model:t(e.default_model),reasoning_effort:t(e.reasoning_effort),workdir_strategy:e.workdir_strategy||"system_default",working_dir:t(e.working_dir),env_refs:EKe(e.env_ref_entries),inherit_env:(e.inherit_env||[]).map(i=>i.trim()).filter(Boolean),timeout_secs:Number.isFinite(n)&&n>0?n:void 0,recovery_strategy:e.recovery_strategy||"resume_session",config_options:PKe(e.config_options)}}const RKe=["codex","claude","gemini","opencode","kiro","cursor","hermes"];function MKe({agentType:e}){var r;const t=sl({queryKey:["profileSchema",e],queryFn:()=>Jr.profileSchema(e),enabled:!!e});if(!e||!((r=t.data)!=null&&r.fields.length))return null;const n=a=>{var l;const o=["config_options",a.id],i={key:a.id,name:o,label:a.label||a.id,tooltip:a.dynamic?"该选项由当前 Agent 运行时动态提供":void 0};return(l=a.options)!=null&&l.length?_.jsx(Jo,{...i,options:a.options.map(c=>({label:c,value:c})),allowClear:!0}):["boolean","bool"].includes(a.kind)?_.jsx(Jo,{...i,options:[{label:"true",value:"true"},{label:"false",value:"false"}],allowClear:!0}):["number","integer"].includes(a.kind)?_.jsx(OY,{...i,fieldProps:{precision:0}}):_.jsx(xi,{...i})};return _.jsxs("section",{className:"dynamic-config-section",children:[_.jsxs("div",{className:"form-section-heading",children:[_.jsxs("div",{children:[_.jsx(On.Text,{strong:!0,children:"Agent 配置项"}),_.jsxs(On.Text,{type:"secondary",children:["来源:",t.data.source]})]}),_.jsxs(Fa,{color:"blue",children:[t.data.fields.length," 项"]})]}),_.jsx(ym,{children:t.data.fields.map(n)})]})}function wB(e){return e.ok?"Profile 校验通过":e.errors.map(t=>t.path+": "+t.message).join(";")}function TKe(){var p,S;const e=Ng(),[t,n]=s.useState(!1),[r,a]=s.useState(),[o]=Fn.useForm(),i=Fn.useWatch("agent_type",o),l=sl({queryKey:["profiles"],queryFn:Jr.profiles}),c=sl({queryKey:["agents"],queryFn:Jr.agents}),u=((p=l.data)==null?void 0:p.profiles)||[],d=(S=l.data)==null?void 0:S.default_profile,f=s.useMemo(()=>[...new Set([...RKe,...(c.data||[]).map(C=>C.agent_type),...u.map(C=>C.agent_type)])].sort(),[c.data,u]),m=async()=>{await Promise.all([e.invalidateQueries({queryKey:["profiles"]}),e.invalidateQueries({queryKey:["agents"]})])},g=vPe({mutationFn:async C=>{const x=IKe(C);return r?Jr.updateProfile(r.id,x):Jr.createProfile(x)},onSuccess:async()=>{Qo.success(r?"Profile 已更新":"Profile 已创建"),n(!1),await m()},onError:C=>{Qo.error(C instanceof aC?C.message:"保存 Profile 失败")}}),h=C=>{a(C),n(!0)};s.useEffect(()=>{t&&(o.resetFields(),o.setFieldsValue(OKe(r||{id:"",name:"",agent_type:f[0]||"codex",enabled:!0,workdir_strategy:"system_default",recovery_strategy:"resume_session"})))},[f,r,o,t]);const b=[{title:"Profile",dataIndex:"name",render:(C,x)=>_.jsxs(Jn,{size:10,className:"profile-cell",children:[_.jsx(dX,{name:x.name||x.id,size:30}),_.jsxs(Jn,{direction:"vertical",size:0,children:[_.jsxs(Jn,{size:6,children:[_.jsx(On.Text,{strong:!0,children:x.name}),x.id===d?_.jsx(Fa,{color:"gold",icon:_.jsx(SF,{}),children:"默认"}):null]}),_.jsx(On.Text,{type:"secondary",code:!0,children:x.id})]})]})},{title:"Agent",dataIndex:"agent_type",width:140,valueType:"select",valueEnum:Object.fromEntries(f.map(C=>[C,{text:C}])),render:(C,x)=>_.jsx(Fa,{children:x.agent_type})},{title:"状态",dataIndex:"enabled",width:110,valueType:"select",valueEnum:{true:{text:"启用"},false:{text:"停用"}},render:(C,x)=>x.enabled?_.jsx(Fa,{color:"success",children:"启用"}):_.jsx(Fa,{children:"停用"})},{title:"默认模型",dataIndex:"default_model",width:160,hideInSearch:!0,render:(C,x)=>x.default_model||"-"},{title:"工作目录策略",dataIndex:"workdir_strategy",width:170,hideInSearch:!0},{title:"更新时间",dataIndex:"updated_at",valueType:"dateTime",width:180,hideInSearch:!0,render:(C,x)=>Td(x.updated_at)},{title:"操作",valueType:"option",width:180,fixed:"right",render:(C,x)=>[_.jsx(Kn,{title:"编辑",children:_.jsx(jn,{type:"text",icon:_.jsx(UIe,{}),"aria-label":"编辑 Profile",onClick:()=>h(x)})},"edit"),_.jsx(Kn,{title:"校验",children:_.jsx(jn,{type:"text",icon:_.jsx(c3,{}),"aria-label":"校验 Profile",onClick:async()=>{try{const w=await Jr.validateProfile(x.id);w.ok?Qo.success(wB(w)):Qo.warning(wB(w))}catch{Qo.error("Profile 校验失败")}}})},"validate"),_.jsx(Kn,{title:"设为默认",children:_.jsx(jn,{type:"text",icon:x.id===d?_.jsx(SF,{}):_.jsx(R4e,{}),"aria-label":"设为默认 Profile",disabled:x.id===d,onClick:async()=>{await Jr.setDefaultProfile(x.id),Qo.success("默认 Profile 已更新"),await m()}})},"default"),_.jsx(k4,{title:"删除 Profile",description:"现有会话会保留快照,新会话将无法再选择该 Profile。",okButtonProps:{danger:!0},onConfirm:async()=>{await Jr.deleteProfile(x.id),Qo.success("Profile 已删除"),await m()},children:_.jsx(Kn,{title:"删除",children:_.jsx(jn,{type:"text",danger:!0,icon:_.jsx(NIe,{}),"aria-label":"删除 Profile"})})},"delete")]}];return _.jsxs(vf,{title:"Agent Profile",subTitle:"Agent 启动参数、运行策略与动态配置",className:"page-container",extra:[d?_.jsx(jn,{onClick:async()=>{await Jr.clearDefaultProfile(),Qo.success("已清除默认 Profile"),await m()},children:"清除默认"},"clear-default"):null,_.jsx(jn,{type:"primary",icon:_.jsx(mF,{}),onClick:()=>h(),children:"新建 Profile"},"create")],children:[_.jsx(G3,{rowKey:"id",columns:b,dataSource:u,loading:l.isLoading,cardBordered:!0,search:{labelWidth:"auto"},scroll:{x:1050},pagination:{defaultPageSize:20,showTotal:C=>"共 "+C+" 个"},options:{reload:()=>l.refetch(),density:!0,setting:!0},headerTitle:_.jsxs(Jn,{size:10,align:"center",children:[_.jsx("span",{children:"Profile 列表"}),_.jsxs("span",{className:"table-count",children:["共 ",u.length," 个"]})]}),locale:{emptyText:_.jsx(xa,{className:"table-empty",image:xa.PRESENTED_IMAGE_SIMPLE,description:_.jsxs(Jn,{direction:"vertical",size:2,children:[_.jsx(On.Text,{strong:!0,children:"还没有 Agent Profile"}),_.jsx(On.Text,{type:"secondary",children:"Profile 定义 Agent 的启动参数与运行策略,先创建一个开始使用"})]}),children:_.jsx(jn,{type:"primary",icon:_.jsx(mF,{}),onClick:()=>h(),children:"新建 Profile"})})}}),_.jsx(MY,{title:r?"编辑 Profile":"新建 Profile",width:720,open:t,onOpenChange:n,form:o,drawerProps:{destroyOnClose:!0},submitter:{searchConfig:{submitText:r?"保存修改":"创建 Profile"},submitButtonProps:{loading:g.isPending}},onFinish:async C=>(await g.mutateAsync(C),!0),children:_.jsx(il,{className:"profile-form-tabs",items:[{key:"basic",label:"基础信息",children:_.jsxs(ym,{children:[_.jsx(xi,{name:"id",label:"Profile ID",width:"md",disabled:!!r,rules:[{required:!0,message:"请输入 Profile ID"},{pattern:/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/,message:"仅支持字母、数字、点、下划线和连字符"}]}),_.jsx(xi,{name:"name",label:"名称",width:"md",rules:[{required:!0,message:"请输入名称"}]}),_.jsx(Jo,{name:"agent_type",label:"Agent 类型",width:"md",showSearch:!0,disabled:!!r,options:f.map(C=>({label:C,value:C})),rules:[{required:!0,message:"请选择 Agent 类型"}]}),_.jsx(oBe,{name:"enabled",label:"启用",width:"md"})]})},{key:"runtime",label:"运行参数",children:_.jsxs(_.Fragment,{children:[_.jsxs(ym,{children:[_.jsx(xi,{name:"command",label:"命令覆盖",width:"md"}),_.jsx(Jo,{name:"args",label:"启动参数",width:"md",mode:"tags",options:[]}),_.jsx(xi,{name:"default_model",label:"默认模型",width:"md"}),_.jsx(xi,{name:"reasoning_effort",label:"推理强度",width:"md",tooltip:"控制 Agent 推理深度,具体取值取决于 Agent 类型"}),_.jsx(Jo,{name:"workdir_strategy",label:"工作目录策略",width:"md",options:[{label:"系统默认",value:"system_default"},{label:"Profile 默认",value:"profile_default"},{label:"会话临时目录",value:"ephemeral_per_session"}]}),_.jsx(Xg,{name:["workdir_strategy"],children:({workdir_strategy:C})=>C==="profile_default"?_.jsx(xi,{name:"working_dir",label:"默认工作目录",width:"md",rules:[{required:!0,message:"请输入默认工作目录"}]}):null}),_.jsx(OY,{name:"timeout_secs",label:"超时(秒)",width:"md",min:1,fieldProps:{precision:0}}),_.jsx(Jo,{name:"recovery_strategy",label:"恢复策略",width:"md",options:[{label:"不恢复",value:"none"},{label:"重启进程",value:"restart_process"},{label:"恢复会话",value:"resume_session"}]}),_.jsx(Jo,{name:"inherit_env",label:"继承环境变量",width:"md",mode:"tags",options:[]})]}),_.jsx(MKe,{agentType:i})]})},{key:"env",label:"环境变量",children:_.jsx(PY,{name:"env_ref_entries",label:"环境变量引用",creatorButtonProps:{creatorButtonText:"添加环境变量引用"},children:_.jsxs(ym,{children:[_.jsx(xi,{name:"key",label:"变量名",width:"sm"}),_.jsx(xi,{name:"value",label:"引用",width:"md"})]})})}]})})]})}const xy="********",NKe={gateway:"Gateway 核心",telegram:"Telegram",line:"LINE",wecom:"企业微信",googlechat:"Google Chat",teams:"Microsoft Teams",feishu:"飞书"},_Ke={url:"连接地址",platform:"平台",webhook_path:"Webhook 路径",allowed_users:"允许的用户",allow_all_users:"允许所有用户",rich_messages:"富文本消息",trusted_source_only:"仅信任来源",streaming:"流式输出",streaming_enabled:"启用流式输出",debounce_secs:"防抖时间(秒)",bot_token:"Bot Token",secret_token:"Secret Token",channel_secret:"Channel Secret",channel_access_token:"Channel Access Token",app_secret:"App Secret",verification_token:"Verification Token",encrypt_key:"Encrypt Key",access_token:"Access Token",sa_key_json:"Service Account Key",encoding_aes_key:"Encoding AES Key",token:"Token",secret:"Secret"},jKe=new Set(["allow_all_users","enabled","rich_messages","streaming","streaming_enabled","trusted_source_only"]);function lc(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function vX(e){var n;const t=((n=e.split(".").at(-1))==null?void 0:n.toLowerCase())||"";return["token","secret","password","credential","key"].some(r=>t.includes(r))}function FKe(e,t,n){var a;if(n)return"string";if(typeof t=="boolean")return"boolean";if(typeof t=="number")return"number";if(Array.isArray(t))return t.every(o=>typeof o=="string")?"string_array":"json";if(lc(t))return"json";const r=((a=e.split(".").at(-1))==null?void 0:a.toLowerCase())||"";return jKe.has(r)||r.startsWith("enable_")?"boolean":r.endsWith("_secs")||r.endsWith("_ms")||r.endsWith("_minutes")||r.endsWith("_hours")||r==="port"?"number":r.startsWith("allowed_")||r.endsWith("_list")?"string_array":"string"}function DKe(e){const t=e.split(".").at(-1)||e;return _Ke[t]||t.replaceAll("_"," ")}function mX(e,t,n){if(lc(e)){for(const[r,a]of Object.entries(e))mX(a,t?t+"."+r:r,n);return}t&&n.add(t)}function kKe(e){return lc(e)?e:{}}function lm(e){return JSON.parse(JSON.stringify(e))}function AKe(e){return typeof e=="string"&&e!==xy?e:""}function $B(e){const t=[],n=(r,a)=>{if(typeof r=="number"&&Number.isInteger(r)&&!Number.isSafeInteger(r)){t.push(a||"");return}if(Array.isArray(r)){r.forEach((o,i)=>n(o,a+"["+i+"]"));return}if(lc(r))for(const[o,i]of Object.entries(r))n(i,a?a+"."+o:o)};return n(e,""),t}function LKe(e,t){return t.split(".").reduce((r,a)=>lc(r)?r[a]:void 0,e)}function BKe(e,t,n){const r=lm(e),a=t.split(".");let o=r;for(const i of a.slice(0,-1)){const l=o[i];lc(l)||(o[i]={}),o=o[i]}return o[a.at(-1)]=n,r}function zKe(e,t){const n=new Set;mX(e,"",n),t.forEach(a=>n.add(a.path));const r=new Map(t.map(a=>[a.path,a]));return[...n].sort((a,o)=>a.localeCompare(o)).map(a=>{const o=r.get(a),i=LKe(e,a),l=(o==null?void 0:o.secret)||vX(a),c=a.split(".")[0]||"gateway";return{path:a,key:a.split(".").at(-1)||a,label:DKe(a),section:c,sectionLabel:NKe[c]||c.replaceAll("_"," "),kind:FKe(a,i,l),value:i,applyPolicy:(o==null?void 0:o.apply_policy)||"restart_required",secret:l}})}function wy(e){return Array.isArray(e)?e.map(wy):lc(e)?Object.fromEntries(Object.keys(e).sort().map(t=>[t,wy(e[t])])):e}function HKe(e,t){return JSON.stringify(wy(e))===JSON.stringify(wy(t))}function VKe(e,t){const n=new Set(t.filter(a=>a.secret).map(a=>a.path)),r=(a,o)=>Array.isArray(a)?a.map((i,l)=>r(i,o+"."+l)):lc(a)?Object.fromEntries(Object.entries(a).map(([i,l])=>{const c=o?o+"."+i:i;return n.has(c)||vX(c)?[i,xy]:[i,r(l,c)]})):a;return r(e,"")}function WKe(e){return JSON.parse(e)}const Wv={runtime:{label:"实时生效",color:"green"},new_session:{label:"新会话生效",color:"blue"},restart_required:{label:"重启生效",color:"orange"}};function Kv(e,t){return e instanceof aC||e instanceof Error?e.message:t}function qv(e){return e.errors.slice(0,4).map(t=>t.path+":"+t.message).join(";")}function KKe({value:e,disabled:t,onChange:n}){const r=e===void 0?"":JSON.stringify(e,null,2),[a,o]=s.useState(r),[i,l]=s.useState("");return s.useEffect(()=>{o(r),l("")},[r]),_.jsxs(Jn,{direction:"vertical",size:4,className:"config-json-control",children:[_.jsx(Kr.TextArea,{value:a,disabled:t,autoSize:{minRows:3,maxRows:8},status:i?"error":void 0,onChange:c=>{const u=c.target.value;o(u);try{n(WKe(u)),l("")}catch{l("请输入有效的 JSON。")}}}),i?_.jsx(On.Text,{type:"danger",children:i}):null]})}function qKe({field:e,disabled:t,onChange:n}){return e.kind==="boolean"?_.jsxs("div",{className:"config-switch-control",children:[_.jsx(L4,{checked:e.value===!0,disabled:t,checkedChildren:"开启",unCheckedChildren:"关闭",onChange:n}),_.jsx(On.Text,{type:"secondary",children:e.value===void 0?"未设置,沿用系统默认值":"已显式设置"})]}):e.kind==="number"?_.jsx(ll,{value:typeof e.value=="number"?e.value:void 0,disabled:t,controls:!0,onChange:r=>{r!==null&&n(r)}}):e.kind==="string_array"?_.jsx(dl,{mode:"tags",value:Array.isArray(e.value)?e.value.filter(r=>typeof r=="string"):[],disabled:t,tokenSeparators:[","],placeholder:"输入后按回车添加",onChange:n}):e.kind==="json"?_.jsx(KKe,{value:e.value,disabled:t,onChange:n}):e.secret?_.jsx(Kr.Password,{value:AKe(e.value),disabled:t,visibilityToggle:!1,prefix:_.jsx(rRe,{}),placeholder:e.value===xy?xy:"未设置;输入新值后保存",autoComplete:"new-password",onChange:r=>n(r.target.value)}):_.jsx(Kr,{value:typeof e.value=="string"?e.value:"",disabled:t,allowClear:!0,onChange:r=>n(r.target.value)})}function UKe(){var D;const{message:e}=BR.useApp(),[t,n]=s.useState({}),[r,a]=s.useState({}),[o,i]=s.useState(!1),[l,c]=s.useState(""),[u,d]=s.useState({}),[f,m]=s.useState(),[g,h]=s.useState("idle"),b=sl({queryKey:["config"],queryFn:Jr.config}),p=sl({queryKey:["configStatus"],queryFn:Jr.configStatus}),S=((D=b.data)==null?void 0:D.metadata)||[],C=s.useMemo(()=>zKe(t,S),[t,S]),x=o&&!HKe(t,r),w=g!=="idle",$=F=>{const L=lm(kKe(F));n(L),a(lm(L)),d({}),i(!0),UWe()};s.useEffect(()=>{b.data&&!o&&$(b.data.values)},[b.data,o]),s.useEffect(()=>(gB(x),()=>gB(!1)),[x]),s.useEffect(()=>{if(!x)return;const F=q=>{q.preventDefault(),q.returnValue=""},L=iX(window.history.state),B=window.history.state,K=window.location.href;let W=!1;const V=q=>{if(W){W=!1;return}if(X3())return;q.stopImmediatePropagation();const U=GWe(L,q.state);if(U===void 0){window.history.replaceState(B,"",K);return}W=!0,window.history.go(U)};return window.addEventListener("beforeunload",F),window.addEventListener("popstate",V,!0),()=>{window.removeEventListener("beforeunload",F),window.removeEventListener("popstate",V,!0)}},[x]);const E=s.useMemo(()=>{const F=l.trim().toLowerCase(),L=new Map;for(const B of C){if(F&&!B.path.toLowerCase().includes(F)&&!B.label.toLowerCase().includes(F)&&!B.sectionLabel.toLowerCase().includes(F))continue;const K=L.get(B.section)||[];K.push(B),L.set(B.section,K)}return[...L.entries()].map(([B,K])=>{var W;return{key:B,label:((W=K[0])==null?void 0:W.sectionLabel)||B,fields:K}})},[C,l]),R=C.reduce((F,L)=>(F[L.applyPolicy]+=1,F),{runtime:0,new_session:0,restart_required:0}),I=F=>{d(Object.fromEntries(F.errors.map(L=>[L.path,L.message])))},O=(F,L)=>{n(B=>BKe(B,F,L)),d(B=>{const K={...B};return delete K[F],K}),m(void 0)},T=async()=>{if(!(x&&!window.confirm("刷新会丢弃当前未保存的修改,确定继续吗?"))){h("refreshing"),m(void 0);try{const[F]=await Promise.all([b.refetch(),p.refetch()]);F.data&&$(F.data.values)}finally{h("idle")}}},N=async()=>{const F=$B(t);if(F.length){m({type:"error",title:"配置包含无法安全编辑的大整数",description:F.slice(0,4).join("、")+" 超出浏览器安全整数范围。请先在服务端配置文件中处理这些值。"});return}h("validating");try{const L=await Jr.validateConfig(lm(t));I(L),L.ok?m({type:"success",title:"配置校验通过",description:"当前修改可以安全保存,配置文件尚未写入。"}):m({type:"error",title:"配置校验未通过",description:qv(L)||"请修正标记字段后重试。"})}catch(L){m({type:"error",title:"无法完成配置校验",description:Kv(L,"校验请求失败,请稍后重试。")})}finally{h("idle")}},A=async()=>{h("reloading");try{const F=await Jr.reloadConfig();if(I(F.validation),await p.refetch(),!F.validation.ok){m({type:"error",title:"重载前校验未通过",description:qv(F.validation)});return}m({type:"success",title:"Gateway 已重新加载配置",description:"已即时应用 "+F.runtime.applied_paths.length+" 个字段;仍需重启 "+F.status.pending_restart.length+" 个字段。"}),e.success("配置重载完成")}catch(F){m({type:"warning",title:"配置仍未完成重载",description:Kv(F,"当前进程继续使用上一次运行时配置。"),retryReload:!0})}finally{h("idle")}},k=async()=>{var K;const F=$B(t);if(F.length){m({type:"error",title:"配置未保存",description:F.slice(0,4).join("、")+" 超出浏览器安全整数范围,继续保存可能损坏原值。"});return}const L=lm(t);let B=!1;h("saving"),m(void 0);try{const W=await Jr.saveConfig(L);if(I(W.validation),!W.validation.ok){m({type:"error",title:"配置未保存",description:qv(W.validation)||"后端拒绝了当前修改,原配置文件保持不变。"});return}B=!0,$(VKe(L,S)),h("reloading");const V=await Jr.reloadConfig();I(V.validation);const[q]=await Promise.all([b.refetch(),p.refetch()]);if(q.data&&$(q.data.values),!V.validation.ok){m({type:"warning",title:"配置已保存,但没有完成动态重载",description:qv(V.validation)+"。当前进程继续使用上一次运行时配置;可修正后重新保存。",retryReload:!0});return}m({type:V.status.pending_restart.length?"info":"success",title:"配置已保存并完成动态重载",description:"已即时应用 "+V.runtime.applied_paths.length+" 个字段;"+(V.status.pending_restart.length?V.status.pending_restart.length+" 个字段将在 Gateway 重启后生效。":"没有等待重启的字段。")}),e.success("Gateway 配置已更新")}catch(W){B?(m({type:"warning",title:"配置已保存,但 reload 请求失败",description:Kv(W,"当前进程继续使用上一次运行时配置。")+((K=p.data)!=null&&K.rollback_available?" 服务器已保留上一份配置快照。":""),retryReload:!0}),Promise.all([b.refetch(),p.refetch()])):m({type:"error",title:"配置保存失败",description:Kv(W,"配置文件未确认写入,请保留当前修改并重试。")})}finally{h("idle")}},j=p.data;return _.jsxs(vf,{title:"Gateway 配置",subTitle:"按当前配置结构编辑、校验并动态重载",className:"page-container",extra:[_.jsx(jn,{icon:_.jsx(kU,{}),onClick:T,loading:g==="refreshing",disabled:w&&g!=="refreshing",children:"刷新"},"refresh"),_.jsx(jn,{icon:_.jsx(c3,{}),onClick:N,loading:g==="validating",disabled:!o||w&&g!=="validating",children:"校验"},"validate"),_.jsx(jn,{type:"primary",icon:_.jsx(Yj,{}),onClick:k,loading:g==="saving"||g==="reloading",disabled:!x||w,children:"保存并重载"},"save")],children:[b.isError?_.jsx(ks,{type:"error",showIcon:!0,message:"无法读取 Gateway 配置",description:Kv(b.error,"请检查 Gateway API 后重试。"),action:_.jsx(jn,{onClick:T,children:"重试"}),className:"config-alert"}):null,j!=null&&j.pending_restart.length?_.jsx(ks,{type:"warning",showIcon:!0,message:"存在等待重启生效的配置",description:j.pending_restart.join("、"),className:"config-alert"}):null,j!=null&&j.last_validation&&!j.last_validation.ok?_.jsx(ks,{type:"error",showIcon:!0,message:"最近一次服务端校验未通过",description:qv(j.last_validation),className:"config-alert"}):null,f?_.jsx(ks,{type:f.type,showIcon:!0,closable:!0,message:f.title,description:f.description,action:f.retryReload?_.jsx(jn,{size:"small",icon:_.jsx(Yj,{}),onClick:A,loading:g==="reloading",children:"重试重载"}):void 0,onClose:()=>m(void 0),className:"config-alert"}):null,_.jsxs("section",{className:"config-status-band",children:[_.jsxs("div",{className:"panel-heading",children:[_.jsxs("div",{className:"panel-heading-title",children:[_.jsx("span",{className:"panel-icon blue","aria-hidden":"true",children:_.jsx(vRe,{})}),_.jsxs("div",{children:[_.jsx(On.Title,{level:4,children:"配置状态"}),_.jsx(On.Text,{type:"secondary",children:"运行时加载、校验与回滚能力"})]})]}),_.jsxs(Jn,{wrap:!0,children:[x?_.jsx(Fa,{color:"gold",children:"有未保存修改"}):_.jsx(Fa,{color:"green",children:"已同步"}),_.jsx(Fa,{color:j!=null&&j.rollback_available?"blue":"default",children:j!=null&&j.rollback_available?"有回滚快照":"无回滚快照"})]})]}),_.jsxs(Sa,{column:{xs:1,sm:2,lg:4},size:"small",colon:!1,children:[_.jsx(Sa.Item,{label:"配置路径",children:_.jsx(On.Text,{code:!0,children:(j==null?void 0:j.config_path)||"-"})}),_.jsx(Sa.Item,{label:"最近保存",children:Td(j==null?void 0:j.last_saved_at)}),_.jsx(Sa.Item,{label:"加载哈希",children:_.jsx(On.Text,{copyable:!0,code:!0,children:(j==null?void 0:j.last_loaded_hash)||"-"})}),_.jsx(Sa.Item,{label:"校验状态",children:j!=null&&j.last_validation?_.jsx(Fa,{color:j.last_validation.ok?"green":"red",children:j.last_validation.ok?"通过":"未通过"}):_.jsx(Fa,{children:"暂无记录"})})]}),_.jsx("div",{className:"config-policy-summary",children:Object.keys(Wv).map(F=>_.jsxs("div",{className:"config-policy-item",children:[_.jsx(Fa,{color:Wv[F].color,children:Wv[F].label}),_.jsx(On.Text,{strong:!0,children:R[F]}),_.jsx(On.Text,{type:"secondary",children:"个字段"})]},F))})]}),_.jsxs("section",{className:"config-editor-shell",children:[_.jsxs("div",{className:"config-editor-toolbar",children:[_.jsxs("div",{className:"panel-heading-title",children:[_.jsx("span",{className:"panel-icon dark","aria-hidden":"true",children:_.jsx(xIe,{})}),_.jsxs("div",{children:[_.jsx(On.Title,{level:4,children:"配置编辑器"}),_.jsx(On.Text,{type:"secondary",children:"Secret 字段仅显示脱敏占位;保存时未修改的 Secret 会保留原值。"})]})]}),_.jsx(Kr,{className:"config-search",prefix:_.jsx(g4e,{}),value:l,allowClear:!0,placeholder:"搜索字段或平台",onChange:F=>c(F.target.value)})]}),!o&&b.isLoading?_.jsx("div",{className:"config-loading",children:_.jsxs(Jn,{direction:"vertical",align:"center",children:[_.jsx(Hi,{}),_.jsx(On.Text,{type:"secondary",children:"正在读取配置"})]})}):E.length?_.jsx(Mz,{className:"config-sections",defaultActiveKey:E.slice(0,2).map(F=>F.key),items:E.map(F=>({key:F.key,label:_.jsxs(Jn,{children:[_.jsx(On.Text,{strong:!0,children:F.label}),_.jsxs(Fa,{children:[F.fields.length," 项"]})]}),children:_.jsx("div",{className:"config-field-list",children:F.fields.map(L=>_.jsxs("div",{className:"config-field-row",children:[_.jsxs("div",{className:"config-field-copy",children:[_.jsxs(Jn,{size:6,wrap:!0,children:[_.jsx(On.Text,{strong:!0,children:L.label}),_.jsx(Fa,{color:Wv[L.applyPolicy].color,children:Wv[L.applyPolicy].label}),L.secret?_.jsx(Fa,{color:"red",icon:_.jsx(mI,{}),children:"Secret"}):null]}),_.jsx(On.Text,{code:!0,type:"secondary",children:L.path})]}),_.jsx(Fn.Item,{validateStatus:u[L.path]?"error":void 0,help:u[L.path],children:_.jsx(qKe,{field:L,disabled:w,onChange:B=>O(L.path,B)})})]},L.path))})}))}):_.jsx(xa,{description:l?"没有匹配的配置字段":"当前没有可编辑字段"})]})]})}function GKe(){const e=Fg(),t=Dg(),[n,r]=s.useState(Y3),[a,o]=s.useState("");return s.useEffect(()=>{const i=()=>{o("登录已失效,请重新输入 Admin Token。"),r("")};return window.addEventListener(nR,i),()=>window.removeEventListener(nR,i)},[]),n?e.pathname==="/login"?_.jsx(Rh,{to:mB(e.search),replace:!0}):_.jsx(sOe,{children:_.jsxs(Rl,{element:_.jsx(mKe,{onLogout:()=>{o(""),r("")}}),children:[_.jsx(Rl,{index:!0,element:_.jsx(Rh,{to:"/overview",replace:!0})}),_.jsx(Rl,{path:"/overview",element:_.jsx(xKe,{})}),_.jsx(Rl,{path:"/sessions",element:_.jsx(wKe,{})}),_.jsx(Rl,{path:"/sessions/:id",element:_.jsx($Ke,{})}),_.jsx(Rl,{path:"/profiles",element:_.jsx(TKe,{})}),_.jsx(Rl,{path:"/config",element:_.jsx(UKe,{})}),_.jsx(Rl,{path:"*",element:_.jsx(Rh,{to:"/overview",replace:!0})})]})}):e.pathname!=="/login"?_.jsx(Rh,{to:KWe(e),replace:!0}):_.jsx(hKe,{reason:a,onAuthenticated:i=>{o(""),r(i),t(mB(e.search),{replace:!0})}})}const YKe=new ePe({defaultOptions:{queries:{staleTime:15e3,retry:1,refetchOnWindowFocus:!1},mutations:{retry:0}}});nJ.createRoot(document.getElementById("root")).render(_.jsx(ee.StrictMode,{children:_.jsx(Mt,{locale:IEe,theme:{algorithm:Ei.defaultAlgorithm,token:{colorPrimary:"#1677ff",colorInfo:"#1677ff",colorSuccess:"#1f9d68",colorWarning:"#d98b16",colorError:"#d14343",colorText:"#1b2430",colorTextSecondary:"#5b6b7c",colorTextTertiary:"#8593a3",colorBgLayout:"#f3f5f9",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBorder:"#dbe3ec",colorBorderSecondary:"#e8eef4",colorFillSecondary:"#eef2f7",borderRadius:8,boxShadow:"0 1px 2px 0 rgba(16, 27, 41, 0.04), 0 1px 6px -1px rgba(16, 27, 41, 0.03), 0 2px 4px 0 rgba(16, 27, 41, 0.03)",fontFamily:'Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif'},components:{Button:{controlHeight:34,borderRadius:8},Card:{borderRadiusLG:12,colorBgContainer:"#ffffff"},Table:{headerBg:"#f7f9fc",headerColor:"#45536a",rowHoverBg:"#f5f8ff",borderColor:"#e8eef4",headerSplitColor:"transparent"},Select:{colorBgContainer:"#ffffff",optionSelectedBg:"#e8f1ff"},Drawer:{colorBgElevated:"#ffffff"},DatePicker:{colorBgElevated:"#ffffff"},Tooltip:{colorBgSpotlight:"#1b2430"}}},children:_.jsx(BR,{children:_.jsx(tPe,{client:YKe,children:_.jsx(dOe,{children:_.jsx(GKe,{})})})})})}))});export default XKe(); + `).concat(t.antCls,"-menu-submenu-title:hover"),z({color:(F=t.layout)===null||F===void 0||(F=F.sider)===null||F===void 0?void 0:F.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(L=t.layout)===null||L===void 0||(L=L.sider)===null||L===void 0?void 0:L.colorTextMenuActive}))))},KHe=function(t){var n,r,a,o;return z(z({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,z(z(z(z({},"& ".concat(t.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(t.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(a=t.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(t.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(t.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(o=t.layout)===null||o===void 0?void 0:o.bgLayout}))};function qHe(e){return En("ProLayout",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[KHe(n),WHe(n)]})}function UHe(e){if(!e||e==="/")return["/"];var t=e.split("/").filter(function(n){return n});return t.map(function(n,r){return"/".concat(t.slice(0,r+1).join("/"))})}var GHe=function(){var t;return typeof process>"u"?fo:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||fo},YHe=function(t,n,r){var a=t,o=a.breadcrumbName,i=a.title,l=a.path,c=r.findIndex(function(u){return u.linkPath===t.path})===r.length-1;return c?N.jsx("span",{children:i||o}):N.jsx("span",{onClick:l?function(){return location.href=l}:void 0,children:i||o})},XHe=function(t,n){var r=n.formatMessage,a=n.menu;return t.locale&&r&&(a==null?void 0:a.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},QHe=function(t,n){var r=t.get(n);if(!r){var a=Array.from(t.keys())||[],o=a.find(function(i){try{return i!=null&&i.startsWith("http")?!1:oR.match(i.replace("?",""))(n)}catch(l){return console.log("path",i,l),!1}});o&&(r=t.get(o))}return r||{path:""}},JHe=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},ZHe=function(t,n,r){var a=UHe(t==null?void 0:t.pathname),o=a.map(function(i){var l=QHe(n,i),c=XHe(l,r),u=l.hideInBreadcrumb;return c&&!u?{linkPath:i,breadcrumbName:c,title:c,component:l.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(i){return i&&i.linkPath});return o},eVe=function(t){var n=JHe(t),r=n.location,a=n.breadcrumbMap;return r&&r.pathname&&a?ZHe(r,a,t):[]},tVe=function(t,n){var r=t.breadcrumbRender,a=t.itemRender,o=n.breadcrumbProps||{},i=o.minLength,l=i===void 0?2:i,c=eVe(t),u=function(m){for(var g=a||YHe,h=arguments.length,b=new Array(h>1?h-1:0),p=1;p-1?{items:d,itemRender:u}:{routes:d,itemRender:u}};function nVe(e){return ke(e).reduce(function(t,n){var r=ce(n,2),a=r[0],o=r[1];return t[a]=o,t},{})}var rVe=function e(t,n,r,a){var o=_He(t,(n==null?void 0:n.locale)||!1,r,!0),i=o.menuData,l=o.breadcrumb;return a?e(a(i),n,r,void 0):{breadcrumb:nVe(l),breadcrumbMap:l,menuData:i}},aVe=function(t){var n=s.useState({}),r=ce(n,2),a=r[0],o=r[1];return s.useEffect(function(){o(Fr({layout:it(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),a},oVe=["id","defaultMessage"],iVe=["fixSiderbar","navTheme","layout"],hB=0,lVe=function(t,n){var r;return t.headerRender===!1||t.pure?null:N.jsx(Mze,P(P({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},sVe=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(P({},t),N.jsx(G9e,{})):null},cVe=function(t,n){var r,a=t.layout,o=t.isMobile,i=t.selectedKeys,l=t.openKeys,c=t.splitMenus,u=t.suppressSiderWhenMenuEmpty,d=t.menuRender;if(t.menuRender===!1||t.pure)return null;var f=t.menuData;if(c&&(l!==!1||a==="mix")&&!o){var m=i||n,g=ce(m,1),h=g[0];if(h){var b;f=((b=t.menuData)===null||b===void 0||(b=b.find(function(x){return x.key===h}))===null||b===void 0?void 0:b.children)||[]}else f=[]}var p=dC(f||[]);if(p&&(p==null?void 0:p.length)<1&&(c||u))return null;if(a==="top"&&!o){var S;return N.jsx(pB,P(P({matchMenuKeys:n},t),{},{hide:!0,stylish:(S=t.stylish)===null||S===void 0?void 0:S.sider}))}var C=N.jsx(pB,P(P({matchMenuKeys:n},t),{},{menuData:p,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return d?d(t,C):C},uVe=function(t,n){var r=n.pageTitleRender,a=uB(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var o=r(t,a.title,a);if(typeof o=="string")return uB(P(P({},a),{},{title:o}));Kn(typeof o=="string","pro-layout: renderPageTitle return value should be a string")}return a},dVe=function(t,n,r){return t?n?64:r:0},fVe=function(t){var n,r,a,o,i,l,c,u,d,f,m,g,h,b,p=t||{},S=p.children,C=p.onCollapse,x=p.location,w=x===void 0?{pathname:"/"}:x,$=p.contentStyle,E=p.route,R=p.defaultCollapsed,I=p.style,O=p.siderWidth,T=p.menu,_=p.siderMenuType,k=p.isChildrenLayout,A=p.menuDataRender,j=p.actionRef,D=p.bgLayoutImgList,F=p.formatMessage,L=p.loading,B=s.useMemo(function(){return O||(t.layout==="mix"?215:256)},[t.layout,O]),K=s.useContext(Rt.ConfigContext),W=(n=t.prefixCls)!==null&&n!==void 0?n:K.getPrefixCls("pro"),V=Nt(!1,{value:T==null?void 0:T.loading,onChange:T==null?void 0:T.onLoadingChange}),q=ce(V,2),U=q[0],G=q[1],Y=s.useState(function(){return hB+=1,"pro-layout-".concat(hB)}),J=ce(Y,1),Q=J[0],Z=s.useCallback(function(Kt){var Ut=Kt.id,kt=Kt.defaultMessage,Pt=Ue(Kt,oVe);if(F)return F(P({id:Ut,defaultMessage:kt},Pt));var Lt=Hze();return Lt[Ut]?Lt[Ut]:kt},[F]),ne=P3([Q,T==null?void 0:T.params],(function(){var Kt=gn(ht().mark(function Ut(kt){var Pt,Lt,nt,St;return ht().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return Lt=ce(kt,2),nt=Lt[1],G(!0),qe.next=4,T==null||(Pt=T.request)===null||Pt===void 0?void 0:Pt.call(T,nt||{},(E==null?void 0:E.children)||(E==null?void 0:E.routes)||[]);case 4:return St=qe.sent,G(!1),qe.abrupt("return",St);case 7:case"end":return qe.stop()}},Ut)}));return function(Ut){return Kt.apply(this,arguments)}})(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),ae=ne.data,le=ne.mutate,re=ne.isLoading;s.useEffect(function(){G(re)},[re]);var fe=E3(),ue=fe.cache;s.useEffect(function(){return function(){ue instanceof Map&&ue.delete(Q)}},[]);var de=s.useMemo(function(){return rVe(ae||(E==null?void 0:E.children)||(E==null?void 0:E.routes)||[],T,Z,A)},[Z,T,A,ae,E==null?void 0:E.children,E==null?void 0:E.routes]),ie=de||{},se=ie.breadcrumb,ve=ie.breadcrumbMap,he=ie.menuData,Ce=he===void 0?[]:he;j&&T!==null&&T!==void 0&&T.request&&(j.current={reload:function(){le()}});var pe=s.useMemo(function(){return AHe(w.pathname||"/",Ce||[])},[w.pathname,Ce]),Se=s.useMemo(function(){return Array.from(new Set(pe.map(function(Kt){return Kt.key||Kt.path||""})))},[pe]),ge=pe[pe.length-1]||{},ye=aVe(ge),xe=P(P({},t),ye),$e=xe.fixSiderbar;xe.navTheme;var He=xe.layout,Te=Ue(xe,iVe),Re=H5e(),Fe=s.useMemo(function(){return(Re==="sm"||Re==="xs")&&!t.disableMobile},[Re,t.disableMobile]),je=He!=="top"&&!Fe,Ee=Nt(function(){return R!==void 0?R:!!(Fe||Re==="md")},{value:t.collapsed,onChange:C}),Le=ce(Ee,2),Pe=Le[0],ze=Le[1],Oe=nn(P(P(P({prefixCls:W},t),{},{siderWidth:B},ye),{},{formatMessage:Z,breadcrumb:se,menu:P(P({},T),{},{type:_||(T==null?void 0:T.type),loading:U}),layout:He}),["className","style","breadcrumbRender"]),we=uVe(P(P({pathname:w.pathname},Oe),{},{breadcrumbMap:ve}),t),_e=tVe(P(P({},Oe),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:ve}),t),Be=cVe(P(P({},Oe),{},{menuData:Ce,onCollapse:ze,isMobile:Fe,collapsed:Pe}),Se),Qe=lVe(P(P({},Oe),{},{children:null,hasSiderMenu:!!Be,menuData:Ce,isMobile:Fe,collapsed:Pe,onCollapse:ze}),Se),lt=sVe(P({isMobile:Fe,collapsed:Pe},Oe)),Ke=s.useContext(Zm),et=Ke.isChildrenLayout,st=k!==void 0?k:et,Ze="".concat(W,"-layout"),vt=qHe(Ze),Ot=vt.wrapSSR,xt=vt.hashId,mt=oe(t.className,xt,"ant-design-pro",Ze,z(z(z(z(z({},"screen-".concat(Re),Re),"".concat(Ze,"-top-menu"),He==="top"),"".concat(Ze,"-is-children"),st),"".concat(Ze,"-fix-siderbar"),$e),"".concat(Ze,"-").concat(He),He)),yt=dVe(!!je,Pe,B),bt={position:"relative"};(st||$&&$.minHeight)&&(bt.minHeight=0),s.useEffect(function(){var Kt;(Kt=t.onPageChange)===null||Kt===void 0||Kt.call(t,t.location)},[w.pathname,(r=w.pathname)===null||r===void 0?void 0:r.search]);var tt=s.useState(!1),Ye=ce(tt,2),Ne=Ye[0],We=Ye[1],rt=s.useState(0),ct=ce(rt,2),At=ct[0],pt=ct[1];zTe(we,t.title||!1);var ft=s.useContext(qr),ut=ft.token,Xt=s.useMemo(function(){return D&&D.length>0?D==null?void 0:D.map(function(Kt,Ut){return N.jsx("img",{src:Kt.src,style:P({position:"absolute"},Kt)},Ut)}):null},[D]);return Ot(N.jsx(Zm.Provider,{value:P(P({},Oe),{},{breadcrumb:_e,menuData:Ce,isMobile:Fe,collapsed:Pe,hasPageContainer:At,setHasPageContainer:pt,isChildrenLayout:!0,title:we.pageName,hasSiderMenu:!!Be,hasHeader:!!Qe,siderWidth:yt,hasFooter:!!lt,hasFooterToolbar:Ne,setHasFooterToolbar:We,pageTitleInfo:we,matchMenus:pe,matchMenuKeys:Se,currentMenu:ge}),children:t.pure?N.jsx(N.Fragment,{children:S}):N.jsxs("div",{className:mt,children:[Xt||(a=ut.layout)!==null&&a!==void 0&&a.bgLayout?N.jsx("div",{className:oe("".concat(Ze,"-bg-list"),xt),children:Xt}):null,N.jsxs(ci,{style:P({minHeight:"100%",flexDirection:Be?"row":void 0},I),children:[N.jsx(Rt,{theme:{hashed:Nd(),token:{controlHeightLG:((o=ut.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.menuHeight)||(ut==null?void 0:ut.controlHeightLG)},components:{Menu:IG({colorItemBg:((i=ut.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorMenuBackground)||"transparent",colorSubItemBg:((l=ut.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorMenuBackground)||"transparent",radiusItem:ut.borderRadius,colorItemBgSelected:((c=ut.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemSelected)||(ut==null?void 0:ut.colorBgTextHover),colorItemBgHover:((u=ut.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemHover)||(ut==null?void 0:ut.colorBgTextHover),colorItemBgActive:((d=ut.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemActive)||(ut==null?void 0:ut.colorBgTextActive),colorItemBgSelectedHorizontal:((f=ut.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(ut==null?void 0:ut.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((m=ut.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenu)||(ut==null?void 0:ut.colorTextSecondary),colorItemTextHover:((g=ut.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((h=ut.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:ut==null?void 0:ut.colorBgElevated,subMenuItemBg:ut==null?void 0:ut.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:ut==null?void 0:ut.colorBgElevated})}},children:Be}),N.jsxs("div",{style:bt,className:"".concat(Ze,"-container ").concat(xt).trim(),children:[Qe,N.jsx(LHe,P(P({hasPageContainer:At,isChildrenLayout:st},Te),{},{hasHeader:!!Qe,prefixCls:Ze,style:$,children:L?N.jsx(aX,{}):S})),lt,Ne&&N.jsx("div",{className:"".concat(Ze,"-has-footer"),style:{height:64,marginBlockStart:(b=ut.layout)===null||b===void 0||(b=b.pageContainer)===null||b===void 0?void 0:b.paddingBlockPageContainerContent}})]})]})]})}))},vVe=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return N.jsx(Rt,{theme:n?{token:{colorPrimary:n}}:void 0,children:N.jsx(Ag,P(P({},r),{},{token:t.token,prefixCls:t.prefixCls,children:N.jsx(fVe,P(P({logo:N.jsx(BHe,{})},oX),{},{location:Su()?window.location:void 0},t))}))})},mVe=DG(Object.keys,Object),gVe=Object.prototype,pVe=gVe.hasOwnProperty;function gX(e){if(!G1(e))return mVe(e);var t=[];for(var n in Object(e))pVe.call(e,n)&&n!="constructor"&&t.push(n);return t}var uR=$u(ml,"DataView"),dR=$u(ml,"Promise"),fR=$u(ml,"Set"),vR=$u(ml,"WeakMap"),bB="[object Map]",hVe="[object Object]",yB="[object Promise]",CB="[object Set]",SB="[object WeakMap]",xB="[object DataView]",bVe=wu(uR),yVe=wu(qm),CVe=wu(dR),SVe=wu(fR),xVe=wu(vR),Ml=Lf;(uR&&Ml(new uR(new ArrayBuffer(1)))!=xB||qm&&Ml(new qm)!=bB||dR&&Ml(dR.resolve())!=yB||fR&&Ml(new fR)!=CB||vR&&Ml(new vR)!=SB)&&(Ml=function(e){var t=Lf(e),n=t==hVe?e.constructor:void 0,r=n?wu(n):"";if(r)switch(r){case bVe:return xB;case yVe:return bB;case CVe:return yB;case SVe:return CB;case xVe:return SB}return t});var wVe="[object Map]",$Ve="[object Set]",EVe=Object.prototype,PVe=EVe.hasOwnProperty;function OVe(e){if(e==null)return!0;if(Hg(e)&&(lu(e)||typeof e=="string"||typeof e.splice=="function"||Gm(e)||Y1(e)||my(e)))return!e.length;var t=Ml(e);if(t==wVe||t==$Ve)return!e.size;if(G1(e))return!gX(e).length;for(var n in e)if(PVe.call(e,n))return!1;return!0}var IVe="__lodash_hash_undefined__";function RVe(e){return this.__data__.set(e,IVe),this}function MVe(e){return this.__data__.has(e)}function $y(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Eu;++tl))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,m=!0,g=n&jVe?new $y:void 0;for(o.set(e,t),o.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:{},l=s.useRef(),c=s.useRef(null),u=s.useRef(),d=s.useRef(),f=s.useState(""),m=ce(f,2),g=m[0],h=m[1],b=s.useRef([]),p=Nt(function(){return i.size||i.defaultSize||"middle"},{value:i.size,onChange:i.onSizeChange}),S=ce(p,2),C=S[0],x=S[1],w=s.useMemo(function(){var _,k;if(i!=null&&(_=i.columnsState)!==null&&_!==void 0&&_.defaultValue)return i.columnsState.defaultValue;var A={};return(k=i.columns)===null||k===void 0||k.forEach(function(j,D){var F=j.key,L=j.dataIndex,B=j.fixed,K=j.disable,W=Wf(F??L,D);W&&(A[W]={show:!0,fixed:B,disable:K})}),A},[i.columns]),$=Nt(function(){var _,k,A=i.columnsState||{},j=A.persistenceType,D=A.persistenceKey;if(D&&j&&typeof window<"u"){var F=window[j];try{var L=F==null?void 0:F.getItem(D);if(L){var B;if(i!=null&&(B=i.columnsState)!==null&&B!==void 0&&B.defaultValue){var K;return UI({},i==null||(K=i.columnsState)===null||K===void 0?void 0:K.defaultValue,JSON.parse(L))}return JSON.parse(L)}}catch(W){console.warn(W)}}return i.columnsStateMap||((_=i.columnsState)===null||_===void 0?void 0:_.value)||((k=i.columnsState)===null||k===void 0?void 0:k.defaultValue)||w},{value:((e=i.columnsState)===null||e===void 0?void 0:e.value)||i.columnsStateMap,onChange:((t=i.columnsState)===null||t===void 0?void 0:t.onChange)||i.onColumnsStateChange}),E=ce($,2),R=E[0],I=E[1];s.useEffect(function(){var _=i.columnsState||{},k=_.persistenceType,A=_.persistenceKey;if(A&&k&&typeof window<"u"){var j=window[k];try{var D=j==null?void 0:j.getItem(A);if(D){var F;if(i!=null&&(F=i.columnsState)!==null&&F!==void 0&&F.defaultValue){var L;I(UI({},i==null||(L=i.columnsState)===null||L===void 0?void 0:L.defaultValue,JSON.parse(D)))}else I(JSON.parse(D))}else I(w)}catch(B){console.warn(B)}}},[(n=i.columnsState)===null||n===void 0?void 0:n.persistenceKey,(r=i.columnsState)===null||r===void 0?void 0:r.persistenceType,w]),wa(!i.columnsStateMap,"columnsStateMap已经废弃,请使用 columnsState.value 替换"),wa(!i.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var O=s.useCallback(function(){var _=i.columnsState||{},k=_.persistenceType,A=_.persistenceKey;if(!(!A||!k||typeof window>"u")){var j=window[k];try{j==null||j.removeItem(A)}catch(D){console.warn(D)}}},[i.columnsState]);s.useEffect(function(){var _,k;if(!(!((_=i.columnsState)!==null&&_!==void 0&&_.persistenceKey)||!((k=i.columnsState)!==null&&k!==void 0&&k.persistenceType))&&!(typeof window>"u")){var A=i.columnsState,j=A.persistenceType,D=A.persistenceKey,F=window[j];try{F==null||F.setItem(D,JSON.stringify(R))}catch(L){console.warn(L),O()}}},[(a=i.columnsState)===null||a===void 0?void 0:a.persistenceKey,R,(o=i.columnsState)===null||o===void 0?void 0:o.persistenceType]);var T={action:l.current,setAction:function(k){l.current=k},sortKeyColumns:b.current,setSortKeyColumns:function(k){b.current=k},propsRef:d,columnsMap:R,keyWords:g,setKeyWords:function(k){return h(k)},setTableSize:x,tableSize:C,prefixName:u.current,setPrefixName:function(k){u.current=k},setColumnsMap:I,columns:i.columns,rootDomRef:c,clearPersistenceStorage:O,defaultColumnKeyMap:w};return Object.defineProperty(T,"prefixName",{get:function(){return u.current}}),Object.defineProperty(T,"sortKeyColumns",{get:function(){return b.current}}),Object.defineProperty(T,"action",{get:function(){return l.current}}),T}var oc=s.createContext({}),yWe=function(t){var n=bWe(t.initValue);return N.jsx(oc.Provider,{value:n,children:t.children})},CWe=function(t){return z({},t.componentCls,{marginBlockEnd:16,backgroundColor:ao(t.colorTextBase,.02),borderRadius:t.borderRadius,border:"none","&-container":{paddingBlock:t.paddingSM,paddingInline:t.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:t.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};function SWe(e){return En("ProTableAlert",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[CWe(n)]})}var xWe=function(t){var n=t.intl,r=t.onCleanSelected;return[N.jsx("a",{onClick:r,children:n.getMessage("alert.clear","清空")},"0")]};function wWe(e){var t=e.selectedRowKeys,n=t===void 0?[]:t,r=e.onCleanSelected,a=e.alwaysShowAlert,o=e.selectedRows,i=e.alertInfoRender,l=i===void 0?function(x){var w=x.intl;return N.jsxs(qn,{children:[w.getMessage("alert.selected","已选择"),n.length,w.getMessage("alert.item","项"),"  "]})}:i,c=e.alertOptionRender,u=c===void 0?xWe:c,d=An(),f=u&&u({onCleanSelected:r,selectedRowKeys:n,selectedRows:o,intl:d}),m=s.useContext(Rt.ConfigContext),g=m.getPrefixCls,h=g("pro-table-alert"),b=SWe(h),p=b.wrapSSR,S=b.hashId;if(l===!1)return null;var C=l({intl:d,selectedRowKeys:n,selectedRows:o,onCleanSelected:r});return C===!1||n.length<1&&!a?null:p(N.jsx("div",{className:"".concat(h," ").concat(S).trim(),children:N.jsx("div",{className:"".concat(h,"-container ").concat(S).trim(),children:N.jsxs("div",{className:"".concat(h,"-info ").concat(S).trim(),children:[N.jsx("div",{className:"".concat(h,"-info-content ").concat(S).trim(),children:C}),f?N.jsx("div",{className:"".concat(h,"-info-option ").concat(S).trim(),children:f}):null]})})}))}function $We(e){var t=e.replace(/[A-Z]/g,function(n){return"-".concat(n.toLowerCase())});return t.startsWith("-")&&(t=t.slice(1)),t}var EWe=function(t,n){return!t&&n!==!1?(n==null?void 0:n.filterType)==="light"?"LightFilter":"QueryFilter":"Form"},PWe=function(t,n,r){return!t&&r==="LightFilter"?nn(P({},n),["labelWidth","defaultCollapsed","filterType"]):t?{}:nn(P({labelWidth:n?n==null?void 0:n.labelWidth:void 0,defaultCollapsed:!0},n),["filterType"])},OWe=function(t,n){return t?nn(n,["ignoreRules"]):P({ignoreRules:!0},n)},IWe=function(t){var n=t.onSubmit,r=t.formRef,a=t.dateFormatter,o=a===void 0?"string":a,i=t.type,l=t.columns,c=t.action,u=t.ghost,d=t.manualRequest,f=t.onReset,m=t.submitButtonLoading,g=t.search,h=t.form,b=t.bordered,p=s.useContext(qr),S=p.hashId,C=i==="form",x=(function(){var _=gn(ht().mark(function k(A,j){return ht().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:n&&n(A,j);case 1:case"end":return F.stop()}},k)}));return function(A,j){return _.apply(this,arguments)}})(),w=s.useContext(Rt.ConfigContext),$=w.getPrefixCls,E=s.useMemo(function(){return l.filter(function(_){return!(_===vo.EXPAND_COLUMN||_===vo.SELECTION_COLUMN||(_.hideInSearch||_.search===!1)&&i!=="form"||i==="form"&&_.hideInForm)}).map(function(_){var k,A=!_.valueType||["textarea","jsonCode","code"].includes(_==null?void 0:_.valueType)&&i==="table"?"text":_==null?void 0:_.valueType,j=(_==null?void 0:_.key)||(_==null||(k=_.dataIndex)===null||k===void 0?void 0:k.toString());return P(P(P({},_),{},{width:void 0},_.search&&it(_.search)==="object"?_.search:{}),{},{valueType:A,proFieldProps:P(P({},_.proFieldProps),{},{proFieldKey:j?"table-field-".concat(j):void 0})})})},[l,i]),R=$("pro-table-search"),I=$("pro-table-form"),O=s.useMemo(function(){return EWe(C,g)},[g,C]),T=s.useMemo(function(){return{submitter:{submitButtonProps:{loading:m}}}},[m]);return N.jsx("div",{className:oe(S,z(z(z(z(z(z(z(z(z({},$("pro-card"),!0),"".concat($("pro-card"),"-border"),!!b),"".concat($("pro-card"),"-bordered"),!!b),"".concat($("pro-card"),"-ghost"),!!u),R,!0),I,C),$("pro-table-search-".concat($We(O))),!0),"".concat(R,"-ghost"),u),g==null?void 0:g.className,g!==!1&&(g==null?void 0:g.className))),children:N.jsx(QY,P(P(P(P({layoutType:O,columns:E,type:i},T),PWe(C,g,O)),OWe(C,h||{})),{},{formRef:r,action:c,dateFormatter:o,onInit:function(k,A){if(r.current=A,i!=="form"){var j,D,F,L=(j=c.current)===null||j===void 0?void 0:j.pageInfo,B=k,K=B.current,W=K===void 0?L==null?void 0:L.current:K,V=B.pageSize,q=V===void 0?L==null?void 0:L.pageSize:V;if((D=c.current)===null||D===void 0||(F=D.setPageInfo)===null||F===void 0||F.call(D,P(P({},L),{},{current:parseInt(W,10),pageSize:parseInt(q,10)})),d)return;x(k,!0)}},onReset:function(k){f==null||f(k)},onFinish:function(k){x(k,!1)},initialValues:h==null?void 0:h.initialValues}))})},RWe=(function(e){mo(n,e);var t=ko(n);function n(){var r;ir(this,n);for(var a=arguments.length,o=new Array(a),i=0;i span":{"> span.anticon":{color:t.colorPrimary}},"> span + span":{marginInlineStart:4}}}))};function TWe(e){return En("ColumnSetting",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[MWe(n)]})}var NWe=["key","dataIndex","children"],_We=["disabled"],aP=function(t){var n=t.title,r=t.show,a=t.children,o=t.columnKey,i=t.fixed,l=s.useContext(oc),c=l.columnsMap,u=l.setColumnsMap;return r?N.jsx(Bn,{title:n,children:N.jsx("span",{onClick:function(f){f.stopPropagation(),f.preventDefault();var m=c[o]||{},g=P(P({},c),{},z({},o,P(P({},m),{},{fixed:i})));u(g)},children:a})}):null},jWe=function(t){var n=t.columnKey,r=t.isLeaf,a=t.title,o=t.className,i=t.fixed,l=t.showListItemOption,c=An(),u=s.useContext(qr),d=u.hashId,f=N.jsxs("span",{className:"".concat(o,"-list-item-option ").concat(d).trim(),children:[N.jsx(aP,{columnKey:n,fixed:"left",title:c.getMessage("tableToolBar.leftPin","固定在列首"),show:i!=="left",children:N.jsx(Pue,{})}),N.jsx(aP,{columnKey:n,fixed:void 0,title:c.getMessage("tableToolBar.noPin","不固定"),show:!!i,children:N.jsx(lTe,{})}),N.jsx(aP,{columnKey:n,fixed:"right",title:c.getMessage("tableToolBar.rightPin","固定在列尾"),show:i!=="right",children:N.jsx(aTe,{})})]});return N.jsxs("span",{className:"".concat(o,"-list-item ").concat(d).trim(),children:[N.jsx("div",{className:"".concat(o,"-list-item-title ").concat(d).trim(),children:a}),l&&!r?f:null]},n)},oP=function(t){var n,r,a,o=t.list,i=t.draggable,l=t.checkable,c=t.showListItemOption,u=t.className,d=t.showTitle,f=d===void 0?!0:d,m=t.title,g=t.listHeight,h=g===void 0?280:g,b=s.useContext(qr),p=b.hashId,S=s.useContext(oc),C=S.columnsMap,x=S.setColumnsMap,w=S.sortKeyColumns,$=S.setSortKeyColumns,E=o&&o.length>0,R=s.useMemo(function(){if(!E)return{};var _=[],k=new Map,A=function j(D,F){return D.map(function(L){var B,K=L.key;L.dataIndex;var W=L.children,V=Ue(L,NWe),q=Wf(K,[F==null?void 0:F.columnKey,V.index].filter(Boolean).join("-")),U=C[q||"null"]||{show:!0};U.show!==!1&&!W&&_.push(q);var G=P(P({key:q},nn(V,["className"])),{},{selectable:!1,disabled:U.disable===!0,disableCheckbox:typeof U.disable=="boolean"?U.disable:(B=U.disable)===null||B===void 0?void 0:B.checkbox,isLeaf:F?!0:void 0});if(W){var Y;G.children=j(W,P(P({},U),{},{columnKey:q})),(Y=G.children)!==null&&Y!==void 0&&Y.every(function(J){return _==null?void 0:_.includes(J.key)})&&_.push(q)}return k.set(K,G),G})};return{list:A(o),keys:_,map:k}},[C,o,E]),I=Hn(function(_,k,A){var j=P({},C),D=ke(w),F=D.findIndex(function(W){return W===_}),L=D.findIndex(function(W){return W===k}),B=A>=F;if(!(F<0)){var K=D[F];D.splice(F,1),A===0?D.unshift(K):D.splice(B?L:L+1,0,K),D.forEach(function(W,V){j[W]=P(P({},j[W]||{}),{},{order:V})}),x(j),$(D)}}),O=Hn(function(_){var k=P({},C),A=function j(D){var F,L=P({},k[D]);if(L.show=_.checked,(F=R.map)!==null&&F!==void 0&&(F=F.get(D))!==null&&F!==void 0&&F.children){var B;(B=R.map.get(D))===null||B===void 0||(B=B.children)===null||B===void 0||B.forEach(function(K){return j(K.key)})}k[D]=L};A(_.node.key),x(P({},k))});if(!E)return null;var T=N.jsx(k1,{itemHeight:24,draggable:i&&!!((n=R.list)!==null&&n!==void 0&&n.length)&&((r=R.list)===null||r===void 0?void 0:r.length)>1,checkable:l,onDrop:function(k){var A=k.node.key,j=k.dragNode.key,D=k.dropPosition,F=k.dropToGap,L=D===-1||!F?D+1:D;I(j,A,L)},blockNode:!0,onCheck:function(k,A){return O(A)},checkedKeys:R.keys,showLine:!1,titleRender:function(k){var A=P(P({},k),{},{children:void 0});if(!A.title)return null;var j=Aa(A.title,A),D=N.jsx(an.Text,{style:{width:80},ellipsis:{tooltip:j},children:j});return N.jsx(jWe,P(P({className:u},nn(A,["key"])),{},{showListItemOption:c,title:D,columnKey:A.key}))},height:h,treeData:(a=R.list)===null||a===void 0?void 0:a.map(function(_){_.disabled;var k=Ue(_,_We);return k})});return N.jsxs(N.Fragment,{children:[f&&N.jsx("span",{className:"".concat(u,"-list-title ").concat(p).trim(),children:m}),T]})},FWe=function(t){var n=t.localColumns,r=t.className,a=t.draggable,o=t.checkable,i=t.showListItemOption,l=t.listsHeight,c=s.useContext(qr),u=c.hashId,d=[],f=[],m=[],g=An();n.forEach(function(p){if(!p.hideInSetting){var S=p.fixed;if(S==="left"){f.push(p);return}if(S==="right"){d.push(p);return}m.push(p)}});var h=d&&d.length>0,b=f&&f.length>0;return N.jsxs("div",{className:oe("".concat(r,"-list"),u,z({},"".concat(r,"-list-group"),h||b)),children:[N.jsx(oP,{title:g.getMessage("tableToolBar.leftFixedTitle","固定在左侧"),list:f,draggable:a,checkable:o,showListItemOption:i,className:r,listHeight:l}),N.jsx(oP,{list:m,draggable:a,checkable:o,showListItemOption:i,title:g.getMessage("tableToolBar.noFixedTitle","不固定"),showTitle:b||h,className:r,listHeight:l}),N.jsx(oP,{title:g.getMessage("tableToolBar.rightFixedTitle","固定在右侧"),list:d,draggable:a,checkable:o,showListItemOption:i,className:r,listHeight:l})]})};function DWe(e){var t,n,r,a,o=s.useRef(null),i=s.useContext(oc),l=e.columns,c=e.checkedReset,u=c===void 0?!0:c,d=i.columnsMap,f=i.setColumnsMap,m=i.clearPersistenceStorage;s.useEffect(function(){var O;if((O=i.propsRef.current)!==null&&O!==void 0&&(O=O.columnsState)!==null&&O!==void 0&&O.value){var T;o.current=JSON.parse(JSON.stringify(((T=i.propsRef.current)===null||T===void 0||(T=T.columnsState)===null||T===void 0?void 0:T.value)||{}))}},[]);var g=Hn(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,T={},_=function k(A){A.forEach(function(j){var D=j.key,F=j.fixed,L=j.index,B=j.children,K=j.disable,W=Wf(D,L);if(W){var V,q;T[W]={show:K?(V=d[W])===null||V===void 0?void 0:V.show:O,fixed:F,disable:K,order:(q=d[W])===null||q===void 0?void 0:q.order}}B&&k(B)})};_(l),f(T)}),h=Hn(function(O){O.target.checked?g():g(!1)}),b=Hn(function(){var O;m==null||m(),f(((O=i.propsRef.current)===null||O===void 0||(O=O.columnsState)===null||O===void 0?void 0:O.defaultValue)||o.current||i.defaultColumnKeyMap)}),p=Object.values(d).filter(function(O){return!O||O.show===!1}),S=p.length>0&&p.length!==l.length,C=An(),x=s.useContext(Rt.ConfigContext),w=x.getPrefixCls,$=w("pro-table-column-setting"),E=TWe($),R=E.wrapSSR,I=E.hashId;return R(N.jsx(Vi,{arrow:!1,title:N.jsxs("div",{className:"".concat($,"-title ").concat(I).trim(),children:[e.checkable===!1?N.jsx("div",{}):N.jsx(Ys,{indeterminate:S,checked:p.length===0&&p.length!==l.length,onChange:function(T){h(T)},children:C.getMessage("tableToolBar.columnDisplay","列展示")}),u?N.jsx("a",{onClick:b,className:"".concat($,"-action-rest-button ").concat(I).trim(),children:C.getMessage("tableToolBar.reset","重置")}):null,e!=null&&e.extra?N.jsx(qn,{size:12,align:"center",children:e.extra}):null]}),overlayClassName:"".concat($,"-overlay ").concat(I).trim(),trigger:"click",placement:"bottomRight",content:N.jsx(FWe,{checkable:(t=e.checkable)!==null&&t!==void 0?t:!0,draggable:(n=e.draggable)!==null&&n!==void 0?n:!0,showListItemOption:(r=e.showListItemOption)!==null&&r!==void 0?r:!0,className:$,localColumns:l,listsHeight:e.listsHeight}),children:e.children||N.jsx(Bn,{title:C.getMessage("tableToolBar.columnSetting","列设置"),children:(a=e.settingIcon)!==null&&a!==void 0?a:N.jsx(tTe,{})})}))}var kWe=function(t){var n=s.useContext(qr),r=n.hashId,a=t.items,o=a===void 0?[]:a,i=t.type,l=i===void 0?"inline":i,c=t.prefixCls,u=t.activeKey,d=t.defaultActiveKey,f=Nt(u||d,{value:u,onChange:t.onChange}),m=ce(f,2),g=m[0],h=m[1];if(o.length<1)return null;var b=o.find(function(S){return S.key===g})||o[0];if(l==="inline")return N.jsx("div",{className:oe("".concat(c,"-menu"),"".concat(c,"-inline-menu"),r),children:o.map(function(S,C){return N.jsx("div",{onClick:function(){h(S.key)},className:oe("".concat(c,"-inline-menu-item"),b.key===S.key?"".concat(c,"-inline-menu-item-active"):void 0,r),children:S.label},S.key||C)})});if(l==="tab")return N.jsx(Bi,{items:o.map(function(S){var C;return P(P({},S),{},{key:(C=S.key)===null||C===void 0?void 0:C.toString()})}),activeKey:b.key,onTabClick:function(C){return h(C)},children:vl(fo,"4.23.0")<0?o==null?void 0:o.map(function(S,C){return s.createElement(Bi.TabPane,P(P({},S),{},{key:S.key||C,tab:S.label}))}):null});var p=RG({selectedKeys:[b.key],onClick:function(C){h(C.key)},items:o.map(function(S,C){return{key:S.key||C,disabled:S.disabled,label:S.label}})});return N.jsx("div",{className:oe("".concat(c,"-menu"),"".concat(c,"-dropdownmenu")),children:N.jsx(hu,P(P({trigger:["click"]},p),{},{children:N.jsxs(qn,{className:"".concat(c,"-dropdownmenu-label"),children:[b.label,N.jsx(Gs,{})]})}))})},AWe=function(t){return z({},t.componentCls,z(z(z({lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:t.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:t.colorTextHeading,fontWeight:"500",fontSize:t.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:t.colorIconHover,fontSize:t.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:t.colorPrimary}},"&-left":z(z({display:"flex",flexWrap:"wrap",alignItems:"center",gap:t.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)"},"".concat(t.antCls,"-tabs"),{width:"100%"}),"&-has-tabs",{overflow:"hidden"}),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:t.marginXS},"&-extra-line":{marginBlockEnd:t.margin},"&-setting-items":{display:"flex",gap:t.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":z({"&:not(:last-child)":{marginInlineEnd:t.margin},display:"flex",alignItems:"center"},"div$".concat(t.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:t.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},"".concat(t.antCls,"-tabs-top > ").concat(t.antCls,"-tabs-nav"),z({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(t.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),"&-dropdownmenu-label",{fontWeight:"bold",fontSize:t.fontSizeIcon,textAlign:"center",cursor:"pointer"}),"@media (max-width: 768px)",z({},t.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})))};function LWe(e){return En("ProTableListToolBar",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[AWe(n)]})}function BWe(e){if(ee.isValidElement(e))return e;if(e){var t=e,n=t.icon,r=t.tooltip,a=t.onClick,o=t.key;return n&&r?N.jsx(Bn,{title:r,children:N.jsx("span",{onClick:function(){a&&a(o)},children:n},o)}):N.jsx("span",{onClick:function(){a&&a(o)},children:n},o)}return null}var zWe=function(t){var n,r=t.prefixCls,a=t.tabs,o=t.multipleLine,i=t.filtersNode;return o?N.jsx("div",{className:"".concat(r,"-extra-line"),children:a!=null&&a.items&&a!==null&&a!==void 0&&a.items.length?N.jsx(Bi,{style:{width:"100%"},defaultActiveKey:a.defaultActiveKey,activeKey:a.activeKey,items:a.items.map(function(l,c){var u;return P(P({label:l.tab},l),{},{key:((u=l.key)===null||u===void 0?void 0:u.toString())||(c==null?void 0:c.toString())})}),onChange:a.onChange,tabBarExtraContent:i,children:(n=a.items)===null||n===void 0?void 0:n.map(function(l,c){return vl(fo,"4.23.0")<0?s.createElement(Bi.TabPane,P(P({},l),{},{key:l.key||c,tab:l.tab})):null})}):i}):null},HWe=function(t){var n=t.prefixCls,r=t.title,a=t.subTitle,o=t.tooltip,i=t.className,l=t.style,c=t.search,u=t.onSearch,d=t.multipleLine,f=d===void 0?!1:d,m=t.filter,g=t.actions,h=g===void 0?[]:g,b=t.settings,p=b===void 0?[]:b,S=t.tabs,C=t.menu,x=s.useContext(Rt.ConfigContext),w=x.getPrefixCls,$=uo.useToken(),E=$.token,R=w("pro-table-list-toolbar",n),I=LWe(R),O=I.wrapSSR,T=I.hashId,_=An(),k=s.useState(!1),A=ce(k,2),j=A[0],D=A[1],F=_.getMessage("tableForm.inputPlaceholder","请输入"),L=s.useMemo(function(){return c?ee.isValidElement(c)?c:N.jsx(Vr.Search,P(P({style:{width:200},placeholder:F},c),{},{onSearch:gn(ht().mark(function J(){var Q,Z,ne,ae,le,re,fe=arguments;return ht().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:for(ne=fe.length,ae=new Array(ne),le=0;lea":{fontSize:t.fontSize}}),"".concat(t.antCls,"-table").concat(t.antCls,"-table-tbody").concat(t.antCls,"-table-wrapper:only-child").concat(t.antCls,"-table"),{marginBlock:0,marginInline:0}),"".concat(t.antCls,"-table").concat(t.antCls,"-table-middle ").concat(t.componentCls),z({marginBlock:0,marginInline:-8},"".concat(t.proComponentsCls,"-card"),{backgroundColor:"initial"})),"& &-search",z(z(z(z({marginBlockEnd:"16px",background:t.colorBgContainer,"&-ghost":{background:"transparent"}},"&".concat(t.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),"&-form-option",z(z(z({},"".concat(t.antCls,"-form-item"),{}),"".concat(t.antCls,"-form-item-label"),{}),"".concat(t.antCls,"-form-item-control-input"),{})),"@media (max-width: 575px)",z({},t.componentCls,z({height:"auto !important",paddingBlockEnd:"24px"},"".concat(t.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"})))),"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:t.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}})),"@media (max-width: ".concat(t.screenXS,")px"),z({},t.componentCls,z({},"".concat(t.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),"@media (max-width: 575px)",z({},"".concat(t.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}}))};function ZWe(e){return En("ProTable",function(t){var n=P(P({},t),{},{componentCls:".".concat(e)});return[JWe(n)]})}var eKe=["data","success","total"],tKe=function(t){var n=t.pageInfo;if(n){var r=n.current,a=n.defaultCurrent,o=n.pageSize,i=n.defaultPageSize;return{current:r||a||1,total:0,pageSize:o||i||20}}return{current:1,total:0,pageSize:20}},nKe=function(t,n,r){var a,o=s.useRef(!1),i=s.useRef(null),l=r||{},c=l.onLoad,u=l.manual,d=l.polling,f=l.onRequestError,m=l.debounceTime,g=m===void 0?20:m,h=l.effects,b=h===void 0?[]:h,p=s.useRef(u),S=s.useRef(),C=Nt(n,{value:r==null?void 0:r.dataSource,onChange:r==null?void 0:r.onDataSourceChange}),x=ce(C,2),w=x[0],$=x[1],E=Nt(!1,{value:it(r==null?void 0:r.loading)==="object"?r==null||(a=r.loading)===null||a===void 0?void 0:a.spinning:r==null?void 0:r.loading,onChange:r==null?void 0:r.onLoadingChange}),R=ce(E,2),I=R[0],O=R[1],T=Nt(function(){return tKe(r)},{onChange:r==null?void 0:r.onPageInfoChange}),_=ce(T,2),k=_[0],A=_[1],j=Hn(function(Q){(Q.current!==k.current||Q.pageSize!==k.pageSize||Q.total!==k.total)&&A(Q)}),D=Nt(!1),F=ce(D,2),L=F[0],B=F[1],K=function(Z,ne){Ua.unstable_batchedUpdates(function(){$(Z),(k==null?void 0:k.total)!==ne&&j(P(P({},k),{},{total:ne||Z.length}))})},W=pm(k==null?void 0:k.current),V=pm(k==null?void 0:k.pageSize),q=pm(d),U=Hn(function(){Ua.unstable_batchedUpdates(function(){O(!1),B(!1)})}),G=(function(){var Q=gn(ht().mark(function Z(ne){var ae,le,re,fe,ue,de,ie,se,ve,he,Ce,pe;return ht().wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(!p.current){ge.next=3;break}return p.current=!1,ge.abrupt("return");case 3:return ne?B(!0):O(!0),ae=k||{},le=ae.pageSize,re=ae.current,ge.prev=5,fe=(r==null?void 0:r.pageInfo)!==!1?{current:re,pageSize:le}:void 0,ge.next=9,t==null?void 0:t(fe);case 9:if(ge.t0=ge.sent,ge.t0){ge.next=12;break}ge.t0={};case 12:if(ue=ge.t0,de=ue.data,ie=de===void 0?[]:de,se=ue.success,ve=ue.total,he=ve===void 0?0:ve,Ce=Ue(ue,eKe),se!==!1){ge.next=21;break}return ge.abrupt("return",[]);case 21:return pe=gWe(ie,[r.postData].filter(function(ye){return ye})),K(pe,he),c==null||c(pe,Ce),ge.abrupt("return",pe);case 27:if(ge.prev=27,ge.t1=ge.catch(5),f!==void 0){ge.next=31;break}throw new Error(ge.t1);case 31:w===void 0&&$([]),f(ge.t1);case 33:return ge.prev=33,U(),ge.finish(33);case 36:return ge.abrupt("return",[]);case 37:case"end":return ge.stop()}},Z,null,[[5,27,33,36]])}));return function(ne){return Q.apply(this,arguments)}})(),Y=W1((function(){var Q=gn(ht().mark(function Z(ne){var ae,le,re;return ht().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(S.current&&clearTimeout(S.current),t){ue.next=3;break}return ue.abrupt("return");case 3:return ae=new AbortController,i.current=ae,ue.prev=5,ue.next=8,Promise.race([G(ne),new Promise(function(de,ie){var se,ve;(se=i.current)===null||se===void 0||(se=se.signal)===null||se===void 0||(ve=se.addEventListener)===null||ve===void 0||ve.call(se,"abort",function(){ie("aborted"),Y.cancel(),U()})})]);case 8:if(le=ue.sent,!ae.signal.aborted){ue.next=11;break}return ue.abrupt("return");case 11:return re=Aa(d,le),re&&!o.current&&(S.current=setTimeout(function(){Y.run(re)},Math.max(re,2e3))),ue.abrupt("return",le);case 16:if(ue.prev=16,ue.t0=ue.catch(5),ue.t0!=="aborted"){ue.next=20;break}return ue.abrupt("return");case 20:throw ue.t0;case 21:case"end":return ue.stop()}},Z,null,[[5,16]])}));return function(Z){return Q.apply(this,arguments)}})(),g||30),J=function(){var Z;(Z=i.current)===null||Z===void 0||Z.abort(),Y.cancel(),U()};return s.useEffect(function(){return d||clearTimeout(S.current),!q&&d&&Y.run(!0),function(){clearTimeout(S.current)}},[d]),s.useEffect(function(){return o.current=!1,function(){o.current=!0}},[]),s.useEffect(function(){var Q=k||{},Z=Q.current,ne=Q.pageSize;(!W||W===Z)&&(!V||V===ne)||r.pageInfo&&w&&(w==null?void 0:w.length)>ne||Z!==void 0&&w&&w.length<=ne&&(J(),Y.run(!1))},[k==null?void 0:k.current]),s.useEffect(function(){V&&(J(),Y.run(!1))},[k==null?void 0:k.pageSize]),dy(function(){return J(),Y.run(!1),u||(p.current=!1),function(){J()}},[].concat(ke(b),[u])),{dataSource:w,setDataSource:$,loading:it(r==null?void 0:r.loading)==="object"?P(P({},r==null?void 0:r.loading),{},{spinning:I}):I,reload:(function(){var Q=gn(ht().mark(function ne(){return ht().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return J(),le.abrupt("return",Y.run(!1));case 2:case"end":return le.stop()}},ne)}));function Z(){return Q.apply(this,arguments)}return Z})(),pageInfo:k,pollingLoading:L,reset:(function(){var Q=gn(ht().mark(function ne(){var ae,le,re,fe,ue,de,ie,se;return ht().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:ae=r||{},le=ae.pageInfo,re=le||{},fe=re.defaultCurrent,ue=fe===void 0?1:fe,de=re.defaultPageSize,ie=de===void 0?20:de,se={current:ue,total:0,pageSize:ie},j(se);case 4:case"end":return he.stop()}},ne)}));function Z(){return Q.apply(this,arguments)}return Z})(),setPageInfo:(function(){var Q=gn(ht().mark(function ne(ae){return ht().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:j(P(P({},k),ae));case 1:case"end":return re.stop()}},ne)}));function Z(ne){return Q.apply(this,arguments)}return Z})()}},rKe=function(t){return function(n,r){var a,o,i=n.fixed,l=n.index,c=r.fixed,u=r.index;if(i==="left"&&c!=="left"||c==="right"&&i!=="right")return-2;if(c==="left"&&i!=="left"||i==="right"&&c!=="right")return 2;var d=n.key||"".concat(l),f=r.key||"".concat(u);if((a=t[d])!==null&&a!==void 0&&a.order||(o=t[f])!==null&&o!==void 0&&o.order){var m,g;return(((m=t[d])===null||m===void 0?void 0:m.order)||0)-(((g=t[f])===null||g===void 0?void 0:g.order)||0)}return(n.index||0)-(r.index||0)}},aKe=["children"],oKe=["",null,void 0],MB=function(){for(var t=arguments.length,n=new Array(t),r=0;rle.length?(le.push(J),le):(le.splice((l==null?void 0:l.current)*(l==null?void 0:l.pageSize)-1,0,J),le)}return[].concat(ke(a.dataSource),[J])},A=function(){return P(P({},O),{},{size:u,rowSelection:c===!1?void 0:c,className:n,style:d,columns:_,loading:a.loading,dataSource:R.newLineRecord?k(a.dataSource):a.dataSource,pagination:l,onChange:function(G,Y,J,Q){var Z;if((Z=O.onChange)===null||Z===void 0||Z.call(O,G,Y,J,Q),C(Fr(Y)),Array.isArray(J)){var ne,ae=J.reduce(function(de,ie){return P(P({},de),{},z({},"".concat(ie.field),ie.order))},{});S((ne=Fr(ae))!==null&&ne!==void 0?ne:{})}else{var le,re,fe=(le=J.column)===null||le===void 0?void 0:le.sorter,ue=(fe==null?void 0:fe.toString())===fe;S((re=Fr(z({},"".concat(ue?fe:J.field),J.order)))!==null&&re!==void 0?re:{})}}})},j=s.useMemo(function(){return e.search===!1&&!e.headerTitle&&e.toolBarRender===!1},[]),D=N.jsx(j3.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:N.jsx(vo,P(P({},A()),{},{rowKey:t}))}),F=e.tableViewRender?e.tableViewRender(P(P({},A()),{},{rowSelection:c!==!1?c:void 0}),D):D,L=s.useMemo(function(){if(e.editable&&!e.name){var q,U,G;return N.jsxs(N.Fragment,{children:[f,p,s.createElement(go,P(P({},(q=e.editable)===null||q===void 0?void 0:q.formProps),{},{formRef:(U=e.editable)===null||U===void 0||(U=U.formProps)===null||U===void 0?void 0:U.formRef,component:!1,form:(G=e.editable)===null||G===void 0?void 0:G.form,onValuesChange:R.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:e.dateFormatter}),F)]})}return N.jsxs(N.Fragment,{children:[f,p,F]})},[p,e.loading,!!e.editable,F,f]),B=s.useMemo(function(){return b===!1||j===!0||e.name?{}:m?{padding:0}:f?{paddingBlockStart:0}:f&&l===!1?{paddingBlockStart:0}:{padding:0}},[j,l,e.name,b,f,m]),K=b===!1||j===!0||e.name?L:N.jsx(Vg,P(P({ghost:e.ghost,bordered:bX("table",E),bodyStyle:B},b),{},{children:L})),W=function(){return e.tableRender?e.tableRender(e,K,{toolbar:f||void 0,alert:p||void 0,table:F||void 0}):K},V=N.jsxs("div",{className:oe($,z({},"".concat(r,"-polling"),a.pollingLoading)),style:h,ref:T.rootDomRef,children:[w?null:g,i!=="form"&&e.tableExtraRender&&N.jsx("div",{className:oe($,"".concat(r,"-extra")),children:e.tableExtraRender(e,a.dataSource||[])}),i!=="form"&&W()]});return!x||!(x!=null&&x.fullScreen)?V:N.jsx(Rt,{getPopupContainer:function(){return T.rootDomRef.current||document.body},children:V})}var mKe={},gKe=function(t){var n;t.cardBordered;var r=t.request,a=t.className,o=t.params,i=o===void 0?mKe:o,l=t.defaultData,c=t.headerTitle,u=t.postData,d=t.ghost,f=t.pagination,m=t.actionRef,g=t.columns,h=g===void 0?[]:g,b=t.toolBarRender,p=t.optionsRender,S=t.onLoad,C=t.onRequestError;t.style,t.cardProps,t.tableStyle,t.tableClassName,t.columnsStateMap,t.onColumnsStateChange;var x=t.options,w=t.search,$=t.name,E=t.onLoadingChange,R=t.rowSelection,I=R===void 0?!1:R,O=t.beforeSearchSubmit,T=t.tableAlertRender,_=t.defaultClassName,k=t.formRef,A=t.type,j=A===void 0?"table":A,D=t.columnEmptyText,F=D===void 0?"-":D,L=t.toolbar,B=t.rowKey,K=t.manualRequest,W=t.polling,V=t.tooltip,q=t.revalidateOnFocus,U=q===void 0?!1:q,G=t.searchFormRender,Y=Ue(t,fKe),J=ZWe(t.defaultClassName),Q=J.wrapSSR,Z=J.hashId,ne=oe(_,a,Z),ae=s.useRef(),le=s.useRef(),re=k||le;s.useImperativeHandle(m,function(){return ae.current});var fe=Nt(I?(I==null?void 0:I.defaultSelectedRowKeys)||[]:void 0,{value:I?I.selectedRowKeys:void 0}),ue=ce(fe,2),de=ue[0],ie=ue[1],se=Nt(function(){if(!(K||w!==!1))return{}}),ve=ce(se,2),he=ve[0],Ce=ve[1],pe=Nt({}),Se=ce(pe,2),ge=Se[0],ye=Se[1],xe=Nt({}),$e=ce(xe,2),He=$e[0],Te=$e[1],Re=s.useCallback(function(Ne){for(var We=[],rt=0;rt0){var Ne=st.map(function(We){return Wf(We.key,We.index)});Pe.setSortKeyColumns(Ne)}},[st],["render","renderFormItem"],100),dy(function(){var Ne=Oe.pageInfo,We=f||{},rt=We.current,ct=rt===void 0?Ne==null?void 0:Ne.current:rt,At=We.pageSize,pt=At===void 0?Ne==null?void 0:Ne.pageSize:At;f&&(ct||pt)&&(pt!==(Ne==null?void 0:Ne.pageSize)||ct!==(Ne==null?void 0:Ne.current))&&Oe.setPageInfo({pageSize:pt||Ne.pageSize,current:ct||Ne.current})},[f&&f.pageSize,f&&f.current]);var Ze=P(P({selectedRowKeys:de},I),{},{onChange:function(We,rt,ct){I&&I.onChange&&I.onChange(We,rt,ct),ie(We)}}),vt=w!==!1&&(w==null?void 0:w.filterType)==="light",Ot=s.useCallback(function(Ne){if(x&&x.search){var We,rt,ct=x.search===!0?{}:x.search,At=ct.name,pt=At===void 0?"keyword":At,ft=(We=x.search)===null||We===void 0||(rt=We.onSearch)===null||rt===void 0?void 0:rt.call(We,Pe.keyWords);if(ft!==!1){Ce(P(P({},Ne),{},z({},pt,Pe.keyWords)));return}}Ce(Ne)},[Pe.keyWords,x,Ce]),xt=s.useMemo(function(){if(it(Oe.loading)==="object"){var Ne;return((Ne=Oe.loading)===null||Ne===void 0?void 0:Ne.spinning)||!1}return Oe.loading},[Oe.loading]),mt=s.useMemo(function(){var Ne=w===!1&&j!=="form"?null:N.jsx(RWe,{pagination:Be,beforeSearchSubmit:O,action:ae,columns:h,onFormSearchSubmit:function(rt){Ot(rt)},ghost:d,onReset:t.onReset,onSubmit:t.onSubmit,loading:!!xt,manualRequest:K,search:w,form:t.form,formRef:re,type:t.type||"table",cardBordered:t.cardBordered,dateFormatter:t.dateFormatter});return G&&Ne?N.jsx(N.Fragment,{children:G(t,Ne)}):Ne},[O,re,d,xt,K,Ot,Be,t,h,w,G,j]),yt=s.useMemo(function(){return de==null?void 0:de.map(function(Ne){var We;return(We=we.current)===null||We===void 0?void 0:We.get(Ne)})},[Oe.dataSource,de]),bt=s.useMemo(function(){return x===!1&&!c&&!b&&!L&&!vt},[x,c,b,L,vt]),tt=b===!1?null:N.jsx(XWe,{headerTitle:c,hideToolbar:bt,selectedRows:yt,selectedRowKeys:de,tableColumn:st,tooltip:V,toolbar:L,onFormSearchSubmit:function(We){Ce(P(P({},he),We))},searchNode:vt?mt:null,options:x,optionsRender:p,actionRef:ae,toolBarRender:b}),Ye=I!==!1?N.jsx(wWe,{selectedRowKeys:de,selectedRows:yt,onCleanSelected:Qe,alertOptionRender:Y.tableAlertOptionRender,alertInfoRender:T,alwaysShowAlert:I==null?void 0:I.alwaysShowAlert}):null;return Q(N.jsx(vKe,P(P({},t),{},{name:$,defaultClassName:_,size:Pe.tableSize,onSizeChange:Pe.setTableSize,pagination:Be,searchNode:mt,rowSelection:I!==!1?Ze:void 0,className:ne,tableColumn:st,isLightFilter:vt,action:Oe,alertDom:Ye,toolbarDom:tt,hideToolbar:bt,onSortChange:function(We){je||We===He||Te(We)},onFilterChange:function(We){Fe||We===ge||ye(We)},editableUtils:lt,getRowKey:_e})))},iM=function(t){var n=s.useContext(Rt.ConfigContext),r=n.getPrefixCls,a=t.ErrorBoundary===!1?ee.Fragment:t.ErrorBoundary||bG;return N.jsx(yWe,{initValue:t,children:N.jsx(Ag,{needDeps:!0,children:N.jsx(a,{children:N.jsx(gKe,P({defaultClassName:"".concat(r("pro-table"))},t))})})})};iM.Summary=vo.Summary;const zs="openab.adminToken",pKe="openab.lastEventId",mR="openab:unauthorized";function lM(){var n,r;const e=((n=localStorage.getItem(zs))==null?void 0:n.trim())||"";if(e)return e;const t=((r=sessionStorage.getItem(zs))==null?void 0:r.trim())||"";return t&&(localStorage.setItem(zs,t),sessionStorage.removeItem(zs)),t}function hKe(e){localStorage.setItem(zs,e.trim()),sessionStorage.removeItem(zs)}function xX(){localStorage.removeItem(zs),sessionStorage.removeItem(zs),sessionStorage.removeItem(pKe)}function bKe(e){const t=e.pathname+e.search+e.hash;return"/login?return_to="+encodeURIComponent(t)}function TB(e){const t=new URLSearchParams(e).get("return_to");return!t||!t.startsWith("/")||t.startsWith("//")||t.includes("\\")?"/overview":t}function wX(){xX(),window.dispatchEvent(new CustomEvent(mR))}const yKe="当前配置还有未保存的修改,确定要离开吗?";let Ey=!1;function NB(e){Ey=e}function CKe(){Ey=!1}function sM(e=t=>window.confirm(t)){return Ey?e(yKe)?(Ey=!1,!0):!1:!0}function _B(e,t,n){return e===t?!1:sM(n)}function $X(e){if(!e||typeof e!="object")return;const t=e.idx;return typeof t=="number"&&Number.isInteger(t)?t:void 0}function SKe(e,t){const n=$X(t);if(e===void 0||n===void 0)return;const r=e-n;return r===0?void 0:r}const EX="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAYAAAA+s9J6AABk1ElEQVR4AezBS3McaZZe67W2O0AmsyrL1K2WzDQ6gzPU//8xxzTowZGZJOuWKi/EJcK//QoeQQcQSTLILDAzecHz+N//7adwhso5UzhL5ZzuZqOyUVmpPEUSzlH5GCorlceScE5V8RTdjcpGZaOShD9Td/MUSfgzJeGcJDxFEj6k+EyobFSePftWzHwGVDYqn5LKs2efs5k/mcpGZaPy7Nm3YOYzobJS+ZRUzknCs2d/ppk/mcpGZaOySsKzZ1+z4jOhslF59uxbUXxmVJ49+5bMKk+hck4SNiorlY3KU6ic0918DJWNyvsk4bGq4im6m3NUHkvCJgkfUlWck4SnqCrOGWPwOVPZJGGThE9B5UNm/iAqXwKVz4nKs6/bzO9M5TGVjcqHqDyFyj9CZZWE35PK10zlKZLwtZv5A6msVD43KhuVZ8/+KDN/AJWNykYlCeeonJOEc1R+C5WVyioJvyeVc1S+ZCpPkYSv3czvTGWjslL5HKmsVJ49+6PM/EFUPlcqG5U/kso5Kk+RhGeft7mABgpooIAGCmiggAYKaKCABoqPp7JR2agk4RyVc5LwFCrvo/LsaVSenTcbKKEQBQNVYqAEOigYUDCgYDhQ+ZAkbJLwmIZzuptzEjlnmib+UUn4EJWnqHCWnJeEc+S8VHFOEs7pbs5ReYqq4rEkrJKwUjknCR9LZaPya0lYJeFjqZyThJk7BhAMB4YDAwEMB4YDw7NnByrfGpUkfCozXziV35PKs2+XShJWKklYqayS8FTFs2fPzlJRWal8ajNfOJXfk8qz91M5JwlfMpUkrFSSoLJKwqdQPHv27CwVlZXKRuVTmHl2lsqz91M5JwlfG5UkfCozXziVZ89+LypJWKkkYaWShE9hVvm1JHwqKueFc6qKp+huVDYqj1UV5yTh91RV/JnC0yThnKrinDEG56g8pvJYd/N7GmNwTlWxScImCR9DZeYrp/I+Ks/+XCrfupkPUPlaqKxUnn0dVM5Jwudu5huhslL5lFT+TCpPoTz7k818gMo5SficqWxUNirP/nwq5yThHJUv3cw3QmWl8jVReQrlrCQ8+33NfOVU3kVllYSnUHmS8FlTeYoknKNyThLOUfnSzXxDVD61Cm9pOSuC4aBtVsWvpDhHINyx+ZDmtyoei7wtBTaGZ080VxVPofIUVcVvobJSWSVyjsq7JOEfobJSqQAZHBUbw4OpWEXuBVDuNLvdjlUpKiuVibC6uLggCaZIQhK6GwJh0AkaVlVFSlRWKkmAsEnCahAqUExUuNcCaSIHQZpVsYocWRgoG9O8j3KQhFUSHlM5p4oPkFUSVkl4bJomzuluzknCx1LZqPxaElZJ2FQVM88+msq7GO40sVgJhPMaKODy8hJpNjpR4Q3Z7/eomKBSyDTNrOIM1UCzSsIgdDerJDgVK5UWKpKSGahAL4NTBQaQX4schOJAIPwmKkn4lqkkYTPz7KOobFQei+GoWUXeYnijKLl3WRMwsUoCiEASoJiUoyIdlgQISVjVRWjDSgWkSlRWy7KgEkBFhQEqApXBu0gIq4BAwHAkB4aPppKElUoSvgUqSVipJGGlspn5wqn8nlQeU1mpxMaAkU0EkU14m4EIpliWgeFABUIotAgFchBCRwKMBAMjoYZgqCpEVLRAMEBCwr3BJkAzWUDzLnJHmbhjaKFSNOFAIM05KqskqCRhpfKtUFklQSUJj808+ygqG5UHTeRXik2xkVVzZDjoAQIqICg6gRBgWQIlIJm4IxYYmISaIBx1QGAEGFCBmmYOmgMDCQfJoKcGi/eRsKmAaUoehI+ikgSVVRK+BSpJWKkkQWWVhNXMs7NUHlPZqIhgQ4oHAYoWDLRQgebXCueCiEDkIAXNUc8SoYEICTRQQnOnOVHhYBZamAQDFFQgghzJxGDVPCZho7KRO4I8aM5TScJKJQkrlVUSvnYqqySoJGGlspr5wqmck4RPRWWjAqFtsHmXULQQpCkiD1KsnKSBbhiBBpYFmpCEpmhCRwZhpFnS2KGFsTQrldliqkJljqgITMAkzEIVTAVVoNA98WtFs5FTleZB0XyYShJWKkn4lqkkYTPz7KOobFTOicWqWQkpkDvFPSGKE+wDIzAa9gP2y8K+ByPNzW5PhFCkJEIDBUTZ7wcrO6wEKkAHgZcXl0wWFzVxMc/MM1zOcAHUBAjFxEbCoDBN0QSR8G4NApEPUUnCSiUJ3wKVJKxUkrBSScJqTsI5Kk9RVZyj4R+RhKPwqahsVN4nCUfhxauX7HY37HYL3c00XVAXMtUFKklIS5Q0DKA7JKE7/Hwz2APdzX5ZWJbBfizsRxhpXr56RRNi0UATWqgUI4F5YlWA4aACBgSuEhgLLnu4CYVM08RFTUwF//k/XjIaaEhAoEomJ6yJEkxDmu6mu0lCeqEj0+ULQN4nCe+i8lskYZOEjXKgslJ5LAlJ2CRhk4RpmkjCJgmbJKg8RXfzPipJmHn2JNfXt0CYpolpumAQRkNngBMtULIaBWPAfoT9fs+uww2wIElYkEwXjJpgFgi7mmggFkkI0EK4I2+EimAwoqEiEDLCNElRmABFG5bANAb/+t//zqvLC77/7hWvvpeLWRDYwzJg3wummQzzVNTFJZVmLJIxePZ0M8+eZOwXpmmi5om0pAdNwzxRVTTQwDJg32G3H+z3e3ajWRJuA0sVUFATqzgBhcIYIUILAUKRhJaDCneapsCmKEITCmiiWEDNFGGhyLInHdLNtIQle27HFVe7C757ccGLF/JihosXcHszURQyCKLS3FGefRoznzmVz9nl5UtW3WFJaO44Yc1kgjHgZsD17Z7b3cJuWRgJ1ESmC3bLYKRQMQWKCCVapAcjQiBCEkBIEQYg91IcFRFMUbM0R43QgwbappDvvv8b2e+43i28vr3m4uqWVy8v+et3l7x8IZeTlDJbEFjGQrpJwPkCIs+eZubZExQv5on9aDoDKeZpZlgsDWMHV7vB7WhuloWbZbA0UIU1ozNdorIKBeGOMCDcaSmKVTqADEIFsJgIUryLgakmktDddDdJAMEJZ9m14IwXE5WmM7jaDW5vf6Yc/NMPP/Ddy4n5BUxC72fSjVVMFt3Ns6eZefYkCRQwOeMkEZbAzc3C1W7P6/2eoYxpoucZkAXphIyFuS5YJeGoyAgbKUggIpKESTHckUmB5n0q0B0YDd2QwFTMFjqx7BuQoqiaMMUYC0uDY/Bv//6/+cv3r/CH7/nuJcwTFJesNNDNs6eZ+cypnJPwp1r2jQpKN+xGc7XbcXW743oMdh3GNJNJ2qItRsIujRHTVBcgK5VCNt0gYkPCHVkZDqYK7xI52O92bEqxChQBA0wTCfSApQeVUMhcE+Ult7dX8PqKXvb89dUlr1684PJiYhK6efYJzHzjKhy0HETuNCiPGQ4qxaYt9iUIC3C7D69v91ztFpYOewvmwpoYyAh0N4MAhUIGdBoVlQooGFBIOBIqYZUEKEwDYiBywnAwdnuqimmamKYJlVV3k24GUE7MF9yZsIuMPfv9Aj149eqvLLdX/P3n11zf7vjhL+GHv7ziYpaKTM4UjYEIBmJjIIKBCIZn7zHzCahsVDYqYwxUNiobFQgblY3KKgnnyTkq71OBcmJVwqgmNpE7IcLY7yhlZmaqYgrQoRuaO6/gp4ZffoFfrm652S00wfkCq2ikgTQgCMxKCUUhUtwJkNAMHguyUY7kThNgsIBQ4Z0uLy9ZGchowgMJM3fS9AAyWJlQs8glN/uFi8tXTBcvudrt+PHffublT9f88z//M//yN5kjYy8TMl2IDbdLKGC+mOmlCaDNUXjMlnOSsFLZqGyS5hwF5RF5IN3hMZWNShIeS8IqCR9D5UNmvnlyFAwgB7FZOUHSLFmgZ6YqapqZDDvkxz38MuA6cOvMMnHgNFFVjB6sWu4ZKMA0MHFes4m8JeGg5USFdzI8sDlqkrCqQAirAKliKHNd4AxGFide3wwmZ364gFcXxXzBwRLQiQDL0mxaDio8+5WZb1gLcmpqiNDFQTkzepCWnqBLIjSyD/z4S7iOjNEkoapQoQqV9zF8EnKqwgnDgeGd7ABBjpKwEkhCBSoQwjRN0KG7ubq6YtxAvZq4/OF7Xr6A0RxMkySwLM00yarCs/eY+ca1ocKdpmgOAjYHTgVVxOA0MaaiG27G4Jd98/p6sNTERmXV3XyIKegQ3i8JZyU8lnAqHIV3CPIgCaskPNbdrJKwUhljcLPbc+3M6wmK75lnmAosGANUoIAGCmhAIDx7MPOMFiocGA7mFAGqJizoqeiSXcP10vx8c8Uvt82eC7onVFSSsOqEJFCySnhLCCLyjzOcMJwwHBTvEDAQwkogCQIVSIKBHoMkJGGyECikqliWhb///ZbdbuFvf/srr14VkYN5LhiA3DPcEQyr8HVLwofMfOPCHZsGpoCECg8CU00g3AZe75ufbm/4ebfnehnMly8xskrCKgnIBxWQhPB+STgr4UQ4FQ7C20wId+QgCSs7hFNJoEMqVBVVxaz0uOXmZseyb+Z5Zpq+Z5rAQE0Q7qTABgponp2a+dbZPFYBAxVooUdIwWi4WcKPNzt+ut1zw53LSxpBTljFpKz2Y2ElbwsreSrDPcOJ4sjwluKNQBLkjXDPwGQxTYUVkkBCKaToBmpi6fDzLzek5dX3L7mciwSKI8NB8UY4GHzdknCOysw3LIKsmneTREbDDrheFl7f7ng99mS+4OLiO/o2mLBRqSqqpAr2g99NBQj3DCeKI8OJCkdykIR7He51QJmmiUlJwhiD7qa7mZSl4XJ+gR1urm+hwzRNzK9ekEBNvFFA8+xtcxJWKhuVj1VVvE8SqorHVFYqR/IuSVipnNMdHlNZqaxU3ktIBipVRSUwwhiDJdCEl9+/Ytfw+mbh9W5hoXB+SU8TS4qLqbBlk4RlBEZIwuTMY0lYJWFVPEjCJgkrOU/FcFBywkASKpyQNwLdDYSN4V4pq4zBCAcCk8VRmOdLJMwXE9Dsd7f8+//5O8nf+Jf/+JL9LSh3AmOw9ILKNBU1T4zRfIwkbJKwUfmUkrBJwvuorLqbc1Q+ZOYrovJbGEBRCU0CEZwKAljsGm72g+vbwb4H1ETVzCLsO0zIxFESNkn4tSS8TxI2SfgYBgwUbzMcVDgh72e4VxwlwUB4UOGeTiSDsQQMYwRGc319y99/vOAvLyeqwCFLgxRVUlXQoYDmz6OShHdRScLvbeYrobJR+ViTRWjs0EApzAUKTLzeNz/vdry+3XOL9IuZyQsqoccCBS0H4SgJxSk7yFES5MhAEuQoCfIgCe8ToAKEtxiOEk6ER4LhXvHAcBSocEIekxEJkA6NMMLV1TVjDL77T/9ETVAFKiJzTSgsY4DyZ1NZJUElCR9L5almvnAqj6msVD6smWtiDOgElZ4Ei6YYwk8/X/F6aW57YXBBj9CCSDFBJGk2SdgkIRzJURJWSTgI95KwScKHGD6Z4t0qnJBT3U0C3QFFJjLBWJqrccXr16/4qy+5vIS6mOkRVummu3Ga+FyoJEElCX+Uma+EykblYxRgQBpoWiknRsGuB7dDftzdsmeiayKZYAAJVTJZJNwpVkkQSULCHSGySoeVSBJEjppVElZJ+C0MVHiLHKXDY4ZHgtwRDCcqHCThRDgxIiAqlWaaLtAZx47RzY8//sw8yasXL5gvYEHGGJiBkT+byioJK5UkqKyScI7KOUn4kJkvnMpjKhuVJJyVQAcSQEbBQrgee652g9sMhtJ1iRRJQcMEpCBAEjZJeCwJKzlKwiYJEDZJ2CThgwIJJPxJiu4wTRMGWpgCNcnkJS7N9fU1v/xSvHpxyfevpAqWJaQbqwifB5VVElSS8EeZ+YqobFQ+RnfDaCighJLdsnC1u+Wnmx2ZZkYkEZS5ZhB6wDIgM0QwkAQ5SsJKZJMEeaODQOQgCZsk/KPkyHAQjiqcMIAchXsVTiRhZTgIj4VVVWFgGQvLGOBEKVCsrq6u+HGemOoHXlwWExJkmiZ2NH8mlVUSHlP5o8x88ZqVCoSVCoSj8D4GqkNzJ0Uz0RQ7iusFXu+ayxffkwGjQyHTDFWwbxhjQSYIyFEFkmA4KN5IkDc6bAxE7iVhZfigAiqADSmwIQU0UECTcKdJCmiggIYUEFTeR44MB0UggoEINJ2ikBKW0SzLQhHGJCTM88zu9paff/6ZV9+95PLiJSpxgiocDUIBDRTQ/HlUkvBHmquKc5KwUtmobMYYrFQ2KptpmniKJGxUNiqrIhyFewmbUt6ngLlgdwtcSE0zP93C//zphtejmF/9J252C6Fwgk643e9YJYOaCpt7SahwkIRVwoHhXvGgAQOEA5EkFKcMJyoc9NgDDRTQmAIaKKCpFNiQAA0EaEIgkIQTaVYCAUwojkwDBWkqxVHo3Z4GLii4uMCEjKYIYwzmeeb6+pZ///f/zXff/RdefVfc3BRjNCqTYEDBgHKvlU0SIpCwMhwU75eEszJYySNyz+JEEjZJaIpzVM5rZj6CykZlo7JS2ahsVH5XBsKd5v3krIZpmujpgpvA7YB9F4OZRAYXFHcSYLAKC13cGVQEiiQIGEiCHBkOilOGgxKaBybIA8NBhROyah40R81Rc2Bz1Bw1R81R8T4G5Mg0q0qzkoYUFd5osDEgTQUQqopkoBOjm5ubHRcXl1TBGAEL06wMBwYiHxRhCr8rlSS8iwrhyWY+QGWjslFZqWxUNipfglBMlzPLJLt9uN7tWNIkYQzuJaGAJCAnkmA4SMLKcJCEVTgyHISjAAJyFN7osDIchCM5CquwMZwo3q3CiZaDCgdyZLhnoMKBbBoEUxBAIGAAuVdVZCyURbr55aefeXHxT7x6KcsSRD53KqskqCThUyo+kspG5ddUNipfgggtOAnCfj+4vdkxRoBmjD2hScIqCQeRJCQhCZskbJKQhI+VhCSskvBHqUCFE4aDItAhCUlIQhKSkIQkJIMwSAIdQmOHMKDDbEEHlV7Czz//zM3VFd1gi+GLobJS+ZRmPkBlo7JRWalsVDYqn70UUYawH3B9u2e37AkzKztUcSckQcBAExCIrAwk4aDDY8WR4d06rOQoCQJ2eKfwSDAcFKcMB0lYGd5jcCIQoAiEg0ojR6Y5Ee40qyIQkDuB4oGBjMEy9lz98prvv3sF8tlTWSVhpZIElYPwZDMfSWWj8msqG5UvQQScWQZc78NuGYwGJ1GBJhmYogICSZDCMYAAIYRVEuQoCavwRvigJKzs8C6GdyrOq/BBhntFMFCB7sEqgIEQis2A8EizMg02pEmHQuwwuslorl5fc/X9FX/5yyua8CVQWSVBJQmfysxHUNmobFRWKhuVjcpnb4LbHVzd7LhZFqDACZVSaMDGQBJWSUBOdZCjJBRHhhMV3pKElUAS5JEOG8OvBAF5W4WD7nAivJPhyEDAcKcRMNxpiiPDnQYKaDYVDuROQKCXwYSMHtBhUnY3N1z/8poffvieJnzOVFZJeEzlKDzVzAeobFQ2KiuVjcpG5XPXSCbYNVzvF0Y3qYmqohWRABWgg9wRwqaA4rEk/BZJeEwe6bCp8BZ5twr35IHhRIV7BjAQqIA0BggUzcpwUAHkTpMIFCtpVqbBphK6m5qLkUEFaprY3+64vb5hFha+LCpJ+JRmfoMkbJLwa0lQ+S1UzlE5RwXkfZIwzzPzPJOEZVlYloUkRLlZ4O9Xt/xyfU1fXsA0cbvfsXSYpomJiQRIcRSOilUSDPcm5UTCqsIJeTeRTSndzcrwlgKSAOF9CtmYsElCuJNmZbgXGgIGqoLhoGhWcic80qxMsyoaAgYymtGDSampqILL717RS/Pf/r9/5f/9r/8PtwN2ux3zPHNxMbPfL4wxePnyBbf7hY0Kgsq90Zyjck4SzknCKgmrJPwW0zSRhE0SNklYzXwDktDdJCEJq6oi0wW3AxZkWIQiFG0TQYWAQPFGoAXCgeFJkrAxEI4qEI4MJ4r3kweGexUIR0lYGTAcGI5sDFRAGiMVwMZwYHiQ5p5NBUxYFTAZDCgYoEOVkJDAsgcKqookJKCikvBNmPnKqSRhjEESupuqoqpglh9vYddhWDSSBBXlwPBG8y5JKB6EI8OBHVbhSI7CkeFehXuGo0BxyvAggNwz3KvwoINAEuSouBMOpDkIVAAbAhWQhoABbIoHIdxLMBwUYBoDpZBQgBS0QNOE6+trLl5dMk0TYwy6G5Wqorv53Kk81cxXTiUJ3U0SVFSmaWIUXO8WlhHCzIgEWalsKmA4iPwuKrxTccpwIgkQ7oWDCoQHAknYmEBAHlQ4kDuBCncGhAMDGAj3BGJYGQ4KMI1AKRVQkTsJdNAg4erqir++nJnnmTEG3c00TZRFEr4FM185lSQkYaOySuD6ZscuMoAGOhBEOZDmqDhVrJImPDAcGA6SsJKjcGQ4sMNBOCFvdDgRHhjkTrhX4cBwwgQ5SoLhXqVZyaqpcCAPikbuBCoctNwJ0qyKI8O9iaAcVCAJBAI04erqild/+57LywtUkvAlUXmqma+cykalqlDpbpYubm73LDUTIAkJqByEA4HiqAMFNBCh+HMlAcIm4SickKMkrJIgoZCVHFU4kDc6GO6EABUIRxI0NFDhwHAgUAGVlR2SYCAJSQjN7fUN+/2e7757SVWRhO4mggoJX7uZr5yKSlWhMk0Tq2VZ2EVulz37aSJzEaBpRBQq4UEDxVHxa4Z3S1iFI8NBeCPBQDgqjsIbCSvDQXgsVDireJAEA0l4TN6lMWB4JwnhqAKGA2lWFQ5UkrAyQAcSSIhh2e9ZloUEpmmiu+luOmGeZz53Kk8188VrBMKmeNCsVFZVRWqiA/uE2xF2LT2JHJlCgkghEE4VGwNJME0ooIECmqTABgQaKKCBAhooKhA+RgMFNpsKEAjNrxkOiiMTEpAgq7CqwEQDzUbANKuigbCqAAYEw4FpRFZyVOFAjircCSBhIKHTkFAdWAYsg+rgJFG6mwhVUoMTHYjca6D4ss3cUdmobFSS8JjKSmVVNKfCUVipnDMSNioblZXK+xRQNgZiEYpGNoUs+z3zXIwOFxcz1wOWQL+Y+df/9r+YLr+jLTpAoFgFCA1UYAAd3mgOBAMSygABAgQIEiAkAZqjpgLYEN6QyL0OB0VzFKQp7qTZGA7S4ddkFQjIqplSQCNHFe40labCkY3hkSABGrkTDqRZVUDkMTmqNAZIgGCDBAhTSUVGNZXi//z//4N/+eE/sCzh4uVM90QSaJgiqwJGgsIAmrCqKoqjJKyS8Kkk4TGVxzrht1DZqKxmvnCGey2QIoJpNoaDwVEDuwGDmWERuWe4U3yI4U5jQggwOBocZHAUjpoDmwObg0y0UOEthjvNUbOScCDvVBwZEKg0K2lWlWYlYJqikTcCRTiRZiXNY0WDIBOPVTgwIGDCUViZZiUwpemAgewX6mIi4V4SiiMDBXSghObrMfOVU0nCKgEFAvs9Jwwniner8EAIpwzvVJwyEDmogOGgaFaGUwYDFU40R8WRCSt5IFBpVrJpVgYqgGFleKN5rMKRzWNJWFU4SrMJICBgmnepwJJwe3vLxfwdhAOVb0XxlVNZqYzRbG5vQeXPZIAOdEhCEpKQhCSQkAQ70CEJSUhCEpJQQLEJKzmqNLJqTjUHNo8ZTsim+TUDhoMKJ+SoAvJ+BqQxcHN1jQHDgcqq+frNfOVU0g1Kd1NTkcDt7S0rAwLFKcOJCgfySCAdINwLJ0w4CCcMB8WmWRkOpFlVwABCBaQ5EXlMVk0F5KgCsmoM9wqogAQCBrDZVCBpVrJqCAcV7hnuNCs5qgQ5qvAgzWMTkg5XV1f8Nf8BElYqmwZKINwzEPkqzHzlVAKodDfF0W63Q2VVnFfhoxhOFBDeVuFeMoDChFUAgRAqQAcJBAjEYLgnEkBWzaoCApVmJc3KcFA0KwMSDCcqvNHIpqlwwkASAkhYBahwJxhQkSaAgQAV7nW4E3ZX15CQ0SgHTUAwHDSnDJR88Wa+ciqdINDdbPb7PVAU0OEtFe7JA8OpDhBW8isBElaGdzICjWyaCgcGJBgOpCFQ4ZGmhQpgsxKogDQrw0HRrExYFWCgWDUHAQPYrAx3mpUBDBtZhVWFN4JABQxoY4BApUlAHkyBAdzc3GIHOjCJCgnfgplvSBKUgzEGVmEAOVHhnjwwvFPxNsO9CvfkgeFehXuGgyIQkFVT4Z5AAIGikTvhoGgEDAdFszJhVRwZKMD/yx6c90iWWPlhPfe+F5FLVbGb5FDjRTIMGLAB/2f7+38G24BkwLBlWLC1a2YodteSGe/dnzMiOrOq2M0mNbRm1Ms58ZmOjzKelSfxokPiouKq6FChjErpkIxy1fEioTGnTYX4thQTLyo0xo/D2t3+kCT+mCSeVZVnVeVPUVWeVZWzqvKnSuKivKgqpRS2bbN022ccj0enE19//WhdV+9PO+tBx2fKR9nHs4rfMzqUb+v4RqlykUTFRRJBzbiIF+UsBInK+GicVUjRyhjtowoV2khC4qx8I+NZpXR8VKM8iYskrqLioxqClLOKqyCejArJGOOsguyCJC52em2Fr3/3O29+82s3t4vffvXO7f09RoXyiaKw+FxVOasqz2bG96kq36eqnCXxLIlnVeXPkbD6CZoZSZwlEfGsEFcVLzq+pXy3jhflo4qLJM46iBftqhJnhcooVx0vCm2U0qh4UUajEhLtqjLOylWHDuUToeKqRsWL8onQIXFR8aKMDhVPRsdFxUUF8WIZlsHEs6ryLOUqLioUUn4UVj9yVYWoKqoIM2NmUCooLypedEhcVHxLI/Et5aOKiyQ6JFE+164qnkS56oyzjiejfFQZZ+VslI868axRGWdlnHVclCdBfKacDUFQcdbxZDwrT+KiPBsdVzV6qKBGeRI6RJyVtie6yn7alKuqcjZo361Cyg/e6keuqkicVZUM+77b951a/SEd36tdJUE8K8Qn4qJDEs+SqNCoeFHoeDIKFRflquJFBT3KVSfOKi7akCjjrOOiXHWouGifGhUXqej4TPmofNRxUUGNDkJ5EjoklCdxsWDCWm1OmyRq6G5J/BSsfiKqSnWxs22bfd9ZVzWRimcVV3GVOCu/J55EBeVFxWc6ribKVRLlqhLlo46LQocYhYqLzvhUxZM4q7ho46xCXHUo46zjokJrZxXfGGftLBIqqPGs4sk4q5RnFRftSaiQGkKHchYdEheFJXSV7XRSExm6WwrxIkXFj87qR66qCFWlioR9382M9udLgngRn0lclKskzpJolG+r0K7Kdytno1JSVFy0cVZBjUp0KOOs4zNJVIhncRZxVvGZiu9UcdGuKi4qdChXHS8qdJUk1m7btjlL6G7jatCF+FFa/chVlbiqcjEzZkYjiUo8i2/ERSXO4qriIs7iWcVnOi4qXiTRSKJ81PGiDIV4UaEzzspVhykXFdS4iKsaFSqoIa4qziqU8qyNT1VclHERF53xmfg941mh4hvxqYrPVJU5bZKYGb22PUNR8S0VUn4UVj9EFVI+k9YKIyktGGcpCoUUM5jSaYP4XMV3qvi2Gh8FpYWigqJDEoUKEmeFFuWjjiejfCN0RjkbHReFDlVxERcVF4WOJ0PouChXFU+iEu2jiidxVsazjifjWbkq46oxKi4KnRGUOOsQlBGlsCQiCskoUYkqxB/UmLhI+UFb/T1bLF4ENSSeVfm2DBqjakE7q3FVg6E2275bl6Ov3r91v3xhdk6P4/7mteobp30zNT7VPpF4Vr5DPIl2NmiVcdZB4qwzztpQLirUlLNyNiouOqhRoUXFRcWLQk1JUa46LgodTDsr46zjRaETnypn46xDEoyr8aziolCh48l4Vs4iGWVchEJlVLUOtW/WtX39/r1abrk5ipNt220Th8NBFRW6S42rUMVeKBdJPEviT5HEf6iq8iLj+yTxx6x+cMbVuGpnnfIiqDFoJTWqypSL7lVOxZTf1/Gdyuc6noxdXI2zyjhrozxJnLVxVsazdlbOKi7aOCtPQosKZZy1z5XFhHZVcdGoIC7aVfmo46J8apx1XJRxNc46rioq9O4bu09V4qyNs4qLyrgaihIVyliXIrs2qhZqdxZXQfnxWf1YpalxlkR3O6tiXdt2GuwqtI8qvlPHd2pno+Ki46J8o8ZFqNC+reI7dSjfrYwgoTyJi4pvRJztzhIqlHgWTxJnnfG58amOixIX8aJ81IlPVVxUxh+SxKIcj0efqipTdLwYV1WMH4fVD1xQ/rCqMollWZxVcbMefPAg2SXEVYX4qJDEWeIzFVIhQcRV4htRQdGh4lsqiBcdFBU6lDiroOi4qKAoT+IPqhB0qPiWiouOz1RQXnTGWflchfK3VyFFEmc3NzfMqKWcVZVnU7Qn5WJcpfzgrX7oaiRtXLVPpKlIdsuyqLA0x5uDfPWOaaU8K5/rkMRZxWcaEyo+U8ZZxUWHCmp0qLiqKKSi46I8CR1UCBXaECqo0Z7EVXymjLOKi5oQUtFBXNUQakJ8VKOCuKiKclWJ35dEx5O4iKsaZxUX7dn4VFXbMtLl5uaGRFX5Q1Iu4sdj9WNQgyblqtDaUMXEYSlbqOK4Ljpjsks18aREUFpISYVBRVJaUIgoJWQXlKuICkEbpbQnoeKiPAkdEiouOi5KCBXaqLjoeFEhhURQriIqBG0I7UmouChPQgdx0b4RL8oopeJJfKpdVfwJxvdJIsV6d4ugnFWVsyk6TJG4iKv2w7f6gUsNaRfFpDHa57qbGVVtPaB2SbSDq8agVQZNRikyaGVIU0OaGoIaFS/a2ajQRWWclbPoeFGh46KcRcVFG8/aKE/iogxBiqLiRTsbFQqVOCtno+NFJS4yPlNDqC4tPhpnFRdJVHxiXMRFV5xVPBmfagQj0sXhQCJdzqpKfBSkXOxFhwnth231E5BEKZXR2tKlMmrCspDGuBodT8bVuBoVT4Z4MoQyJrSPKuOsURnlqhPPKi4qlKtKnLWzUXHRRoWKF40pChPaR5Vx1siMZ5VxFlRcVFyU3xM6tKj4lnY18aJ8rg1KxZPxrH00xSZSxbr4U0whTLHED97qj6gq3yWJs/L9kvg+Vb5XEmdV5VlVeTZCjdY+apNBy7brXm37pmrRxatXq3/wl7/yf/+zf+nudrXvu6pyPB7NjMcPD5I4HA4qXrTvELqojGftqjLOKp6EuKpRcZUiLso3Ms4qVEeFCm08q9CehBIyzpIoVzOjUPFkiKsaFVeJs4pvjE9ljwpqfCoZF1UqLjo+qlGhcFgKi9PphNG9SOL9abPc3Ho0vvjNP+CwcrMaY10PJjsTz5KIEiRxlhDfVlXOkvhP3eqHrMazKTq+U3kyoUa0rnJYF7fHg9lP1r5RVfbTJom1FzPj9PDo9nj0rOJbgoqLdlXxZBQ6VOKsnQ2h4iq0q4ono+OijEqp0EbFi8aEoOKiEVQ8ibMOlXHWzoZQcdFxUXFVXnSilIpvqbgKHZ+rUXFR2VUdvJjQLMviZikfsunbo8PdLWszY+9QiIvyUYXG7sdj9QM2SLmoDBafa+xmho6kDaoPbtbFm9e3fvs37x1uoorTdnJ2XFY7tscTs3hWvq18VPFklKsOlWhXlfGsXBUqnoyOi3I2KkiUIZSzuAhVlBJxVkGiXFWojHZVGc/KVRln7RvxjahQKEN8Y5y1q4TyqSF0UKOCCUZlJJEZ1WVZV4/bo8ObezdvXrEutpzsCRlVJa46JC4mtB+P1Q/emGqNCY1KobE7S2ImGElUleNN++LNa1/99r1933Xo0N2qSitrL87a5yr+oELHRSXaVWWclY86CB0vylWFdjYqtKuKFxVX8aLQcZXRrirjrHzUoeNbKnFWKONZB+VFxR9W46yqzIxkd1ZVkti2zWl2dbO4++KN+sUrlrJtccpYE+lS6FBBXHSRuGg/fKsfhUG7Ki9SaGdV5SyzS3bLcnB/f+vu7sbDh82+79Z1tS4l2S0V97dH+76r+Ez5RNpFjbOOi0q0q8ooV53xrFAp5aPKOGvfmChEVHxLKYKKs4qLyihXlVGuOuNZuar4RJSrzhBXNQTxjVGotO9SrqrG7COJqrJUmRn7vnuouPnVX7j9xWtuj1RMe1K2jLVWxFn5Rqi4SPlRaD8iKRcpT8qnqkp3YZhNVxxvVl+8+YXbmxvdraqcJXG2LAsTSSSRhEQSSSTxXSq0q8r4LoUO5Q+r0K4qPtOh4ztVaFeV8V0KHSo+U64641MVn2l/mqryrKqcJdHd1puj17/8wvr6nmKbnW6WNolnFRcdGo0KFT8Kqx+4KX9UVVmWRRW17ZI4W4ovvnyte/W7v4mHhwczo6qcbadHJT7V8ZmqcREXFd9S6LgoVx2fqbhoV5XxrEK56vjGOGslQlzFtxQ6LspVx4sKKs46PpfdWcVVjbO4Kp8r46ziIonu1omzbd8l8eru3qtff8GXX3B7I9k9zqaPB2XkNKpKxFkHcZGiMXGR8oO2+oHrMOWiBHGWGoSgSnerKlVlJpJd1+L+ns6txw+r9x++Mvs4Hm8JDw8PjusB7dmUiw5TRflcedLOKqhFG8tQYs3ojE50SDxp0s5KY9N2amSGtEqT8lFcLIPyqTYqo7JrURln7RtpFU8K0RjjjynUtM+075dWC9XtMbv325i13P3yleU//wte37GU0+Nu33dLHS3abnTYXU1R5cX48VgZ3yfxmapyVlUu4kUSz5I4627fZ2Y8qyrEWVX5YzptsMST0UGNs7jqRq0eT7uz7lV3k8icfHjY3Bxv/aN/+Bd++eUrf/VXf+Wrr95KuL07eHw4od3c3OluH94/2Pfd8XAw1fYiXapKd5vEKNu0DFWLYxePJ+v2wX3Fsj26X8vjwzu7g66jcovCTo2Zt7b9g9vDUabZbh3We6eHTS8svdtrd3Nz5/3jg/dfv/fq7l5m8/jwwd3N6v7uYB7f204f7Puuq5XVDF1H63q0nU4Oh0WvB6fTyZ44nU66W6PSFqWVVemJzMjOns3DvjneHkyRxOFwUFWy7yxtWRZ77b6e3UPH/stXjl++cfoHv7Z8+cqWsZ8eKA6Hg/20OTvWYj9tOi2FMOVFXKV8r6pylsSzJP5TsvqBa5+o8ftS5ap9S437u6N1KVW8cmOf12L39uv33r9/5+7u3r7FzGamTXZVJdgTbm6cZnc6nTxsu9O22cM+q1Fev/rCIdwsB+u6sr93Or13Om3WLm/u7z1u5fEDDx9OLHG8KevxYDGC0zay72pty82d9VDWw8mH01t//dXfqFr0YdXrYulF7THbydvfvbXWpprjsupumUYri7Nk9/DwyKmcda+O66qVmfHw9r3McIre41DtuB7cHm4cDjeONzdy0x63k4fHR9k3tS6q0bzfHmwitwe3v3zj/j/7teXL17bj4m1GhfZR+0Z8JkV8FD8eq5/Z9l13Oxzal19+6Xi89bu733n79XszzJzs+8kMM7tlOYjxcNo9LqsPszuddo+Pjx5Ou8d97NlNyru8dezF63Wx3B/ULNbl6P1pd384+uf/6l+6Ob52OHzh9v6V9XhQ63jY/72v3z+6vb2V21XfvbL3rbcfPjg9vHW/lncf3rq5uXFcbxwcPXx4tMyq61ZZ7ftJL7tVqx7bvtv3SEphm83x9s5pe8/Ouq7yuOkq+2m3P55sX72zb5t52O2nzaId14MPNzfqdjV3i6VvbOKxhqUsXXajjOXu4O71K69/+YX65S94dcOhbB1JqT1+6lY/cTObfd8lZV1Xh/XgF7+4dXt7dPrl7vS4e3zc7PtIIlOWZTHDX7978I//33/tcT2oKqy2dbEtnPYyaafTOHac9t1k82p/8Bf3d95vD/bTo1/+5W/0HJy2ow+nMR82fSzWG+6+8G++/srx5uC4Hmynzdfv31oP47/57/5bNwf2dx8sOZiH8X/+b/+XD28fvL595Zevf+3uvjy8/cput28n2/Zo36OqSNmMHHebsfbieDz63Vdv1Wl3evdofzyx7XobhhpP4vT4aN822wOpW7/6zRu/+uWX9qVkbVPsM84ON0fHV/e8fsVxxe7DdrI1lvYzVj9x67qqin2Pmc22R/dqXdu6ttevD/ad8lE3j4+cfnv023/6/3icsiyLWhd6pRb70kYpi70Xbx8/OL1771Sb//If/qXH3pzev/V+P8k2ZlbT96YPBtse+9Lu//JXPjzs/vrfP/gX/+Jf+Dd/9a+8etP+q//xv/YXd7cOt6/Z6Lf8u9/+zl//m6+9Ov7C428O7m9u3ay/YN9Uj/UubpZytu+7zge/e/hrvcSbm4Pj/Z0P//xf299+kHcPlj0OWSxK96LWkiopdrEt49TcfPlG/1f/hb45UEOGDEvTC9vJvj+qbde3RzfLrcrudDqh/NStfuJmNlVlXctVJLuIs/2xnK1rO6tCudjsDq/uPPat04xJTEKFRi/2nT2jZuwzXt8d/MU/und6/Q/Nh995/zf/zvuvT6bK7f0bx/XWv//w4Ldv3/mwnfwf/+v/7v3jo8cHvn771nLYHH79hVe/ujfIu5PaFpb29YcHv/3de1+Hh/cHhz748os3lhq3d+3Nm3uHYznNZqbVunr9l79xWHdf3L1St6/kn/4zc9rk8eRocehmIvtuiukyS7E0S7O2Ph64PbIWs9sqplt36y5ZVtnL7sm+Ke3ssKyy737qVj9pY5vdWXfrbt2tqiWRlNN2siyLVEvIsK70gfVYXn3xC9M3tm2zbZvTvtuUPag4ZQyW3h3Xg75dHQ7cfHlw7F97++bof/mf/4l//E/+qfcPq+7Xvj6dvD+9laZvDqQcDnf6vi3Hk5PyAQ+P7/3meCTFkcPtK3evF053Ttuthy3+6q//LbW5f3Xw5s09tfnw+NbN7dGbX9/4n/6H/55+T93Qq+myi07rZbXUgnHKbhLTK8uqDqu6LYebozquCBlZyyyrrWLPaHE8rNbDqjIe3n+wP+wOh4ObmxsP++6nbvUTdzwe7bOZPWZGdyuhSjLUqG5qzB5JsFoWluPieHtwu97JbLZ997iPx9Pmw7bb9nFzs8psDrW4OaB3g4fHsbxqd7984+1a/tX7r2yne/dvvvCofchOM6dxc3PrcHNvn7E/Pnj34WTF4XjHxGwnPUfvHzbqhr6xz43TPpbDat8fnDa+frd7+/C19x9+51e/+tLrv3zDfZtZ9B6K9/vJZHdoqtu27wrLYbWsi769tdzd6Nuj/bb9u+0r27Y5nB6pNoeFXmw2D/vm1XrvZPfweNITh8PB3c2tSmynTYWUn7R1ZlSVZ1XlWVVJ4s+RxPepat8libMq/1F9OD2qQlHFaXZV46yqLMdFdXncHq3r0ezjw+nRuq5iM3mUOaiMdWFZFzc3B/fVovzVv/1ra7MmzGZdy2l487o97rttWbxdeNe4O3r34YP15t52vHE8rmbbfP3h5P3D11a7u8PqN7/8pdPG/cq+75a7IyduX7/xb/7lX6ltcexbx8M9s2Gx18m7x0fLzb3bpX3Yy9arvcnhqPfiFPuycDzqjEk7rqvjulqPt/r2qG4OtkPbq02PWheHw4HDgY59320dqVjX1WbTibUXS2FiZlPxJJQ/S1V5lsSzJP7/kMT3SeLPMTNWP/vT1VCDUINRYsnmbJyN1mSV4os391ax7g9uE/fHcmgWdI+TxXZYzfFIH0wvtqU87iN263HltKsptUcNaxYHtLOmsbAeD443d3arfYsP+4Pb21uKWkhFdVhGLZHlYGsi1i7WstzdWHbWdbdaLHvTLetiuuzGNrHXeLBTdBAXFS8qdFHxolHxs0+sfvakXJVvG1eDwSAYHTqjxNkSEvYebTNpr1/dWbJZTuO479ZlHLAYsnussoW96bVNythsc2LfLXV0PK5eHe68XlY3y6M3d/fWYCcpgub29tYvfrGbx3un95we0cFIkWIvNjHTJqWKPSUp1ax3N44Wx0OsG8veWkmXWcspbPvYxKk2jj4KXSzDNAmNCo2Ki5Sr+NmT1U9aIwgaQSP+JDUqdLyYouKia7RRQUJ2ZjeeZDP7SbSlVneHO+vNnYd1oRbqZD3w5u5e7+UXN2+8WhY3eXR3e2cpEkoRFMfj0atflEO98fie7cM4nU72WVWVTfQacxrLsjgej9YigwldlmWxHErvu4j0IiFFEkFEhCKYol1VaCzDjvYkVFyMqxRByk/e6qcuLRU0gkZclYho0aKldkE8SaNVFowUQmOctdmispsZs6PbWVVZs3jTR18e7v3q1Rs3d1867Yus7f2pHQ7tzZsvnN49WLa2P24eTg+27WBZWLEUduzMjF44LG2pdlrHq1rt+yod+35SSzmebnS3N2/e6OE4pcbVsO/DHvZY20VSLopWjr2ylMfaTaG9qFBYwtLEVYopBikSKrSfttVP2HjWrtpVu4rvM4UsopUnQflGo0lLLdqie9W9W1AWx6UEdw5e9cHtcvDQzVqW5ejmblUeLTWqd4zdOM3u4RELS7saTqcHDw8nfTgwi312d/f3TlOImpYqi1a1WHthp1Iuhmy7bLt9H4uSYk9UvFiqtWZZfeVkLxTKi0ZQQVzsxWBv9qKGdRA/aaufvEa5KhTiqhG0F2kSNFqqjVUb42yMFi3oZVHTuk8qrYrCaMJh52bjeIrldFJ7oVU+WNx49+GDbNz0LxxuVrUc9LrYimzcLNR4MXm0z6OahRqn+WDbH51t+y5dTqeTqsXpdGI7uiiEZZDobmst2kqHjOyje9FpHTak2NuLlO+UIsVWnJpBNR2W+Elb/eA0gsaQpsbfRqftipSLiqvGqCAsIWEJg2g0aVdjPKkRZ0N50qqK2k3KJLaJDQc87uP22Nal9EK6ZIZQqHDTq0e7PbuH2XVOst64OXLEwzuOaHSXZVmsa+scfC5UJMROSELQKISqosqhF8flYM3CPkYMMpGMVEliihTKH1WhikbQ6PgPFD82qz9TVflzTI3vFVeJqnJWVYRWqqLS/qC4qCpnVeVZqi0hWipGVEUnKlE1emLxZCtmdJVeD6I8bidTm/SmMlQUWpk01fZtVMbSsTj48Pi1U7gprKvH8JDN6bY95iQ3t5JY6sY8UClrH4y29667jM1p46a5vSMfEKqjLPaNbR8ZGrtWtZvE4bByPErYncxKN07D0vZDy7vdIXF63NUsOiwWSy/SZYqpsc9YlEpTCxWqqdI1zmbbnVVG4zCxFJs462nSvi3Oks13qbQUCeMqibMkvleVZ5X4j6mqJPEsiWdJpFj9EKWcTbGmqfG3USFpykdpbM4qLONiGRfTrcKOKFdDBeOiXNWQFaNCEtUtRVyl2HtMs2GaGtpKRiUoZ3uxGoxGu0pTQ1xNtUphIaOFXlQ2Z0uVLYMxjZWeognSpdOWodChkPItCTVNUF6MqxQVOl5UKINW8bdT42rxQ5Vy0X7qajzr+JYUihRT/oj2qYoXVSS74/Ho71pV+UNS1IIuiqpSVarKn6LiKiEkcZZEEj/749rPLiqualzU+EOmylVLNZqUT3VcVJV2NTNujkcVf2eqyrOqUlXOqkpVqXJV2FjXVVWpKlP+JJUQJP6QKZ8pP3vWfvYnmSJFiiCY8kdVSOIicXs8KAQ18XelqjyrKt8pcby9kWKb8WyKFFPER4WaqCAh1EQSSSTxsz+u/UwLFWow/pDRok0RpBhtkPKNJu2jUaEws7u5udEhu78zVeWsqlSVs6pSVT5T5f7+XhL7vksivm2KuOrQE4LEp1IMUj5Tfvap9lNWoxLEd0kxhSLlM4PRrhotvq2dDYaJm/Wgmgol/mOrKmdV5VlV+dRpiCcLd3d3kti2TRJnKaZ8p5qoIAjlSSJFEp+a8pmKnz1pP3syGIyzqfG5Ji3aKEGcNdpHRUr5qKo0OiSxLq1CiQ4Vf2+mXMxEEorD4eBs33cpprwIUj5TWAYTQk2cJTFFikF8ruJn31iTSKKq/L4kutt3SeIsvl9V+T5JPKsqz6rKWRLfJwniT5VEVXlRkRBEzASjgoy1D3SzxLK2h8fNvi2WQ3n/4YM4a4IaFymqdciMdVnM6dHN4eDVLRU6Y1naoz9TIvGknFWVs6pCIb7PwwPHV8UeHnbu76hyvL3Rmt1FEkEm9mKKmXFYFqeHB0vw8GBuFofDwcPjyXo82k8nQhKfqiqlTPykJdF+Rg0Gg3GWGlMkoUixB73S5YSH0wklxZQn7TtNLMphaYoK5Wwof78WEpJQRZV1XSURf1yF08Mj2856UCGhqkQ8SxF06PjZJ9pPXGVUaJ+o8SyJJM5mqIVl4fHEhw8fXKTRvksSZ1Vxd3OjsRSVUfH3rpt9YsuwNMvicHsjRVU5C4IUU150MPHw9h2PjxwOzk6nTVUZMUXKt3T87BvtZ08G46yNT40yw6TsGb0QvH33wfuHk2jPRqN9qoOJ7nZ7e1RYikaj4+9VN0kkodDt/v7es5RvmSLlovH+7TvevqOocDqddLeZ8fumfKbiJ6/97KMa32Xfd2dJFHZ89e6tbXZXRdpH7VkSM6OVV3f3FnR5Mhh/36qoKheF4s2bN7rbzPhjKszDybvffcVpVJXso6okkWKKKT/7A9pP2vhofJfuts/YxWg7Pjzy9bv3ulZTLeUbjfasQhIxutvd/eKsUPGfjKpSVcTF4fVr67o6ze5P9fXvvuLdO7pVlT9Fx8+etJ99r2VZzIxnwcPDg/fv31vX1UWa/489ePuR60rTO/17v7X2jog88ExKqqo+uA9u2237eu7mev7xAQYYDDCwgQHGcJWryiWJEikmycyMiL3X+t7JnangoSVRVS2pSiTmeRBvknlFaUJiNUDwBvMXlwYKKAJsMHB8jGqh984iBRbfKgwlgsuLC6bzc5AopfB9xP/voPKesxKUyGCCtwULmSviQIiDIEmuOCiZpKCYrwWW6JhFhjCwa8mudep6gCkQN8JcC3NNJLgTToo7qwKYaxZIwTcFYCC5EYD5BvPjMARXwpAJEbAJXILZSQKDQeaGuBIYSEB0qoLtbmLezoxZWEWSGfQOVgAJDqwEB12JCBYmuOYAJThACQ5QggOU4MBKIIAEgkXy/quSeJNt3mSbd0mJd7J5F0kc2ObANgtJHNhmYZtrMqodSOTAGAhuBFjYIrhirsmAuSFRaiU8Y5tEFJKOMQFhpqmh1ZpSxAx89mLmN599wTYrtUPLTl1twB13IwTuqDdWRczzluOh8MndYwYggLnDahi52O4ZjgqlDIQqQkhCAsw126TBEpnGEraxwTbG2OAUtrGNMZkJBIjvFIYA9vsLVsOayUltnRhW/OKf/4lf/+//J7VWNDUqotaRXsTFPLPPhgNWtdLaniEK518+Y7M5Ij66T5kg5o6GgiNwCNWKVICkOaEnmoS4YkACAxIYkACBA0t0hAEbUiYMRSK4Yb4mYZuFbd4luWGbhW3eJIkfIjN5k20WtrFAEsEHIgUoscAC8y84kCEcLORAhnmeyeRKUKMwlJFVXTEOA6UMXOwnGmIHPNnB0xeX7LPgumbOAILMpLVGa43MZBFAVVKzcboqnKwGKlcSMpPE1NVIAra5EbwmIPh2wWvBv14SXFFiJYTp1RDAUFjdOuZy2oFEKQX3pE0NSdQ6IgX7yz3rsmJd10wvd5x/+RVc7MGwZqTMiVKEYZ47F7st57s9LTtRRyzA4prFNYuFEQtLJFcsFimxSPGKbQ5s8z4J3ncOIDiQQQZxI0hEghJIIBEJJIvMpDtJTFfQFXQF3YXmAmVABfYdnp695KsXF/QUUQdaJlbQe2eeZ3rvBCBDkCyK4M7tW5wcFwIIGZG4N8YSiBu2ObDNn4sEgbCNasESYBgKdx49YOfOHJAhZhqZnSIYQ4wG0pCmGDw3Xpw9Z/vFl3AxwVChJ2qJM6kWQxRCos/J7vKShQUWWGCBBRbfK8w12xzY5n0TvOdsYxuncArb2MY2ciIbMHISGJGAQYllFJUkaIi5J/vW2TVz2ZNdmvFopAMvdvDiYs9u6mQMpAaSCiESA0FEEAFyp/eOe+P4aM2dW8esK5AwSNQA3BFvs41tFraxzU8rCEEYBAihEuAOQ+H44T3K8UgrsO0zHRO1EIhIKIjT9RF9P9G2e9ZlQD158tljXn72GPambtaMUWBquHVGFTZ1pFrkfkYW38UCi28I84ptDmxzYBvbvA+C95wVmMAKrOAgnIgEJSIJDCRgUAJm4RI4Cg3REI2gqZBlIGvhosHjF8lnT854uWv0uqaXSi8V6oAoRASlFIZhoCjI7LjtUZ+4d+uEoxUUwNmokQwFisDu2GAb2xzY5s9BBhmCgm0WKsHshABunXD68QPmEV60S3okZSwUmWiN0WJTBgYqxTAoKE3MF3tePPmK3WePwUAURldiMn27h6mxKpVbp6fIIIMMMq9YvJJ8U5i32GZhG9u8TyrvMwsnIAHmmiHMNZMEhRvJwkquKUkFDegqSMICQqSgA13w6ZeXPH1xwdnFljkqDCtSBSioVGwIBEXUgCCJ7NQSHK8r9+7coohrFUN2CCMn07SD1TEHtnmTbcRPzCAJ0mQkEKRMRKesBu588ojd5Zb55ZZZZi2Rmbg3aq301jharel0tvsZh1kPlb6b+Oy3v+dXpTCcbojTY1bjiOc989RQLdRaSZKDBGSweCX5bjIIY27Y5sA2C0n83FXeeyIJwnwtuZGIJBCLFF8LbgQpMUu4BCqQQOuwneBi35h68vjsgou5McdIlgEr6A6yg7JTVZETYZQzZCfcOFkPPLx7i9MjEQlhqDXo8w6FkE3vCQbb2AaBbbAxBvGTc4eoYk5DM2UQlphINpHo3ilHz26xO79gv+/UtqNmEjJhsE0JYQrFSWbHCbnrzG3H57/5HUf3bnPn0X3K6QkaBkYHnpI27ailYkEKQpC8mwyYb7DNgW3eJ5X3mAViIRbChEEkMiBIJdccWMHCBCBmBS0CCkRAAy4mOLvY8/T5Oee7PRmVsjpiVQZmw9yg9U63Ic2wCuREfSLdcJ8o7mzGFfdunbAK6PNMDEENse0ddzPWgm3EX5YNkgCTmRTAguYk3FmtBurtY8rJhnl6ybbv2ShYRQWSWgf2+z0OsV6NVMz57oJOslmtKN1cPj1jf7nl5O4tbj24DyfHKEzNBgkOkMECCTo3LP5ktnnfVH4g27xJEgtJLGzzLpnJmySxkMTCNgeSOJAEAlvYYBIwtgGDuWLmeabUikpABHUYQLCb4Xw78XLq7Gzm1tnPE7sp2c6NqZnZwbBas2vJtNvSKEQt1FoJhHsjMomckRvKGeXM6dHIJ/fvcmcDThhrQDZaT1ZD5ZqTcRxpgoiglEKNSi8FG9wbPTtDDbJ3VCAiyJ4sIsA2PRMQCpBEZqIwIRFRCIwxhEkLSWBeSSCbUQgB8zyzKEOlG6Y2c3z/NpHwJH/P/slzalRGzDTNVAVWoWfSdjtUC+txw0rJTNKnhEhaT862e158+YyyHqljJUrh/iefoKGgcYBMylCpAZfTns3xisvdRPJNwQ3bvEkSb7LNu6TNu9jmXTKTd5HEu9im8h6TwQ5CiRwEHTlAXEkMDOMIUXCpEJXzyTx7ec5XZ885305c9KQrMEFXYAo9glQho5DdpAWlUlUoQ8UK6B1s6HvGUWhKpv0l63Xh4wd3uH0yMs9mVCecQMcGYxZGpIUTbLOwzU/FNt/FAhlCkAaLaxY0J7UWNneOufPJA160ZPfiJUNUbt25xYtn58gBIaTCtZ5YEJhxHDHQ3Gnd9HnP9nKLnTTM499/yvrkmNN7d9icnnBy7w5aDeQ082y3Y3W84UNX+UBZXAkaovcEQQfOtjs+++oFT5+fM6eJzTGpwAoIYQ0QBRChAUdBmYSTa+7IHWVH2ZBnNHWid05G8ejubR7dPeaowrTdoloRDZkrJhE3AlPJBNvYBvGKJIT4sdnmwILkNRlCgCFJrhVo2RmPBk5/+ZBiePrbPRcXe0pWcigUCjLXnMZ0JFFVyO0EIVRE5YqTno3WGnZSS8Hacdmf0bZ7CmLz4C6nqw0X8x4lEJB8uCofABnCgHiLCVomGZW5w8uLHU/Pt7zsxpsTShRcBiywRU9oQO8mAXtmqIEN6cQ2gVkUkhKdVW8wT6zHwkf37vHx/TusCyg76yoKDdkcWIADK0iCBDIT29jmTZL4oWxjzMI2C9ssbGOBBTLXIrkmgQVlGJj3ezCMR2uOPnnAPO14+rtPefziKQ9PPyZSuCe9d+hGDkoRpRT2+z1EEhkQokRQYyDHyqKUgiO4ON/y8nLLPE3cz+T40X2qhQEbQpB8mCrvOfGazCsmSIGp1NWK3QxfXbzkyYtLZioMK2bDrs2YhUgCKzBBKkBwvt9SFdQiiiAwciInJWeiz5ysCw/v3ubRvducrKA4iZypAvfE3LCELZKCHaQgE2xjG9ssJCEJIcD8GGzzJtssDCRBAWQoThYG0hCAJeacGSx0PHD7kwfMfeLFp8+4aBO1FwQURNRCQRQFBbOpI7ZJd3o3TpAChZHE7mLHsBoZEwpifnnJ5dkLju/fBRsZBFhcs7iW5pp4/1U+AGEQ32SCae7UFUwJF1PjYkq8LqDK5TxTyoDFNUXBVKSgcKP3zlALq7FSMbSJeZrp84TbjlvrFZ88vM/Du8fUAPfOqghVsb+8ZCyVRRIsksAEKWGCbpOZZCYEr0hCCDA/hG0Q12xjG9ssOiYFFmAIQ0muWUDAPM9EBF3BZZtYUyinRzz4619x99YDfvNffsOQRoZVqQy1Ui3ckzZ1ahG2IROcLEJCVRTBkSpjDMjQSzBPe6bLLURlVSqzG1180CrvuTBvEWAWAYiMwtRgOyeNQq8jnYo1kFVAI1kE2UUqcZqF6azGkaEERUaZQDKGifXAiPjFg/vcv33EukK2jjxDKciJsuMQEBhjB5bogiRYOIVtbGMb8ZokMD+YbWzzJtssLEhxTXzNIEAGspNFdIydSMnRMMKtNWXc8NEvd7SXE7vzC9yStEkJZ9Jbo7ckDJKpEg4REYAIizFENOP9BK5Ml5dkDWgNSkWGAJK3WSDzQai851LJIkhksJKDFJycrNh1sE1EIIneO9ZMRKFnBSU4kCAiCHFNFNRmsnU6id1YAUfrkdsnx9zaDHx8q5AJbZoZA8ZS6fNE751h2GCbGwICCBaysUQD0pDiSqI0JhCFxAiBjUiKO6KDGilIglBHgMU1RwKJxdcCbK65Im4EN2TAAQaTQICSg1IG5jbTeyciiDLQUzB3oovTf/obePySLz/9jMvnL+k5MapAdHp0KqIKaqkUBZKwjW3SyTzvUSnMTtabNQMz1AISOLEgeU3mgyGDBdUWC0ksJPGmTPMuEbzFNgvbLCTxLkXiW9ksJPGKzSs2yZUQKbBBgjDXUhCG3eVM2QycjIVNBGuZoQZZYJdm6kmGEKYA6p2CKZlUTNBRnyi9MwacbtbcOz7m7u01x2sgk0InCmDovVNckAppcO8srEJisu+RRB1XxFCYCjzbzkQEpQSXlxfU8QjKyNQaIpDMIDOMMF3sqGVkakm6cVpHEqgjzDkTIYqC7CYT6FDrihLQo9LaHgO1BmdPn9Cn+6xOC6010uBa6D0ppZAYd1NVqXXkWhfNQWhAg2C7Rx+d8vDRKdOTp3z2+z/w1VfPGAmOT9dM08wgWMkUmWoIrhh6moupsT5aYwe/++oLclX56NEnzH2irNfMhgxIXgtes4N3snkXiXfKTN5km4VtFlLwLjb/glhI3LCpvOdSYAE25pvaNEMMjBXu3jpmOzfOLrYQjfV6Q6xHOkLZcTbUG+oNZRJ9RtnYDJVbxyO3j4+4fXzM8SZYjzAAs41oQCBADjDgYFGiYpsUFBJVAQmeaVmYO0wJmVCAWkRBdIskCJKIithD2yPPrAZBCegieW0YBogGJGAWUgEC28hCEoGADjYyBGAVkk4IUkGEwICNuGKuCDkAkVwJKOsBFYPE+PE9fnWy4sXTZzz/8ikvX54zDKInzG6UFMVQEYGgCJ2smcdgthluHTOcHrG5fUqsBrIId0jA4lox12SumfddUPngBIswJLBZjSQgwd3Twr6dcLHbcrE7p9ARogAhUQRFohZTihiHwtFqw/Fq4PbxEbePB9YjVKB3aAlSggIZwrymBENEAEICm2tSwYI5k+02mOeZ3jsFKKWgMC1nIFjUIpxmbjOkOd4cUQqEAwQIMKzXa6QdTiMJSBY22OJAEpIwkA0KMIRIB7axTUiYpPMdBBg0BNk7GKIUyt0T7h5tODo94fLFS5589pjek2zJ3JNIUxUUCQK20wxTEkPl+O5tbj24x+ndO8RQ2Wdi8cGrfDAEmDcFZrWunO9mcioM6+DhnZGed3jy7CX7NpOZRARjDYZhYFNHxqGwKoVBcPvkiCpYFRgCooET3BOyoZXAEAYZwiBAhjCkk1JFSLRm0kkphVLEEMH5+TmtNdJmUUohDZlJBMgmArKb7J1CcnJyQhUoAtsIgeHoeE0EuHcijNIoABk7AaMQSCxss9vtOc4VEeAemASSb1CCA0ggWKRgcmIZ2ZBJ7SJCrO7dZnXvDnce3KdPM/N2x/b8gv3llt3llu0849YZNytiqKxOjzm9f5fj+3dgs6K5M/eGSvChq7zvHKDkhgCzEIkJpssdZCJ16Gs2A/zi/jGnR2t2ux1BUgRVQS3BUCpDETUKFVMDyI7nxJkkEAFjBBoLcyYQLMIgQIYgEdB7p9QKEj1nWu9EjJRY0YCvnj2nzUlEwTYS1+wEArsDAb1BdsZauXV6SgARgm4gcQbHxxtKKbTJSAYSKQBhG9SRBBImcIrz5+ec3lkxjhCCTBA3bAPJKwITQHLQsqNSGEqFNHPrkB3SlITh3jE1oTazmWfabs+02zNNE26do3GFaqGuV8TJEYxB2ky9kxgBFh+0yofAAST/kkim/cx6sybGkSnNtO8MtXLvpODNMdFnio0UBDcKItQJQ58nbKM0ShMyQVAEdFEILK6JRIYwiBuZDajYJm1sY8Hszuzg6dOn2GIYBmzjTFDBNmFjd9JJz5khxGo1cHJyBAkhUHZAGDg62hAFzIy0xjLC2IndkbgmCQO2efbsjDuPThjrCgkCkRQWmcnbEgQ4WFiijiMtO7tpIiIYhkJQ6XNj3xq7iwuKglUdKJuRejRSdcqRAQP7BhKEMGaeZ6bsUINaRlp2vo0MFggw77fKB0yG1VgZh0IE9N6hTbhPRB2ogpj3FCdSARJJiCsOJDFIIGGBQtgmDG6dlFEdwFwTQTgRB0nUwsI2izquUBnY7vY8Pb/k2YuXwMAwrNjPJrMTJSgyCpPZoYN7p66C9WrgaFVxh1LB3LBhvYYIYycq4J4ojLsxHQyhQBI4IMXZV8/ZXjzk1mZFDFwR3YI02UwpYmHxmpIbQSnQO7TWkIQkxlooq4qGAmkWLc2cDdlkJrYhzRCFQDSbuTdmJyqBFBRBimthPliVD4DMNZlX5ACSYRho00z3HgNjEakkcw/dDBKFRcc2TmEb6MwW63GFBaKAIHgtCNJC3AiMWCQLC0oUUtA7EIUyrKAE2/0lT5+dcXkx4WEgasXzTGYShSuJnJCJM0lPlBgZSmWokHMDVUxHCnBhGAElqCF1UCIVjLGNJBaSEMIJu/OJtktICEMC4UApbAMFSL5dMu8bJYKToyNsk5lM00xmYpthGLBNOrGNDFGCiCAiaHOjlAICOoQNITpmmvbUWvk2FtfM+6/yNdssbPMmSbxLZvJ9JHEgiQNJfB/bHEjiQBIC5M7CXDGYhbG5IlprLCSDoNiIJAAFkMYWN4QUSFxLgp6Q4jWL10zvSQ2ICBQiFCwSI8TcTQlBrcw707sZC6QG/tuvf0+USkfsdjukyjAUTFJrIJlxVXHbcnK04cvP/yf/6//yv6EE0mTr2CYkMs08iX/4h7/j//o//guunWFYk3MjohJRWGQmmYllIkbW62Mef/Ylt49OufOgsLuEYR2UAcpcmaYJSUQVEYFkJJEW4kqCe9J7chCIiIIFvXcOJIEgMZmdzE4I5mwsLMgQ1yRKVAzIYJuFDbaRuaHCwjYL27xJEu8iiYVtDmxzYJtvI4mFbd7FNu8iFSrvEdtI4iAAm28hzMKIwEogkBMLwpBKwoArySJ4W2CgKwBhAQ4QrwgYx0AJptN7p7NIUJKABbNBDspqTRrOLs1vP33K5bZhVtgCBYvECLGwG+EEJ2Tnk48fcbTeICAM8zwzFNHaxBhrShXr9chqPTJNW443IzkbSL4pgKBqxfOnF3x19wV3Ht7laA3nl4l7MAwj63EkbbqT3mdaSzKTtCHFaljxLjJYfKcuSPGKxTslIMDimvjhbHNgmwPb/DlUfuZss5DEm2yzCMxr4poDc0WJEaYA5kayCHMlsAIcvMniilh0CQiuKTCvCZh3MyKBRMHXEkgsqOtj5rkxuzFsKgr48vEFv/nt5zw927I+PQIHxiBuyMiAkgjorTPPM3//979iGArZIBAiKSrMvROjoMDRcXD37m0e/+ErILmmBq78S+EgqFy83PLFZ1/x0aO7HJ9CLYETeof5opFKCECgqJSAAsiAIXhbckMGmW+weCUFFt8g852SG8EPZ5sD2xzY5s+l8p6wjSRss5AEGEgWcmAZEK84sApJEiSpIAwpCBaBCZB4U7IIbggwNzpJcBDmWkRQSiGKWHQ3MhPbTHMjxpECTB0uXsLv/vCUL56eQ9nQLTICc8UGgW1wElxRgjvZZx4+eECQtGY2Y1AZkIxkFr3DMMInv3jIV188p7UJFOAKSnBwI4AEi97EEBvOn+/5H79+wi9++YC7j4ACl+cwrCsREAEEJJDZ6b3TM6kUOt/O4lvJYPGdZP4oCRR+HLY5sM2fi20qP3O2WUjCNpJY2AZMiCuJuOLA4loqWIjAQBKYJAUWpIMbAoI3WVxJFkK8KXhNgKpYJCZ7sjCJgVSQBKsKAXz5pfnvv/uUX//2c7ZT4da9++ymPU5hgSRsI4mF3ZmniRrB0fGGO3duIwm5Ea4oBOqUKuxO72aIgUePjvns3h1enG0pjLyiBIIbwcJNrFcnQPLkyzMWdXjA6V0YR5gmkzIKQxhzRUm3CUQGyHwrCxBYfC+ZV8J8g7lhgXktgTD/arY5sM2Bbf5cKu8J20jCNpJYyCCSN8lgAhxYgCAVhCGBIEmC4IZ4m8WV5IaxuWIEGBCJAQHmigPbQAJGYRRB1AGVAoLzCT774pLf/O4xXzx9SWekrkf2k0kKYBa2QcLuQCJgmiZu3z7mV4/ucXocVENxpU0zFKOaRAR97kQJWoO6gUcfPWR3+Sl9n6AECwi+wWIoKyIgs3H29CWtTXz0i/s8+GhFDdFD2JDZIUQoiBpEwDRNfCcD4i0BJBC8JvNKmO+V4lqYH41tDmzz52KbynvENpKwzUJAsEiSRQDBDbFIwEACVpCumCSVLAKQkwMZkLmRQABJGFIQJAkEVxxELYhKFJAgszH1xrTdMiVcXE784ctnfPr5M85eTnQ2bI5vUXrh7OyM1VqAQWJhG4lrprNaDdy7f5e//Td/Ta3ADEMJpn2nhHAmEUHPmc36hItnM1UD9+4dcfb0hGdfnvPdgqGMKMAktpjnmSdPLtjut5xv7/DJJ/dhhFphqAUCbGiGuScWpCDMHyUNFqTBgjBvkflW5kYKMNdSEOYHs82BbQ5sI4mfWuVnzjaS+Da2SUEQQLAwBwbEQgYEMtdkQBAGmbfJvCnMK2FAENxIwX7eU+tAqJKZXFzu+ersOV8+PePFxZ7nLy54uZ1IjThWTK2RbWIcN6yPBjITlGCQQE4CEzRE5/RoxYM7p3z8sMIE2WbKasB0SlnRMjGFlgkFpr6nTgPrEzi+teLp02fgBEauOYAACzBlrEQku92Ouc2MqwCNPH/6gq+ePOW//t//leNbGx5+9JCPPnrI6d0TxjVUQA4mAkhSXAtDCsKQgjBvsbhm8U7BjeRtYej8eGxzYJsD2/y5VNu8i20WkjiQxJ/CNge2eZMjOJDEgSQWKoU3mdckYYLODUtAgiFIEpC5Yd6QHITEWyxeC0BA8IqDAwtySMpmZJfJr//n5/zh0yc8efqCZy93HB3fYu4jLitSXPOYTPmCaXcGUViNt5gn0/tMhCky6nvwTKXx1w8f8KuHp6wBV2jd4M7J0YZpmkAjPUUdCttdY3PriEhIw1/9410+f/oZ+8uZaT8z6IihrBAj2YPuxm7eYnUkGIYVziQQm3IbSHqZyW3j8knn//nDf6eO4h//6R+4/+iIbihDhWgcyBCADAHI/KskN2yzEOKgiFds07kibki8RWJhmwPbHNidbyPxNfMuUvAm2yxs88eQTOUvzDaSWNhGEgvbSOJdEpDENyhZBD+UuCG+i0vlwp3HT57xPz79grOzHds+QB2ZOKYDZmGgAQ00IzqL3htQGGolmMl5R+87jgZxsq78za8+4vbxBgxtP5HTnpaFGkEmRCngwCQogaRHYgdy8O//4z/y3/7f3/H890/oAcPmiGyN3gtRg04AHRAJFBegEOZaMNJzT7SR6kRz5/mTS6o23H4oZoPMW2SuyfwkZF4x3882B7Y5sM2PyTb/GpWfAdtIYmEbSSxs831s8y6S+CmJyvn5zB9+/4THn39F7wMxnFBLIVPgAgKcIJABAwogqEVcXp5Ta3ByumFv8eLigke37/Gf/sO/5dHDWwyCPie9d0JiYRulofCaA0jedPvewIMHd7h4saPtAzRDEc5O64Ia4AHMDQfXDCKRjErgLOCOU3zx+IxpNqf3HkLhJ2WbH8I2B7Y5sM2PyTYHtvlTVH4mbCOJhW0k8XOXBLjw/MVLvnj8jP3OHB2dkDGiXnALUHAjgOCaAIOAgjnaFIpMzpeQM4/u3eZv/vqX/NUvH6KEnklkZ1UHqgYKwplQofNNFiRJEOz38PEn96mx4ne/fczLszNW4ynjasN+7kCAC4sw4CAMYiEyk2EccCbuQdQVFxcvaf05v7p4yGrgvWCbA9v8WGzzJtssbLOQxPep/IXZZiEJ2ywkYZuFJN7FNu8iiZ9OsNheNp6fbcEDQ11zsU96EyZQqchcSRaigAEFQaNPl5yebJj3Oy5ennHv7in//O/+no8e3ePy4pKT9YripJZgKIUKZEtwUIroCSkI8waDuNKIUhmO4SEnvHhxzna7pXtLl4lhoLcAAszXgmvmStDantVqoLvTG9RhQBqYpuTiorO6U/gp2eZdJPEutjmwzYFtfky2ObDNn6LyM2EbSSxsI4n3gRMKA70nmUFrybyboBQUQgYLZG4IwkKGAIoaz7/8nKLOLz9+yD/9w9/xq1/cJQT7LsYQQVAknMnUOtk6VQFD5S1KMK+kzFAhZygr+Nu/+5hbd055/PlTnj97ybQTY70NCAi+S3eSmWRybagrHAkE7wvbHNjmx2KbN9nmwDaS+D6VvzDbSGJhG0ksbCOJn7tMODk54eTkhMvtjLNhJ6tBtN4RJoHAQCInYIIk3FkNJmrjwf17/Mf/8G/5q1+c0ifo88zd0w1tapQQ2GTrZEskYUM2QxQQr1h8LZGDqc/knAzDiqN7cHT7mHFTiZI8/fIcsgMBGMyVJAUhrpVBtLbHdBSddAclm82KW7fE+8A2B7Y5sI3Ej8Y2B7b5Y1V+BmwjiYVtJLGwjSTexTZ/KWHIhJOTwr07p9gvcMBqhM2qcnm5xRQKCYKwEQk0RBKaYJr4z//87/j7f/O3rNZid9koglUJpv2enBtEoURAJhFBKQWlmHuDUoDkNXNgJQZiCOacaRdiHCr3H61Q+Zhxfcbnv3+BnNhBWoRBDpIrSsZSudxvgUTFNO9onlitN9y6DZfJT8o27yKJd7HNgW0ObPNjss2Bbf4UlT+SbQ5s8/+1B2/LdZx5HYbf37+/pZ1jJ7azZ2qqZioUnHHE/d8CHHAFMFWBAIFsHGut1d+LWpqekUXSdrJsS5b7eWaJHCIJN6nMVGZJmCVhkipu09EGjjfw93/3B/7pn/+Ff/3Tn2ibE9oArQV72O12tGHg+LhB37PbnfPwgzM+efqEf/yHryggXNh3GlB2xlFCp7UiiEolIIx7gVDV2Pc9PdC5YKeQK51JAgoUkLDtHSwefHjCHx59zpdffs633zzn66//gx+//56hBo6GI1R2ux3FhqNT2e/3PNs+w955/PQjvvjdUzrQAZXfSmVJVbFEZYnKz0nCRDuHCZMkzJIwU3mZxh2nkoSJShImKkm4VenEgg6PHp3w1Ve/4/Sk8Z//8z3Pfvxfznc7Hpw95OQINgMct3B2dsrHT7/kiy8+49Mnjb6DkgudogMdkNApeUEPlAWBCD38WeeXyIV0YtFL4h5ThAs2Hn8OZx+c8OHT3/Pjdz/y7Ief+OGHH/nhu+/Z9i3n5yPdkariwaNjHj/9hMcfP+bsww3P98Agq8M03gEqSZioJGGiEpapHCIJvyR2ej8HBx4cN/72j1/w6ZPH/NvX/863//0du3HP+fmOzz77jE8//oSz02NOjwbOTqEK9lsooeRS+LNAyV/IlQA9XComHdIhMuvMiusK6IECOp1isue/vh3ZtGMePIGHHz1g+/wB588esX3+MeM48s033zC6p7XGoycPefL0KacPB/Ydnm/PORoaq8M03hEqSZioJOEuaMj5/jmhcXp2wsdPTzg7/T3nf7OnNg17ePQBbAL7PYw7aIF06HspwqVwQwGdmQEMhEsjF8Ir6wSEDhjoAumMtWMzhAxH0KAJaY3Th0cMA3z4yUOSkAHSoApGZXQkTXo6q8M07jiVSRJUJklQuZSwRGVJEn6rAjIUvYe+3fFs7NSw4agax2cbhgGGAXqH7Ra2z3e43+G2ONkc8eC4+OmcKxaEK3Z6BIq/MFQAuRIu9Qh0/qqYSHhBilkHKp3Jg4enTPZ9ZL/f4wgqQxpQnJwVFhgYhfPdOSMjGYqhCjqrAzXeESpJmKgk4XVQWZKERWNn0xq9d8Yu7EfGdDSc985utyMJZ8cnfPTBhoEN589Hds9/YntetHZKD1csCFfsELmucyH8SsWs81edgnSebZ+RCBQDA8PxQMuGokhgt4Nx7HRGLMlmoKrQzr6PDGlEVgdo3HEqSZioJGGikoTb5ihlaG0Dm6J32PeRPkKlOPvgIX0cKTt9KwqOnVYFdYRcEAhXLAgXOhiMXAovEgiEDnSgmMh1Rae4yXAlHRKqFZXGkAaj7MdOuqgMKVJcKGoAqjAjfZR9HxmqsTpM4x2gkoSJShImKiQsUVmShENUFeM4YuBoGDDg2KmE45MjttuRASFhv99ThCSQsB93VBsg/IwCOjEYiGAgguGG4koRQEIsDJS8oAciVyx2ux3JEW0TkiCiEqRqYLffs9ls2LSiI8+3W8a+gwpDBiKrAzWVJSqzJEySMNOwJAlLtLMkCTepzEbDLAmzJFyqYpEssodFkWoDk+12y6QVF2S/PacsTOdSoMuVClUF6RQ32LlSTDpQQgdK6Ew6CMXATZ2ihA7oyHUlL3jQzqCD5zKyA4qSSzrSWqEj7qAHjmqAGpilyxKVJYZFSZiozFRmvXcOUyxRWZKEmcpM5VU13nEqSZioJGGikoRbl851hms6IbxMyaWSSyXXFDcVV0pQXqJ4VSX/j7x5KjOVmcp90LgHVJIwUUnCROVQKstkSRKWqCxJwm1SWaLyJqnMVGYq90VxT6jMVFb3i8pM5T5pvONUJklQmSRBZZKEQ6gskyVJuM9UliThECozlZnKfdG4J1SSMFFJwrtAZUkSbpPKXaAyU7lPinecykxlprK6H1RmKjOV+6BxD6gkYaKShIlKEg6hskzeZypLknAIlZnKTOW+aLxEEm5SeV0SFqksSYqbVGYqy8KSqmJRWNR7Z0kYWNJ7Z0kSDtF7Z0kSllQVS5KwTJao/JwkTFQOofKqVCYqsyQcQqVxz6ksSlitblPjPaeyJAl3mcpdprJE5H1XrFarW9W451SWyLIk3GUqd5nKEpH3XbFarW5V455TWSKr26Tyvmus3mkqh0jCm6SyWtZ678ySMEvC66AyScIsCTPllSRhloSZyiFGZJKESRKuG5EloVgUliUsUVk0FIeQZbJMZUlHllQVS3rvLEnCkt47S5IwU5mpTFQOkYSZykRlptJYrW6Ryl2j8jY1VgdReZeprEBlovK2NVar95jKTGWm8rY0VgdReZOS8CapHCIJh1A5hMrroDJTeZsaq9V7TOU6lYnKJAlvWmN1EJVDJOE2qRwiCYdQWZKEJSqvi8pE5W1qrG6VypIkrN48ldvSuEZlpnJTEmZJ+DVUZiqvKgkTlZnKq0rCq1CZqFyXhDdJZYnKkt47S6qKJVXFIXrvLFF5XVRmKr+WykRlSRJmSThE750lSShWq9WtaqxuVRJW7y+Vxmq1+s1UDtVY3aokrN5vjdVq9ZupLEnCEpXG6lYlYYnK6n4rVqvVrWpJmKjMVGYqkySoJCEJv5bKTGVWVSzpvTNLwiQJr0sSlgzDgMpMZabyMlXFIZKwpKq4y5KwpPfOb5GEm1RmKr8kCTOVN0llSRL+D3bfmxE3fEDrAAAAAElFTkSuQmCC";async function xKe(e,t){const n=e.getReader();let r;for(;!(r=await n.read()).done;)t(r.value)}function wKe(e){let t,n,r,a=!1;return function(i){t===void 0?(t=i,n=0,r=-1):t=EKe(t,i);const l=t.length;let c=0;for(;n0){const c=a.decode(i.subarray(0,l)),u=l+(i[l+1]===32?2:1),d=a.decode(i.subarray(u));switch(c){case"data":r.data=r.data?r.data+` +`+d:d;break;case"event":r.event=d;break;case"id":e(r.id=d);break;case"retry":const f=parseInt(d,10);isNaN(f)||t(r.retry=f);break}}}}function EKe(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function jB(){return{data:"",event:"",id:"",retry:void 0}}var PKe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const g=Object.assign({},r);g.accept||(g.accept=gR);let h;function b(){h.abort(),document.hidden||$()}c||document.addEventListener("visibilitychange",b);let p=OKe,S=0;function C(){document.removeEventListener("visibilitychange",b),window.clearTimeout(S),h.abort()}n==null||n.addEventListener("abort",()=>{C(),f()});const x=u??window.fetch,w=a??RKe;async function $(){var E;h=new AbortController;try{const R=await x(e,Object.assign(Object.assign({},d),{headers:g,signal:h.signal}));await w(R),await xKe(R.body,wKe($Ke(I=>{I?g[FB]=I:delete g[FB]},I=>{p=I},o))),i==null||i(),C(),f()}catch(R){if(!h.signal.aborted)try{const I=(E=l==null?void 0:l(R))!==null&&E!==void 0?E:p;window.clearTimeout(S),S=window.setTimeout($,I)}catch(I){C(),m(I)}}}$()})}function RKe(e){const t=e.headers.get("content-type");if(!(t!=null&&t.startsWith(gR)))throw new Error(`Expected content-type to be ${gR}, Actual: ${t}`)}const MKe=new Set(["starting","idle","running","suspended"]),TKe=new Set(["starting","running"]),NKe=new Set(["error","exited"]);function _Ke(e){try{const t=JSON.parse(e);return!Number.isInteger(t.sequence)||typeof t.event!="string"||!t.snapshot||typeof t.snapshot.session_id!="string"?null:t}catch{return null}}function DB(e){const t=Date.parse(e.updated_at||e.created_at);return Number.isNaN(t)?0:t}function cM(e){return[...e].sort((t,n)=>DB(n)-DB(t))}function uM(e,t){return cM(e).filter(n=>{if(t.platform&&n.source.platform!==t.platform||t.status&&n.status!==t.status||t.profile&&n.profile_id!==t.profile&&n.profile_name!==t.profile)return!1;if(t.updatedRange){const r=new Date(n.updated_at).getTime(),a=new Date(t.updatedRange[0]).getTime(),o=new Date(t.updatedRange[1]).getTime();if(ro)return!1}return!0})}function jKe(e){return{total:e.length,active:e.filter(t=>MKe.has(t.status)).length,running:e.filter(t=>TKe.has(t.status)).length,failed:e.filter(t=>NKe.has(t.status)).length}}function FKe(e,t){const n=e?[...e]:[];if(!t.snapshot)return n;const r=n.findIndex(a=>{var o;return a.session_id===((o=t.snapshot)==null?void 0:o.session_id)});return r===-1?n.push(t.snapshot):n[r]=t.snapshot,cM(n)}function DKe(e,t){return e.snapshot?{id:(t||String(e.sequence))+":"+e.event,event:e.event,status:e.snapshot.status,at:e.snapshot.updated_at||e.snapshot.created_at,error:e.snapshot.last_error,sequence:e.sequence}:null}function kKe(e){const t=[{id:"initial:created",event:"session.created",status:"idle",at:e.created_at}];return(e.updated_at!==e.created_at||e.status!=="idle")&&t.push({id:"initial:current",event:"current",status:e.status,at:e.updated_at,error:e.last_error}),t}class kB extends Error{}function AKe(e){return new Promise(t=>window.setTimeout(t,e))}function LKe(e){const t=Ng(),[n,r]=s.useState("offline"),a=s.useRef("");return s.useEffect(()=>{let o=!1,i=0;const l=new AbortController;return(async()=>{for(;!o;){const u=lM();if(!u){r("offline");return}r(i?"reconnecting":"connecting");try{await IKe("/api/v1/sessions/events",{signal:l.signal,openWhenHidden:!0,headers:{Authorization:"Bearer "+u,...a.current?{"Last-Event-ID":a.current}:{}},async onopen(d){if(d.status===401)throw wX(),new kB("unauthorized");if(!d.ok)throw new Error("SSE connection failed: "+d.status);i=0,r("live")},onmessage(d){d.id&&(a.current=d.id);const f=_Ke(d.data);if(!f){t.setQueriesData({queryKey:["sessionTimeline"]},[]),t.invalidateQueries({queryKey:["sessions"]}),t.invalidateQueries({queryKey:["session"]});return}if(f.sequence&&!d.id&&(a.current=String(f.sequence)),t.setQueryData(["sessions"],m=>FKe(m,f)),f.snapshot){t.setQueryData(["session",f.snapshot.session_id],f.snapshot);const m=DKe(f,d.id);m&&t.setQueryData(["sessionTimeline",f.snapshot.session_id],(g=[])=>g.some(h=>h.id===m.id)?g:[...g,m].slice(-60))}},onclose(){throw new Error("SSE connection closed")},onerror(d){throw d}})}catch(d){if(o||l.signal.aborted)return;if(d instanceof kB){r("offline");return}i+=1,r("reconnecting"),await AKe(Math.min(1e3*2**(i-1),15e3))}}})(),()=>{o=!0,l.abort()}},[e,t]),n}const fb={connecting:"正在连接",live:"实时连接",reconnecting:"正在重连",offline:"离线"},PX=s.createContext("offline");function BKe(){return s.useContext(PX)}const OX="openab.admin.sider-collapsed";function zKe(){try{return window.localStorage.getItem(OX)==="1"}catch{return!1}}function HKe({onLogout:e}){const t=Fg(),n=Dg(),r=LKe(!0),[a,o]=s.useState(zKe);s.useEffect(()=>{try{window.localStorage.setItem(OX,a?"1":"0")}catch{}},[a]);const i=s.useMemo(()=>({path:"/",routes:[{path:"/overview",name:"总览",icon:N.jsx(KIe,{})},{path:"/sessions",name:"会话",icon:N.jsx(ZU,{})},{path:"/profiles",name:"Agent Profile",icon:N.jsx(u3e,{})},{path:"/config",name:"Gateway 配置",icon:N.jsx(z4e,{})}]}),[]),l=()=>{sM()&&(xX(),e())};return N.jsx(vVe,{title:"OpenAB Plus",logo:N.jsx("img",{className:"layout-logo",src:EX,alt:""}),layout:"mix",navTheme:"light",fixedHeader:!0,fixSiderbar:!0,breakpoint:"lg",siderWidth:236,collapsed:a,onCollapse:o,route:i,location:{pathname:t.pathname},headerTitleRender:(c,u,d)=>N.jsxs("button",{type:"button",className:"header-brand",onClick:()=>{_B(t.pathname,"/overview")&&n("/overview")},"aria-label":"返回总览",children:[c,d!=null&&d.isMobile?null:N.jsxs("span",{className:"header-brand-text",children:[N.jsx("span",{className:"header-brand-title",children:"OpenAB Plus"}),N.jsx("span",{className:"header-brand-caption",children:"Admin Console"})]})]}),menuItemRender:(c,u)=>N.jsx("button",{type:"button",className:"menu-link",onClick:()=>{c.path&&_B(t.pathname,c.path)&&n(c.path)},children:u}),menuFooterRender:c=>N.jsxs("div",{className:"sider-footer"+(c!=null&&c.collapsed?" is-collapsed":""),children:[N.jsx("span",{className:"stream-dot is-"+r,"aria-hidden":"true"}),c!=null&&c.collapsed?null:N.jsxs("span",{className:"sider-footer-text",children:[N.jsx("span",{className:"sider-footer-label",children:fb[r]}),N.jsxs("span",{className:"sider-footer-version",children:["v","0.3.0"]})]})]}),avatarProps:!1,actionsRender:()=>[N.jsx(Bn,{title:"实时通道:"+fb[r],children:N.jsxs("span",{className:"stream-status is-"+r,children:[N.jsx("span",{className:"stream-dot","aria-hidden":"true"}),N.jsx("span",{className:"stream-label",children:fb[r]})]})},"stream"),N.jsx(hu,{menu:{items:[{key:"logout",icon:N.jsx(n4e,{}),label:"退出登录",onClick:l}]},children:N.jsxs(_n,{type:"text",className:"account-button","aria-label":"账户菜单",children:[N.jsx($f,{className:"account-avatar",size:"small",icon:N.jsx(JU,{})}),N.jsx("span",{className:"account-label",children:"管理员"}),N.jsx(tRe,{className:"account-button-caret"})]})},"account")],token:{header:{colorBgHeader:"#ffffff",colorHeaderTitle:"#1b2430",heightLayoutHeader:64},sider:{colorMenuBackground:"#ffffff",colorTextMenu:"#5b6b7c",colorTextMenuSecondary:"#8593a3",colorTextMenuSelected:"#1677ff",colorBgMenuItemSelected:"#e6f4ff",colorBgMenuItemHover:"#f5f8ff",colorTextMenuActive:"#1677ff",colorBgCollapsedButton:"#ffffff",colorTextCollapsedButton:"#8593a3",colorTextCollapsedButtonHover:"#1677ff"},pageContainer:{colorBgPageContainer:"#f5f7fa",paddingInlinePageContainerContent:24,paddingBlockPageContainerContent:20}},children:N.jsx("div",{className:"app-content",children:N.jsx(PX.Provider,{value:r,children:N.jsx(xOe,{})})})})}class fC extends Error{constructor(n,r,a){super(r);HS(this,"status");HS(this,"payload");this.name="ApiError",this.status=n,this.payload=a}}async function VKe(e){const t=await e.text();if(!t)return null;try{return JSON.parse(t)}catch{return t}}function WKe(e,t){if(typeof e=="string"&&e.trim())return e;if(e&&typeof e=="object"){const n=e;if(typeof n.error=="string")return n.error;if(typeof n.message=="string")return n.message}return t}async function Sa(e,t={}){const{token:n,suppressUnauthorized:r=!1,...a}=t,o=(n??lM()).trim(),i=new Headers(a.headers);o&&i.set("Authorization","Bearer "+o),a.body&&!i.has("Content-Type")&&i.set("Content-Type","application/json");const l=await fetch(e,{...a,headers:i}),c=await VKe(l);if(!l.ok)throw l.status===401&&!r&&wX(),new fC(l.status,WKe(c,"请求失败(HTTP "+l.status+")"),c);return c}const Zr={probe:e=>Sa("/api/v1/sessions",{token:e,suppressUnauthorized:!0}),sessions:()=>Sa("/api/v1/sessions"),session:e=>Sa("/api/v1/sessions/"+encodeURIComponent(e)),profiles:()=>Sa("/api/v1/agent-profiles"),agents:()=>Sa("/api/v1/agents"),profileSchema:e=>Sa("/api/v1/agents/"+encodeURIComponent(e)+"/config-schema"),createProfile:e=>Sa("/api/v1/agent-profiles",{method:"POST",body:JSON.stringify(e)}),updateProfile:(e,t)=>Sa("/api/v1/agent-profiles/"+encodeURIComponent(e),{method:"PUT",body:JSON.stringify(t)}),deleteProfile:e=>Sa("/api/v1/agent-profiles/"+encodeURIComponent(e),{method:"DELETE"}),setDefaultProfile:e=>Sa("/api/v1/agent-profiles/default/"+encodeURIComponent(e),{method:"PUT"}),clearDefaultProfile:()=>Sa("/api/v1/agent-profiles/default",{method:"DELETE"}),validateProfile:e=>Sa("/api/v1/agent-profiles/"+encodeURIComponent(e)+"/validate",{method:"POST"}),config:()=>Sa("/api/v1/config"),configStatus:()=>Sa("/api/v1/config/status"),validateConfig:e=>Sa("/api/v1/config/validate",{method:"POST",body:JSON.stringify({values:e})}),saveConfig:e=>Sa("/api/v1/config",{method:"PUT",body:JSON.stringify({values:e})}),reloadConfig:()=>Sa("/api/v1/config/reload",{method:"POST"})};function KKe({onAuthenticated:e,reason:t}){const[n,r]=s.useState(!1),[a,o]=s.useState(t||""),i=async({token:l})=>{const c=l.trim();r(!0),o("");try{await Zr.probe(c),hKe(c),e(c)}catch(u){u instanceof fC&&u.status===503?o("Gateway 尚未配置 Admin Token,请先完成服务端配置。"):o("Token 无效或 Gateway 暂时不可用。")}finally{r(!1)}};return N.jsx("main",{className:"login-page",children:N.jsxs("div",{className:"login-shell",children:[N.jsxs("section",{className:"login-hero","aria-label":"产品介绍",children:[N.jsxs("div",{className:"login-hero-brand",children:[N.jsx("img",{className:"brand-logo",src:EX,alt:""}),N.jsx("span",{children:"OpenAB Plus"})]}),N.jsx(an.Title,{className:"login-hero-title",children:"多平台 Agent 会话的运维控制台"}),N.jsx(an.Paragraph,{className:"login-hero-subtitle",children:"统一查看 Discord、Slack、Telegram 等平台接入的 Agent 会话,管理启动 Profile 与 Gateway 配置。"}),N.jsxs("ul",{className:"login-hero-points",children:[N.jsxs("li",{children:[N.jsx("span",{className:"login-point-icon blue","aria-hidden":"true",children:N.jsx(JU,{})}),N.jsxs("div",{children:[N.jsx("strong",{children:"实时会话流"}),N.jsx("span",{children:"状态事件通过 SSE 即时推送,无需手动刷新"})]})]}),N.jsxs("li",{children:[N.jsx("span",{className:"login-point-icon amber","aria-hidden":"true",children:N.jsx(nG,{})}),N.jsxs("div",{children:[N.jsx("strong",{children:"Profile 化运行参数"}),N.jsx("span",{children:"按 Agent 类型管理命令、模型与恢复策略"})]})]}),N.jsxs("li",{children:[N.jsx("span",{className:"login-point-icon green","aria-hidden":"true",children:N.jsx(EI,{})}),N.jsxs("div",{children:[N.jsx("strong",{children:"安全的配置管理"}),N.jsx("span",{children:"敏感字段始终脱敏,修改经校验后按策略生效"})]})]})]})]}),N.jsxs("section",{className:"login-card","aria-labelledby":"login-title",children:[N.jsxs("div",{className:"login-card-heading",children:[N.jsx(an.Title,{id:"login-title",level:3,children:"登录控制台"}),N.jsx(an.Text,{type:"secondary",children:"输入 Admin Token 继续"})]}),N.jsxs("div",{className:"login-security",children:[N.jsx(EI,{}),N.jsx("span",{children:"凭据保存在当前浏览器,可从 Slack 深链直接打开会话"})]}),a?N.jsx(Oc,{type:"error",showIcon:!0,message:a,className:"login-alert"}):null,N.jsxs(Fn,{layout:"vertical",onFinish:i,requiredMark:!1,children:[N.jsx(Fn.Item,{name:"token",label:"Admin Token",rules:[{required:!0,message:"请输入 Admin Token"}],children:N.jsx(Vr.Password,{autoFocus:!0,size:"large",prefix:N.jsx(QRe,{}),autoComplete:"current-password",placeholder:"输入 Gateway Admin Token"})}),N.jsx(_n,{type:"primary",htmlType:"submit",size:"large",block:!0,loading:n,children:"登录控制台"})]}),N.jsx(an.Paragraph,{type:"secondary",className:"login-footnote",children:"该控制台不会发送 Prompt,也不会接管运行中的 Agent。"})]})]})})}const Py={starting:{label:"启动中",color:"processing",icon:N.jsx(qRe,{spin:!0})},idle:{label:"空闲",color:"default",icon:N.jsx(fw,{})},running:{label:"运行中",color:"success",icon:N.jsx(fIe,{})},suspended:{label:"等待",color:"warning",icon:N.jsx(d4e,{})},error:{label:"失败",color:"error",icon:N.jsx(PIe,{})},exited:{label:"完成",color:"default",icon:N.jsx(fw,{})},unknown:{label:"未知",color:"default",icon:N.jsx(fw,{})}};function qKe(e){return Py[e]||Py.unknown}const IX=["starting","idle","running","suspended","error","exited"].map(e=>({value:e,label:Py[e].label}));Object.fromEntries(IX.map(e=>[e.value,{text:e.label}]));Object.fromEntries(Object.entries(Py).map(([e,t])=>[e,t.label]));const UKe=IX;function su(e){if(!e)return"-";const t=new Date(e);return Number.isNaN(t.getTime())?e:new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).format(t)}function dM(e){if(!e)return"-";const t=new Date(e).getTime();if(Number.isNaN(t))return e;const n=t-Date.now(),r=Math.abs(n),a=new Intl.RelativeTimeFormat("zh-CN",{numeric:"auto"});return r<6e4?a.format(Math.round(n/1e3),"second"):r<36e5?a.format(Math.round(n/6e4),"minute"):r<864e5?a.format(Math.round(n/36e5),"hour"):a.format(Math.round(n/864e5),"day")}function GKe(e){return{"session.created":"会话创建",status_changed:"状态变更",model_changed:"模型变更",profile_changed:"Profile 变更",profile_deleted:"Profile 已删除",session_error:"会话异常",current:"当前状态"}[e]||e.replaceAll("_"," ")}function Zg({status:e}){const t=qKe(e);return N.jsx(ja,{color:t.color,icon:t.icon,className:"status-tag",children:t.label})}const AB=[{color:"#1668dc",background:"#e8f1ff"},{color:"#1f9d68",background:"#e7f6ef"},{color:"#b96d08",background:"#fff3dd"},{color:"#7b5cd6",background:"#f0ebfc"},{color:"#c04a7c",background:"#fceef4"},{color:"#0e8a9d",background:"#e6f6f9"}];function YKe(e){var o;const t=(e||"").trim();let n=0;for(const i of t)n=n*31+(i.codePointAt(0)||0)>>>0;const r=AB[n%AB.length],a=(((o=t.match(/[a-zA-Z0-9一-龥]/))==null?void 0:o[0])||"?").toUpperCase();return{color:r.color,background:r.background,initial:a}}function vC({name:e,size:t=26}){const n=YKe(e);return N.jsx("span",{className:"entity-mark","aria-hidden":"true",style:{width:t,height:t,color:n.color,background:n.background,fontSize:Math.round(t*.46)},children:n.initial})}function XKe({sessions:e,loading:t,compact:n=!1,searchable:r=!0,onReload:a,title:o="会话",limit:i}){const l=Dg(),[c,u]=s.useState({}),d=s.useMemo(()=>{const g=uM(e,c).filter(h=>!c.agent||h.agent===c.agent);return typeof i=="number"?g.slice(0,i):g},[c,i,e]),f=g=>Object.fromEntries([...new Set(g.filter(Boolean))].map(h=>[h,{text:h}])),m=[{title:"状态",dataIndex:"status",width:112,valueType:"select",valueEnum:Object.fromEntries(UKe.map(({value:g,label:h})=>[g,{text:h}])),render:(g,h)=>N.jsx(Zg,{status:h.status})},{title:"Agent",dataIndex:"agent",width:128,valueType:"select",valueEnum:f(e.map(g=>g.agent)),render:(g,h)=>N.jsxs(qn,{size:8,className:"agent-cell",children:[N.jsx(vC,{name:h.agent}),N.jsx(an.Text,{strong:!0,children:h.agent||"未报告"})]})},{title:"平台",dataIndex:["source","platform"],width:120,valueType:"select",valueEnum:f(e.map(g=>{var h;return(h=g.source)==null?void 0:h.platform})),render:(g,h)=>{var b;return((b=h.source)==null?void 0:b.platform)||"-"}},{title:"工作目录",dataIndex:"workdir",ellipsis:!0,hideInSearch:!0,render:(g,h)=>N.jsx(an.Text,{code:!0,ellipsis:{tooltip:h.workdir},children:h.workdir||"-"})},{title:"Profile",dataIndex:"profile_id",width:160,valueType:"select",valueEnum:Object.fromEntries(e.filter(g=>g.profile_id).map(g=>[g.profile_id,{text:g.profile_name||g.profile_id}])),render:(g,h)=>N.jsxs(qn,{size:4,children:[N.jsx("span",{children:h.profile_name||h.profile_id||"-"}),h.profile_status==="deleted"?N.jsx(an.Text,{type:"danger",children:"已删除"}):null]})},{title:"更新时间",dataIndex:"updated_at",width:178,valueType:"dateTimeRange",render:(g,h)=>N.jsx(Bn,{title:su(h.updated_at),children:N.jsx("span",{children:dM(h.updated_at)})})},{title:"操作",valueType:"option",width:72,fixed:"right",render:(g,h)=>[N.jsx(Bn,{title:"查看详情",children:N.jsx(_n,{type:"text",icon:N.jsx(PRe,{}),"aria-label":"查看会话详情",onClick:()=>l("/sessions/"+encodeURIComponent(h.session_id))})},"view")]}];return N.jsx(iM,{className:"session-table",rowKey:"session_id",columns:m,dataSource:d,loading:t,search:r?{labelWidth:"auto",span:{xs:24,sm:12,md:8,lg:6,xl:6,xxl:6},defaultCollapsed:!1}:!1,onSubmit:g=>{var h;return u({platform:(h=g.source)==null?void 0:h.platform,status:g.status,profile:g.profile_id,agent:g.agent,updatedRange:g.updated_at})},onReset:()=>u({}),pagination:n?!1:{defaultPageSize:20,showSizeChanger:!0,showTotal:g=>"共 "+g+" 条"},scroll:{x:980},size:n?"small":"middle",options:{density:!n,fullScreen:!n,reload:a?()=>(a(),Promise.resolve()):!1,setting:!n},toolBarRender:()=>[N.jsx(_n,{icon:N.jsx(iRe,{}),onClick:()=>Jo.info("导出能力将在后续版本开放"),children:"导出"},"export"),a?N.jsx(_n,{type:"primary",icon:N.jsx(S3,{}),onClick:a,children:"全量校准"},"reconcile"):null],locale:{emptyText:N.jsx($r,{className:"table-empty",image:$r.PRESENTED_IMAGE_SIMPLE,description:N.jsxs(qn,{direction:"vertical",size:2,children:[N.jsx(an.Text,{strong:!0,children:"暂无会话"}),N.jsx(an.Text,{type:"secondary",children:"Agent 通过 Gateway 启动会话后,会实时显示在这里"})]})})},headerTitle:N.jsxs(qn,{size:10,align:"center",children:[N.jsx("span",{children:o}),N.jsxs("span",{className:"table-count",children:["共 ",d.length," 条"]})]}),cardBordered:!0})}const{Statistic:T0}=qa;function QKe(e){if(!Array.isArray(e)||e.length!==2)return;const t=e.map(n=>{if(typeof n=="string")return n;if(n&&typeof n=="object"&&"toISOString"in n&&typeof n.toISOString=="function")return n.toISOString()});return t.every(n=>!!n)?[t[0],t[1]]:void 0}function JKe(){var u;const[e,t]=s.useState({}),n=ol({queryKey:["sessions"],queryFn:Zr.sessions,refetchInterval:3e4}),r=ol({queryKey:["profiles"],queryFn:Zr.profiles}),a=n.data||[],o=s.useMemo(()=>uM(a,e),[e,a]),i=jKe(o),l=[...new Set(a.map(d=>d.source.platform))],c=((u=r.data)==null?void 0:u.profiles)||[];return N.jsxs(uC,{title:"运行总览",subTitle:"Gateway 会话与 Agent 运行状态",className:"page-container",children:[N.jsxs(qa.Group,{direction:"row",style:{marginBottom:18},children:[N.jsx(qa,{statistic:{title:"会话总数",value:i.total,description:N.jsx(T0,{title:"Gateway 接入的全部会话",value:" "}),icon:N.jsx(ZU,{style:{color:"#1677ff",fontSize:24}})}}),N.jsx(qa.Divider,{}),N.jsx(qa,{statistic:{title:"活跃会话",value:i.active,description:N.jsx(T0,{title:"空闲或运行中,可继续交互",value:" "}),icon:N.jsx(C3,{style:{color:"#52c41a",fontSize:24}})}}),N.jsx(qa.Divider,{}),N.jsx(qa,{statistic:{title:"运行中",value:i.running,description:N.jsx(T0,{title:"正在处理任务的会话",value:" "}),icon:N.jsx(nG,{style:{color:"#faad14",fontSize:24}})}}),N.jsx(qa.Divider,{}),N.jsx(qa,{statistic:{title:"失败",value:i.failed,description:N.jsx(T0,{title:"启动或运行异常,需要关注",value:" "}),icon:N.jsx(TIe,{style:{color:"#ff4d4f",fontSize:24}})}})]}),N.jsxs("section",{className:"overview-filter","aria-label":"总览筛选",children:[N.jsxs("div",{className:"section-heading",children:[N.jsx("span",{className:"section-heading-icon","aria-hidden":"true",children:N.jsx(DRe,{})}),N.jsxs("div",{className:"section-heading-text",children:[N.jsx(an.Text,{strong:!0,children:"筛选会话"}),N.jsx(an.Text,{type:"secondary",children:"按平台、状态、Profile 或更新时间过滤"})]})]}),N.jsxs(go,{layout:"horizontal",submitter:!1,onValuesChange:(d,f)=>t({platform:f.platform,status:f.status,profile:f.profile,updatedRange:QKe(f.updatedRange)}),children:[N.jsx(Zo,{name:"platform",label:"平台",allowClear:!0,width:"sm",options:l.map(d=>({label:d,value:d}))}),N.jsx(Zo,{name:"status",label:"状态",allowClear:!0,width:"sm",options:[{label:"启动中",value:"starting"},{label:"空闲",value:"idle"},{label:"运行中",value:"running"},{label:"已暂停",value:"suspended"},{label:"失败",value:"error"},{label:"已退出",value:"exited"}]}),N.jsx(Zo,{name:"profile",label:"Profile",allowClear:!0,width:"sm",options:c.map(d=>({label:d.name||d.id,value:d.id}))}),N.jsx(uLe,{name:"updatedRange",label:"更新时间",fieldProps:{allowClear:!0}})]})]}),N.jsx(XKe,{title:"最近会话",sessions:o,loading:n.isLoading,compact:!0,searchable:!1,limit:8,onReload:()=>void n.refetch()})]})}function ZKe(e){const[t,n]=s.useState(()=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches);return s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),a=o=>n(o.matches);return n(r.matches),r.addEventListener("change",a),()=>r.removeEventListener("change",a)},[e]),t}function eqe({timeline:e,compact:t=!1}){return e.length?N.jsx(dU,{className:t?"session-timeline-compact":void 0,items:[...e].reverse().map(n=>({color:n.status==="error"?"red":n.status==="running"?"green":"blue",dot:n.status==="error"?N.jsx(pRe,{}):N.jsx(SIe,{}),children:N.jsxs("div",{className:"timeline-entry",children:[N.jsxs("div",{className:"timeline-title",children:[N.jsx(an.Text,{strong:!t,children:GKe(n.event)}),N.jsx(Zg,{status:n.status})]}),N.jsx(an.Text,{type:"secondary",children:su(n.at)}),n.error?N.jsx(an.Paragraph,{type:"danger",children:n.error}):null]})}))}):N.jsx($r,{image:$r.PRESENTED_IMAGE_SIMPLE,description:"暂无事件",className:t?"timeline-empty-compact":void 0})}function tqe(e){return e!==null}function nqe({session:e,timeline:t,hasSelection:n}){if(!n)return N.jsx("aside",{className:"workbench-panel workbench-inspector","aria-label":"会话详情",children:N.jsx("div",{className:"workbench-inspector-empty",children:N.jsx($r,{image:$r.PRESENTED_IMAGE_SIMPLE,description:"选择会话后查看元数据、告警与事件"})})});if(!e)return N.jsx("aside",{className:"workbench-panel workbench-inspector","aria-label":"会话详情",children:N.jsx("div",{className:"workbench-inspector-empty",children:N.jsx($r,{description:"会话不可用"})})});const r=[e.last_error?{key:"last-error",type:"error",message:"会话异常",description:e.last_error}:null,...(e.profile_config_errors||[]).map(o=>({key:o.config_id,type:"warning",message:"Profile 配置告警 · "+o.config_id,description:o.error}))].filter(tqe),a=[{key:"metadata",label:N.jsxs("span",{className:"inspector-tab-label",children:[N.jsx(eG,{}),"元数据"]}),children:N.jsxs("div",{className:"inspector-tab-body",children:[N.jsx("div",{className:"inspector-section-heading",children:N.jsx(Zg,{status:e.status})}),N.jsxs(Wa,{column:1,size:"small",colon:!1,children:[N.jsx(Wa.Item,{label:"Agent",children:e.agent||"-"}),N.jsx(Wa.Item,{label:"平台",children:e.source.platform||"-"}),N.jsx(Wa.Item,{label:"Thread",children:N.jsx(an.Text,{copyable:!0,code:!0,children:e.source.thread_id||"-"})}),N.jsx(Wa.Item,{label:"工作目录",children:N.jsx(an.Text,{copyable:!0,code:!0,children:e.workdir||"-"})}),N.jsx(Wa.Item,{label:"Profile",children:N.jsxs(qn,{size:6,children:[N.jsx("span",{children:e.profile_name||e.profile_id||"-"}),e.profile_status==="deleted"?N.jsx(an.Text,{type:"danger",children:"已删除"}):null]})}),N.jsx(Wa.Item,{label:"模型",children:e.model||"-"}),N.jsx(Wa.Item,{label:"创建时间",children:su(e.created_at)}),N.jsx(Wa.Item,{label:"更新时间",children:su(e.updated_at)})]})]})},{key:"alerts",label:N.jsxs("span",{className:"inspector-tab-label",children:[N.jsx(qOe,{}),"告警",r.length?N.jsx("span",{className:"inspector-tab-badge",children:r.length}):null]}),children:N.jsx("div",{className:"inspector-tab-body",children:r.length?r.map(o=>N.jsx(Oc,{type:o.type,showIcon:!0,message:o.message,description:o.description,className:"inspector-alert"},o.key)):N.jsx($r,{image:$r.PRESENTED_IMAGE_SIMPLE,description:"暂无告警"})})},{key:"events",label:N.jsxs("span",{className:"inspector-tab-label",children:[N.jsx(lIe,{}),"事件"]}),children:N.jsxs("div",{className:"inspector-tab-body",children:[N.jsx(an.Text,{type:"secondary",className:"inspector-events-caption",children:"实时状态事件,最多保留最近 60 条"}),N.jsx(eqe,{timeline:t,compact:!0})]})}];return N.jsx("aside",{className:"workbench-panel workbench-inspector","aria-label":"会话详情",children:N.jsx(Bi,{className:"workbench-inspector-tabs",items:a,size:"small"})})}function rqe({session:e,loading:t,hasSelection:n,onOpenSidebar:r,onOpenInspector:a}){const o=BKe(),i=!!(n&&e&&!t),l=!!(r||a),c=r?N.jsx(_n,{type:"text",size:"small",className:"workbench-status-toggle",icon:N.jsx(o3e,{}),"aria-label":"打开会话列表",onClick:r}):null,u=a?N.jsx(_n,{type:"text",size:"small",className:"workbench-status-toggle",icon:N.jsx(eG,{}),"aria-label":"打开会话详情",onClick:a}):null;return N.jsxs("main",{className:"workbench-panel workbench-main","aria-label":"会话主视图",children:[i&&e?N.jsxs("div",{className:"workbench-status-bar",children:[N.jsxs("div",{className:"workbench-status-primary",children:[c,N.jsx(vC,{name:e.agent,size:28}),N.jsxs("div",{className:"workbench-status-copy",children:[N.jsx(an.Title,{level:5,className:"workbench-status-title",children:e.agent||"未知 Agent"}),N.jsx(an.Text,{type:"secondary",code:!0,copyable:!0,children:e.session_id})]})]}),N.jsxs(qn,{wrap:!0,size:[12,8],className:"workbench-status-meta",children:[N.jsx(Zg,{status:e.status}),N.jsxs(an.Text,{type:"secondary",children:["Profile ",e.profile_name||e.profile_id||"-"]}),N.jsxs(an.Text,{type:"secondary",children:["模型 ",e.model||"-"]}),N.jsxs(an.Text,{type:"secondary",className:"workbench-status-workdir",ellipsis:{tooltip:e.workdir||"-"},children:["目录 ",N.jsx(an.Text,{code:!0,children:e.workdir||"-"})]}),N.jsxs(an.Text,{type:"secondary",children:["更新 ",dM(e.updated_at)]}),e.external_url?N.jsx(_n,{size:"small",icon:N.jsx(zRe,{}),href:e.external_url,target:"_blank",rel:"noreferrer",children:"打开会话链接"}):null,u]})]}):l?N.jsxs("div",{className:"workbench-status-bar",children:[N.jsx("div",{className:"workbench-status-primary",children:c}),N.jsx(qn,{wrap:!0,size:[12,8],className:"workbench-status-meta",children:u})]}):null,N.jsx("div",{className:"workbench-main-content",children:t?N.jsx("div",{className:"workbench-main-loading",children:N.jsx(vi,{size:"large"})}):n?e?N.jsxs("section",{className:"workbench-placeholder","aria-label":"活动流占位",children:[N.jsx("span",{className:"workbench-placeholder-icon","aria-hidden":"true",children:N.jsx($4e,{})}),N.jsx(an.Title,{level:4,children:"活动流(W4 接入)"}),N.jsx(an.Paragraph,{type:"secondary",children:"此处将展示 Agent 执行过程中的完整 Transcript 与工具调用活动流。 当前版本仅提供只读观测入口,不提供发送、插话或停止控制。"}),N.jsxs(an.Text,{type:"secondary",children:["最近更新 ",su(e.updated_at)]})]}):N.jsx("div",{className:"workbench-main-empty",children:N.jsx($r,{description:"未找到该会话,可能已结束或 ID 无效"})}):N.jsx("div",{className:"workbench-main-empty",children:N.jsx($r,{description:"选择一条 Agent 会话开始观测"})})}),N.jsxs("footer",{className:"workbench-readonly-bar","aria-label":"只读观测提示",children:[N.jsx("span",{className:"workbench-readonly-lock","aria-hidden":"true",children:"🔒"}),N.jsxs("div",{className:"workbench-readonly-copy",children:[N.jsx(an.Text,{strong:!0,children:"只读观测"}),N.jsx(an.Text,{type:"secondary",children:"本页不提供发送、插话、停止或参数修改"})]}),N.jsxs("span",{className:"workbench-stream-status stream-status is-"+o,children:[N.jsx("span",{className:"stream-dot","aria-hidden":"true"}),N.jsx("span",{className:"stream-label",children:fb[o]})]})]})]})}const aqe="1.0.5",oqe=ee.createContext({}),iqe={classNames:{},styles:{},className:"",style:{}},lqe=e=>{const t=ee.useContext(oqe);return ee.useMemo(()=>({...iqe,...t[e]}),[t[e]])};function pR(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r,theme:a}=ee.useContext(Rt.ConfigContext);return{theme:a,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:r}}const sqe=Gd(so.defaultAlgorithm),cqe={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},RX=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:a,...o}=t;let i={...r,override:a};return i=Ay(i),o&&Object.entries(o).forEach(([l,c])=>{const{theme:u,...d}=c;let f=d;u&&(f=RX({...i,...d},{override:d},u)),i[l]=f}),i};function uqe(){const{token:e,hashed:t,theme:n=sqe,override:r,cssVar:a}=ee.useContext(so._internalContext),[o,i,l]=wR(n,[so.defaultSeed,e],{salt:`${aqe}-${t||""}`,override:r,getComputedToken:RX,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:TR,ignore:J9,preserve:cqe}});return[n,l,t?i:"",o,a]}const{genStyleHooks:dqe}=Q9({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=pR();return{iconPrefixCls:t,rootPrefixCls:e()}},useToken:()=>{const[e,t,n,r,a]=uqe();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=pR();return e??{}},layer:{name:"antdx",dependencies:["antd"]}}),MX=ee.createContext(null),LB=({children:e})=>{const{prefixCls:t}=ee.useContext(MX);return ee.createElement("div",{className:oe(`${t}-group-title`)},e&&ee.createElement(an.Text,null,e))},fqe=e=>{e.stopPropagation()},vqe=e=>{const{prefixCls:t,info:n,className:r,direction:a,onClick:o,active:i,menu:l,...c}=e,u=ar(c,{aria:!0,data:!0,attr:!0}),{disabled:d}=n,[f,m]=ee.useState(!1),[g,h]=ee.useState(!1),b=oe(r,`${t}-item`,{[`${t}-item-active`]:i&&!d},{[`${t}-item-disabled`]:d}),p=()=>{!d&&o&&o(n)},S=C=>{C&&h(!C)};return ee.createElement(Bn,{title:n.label,open:f&&g,onOpenChange:h,placement:a==="rtl"?"left":"right"},ee.createElement("li",Me({},u,{className:b,onClick:p}),n.icon&&ee.createElement("div",{className:`${t}-icon`},n.icon),ee.createElement(an.Text,{className:`${t}-label`,ellipsis:{onEllipsis:m}},n.label),l&&!d&&ee.createElement(hu,{menu:l,placement:a==="rtl"?"bottomLeft":"bottomRight",trigger:["click"],disabled:d,onOpenChange:S},ee.createElement(p1,{onClick:fqe,disabled:d,className:`${t}-menu-icon`}))))},iP="__ungrouped",mqe=(e,t=[])=>{const[n,r,a]=ee.useMemo(()=>{if(!e)return[!1,void 0,void 0];let o={sort:void 0,title:void 0};return typeof e=="object"&&(o={...o,...e}),[!0,o.sort,o.title]},[e]);return ee.useMemo(()=>{if(!n)return[[{name:iP,data:t,title:void 0}],n];const o=t.reduce((c,u)=>{const d=u.group||iP;return c[d]||(c[d]=[]),c[d].push(u),c},{});return[(r?Object.keys(o).sort(r):Object.keys(o)).map(c=>({name:c===iP?void 0:c,title:a,data:o[c]})),n]},[t,e])},gqe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexDirection:"column",gap:e.paddingXXS,overflowY:"auto",padding:e.paddingSM,[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-list`]:{display:"flex",gap:e.paddingXXS,flexDirection:"column",[`& ${t}-item`]:{paddingInlineStart:e.paddingXL},[`& ${t}-label`]:{color:e.colorTextDescription}},[`& ${t}-item`]:{display:"flex",height:e.controlHeightLG,minHeight:e.controlHeightLG,gap:e.paddingXS,padding:`0 ${me(e.paddingXS)}`,alignItems:"center",borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,"&:hover":{backgroundColor:e.colorBgTextHover},"&-active":{backgroundColor:e.colorBgTextHover,[`& ${t}-label, ${t}-menu-icon`]:{color:e.colorText}},"&-disabled":{cursor:"not-allowed",[`& ${t}-label`]:{color:e.colorTextDisabled}},"&:hover, &-active":{[`& ${t}-menu-icon`]:{opacity:1}}},[`& ${t}-label`]:{flex:1,color:e.colorText},[`& ${t}-menu-icon`]:{opacity:0,fontSize:e.fontSizeXL},[`& ${t}-group-title`]:{display:"flex",alignItems:"center",height:e.controlHeightLG,minHeight:e.controlHeightLG,padding:`0 ${me(e.paddingXS)}`}}}},pqe=()=>({}),hqe=dqe("Conversations",e=>{const t=en(e,{});return gqe(t)},pqe),bqe=e=>{const{prefixCls:t,rootClassName:n,items:r,activeKey:a,defaultActiveKey:o,onActiveChange:i,menu:l,styles:c={},classNames:u={},groupable:d,className:f,style:m,...g}=e,h=ar(g,{attr:!0,aria:!0,data:!0}),[b,p]=Nt(o,{value:a}),[S,C]=mqe(d,r),{getPrefixCls:x,direction:w}=pR(),$=x("conversations",t),E=lqe("conversations"),[R,I,O]=hqe($),T=oe($,E.className,f,n,I,O,{[`${$}-rtl`]:w==="rtl"}),_=k=>{p(k.key),i&&i(k.key)};return R(ee.createElement("ul",Me({},h,{style:{...E.style,...m},className:T}),S.map((k,A)=>{var D;const j=k.data.map((F,L)=>ee.createElement(vqe,{key:F.key||`key-${L}`,info:F,prefixCls:$,direction:w,className:oe(u.item,E.classNames.item),style:{...E.styles.item,...c.item},menu:typeof l=="function"?l(F):l,active:b===F.key,onClick:_}));return C?ee.createElement("li",{key:k.name||`key-${A}`},ee.createElement(MX.Provider,{value:{prefixCls:$}},((D=k.title)==null?void 0:D.call(k,k.name,{components:{GroupTitle:LB}}))||ee.createElement(LB,{key:k.name},k.name)),ee.createElement("ul",{className:`${$}-list`},j)):j})))},yqe=[{label:"全部状态",value:""},{label:"启动中",value:"starting"},{label:"空闲",value:"idle"},{label:"运行中",value:"running"},{label:"已暂停",value:"suspended"},{label:"失败",value:"error"},{label:"已退出",value:"exited"}];function Cqe(e){var r,a;const t=((r=e.source)==null?void 0:r.platform)||"未知平台",n=(a=e.source)==null?void 0:a.thread_id;return n?t+" · "+n.slice(0,12):t+" · "+e.session_id.slice(0,12)}function Sqe(e){const t=e.agent||"未知 Agent",n=e.profile_name||e.profile_id;return n?n+" · "+t:t}function xqe({sessions:e,loading:t,activeSessionId:n,onSelect:r,onReload:a}){const[o,i]=s.useState(""),[l,c]=s.useState({}),u=s.useMemo(()=>{const m=[...new Set(e.map(g=>{var h;return(h=g.source)==null?void 0:h.platform}).filter(Boolean))];return[{label:"全部平台",value:""},...m.map(g=>({label:g,value:g}))]},[e]),d=s.useMemo(()=>{const m=uM(e,l),g=o.trim().toLowerCase();return g?m.filter(h=>{var p,S;return[h.session_id,h.agent,(p=h.source)==null?void 0:p.platform,(S=h.source)==null?void 0:S.thread_id,h.workdir,h.profile_name,h.profile_id].filter(Boolean).join(" ").toLowerCase().includes(g)}):m},[l,o,e]),f=s.useMemo(()=>d.map(m=>({key:m.session_id,group:Sqe(m),timestamp:new Date(m.updated_at||m.created_at).getTime(),icon:N.jsx(vC,{name:m.agent,size:22}),label:N.jsxs("div",{className:"session-conversation-label",children:[N.jsxs("div",{className:"session-conversation-title",children:[N.jsx(an.Text,{ellipsis:!0,children:Cqe(m)}),N.jsx(Zg,{status:m.status})]}),N.jsx(an.Text,{type:"secondary",className:"session-conversation-meta",children:dM(m.updated_at)})]})})),[d]);return N.jsxs("aside",{className:"workbench-panel workbench-sidebar","aria-label":"会话列表",children:[N.jsxs("div",{className:"workbench-panel-header",children:[N.jsxs("div",{children:[N.jsx(an.Text,{strong:!0,children:"Agent 会话"}),N.jsxs(an.Text,{type:"secondary",className:"workbench-panel-caption",children:["按 Profile / Agent 分组 · ",d.length," 条"]})]}),a?N.jsx(_n,{type:"text",size:"small",icon:N.jsx(S3,{}),"aria-label":"刷新会话列表",onClick:a}):null]}),N.jsx("div",{className:"workbench-sidebar-newchat",children:N.jsx(Bn,{title:"会话创建将在后续版本开放",children:N.jsx("span",{className:"workbench-sidebar-newchat-tooltip",children:N.jsx(_n,{block:!0,disabled:!0,icon:N.jsx(CI,{}),children:"New chat"})})})}),N.jsxs("div",{className:"workbench-sidebar-filters",children:[N.jsx(Vr,{allowClear:!0,prefix:N.jsx(tG,{}),placeholder:"搜索会话、Agent、平台…",value:o,onChange:m=>i(m.target.value)}),N.jsxs(qn,{wrap:!0,size:8,children:[N.jsx(li,{size:"small",value:l.status||"",options:yqe,onChange:m=>c(g=>({...g,status:m||void 0})),popupMatchSelectWidth:!1}),N.jsx(li,{size:"small",value:l.platform||"",options:u,onChange:m=>c(g=>({...g,platform:m||void 0})),popupMatchSelectWidth:!1})]})]}),N.jsx("div",{className:"workbench-sidebar-list",children:t?N.jsx("div",{className:"workbench-sidebar-loading",children:N.jsx(vi,{})}):f.length?N.jsx(bqe,{className:"session-conversations",items:f,activeKey:n,onActiveChange:m=>{m&&r(m)},groupable:!0}):N.jsx($r,{image:$r.PRESENTED_IMAGE_SIMPLE,description:o||l.status||l.platform?"没有匹配的会话":"暂无会话",className:"workbench-sidebar-empty"})})]})}function BB(){const t=lOe().id||"",n=Dg(),r=Ng(),a=ZKe("(max-width: 1100px)"),[o,i]=s.useState(!1),[l,c]=s.useState(!1),u=ol({queryKey:["sessions"],queryFn:Zr.sessions,refetchInterval:3e4}),d=ol({queryKey:["session",t],queryFn:()=>Zr.session(t),enabled:!!t}),f=ol({queryKey:["sessionTimeline",t],queryFn:async()=>[],enabled:!1,initialData:[]}),m=u.data||[];s.useEffect(()=>{if(t||u.isLoading||u.isFetching)return;const[S]=cM(m);S&&n("/sessions/"+encodeURIComponent(S.session_id),{replace:!0})},[n,t,m,u.isFetching,u.isLoading]),s.useEffect(()=>{d.data&&r.setQueryData(["sessionTimeline",t],(S=[])=>S.length?S:kKe(d.data))},[r,t,d.data]);const g=S=>{n("/sessions/"+encodeURIComponent(S)),i(!1)},h=t?f.data||[]:[],b=N.jsx(xqe,{sessions:m,loading:u.isLoading,activeSessionId:t||void 0,onSelect:g,onReload:()=>void u.refetch()}),p=N.jsx(nqe,{session:d.data,timeline:h,hasSelection:!!t});return N.jsx(uC,{title:"会话工作台",subTitle:"只读观测 Agent 会话 · 不提供发送或控制入口",className:"page-container session-workbench-page",children:N.jsxs("div",{className:"session-workbench",children:[a?N.jsx(km,{className:"workbench-drawer",placement:"left",width:320,open:o,onClose:()=>i(!1),title:null,children:b}):b,N.jsx(rqe,{session:d.data,loading:!!t&&d.isLoading,hasSelection:!!t,onOpenSidebar:a?()=>i(!0):void 0,onOpenInspector:a?()=>c(!0):void 0}),a?N.jsx(km,{className:"workbench-drawer",placement:"right",width:340,open:l,onClose:()=>c(!1),title:null,children:p}):p]})})}function wqe(e){var n,r;const t={};for(const a of e||[]){const o=(n=a.key)==null?void 0:n.trim(),i=(r=a.value)==null?void 0:r.trim();o&&i&&(t[o]=i)}return t}function $qe(e){const t={};for(const[n,r]of Object.entries(e||{}))r==null||r===""||(t[n]=String(r));return t}function Eqe(e){return e?{...e,args:e.args||[],inherit_env:e.inherit_env||[],config_options:e.config_options||{},env_ref_entries:Object.entries(e.env_refs||{}).map(([t,n])=>({key:t,value:n}))}:{enabled:!0,workdir_strategy:"system_default",recovery_strategy:"resume_session",args:[],inherit_env:[],config_options:{},env_ref_entries:[]}}function Pqe(e){var r,a,o;const t=i=>(i==null?void 0:i.trim())||void 0,n=Number(e.timeout_secs);return{id:((r=e.id)==null?void 0:r.trim())||"",name:((a=e.name)==null?void 0:a.trim())||"",agent_type:((o=e.agent_type)==null?void 0:o.trim())||"",enabled:e.enabled!==!1,command:t(e.command),args:(e.args||[]).map(i=>i.trim()).filter(Boolean),default_model:t(e.default_model),reasoning_effort:t(e.reasoning_effort),workdir_strategy:e.workdir_strategy||"system_default",working_dir:t(e.working_dir),env_refs:wqe(e.env_ref_entries),inherit_env:(e.inherit_env||[]).map(i=>i.trim()).filter(Boolean),timeout_secs:Number.isFinite(n)&&n>0?n:void 0,recovery_strategy:e.recovery_strategy||"resume_session",config_options:$qe(e.config_options)}}const Oqe=["codex","claude","gemini","opencode","kiro","cursor","hermes"];function Iqe({agentType:e}){var r;const t=ol({queryKey:["profileSchema",e],queryFn:()=>Zr.profileSchema(e),enabled:!!e});if(!e||!((r=t.data)!=null&&r.fields.length))return null;const n=a=>{var l;const o=["config_options",a.id],i={key:a.id,name:o,label:a.label||a.id,tooltip:a.dynamic?"该选项由当前 Agent 运行时动态提供":void 0};return(l=a.options)!=null&&l.length?N.jsx(Zo,{...i,options:a.options.map(c=>({label:c,value:c})),allowClear:!0}):["boolean","bool"].includes(a.kind)?N.jsx(Zo,{...i,options:[{label:"true",value:"true"},{label:"false",value:"false"}],allowClear:!0}):["number","integer"].includes(a.kind)?N.jsx(KY,{...i,fieldProps:{precision:0}}):N.jsx(Ei,{...i})};return N.jsxs("section",{className:"dynamic-config-section",children:[N.jsxs("div",{className:"form-section-heading",children:[N.jsxs("div",{children:[N.jsx(an.Text,{strong:!0,children:"Agent 配置项"}),N.jsxs(an.Text,{type:"secondary",children:["来源:",t.data.source]})]}),N.jsxs(ja,{color:"blue",children:[t.data.fields.length," 项"]})]}),N.jsx(ym,{children:t.data.fields.map(n)})]})}function zB(e){return e.ok?"Profile 校验通过":e.errors.map(t=>t.path+": "+t.message).join(";")}function Rqe(){var p,S;const e=Ng(),[t,n]=s.useState(!1),[r,a]=s.useState(),[o]=Fn.useForm(),i=Fn.useWatch("agent_type",o),l=ol({queryKey:["profiles"],queryFn:Zr.profiles}),c=ol({queryKey:["agents"],queryFn:Zr.agents}),u=((p=l.data)==null?void 0:p.profiles)||[],d=(S=l.data)==null?void 0:S.default_profile,f=s.useMemo(()=>[...new Set([...Oqe,...(c.data||[]).map(C=>C.agent_type),...u.map(C=>C.agent_type)])].sort(),[c.data,u]),m=async()=>{await Promise.all([e.invalidateQueries({queryKey:["profiles"]}),e.invalidateQueries({queryKey:["agents"]})])},g=RPe({mutationFn:async C=>{const x=Pqe(C);return r?Zr.updateProfile(r.id,x):Zr.createProfile(x)},onSuccess:async()=>{Jo.success(r?"Profile 已更新":"Profile 已创建"),n(!1),await m()},onError:C=>{Jo.error(C instanceof fC?C.message:"保存 Profile 失败")}}),h=C=>{a(C),n(!0)};s.useEffect(()=>{t&&(o.resetFields(),o.setFieldsValue(Eqe(r||{id:"",name:"",agent_type:f[0]||"codex",enabled:!0,workdir_strategy:"system_default",recovery_strategy:"resume_session"})))},[f,r,o,t]);const b=[{title:"Profile",dataIndex:"name",render:(C,x)=>N.jsxs(qn,{size:10,className:"profile-cell",children:[N.jsx(vC,{name:x.name||x.id,size:30}),N.jsxs(qn,{direction:"vertical",size:0,children:[N.jsxs(qn,{size:6,children:[N.jsx(an.Text,{strong:!0,children:x.name}),x.id===d?N.jsx(ja,{color:"gold",icon:N.jsx(kF,{}),children:"默认"}):null]}),N.jsx(an.Text,{type:"secondary",code:!0,children:x.id})]})]})},{title:"Agent",dataIndex:"agent_type",width:140,valueType:"select",valueEnum:Object.fromEntries(f.map(C=>[C,{text:C}])),render:(C,x)=>N.jsx(ja,{children:x.agent_type})},{title:"状态",dataIndex:"enabled",width:110,valueType:"select",valueEnum:{true:{text:"启用"},false:{text:"停用"}},render:(C,x)=>x.enabled?N.jsx(ja,{color:"success",children:"启用"}):N.jsx(ja,{children:"停用"})},{title:"默认模型",dataIndex:"default_model",width:160,hideInSearch:!0,render:(C,x)=>x.default_model||"-"},{title:"工作目录策略",dataIndex:"workdir_strategy",width:170,hideInSearch:!0},{title:"更新时间",dataIndex:"updated_at",valueType:"dateTime",width:180,hideInSearch:!0,render:(C,x)=>su(x.updated_at)},{title:"操作",valueType:"option",width:180,fixed:"right",render:(C,x)=>[N.jsx(Bn,{title:"编辑",children:N.jsx(_n,{type:"text",icon:N.jsx(dRe,{}),"aria-label":"编辑 Profile",onClick:()=>h(x)})},"edit"),N.jsx(Bn,{title:"校验",children:N.jsx(_n,{type:"text",icon:N.jsx(C3,{}),"aria-label":"校验 Profile",onClick:async()=>{try{const w=await Zr.validateProfile(x.id);w.ok?Jo.success(zB(w)):Jo.warning(zB(w))}catch{Jo.error("Profile 校验失败")}}})},"validate"),N.jsx(Bn,{title:"设为默认",children:N.jsx(_n,{type:"text",icon:x.id===d?N.jsx(kF,{}):N.jsx(X4e,{}),"aria-label":"设为默认 Profile",disabled:x.id===d,onClick:async()=>{await Zr.setDefaultProfile(x.id),Jo.success("默认 Profile 已更新"),await m()}})},"default"),N.jsx(G4,{title:"删除 Profile",description:"现有会话会保留快照,新会话将无法再选择该 Profile。",okButtonProps:{danger:!0},onConfirm:async()=>{await Zr.deleteProfile(x.id),Jo.success("Profile 已删除"),await m()},children:N.jsx(Bn,{title:"删除",children:N.jsx(_n,{type:"text",danger:!0,icon:N.jsx(XIe,{}),"aria-label":"删除 Profile"})})},"delete")]}];return N.jsxs(uC,{title:"Agent Profile",subTitle:"Agent 启动参数、运行策略与动态配置",className:"page-container",extra:[d?N.jsx(_n,{onClick:async()=>{await Zr.clearDefaultProfile(),Jo.success("已清除默认 Profile"),await m()},children:"清除默认"},"clear-default"):null,N.jsx(_n,{type:"primary",icon:N.jsx(CI,{}),onClick:()=>h(),children:"新建 Profile"},"create")],children:[N.jsx(iM,{rowKey:"id",columns:b,dataSource:u,loading:l.isLoading,cardBordered:!0,search:{labelWidth:"auto"},scroll:{x:1050},pagination:{defaultPageSize:20,showTotal:C=>"共 "+C+" 个"},options:{reload:()=>l.refetch(),density:!0,setting:!0},headerTitle:N.jsxs(qn,{size:10,align:"center",children:[N.jsx("span",{children:"Profile 列表"}),N.jsxs("span",{className:"table-count",children:["共 ",u.length," 个"]})]}),locale:{emptyText:N.jsx($r,{className:"table-empty",image:$r.PRESENTED_IMAGE_SIMPLE,description:N.jsxs(qn,{direction:"vertical",size:2,children:[N.jsx(an.Text,{strong:!0,children:"还没有 Agent Profile"}),N.jsx(an.Text,{type:"secondary",children:"Profile 定义 Agent 的启动参数与运行策略,先创建一个开始使用"})]}),children:N.jsx(_n,{type:"primary",icon:N.jsx(CI,{}),onClick:()=>h(),children:"新建 Profile"})})}}),N.jsx(GY,{title:r?"编辑 Profile":"新建 Profile",width:720,open:t,onOpenChange:n,form:o,drawerProps:{destroyOnClose:!0},submitter:{searchConfig:{submitText:r?"保存修改":"创建 Profile"},submitButtonProps:{loading:g.isPending}},onFinish:async C=>(await g.mutateAsync(C),!0),children:N.jsx(Bi,{className:"profile-form-tabs",items:[{key:"basic",label:"基础信息",children:N.jsxs(ym,{children:[N.jsx(Ei,{name:"id",label:"Profile ID",width:"md",disabled:!!r,rules:[{required:!0,message:"请输入 Profile ID"},{pattern:/^[a-zA-Z0-9][a-zA-Z0-9._-]*$/,message:"仅支持字母、数字、点、下划线和连字符"}]}),N.jsx(Ei,{name:"name",label:"名称",width:"md",rules:[{required:!0,message:"请输入名称"}]}),N.jsx(Zo,{name:"agent_type",label:"Agent 类型",width:"md",showSearch:!0,disabled:!!r,options:f.map(C=>({label:C,value:C})),rules:[{required:!0,message:"请选择 Agent 类型"}]}),N.jsx(TBe,{name:"enabled",label:"启用",width:"md"})]})},{key:"runtime",label:"运行参数",children:N.jsxs(N.Fragment,{children:[N.jsxs(ym,{children:[N.jsx(Ei,{name:"command",label:"命令覆盖",width:"md"}),N.jsx(Zo,{name:"args",label:"启动参数",width:"md",mode:"tags",options:[]}),N.jsx(Ei,{name:"default_model",label:"默认模型",width:"md"}),N.jsx(Ei,{name:"reasoning_effort",label:"推理强度",width:"md",tooltip:"控制 Agent 推理深度,具体取值取决于 Agent 类型"}),N.jsx(Zo,{name:"workdir_strategy",label:"工作目录策略",width:"md",options:[{label:"系统默认",value:"system_default"},{label:"Profile 默认",value:"profile_default"},{label:"会话临时目录",value:"ephemeral_per_session"}]}),N.jsx(Xg,{name:["workdir_strategy"],children:({workdir_strategy:C})=>C==="profile_default"?N.jsx(Ei,{name:"working_dir",label:"默认工作目录",width:"md",rules:[{required:!0,message:"请输入默认工作目录"}]}):null}),N.jsx(KY,{name:"timeout_secs",label:"超时(秒)",width:"md",min:1,fieldProps:{precision:0}}),N.jsx(Zo,{name:"recovery_strategy",label:"恢复策略",width:"md",options:[{label:"不恢复",value:"none"},{label:"重启进程",value:"restart_process"},{label:"恢复会话",value:"resume_session"}]}),N.jsx(Zo,{name:"inherit_env",label:"继承环境变量",width:"md",mode:"tags",options:[]})]}),N.jsx(Iqe,{agentType:i})]})},{key:"env",label:"环境变量",children:N.jsx(WY,{name:"env_ref_entries",label:"环境变量引用",creatorButtonProps:{creatorButtonText:"添加环境变量引用"},children:N.jsxs(ym,{children:[N.jsx(Ei,{name:"key",label:"变量名",width:"sm"}),N.jsx(Ei,{name:"value",label:"引用",width:"md"})]})})}]})})]})}const Oy="********",Mqe={gateway:"Gateway 核心",telegram:"Telegram",line:"LINE",wecom:"企业微信",googlechat:"Google Chat",teams:"Microsoft Teams",feishu:"飞书"},Tqe={url:"连接地址",platform:"平台",webhook_path:"Webhook 路径",allowed_users:"允许的用户",allow_all_users:"允许所有用户",rich_messages:"富文本消息",trusted_source_only:"仅信任来源",streaming:"流式输出",streaming_enabled:"启用流式输出",debounce_secs:"防抖时间(秒)",bot_token:"Bot Token",secret_token:"Secret Token",channel_secret:"Channel Secret",channel_access_token:"Channel Access Token",app_secret:"App Secret",verification_token:"Verification Token",encrypt_key:"Encrypt Key",access_token:"Access Token",sa_key_json:"Service Account Key",encoding_aes_key:"Encoding AES Key",token:"Token",secret:"Secret"},Nqe=new Set(["allow_all_users","enabled","rich_messages","streaming","streaming_enabled","trusted_source_only"]);function ic(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function TX(e){var n;const t=((n=e.split(".").at(-1))==null?void 0:n.toLowerCase())||"";return["token","secret","password","credential","key"].some(r=>t.includes(r))}function _qe(e,t,n){var a;if(n)return"string";if(typeof t=="boolean")return"boolean";if(typeof t=="number")return"number";if(Array.isArray(t))return t.every(o=>typeof o=="string")?"string_array":"json";if(ic(t))return"json";const r=((a=e.split(".").at(-1))==null?void 0:a.toLowerCase())||"";return Nqe.has(r)||r.startsWith("enable_")?"boolean":r.endsWith("_secs")||r.endsWith("_ms")||r.endsWith("_minutes")||r.endsWith("_hours")||r==="port"?"number":r.startsWith("allowed_")||r.endsWith("_list")?"string_array":"string"}function jqe(e){const t=e.split(".").at(-1)||e;return Tqe[t]||t.replaceAll("_"," ")}function NX(e,t,n){if(ic(e)){for(const[r,a]of Object.entries(e))NX(a,t?t+"."+r:r,n);return}t&&n.add(t)}function Fqe(e){return ic(e)?e:{}}function lm(e){return JSON.parse(JSON.stringify(e))}function Dqe(e){return typeof e=="string"&&e!==Oy?e:""}function HB(e){const t=[],n=(r,a)=>{if(typeof r=="number"&&Number.isInteger(r)&&!Number.isSafeInteger(r)){t.push(a||"");return}if(Array.isArray(r)){r.forEach((o,i)=>n(o,a+"["+i+"]"));return}if(ic(r))for(const[o,i]of Object.entries(r))n(i,a?a+"."+o:o)};return n(e,""),t}function kqe(e,t){return t.split(".").reduce((r,a)=>ic(r)?r[a]:void 0,e)}function Aqe(e,t,n){const r=lm(e),a=t.split(".");let o=r;for(const i of a.slice(0,-1)){const l=o[i];ic(l)||(o[i]={}),o=o[i]}return o[a.at(-1)]=n,r}function Lqe(e,t){const n=new Set;NX(e,"",n),t.forEach(a=>n.add(a.path));const r=new Map(t.map(a=>[a.path,a]));return[...n].sort((a,o)=>a.localeCompare(o)).map(a=>{const o=r.get(a),i=kqe(e,a),l=(o==null?void 0:o.secret)||TX(a),c=a.split(".")[0]||"gateway";return{path:a,key:a.split(".").at(-1)||a,label:jqe(a),section:c,sectionLabel:Mqe[c]||c.replaceAll("_"," "),kind:_qe(a,i,l),value:i,applyPolicy:(o==null?void 0:o.apply_policy)||"restart_required",secret:l}})}function Iy(e){return Array.isArray(e)?e.map(Iy):ic(e)?Object.fromEntries(Object.keys(e).sort().map(t=>[t,Iy(e[t])])):e}function Bqe(e,t){return JSON.stringify(Iy(e))===JSON.stringify(Iy(t))}function zqe(e,t){const n=new Set(t.filter(a=>a.secret).map(a=>a.path)),r=(a,o)=>Array.isArray(a)?a.map((i,l)=>r(i,o+"."+l)):ic(a)?Object.fromEntries(Object.entries(a).map(([i,l])=>{const c=o?o+"."+i:i;return n.has(c)||TX(c)?[i,Oy]:[i,r(l,c)]})):a;return r(e,"")}function Hqe(e){return JSON.parse(e)}const Wv={runtime:{label:"实时生效",color:"green"},new_session:{label:"新会话生效",color:"blue"},restart_required:{label:"重启生效",color:"orange"}};function Kv(e,t){return e instanceof fC||e instanceof Error?e.message:t}function qv(e){return e.errors.slice(0,4).map(t=>t.path+":"+t.message).join(";")}function Vqe({value:e,disabled:t,onChange:n}){const r=e===void 0?"":JSON.stringify(e,null,2),[a,o]=s.useState(r),[i,l]=s.useState("");return s.useEffect(()=>{o(r),l("")},[r]),N.jsxs(qn,{direction:"vertical",size:4,className:"config-json-control",children:[N.jsx(Vr.TextArea,{value:a,disabled:t,autoSize:{minRows:3,maxRows:8},status:i?"error":void 0,onChange:c=>{const u=c.target.value;o(u);try{n(Hqe(u)),l("")}catch{l("请输入有效的 JSON。")}}}),i?N.jsx(an.Text,{type:"danger",children:i}):null]})}function Wqe({field:e,disabled:t,onChange:n}){return e.kind==="boolean"?N.jsxs("div",{className:"config-switch-control",children:[N.jsx(X4,{checked:e.value===!0,disabled:t,checkedChildren:"开启",unCheckedChildren:"关闭",onChange:n}),N.jsx(an.Text,{type:"secondary",children:e.value===void 0?"未设置,沿用系统默认值":"已显式设置"})]}):e.kind==="number"?N.jsx(cl,{value:typeof e.value=="number"?e.value:void 0,disabled:t,controls:!0,onChange:r=>{r!==null&&n(r)}}):e.kind==="string_array"?N.jsx(li,{mode:"tags",value:Array.isArray(e.value)?e.value.filter(r=>typeof r=="string"):[],disabled:t,tokenSeparators:[","],placeholder:"输入后按回车添加",onChange:n}):e.kind==="json"?N.jsx(Vqe,{value:e.value,disabled:t,onChange:n}):e.secret?N.jsx(Vr.Password,{value:Dqe(e.value),disabled:t,visibilityToggle:!1,prefix:N.jsx(SRe,{}),placeholder:e.value===Oy?Oy:"未设置;输入新值后保存",autoComplete:"new-password",onChange:r=>n(r.target.value)}):N.jsx(Vr,{value:typeof e.value=="string"?e.value:"",disabled:t,allowClear:!0,onChange:r=>n(r.target.value)})}function Kqe(){var D;const{message:e}=ZR.useApp(),[t,n]=s.useState({}),[r,a]=s.useState({}),[o,i]=s.useState(!1),[l,c]=s.useState(""),[u,d]=s.useState({}),[f,m]=s.useState(),[g,h]=s.useState("idle"),b=ol({queryKey:["config"],queryFn:Zr.config}),p=ol({queryKey:["configStatus"],queryFn:Zr.configStatus}),S=((D=b.data)==null?void 0:D.metadata)||[],C=s.useMemo(()=>Lqe(t,S),[t,S]),x=o&&!Bqe(t,r),w=g!=="idle",$=F=>{const L=lm(Fqe(F));n(L),a(lm(L)),d({}),i(!0),CKe()};s.useEffect(()=>{b.data&&!o&&$(b.data.values)},[b.data,o]),s.useEffect(()=>(NB(x),()=>NB(!1)),[x]),s.useEffect(()=>{if(!x)return;const F=q=>{q.preventDefault(),q.returnValue=""},L=$X(window.history.state),B=window.history.state,K=window.location.href;let W=!1;const V=q=>{if(W){W=!1;return}if(sM())return;q.stopImmediatePropagation();const U=SKe(L,q.state);if(U===void 0){window.history.replaceState(B,"",K);return}W=!0,window.history.go(U)};return window.addEventListener("beforeunload",F),window.addEventListener("popstate",V,!0),()=>{window.removeEventListener("beforeunload",F),window.removeEventListener("popstate",V,!0)}},[x]);const E=s.useMemo(()=>{const F=l.trim().toLowerCase(),L=new Map;for(const B of C){if(F&&!B.path.toLowerCase().includes(F)&&!B.label.toLowerCase().includes(F)&&!B.sectionLabel.toLowerCase().includes(F))continue;const K=L.get(B.section)||[];K.push(B),L.set(B.section,K)}return[...L.entries()].map(([B,K])=>{var W;return{key:B,label:((W=K[0])==null?void 0:W.sectionLabel)||B,fields:K}})},[C,l]),R=C.reduce((F,L)=>(F[L.applyPolicy]+=1,F),{runtime:0,new_session:0,restart_required:0}),I=F=>{d(Object.fromEntries(F.errors.map(L=>[L.path,L.message])))},O=(F,L)=>{n(B=>Aqe(B,F,L)),d(B=>{const K={...B};return delete K[F],K}),m(void 0)},T=async()=>{if(!(x&&!window.confirm("刷新会丢弃当前未保存的修改,确定继续吗?"))){h("refreshing"),m(void 0);try{const[F]=await Promise.all([b.refetch(),p.refetch()]);F.data&&$(F.data.values)}finally{h("idle")}}},_=async()=>{const F=HB(t);if(F.length){m({type:"error",title:"配置包含无法安全编辑的大整数",description:F.slice(0,4).join("、")+" 超出浏览器安全整数范围。请先在服务端配置文件中处理这些值。"});return}h("validating");try{const L=await Zr.validateConfig(lm(t));I(L),L.ok?m({type:"success",title:"配置校验通过",description:"当前修改可以安全保存,配置文件尚未写入。"}):m({type:"error",title:"配置校验未通过",description:qv(L)||"请修正标记字段后重试。"})}catch(L){m({type:"error",title:"无法完成配置校验",description:Kv(L,"校验请求失败,请稍后重试。")})}finally{h("idle")}},k=async()=>{h("reloading");try{const F=await Zr.reloadConfig();if(I(F.validation),await p.refetch(),!F.validation.ok){m({type:"error",title:"重载前校验未通过",description:qv(F.validation)});return}m({type:"success",title:"Gateway 已重新加载配置",description:"已即时应用 "+F.runtime.applied_paths.length+" 个字段;仍需重启 "+F.status.pending_restart.length+" 个字段。"}),e.success("配置重载完成")}catch(F){m({type:"warning",title:"配置仍未完成重载",description:Kv(F,"当前进程继续使用上一次运行时配置。"),retryReload:!0})}finally{h("idle")}},A=async()=>{var K;const F=HB(t);if(F.length){m({type:"error",title:"配置未保存",description:F.slice(0,4).join("、")+" 超出浏览器安全整数范围,继续保存可能损坏原值。"});return}const L=lm(t);let B=!1;h("saving"),m(void 0);try{const W=await Zr.saveConfig(L);if(I(W.validation),!W.validation.ok){m({type:"error",title:"配置未保存",description:qv(W.validation)||"后端拒绝了当前修改,原配置文件保持不变。"});return}B=!0,$(zqe(L,S)),h("reloading");const V=await Zr.reloadConfig();I(V.validation);const[q]=await Promise.all([b.refetch(),p.refetch()]);if(q.data&&$(q.data.values),!V.validation.ok){m({type:"warning",title:"配置已保存,但没有完成动态重载",description:qv(V.validation)+"。当前进程继续使用上一次运行时配置;可修正后重新保存。",retryReload:!0});return}m({type:V.status.pending_restart.length?"info":"success",title:"配置已保存并完成动态重载",description:"已即时应用 "+V.runtime.applied_paths.length+" 个字段;"+(V.status.pending_restart.length?V.status.pending_restart.length+" 个字段将在 Gateway 重启后生效。":"没有等待重启的字段。")}),e.success("Gateway 配置已更新")}catch(W){B?(m({type:"warning",title:"配置已保存,但 reload 请求失败",description:Kv(W,"当前进程继续使用上一次运行时配置。")+((K=p.data)!=null&&K.rollback_available?" 服务器已保留上一份配置快照。":""),retryReload:!0}),Promise.all([b.refetch(),p.refetch()])):m({type:"error",title:"配置保存失败",description:Kv(W,"配置文件未确认写入,请保留当前修改并重试。")})}finally{h("idle")}},j=p.data;return N.jsxs(uC,{title:"Gateway 配置",subTitle:"按当前配置结构编辑、校验并动态重载",className:"page-container",extra:[N.jsx(_n,{icon:N.jsx(S3,{}),onClick:T,loading:g==="refreshing",disabled:w&&g!=="refreshing",children:"刷新"},"refresh"),N.jsx(_n,{icon:N.jsx(C3,{}),onClick:_,loading:g==="validating",disabled:!o||w&&g!=="validating",children:"校验"},"validate"),N.jsx(_n,{type:"primary",icon:N.jsx(dF,{}),onClick:A,loading:g==="saving"||g==="reloading",disabled:!x||w,children:"保存并重载"},"save")],children:[b.isError?N.jsx(Oc,{type:"error",showIcon:!0,message:"无法读取 Gateway 配置",description:Kv(b.error,"请检查 Gateway API 后重试。"),action:N.jsx(_n,{onClick:T,children:"重试"}),className:"config-alert"}):null,j!=null&&j.pending_restart.length?N.jsx(Oc,{type:"warning",showIcon:!0,message:"存在等待重启生效的配置",description:j.pending_restart.join("、"),className:"config-alert"}):null,j!=null&&j.last_validation&&!j.last_validation.ok?N.jsx(Oc,{type:"error",showIcon:!0,message:"最近一次服务端校验未通过",description:qv(j.last_validation),className:"config-alert"}):null,f?N.jsx(Oc,{type:f.type,showIcon:!0,closable:!0,message:f.title,description:f.description,action:f.retryReload?N.jsx(_n,{size:"small",icon:N.jsx(dF,{}),onClick:k,loading:g==="reloading",children:"重试重载"}):void 0,onClose:()=>m(void 0),className:"config-alert"}):null,N.jsxs("section",{className:"config-status-band",children:[N.jsxs("div",{className:"panel-heading",children:[N.jsxs("div",{className:"panel-heading-title",children:[N.jsx("span",{className:"panel-icon blue","aria-hidden":"true",children:N.jsx(TRe,{})}),N.jsxs("div",{children:[N.jsx(an.Title,{level:4,children:"配置状态"}),N.jsx(an.Text,{type:"secondary",children:"运行时加载、校验与回滚能力"})]})]}),N.jsxs(qn,{wrap:!0,children:[x?N.jsx(ja,{color:"gold",children:"有未保存修改"}):N.jsx(ja,{color:"green",children:"已同步"}),N.jsx(ja,{color:j!=null&&j.rollback_available?"blue":"default",children:j!=null&&j.rollback_available?"有回滚快照":"无回滚快照"})]})]}),N.jsxs(Wa,{column:{xs:1,sm:2,lg:4},size:"small",colon:!1,children:[N.jsx(Wa.Item,{label:"配置路径",children:N.jsx(an.Text,{code:!0,children:(j==null?void 0:j.config_path)||"-"})}),N.jsx(Wa.Item,{label:"最近保存",children:su(j==null?void 0:j.last_saved_at)}),N.jsx(Wa.Item,{label:"加载哈希",children:N.jsx(an.Text,{copyable:!0,code:!0,children:(j==null?void 0:j.last_loaded_hash)||"-"})}),N.jsx(Wa.Item,{label:"校验状态",children:j!=null&&j.last_validation?N.jsx(ja,{color:j.last_validation.ok?"green":"red",children:j.last_validation.ok?"通过":"未通过"}):N.jsx(ja,{children:"暂无记录"})})]}),N.jsx("div",{className:"config-policy-summary",children:Object.keys(Wv).map(F=>N.jsxs("div",{className:"config-policy-item",children:[N.jsx(ja,{color:Wv[F].color,children:Wv[F].label}),N.jsx(an.Text,{strong:!0,children:R[F]}),N.jsx(an.Text,{type:"secondary",children:"个字段"})]},F))})]}),N.jsxs("section",{className:"config-editor-shell",children:[N.jsxs("div",{className:"config-editor-toolbar",children:[N.jsxs("div",{className:"panel-heading-title",children:[N.jsx("span",{className:"panel-icon dark","aria-hidden":"true",children:N.jsx(BIe,{})}),N.jsxs("div",{children:[N.jsx(an.Title,{level:4,children:"配置编辑器"}),N.jsx(an.Text,{type:"secondary",children:"Secret 字段仅显示脱敏占位;保存时未修改的 Secret 会保留原值。"})]})]}),N.jsx(Vr,{className:"config-search",prefix:N.jsx(tG,{}),value:l,allowClear:!0,placeholder:"搜索字段或平台",onChange:F=>c(F.target.value)})]}),!o&&b.isLoading?N.jsx("div",{className:"config-loading",children:N.jsxs(qn,{direction:"vertical",align:"center",children:[N.jsx(vi,{}),N.jsx(an.Text,{type:"secondary",children:"正在读取配置"})]})}):E.length?N.jsx(Gz,{className:"config-sections",defaultActiveKey:E.slice(0,2).map(F=>F.key),items:E.map(F=>({key:F.key,label:N.jsxs(qn,{children:[N.jsx(an.Text,{strong:!0,children:F.label}),N.jsxs(ja,{children:[F.fields.length," 项"]})]}),children:N.jsx("div",{className:"config-field-list",children:F.fields.map(L=>N.jsxs("div",{className:"config-field-row",children:[N.jsxs("div",{className:"config-field-copy",children:[N.jsxs(qn,{size:6,wrap:!0,children:[N.jsx(an.Text,{strong:!0,children:L.label}),N.jsx(ja,{color:Wv[L.applyPolicy].color,children:Wv[L.applyPolicy].label}),L.secret?N.jsx(ja,{color:"red",icon:N.jsx(EI,{}),children:"Secret"}):null]}),N.jsx(an.Text,{code:!0,type:"secondary",children:L.path})]}),N.jsx(Fn.Item,{validateStatus:u[L.path]?"error":void 0,help:u[L.path],children:N.jsx(Wqe,{field:L,disabled:w,onChange:B=>O(L.path,B)})})]},L.path))})}))}):N.jsx($r,{description:l?"没有匹配的配置字段":"当前没有可编辑字段"})]})]})}function qqe(){const e=Fg(),t=Dg(),[n,r]=s.useState(lM),[a,o]=s.useState("");return s.useEffect(()=>{const i=()=>{o("登录已失效,请重新输入 Admin Token。"),r("")};return window.addEventListener(mR,i),()=>window.removeEventListener(mR,i)},[]),n?e.pathname==="/login"?N.jsx(Mh,{to:TB(e.search),replace:!0}):N.jsx($Oe,{children:N.jsxs(Rl,{element:N.jsx(HKe,{onLogout:()=>{o(""),r("")}}),children:[N.jsx(Rl,{index:!0,element:N.jsx(Mh,{to:"/overview",replace:!0})}),N.jsx(Rl,{path:"/overview",element:N.jsx(JKe,{})}),N.jsx(Rl,{path:"/sessions",element:N.jsx(BB,{})}),N.jsx(Rl,{path:"/sessions/:id",element:N.jsx(BB,{})}),N.jsx(Rl,{path:"/profiles",element:N.jsx(Rqe,{})}),N.jsx(Rl,{path:"/config",element:N.jsx(Kqe,{})}),N.jsx(Rl,{path:"*",element:N.jsx(Mh,{to:"/overview",replace:!0})})]})}):e.pathname!=="/login"?N.jsx(Mh,{to:bKe(e),replace:!0}):N.jsx(KKe,{reason:a,onAuthenticated:i=>{o(""),r(i),t(TB(e.search),{replace:!0})}})}const Uqe=new pPe({defaultOptions:{queries:{staleTime:15e3,retry:1,refetchOnWindowFocus:!1},mutations:{retry:0}}});CJ.createRoot(document.getElementById("root")).render(N.jsx(ee.StrictMode,{children:N.jsx(Rt,{locale:WEe,theme:{algorithm:so.defaultAlgorithm,token:{colorPrimary:"#1677ff",colorInfo:"#1677ff",colorSuccess:"#1f9d68",colorWarning:"#d98b16",colorError:"#d14343",colorText:"#1b2430",colorTextSecondary:"#5b6b7c",colorTextTertiary:"#8593a3",colorBgLayout:"#f3f5f9",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBorder:"#dbe3ec",colorBorderSecondary:"#e8eef4",colorFillSecondary:"#eef2f7",borderRadius:8,boxShadow:"0 1px 2px 0 rgba(16, 27, 41, 0.04), 0 1px 6px -1px rgba(16, 27, 41, 0.03), 0 2px 4px 0 rgba(16, 27, 41, 0.03)",fontFamily:'Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif'},components:{Button:{controlHeight:34,borderRadius:8},Card:{borderRadiusLG:12,colorBgContainer:"#ffffff"},Table:{headerBg:"#f7f9fc",headerColor:"#45536a",rowHoverBg:"#f5f8ff",borderColor:"#e8eef4",headerSplitColor:"transparent"},Select:{colorBgContainer:"#ffffff",optionSelectedBg:"#e8f1ff"},Drawer:{colorBgElevated:"#ffffff"},DatePicker:{colorBgElevated:"#ffffff"},Tooltip:{colorBgSpotlight:"#1b2430"}}},children:N.jsx(ZR,{children:N.jsx(hPe,{client:Uqe,children:N.jsx(OOe,{children:N.jsx(qqe,{})})})})})}))});export default Gqe(); diff --git a/web/package.json b/web/package.json index 588b4736..be68d88a 100644 --- a/web/package.json +++ b/web/package.json @@ -1,7 +1,7 @@ { "name": "openab-admin-web", "private": true, - "version": "0.2.3", + "version": "0.3.0", "type": "module", "packageManager": "pnpm@10.14.0", "scripts": { @@ -14,6 +14,7 @@ "dependencies": { "@ant-design/icons": "^6.0.0", "@ant-design/pro-components": "^2.8.10", + "@ant-design/x": "1.0.5", "@microsoft/fetch-event-source": "^2.0.1", "@tanstack/react-query": "^5.87.1", "antd": "^5.27.4", @@ -23,9 +24,9 @@ "react-router-dom": "^6.30.1" }, "devDependencies": { + "@types/node": "^22.13.4", "@types/react": "^18.3.24", "@types/react-dom": "^18.3.7", - "@types/node": "^22.13.4", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.3", "vite": "^6.1.0", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 3fdd2c6c..9429b53c 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@ant-design/pro-components': specifier: ^2.8.10 version: 2.8.10(antd@5.29.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(rc-field-form@2.7.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@ant-design/x': + specifier: 1.0.5 + version: 1.0.5(antd@5.29.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@microsoft/fetch-event-source': specifier: ^2.0.1 version: 2.0.1 @@ -184,6 +187,13 @@ packages: peerDependencies: react: '>=16.9.0' + '@ant-design/x@1.0.5': + resolution: {integrity: sha512-St+JqVa6VNDTDjsn79O+GN6hG2rxZ1Skksjbfzn9JFkHNXXBQ+7SK+Vh2lDaZi48IzLPhaiBzFu+D8/4mgw2Ww==} + peerDependencies: + antd: '>=5.0.0' + react: '>=18.0.0' + react-dom: '>=18.0.0' + '@babel/code-frame@7.29.7': resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==} engines: {node: '>=6.9.0'} @@ -1697,6 +1707,21 @@ snapshots: resize-observer-polyfill: 1.5.1 throttle-debounce: 5.0.2 + '@ant-design/x@1.0.5(antd@5.29.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + dependencies: + '@ant-design/colors': 7.2.1 + '@ant-design/cssinjs': 1.24.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@ant-design/cssinjs-utils': 1.1.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@ant-design/fast-color': 2.0.6 + '@ant-design/icons': 5.6.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@babel/runtime': 7.29.7 + antd: 5.29.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + classnames: 2.5.1 + rc-motion: 2.9.5(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + rc-util: 5.44.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react: 18.3.1 + react-dom: 18.3.1(react@18.3.1) + '@babel/code-frame@7.29.7': dependencies: '@babel/helper-validator-identifier': 7.29.7 diff --git a/web/src/App.tsx b/web/src/App.tsx index 317db1f8..1dc8b895 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -3,8 +3,7 @@ import { Navigate, Route, Routes, useLocation, useNavigate } from 'react-router- import { AdminLayout } from './components/AdminLayout'; import { LoginPage } from './pages/LoginPage'; import { OverviewPage } from './pages/OverviewPage'; -import { SessionsPage } from './pages/SessionsPage'; -import { SessionDetailPage } from './pages/SessionDetailPage'; +import { SessionWorkbenchPage } from './pages/SessionWorkbenchPage'; import { ProfilesPage } from './pages/ProfilesPage'; import { ConfigPage } from './pages/ConfigPage'; import { @@ -66,8 +65,8 @@ export function App() { > } /> } /> - } /> - } /> + } /> + } /> } /> } /> } /> diff --git a/web/src/components/AdminLayout.tsx b/web/src/components/AdminLayout.tsx index 892ad425..c7f279d2 100644 --- a/web/src/components/AdminLayout.tsx +++ b/web/src/components/AdminLayout.tsx @@ -17,22 +17,16 @@ import { confirmRouteNavigation, } from '../lib/navigationGuard'; import openabLogo from '../assets/openab-logo.png?inline'; +import { useSessionStream } from '../hooks/useSessionStream'; import { - StreamStatus, - useSessionStream, -} from '../hooks/useSessionStream'; + StreamStatusContext, + streamStatusLabels, +} from '../hooks/streamStatusContext'; interface AdminLayoutProps { onLogout: () => void; } -const streamLabels: Record = { - connecting: '正在连接', - live: '实时连接', - reconnecting: '正在重连', - offline: '离线', -}; - const COLLAPSE_STORAGE_KEY = 'openab.admin.sider-collapsed'; function readCollapsedPreference(): boolean { @@ -155,7 +149,7 @@ export function AdminLayout({ onLogout }: AdminLayoutProps) { {props?.collapsed ? null : ( - {streamLabels[streamStatus]} + {streamStatusLabels[streamStatus]} v{__APP_VERSION__} @@ -167,13 +161,13 @@ export function AdminLayout({ onLogout }: AdminLayoutProps) { avatarProps={false} actionsRender={() => [ , @@ -223,7 +217,9 @@ export function AdminLayout({ onLogout }: AdminLayoutProps) { }} >
- + + +
); diff --git a/web/src/components/RecentSessionsList.tsx b/web/src/components/RecentSessionsList.tsx new file mode 100644 index 00000000..88273275 --- /dev/null +++ b/web/src/components/RecentSessionsList.tsx @@ -0,0 +1,92 @@ +import { EyeOutlined, ReloadOutlined } from '@ant-design/icons'; +import { Button, Empty, List, Skeleton, Space, Typography } from 'antd'; +import { useNavigate } from 'react-router-dom'; +import { SessionSnapshot } from '../types'; +import { formatRelativeTime } from '../lib/format'; +import { sortSessions } from '../lib/session'; +import { EntityMark } from './EntityMark'; +import { StatusTag } from './StatusTag'; + +interface RecentSessionsListProps { + sessions: SessionSnapshot[]; + loading?: boolean; + limit?: number; + title?: string; + onReload?: () => void; +} + +export function RecentSessionsList({ + sessions, + loading = false, + limit = 8, + title = '最近会话', + onReload, +}: RecentSessionsListProps) { + const navigate = useNavigate(); + const items = sortSessions(sessions).slice(0, limit); + + return ( +
+
+ + {title} + 共 {sessions.length} 条 + + {onReload ? ( +
+ {loading ? ( +
+ +
+ ) : items.length ? ( + ( + } + aria-label="查看会话详情" + onClick={() => + navigate('/sessions/' + encodeURIComponent(session.session_id)) + } + />, + ]} + > + } + title={ + + {session.session_id} + + + } + description={ + + {session.agent || '-'} · {session.profile_name || session.profile_id || '默认 Profile'} ·{' '} + {formatRelativeTime(session.updated_at)} + + } + /> + + )} + /> + ) : ( + + )} +
+ ); +} diff --git a/web/src/components/SessionTable.tsx b/web/src/components/RecentSessionsTable.tsx similarity index 94% rename from web/src/components/SessionTable.tsx rename to web/src/components/RecentSessionsTable.tsx index 9724cad5..0d137842 100644 --- a/web/src/components/SessionTable.tsx +++ b/web/src/components/RecentSessionsTable.tsx @@ -13,11 +13,15 @@ import { import { useNavigate } from 'react-router-dom'; import { SessionFilters, SessionSnapshot } from '../types'; import { filterSessions } from '../lib/session'; -import { formatDateTime, formatRelativeTime } from '../lib/format'; +import { + formatDateTime, + formatRelativeTime, + sessionStatusOptions, +} from '../lib/format'; import { StatusTag } from './StatusTag'; import { EntityMark } from './EntityMark'; -interface SessionTableProps { +interface RecentSessionsTableProps { sessions: SessionSnapshot[]; loading?: boolean; compact?: boolean; @@ -35,7 +39,7 @@ interface SearchValues { updated_at?: [string, string]; } -export function SessionTable({ +export function RecentSessionsTable({ sessions, loading, compact = false, @@ -43,7 +47,7 @@ export function SessionTable({ onReload, title = '会话', limit, -}: SessionTableProps) { +}: RecentSessionsTableProps) { const navigate = useNavigate(); const [filters, setFilters] = useState( {}, @@ -70,14 +74,9 @@ export function SessionTable({ dataIndex: 'status', width: 112, valueType: 'select', - valueEnum: { - starting: { text: '启动中' }, - idle: { text: '空闲' }, - running: { text: '运行中' }, - suspended: { text: '已暂停' }, - error: { text: '失败' }, - exited: { text: '已退出' }, - }, + valueEnum: Object.fromEntries( + sessionStatusOptions.map(({ value, label }) => [value, { text: label }]), + ), render: (_, record) => , }, { diff --git a/web/src/components/SessionInspector.tsx b/web/src/components/SessionInspector.tsx new file mode 100644 index 00000000..57dd9721 --- /dev/null +++ b/web/src/components/SessionInspector.tsx @@ -0,0 +1,173 @@ +import { + Alert, + Descriptions, + Empty, + Space, + Tabs, + Timeline, + Typography, +} from 'antd'; +import { + AlertOutlined, + ClockCircleOutlined, + ProfileOutlined, +} from '@ant-design/icons'; +import { SessionSnapshot, SessionTimelineItem } from '../types'; +import { eventLabel, formatDateTime } from '../lib/format'; +import { StatusTag } from './StatusTag'; + +interface SessionInspectorProps { + session?: SessionSnapshot; + timeline: SessionTimelineItem[]; +} + +export function SessionInspector({ session, timeline }: SessionInspectorProps) { + if (!session) { + return ( + + ); + } + + return ( + + ); +} + +function MetadataPanel({ session }: { session: SessionSnapshot }) { + return ( + + {session.agent || '-'} + {session.source.platform || '-'} + + + {session.source.thread_id || '-'} + + + + + {session.workdir || '-'} + + + + + {session.profile_name || session.profile_id || '-'} + {session.profile_status === 'deleted' ? ( + 已删除 + ) : null} + + + {session.model || '-'} + + {formatDateTime(session.created_at)} + + + {formatDateTime(session.updated_at)} + + + + {session.session_id} + + + + ); +} + +function AlertPanel({ session }: { session: SessionSnapshot }) { + const hasConfigErrors = Boolean(session.profile_config_errors?.length); + const hasLastError = Boolean(session.last_error); + + if (!hasConfigErrors && !hasLastError) { + return ( + + ); + } + + return ( +
+ {hasLastError ? ( + + ) : null} + {hasConfigErrors ? ( + ( +
+ {error.config_id}: {error.error} +
+ ))} + /> + ) : null} +
+ ); +} + +function InspectorTimeline({ timeline }: { timeline: SessionTimelineItem[] }) { + if (!timeline.length) { + return ; + } + + return ( + ({ + color: item.status === 'error' ? 'red' : 'blue', + children: ( +
+ {eventLabel(item.event)} +
+ + {formatDateTime(item.at)} + + {item.error ? ( + {item.error} + ) : null} +
+ ), + }))} + /> + ); +} diff --git a/web/src/components/SessionMainPanel.tsx b/web/src/components/SessionMainPanel.tsx new file mode 100644 index 00000000..26407e8b --- /dev/null +++ b/web/src/components/SessionMainPanel.tsx @@ -0,0 +1,174 @@ +import { + BranchesOutlined, + LinkOutlined, + LockOutlined, +} from '@ant-design/icons'; +import { Button, Divider, Empty, Space, Timeline, Typography } from 'antd'; +import { SessionSnapshot, SessionTimelineItem } from '../types'; +import { eventLabel, formatDateTime, statusLabels } from '../lib/format'; +import { StreamStatus } from '../hooks/useSessionStream'; +import { StatusTag } from './StatusTag'; + +export const streamStatusLabels: Record = { + connecting: '正在连接', + live: '实时连接', + reconnecting: '正在重连', + offline: '离线', +}; + +interface SessionMainPanelProps { + session?: SessionSnapshot; + timeline: SessionTimelineItem[]; + streamStatus: StreamStatus; +} + +function timelineColor(status: SessionTimelineItem['status']): string { + if (status === 'error') return 'red'; + if (status === 'running' || status === 'starting') return 'green'; + return 'blue'; +} + +export function SessionMainPanel({ + session, + timeline, + streamStatus, +}: SessionMainPanelProps) { + if (!session) { + return ( +
+ + +
+ ); + } + + const orderedTimeline = [...timeline].reverse(); + + return ( +
+
+
+ +
+ {session.session_id} + + 只读会话观测 · {session.source.platform || '未知来源'} + +
+
+ +
+ +
+ + + + + + {session.external_url ? ( +
+ 会话链接 + +
+ ) : ( + + )} +
+ + + +
+
+
+ 状态事件流 + + 当前会话最近 {timeline.length} 条状态事件 + +
+ 仅观测 +
+ {orderedTimeline.length ? ( + ({ + color: timelineColor(item.status), + children: ( +
+
+ {eventLabel(item.event)} + +
+ + {formatDateTime(item.at)} + + {item.error ? ( + + {item.error} + + ) : null} +
+ ), + }))} + /> + ) : ( + + )} +
+ + +
+ ); +} + +function StatusField({ + label, + value, + code = false, +}: { + label: string; + value: string; + code?: boolean; +}) { + return ( +
+ {label} + + {value} + +
+ ); +} + +function ReadOnlyBar({ streamStatus }: { streamStatus: StreamStatus }) { + return ( +
+ + + 只读观测 + + 此工作台不会修改会话、模型或 Agent 配置 + + + + +
+ ); +} diff --git a/web/src/components/SessionSidebar.tsx b/web/src/components/SessionSidebar.tsx new file mode 100644 index 00000000..b43e03df --- /dev/null +++ b/web/src/components/SessionSidebar.tsx @@ -0,0 +1,162 @@ +import { useMemo, useState } from 'react'; +import { Conversations } from '@ant-design/x'; +import type { ConversationsProps } from '@ant-design/x'; +import { + FilterOutlined, + PlusOutlined, + ReloadOutlined, +} from '@ant-design/icons'; +import { Button, Empty, Input, Select, Space, Spin, Tooltip, Typography } from 'antd'; +import { SessionSnapshot, SessionStatus } from '../types'; +import { filterSessions, matchesSessionKeyword } from '../lib/session'; +import { formatRelativeTime, statusLabels } from '../lib/format'; +import { EntityMark } from './EntityMark'; +import { StatusTag } from './StatusTag'; + +interface SessionSidebarProps { + sessions: SessionSnapshot[]; + selectedId?: string; + loading?: boolean; + onSelect: (sessionId: string) => void; + onReload?: () => void; +} + +const statusOptions: Array<{ value: SessionStatus | ''; label: string }> = [ + { value: '', label: '全部状态' }, + { value: 'starting', label: statusLabels.starting }, + { value: 'idle', label: statusLabels.idle }, + { value: 'running', label: statusLabels.running }, + { value: 'suspended', label: statusLabels.suspended }, + { value: 'error', label: statusLabels.error }, + { value: 'exited', label: statusLabels.exited }, +]; + +function groupLabel(session: SessionSnapshot): string { + const agent = session.agent || '未命名 Agent'; + const profile = session.profile_name || session.profile_id || '默认 Profile'; + return agent + ' / ' + profile; +} + +function conversationLabel(session: SessionSnapshot) { + return ( + + + {session.session_id} + + + + {formatRelativeTime(session.updated_at)} + + + ); +} + +export function SessionSidebar({ + sessions, + selectedId, + loading = false, + onSelect, + onReload, +}: SessionSidebarProps) { + const [keyword, setKeyword] = useState(''); + const [status, setStatus] = useState(''); + + const visibleSessions = useMemo(() => { + const statusFiltered = filterSessions(sessions, { + status: status || undefined, + }); + return statusFiltered.filter((session) => + matchesSessionKeyword(session, keyword), + ); + }, [keyword, sessions, status]); + + const items = useMemo>( + () => + visibleSessions.map((session) => ({ + key: session.session_id, + group: groupLabel(session), + icon: , + label: conversationLabel(session), + })), + [visibleSessions], + ); + + return ( + + ); +} diff --git a/web/src/hooks/streamStatusContext.ts b/web/src/hooks/streamStatusContext.ts new file mode 100644 index 00000000..160a7ee3 --- /dev/null +++ b/web/src/hooks/streamStatusContext.ts @@ -0,0 +1,15 @@ +import { createContext, useContext } from 'react'; +import type { StreamStatus } from './useSessionStream'; + +export const streamStatusLabels: Record = { + connecting: '正在连接', + live: '实时连接', + reconnecting: '正在重连', + offline: '离线', +}; + +export const StreamStatusContext = createContext('offline'); + +export function useStreamStatus(): StreamStatus { + return useContext(StreamStatusContext); +} diff --git a/web/src/hooks/useMediaQuery.ts b/web/src/hooks/useMediaQuery.ts new file mode 100644 index 00000000..6b4e63ee --- /dev/null +++ b/web/src/hooks/useMediaQuery.ts @@ -0,0 +1,19 @@ +import { useEffect, useState } from 'react'; + +export function useMediaQuery(query: string): boolean { + const [matches, setMatches] = useState(() => { + if (typeof window === 'undefined' || !window.matchMedia) return false; + return window.matchMedia(query).matches; + }); + + useEffect(() => { + if (typeof window === 'undefined' || !window.matchMedia) return; + const media = window.matchMedia(query); + const onChange = (event: MediaQueryListEvent) => setMatches(event.matches); + setMatches(media.matches); + media.addEventListener('change', onChange); + return () => media.removeEventListener('change', onChange); + }, [query]); + + return matches; +} diff --git a/web/src/hooks/useSessionStream.ts b/web/src/hooks/useSessionStream.ts index 8a37e085..7d17b5c0 100644 --- a/web/src/hooks/useSessionStream.ts +++ b/web/src/hooks/useSessionStream.ts @@ -6,7 +6,6 @@ import { SessionTimelineItem, } from '../types'; import { - LAST_EVENT_ID_KEY, notifyUnauthorized, readAdminToken, } from '../lib/auth'; @@ -27,7 +26,13 @@ function wait(milliseconds: number): Promise { export function useSessionStream(enabled: boolean): StreamStatus { const queryClient = useQueryClient(); const [status, setStatus] = useState('offline'); - const lastEventId = useRef(sessionStorage.getItem(LAST_EVENT_ID_KEY) || ''); + // Cold start always connects without Last-Event-ID so the server replays + // the retained history from sequence 0: the timeline cache is in-memory + // only, so resuming from a persisted cursor after a refresh would leave + // the detail timeline with just its seed entries. Reconnects within this + // page's lifetime still resume from the in-memory cursor to avoid + // re-replaying history on every transient drop. + const lastEventId = useRef(''); useEffect(() => { if (!enabled) { @@ -72,7 +77,6 @@ export function useSessionStream(enabled: boolean): StreamStatus { onmessage(message) { if (message.id) { lastEventId.current = message.id; - sessionStorage.setItem(LAST_EVENT_ID_KEY, message.id); } const event = parseSessionEventPayload(message.data); @@ -88,10 +92,6 @@ export function useSessionStream(enabled: boolean): StreamStatus { if (event.sequence && !message.id) { lastEventId.current = String(event.sequence); - sessionStorage.setItem( - LAST_EVENT_ID_KEY, - lastEventId.current, - ); } queryClient.setQueryData( ['sessions'], diff --git a/web/src/lib/format.ts b/web/src/lib/format.ts index c1f55c0c..72394043 100644 --- a/web/src/lib/format.ts +++ b/web/src/lib/format.ts @@ -1,14 +1,30 @@ -import { SessionStatus } from '../types'; +import { + SESSION_STATUS_DISPLAY, + SESSION_STATUS_FILTER_OPTIONS, +} from './sessionStatus'; -export const statusLabels: Record = { - starting: '启动中', - idle: '空闲', - running: '运行中', - suspended: '已暂停', - error: '失败', - exited: '已退出', - unknown: '未知', -}; +export const statusLabels: Record = Object.fromEntries( + Object.entries(SESSION_STATUS_DISPLAY).map(([status, display]) => [ + status, + display.label, + ]), +); + +export const sessionStatusOptions = SESSION_STATUS_FILTER_OPTIONS; + +/** + * 平台标识 → 展示名称。用于「回到 Slack / Discord」等来源跳转文案。 + */ +export function sourcePlatformLabel(platform?: string): string { + if (!platform) return ''; + const labels: Record = { + slack: 'Slack', + discord: 'Discord', + acp: 'ACP', + telegram: 'Telegram', + }; + return labels[platform] || platform; +} export function formatDateTime(value?: string): string { if (!value) return '-'; diff --git a/web/src/lib/session.test.ts b/web/src/lib/session.test.ts index 4586747d..29932690 100644 --- a/web/src/lib/session.test.ts +++ b/web/src/lib/session.test.ts @@ -2,9 +2,11 @@ import { describe, expect, it } from 'vitest'; import { applySessionEvent, filterSessions, + initialTimeline, parseSessionEventPayload, sessionMetrics, timelineItemFromEvent, + visibleTimelineItems, } from './session'; import { SessionSnapshot } from '../types'; @@ -90,4 +92,19 @@ describe('session helpers', () => { expect(restarted?.id).toBe('generation-b:1:status_changed'); expect(previous?.id).not.toBe(restarted?.id); }); + + it('drops seed timeline entries once replayed stream events arrive', () => { + const seeds = initialTimeline(sessions[0]); + expect(seeds.length).toBeGreaterThan(0); + // 只有种子条目时原样展示(SSE 尚未补齐历史时的兜底)。 + expect(visibleTimelineItems(seeds)).toEqual(seeds); + + const replayed = timelineItemFromEvent( + { sequence: 7, event: 'session.created', snapshot: sessions[0] }, + 'gen:7', + ); + expect(replayed).not.toBeNull(); + // 真实的流事件(带 sequence)到达后,种子条目被过滤,避免重复。 + expect(visibleTimelineItems([...seeds, replayed!])).toEqual([replayed]); + }); }); diff --git a/web/src/lib/session.ts b/web/src/lib/session.ts index bbbc081b..3771e2fa 100644 --- a/web/src/lib/session.ts +++ b/web/src/lib/session.ts @@ -4,7 +4,6 @@ import { SessionSnapshot, SessionTimelineItem, } from '../types'; - const ACTIVE = new Set(['starting', 'idle', 'running', 'suspended']); const RUNNING = new Set(['starting', 'running']); const FAILED = new Set(['error', 'exited']); @@ -28,14 +27,37 @@ export function parseSessionEventPayload( } } +function sessionTimestamp(session: SessionSnapshot): number { + const timestamp = Date.parse(session.updated_at || session.created_at); + return Number.isNaN(timestamp) ? 0 : timestamp; +} + export function sortSessions(sessions: SessionSnapshot[]): SessionSnapshot[] { - return [...sessions].sort((a, b) => - String(b.updated_at || b.created_at).localeCompare( - String(a.updated_at || a.created_at), - ), + return [...sessions].sort( + (a, b) => sessionTimestamp(b) - sessionTimestamp(a), ); } +export function matchesSessionKeyword( + session: SessionSnapshot, + keyword: string, +): boolean { + const normalized = keyword.trim().toLocaleLowerCase(); + if (!normalized) return true; + return [ + session.session_id, + session.agent, + session.profile_id, + session.profile_name, + session.source.platform, + session.source.thread_id, + session.workdir, + session.model, + ] + .filter(Boolean) + .some((value) => String(value).toLocaleLowerCase().includes(normalized)); +} + export function filterSessions( sessions: SessionSnapshot[], filters: SessionFilters, @@ -85,6 +107,19 @@ export function applySessionEvent( return sortSessions(sessions); } +export function mergeTimelineItem( + current: SessionTimelineItem[] | undefined, + timelineItem: SessionTimelineItem, +): SessionTimelineItem[] { + const timeline = (current || []).filter( + (item) => !item.id.startsWith('initial:'), + ); + if (timeline.some((item) => item.id === timelineItem.id)) { + return timeline; + } + return [...timeline, timelineItem].slice(-60); +} + export function timelineItemFromEvent( event: SessionEventPayload, streamEventId?: string, @@ -106,7 +141,7 @@ export function initialTimeline( ): SessionTimelineItem[] { const items: SessionTimelineItem[] = [ { - id: 'created', + id: 'initial:created', event: 'session.created', status: 'idle', at: session.created_at, @@ -117,7 +152,7 @@ export function initialTimeline( session.status !== 'idle' ) { items.push({ - id: 'current', + id: 'initial:current', event: 'current', status: session.status, at: session.updated_at, @@ -126,3 +161,17 @@ export function initialTimeline( } return items; } + +/** + * 冷启动 / 刷新后,SSE 会从 0 补齐历史事件;一旦时间线里出现带 sequence + * 的真实流事件,就把 initialTimeline 种下的种子条目(created/current) + * 过滤掉,避免同一条「会话创建 / 当前状态」在时间线上重复出现。 + */ +export function visibleTimelineItems( + items: SessionTimelineItem[], +): SessionTimelineItem[] { + const hasStreamed = items.some((item) => typeof item.sequence === 'number'); + return hasStreamed + ? items.filter((item) => typeof item.sequence === 'number') + : items; +} diff --git a/web/src/lib/sessionStatus.tsx b/web/src/lib/sessionStatus.tsx new file mode 100644 index 00000000..9fe85aa7 --- /dev/null +++ b/web/src/lib/sessionStatus.tsx @@ -0,0 +1,53 @@ +import { + CheckCircleFilled, + CloseCircleFilled, + LoadingOutlined, + MinusCircleFilled, + PauseCircleFilled, +} from '@ant-design/icons'; +import { SessionStatus } from '../types'; + +/** + * 后端会话状态机 → 前端展示的唯一映射表(ZER-669)。 + * + * 后端状态机为 starting / idle / running / suspended / error / exited, + * 这里只做展示层映射(文案 / 颜色 / 图标),不改后端状态机。所有状态 + * 相关的展示配置都集中在这一个文件维护,筛选下拉、表格 valueEnum、 + * 状态标签都从这里的同一份映射派生。 + */ +export interface SessionStatusDisplay { + label: string; + color: string; + icon: React.ReactNode; +} + +export const SESSION_STATUS_DISPLAY: Record = { + starting: { label: '启动中', color: 'processing', icon: }, + idle: { label: '空闲', color: 'default', icon: }, + running: { label: '运行中', color: 'success', icon: }, + suspended: { label: '等待', color: 'warning', icon: }, + error: { label: '失败', color: 'error', icon: }, + exited: { label: '完成', color: 'default', icon: }, + unknown: { label: '未知', color: 'default', icon: }, +}; + +export function sessionStatusDisplay(status: SessionStatus): SessionStatusDisplay { + return SESSION_STATUS_DISPLAY[status] || SESSION_STATUS_DISPLAY.unknown; +} + +/** 真实后端状态(不含 unknown)的筛选选项,供筛选表单使用。 */ +export const SESSION_STATUS_FILTER_OPTIONS: Array<{ + label: string; + value: SessionStatus; +}> = ( + ['starting', 'idle', 'running', 'suspended', 'error', 'exited'] as SessionStatus[] +).map((value) => ({ value, label: SESSION_STATUS_DISPLAY[value].label })); + +/** 同一份映射的 ProTable valueEnum 形态。 */ +export const SESSION_STATUS_VALUE_ENUM: Record = + Object.fromEntries( + SESSION_STATUS_FILTER_OPTIONS.map((option) => [ + option.value, + { text: option.label }, + ]), + ); diff --git a/web/src/pages/OverviewPage.tsx b/web/src/pages/OverviewPage.tsx index 40dba514..994e1c93 100644 --- a/web/src/pages/OverviewPage.tsx +++ b/web/src/pages/OverviewPage.tsx @@ -18,7 +18,7 @@ import { Typography } from 'antd'; import { SessionFilters } from '../types'; import { adminApi } from '../lib/api'; import { filterSessions, sessionMetrics } from '../lib/session'; -import { SessionTable } from '../components/SessionTable'; +import { RecentSessionsTable } from '../components/RecentSessionsTable'; const { Statistic } = StatisticCard; @@ -177,7 +177,7 @@ export function OverviewPage() { - { + if (!session.external_url) return; + try { + await navigator.clipboard.writeText(session.external_url); + message.success('会话链接已复制'); + } catch { + message.error('复制失败,请检查浏览器剪贴板权限'); + } + }; return ( 返回 , - session.external_url ? ( + session.source?.permalink ? ( + ) : null, + session.external_url ? ( + ) : null, ]} diff --git a/web/src/pages/SessionWorkbenchPage.tsx b/web/src/pages/SessionWorkbenchPage.tsx new file mode 100644 index 00000000..3eaf08f6 --- /dev/null +++ b/web/src/pages/SessionWorkbenchPage.tsx @@ -0,0 +1,142 @@ +import { useEffect, useState } from 'react'; +import { PageContainer } from '@ant-design/pro-components'; +import { useQuery, useQueryClient } from '@tanstack/react-query'; +import { useNavigate, useParams } from 'react-router-dom'; +import { Drawer } from 'antd'; +import { adminApi } from '../lib/api'; +import { initialTimeline, sortSessions } from '../lib/session'; +import { SessionTimelineItem } from '../types'; +import { useMediaQuery } from '../hooks/useMediaQuery'; +import { SessionInspector } from '../components/session-workbench/SessionInspector'; +import { SessionMainPanel } from '../components/session-workbench/SessionMainPanel'; +import { SessionSidebar } from '../components/session-workbench/SessionSidebar'; + +export function SessionWorkbenchPage() { + const params = useParams<{ id?: string }>(); + const sessionId = params.id || ''; + const navigate = useNavigate(); + const queryClient = useQueryClient(); + const compact = useMediaQuery('(max-width: 1100px)'); + const [sidebarOpen, setSidebarOpen] = useState(false); + const [inspectorOpen, setInspectorOpen] = useState(false); + + const sessionsQuery = useQuery({ + queryKey: ['sessions'], + queryFn: adminApi.sessions, + refetchInterval: 30_000, + }); + + const sessionQuery = useQuery({ + queryKey: ['session', sessionId], + queryFn: () => adminApi.session(sessionId), + enabled: Boolean(sessionId), + }); + + const timelineQuery = useQuery({ + queryKey: ['sessionTimeline', sessionId], + queryFn: async () => [], + enabled: false, + initialData: [], + }); + + const sessions = sessionsQuery.data || []; + + useEffect(() => { + if (sessionId || sessionsQuery.isLoading || sessionsQuery.isFetching) { + return; + } + + const [firstSession] = sortSessions(sessions); + if (firstSession) { + navigate('/sessions/' + encodeURIComponent(firstSession.session_id), { + replace: true, + }); + } + }, [ + navigate, + sessionId, + sessions, + sessionsQuery.isFetching, + sessionsQuery.isLoading, + ]); + + useEffect(() => { + if (!sessionQuery.data) return; + queryClient.setQueryData( + ['sessionTimeline', sessionId], + (current = []) => + current.length ? current : initialTimeline(sessionQuery.data!), + ); + }, [queryClient, sessionId, sessionQuery.data]); + + const selectSession = (nextSessionId: string) => { + navigate('/sessions/' + encodeURIComponent(nextSessionId)); + setSidebarOpen(false); + }; + + const timeline = sessionId ? timelineQuery.data || [] : []; + + const sidebar = ( + void sessionsQuery.refetch()} + /> + ); + + const inspector = ( + + ); + + return ( + +
+ {compact ? ( + setSidebarOpen(false)} + title={null} + > + {sidebar} + + ) : ( + sidebar + )} + setSidebarOpen(true) : undefined} + onOpenInspector={compact ? () => setInspectorOpen(true) : undefined} + /> + {compact ? ( + setInspectorOpen(false)} + title={null} + > + {inspector} + + ) : ( + inspector + )} +
+
+ ); +} diff --git a/web/src/pages/SessionsPage.tsx b/web/src/pages/SessionsPage.tsx deleted file mode 100644 index 1695e557..00000000 --- a/web/src/pages/SessionsPage.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { PageContainer } from '@ant-design/pro-components'; -import { useQuery } from '@tanstack/react-query'; -import { adminApi } from '../lib/api'; -import { SessionTable } from '../components/SessionTable'; - -export function SessionsPage() { - const sessionsQuery = useQuery({ - queryKey: ['sessions'], - queryFn: adminApi.sessions, - refetchInterval: 30_000, - }); - - return ( - - void sessionsQuery.refetch()} - title="全部会话" - /> - - ); -} diff --git a/web/src/styles.css b/web/src/styles.css index 7a7bc243..2fcaa8b3 100644 --- a/web/src/styles.css +++ b/web/src/styles.css @@ -587,6 +587,339 @@ select { align-items: start; } +/* ---------- 会话工作台 ---------- */ + +.session-workbench-page .ant-pro-page-container-children-container { + padding-block: 12px 20px; +} + +.session-workbench { + display: grid; + grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(280px, 340px); + min-height: calc(100vh - 180px); + border: 1px solid #e6edf4; + border-radius: 12px; + overflow: hidden; + background: #ffffff; + box-shadow: 0 1px 2px rgba(16, 27, 41, 0.04); +} + +.workbench-panel { + display: flex; + flex-direction: column; + min-width: 0; + min-height: 0; + background: #ffffff; +} + +.workbench-sidebar, +.workbench-inspector { + border-inline-end: 1px solid #e8eef4; +} + +.workbench-inspector { + border-inline-end: 0; +} + +.workbench-panel-header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 12px; + padding: 16px 16px 12px; + border-bottom: 1px solid #eef2f7; +} + +.workbench-panel-caption { + display: block; + margin-top: 2px; + font-size: 12px; +} + +.workbench-sidebar-filters { + display: flex; + flex-direction: column; + gap: 10px; + padding: 0 16px 12px; + border-bottom: 1px solid #eef2f7; +} + +.workbench-sidebar-list { + flex: 1; + min-height: 0; + overflow: auto; +} + +.workbench-sidebar-footer { + padding: 12px 16px; + border-top: 1px solid #eef2f7; +} + +.workbench-sidebar-loading, +.workbench-sidebar-empty, +.workbench-main-loading, +.workbench-main-empty, +.workbench-inspector-empty { + flex: 1; + display: grid; + place-items: center; + padding: 24px; +} + +.session-conversations.ant-conversations { + padding: 8px; +} + +.session-conversations .ant-conversations-group-title { + padding-inline: 8px; + color: #8593a3; + font-size: 12px; + font-weight: 600; +} + +.session-conversations .ant-conversations-item { + border-radius: 10px; +} + +.session-conversation-label { + min-width: 0; +} + +.session-conversation-title { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + margin-bottom: 2px; +} + +.session-conversation-title .status-tag { + min-width: auto; + padding-inline: 6px; + font-size: 11px; +} + +.session-conversation-meta { + font-size: 12px; +} + +.workbench-main { + position: relative; +} + +.workbench-status-bar { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; + padding: 16px 18px; + border-bottom: 1px solid #eef2f7; + background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%); +} + +.workbench-status-primary { + display: flex; + align-items: center; + gap: 12px; + min-width: 0; +} + +.workbench-status-copy { + min-width: 0; +} + +.workbench-status-title.ant-typography { + margin: 0 0 4px; + font-size: 16px; +} + +.workbench-status-meta { + justify-content: flex-end; +} + +.workbench-status-workdir { + max-width: 180px; +} + +.workbench-sidebar-newchat-tooltip { + display: block; +} + +.workbench-mobile-controls { + display: none; +} + +.workbench-main-content { + flex: 1; + min-height: 0; + overflow: auto; + padding: 18px; +} + +.workbench-placeholder { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + min-height: 320px; + padding: 32px 24px; + border: 1px dashed #dbe3ec; + border-radius: 12px; + background: + radial-gradient(480px 220px at 50% 0%, rgba(22, 119, 255, 0.06), transparent 70%), + #fafbfd; + text-align: center; +} + +.workbench-placeholder-icon { + display: grid; + place-items: center; + width: 52px; + height: 52px; + margin-bottom: 14px; + border-radius: 14px; + background: #e8f1ff; + color: #1668dc; + font-size: 22px; +} + +.workbench-placeholder .ant-typography { + max-width: 520px; +} + +.workbench-readonly-bar { + display: flex; + align-items: center; + gap: 10px; + padding: 10px 16px; + border-top: 1px solid #e8eef4; + background: #f7f9fc; +} + +.workbench-readonly-lock { + font-size: 16px; + line-height: 1; +} + +.workbench-readonly-copy { + display: flex; + flex-direction: column; + gap: 2px; +} + +.workbench-readonly-copy .ant-typography-secondary { + font-size: 12px; +} + +.workbench-stream-status { + display: inline-flex; + align-items: center; + gap: 7px; + margin-left: auto; + color: #667380; + font-size: 12px; + white-space: nowrap; +} + +.workbench-stream-status.is-live { + color: #17744e; +} + +.workbench-stream-status.is-connecting, +.workbench-stream-status.is-reconnecting { + color: #8a5a0b; +} + +.workbench-mobile-drawer .ant-drawer-body { + display: flex; + min-height: 0; + padding: 0; +} + +.workbench-mobile-drawer .workbench-panel { + width: 100%; + min-height: 0; +} + +.workbench-inspector-tabs { + display: flex; + flex-direction: column; + height: 100%; + min-height: 0; +} + +.workbench-inspector-tabs .ant-tabs-nav { + margin: 0; + padding: 0 12px; +} + +.workbench-inspector-tabs .ant-tabs-content-holder { + flex: 1; + min-height: 0; + overflow: auto; +} + +.inspector-tab-label { + display: inline-flex; + align-items: center; + gap: 6px; +} + +.inspector-tab-badge { + display: inline-grid; + place-items: center; + min-width: 18px; + height: 18px; + padding: 0 5px; + border-radius: 999px; + background: #fff1f0; + color: #cf1322; + font-size: 11px; + line-height: 1; +} + +.inspector-tab-body { + padding: 12px 16px 18px; +} + +.inspector-section-heading { + display: flex; + justify-content: flex-end; + margin-bottom: 12px; +} + +.inspector-tab-body .ant-descriptions-item-label { + width: 88px; + color: #8593a3; +} + +.inspector-tab-body .ant-descriptions-item-content { + min-width: 0; + overflow-wrap: anywhere; +} + +.inspector-alert { + margin-bottom: 12px; +} + +.inspector-alert:last-child { + margin-bottom: 0; +} + +.inspector-events-caption { + display: block; + margin-bottom: 12px; + font-size: 12px; +} + +.session-timeline-compact .timeline-entry { + padding-bottom: 10px; +} + +.timeline-empty-compact { + margin: 12px 0; +} + .detail-panel, .config-status-band { min-width: 0; @@ -806,6 +1139,15 @@ select { .metadata-panel { order: -1; } + + .session-workbench { + grid-template-columns: 1fr; + min-height: auto; + } + + .workbench-main-content { + min-height: 280px; + } } @media (max-width: 900px) { @@ -864,6 +1206,71 @@ select { } } +@media (max-width: 640px) { + .session-workbench-page .ant-page-header-heading { + align-items: flex-start; + } + + .session-workbench-page .ant-page-header-heading-sub-title { + display: none; + } + + .session-workbench { + display: block; + min-height: calc(100vh - 156px); + } + + .session-workbench > .workbench-sidebar, + .session-workbench > .workbench-inspector { + display: none; + } + + .workbench-main { + min-height: calc(100vh - 156px); + } + + .workbench-mobile-controls { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + padding: 10px 12px; + border-bottom: 1px solid #eef2f7; + background: #ffffff; + } + + .workbench-status-bar { + gap: 12px; + padding: 14px 12px; + } + + .workbench-status-meta { + justify-content: flex-start; + } + + .workbench-status-workdir { + max-width: 100%; + } + + .workbench-main-content { + padding: 12px; + } + + .workbench-placeholder { + min-height: 260px; + padding: 28px 16px; + } + + .workbench-readonly-bar { + align-items: flex-start; + padding: 10px 12px; + } + + .workbench-stream-status { + margin-left: 0; + } +} + @media (max-width: 480px) { .login-page { padding: 18px 12px; @@ -1061,3 +1468,44 @@ select { flex-direction: column; } } + + +/* ---------- 会话工作台:补充与窄屏 Drawer ---------- */ + +.workbench-sidebar-newchat { + padding: 12px 16px 0; +} + +.workbench-stream-status { + flex: 0 0 auto; + margin-inline-start: auto; +} + +.workbench-status-toggle { + flex: 0 0 auto; +} + +.workbench-main-content { + display: flex; + flex-direction: column; +} + +.workbench-drawer .ant-drawer-body { + padding: 0; +} + +.workbench-drawer .workbench-panel { + height: 100%; + border-inline-end: 0; +} + +@media (max-width: 480px) { + .workbench-status-bar { + flex-direction: column; + align-items: stretch; + } + + .workbench-status-meta { + justify-content: flex-start; + } +} diff --git a/web/src/types.ts b/web/src/types.ts index 38190720..2f7fd887 100644 --- a/web/src/types.ts +++ b/web/src/types.ts @@ -10,6 +10,7 @@ export type SessionStatus = export interface SessionSource { platform: string; thread_id: string; + permalink?: string; } export interface ProfileConfigError { @@ -51,6 +52,94 @@ export interface SessionTimelineItem { sequence?: number; } +export type ActivityToolStatus = + | 'pending' + | 'running' + | 'completed' + | 'error' + | 'canceled'; + +export interface FileDiffPayload { + path: string; + old_text: string; + new_text: string; +} + +export interface TerminalOutputPayload { + command: string; + output?: string; + exit_code?: number; + signaled?: boolean; + truncated?: boolean; +} + +export interface NormalizedToolCall { + key: string; + name: string; + kind?: string; + status: ActivityToolStatus; + description?: string; + input?: string; + output?: string; + duration_ms?: number; + truncated?: boolean; + /** @deprecated Use diffs; retained for one-diff snapshot compatibility. */ + diff?: FileDiffPayload; + /** All file changes reported by a tool call, including ACP update.content arrays. */ + diffs?: FileDiffPayload[]; + terminal?: TerminalOutputPayload; +} + +export interface ActivityBaseEntry { + id: string; + created_at: string; +} + +export interface ActivityTurnEntry extends ActivityBaseEntry { + type: 'turn'; + label: string; +} + +export interface ActivityTextEntry extends ActivityBaseEntry { + type: 'user' | 'assistant'; + text: string; +} + +export interface ActivityThinkingEntry extends ActivityBaseEntry { + type: 'thinking'; + text: string; +} + +export interface ActivityPlanEntry extends ActivityBaseEntry { + type: 'plan'; + title: string; + items: Array<{ text: string; done?: boolean }>; +} + +export interface ActivityToolEntry extends ActivityBaseEntry { + type: 'tool'; + tool: NormalizedToolCall; +} + +export interface ActivityTerminalEntry extends ActivityBaseEntry { + type: 'terminal'; + terminal: TerminalOutputPayload; +} + +export interface ActivityErrorEntry extends ActivityBaseEntry { + type: 'error'; + message: string; +} + +export type ActivityEntry = + | ActivityTurnEntry + | ActivityTextEntry + | ActivityThinkingEntry + | ActivityPlanEntry + | ActivityToolEntry + | ActivityTerminalEntry + | ActivityErrorEntry; + export type WorkdirStrategy = | 'system_default' | 'profile_default' diff --git a/web/styles.css b/web/styles.css index bc53f1e5..b411c90e 100644 --- a/web/styles.css +++ b/web/styles.css @@ -1 +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)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}:root{color:#1b2430;background:#f3f5f9;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0}*{box-sizing:border-box;letter-spacing:0}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;overflow-x:hidden}button,input,textarea,select{font:inherit}.login-page{position:relative;min-height:100vh;display:grid;place-items:center;padding:40px 24px;background:radial-gradient(1000px 520px at 12% -8%,rgba(22,119,255,.12),transparent 60%),radial-gradient(820px 460px at 108% 108%,rgba(31,157,104,.1),transparent 55%),linear-gradient(165deg,#edf2f9,#f5f8fc 55%,#eef2f7)}.login-page:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(rgba(22,36,56,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(22,36,56,.04) 1px,transparent 1px);background-size:44px 44px;mask-image:radial-gradient(ellipse 90% 80% at 50% 40%,#000 25%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse 90% 80% at 50% 40%,#000 25%,transparent 75%);pointer-events:none}.login-shell{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,420px);gap:56px;align-items:center;width:min(100%,980px)}.login-hero{min-width:0}.login-hero-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px;color:#1b2430;font-size:17px;font-weight:600;letter-spacing:.2px}.login-hero-title.ant-typography{margin:0 0 14px;max-width:480px;font-size:34px;line-height:1.25;letter-spacing:.2px}.login-hero-subtitle.ant-typography{max-width:460px;margin:0 0 30px;color:#5b6b7c;font-size:15px;line-height:1.8}.login-hero-points{display:grid;gap:18px;margin:0;padding:0;list-style:none}.login-hero-points li{display:flex;align-items:flex-start;gap:12px}.login-point-icon{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:10px;font-size:16px}.login-point-icon.blue{color:#1668dc;background:#e8f1ff}.login-point-icon.amber{color:#b96d08;background:#fff3dd}.login-point-icon.green{color:#1f9d68;background:#e7f6ef}.login-hero-points li>div{display:flex;flex-direction:column;gap:2px;min-width:0}.login-hero-points li>div>strong{color:#1b2430;font-size:14px}.login-hero-points li>div>span{color:#5b6b7c;font-size:13px;line-height:1.6}.login-card{width:100%;padding:34px 32px 28px;border:1px solid #e2e9f1;border-radius:16px;background:#fff;box-shadow:0 1px 2px #101b290d,0 24px 56px #101b291a}.login-card-heading{margin-bottom:20px}.login-card-heading .ant-typography{margin:0}.login-card-heading h3.ant-typography{margin-bottom:4px;font-size:22px}.login-card-heading .ant-typography-secondary{font-size:13px}.brand-logo,.layout-logo{display:block;flex:0 0 auto;object-fit:cover;background:#f7f9fc}.brand-logo{width:44px;height:44px;border:1px solid #e3eaf1;border-radius:12px;box-shadow:0 6px 14px #101b2914}.layout-logo{width:36px;height:36px;border:1px solid rgba(22,104,220,.16);border-radius:10px;box-shadow:none}.login-security{display:flex;align-items:center;gap:8px;margin-bottom:20px;padding:10px 12px;border-left:3px solid #1f9d68;border-radius:0 6px 6px 0;color:#406053;background:#eef8f3;font-size:13px}.login-alert{margin-bottom:18px}.login-footnote{margin:18px 0 0!important;text-align:center;font-size:12px;line-height:1.6}.header-brand{display:flex;align-items:center;gap:12px;min-height:64px;padding:0;border:0;background:transparent;cursor:pointer;text-align:left}.header-brand-text{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.2}.header-brand-title{color:#1b2430;font-size:16px;font-weight:650;letter-spacing:.1px;white-space:nowrap}.header-brand-caption{color:#8593a3;font-size:10px;font-weight:500;letter-spacing:1.1px;text-transform:uppercase;white-space:nowrap}.menu-link{width:100%;height:100%;display:flex;align-items:center;gap:10px;padding:0;border:0;color:inherit;background:transparent;cursor:pointer;text-align:left}.menu-link:focus-visible{outline:2px solid rgba(47,134,255,.65);outline-offset:-2px;border-radius:8px}.ant-pro-sider-menu .ant-menu-item{margin-inline:8px;width:calc(100% - 16px)}.sider-footer{display:flex;align-items:center;gap:10px;margin:12px;padding:12px 14px;border:1px solid #e8eef4;border-radius:8px;background:#f8fafc}.sider-footer.is-collapsed{justify-content:center;margin:12px 8px;padding:12px 0}.sider-footer-text{display:flex;flex-direction:column;min-width:0;line-height:1.4}.sider-footer-label{color:#5b6b7c;font-size:12px;white-space:nowrap}.sider-footer-version{color:#8593a3;font-size:11px;font-variant-numeric:tabular-nums}.stream-dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:#9aa8b8}.stream-dot.is-live{background:#22b573;box-shadow:0 0 0 3px #22b5732e}.stream-dot.is-connecting,.stream-dot.is-reconnecting{background:#d98b16;box-shadow:0 0 0 3px #d98b1629;animation:stream-pulse 1.6s ease-in-out infinite}.stream-dot.is-offline{background:#9aa8b8;box-shadow:0 0 0 3px #9aa8b829}@keyframes stream-pulse{0%,to{opacity:1}50%{opacity:.45}}.stream-status{display:inline-flex;align-items:center;gap:7px;height:34px;min-width:0;padding:0 11px;border:1px solid #e3eaf1;border-radius:8px;background:#f8fafc;color:#42505e;font-size:12px;cursor:default}.stream-status.is-live{border-color:#bfe6d4;background:#eef9f3;color:#17744e}.stream-status.is-connecting,.stream-status.is-reconnecting{border-color:#f0dcb5;background:#fdf6e8;color:#8a5a0b}.stream-status.is-offline{border-color:#e3eaf1;background:#f4f6f9;color:#6b7885}.account-button{display:inline-flex;align-items:center;gap:8px;height:40px;padding-inline:9px 10px;border-radius:8px;color:#42505e}.account-button:hover{color:#1b2430!important;background:#f5f8fc!important}.account-avatar{color:#5b6b7c!important;background:#eef2f7!important}.account-button-caret{color:#9aa8b8;font-size:10px}.ant-pro-layout .ant-layout-header{border-bottom:1px solid #e8eef4;box-shadow:none!important}.ant-pro-global-header{padding-inline:20px!important}.app-content{min-height:calc(100vh - 64px)}.page-container .ant-pro-page-container-children-container{padding-block:20px 28px}.page-container .ant-page-header-heading-title{font-size:20px;font-weight:600}.page-container .ant-page-header-heading-sub-title{color:#8593a3}.overview-filter{margin-bottom:18px;padding:16px 18px 2px;border:1px solid #e6edf4;border-radius:12px;background:#fff;box-shadow:0 1px 2px #101b290a}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px dashed #e8eef4}.section-heading-icon{display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;border-radius:8px;color:#1668dc;background:#e8f1ff;font-size:14px}.section-heading-text{display:flex;flex-direction:column;gap:1px;min-width:0}.section-heading-text .ant-typography-secondary{font-size:12px}.overview-filter .ant-form{display:flex;flex-wrap:wrap;gap:0 18px}.overview-filter .ant-form-item-label>label{color:#5b6b7c}.session-table .ant-pro-card,.metadata-table .ant-pro-card{border:1px solid #e6edf4;border-radius:12px;background:#fff;box-shadow:0 1px 2px #101b290a}.session-table .ant-pro-table-search{margin-block-end:16px;border:1px solid #e6edf4;border-radius:12px;box-shadow:0 1px 2px #101b290a}.session-table .ant-table-cell{vertical-align:middle}.session-table .ant-table-tbody>tr:hover>td{background:#f5f8ff!important}.table-count{padding:2px 8px;border-radius:999px;background:#eef2f7;color:#667380;font-size:12px;font-weight:400}.entity-mark{display:inline-grid;place-items:center;flex:0 0 auto;border-radius:8px;font-weight:600;line-height:1}.agent-cell .ant-typography,.profile-cell .ant-typography{font-size:13px}.status-tag{min-width:78px;margin-inline-end:0;padding-inline:10px;border-radius:999px;text-align:center}.table-empty{padding:40px 0 44px}.page-loading{min-height:50vh;display:grid;place-items:center}.detail-alert,.config-alert{margin-bottom:16px}.session-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,370px);gap:18px;align-items:start}.detail-panel,.config-status-band{min-width:0;border:1px solid #e6edf4;border-radius:12px;background:#fff;box-shadow:0 1px 2px #101b290a}.detail-panel{padding:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.panel-heading-title{display:flex;align-items:center;gap:12px;min-width:0}.panel-heading-title .ant-typography{margin:0}.panel-heading-title h4.ant-typography{font-size:15px}.panel-heading-title .ant-typography-secondary{font-size:12px}.panel-icon{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:10px;font-size:16px}.panel-icon.blue{color:#1668dc;background:#e8f1ff}.panel-icon.violet{color:#7b5cd6;background:#f0ebfc}.panel-icon.dark{color:#d6e6f7;background:#101c29}.timeline-panel .ant-timeline{margin-top:6px;padding:4px 4px 0}.timeline-entry{padding:0 0 14px}.timeline-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.timeline-entry .ant-typography{margin-bottom:0}.metadata-panel .ant-descriptions-item-label{width:96px;color:#8593a3}.metadata-panel .ant-descriptions-item-content{min-width:0;overflow-wrap:anywhere}.metadata-panel .ant-alert{margin-top:16px}.form-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #edf1f5}.form-section-heading>div{display:flex;flex-direction:column;gap:2px}.profile-form-tabs{margin-top:-8px}.profile-form-tabs .ant-tabs-nav{margin-bottom:20px}.dynamic-config-section{margin-top:4px;padding:16px;border:1px solid #dbe6f2;border-radius:10px;background:#f7faff}.dynamic-config-section .form-section-heading{margin-top:0;padding-bottom:0;border-bottom:none}.config-status-band{margin-bottom:18px;padding:18px 20px}.config-status-band .panel-heading{margin-bottom:16px}.config-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);gap:18px;align-items:start}.config-document pre{max-height:620px;margin:0;overflow:auto;padding:16px;border:1px solid #1c2c3d;border-radius:8px;color:#d6e6f7;background:#101c29;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.config-document pre::-webkit-scrollbar{width:8px;height:8px}.config-document pre::-webkit-scrollbar-thumb{border-radius:4px;background:#ffffff29}.config-document pre::-webkit-scrollbar-track{background:transparent}.ant-drawer .ant-drawer-header{border-bottom:1px solid #e8eef4}.ant-drawer .ant-drawer-footer{border-top:1px solid #e8eef4}.ant-pro-form-list-container{width:100%}.ant-btn-icon-only{display:inline-grid;place-items:center}@media(max-width:1100px){.session-detail-grid,.config-grid{grid-template-columns:1fr}.metadata-panel{order:-1}}@media(max-width:900px){.login-shell{grid-template-columns:minmax(0,440px);justify-content:center;gap:0}.login-hero{display:none}}@media(max-width:768px){.ant-pro-global-header{padding-inline:12px!important}.header-brand-caption,.stream-label,.account-button>span:last-child{display:none}.stream-status{min-width:auto;height:34px;padding:0 7px;border:0;background:transparent}.page-container .ant-pro-page-container-children-container{padding-inline:12px}.overview-filter{padding:14px 14px 0}.overview-filter .ant-form{display:block}.detail-panel{padding:16px}.timeline-title{align-items:flex-start}.login-card{padding:28px 22px 24px}}@media(max-width:480px){.login-page{padding:18px 12px}.panel-heading{align-items:flex-start}.metadata-panel .ant-descriptions-item-label{width:82px}}.config-policy-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px;padding-top:16px;border-top:1px solid #e8eef4}.config-policy-item{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;padding:4px 14px}.config-policy-item+.config-policy-item{border-left:1px solid #e8eef4}.config-editor-shell{overflow:hidden;border:1px solid #dfe7ef;border-radius:12px;background:#fff;box-shadow:0 2px 10px #101b290a}.config-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px;border-bottom:1px solid #e8eef4}.config-editor-toolbar .panel-heading-title .ant-typography{margin:0}.config-editor-toolbar .panel-heading-title .ant-typography-secondary{display:block;margin-top:2px}.config-search{flex:0 0 280px}.config-sections{border:0;border-radius:0;background:#fff}.config-sections>.ant-collapse-item{border-bottom:1px solid #e8eef4}.config-sections>.ant-collapse-item:last-child{border-bottom:0}.config-sections>.ant-collapse-item>.ant-collapse-header{align-items:center!important;padding:15px 22px!important;background:#f7f9fc}.config-sections .ant-collapse-content{border-top:1px solid #e8eef4}.config-sections .ant-collapse-content-box{padding:0!important}.config-field-list{display:grid}.config-field-row{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(320px,1.2fr);gap:28px;align-items:center;min-width:0;padding:18px 22px}.config-field-row+.config-field-row{border-top:1px solid #eef2f6}.config-field-copy{display:flex;flex-direction:column;gap:7px;min-width:0}.config-field-copy>.ant-typography{max-width:100%;overflow-wrap:anywhere}.config-field-row .ant-form-item{min-width:0;margin:0}.config-field-row .ant-input,.config-field-row .ant-input-affix-wrapper,.config-field-row .ant-input-number,.config-field-row .ant-select,.config-json-control{width:100%}.config-switch-control{display:flex;align-items:center;gap:12px;min-height:34px}.config-json-control .ant-typography{font-size:12px}.config-loading{min-height:280px;display:grid;place-items:center}@media(max-width:900px){.config-editor-toolbar{align-items:flex-start;flex-direction:column}.config-search{width:100%;flex-basis:auto}.config-field-row{grid-template-columns:1fr;gap:12px}}@media(max-width:640px){.config-policy-summary{grid-template-columns:1fr}.config-policy-item{justify-content:flex-start;padding:8px 0}.config-policy-item+.config-policy-item{border-left:0;border-top:1px solid #eef2f6}.config-editor-toolbar,.config-field-row{padding-inline:16px}.config-switch-control{align-items:flex-start;flex-direction:column}} +html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}:root{color:#1b2430;background:#f3f5f9;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0}*{box-sizing:border-box;letter-spacing:0}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;overflow-x:hidden}button,input,textarea,select{font:inherit}.login-page{position:relative;min-height:100vh;display:grid;place-items:center;padding:40px 24px;background:radial-gradient(1000px 520px at 12% -8%,rgba(22,119,255,.12),transparent 60%),radial-gradient(820px 460px at 108% 108%,rgba(31,157,104,.1),transparent 55%),linear-gradient(165deg,#edf2f9,#f5f8fc 55%,#eef2f7)}.login-page:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(rgba(22,36,56,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(22,36,56,.04) 1px,transparent 1px);background-size:44px 44px;mask-image:radial-gradient(ellipse 90% 80% at 50% 40%,#000 25%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse 90% 80% at 50% 40%,#000 25%,transparent 75%);pointer-events:none}.login-shell{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,420px);gap:56px;align-items:center;width:min(100%,980px)}.login-hero{min-width:0}.login-hero-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px;color:#1b2430;font-size:17px;font-weight:600;letter-spacing:.2px}.login-hero-title.ant-typography{margin:0 0 14px;max-width:480px;font-size:34px;line-height:1.25;letter-spacing:.2px}.login-hero-subtitle.ant-typography{max-width:460px;margin:0 0 30px;color:#5b6b7c;font-size:15px;line-height:1.8}.login-hero-points{display:grid;gap:18px;margin:0;padding:0;list-style:none}.login-hero-points li{display:flex;align-items:flex-start;gap:12px}.login-point-icon{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:10px;font-size:16px}.login-point-icon.blue{color:#1668dc;background:#e8f1ff}.login-point-icon.amber{color:#b96d08;background:#fff3dd}.login-point-icon.green{color:#1f9d68;background:#e7f6ef}.login-hero-points li>div{display:flex;flex-direction:column;gap:2px;min-width:0}.login-hero-points li>div>strong{color:#1b2430;font-size:14px}.login-hero-points li>div>span{color:#5b6b7c;font-size:13px;line-height:1.6}.login-card{width:100%;padding:34px 32px 28px;border:1px solid #e2e9f1;border-radius:16px;background:#fff;box-shadow:0 1px 2px #101b290d,0 24px 56px #101b291a}.login-card-heading{margin-bottom:20px}.login-card-heading .ant-typography{margin:0}.login-card-heading h3.ant-typography{margin-bottom:4px;font-size:22px}.login-card-heading .ant-typography-secondary{font-size:13px}.brand-logo,.layout-logo{display:block;flex:0 0 auto;object-fit:cover;background:#f7f9fc}.brand-logo{width:44px;height:44px;border:1px solid #e3eaf1;border-radius:12px;box-shadow:0 6px 14px #101b2914}.layout-logo{width:36px;height:36px;border:1px solid rgba(22,104,220,.16);border-radius:10px;box-shadow:none}.login-security{display:flex;align-items:center;gap:8px;margin-bottom:20px;padding:10px 12px;border-left:3px solid #1f9d68;border-radius:0 6px 6px 0;color:#406053;background:#eef8f3;font-size:13px}.login-alert{margin-bottom:18px}.login-footnote{margin:18px 0 0!important;text-align:center;font-size:12px;line-height:1.6}.header-brand{display:flex;align-items:center;gap:12px;min-height:64px;padding:0;border:0;background:transparent;cursor:pointer;text-align:left}.header-brand-text{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.2}.header-brand-title{color:#1b2430;font-size:16px;font-weight:650;letter-spacing:.1px;white-space:nowrap}.header-brand-caption{color:#8593a3;font-size:10px;font-weight:500;letter-spacing:1.1px;text-transform:uppercase;white-space:nowrap}.menu-link{width:100%;height:100%;display:flex;align-items:center;gap:10px;padding:0;border:0;color:inherit;background:transparent;cursor:pointer;text-align:left}.menu-link:focus-visible{outline:2px solid rgba(47,134,255,.65);outline-offset:-2px;border-radius:8px}.ant-pro-sider-menu .ant-menu-item{margin-inline:8px;width:calc(100% - 16px)}.sider-footer{display:flex;align-items:center;gap:10px;margin:12px;padding:12px 14px;border:1px solid #e8eef4;border-radius:8px;background:#f8fafc}.sider-footer.is-collapsed{justify-content:center;margin:12px 8px;padding:12px 0}.sider-footer-text{display:flex;flex-direction:column;min-width:0;line-height:1.4}.sider-footer-label{color:#5b6b7c;font-size:12px;white-space:nowrap}.sider-footer-version{color:#8593a3;font-size:11px;font-variant-numeric:tabular-nums}.stream-dot{flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:#9aa8b8}.stream-dot.is-live{background:#22b573;box-shadow:0 0 0 3px #22b5732e}.stream-dot.is-connecting,.stream-dot.is-reconnecting{background:#d98b16;box-shadow:0 0 0 3px #d98b1629;animation:stream-pulse 1.6s ease-in-out infinite}.stream-dot.is-offline{background:#9aa8b8;box-shadow:0 0 0 3px #9aa8b829}@keyframes stream-pulse{0%,to{opacity:1}50%{opacity:.45}}.stream-status{display:inline-flex;align-items:center;gap:7px;height:34px;min-width:0;padding:0 11px;border:1px solid #e3eaf1;border-radius:8px;background:#f8fafc;color:#42505e;font-size:12px;cursor:default}.stream-status.is-live{border-color:#bfe6d4;background:#eef9f3;color:#17744e}.stream-status.is-connecting,.stream-status.is-reconnecting{border-color:#f0dcb5;background:#fdf6e8;color:#8a5a0b}.stream-status.is-offline{border-color:#e3eaf1;background:#f4f6f9;color:#6b7885}.account-button{display:inline-flex;align-items:center;gap:8px;height:40px;padding-inline:9px 10px;border-radius:8px;color:#42505e}.account-button:hover{color:#1b2430!important;background:#f5f8fc!important}.account-avatar{color:#5b6b7c!important;background:#eef2f7!important}.account-button-caret{color:#9aa8b8;font-size:10px}.ant-pro-layout .ant-layout-header{border-bottom:1px solid #e8eef4;box-shadow:none!important}.ant-pro-global-header{padding-inline:20px!important}.app-content{min-height:calc(100vh - 64px)}.page-container .ant-pro-page-container-children-container{padding-block:20px 28px}.page-container .ant-page-header-heading-title{font-size:20px;font-weight:600}.page-container .ant-page-header-heading-sub-title{color:#8593a3}.overview-filter{margin-bottom:18px;padding:16px 18px 2px;border:1px solid #e6edf4;border-radius:12px;background:#fff;box-shadow:0 1px 2px #101b290a}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px dashed #e8eef4}.section-heading-icon{display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;border-radius:8px;color:#1668dc;background:#e8f1ff;font-size:14px}.section-heading-text{display:flex;flex-direction:column;gap:1px;min-width:0}.section-heading-text .ant-typography-secondary{font-size:12px}.overview-filter .ant-form{display:flex;flex-wrap:wrap;gap:0 18px}.overview-filter .ant-form-item-label>label{color:#5b6b7c}.session-table .ant-pro-card,.metadata-table .ant-pro-card{border:1px solid #e6edf4;border-radius:12px;background:#fff;box-shadow:0 1px 2px #101b290a}.session-table .ant-pro-table-search{margin-block-end:16px;border:1px solid #e6edf4;border-radius:12px;box-shadow:0 1px 2px #101b290a}.session-table .ant-table-cell{vertical-align:middle}.session-table .ant-table-tbody>tr:hover>td{background:#f5f8ff!important}.table-count{padding:2px 8px;border-radius:999px;background:#eef2f7;color:#667380;font-size:12px;font-weight:400}.entity-mark{display:inline-grid;place-items:center;flex:0 0 auto;border-radius:8px;font-weight:600;line-height:1}.agent-cell .ant-typography,.profile-cell .ant-typography{font-size:13px}.status-tag{min-width:78px;margin-inline-end:0;padding-inline:10px;border-radius:999px;text-align:center}.table-empty{padding:40px 0 44px}.page-loading{min-height:50vh;display:grid;place-items:center}.detail-alert,.config-alert{margin-bottom:16px}.session-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,370px);gap:18px;align-items:start}.session-workbench-page .ant-pro-page-container-children-container{padding-block:12px 20px}.session-workbench{display:grid;grid-template-columns:minmax(260px,300px) minmax(0,1fr) minmax(280px,340px);min-height:calc(100vh - 180px);border:1px solid #e6edf4;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 1px 2px #101b290a}.workbench-panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.workbench-sidebar,.workbench-inspector{border-inline-end:1px solid #e8eef4}.workbench-inspector{border-inline-end:0}.workbench-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 16px 12px;border-bottom:1px solid #eef2f7}.workbench-panel-caption{display:block;margin-top:2px;font-size:12px}.workbench-sidebar-filters{display:flex;flex-direction:column;gap:10px;padding:0 16px 12px;border-bottom:1px solid #eef2f7}.workbench-sidebar-list{flex:1;min-height:0;overflow:auto}.workbench-sidebar-footer{padding:12px 16px;border-top:1px solid #eef2f7}.workbench-sidebar-loading,.workbench-sidebar-empty,.workbench-main-loading,.workbench-main-empty,.workbench-inspector-empty{flex:1;display:grid;place-items:center;padding:24px}.session-conversations.ant-conversations{padding:8px}.session-conversations .ant-conversations-group-title{padding-inline:8px;color:#8593a3;font-size:12px;font-weight:600}.session-conversations .ant-conversations-item{border-radius:10px}.session-conversation-label{min-width:0}.session-conversation-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:2px}.session-conversation-title .status-tag{min-width:auto;padding-inline:6px;font-size:11px}.session-conversation-meta{font-size:12px}.workbench-main{position:relative}.workbench-status-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #eef2f7;background:linear-gradient(180deg,#fbfcfe,#fff)}.workbench-status-primary{display:flex;align-items:center;gap:12px;min-width:0}.workbench-status-copy{min-width:0}.workbench-status-title.ant-typography{margin:0 0 4px;font-size:16px}.workbench-status-meta{justify-content:flex-end}.workbench-status-workdir{max-width:180px}.workbench-sidebar-newchat-tooltip{display:block}.workbench-mobile-controls{display:none}.workbench-main-content{flex:1;min-height:0;overflow:auto;padding:18px}.workbench-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:320px;padding:32px 24px;border:1px dashed #dbe3ec;border-radius:12px;background:radial-gradient(480px 220px at 50% 0%,rgba(22,119,255,.06),transparent 70%),#fafbfd;text-align:center}.workbench-placeholder-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:14px;border-radius:14px;background:#e8f1ff;color:#1668dc;font-size:22px}.workbench-placeholder .ant-typography{max-width:520px}.workbench-readonly-bar{display:flex;align-items:center;gap:10px;padding:10px 16px;border-top:1px solid #e8eef4;background:#f7f9fc}.workbench-readonly-lock{font-size:16px;line-height:1}.workbench-readonly-copy{display:flex;flex-direction:column;gap:2px}.workbench-readonly-copy .ant-typography-secondary{font-size:12px}.workbench-stream-status{display:inline-flex;align-items:center;gap:7px;margin-left:auto;color:#667380;font-size:12px;white-space:nowrap}.workbench-stream-status.is-live{color:#17744e}.workbench-stream-status.is-connecting,.workbench-stream-status.is-reconnecting{color:#8a5a0b}.workbench-mobile-drawer .ant-drawer-body{display:flex;min-height:0;padding:0}.workbench-mobile-drawer .workbench-panel{width:100%;min-height:0}.workbench-inspector-tabs{display:flex;flex-direction:column;height:100%;min-height:0}.workbench-inspector-tabs .ant-tabs-nav{margin:0;padding:0 12px}.workbench-inspector-tabs .ant-tabs-content-holder{flex:1;min-height:0;overflow:auto}.inspector-tab-label{display:inline-flex;align-items:center;gap:6px}.inspector-tab-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#fff1f0;color:#cf1322;font-size:11px;line-height:1}.inspector-tab-body{padding:12px 16px 18px}.inspector-section-heading{display:flex;justify-content:flex-end;margin-bottom:12px}.inspector-tab-body .ant-descriptions-item-label{width:88px;color:#8593a3}.inspector-tab-body .ant-descriptions-item-content{min-width:0;overflow-wrap:anywhere}.inspector-alert{margin-bottom:12px}.inspector-alert:last-child{margin-bottom:0}.inspector-events-caption{display:block;margin-bottom:12px;font-size:12px}.session-timeline-compact .timeline-entry{padding-bottom:10px}.timeline-empty-compact{margin:12px 0}.detail-panel,.config-status-band{min-width:0;border:1px solid #e6edf4;border-radius:12px;background:#fff;box-shadow:0 1px 2px #101b290a}.detail-panel{padding:20px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.panel-heading-title{display:flex;align-items:center;gap:12px;min-width:0}.panel-heading-title .ant-typography{margin:0}.panel-heading-title h4.ant-typography{font-size:15px}.panel-heading-title .ant-typography-secondary{font-size:12px}.panel-icon{display:grid;place-items:center;flex:0 0 auto;width:36px;height:36px;border-radius:10px;font-size:16px}.panel-icon.blue{color:#1668dc;background:#e8f1ff}.panel-icon.violet{color:#7b5cd6;background:#f0ebfc}.panel-icon.dark{color:#d6e6f7;background:#101c29}.timeline-panel .ant-timeline{margin-top:6px;padding:4px 4px 0}.timeline-entry{padding:0 0 14px}.timeline-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.timeline-entry .ant-typography{margin-bottom:0}.metadata-panel .ant-descriptions-item-label{width:96px;color:#8593a3}.metadata-panel .ant-descriptions-item-content{min-width:0;overflow-wrap:anywhere}.metadata-panel .ant-alert{margin-top:16px}.form-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #edf1f5}.form-section-heading>div{display:flex;flex-direction:column;gap:2px}.profile-form-tabs{margin-top:-8px}.profile-form-tabs .ant-tabs-nav{margin-bottom:20px}.dynamic-config-section{margin-top:4px;padding:16px;border:1px solid #dbe6f2;border-radius:10px;background:#f7faff}.dynamic-config-section .form-section-heading{margin-top:0;padding-bottom:0;border-bottom:none}.config-status-band{margin-bottom:18px;padding:18px 20px}.config-status-band .panel-heading{margin-bottom:16px}.config-grid{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);gap:18px;align-items:start}.config-document pre{max-height:620px;margin:0;overflow:auto;padding:16px;border:1px solid #1c2c3d;border-radius:8px;color:#d6e6f7;background:#101c29;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.config-document pre::-webkit-scrollbar{width:8px;height:8px}.config-document pre::-webkit-scrollbar-thumb{border-radius:4px;background:#ffffff29}.config-document pre::-webkit-scrollbar-track{background:transparent}.ant-drawer .ant-drawer-header{border-bottom:1px solid #e8eef4}.ant-drawer .ant-drawer-footer{border-top:1px solid #e8eef4}.ant-pro-form-list-container{width:100%}.ant-btn-icon-only{display:inline-grid;place-items:center}@media(max-width:1100px){.session-detail-grid,.config-grid{grid-template-columns:1fr}.metadata-panel{order:-1}.session-workbench{grid-template-columns:1fr;min-height:auto}.workbench-main-content{min-height:280px}}@media(max-width:900px){.login-shell{grid-template-columns:minmax(0,440px);justify-content:center;gap:0}.login-hero{display:none}}@media(max-width:768px){.ant-pro-global-header{padding-inline:12px!important}.header-brand-caption,.stream-label,.account-button>span:last-child{display:none}.stream-status{min-width:auto;height:34px;padding:0 7px;border:0;background:transparent}.page-container .ant-pro-page-container-children-container{padding-inline:12px}.overview-filter{padding:14px 14px 0}.overview-filter .ant-form{display:block}.detail-panel{padding:16px}.timeline-title{align-items:flex-start}.login-card{padding:28px 22px 24px}}@media(max-width:640px){.session-workbench-page .ant-page-header-heading{align-items:flex-start}.session-workbench-page .ant-page-header-heading-sub-title{display:none}.session-workbench{display:block;min-height:calc(100vh - 156px)}.session-workbench>.workbench-sidebar,.session-workbench>.workbench-inspector{display:none}.workbench-main{min-height:calc(100vh - 156px)}.workbench-mobile-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #eef2f7;background:#fff}.workbench-status-bar{gap:12px;padding:14px 12px}.workbench-status-meta{justify-content:flex-start}.workbench-status-workdir{max-width:100%}.workbench-main-content{padding:12px}.workbench-placeholder{min-height:260px;padding:28px 16px}.workbench-readonly-bar{align-items:flex-start;padding:10px 12px}.workbench-stream-status{margin-left:0}}@media(max-width:480px){.login-page{padding:18px 12px}.panel-heading{align-items:flex-start}.metadata-panel .ant-descriptions-item-label{width:82px}}.config-policy-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px;padding-top:16px;border-top:1px solid #e8eef4}.config-policy-item{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;padding:4px 14px}.config-policy-item+.config-policy-item{border-left:1px solid #e8eef4}.config-editor-shell{overflow:hidden;border:1px solid #dfe7ef;border-radius:12px;background:#fff;box-shadow:0 2px 10px #101b290a}.config-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 22px;border-bottom:1px solid #e8eef4}.config-editor-toolbar .panel-heading-title .ant-typography{margin:0}.config-editor-toolbar .panel-heading-title .ant-typography-secondary{display:block;margin-top:2px}.config-search{flex:0 0 280px}.config-sections{border:0;border-radius:0;background:#fff}.config-sections>.ant-collapse-item{border-bottom:1px solid #e8eef4}.config-sections>.ant-collapse-item:last-child{border-bottom:0}.config-sections>.ant-collapse-item>.ant-collapse-header{align-items:center!important;padding:15px 22px!important;background:#f7f9fc}.config-sections .ant-collapse-content{border-top:1px solid #e8eef4}.config-sections .ant-collapse-content-box{padding:0!important}.config-field-list{display:grid}.config-field-row{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(320px,1.2fr);gap:28px;align-items:center;min-width:0;padding:18px 22px}.config-field-row+.config-field-row{border-top:1px solid #eef2f6}.config-field-copy{display:flex;flex-direction:column;gap:7px;min-width:0}.config-field-copy>.ant-typography{max-width:100%;overflow-wrap:anywhere}.config-field-row .ant-form-item{min-width:0;margin:0}.config-field-row .ant-input,.config-field-row .ant-input-affix-wrapper,.config-field-row .ant-input-number,.config-field-row .ant-select,.config-json-control{width:100%}.config-switch-control{display:flex;align-items:center;gap:12px;min-height:34px}.config-json-control .ant-typography{font-size:12px}.config-loading{min-height:280px;display:grid;place-items:center}@media(max-width:900px){.config-editor-toolbar{align-items:flex-start;flex-direction:column}.config-search{width:100%;flex-basis:auto}.config-field-row{grid-template-columns:1fr;gap:12px}}@media(max-width:640px){.config-policy-summary{grid-template-columns:1fr}.config-policy-item{justify-content:flex-start;padding:8px 0}.config-policy-item+.config-policy-item{border-left:0;border-top:1px solid #eef2f6}.config-editor-toolbar,.config-field-row{padding-inline:16px}.config-switch-control{align-items:flex-start;flex-direction:column}}.workbench-sidebar-newchat{padding:12px 16px 0}.workbench-stream-status{flex:0 0 auto;margin-inline-start:auto}.workbench-status-toggle{flex:0 0 auto}.workbench-main-content{display:flex;flex-direction:column}.workbench-drawer .ant-drawer-body{padding:0}.workbench-drawer .workbench-panel{height:100%;border-inline-end:0}@media(max-width:480px){.workbench-status-bar{flex-direction:column;align-items:stretch}.workbench-status-meta{justify-content:flex-start}}