From 11d9fee0b5ec88918c1f78214fa3e42f8c928e1d Mon Sep 17 00:00:00 2001 From: Codex Date: Tue, 26 May 2026 17:44:42 +0000 Subject: [PATCH 1/2] Release AdClaw v1.0.27 --- src/adclaw/__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adclaw/__version__.py b/src/adclaw/__version__.py index 8e53a0a..a01b897 100644 --- a/src/adclaw/__version__.py +++ b/src/adclaw/__version__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = "1.0.26" +__version__ = "1.0.27" From 40032258661a3a68fba320c017d511112e220da8 Mon Sep 17 00:00:00 2001 From: Codex Date: Tue, 26 May 2026 21:47:48 +0000 Subject: [PATCH 2/2] fix: persist streamed replies in release build --- README.md | 2 +- console/src/pages/Chat/index.module.less | 51 +- console/src/pages/Chat/index.tsx | 115 +- src/adclaw/app/runner/runner.py | 84 +- ...By-D8ru0AWw.js => _basePickBy-BzYxueAG.js} | 2 +- ...Uniq-mI0_nzhz.js => _baseUniq-Dg6PvSCo.js} | 2 +- .../{arc-BwOY2Xs1.js => arc-5gXlsG4Q.js} | 2 +- ... architectureDiagram-VXUJARFQ-BnMQ6QYc.js} | 2 +- ...K.js => blockDiagram-VD42YOAC-Dyi_zh_5.js} | 2 +- ...HN-J.js => c4Diagram-YG6GDRKO-Csim2GTp.js} | 2 +- src/adclaw/console/assets/channel-BkfSU_FA.js | 1 - src/adclaw/console/assets/channel-DnkcnzbZ.js | 1 + ...CalenPtr.js => chunk-4BX2VUAB-De0wsjr9.js} | 2 +- ...HWQqZTFV.js => chunk-55IACEB6-BRDK9d3b.js} | 2 +- ...w0Noq32D.js => chunk-B4BG7PRW-DHog70H7.js} | 2 +- ...BdK_uSZV.js => chunk-DI55MBZ5-Cy3a0Lf9.js} | 2 +- ...C_3apHrX.js => chunk-FMBD7UC4-_lv-Ir7k.js} | 2 +- ...Bfn-g6m4.js => chunk-QN33PNHL-Ni-_soP9.js} | 2 +- ...DlUXLqBe.js => chunk-QZHKN3VN-Bemo9eSF.js} | 2 +- ...C-awqBe9.js => chunk-TZMSLE5B-WkZZUiQp.js} | 2 +- .../assets/classDiagram-2ON5EDUG-C8nUsQQ7.js | 1 - .../assets/classDiagram-2ON5EDUG-DKdIacjv.js | 1 + .../classDiagram-v2-WZHVMYZB-C8nUsQQ7.js | 1 - .../classDiagram-v2-WZHVMYZB-DKdIacjv.js | 1 + src/adclaw/console/assets/clone-CpRDnie0.js | 1 - src/adclaw/console/assets/clone-z69nb1L5.js | 1 + ...z.js => cose-bilkent-S5V4N54A-5hofHsXZ.js} | 2 +- ...Dgjgnu5A.js => dagre-6UL2VRFP-CWWv_xqB.js} | 2 +- ...jhdnel.js => diagram-PSM6KHXK-q4aPZlA7.js} | 2 +- ...TNPGgI.js => diagram-QEK2KX5R-DT2g0V4c.js} | 2 +- ...xp8Ly1.js => diagram-S2PKOQOG--v39NZhz.js} | 2 +- ...08s1.js => erDiagram-Q2GNP2WA-BQxq7iHq.js} | 2 +- ...mZ.js => flowDiagram-NV44I4VS-B9dFj1QQ.js} | 2 +- ...E.js => ganttDiagram-JELNMOA3-BACMDM9w.js} | 2 +- ...s => gitGraphDiagram-V2S2FVAM-DDdvBXDK.js} | 2 +- .../{graph-D-pGiHx5.js => graph-C7nCxrGC.js} | 2 +- src/adclaw/console/assets/index-B-0lp_EC.css | 1 - .../{index-C-alNCkd.js => index-CnXIpKtg.js} | 1128 +++++++++-------- src/adclaw/console/assets/index-ZhB92Smg.css | 1 + ...Eb.js => infoDiagram-HS3SLOUP-DuU3d8pT.js} | 2 +- ...js => journeyDiagram-XKPGCS4Q-DU-0mOjJ.js} | 2 +- ...=> kanban-definition-3W4ZIXB7-CdluP49I.js} | 2 +- ...{layout-Ceh3TcTz.js => layout-DaarVybf.js} | 2 +- ...{linear-6bmKclen.js => linear-Bizo30dK.js} | 2 +- ...> mindmap-definition-VGOIOE7T-DmTviSoI.js} | 2 +- ...pfA.js => pieDiagram-ADFJNKIX-C6lAEiPw.js} | 2 +- ...s => quadrantDiagram-AYHSOK5B-CJFHD57u.js} | 2 +- ...> requirementDiagram-UZGBJVZJ-Ks_8asey.js} | 2 +- ....js => sankeyDiagram-TZEHDZUN-Dyf7sSJr.js} | 2 +- ...s => sequenceDiagram-WL72ISMW-3_PaRG9T.js} | 2 +- ...6.js => stateDiagram-FKZM4ZOC-B2Gz9yRX.js} | 2 +- .../stateDiagram-v2-4FDKWEC3-Byi7VEQa.js | 1 + .../stateDiagram-v2-4FDKWEC3-DnoEvM3A.js | 1 - ... timeline-definition-IT6M3QCI-bL2kMDYi.js} | 2 +- ...i_XKuI.js => treemap-GDKQZRPO-DwNuPoGC.js} | 2 +- ...js => xychartDiagram-PRI3JC2R-DCe4WDuI.js} | 2 +- src/adclaw/console/index.html | 4 +- tests/test_mcp_resilience.py | 220 +++- 58 files changed, 1044 insertions(+), 650 deletions(-) rename src/adclaw/console/assets/{_basePickBy-D8ru0AWw.js => _basePickBy-BzYxueAG.js} (94%) rename src/adclaw/console/assets/{_baseUniq-mI0_nzhz.js => _baseUniq-Dg6PvSCo.js} (99%) rename src/adclaw/console/assets/{arc-BwOY2Xs1.js => arc-5gXlsG4Q.js} (98%) rename src/adclaw/console/assets/{architectureDiagram-VXUJARFQ-BgROGXvj.js => architectureDiagram-VXUJARFQ-BnMQ6QYc.js} (99%) rename src/adclaw/console/assets/{blockDiagram-VD42YOAC-COnr0WQK.js => blockDiagram-VD42YOAC-Dyi_zh_5.js} (99%) rename src/adclaw/console/assets/{c4Diagram-YG6GDRKO-DE1-HN-J.js => c4Diagram-YG6GDRKO-Csim2GTp.js} (99%) delete mode 100644 src/adclaw/console/assets/channel-BkfSU_FA.js create mode 100644 src/adclaw/console/assets/channel-DnkcnzbZ.js rename src/adclaw/console/assets/{chunk-4BX2VUAB-CalenPtr.js => chunk-4BX2VUAB-De0wsjr9.js} (77%) rename src/adclaw/console/assets/{chunk-55IACEB6-HWQqZTFV.js => chunk-55IACEB6-BRDK9d3b.js} (71%) rename src/adclaw/console/assets/{chunk-B4BG7PRW-w0Noq32D.js => chunk-B4BG7PRW-DHog70H7.js} (99%) rename src/adclaw/console/assets/{chunk-DI55MBZ5-BdK_uSZV.js => chunk-DI55MBZ5-Cy3a0Lf9.js} (99%) rename src/adclaw/console/assets/{chunk-FMBD7UC4-C_3apHrX.js => chunk-FMBD7UC4-_lv-Ir7k.js} (84%) rename src/adclaw/console/assets/{chunk-QN33PNHL-Bfn-g6m4.js => chunk-QN33PNHL-Ni-_soP9.js} (87%) rename src/adclaw/console/assets/{chunk-QZHKN3VN-DlUXLqBe.js => chunk-QZHKN3VN-Bemo9eSF.js} (65%) rename src/adclaw/console/assets/{chunk-TZMSLE5B-C-awqBe9.js => chunk-TZMSLE5B-WkZZUiQp.js} (95%) delete mode 100644 src/adclaw/console/assets/classDiagram-2ON5EDUG-C8nUsQQ7.js create mode 100644 src/adclaw/console/assets/classDiagram-2ON5EDUG-DKdIacjv.js delete mode 100644 src/adclaw/console/assets/classDiagram-v2-WZHVMYZB-C8nUsQQ7.js create mode 100644 src/adclaw/console/assets/classDiagram-v2-WZHVMYZB-DKdIacjv.js delete mode 100644 src/adclaw/console/assets/clone-CpRDnie0.js create mode 100644 src/adclaw/console/assets/clone-z69nb1L5.js rename src/adclaw/console/assets/{cose-bilkent-S5V4N54A-BWT2Jt_z.js => cose-bilkent-S5V4N54A-5hofHsXZ.js} (99%) rename src/adclaw/console/assets/{dagre-6UL2VRFP-Dgjgnu5A.js => dagre-6UL2VRFP-CWWv_xqB.js} (97%) rename src/adclaw/console/assets/{diagram-PSM6KHXK-khjhdnel.js => diagram-PSM6KHXK-q4aPZlA7.js} (97%) rename src/adclaw/console/assets/{diagram-QEK2KX5R-CTTNPGgI.js => diagram-QEK2KX5R-DT2g0V4c.js} (95%) rename src/adclaw/console/assets/{diagram-S2PKOQOG-CBxp8Ly1.js => diagram-S2PKOQOG--v39NZhz.js} (94%) rename src/adclaw/console/assets/{erDiagram-Q2GNP2WA-Bf7_08s1.js => erDiagram-Q2GNP2WA-BQxq7iHq.js} (98%) rename src/adclaw/console/assets/{flowDiagram-NV44I4VS-DWaZuKmZ.js => flowDiagram-NV44I4VS-B9dFj1QQ.js} (99%) rename src/adclaw/console/assets/{ganttDiagram-JELNMOA3-B33mOOCE.js => ganttDiagram-JELNMOA3-BACMDM9w.js} (99%) rename src/adclaw/console/assets/{gitGraphDiagram-V2S2FVAM-Da1Rodr0.js => gitGraphDiagram-V2S2FVAM-DDdvBXDK.js} (98%) rename src/adclaw/console/assets/{graph-D-pGiHx5.js => graph-C7nCxrGC.js} (97%) delete mode 100644 src/adclaw/console/assets/index-B-0lp_EC.css rename src/adclaw/console/assets/{index-C-alNCkd.js => index-CnXIpKtg.js} (66%) create mode 100644 src/adclaw/console/assets/index-ZhB92Smg.css rename src/adclaw/console/assets/{infoDiagram-HS3SLOUP-Bnu2SiEb.js => infoDiagram-HS3SLOUP-DuU3d8pT.js} (60%) rename src/adclaw/console/assets/{journeyDiagram-XKPGCS4Q-BLuRTCzZ.js => journeyDiagram-XKPGCS4Q-DU-0mOjJ.js} (98%) rename src/adclaw/console/assets/{kanban-definition-3W4ZIXB7-BWFNF9Mf.js => kanban-definition-3W4ZIXB7-CdluP49I.js} (99%) rename src/adclaw/console/assets/{layout-Ceh3TcTz.js => layout-DaarVybf.js} (99%) rename src/adclaw/console/assets/{linear-6bmKclen.js => linear-Bizo30dK.js} (97%) rename src/adclaw/console/assets/{mindmap-definition-VGOIOE7T-B_XmCI29.js => mindmap-definition-VGOIOE7T-DmTviSoI.js} (99%) rename src/adclaw/console/assets/{pieDiagram-ADFJNKIX-u0d3VpfA.js => pieDiagram-ADFJNKIX-C6lAEiPw.js} (93%) rename src/adclaw/console/assets/{quadrantDiagram-AYHSOK5B-CGtue8c6.js => quadrantDiagram-AYHSOK5B-CJFHD57u.js} (99%) rename src/adclaw/console/assets/{requirementDiagram-UZGBJVZJ-WmeTNjrk.js => requirementDiagram-UZGBJVZJ-Ks_8asey.js} (99%) rename src/adclaw/console/assets/{sankeyDiagram-TZEHDZUN-TiQtw_h8.js => sankeyDiagram-TZEHDZUN-Dyf7sSJr.js} (99%) rename src/adclaw/console/assets/{sequenceDiagram-WL72ISMW-Yt9Nueoj.js => sequenceDiagram-WL72ISMW-3_PaRG9T.js} (99%) rename src/adclaw/console/assets/{stateDiagram-FKZM4ZOC-D2lbMb06.js => stateDiagram-FKZM4ZOC-B2Gz9yRX.js} (96%) create mode 100644 src/adclaw/console/assets/stateDiagram-v2-4FDKWEC3-Byi7VEQa.js delete mode 100644 src/adclaw/console/assets/stateDiagram-v2-4FDKWEC3-DnoEvM3A.js rename src/adclaw/console/assets/{timeline-definition-IT6M3QCI-ConOPyEE.js => timeline-definition-IT6M3QCI-bL2kMDYi.js} (99%) rename src/adclaw/console/assets/{treemap-GDKQZRPO-CEi_XKuI.js => treemap-GDKQZRPO-DwNuPoGC.js} (99%) rename src/adclaw/console/assets/{xychartDiagram-PRI3JC2R-D7zfNghn.js => xychartDiagram-PRI3JC2R-DCe4WDuI.js} (99%) diff --git a/README.md b/README.md index 22ad7d3..ece73db 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ - **@tag routing** in Telegram — `@researcher find AI trends` sends the message to the right agent - **Coordinator delegation** — one agent orchestrates the rest, delegating tasks automatically - **Shared memory** — agents read each other's output files for seamless collaboration -- **120+ built-in skills** — SEO (19 skills + 30 reference files), ads (18 skills + 23 reference files), content, social media, analytics, growth hacking +- **121 built-in skills** — including 43 marketing skills plus SEO, ads, content, social media, analytics, and growth hacking workflows - **25 built-in MCP servers** — browser automation, AI search, SEO, ads, social media, email marketing, CRM, disposable email inboxes, multimodal generation (image/video/speech/music), and more. Enable what you need from the Web UI - **52 marketing tools** via Citedy MCP server - **Instant file publishing** — upload any file to [here.now](https://here.now), get a shareable link, host static sites, use your own domain diff --git a/console/src/pages/Chat/index.module.less b/console/src/pages/Chat/index.module.less index 308b9dd..02a04ac 100644 --- a/console/src/pages/Chat/index.module.less +++ b/console/src/pages/Chat/index.module.less @@ -23,32 +23,28 @@ } .liveProgress { - position: absolute; - left: 50%; - bottom: 92px; - z-index: 20; - width: min(560px, calc(100% - 48px)); + width: 100%; + margin: 6px 0 8px; pointer-events: none; - transform: translateX(-50%); } .liveProgressInner { display: flex; align-items: center; - gap: 12px; - padding: 12px 14px; - border: 1px solid rgba(203, 213, 225, 0.72); - border-radius: 999px; - background: rgba(255, 255, 255, 0.92); + gap: 8px; + padding: 0 6px; + border: 0; + border-radius: 0; + background: transparent; color: var(--citedy-slate-700, #334155); - box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12); - backdrop-filter: blur(14px); - -webkit-backdrop-filter: blur(14px); + box-shadow: none; + backdrop-filter: none; + -webkit-backdrop-filter: none; } .liveProgressPulse { - width: 10px; - height: 10px; + width: 7px; + height: 7px; border-radius: 999px; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.42); @@ -57,8 +53,8 @@ } .liveProgressError { - width: 10px; - height: 10px; + width: 7px; + height: 7px; border-radius: 999px; background: #f97316; box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16); @@ -66,6 +62,9 @@ } .liveProgressText { + display: flex; + align-items: baseline; + gap: 6px; min-width: 0; flex: 1 1 auto; } @@ -78,7 +77,6 @@ } .liveProgressDetail { - margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--citedy-slate-500, #64748b); @@ -123,10 +121,9 @@ @media (prefers-color-scheme: dark) { .liveProgressInner { - border-color: rgba(71, 85, 105, 0.78); - background: rgba(15, 23, 42, 0.9); + background: transparent; color: var(--citedy-slate-300, #cbd5e1); - box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28); + box-shadow: none; } .liveProgressTitle { @@ -145,13 +142,17 @@ @media (max-width: 640px) { .liveProgress { - bottom: 84px; - width: calc(100% - 24px); + margin-bottom: 8px; } .liveProgressInner { + align-items: center; + } + + .liveProgressText { align-items: flex-start; - border-radius: 18px; + flex-direction: column; + gap: 1px; } .liveProgressElapsed { diff --git a/console/src/pages/Chat/index.tsx b/console/src/pages/Chat/index.tsx index 262c783..ff9211b 100644 --- a/console/src/pages/Chat/index.tsx +++ b/console/src/pages/Chat/index.tsx @@ -758,6 +758,45 @@ function LiveProgressStatus({ status }: { status: LiveChatStatus }) { ); } +function getChatScrollElement(root: HTMLElement | null): HTMLElement | null { + if (!root) return null; + + const messageLists = Array.from( + root.querySelectorAll('[class*="chat-anywhere-message-list"]'), + ); + + return ( + messageLists.find( + (element) => element.scrollHeight > element.clientHeight, + ) ?? + messageLists.find((element) => + String(element.className).includes("bubble-list-wrapper"), + ) ?? + null + ); +} + +function isNearChatBottom(element: HTMLElement): boolean { + return element.scrollHeight - element.scrollTop - element.clientHeight < 160; +} + +function scrollChatToBottom( + root: HTMLElement | null, + behavior: ScrollBehavior = "smooth", +) { + const scrollElement = getChatScrollElement(root); + if (!scrollElement) return; + + scrollElement.scrollTo({ + top: scrollElement.scrollHeight, + behavior, + }); + + window.requestAnimationFrame(() => { + scrollElement.scrollTop = scrollElement.scrollHeight; + }); +} + export default function ChatPage() { const { t } = useTranslation(); const navigate = useNavigate(); @@ -768,7 +807,9 @@ export default function ChatPage() { const [liveChatStatus, setLiveChatStatus] = useState( null, ); + const chatStageRef = useRef(null); const clearStatusTimers = useRef([]); + const forceFollowUntilRef = useRef(0); const [optionsConfig] = useLocalStorageState( "agent-scope-runtime-webui-options", { @@ -793,6 +834,55 @@ export default function ChatPage() { }; }, []); + useEffect(() => { + const root = chatStageRef.current; + if (!root) return; + + const followIfNeeded = (behavior: ScrollBehavior = "smooth") => { + const scrollElement = getChatScrollElement(root); + if (!scrollElement) return; + + if ( + Date.now() < forceFollowUntilRef.current || + isNearChatBottom(scrollElement) + ) { + scrollChatToBottom(root, behavior); + } + }; + + const mutationObserver = new MutationObserver(() => followIfNeeded()); + mutationObserver.observe(root, { + childList: true, + characterData: true, + subtree: true, + }); + + const resizeObserver = new ResizeObserver(() => followIfNeeded()); + resizeObserver.observe(root); + + followIfNeeded("instant"); + + return () => { + mutationObserver.disconnect(); + resizeObserver.disconnect(); + }; + }, [activeTab]); + + useEffect(() => { + if (liveChatStatus) { + forceFollowUntilRef.current = Date.now() + 15_000; + scrollChatToBottom(chatStageRef.current); + return; + } + + forceFollowUntilRef.current = Date.now() + 1_500; + const timer = window.setTimeout(() => { + scrollChatToBottom(chatStageRef.current, "instant"); + }, 50); + + return () => window.clearTimeout(timer); + }, [liveChatStatus?.requestId, liveChatStatus?.stage]); + const handleTabChange = (tabId: string) => { setActiveTab(tabId); if (tabId === "all") { @@ -1173,18 +1263,28 @@ export default function ChatPage() { sender: { ...optionsConfig?.sender, beforeUI: ( - + <> + + {liveChatStatus && } + ), }, customToolRenderConfig: { "weather search mock": Weather, }, } as unknown as IAgentScopeRuntimeWebUIOptions; - }, [optionsConfig, selectedPersona, activeTab, personas, currentSessionId]); + }, [ + optionsConfig, + liveChatStatus, + selectedPersona, + activeTab, + personas, + currentSessionId, + ]); return (
)} -
+
- {liveChatStatus && }
diff --git a/src/adclaw/app/runner/runner.py b/src/adclaw/app/runner/runner.py index 5bbab79..9247bf0 100644 --- a/src/adclaw/app/runner/runner.py +++ b/src/adclaw/app/runner/runner.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- # pylint: disable=unused-argument too-many-branches too-many-statements import asyncio +import copy import inspect import json import logging @@ -602,6 +603,82 @@ async def _yield_recovered_or_fallback(): yield await _yield_recovered_or_fallback(), True +async def _ensure_assistant_reply_in_memory(agent, assistant_text: str) -> None: + """Ensure the visible assistant reply is persisted before session save.""" + text = (assistant_text or "").strip() + memory = getattr(agent, "memory", None) + if not text or memory is None or not hasattr(memory, "add"): + return + + try: + get_memory = getattr(memory, "get_memory", None) + if callable(get_memory): + existing = get_memory() + if inspect.isawaitable(existing): + existing = await existing + for msg in reversed(list(existing or [])): + role = getattr(msg, "role", None) + if role == "user": + break + if role != "assistant": + continue + if extract_visible_text(msg) == text: + return + + from agentscope.message import Msg + + name = getattr(agent, "name", None) or "assistant" + add_result = memory.add( + Msg( + name=name, + role="assistant", + content=[{"type": "text", "text": text}], + ), + ) + if inspect.isawaitable(add_result): + await add_result + except Exception: + logger.warning( + "Could not persist visible assistant reply before session save", + exc_info=True, + ) + + +async def _copy_agent_memory(source_agent, target_agent) -> None: + """Copy loaded chat memory into a fallback agent before retrying.""" + source_memory = getattr(source_agent, "memory", None) + target_memory = getattr(target_agent, "memory", None) + if source_memory is None or target_memory is None: + return + + try: + if hasattr(source_memory, "state_dict") and hasattr( + target_memory, + "load_state_dict", + ): + target_memory.load_state_dict( + copy.deepcopy(source_memory.state_dict()), + ) + return + + get_memory = getattr(source_memory, "get_memory", None) + add = getattr(target_memory, "add", None) + if not callable(get_memory) or not callable(add): + return + messages = get_memory() + if inspect.isawaitable(messages): + messages = await messages + for message in copy.deepcopy(list(messages or [])): + add_result = add(message) + if inspect.isawaitable(add_result): + await add_result + except Exception: + logger.warning( + "Could not copy session memory into fallback agent", + exc_info=True, + ) + + def _same_model_slot(candidate, primary) -> bool: """Return True when a fallback slot points at the current provider/model.""" if candidate is None or primary is None: @@ -1111,10 +1188,6 @@ def _yield_host_ai_transient_msg(): ) yield notify_msg, False - # Fallback agent is created without loading session - # state. This is intentional: loading the same history - # that may have caused the primary failure could trigger - # the same error on the fallback provider. fb_agent = AdClawAgent( env_context=getattr(agent, "_env_context", None), mcp_clients=getattr(agent, "_mcp_clients", []), @@ -1129,6 +1202,7 @@ def _yield_host_ai_transient_msg(): model=fb_model, formatter=fb_formatter, ) + await _copy_agent_memory(agent, fb_agent) await fb_agent.register_mcp_clients() fb_agent.set_console_output_enabled(enabled=False) @@ -1149,6 +1223,7 @@ def _yield_host_ai_transient_msg(): "assistant_text", assistant_text, ) + await _copy_agent_memory(fb_agent, agent) if self.error_tracker: self.error_tracker.record_success(session_id) return # success @@ -1301,6 +1376,7 @@ def _yield_host_ai_transient_msg(): raise finally: if agent is not None and session_state_loaded: + await _ensure_assistant_reply_in_memory(agent, assistant_text) await self.session.save_session_state( session_id=session_id, user_id=user_id, diff --git a/src/adclaw/console/assets/_basePickBy-D8ru0AWw.js b/src/adclaw/console/assets/_basePickBy-BzYxueAG.js similarity index 94% rename from src/adclaw/console/assets/_basePickBy-D8ru0AWw.js rename to src/adclaw/console/assets/_basePickBy-BzYxueAG.js index 9435bc9..66759e7 100644 --- a/src/adclaw/console/assets/_basePickBy-D8ru0AWw.js +++ b/src/adclaw/console/assets/_basePickBy-BzYxueAG.js @@ -1 +1 @@ -import{aQ as g,aR as m,aD as P,aS as p,aT as w,aU as y,aV as o,aI as A,aW as N,aX as _,aY as $,aZ as b,a_ as E,a$ as M,b0 as T,b1 as c}from"./index-C-alNCkd.js";import{c as x,d as B,e as F,h as S}from"./_baseUniq-mI0_nzhz.js";var R=/\s/;function G(r){for(var n=r.length;n--&&R.test(r.charAt(n)););return n}var H=/^\s+/;function L(r){return r&&r.slice(0,G(r)+1).replace(H,"")}var I=NaN,W=/^[-+]0x[0-9a-f]+$/i,X=/^0b[01]+$/i,Y=/^0o[0-7]+$/i,l=parseInt;function q(r){if(typeof r=="number")return r;if(g(r))return I;if(m(r)){var n=typeof r.valueOf=="function"?r.valueOf():r;r=m(n)?n+"":n}if(typeof r!="string")return r===0?r:+r;r=L(r);var a=X.test(r);return a||Y.test(r)?l(r.slice(2),a?2:8):W.test(r)?I:+r}var v=1/0,z=17976931348623157e292;function C(r){if(!r)return r===0?r:0;if(r=q(r),r===v||r===-v){var n=r<0?-1:1;return n*z}return r===r?r:0}function D(r){var n=C(r),a=n%1;return n===n?a?n-a:n:0}var O=Object.prototype,K=O.hasOwnProperty,er=P(function(r,n){r=Object(r);var a=-1,e=n.length,t=e>2?n[2]:void 0;for(t&&p(n[0],n[1],t)&&(e=1);++a-1?t[f?n[i]:i]:void 0}}var U=Math.max;function Z(r,n,a){var e=r==null?0:r.length;if(!e)return-1;var t=a==null?0:D(a);return t<0&&(t=U(e+t,0)),B(r,x(n),t)}var sr=Q(Z);function J(r,n){var a=-1,e=o(r)?Array(r.length):[];return F(r,function(t,f,i){e[++a]=n(t,f,i)}),e}function fr(r,n){var a=N(r)?_:J;return a(r,x(n))}var V=Object.prototype,k=V.hasOwnProperty;function j(r,n){return r!=null&&k.call(r,n)}function dr(r,n){return r!=null&&S(r,n,j)}function rr(r,n){return r2?n[2]:void 0;for(t&&p(n[0],n[1],t)&&(e=1);++a-1?t[f?n[i]:i]:void 0}}var U=Math.max;function Z(r,n,a){var e=r==null?0:r.length;if(!e)return-1;var t=a==null?0:D(a);return t<0&&(t=U(e+t,0)),B(r,x(n),t)}var sr=Q(Z);function J(r,n){var a=-1,e=o(r)?Array(r.length):[];return F(r,function(t,f,i){e[++a]=n(t,f,i)}),e}function fr(r,n){var a=N(r)?_:J;return a(r,x(n))}var V=Object.prototype,k=V.hasOwnProperty;function j(r,n){return r!=null&&k.call(r,n)}function dr(r,n){return r!=null&&S(r,n,j)}function rr(r,n){return r-1}function wn(n,r,e){var f=n==null?void 0:Z(n,r);return f===void 0?e:f}function On(n,r,e,f){var u=-1,i=n==null?0:n.length;for(f&&i&&(e=n[++u]);++ua))return!1;var A=i.get(n),g=i.get(r);if(A&&g)return A==r&&g==n;var l=-1,d=!0,h=e&In?new E:void 0;for(i.set(n,r),i.set(r,n);++l=hr){var A=r?null:vr(n);if(A)return M(A);s=!1,u=Q,t=new E}else t=r?[]:a;n:for(;++f-1}function wn(n,r,e){var f=n==null?void 0:Z(n,r);return f===void 0?e:f}function On(n,r,e,f){var u=-1,i=n==null?0:n.length;for(f&&i&&(e=n[++u]);++ua))return!1;var A=i.get(n),g=i.get(r);if(A&&g)return A==r&&g==n;var l=-1,d=!0,h=e&In?new E:void 0;for(i.set(n,r),i.set(r,n);++l=hr){var A=r?null:vr(n);if(A)return M(A);s=!1,u=Q,t=new E}else t=r?[]:a;n:for(;++fr*r+G*G&&(j=w,z=p),{cx:j,cy:z,x01:-n,y01:-d,x11:j*(v/T-1),y11:z*(v/T-1)}}function hn(){var l=cn,h=yn,I=B(0),D=null,v=gn,A=dn,C=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,F=rn(c-f),t=c>f;if(a||(a=n=O()),sy))a.moveTo(0,0);else if(F>tn-y)a.moveTo(s*H(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*H(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=F,S=F,j=C.apply(this,arguments)/2,z=j>y&&(D?+D.apply(this,arguments):L(u*u+s*s)),w=_(rn(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(z>y){var G=sn(z/u*q(j)),M=sn(z/s*q(j));(P-=G*2)>y?(G*=t?1:-1,R+=G,T-=G):(P=0,R=T=(f+c)/2),(S-=M*2)>y?(M*=t?1:-1,m+=M,g-=M):(S=0,m=g=(f+c)/2)}var J=s*H(m),K=s*q(m),N=u*H(T),Q=u*q(T);if(w>y){var U=s*H(g),V=s*q(g),X=u*H(R),Y=u*q(R),E;if(Fy?x>y?(e=W(X,Y,J,K,s,x,t),r=W(U,V,N,Q,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(N,Q):p>y?(e=W(N,Q,U,V,u,-p,t),r=W(J,K,X,Y,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),pr*r+G*G&&(j=w,z=p),{cx:j,cy:z,x01:-n,y01:-d,x11:j*(v/T-1),y11:z*(v/T-1)}}function hn(){var l=cn,h=yn,I=B(0),D=null,v=gn,A=dn,C=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,F=rn(c-f),t=c>f;if(a||(a=n=O()),sy))a.moveTo(0,0);else if(F>tn-y)a.moveTo(s*H(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*H(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=F,S=F,j=C.apply(this,arguments)/2,z=j>y&&(D?+D.apply(this,arguments):L(u*u+s*s)),w=_(rn(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(z>y){var G=sn(z/u*q(j)),M=sn(z/s*q(j));(P-=G*2)>y?(G*=t?1:-1,R+=G,T-=G):(P=0,R=T=(f+c)/2),(S-=M*2)>y?(M*=t?1:-1,m+=M,g-=M):(S=0,m=g=(f+c)/2)}var J=s*H(m),K=s*q(m),N=u*H(T),Q=u*q(T);if(w>y){var U=s*H(g),V=s*q(g),X=u*H(R),Y=u*q(R),E;if(Fy?x>y?(e=W(X,Y,J,K,s,x,t),r=W(U,V,N,Q,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),xy)||!(P>y)?a.lineTo(N,Q):p>y?(e=W(N,Q,U,V,u,-p,t),r=W(J,K,X,Y,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),po?(this.rect.x-=(this.labelWidth-o)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(o+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(s+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>s?(this.rect.y-=(this.labelHeight-s)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(s+this.labelHeight))}}},i.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},i.prototype.transform=function(t){var o=this.rect.x;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var s=this.rect.y;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var c=new f(o,s),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},i.prototype.getLeft=function(){return this.rect.x},i.prototype.getRight=function(){return this.rect.x+this.rect.width},i.prototype.getTop=function(){return this.rect.y},i.prototype.getBottom=function(){return this.rect.y+this.rect.height},i.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},A.exports=i}),(function(A,P,N){var u=N(0);function h(){}for(var a in u)h[a]=u[a];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,A.exports=h}),(function(A,P,N){function u(h,a){h==null&&a==null?(this.x=0,this.y=0):(this.x=h,this.y=a)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(h){this.x=h},u.prototype.setY=function(h){this.y=h},u.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},A.exports=u}),(function(A,P,N){var u=N(2),h=N(10),a=N(0),r=N(7),e=N(3),f=N(1),i=N(13),g=N(12),t=N(11);function o(c,l,T){u.call(this,T),this.estimatedSize=h.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}o.prototype=Object.create(u.prototype);for(var s in u)o[s]=u[s];o.prototype.getNodes=function(){return this.nodes},o.prototype.getEdges=function(){return this.edges},o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getParent=function(){return this.parent},o.prototype.getLeft=function(){return this.left},o.prototype.getRight=function(){return this.right},o.prototype.getTop=function(){return this.top},o.prototype.getBottom=function(){return this.bottom},o.prototype.isConnected=function(){return this.isConnected},o.prototype.add=function(c,l,T){if(l==null&&T==null){var d=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(d)>-1)throw"Node already in graph!";return d.owner=this,this.getNodes().push(d),d}else{var v=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(v.source=l,v.target=T,v.isInterGraph=!1,this.getEdges().push(v),l.edges.push(v),T!=l&&T.edges.push(v),v)}},o.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),d,v=T.length,L=0;L-1&&G>-1))throw"Source and/or target doesn't know this edge!";d.source.edges.splice(C,1),d.target!=d.source&&d.target.edges.splice(G,1);var S=d.source.owner.getEdges().indexOf(d);if(S==-1)throw"Not in owner's edge list!";d.source.owner.getEdges().splice(S,1)}},o.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,l=h.MAX_VALUE,T,d,v,L=this.getNodes(),S=L.length,C=0;CT&&(c=T),l>d&&(l=d)}return c==h.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?v=L[0].getParent().paddingLeft:v=this.margin,this.left=l-v,this.top=c-v,new g(this.left,this.top))},o.prototype.updateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,d=h.MAX_VALUE,v=-h.MAX_VALUE,L,S,C,G,K,X=this.nodes,Q=X.length,O=0;OL&&(l=L),TC&&(d=C),vL&&(l=L),TC&&(d=C),v=this.nodes.length){var Q=0;T.forEach(function(O){O.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},A.exports=o}),(function(A,P,N){var u,h=N(1);function a(r){u=N(6),this.layout=r,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},a.prototype.add=function(r,e,f,i,g){if(f==null&&i==null&&g==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{g=f,i=e,f=r;var t=i.getOwner(),o=g.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(o!=null&&o.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==o)return f.isInterGraph=!1,t.add(f,i,g);if(f.isInterGraph=!0,f.source=i,f.target=g,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},a.prototype.remove=function(r){if(r instanceof u){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var i,g=f.length,t=0;t=r.getRight()?e[0]+=Math.min(r.getX()-a.getX(),a.getRight()-r.getRight()):r.getX()<=a.getX()&&r.getRight()>=a.getRight()&&(e[0]+=Math.min(a.getX()-r.getX(),r.getRight()-a.getRight())),a.getY()<=r.getY()&&a.getBottom()>=r.getBottom()?e[1]+=Math.min(r.getY()-a.getY(),a.getBottom()-r.getBottom()):r.getY()<=a.getY()&&r.getBottom()>=a.getBottom()&&(e[1]+=Math.min(a.getY()-r.getY(),r.getBottom()-a.getBottom()));var g=Math.abs((r.getCenterY()-a.getCenterY())/(r.getCenterX()-a.getCenterX()));r.getCenterY()===a.getCenterY()&&r.getCenterX()===a.getCenterX()&&(g=1);var t=g*e[0],o=e[1]/g;e[0]t)return e[0]=f,e[1]=s,e[2]=g,e[3]=X,!1;if(ig)return e[0]=o,e[1]=i,e[2]=G,e[3]=t,!1;if(fg?(e[0]=l,e[1]=T,n=!0):(e[0]=c,e[1]=s,n=!0):p===y&&(f>g?(e[0]=o,e[1]=s,n=!0):(e[0]=d,e[1]=T,n=!0)),-E===y?g>f?(e[2]=K,e[3]=X,m=!0):(e[2]=G,e[3]=C,m=!0):E===y&&(g>f?(e[2]=S,e[3]=C,m=!0):(e[2]=Q,e[3]=X,m=!0)),n&&m)return!1;if(f>g?i>t?(R=this.getCardinalDirection(p,y,4),M=this.getCardinalDirection(E,y,2)):(R=this.getCardinalDirection(-p,y,3),M=this.getCardinalDirection(-E,y,1)):i>t?(R=this.getCardinalDirection(-p,y,1),M=this.getCardinalDirection(-E,y,3)):(R=this.getCardinalDirection(p,y,2),M=this.getCardinalDirection(E,y,4)),!n)switch(R){case 1:W=s,F=f+-L/y,e[0]=F,e[1]=W;break;case 2:F=d,W=i+v*y,e[0]=F,e[1]=W;break;case 3:W=T,F=f+L/y,e[0]=F,e[1]=W;break;case 4:F=l,W=i+-v*y,e[0]=F,e[1]=W;break}if(!m)switch(M){case 1:k=C,x=g+-rt/y,e[2]=x,e[3]=k;break;case 2:x=Q,k=t+O*y,e[2]=x,e[3]=k;break;case 3:k=X,x=g+rt/y,e[2]=x,e[3]=k;break;case 4:x=K,k=t+-O*y,e[2]=x,e[3]=k;break}}return!1},h.getCardinalDirection=function(a,r,e){return a>r?e:1+e%4},h.getIntersection=function(a,r,e,f){if(f==null)return this.getIntersection2(a,r,e);var i=a.x,g=a.y,t=r.x,o=r.y,s=e.x,c=e.y,l=f.x,T=f.y,d=void 0,v=void 0,L=void 0,S=void 0,C=void 0,G=void 0,K=void 0,X=void 0,Q=void 0;return L=o-g,C=i-t,K=t*g-i*o,S=T-c,G=s-l,X=l*c-s*T,Q=L*G-S*C,Q===0?null:(d=(C*X-G*K)/Q,v=(S*K-L*X)/Q,new u(d,v))},h.angleOfVector=function(a,r,e,f){var i=void 0;return a!==e?(i=Math.atan((f-r)/(e-a)),e=0){var T=(-s+Math.sqrt(s*s-4*o*c))/(2*o),d=(-s-Math.sqrt(s*s-4*o*c))/(2*o),v=null;return T>=0&&T<=1?[T]:d>=0&&d<=1?[d]:v}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,A.exports=h}),(function(A,P,N){function u(){}u.sign=function(h){return h>0?1:h<0?-1:0},u.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},u.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},A.exports=u}),(function(A,P,N){function u(){}u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,A.exports=u}),(function(A,P,N){var u=(function(){function i(g,t){for(var o=0;o"u"?"undefined":u(a);return a==null||r!="object"&&r!="function"},A.exports=h}),(function(A,P,N){function u(s){if(Array.isArray(s)){for(var c=0,l=Array(s.length);c0&&c;){for(L.push(C[0]);L.length>0&&c;){var G=L[0];L.splice(0,1),v.add(G);for(var K=G.getEdges(),d=0;d-1&&C.splice(rt,1)}v=new Set,S=new Map}}return s},o.prototype.createDummyNodesForBendpoints=function(s){for(var c=[],l=s.source,T=this.graphManager.calcLowestCommonAncestor(s.source,s.target),d=0;d0){for(var T=this.edgeToDummyNodes.get(l),d=0;d=0&&c.splice(X,1);var Q=S.getNeighborsList();Q.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),p=m-1;p==1&&G.push(n),T.set(n,p)}})}l=l.concat(G),(c.length==1||c.length==2)&&(d=!0,v=c[0])}return v},o.prototype.setGraphManager=function(s){this.graphManager=s},A.exports=o}),(function(A,P,N){function u(){}u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},A.exports=u}),(function(A,P,N){var u=N(5);function h(a,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(a){this.lworldExtX=a},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(a){this.lworldExtY=a},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},h.prototype.transformX=function(a){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/e),r},h.prototype.transformY=function(a){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/e),r},h.prototype.inverseTransformX=function(a){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/e),r},h.prototype.inverseTransformY=function(a){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/e),r},h.prototype.inverseTransformPoint=function(a){var r=new u(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return r},A.exports=h}),(function(A,P,N){function u(t){if(Array.isArray(t)){for(var o=0,s=Array(t.length);oa.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},i.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),o,s=0;s0&&arguments[0]!==void 0?arguments[0]:!0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,c,l,T,d=this.getAllNodes(),v;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),v=new Set,s=0;sL||v>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=o.getEstimatedSize()*this.compoundGravityRangeFactor,(d>L||v>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},i.prototype.isConverged=function(){var t,o=!1;return this.totalIterations>this.maxIterations/3&&(o=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=d.length||L>=d[0].length)){for(var S=0;Si}}]),e})();A.exports=r}),(function(A,P,N){function u(){}u.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var a=Math.min(this.m,this.n);this.s=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Tt){var Ct=function $t(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St0;)Ct.push(0);return Ct})(this.n),e=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,i=Math.min(this.m-1,this.n),g=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var y=E+1;y=0;V--){if((function(Tt,Ct){return Tt&&Ct})(V0;){var q=void 0,It=void 0;for(q=n-2;q>=-1&&q!==-1;q--)if(Math.abs(r[q])<=ht+_*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){r[q]=0;break}if(q===n-2)It=4;else{var Nt=void 0;for(Nt=n-1;Nt>=q&&Nt!==q;Nt--){var vt=(Nt!==n?Math.abs(r[Nt]):0)+(Nt!==q+1?Math.abs(r[Nt-1]):0);if(Math.abs(this.s[Nt])<=ht+_*vt){this.s[Nt]=0;break}}Nt===q?It=3:Nt===n-1?It=1:(It=2,q=Nt)}switch(q++,It){case 1:{var it=r[n-2];r[n-2]=0;for(var gt=n-2;gt>=q;gt--){var mt=u.hypot(this.s[gt],it),At=this.s[gt]/mt,Ot=it/mt;this.s[gt]=mt,gt!==q&&(it=-Ot*r[gt-1],r[gt-1]=At*r[gt-1]);for(var Et=0;Et=this.s[q+1]);){var Lt=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Lt,qMath.abs(a)?(r=a/h,r=Math.abs(h)*Math.sqrt(1+r*r)):a!=0?(r=h/a,r=Math.abs(a)*Math.sqrt(1+r*r)):r=0,r},A.exports=u}),(function(A,P,N){var u=(function(){function r(e,f){for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:1,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,r),this.sequence1=e,this.sequence2=f,this.match_score=i,this.mismatch_penalty=g,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var o=0;o=0;e--){var f=this.listeners[e];f.event===a&&f.callback===r&&this.listeners.splice(e,1)}},h.emit=function(a,r){for(var e=0;e{var P={45:((a,r,e)=>{var f={};f.layoutBase=e(551),f.CoSEConstants=e(806),f.CoSEEdge=e(767),f.CoSEGraph=e(880),f.CoSEGraphManager=e(578),f.CoSELayout=e(765),f.CoSENode=e(991),f.ConstraintHandler=e(902),a.exports=f}),806:((a,r,e)=>{var f=e(551).FDLayoutConstants;function i(){}for(var g in f)i[g]=f[g];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,a.exports=i}),767:((a,r,e)=>{var f=e(551).FDLayoutEdge;function i(t,o,s){f.call(this,t,o,s)}i.prototype=Object.create(f.prototype);for(var g in f)i[g]=f[g];a.exports=i}),880:((a,r,e)=>{var f=e(551).LGraph;function i(t,o,s){f.call(this,t,o,s)}i.prototype=Object.create(f.prototype);for(var g in f)i[g]=f[g];a.exports=i}),578:((a,r,e)=>{var f=e(551).LGraphManager;function i(t){f.call(this,t)}i.prototype=Object.create(f.prototype);for(var g in f)i[g]=f[g];a.exports=i}),765:((a,r,e)=>{var f=e(551).FDLayout,i=e(578),g=e(880),t=e(991),o=e(767),s=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,d=e(551).Point,v=e(551).PointD,L=e(551).DimensionD,S=e(551).Layout,C=e(551).Integer,G=e(551).IGeometry,K=e(551).LGraph,X=e(551).Transform,Q=e(551).LinkedList;function O(){f.call(this),this.toBeTiled={},this.constraints={}}O.prototype=Object.create(f.prototype);for(var rt in f)O[rt]=f[rt];O.prototype.newGraphManager=function(){var n=new i(this);return this.graphManager=n,n},O.prototype.newGraph=function(n){return new g(null,this.graphManager,n)},O.prototype.newNode=function(n){return new t(this.graphManager,n)},O.prototype.newEdge=function(n){return new o(null,null,n)},O.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(s.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=s.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},O.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},O.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},O.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(s.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(R){return m.has(R)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),s.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},O.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),s.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),s.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},O.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},p=0;p0&&this.updateDisplacements();for(var p=0;p0&&(E.fixedNodeWeight=R)}}if(this.constraints.relativePlacementConstraint){var M=new Map,F=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(w){n.fixedNodesOnHorizontal.add(w),n.fixedNodesOnVertical.add(w)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p=2*w.length/3;_--)H=Math.floor(Math.random()*(_+1)),$=w[_],w[_]=w[H],w[H]=$;return w},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(w){if(w.left){var H=M.has(w.left)?M.get(w.left):w.left,$=M.has(w.right)?M.get(w.right):w.right;n.nodesInRelativeHorizontal.includes(H)||(n.nodesInRelativeHorizontal.push(H),n.nodeToRelativeConstraintMapHorizontal.set(H,[]),n.dummyToNodeForVerticalAlignment.has(H)?n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(H).getCenterX())),n.nodesInRelativeHorizontal.includes($)||(n.nodesInRelativeHorizontal.push($),n.nodeToRelativeConstraintMapHorizontal.set($,[]),n.dummyToNodeForVerticalAlignment.has($)?n.nodeToTempPositionMapHorizontal.set($,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get($)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set($,n.idToNodeMap.get($).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(H).push({right:$,gap:w.gap}),n.nodeToRelativeConstraintMapHorizontal.get($).push({left:H,gap:w.gap})}else{var _=F.has(w.top)?F.get(w.top):w.top,ht=F.has(w.bottom)?F.get(w.bottom):w.bottom;n.nodesInRelativeVertical.includes(_)||(n.nodesInRelativeVertical.push(_),n.nodeToRelativeConstraintMapVertical.set(_,[]),n.dummyToNodeForHorizontalAlignment.has(_)?n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(_).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(_).push({bottom:ht,gap:w.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:_,gap:w.gap})}});else{var k=new Map,V=new Map;this.constraints.relativePlacementConstraint.forEach(function(w){if(w.left){var H=M.has(w.left)?M.get(w.left):w.left,$=M.has(w.right)?M.get(w.right):w.right;k.has(H)?k.get(H).push($):k.set(H,[$]),k.has($)?k.get($).push(H):k.set($,[H])}else{var _=F.has(w.top)?F.get(w.top):w.top,ht=F.has(w.bottom)?F.get(w.bottom):w.bottom;V.has(_)?V.get(_).push(ht):V.set(_,[ht]),V.has(ht)?V.get(ht).push(_):V.set(ht,[_])}});var Y=function(H,$){var _=[],ht=[],q=new Q,It=new Set,Nt=0;return H.forEach(function(vt,it){if(!It.has(it)){_[Nt]=[],ht[Nt]=!1;var gt=it;for(q.push(gt),It.add(gt),_[Nt].push(gt);q.length!=0;){gt=q.shift(),$.has(gt)&&(ht[Nt]=!0);var mt=H.get(gt);mt.forEach(function(At){It.has(At)||(q.push(At),It.add(At),_[Nt].push(At))})}Nt++}}),{components:_,isFixed:ht}},et=Y(k,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=Y(V,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},O.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var w=n.idToNodeMap.get(z.nodeId);w.displacementX=0,w.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,p=0;p1){var F;for(F=0;FE&&(E=Math.floor(M.y)),R=Math.floor(M.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new v(T.WORLD_CENTER_X-M.x/2,T.WORLD_CENTER_Y-M.y/2))},O.radialLayout=function(n,m,p){var E=Math.max(this.maxDiagonalInTree(n),s.DEFAULT_RADIAL_SEPARATION);O.branchRadialLayout(m,null,0,359,0,E);var y=K.calculateBounds(n),R=new X;R.setDeviceOrgX(y.getMinX()),R.setDeviceOrgY(y.getMinY()),R.setWorldOrgX(p.x),R.setWorldOrgY(p.y);for(var M=0;M1;){var $=H[0];H.splice(0,1);var _=V.indexOf($);_>=0&&V.splice(_,1),z--,Y--}m!=null?w=(V.indexOf(H[0])+1)%z:w=0;for(var ht=Math.abs(E-p)/Y,q=w;et!=Y;q=++q%z){var It=V[q].getOtherEnd(n);if(It!=m){var Nt=(p+et*ht)%360,vt=(Nt+ht)%360;O.branchRadialLayout(It,n,Nt,vt,y+R,R),et++}}},O.maxDiagonalInTree=function(n){for(var m=C.MIN_VALUE,p=0;pm&&(m=y)}return m},O.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},O.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var p=[],E=this.graphManager.getAllNodes(),y=0;y"u"&&(m[F]=[]),m[F]=m[F].concat(R)}Object.keys(m).forEach(function(W){if(m[W].length>1){var x="DummyCompound_"+W;n.memberGroups[x]=m[W];var k=m[W][0].getParent(),V=new t(n.graphManager);V.id=x,V.paddingLeft=k.paddingLeft||0,V.paddingRight=k.paddingRight||0,V.paddingBottom=k.paddingBottom||0,V.paddingTop=k.paddingTop||0,n.idToDummyNode[x]=V;var Y=n.getGraphManager().add(n.newGraph(),V),et=k.getChild();et.add(V);for(var z=0;zy?(E.rect.x-=(E.labelWidth-y)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-y)/2):E.labelPosHorizontal=="right"&&E.setWidth(y+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(R+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>R?(E.rect.y-=(E.labelHeight-R)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-R)/2):E.labelPosVertical=="bottom"&&E.setHeight(R+E.labelHeight))}})},O.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],p=m.id,E=m.paddingLeft,y=m.paddingTop,R=m.labelMarginLeft,M=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],m.rect.x,m.rect.y,E,y,R,M)}},O.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(p){var E=n.idToDummyNode[p],y=E.paddingLeft,R=E.paddingTop,M=E.labelMarginLeft,F=E.labelMarginTop;n.adjustLocations(m[p],E.rect.x,E.rect.y,y,R,M,F)})},O.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var p=n.getChild();if(p==null)return this.toBeTiled[m]=!1,!1;for(var E=p.getNodes(),y=0;y0)return this.toBeTiled[m]=!1,!1;if(R.getChild()==null){this.toBeTiled[R.id]=!1;continue}if(!this.getToBeTiled(R))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},O.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),p=0,E=0;Ek&&(k=Y.rect.height)}p+=k+n.verticalPadding}},O.prototype.tileCompoundMembers=function(n,m){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var y=m[E];if(p.tiledMemberPack[E]=p.tileNodes(n[E],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[E].width,y.rect.height=p.tiledMemberPack[E].height,y.setCenter(p.tiledMemberPack[E].centerX,p.tiledMemberPack[E].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var R=y.rect.width,M=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(R+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>R?(y.rect.x-=(y.labelWidth-R)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-R)/2):y.labelPosHorizontal=="right"&&y.setWidth(R+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(M+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>M?(y.rect.y-=(y.labelHeight-M)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-M)/2):y.labelPosVertical=="bottom"&&y.setHeight(M+y.labelHeight))}})},O.prototype.tileNodes=function(n,m){var p=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),y=this.getOrgRatio(p),R=this.getOrgRatio(E),M;return RF&&(F=z.getWidth())});var W=R/y,x=M/y,k=Math.pow(p-E,2)+4*(W+E)*(x+p)*y,V=(E-p+Math.sqrt(k))/(2*(W+E)),Y;m?(Y=Math.ceil(V),Y==V&&Y++):Y=Math.floor(V);var et=Y*(W+E)-E;return F>et&&(et=F),et+=E*2,et},O.prototype.tileNodesByFavoringDim=function(n,m,p){var E=s.TILING_PADDING_VERTICAL,y=s.TILING_PADDING_HORIZONTAL,R=s.TILING_COMPARE_BY,M={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:y,centerX:0,centerY:0};R&&(M.idealRowWidth=this.calcIdealRowWidth(n,p));var F=function(w){return w.rect.width*w.rect.height},W=function(w,H){return F(H)-F(w)};n.sort(function(z,w){var H=W;return M.idealRowWidth?(H=R,H(z.id,w.id)):H(z,w)});for(var x=0,k=0,V=0;V0&&(M+=n.horizontalPadding),n.rowWidth[p]=M,n.width0&&(F+=n.verticalPadding);var W=0;F>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=F,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(m)},O.prototype.getShortestRowIndex=function(n){for(var m=-1,p=Number.MAX_VALUE,E=0;Ep&&(m=E,p=n.rowWidth[E]);return m},O.prototype.canAddHorizontal=function(n,m,p){if(n.idealRowWidth){var E=n.rows.length-1,y=n.rowWidth[E];return y+m+n.horizontalPadding<=n.idealRowWidth}var R=this.getShortestRowIndex(n);if(R<0)return!0;var M=n.rowWidth[R];if(M+n.horizontalPadding+m<=n.width)return!0;var F=0;n.rowHeight[R]0&&(F=p+n.verticalPadding-n.rowHeight[R]);var W;n.width-M>=m+n.horizontalPadding?W=(n.height+F)/(M+m+n.horizontalPadding):W=(n.height+F)/n.width,F=p+n.verticalPadding;var x;return n.widthR&&m!=p){E.splice(-1,1),n.rows[p].push(y),n.rowWidth[m]=n.rowWidth[m]-R,n.rowWidth[p]=n.rowWidth[p]+R,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var M=Number.MIN_VALUE,F=0;FM&&(M=E[F].height);m>0&&(M+=n.verticalPadding);var W=n.rowHeight[m]+n.rowHeight[p];n.rowHeight[m]=M,n.rowHeight[p]0)for(var et=y;et<=R;et++)Y[0]+=this.grid[et][M-1].length+this.grid[et][M].length-1;if(R0)for(var et=M;et<=F;et++)Y[3]+=this.grid[y-1][et].length+this.grid[y][et].length-1;for(var z=C.MAX_VALUE,w,H,$=0;${var f=e(551).FDLayoutNode,i=e(551).IMath;function g(o,s,c,l){f.call(this,o,s,c,l)}g.prototype=Object.create(f.prototype);for(var t in f)g[t]=f[t];g.prototype.calculateDisplacement=function(){var o=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementX=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementY=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},g.prototype.propogateDisplacementToChildren=function(o,s){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Lt=0;ot.forEach(function(st){B=="horizontal"?(tt.set(st,d.has(st)?v[d.get(st)]:Z.get(st)),Lt+=tt.get(st)):(tt.set(st,d.has(st)?L[d.get(st)]:Z.get(st)),Lt+=tt.get(st))}),Lt=Lt/ot.length,lt.forEach(function(st){J.has(st)||tt.set(st,Lt)})}else{var ft=0;lt.forEach(function(st){B=="horizontal"?ft+=d.has(st)?v[d.get(st)]:Z.get(st):ft+=d.has(st)?L[d.get(st)]:Z.get(st)}),ft=ft/lt.length,lt.forEach(function(st){tt.set(st,ft)})}});for(var Mt=function(){var ot=ut.shift(),Lt=U.get(ot);Lt.forEach(function(ft){if(tt.get(ft.id)st&&(st=Zt),KtXt&&(Xt=Kt)}}catch(ee){Ct=!0,$t=ee}finally{try{!Tt&&bt.return&&bt.return()}finally{if(Ct)throw $t}}var ce=(Lt+st)/2-(ft+Xt)/2,Qt=!0,jt=!1,_t=void 0;try{for(var Jt=lt[Symbol.iterator](),oe;!(Qt=(oe=Jt.next()).done);Qt=!0){var te=oe.value;tt.set(te,tt.get(te)+ce)}}catch(ee){jt=!0,_t=ee}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(jt)throw _t}}})}return tt},rt=function(U){var B=0,J=0,Z=0,at=0;if(U.forEach(function(j){j.left?v[d.get(j.left)]-v[d.get(j.right)]>=0?B++:J++:L[d.get(j.top)]-L[d.get(j.bottom)]>=0?Z++:at++}),B>J&&Z>at)for(var ct=0;ctJ)for(var nt=0;ntat)for(var tt=0;tt1)l.fixedNodeConstraint.forEach(function(b,U){E[U]=[b.position.x,b.position.y],y[U]=[v[d.get(b.nodeId)],L[d.get(b.nodeId)]]}),R=!0;else if(l.alignmentConstraint)(function(){var b=0;if(l.alignmentConstraint.vertical){for(var U=l.alignmentConstraint.vertical,B=function(tt){var j=new Set;U[tt].forEach(function(pt){j.add(pt)});var ut=new Set([].concat(f(j)).filter(function(pt){return F.has(pt)})),Mt=void 0;ut.size>0?Mt=v[d.get(ut.values().next().value)]:Mt=Q(j).x,U[tt].forEach(function(pt){E[b]=[Mt,L[d.get(pt)]],y[b]=[v[d.get(pt)],L[d.get(pt)]],b++})},J=0;J0?Mt=v[d.get(ut.values().next().value)]:Mt=Q(j).y,Z[tt].forEach(function(pt){E[b]=[v[d.get(pt)],Mt],y[b]=[v[d.get(pt)],L[d.get(pt)]],b++})},ct=0;ctV&&(V=k[et].length,Y=et);if(V0){var Et={x:0,y:0};l.fixedNodeConstraint.forEach(function(b,U){var B={x:v[d.get(b.nodeId)],y:L[d.get(b.nodeId)]},J=b.position,Z=X(J,B);Et.x+=Z.x,Et.y+=Z.y}),Et.x/=l.fixedNodeConstraint.length,Et.y/=l.fixedNodeConstraint.length,v.forEach(function(b,U){v[U]+=Et.x}),L.forEach(function(b,U){L[U]+=Et.y}),l.fixedNodeConstraint.forEach(function(b){v[d.get(b.nodeId)]=b.position.x,L[d.get(b.nodeId)]=b.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Dt=l.alignmentConstraint.vertical,Rt=function(U){var B=new Set;Dt[U].forEach(function(at){B.add(at)});var J=new Set([].concat(f(B)).filter(function(at){return F.has(at)})),Z=void 0;J.size>0?Z=v[d.get(J.values().next().value)]:Z=Q(B).x,B.forEach(function(at){F.has(at)||(v[d.get(at)]=Z)})},Ht=0;Ht0?Z=L[d.get(J.values().next().value)]:Z=Q(B).y,B.forEach(function(at){F.has(at)||(L[d.get(at)]=Z)})},Ft=0;Ft{a.exports=A})},N={};function u(a){var r=N[a];if(r!==void 0)return r.exports;var e=N[a]={exports:{}};return P[a](e,e.exports,u),e.exports}var h=u(45);return h})()})})(le)),le.exports}var pr=he.exports,De;function yr(){return De||(De=1,(function(I,D){(function(P,N){I.exports=N(vr())})(pr,function(A){return(()=>{var P={658:(a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),i=1;i{var f=(function(){function t(o,s){var c=[],l=!0,T=!1,d=void 0;try{for(var v=o[Symbol.iterator](),L;!(l=(L=v.next()).done)&&(c.push(L.value),!(s&&c.length===s));l=!0);}catch(S){T=!0,d=S}finally{try{!l&&v.return&&v.return()}finally{if(T)throw d}}return c}return function(o,s){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return t(o,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),i=e(140).layoutBase.LinkedList,g={};g.getTopMostNodes=function(t){for(var o={},s=0;s0&&R.merge(x)});for(var M=0;M1){L=d[0],S=L.connectedEdges().length,d.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),K),X},g.relocateComponent=function(t,o,s){if(!s.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,d=Number.NEGATIVE_INFINITY;if(s.quality=="draft"){var v=!0,L=!1,S=void 0;try{for(var C=o.nodeIndexes[Symbol.iterator](),G;!(v=(G=C.next()).done);v=!0){var K=G.value,X=f(K,2),Q=X[0],O=X[1],rt=s.cy.getElementById(Q);if(rt){var n=rt.boundingBox(),m=o.xCoords[O]-n.w/2,p=o.xCoords[O]+n.w/2,E=o.yCoords[O]-n.h/2,y=o.yCoords[O]+n.h/2;ml&&(l=p),Ed&&(d=y)}}}catch(x){L=!0,S=x}finally{try{!v&&C.return&&C.return()}finally{if(L)throw S}}var R=t.x-(l+c)/2,M=t.y-(d+T)/2;o.xCoords=o.xCoords.map(function(x){return x+R}),o.yCoords=o.yCoords.map(function(x){return x+M})}else{Object.keys(o).forEach(function(x){var k=o[x],V=k.getRect().x,Y=k.getRect().x+k.getRect().width,et=k.getRect().y,z=k.getRect().y+k.getRect().height;Vl&&(l=Y),etd&&(d=z)});var F=t.x-(l+c)/2,W=t.y-(d+T)/2;Object.keys(o).forEach(function(x){var k=o[x];k.setCenter(k.getCenterX()+F,k.getCenterY()+W)})}}},g.calcBoundingBox=function(t,o,s,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,L=void 0,S=void 0,C=void 0,G=void 0,K=t.descendants().not(":parent"),X=K.length,Q=0;QL&&(l=L),TC&&(d=C),v{var f=e(548),i=e(140).CoSELayout,g=e(140).CoSENode,t=e(140).layoutBase.PointD,o=e(140).layoutBase.DimensionD,s=e(140).layoutBase.LayoutConstants,c=e(140).layoutBase.FDLayoutConstants,l=e(140).CoSEConstants,T=function(v,L){var S=v.cy,C=v.eles,G=C.nodes(),K=C.edges(),X=void 0,Q=void 0,O=void 0,rt={};v.randomize&&(X=L.nodeIndexes,Q=L.xCoords,O=L.yCoords);var n=function(x){return typeof x=="function"},m=function(x,k){return n(x)?x(k):x},p=f.calcParentsWithoutChildren(S,C),E=function W(x,k,V,Y){for(var et=k.length,z=0;z0){var q=void 0;q=V.getGraphManager().add(V.newGraph(),$),W(q,H,V,Y)}}},y=function(x,k,V){for(var Y=0,et=0,z=0;z0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=Y/et:n(v.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=v.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},R=function(x,k){k.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(x.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};v.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.nestingFactor),v.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=v.gravity),v.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=v.numIter),v.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=v.gravityRange),v.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.gravityCompound),v.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.gravityRangeCompound),v.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.initialEnergyOnIncremental),v.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=v.tilingCompareBy),v.quality=="proof"?s.QUALITY=2:s.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=v.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!v.randomize,l.ANIMATE=c.ANIMATE=s.ANIMATE=v.animate,l.TILE=v.tile,l.TILING_PADDING_VERTICAL=typeof v.tilingPaddingVertical=="function"?v.tilingPaddingVertical.call():v.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof v.tilingPaddingHorizontal=="function"?v.tilingPaddingHorizontal.call():v.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!v.randomize,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=v.uniformNodeDimensions,v.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),v.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),v.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),v.step=="all"&&(v.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),v.fixedNodeConstraint||v.alignmentConstraint||v.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var M=new i,F=M.newGraphManager();return E(F.addRoot(),f.getTopMostNodes(G),M,v),y(M,F,K),R(M,v),M.runLayout(),rt};a.exports={coseLayout:T}}),212:((a,r,e)=>{var f=(function(){function v(L,S){for(var C=0;C0)if(p){var R=t.getTopMostNodes(C.eles.nodes());if(O=t.connectComponents(G,C.eles,R),O.forEach(function(vt){var it=vt.boundingBox();rt.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),C.randomize&&O.forEach(function(vt){C.eles=vt,X.push(s(C))}),C.quality=="default"||C.quality=="proof"){var M=G.collection();if(C.tile){var F=new Map,W=[],x=[],k=0,V={nodeIndexes:F,xCoords:W,yCoords:x},Y=[];if(O.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(gt,mt){M.merge(vt.nodes()[mt]),gt.isParent()||(V.nodeIndexes.set(vt.nodes()[mt].id(),k++),V.xCoords.push(vt.nodes()[0].position().x),V.yCoords.push(vt.nodes()[0].position().y))}),Y.push(it))}),M.length>1){var et=M.boundingBox();rt.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),O.push(M),X.push(V);for(var z=Y.length-1;z>=0;z--)O.splice(Y[z],1),X.splice(Y[z],1),rt.splice(Y[z],1)}}O.forEach(function(vt,it){C.eles=vt,Q.push(l(C,X[it])),t.relocateComponent(rt[it],Q[it],C)})}else O.forEach(function(vt,it){t.relocateComponent(rt[it],X[it],C)});var w=new Set;if(O.length>1){var H=[],$=K.filter(function(vt){return vt.css("display")=="none"});O.forEach(function(vt,it){var gt=void 0;if(C.quality=="draft"&&(gt=X[it].nodeIndexes),vt.nodes().not($).length>0){var mt={};mt.edges=[],mt.nodes=[];var At=void 0;vt.nodes().not($).forEach(function(Ot){if(C.quality=="draft")if(!Ot.isParent())At=gt.get(Ot.id()),mt.nodes.push({x:X[it].xCoords[At]-Ot.boundingbox().w/2,y:X[it].yCoords[At]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var Et=t.calcBoundingBox(Ot,X[it].xCoords,X[it].yCoords,gt);mt.nodes.push({x:Et.topLeftX,y:Et.topLeftY,width:Et.width,height:Et.height})}else Q[it][Ot.id()]&&mt.nodes.push({x:Q[it][Ot.id()].getLeft(),y:Q[it][Ot.id()].getTop(),width:Q[it][Ot.id()].getWidth(),height:Q[it][Ot.id()].getHeight()})}),vt.edges().forEach(function(Ot){var Et=Ot.source(),Dt=Ot.target();if(Et.css("display")!="none"&&Dt.css("display")!="none")if(C.quality=="draft"){var Rt=gt.get(Et.id()),Ht=gt.get(Dt.id()),Ut=[],Pt=[];if(Et.isParent()){var Ft=t.calcBoundingBox(Et,X[it].xCoords,X[it].yCoords,gt);Ut.push(Ft.topLeftX+Ft.width/2),Ut.push(Ft.topLeftY+Ft.height/2)}else Ut.push(X[it].xCoords[Rt]),Ut.push(X[it].yCoords[Rt]);if(Dt.isParent()){var Yt=t.calcBoundingBox(Dt,X[it].xCoords,X[it].yCoords,gt);Pt.push(Yt.topLeftX+Yt.width/2),Pt.push(Yt.topLeftY+Yt.height/2)}else Pt.push(X[it].xCoords[Ht]),Pt.push(X[it].yCoords[Ht]);mt.edges.push({startX:Ut[0],startY:Ut[1],endX:Pt[0],endY:Pt[1]})}else Q[it][Et.id()]&&Q[it][Dt.id()]&&mt.edges.push({startX:Q[it][Et.id()].getCenterX(),startY:Q[it][Et.id()].getCenterY(),endX:Q[it][Dt.id()].getCenterX(),endY:Q[it][Dt.id()].getCenterY()})}),mt.nodes.length>0&&(H.push(mt),w.add(it))}});var _=m.packComponents(H,C.randomize).shifts;if(C.quality=="draft")X.forEach(function(vt,it){var gt=vt.xCoords.map(function(At){return At+_[it].dx}),mt=vt.yCoords.map(function(At){return At+_[it].dy});vt.xCoords=gt,vt.yCoords=mt});else{var ht=0;w.forEach(function(vt){Object.keys(Q[vt]).forEach(function(it){var gt=Q[vt][it];gt.setCenter(gt.getCenterX()+_[ht].dx,gt.getCenterY()+_[ht].dy)}),ht++})}}}else{var E=C.eles.boundingBox();if(rt.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),C.randomize){var y=s(C);X.push(y)}C.quality=="default"||C.quality=="proof"?(Q.push(l(C,X[0])),t.relocateComponent(rt[0],Q[0],C)):t.relocateComponent(rt[0],X[0],C)}var q=function(it,gt){if(C.quality=="default"||C.quality=="proof"){typeof it=="number"&&(it=gt);var mt=void 0,At=void 0,Ot=it.data("id");return Q.forEach(function(Dt){Ot in Dt&&(mt={x:Dt[Ot].getRect().getCenterX(),y:Dt[Ot].getRect().getCenterY()},At=Dt[Ot])}),C.nodeDimensionsIncludeLabels&&(At.labelWidth&&(At.labelPosHorizontal=="left"?mt.x+=At.labelWidth/2:At.labelPosHorizontal=="right"&&(mt.x-=At.labelWidth/2)),At.labelHeight&&(At.labelPosVertical=="top"?mt.y+=At.labelHeight/2:At.labelPosVertical=="bottom"&&(mt.y-=At.labelHeight/2))),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}else{var Et=void 0;return X.forEach(function(Dt){var Rt=Dt.nodeIndexes.get(it.id());Rt!=null&&(Et={x:Dt.xCoords[Rt],y:Dt.yCoords[Rt]})}),Et==null&&(Et={x:it.position("x"),y:it.position("y")}),{x:Et.x,y:Et.y}}};if(C.quality=="default"||C.quality=="proof"||C.randomize){var It=t.calcParentsWithoutChildren(G,K),Nt=K.filter(function(vt){return vt.css("display")=="none"});C.eles=K.not(Nt),K.nodes().not(":parent").not(Nt).layoutPositions(S,C,q),It.length>0&&It.forEach(function(vt){vt.position(q(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),v})();a.exports=d}),657:((a,r,e)=>{var f=e(548),i=e(140).layoutBase.Matrix,g=e(140).layoutBase.SVD,t=function(s){var c=s.cy,l=s.eles,T=l.nodes(),d=l.nodes(":parent"),v=new Map,L=new Map,S=new Map,C=[],G=[],K=[],X=[],Q=[],O=[],rt=[],n=[],m=void 0,p=1e8,E=1e-9,y=s.piTol,R=s.samplingType,M=s.nodeSeparation,F=void 0,W=function(){for(var U=0,B=0,J=!1;B=at;){nt=Z[at++];for(var xt=C[nt],lt=0;ltut&&(ut=Q[Lt],Mt=Lt)}return Mt},k=function(U){var B=void 0;if(U){B=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var pt=0;pt=1)break;j=tt}for(var lt=0;lt0&&(B.isParent()?C[U].push(S.get(B.id())):C[U].push(B.id()))})});var Nt=function(U){var B=L.get(U),J=void 0;v.get(U).forEach(function(Z){c.getElementById(Z).isParent()?J=S.get(Z):J=Z,C[B].push(J),C[L.get(J)].push(U)})},vt=!0,it=!1,gt=void 0;try{for(var mt=v.keys()[Symbol.iterator](),At;!(vt=(At=mt.next()).done);vt=!0){var Ot=At.value;Nt(Ot)}}catch(b){it=!0,gt=b}finally{try{!vt&&mt.return&&mt.return()}finally{if(it)throw gt}}m=L.size;var Et=void 0;if(m>2){F=m{var f=e(212),i=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&i(cytoscape),a.exports=i}),140:(a=>{a.exports=A})},N={};function u(a){var r=N[a];if(r!==void 0)return r.exports;var e=N[a]={exports:{}};return P[a](e,e.exports,u),e.exports}var h=u(579);return h})()})})(he)),he.exports}var Er=yr();const mr=Ze(Er);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:dt(I=>`${I},${I/2} 0,${I} 0,0`,"L"),R:dt(I=>`0,${I/2} ${I},0 ${I},${I}`,"R"),T:dt(I=>`0,0 ${I},0 ${I/2},${I}`,"T"),B:dt(I=>`${I/2},0 ${I},${I} 0,${I}`,"B")},se={L:dt((I,D)=>I-D+2,"L"),R:dt((I,D)=>I-2,"R"),T:dt((I,D)=>I-D+2,"T"),B:dt((I,D)=>I-2,"B")},Tr=dt(function(I){return Wt(I)?I==="L"?"R":"L":I==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=dt(function(I){const D=I;return D==="L"||D==="R"||D==="T"||D==="B"},"isArchitectureDirection"),Wt=dt(function(I){const D=I;return D==="L"||D==="R"},"isArchitectureDirectionX"),qt=dt(function(I){const D=I;return D==="T"||D==="B"},"isArchitectureDirectionY"),Te=dt(function(I,D){const A=Wt(I)&&qt(D),P=qt(I)&&Wt(D);return A||P},"isArchitectureDirectionXY"),Nr=dt(function(I){const D=I[0],A=I[1],P=Wt(D)&&qt(A),N=qt(D)&&Wt(A);return P||N},"isArchitecturePairXY"),Lr=dt(function(I){return I!=="LL"&&I!=="RR"&&I!=="TT"&&I!=="BB"},"isValidArchitectureDirectionPair"),ye=dt(function(I,D){const A=`${I}${D}`;return Lr(A)?A:void 0},"getArchitectureDirectionPair"),Cr=dt(function([I,D],A){const P=A[0],N=A[1];return Wt(P)?qt(N)?[I+(P==="L"?-1:1),D+(N==="T"?1:-1)]:[I+(P==="L"?-1:1),D]:Wt(N)?[I+(N==="L"?1:-1),D+(P==="T"?1:-1)]:[I,D+(P==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Ar=dt(function(I){return I==="LT"||I==="TL"?[1,1]:I==="BL"||I==="LB"?[1,-1]:I==="BR"||I==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Mr=dt(function(I,D){return Te(I,D)?"bend":Wt(I)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),wr=dt(function(I){return I.type==="service"},"isArchitectureService"),Or=dt(function(I){return I.type==="junction"},"isArchitectureJunction"),be=dt(I=>I.data(),"edgeData"),ie=dt(I=>I.data(),"nodeData"),Dr=ir.architecture,ae,Pe=(ae=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=Qe,this.getAccTitle=Je,this.setDiagramTitle=Ke,this.getDiagramTitle=je,this.getAccDescription=_e,this.setAccDescription=tr,this.clear()}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},er()}addService({id:D,icon:A,in:P,title:N,iconText:u}){if(this.registeredIds[D]!==void 0)throw new Error(`The service id [${D}] is already in use by another ${this.registeredIds[D]}`);if(P!==void 0){if(D===P)throw new Error(`The service [${D}] cannot be placed within itself`);if(this.registeredIds[P]===void 0)throw new Error(`The service [${D}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[P]==="node")throw new Error(`The service [${D}]'s parent is not a group`)}this.registeredIds[D]="node",this.nodes[D]={id:D,type:"service",icon:A,iconText:u,title:N,edges:[],in:P}}getServices(){return Object.values(this.nodes).filter(wr)}addJunction({id:D,in:A}){this.registeredIds[D]="node",this.nodes[D]={id:D,type:"junction",edges:[],in:A}}getJunctions(){return Object.values(this.nodes).filter(Or)}getNodes(){return Object.values(this.nodes)}getNode(D){return this.nodes[D]??null}addGroup({id:D,icon:A,in:P,title:N}){var u,h,a;if(((u=this.registeredIds)==null?void 0:u[D])!==void 0)throw new Error(`The group id [${D}] is already in use by another ${this.registeredIds[D]}`);if(P!==void 0){if(D===P)throw new Error(`The group [${D}] cannot be placed within itself`);if(((h=this.registeredIds)==null?void 0:h[P])===void 0)throw new Error(`The group [${D}]'s parent does not exist. Please make sure the parent is created before this group`);if(((a=this.registeredIds)==null?void 0:a[P])==="node")throw new Error(`The group [${D}]'s parent is not a group`)}this.registeredIds[D]="group",this.groups[D]={id:D,icon:A,title:N,in:P}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:D,rhsId:A,lhsDir:P,rhsDir:N,lhsInto:u,rhsInto:h,lhsGroup:a,rhsGroup:r,title:e}){if(!Re(P))throw new Error(`Invalid direction given for left hand side of edge ${D}--${A}. Expected (L,R,T,B) got ${String(P)}`);if(!Re(N))throw new Error(`Invalid direction given for right hand side of edge ${D}--${A}. Expected (L,R,T,B) got ${String(N)}`);if(this.nodes[D]===void 0&&this.groups[D]===void 0)throw new Error(`The left-hand id [${D}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[A]===void 0&&this.groups[A]===void 0)throw new Error(`The right-hand id [${A}] does not yet exist. Please create the service/group before declaring an edge to it.`);const f=this.nodes[D].in,i=this.nodes[A].in;if(a&&f&&i&&f==i)throw new Error(`The left-hand id [${D}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(r&&f&&i&&f==i)throw new Error(`The right-hand id [${A}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const g={lhsId:D,lhsDir:P,lhsInto:u,lhsGroup:a,rhsId:A,rhsDir:N,rhsInto:h,rhsGroup:r,title:e};this.edges.push(g),this.nodes[D]&&this.nodes[A]&&(this.nodes[D].edges.push(this.edges[this.edges.length-1]),this.nodes[A].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const D={},A=Object.entries(this.nodes).reduce((r,[e,f])=>(r[e]=f.edges.reduce((i,g)=>{var s,c;const t=(s=this.getNode(g.lhsId))==null?void 0:s.in,o=(c=this.getNode(g.rhsId))==null?void 0:c.in;if(t&&o&&t!==o){const l=Mr(g.lhsDir,g.rhsDir);l!=="bend"&&(D[t]??(D[t]={}),D[t][o]=l,D[o]??(D[o]={}),D[o][t]=l)}if(g.lhsId===e){const l=ye(g.lhsDir,g.rhsDir);l&&(i[l]=g.rhsId)}else{const l=ye(g.rhsDir,g.lhsDir);l&&(i[l]=g.lhsId)}return i},{}),r),{}),P=Object.keys(A)[0],N={[P]:1},u=Object.keys(A).reduce((r,e)=>e===P?r:{...r,[e]:1},{}),h=dt(r=>{const e={[r]:[0,0]},f=[r];for(;f.length>0;){const i=f.shift();if(i){N[i]=1,delete u[i];const g=A[i],[t,o]=e[i];Object.entries(g).forEach(([s,c])=>{N[c]||(e[c]=Cr([t,o],s),f.push(c))})}}return e},"BFS"),a=[h(P)];for(;Object.keys(u).length>0;)a.push(h(Object.keys(u)[0]));this.dataStructures={adjList:A,spatialMaps:a,groupAlignments:D}}return this.dataStructures}setElementForId(D,A){this.elements[D]=A}getElementById(D){return this.elements[D]}getConfig(){return rr({...Dr,...ar().architecture})}getConfigField(D){return this.getConfig()[D]}},dt(ae,"ArchitectureDB"),ae),xr=dt((I,D)=>{fr(I,D),I.groups.map(A=>D.addGroup(A)),I.services.map(A=>D.addService({...A,type:"service"})),I.junctions.map(A=>D.addJunction({...A,type:"junction"})),I.edges.map(A=>D.addEdge(A))},"populateDb"),Ge={parser:{yy:void 0},parse:dt(async I=>{var P;const D=await cr("architecture",I);Se.debug(D);const A=(P=Ge.parser)==null?void 0:P.yy;if(!(A instanceof Pe))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");xr(D,A)},"parse")},Ir=dt(I=>` +import{aM as Ze,_ as dt,H as ke,V as qe,l as Se,b as Qe,a as Je,p as Ke,q as je,g as _e,s as tr,y as er,D as rr,E as ir,F as ar,c as Ee,am as me,aN as pe,i as nr,d as or,x as sr,aO as hr,aP as lr}from"./index-CnXIpKtg.js";import{p as fr}from"./chunk-4BX2VUAB-De0wsjr9.js";import{p as cr}from"./treemap-GDKQZRPO-DwNuPoGC.js";import{c as Fe}from"./cytoscape.esm-BQaXIfA_.js";import"./_baseUniq-Dg6PvSCo.js";import"./_basePickBy-BzYxueAG.js";import"./clone-z69nb1L5.js";var he={exports:{}},le={exports:{}},fe={exports:{}},gr=fe.exports,we;function ur(){return we||(we=1,(function(I,D){(function(P,N){I.exports=N()})(gr,function(){return(function(A){var P={};function N(u){if(P[u])return P[u].exports;var h=P[u]={i:u,l:!1,exports:{}};return A[u].call(h.exports,h,h.exports,N),h.l=!0,h.exports}return N.m=A,N.c=P,N.i=function(u){return u},N.d=function(u,h,a){N.o(u,h)||Object.defineProperty(u,h,{configurable:!1,enumerable:!0,get:a})},N.n=function(u){var h=u&&u.__esModule?function(){return u.default}:function(){return u};return N.d(h,"a",h),h},N.o=function(u,h){return Object.prototype.hasOwnProperty.call(u,h)},N.p="",N(N.s=28)})([(function(A,P,N){function u(){}u.QUALITY=1,u.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,u.DEFAULT_INCREMENTAL=!1,u.DEFAULT_ANIMATION_ON_LAYOUT=!0,u.DEFAULT_ANIMATION_DURING_LAYOUT=!1,u.DEFAULT_ANIMATION_PERIOD=50,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,u.DEFAULT_GRAPH_MARGIN=15,u.NODE_DIMENSIONS_INCLUDE_LABELS=!1,u.SIMPLE_NODE_SIZE=40,u.SIMPLE_NODE_HALF_SIZE=u.SIMPLE_NODE_SIZE/2,u.EMPTY_COMPOUND_NODE_SIZE=40,u.MIN_EDGE_LENGTH=1,u.WORLD_BOUNDARY=1e6,u.INITIAL_WORLD_BOUNDARY=u.WORLD_BOUNDARY/1e3,u.WORLD_CENTER_X=1200,u.WORLD_CENTER_Y=900,A.exports=u}),(function(A,P,N){var u=N(2),h=N(8),a=N(9);function r(f,i,g){u.call(this,g),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=g,this.bendpoints=[],this.source=f,this.target=i}r.prototype=Object.create(u.prototype);for(var e in u)r[e]=u[e];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,i){for(var g=this.getOtherEnd(f),t=i.getGraphManager().getRoot();;){if(g.getOwner()==i)return g;if(g.getOwner()==t)break;g=g.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=h.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},A.exports=r}),(function(A,P,N){function u(h){this.vGraphObject=h}A.exports=u}),(function(A,P,N){var u=N(2),h=N(10),a=N(13),r=N(0),e=N(16),f=N(5);function i(t,o,s,c){s==null&&c==null&&(c=o),u.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=h.MIN_VALUE,this.inclusionTreeDepth=h.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,s!=null&&o!=null?this.rect=new a(o.x,o.y,s.width,s.height):this.rect=new a}i.prototype=Object.create(u.prototype);for(var g in u)i[g]=u[g];i.prototype.getEdges=function(){return this.edges},i.prototype.getChild=function(){return this.child},i.prototype.getOwner=function(){return this.owner},i.prototype.getWidth=function(){return this.rect.width},i.prototype.setWidth=function(t){this.rect.width=t},i.prototype.getHeight=function(){return this.rect.height},i.prototype.setHeight=function(t){this.rect.height=t},i.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},i.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},i.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},i.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},i.prototype.getRect=function(){return this.rect},i.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},i.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},i.prototype.setRect=function(t,o){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=o.width,this.rect.height=o.height},i.prototype.setCenter=function(t,o){this.rect.x=t-this.rect.width/2,this.rect.y=o-this.rect.height/2},i.prototype.setLocation=function(t,o){this.rect.x=t,this.rect.y=o},i.prototype.moveBy=function(t,o){this.rect.x+=t,this.rect.y+=o},i.prototype.getEdgeListToNode=function(t){var o=[],s=this;return s.edges.forEach(function(c){if(c.target==t){if(c.source!=s)throw"Incorrect edge source!";o.push(c)}}),o},i.prototype.getEdgesBetween=function(t){var o=[],s=this;return s.edges.forEach(function(c){if(!(c.source==s||c.target==s))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&o.push(c)}),o},i.prototype.getNeighborsList=function(){var t=new Set,o=this;return o.edges.forEach(function(s){if(s.source==o)t.add(s.target);else{if(s.target!=o)throw"Incorrect incidency!";t.add(s.source)}}),t},i.prototype.withChildren=function(){var t=new Set,o,s;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),l=0;lo?(this.rect.x-=(this.labelWidth-o)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(o+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(s+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>s?(this.rect.y-=(this.labelHeight-s)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(s+this.labelHeight))}}},i.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==h.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},i.prototype.transform=function(t){var o=this.rect.x;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var s=this.rect.y;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var c=new f(o,s),l=t.inverseTransformPoint(c);this.setLocation(l.x,l.y)},i.prototype.getLeft=function(){return this.rect.x},i.prototype.getRight=function(){return this.rect.x+this.rect.width},i.prototype.getTop=function(){return this.rect.y},i.prototype.getBottom=function(){return this.rect.y+this.rect.height},i.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},A.exports=i}),(function(A,P,N){var u=N(0);function h(){}for(var a in u)h[a]=u[a];h.MAX_ITERATIONS=2500,h.DEFAULT_EDGE_LENGTH=50,h.DEFAULT_SPRING_STRENGTH=.45,h.DEFAULT_REPULSION_STRENGTH=4500,h.DEFAULT_GRAVITY_STRENGTH=.4,h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,h.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,h.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,h.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,h.COOLING_ADAPTATION_FACTOR=.33,h.ADAPTATION_LOWER_NODE_LIMIT=1e3,h.ADAPTATION_UPPER_NODE_LIMIT=5e3,h.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,h.MAX_NODE_DISPLACEMENT=h.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,h.MIN_REPULSION_DIST=h.DEFAULT_EDGE_LENGTH/10,h.CONVERGENCE_CHECK_PERIOD=100,h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,h.MIN_EDGE_LENGTH=1,h.GRID_CALCULATION_CHECK_PERIOD=10,A.exports=h}),(function(A,P,N){function u(h,a){h==null&&a==null?(this.x=0,this.y=0):(this.x=h,this.y=a)}u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(h){this.x=h},u.prototype.setY=function(h){this.y=h},u.prototype.getDifference=function(h){return new DimensionD(this.x-h.x,this.y-h.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(h){return this.x+=h.width,this.y+=h.height,this},A.exports=u}),(function(A,P,N){var u=N(2),h=N(10),a=N(0),r=N(7),e=N(3),f=N(1),i=N(13),g=N(12),t=N(11);function o(c,l,T){u.call(this,T),this.estimatedSize=h.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,l!=null&&l instanceof r?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}o.prototype=Object.create(u.prototype);for(var s in u)o[s]=u[s];o.prototype.getNodes=function(){return this.nodes},o.prototype.getEdges=function(){return this.edges},o.prototype.getGraphManager=function(){return this.graphManager},o.prototype.getParent=function(){return this.parent},o.prototype.getLeft=function(){return this.left},o.prototype.getRight=function(){return this.right},o.prototype.getTop=function(){return this.top},o.prototype.getBottom=function(){return this.bottom},o.prototype.isConnected=function(){return this.isConnected},o.prototype.add=function(c,l,T){if(l==null&&T==null){var d=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(d)>-1)throw"Node already in graph!";return d.owner=this,this.getNodes().push(d),d}else{var v=c;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(l.owner==T.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=T.owner?null:(v.source=l,v.target=T,v.isInterGraph=!1,this.getEdges().push(v),l.edges.push(v),T!=l&&T.edges.push(v),v)}},o.prototype.remove=function(c){var l=c;if(c instanceof e){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=l.edges.slice(),d,v=T.length,L=0;L-1&&G>-1))throw"Source and/or target doesn't know this edge!";d.source.edges.splice(C,1),d.target!=d.source&&d.target.edges.splice(G,1);var S=d.source.owner.getEdges().indexOf(d);if(S==-1)throw"Not in owner's edge list!";d.source.owner.getEdges().splice(S,1)}},o.prototype.updateLeftTop=function(){for(var c=h.MAX_VALUE,l=h.MAX_VALUE,T,d,v,L=this.getNodes(),S=L.length,C=0;CT&&(c=T),l>d&&(l=d)}return c==h.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?v=L[0].getParent().paddingLeft:v=this.margin,this.left=l-v,this.top=c-v,new g(this.left,this.top))},o.prototype.updateBounds=function(c){for(var l=h.MAX_VALUE,T=-h.MAX_VALUE,d=h.MAX_VALUE,v=-h.MAX_VALUE,L,S,C,G,K,X=this.nodes,Q=X.length,O=0;OL&&(l=L),TC&&(d=C),vL&&(l=L),TC&&(d=C),v=this.nodes.length){var Q=0;T.forEach(function(O){O.owner==c&&Q++}),Q==this.nodes.length&&(this.isConnected=!0)}},A.exports=o}),(function(A,P,N){var u,h=N(1);function a(r){u=N(6),this.layout=r,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var r=this.layout.newGraph(),e=this.layout.newNode(null),f=this.add(r,e);return this.setRootGraph(f),this.rootGraph},a.prototype.add=function(r,e,f,i,g){if(f==null&&i==null&&g==null){if(r==null)throw"Graph is null!";if(e==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(e.child!=null)throw"Already has a child!";return r.parent=e,e.child=r,r}else{g=f,i=e,f=r;var t=i.getOwner(),o=g.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(o!=null&&o.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==o)return f.isInterGraph=!1,t.add(f,i,g);if(f.isInterGraph=!0,f.source=i,f.target=g,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},a.prototype.remove=function(r){if(r instanceof u){var e=r;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(e==this.rootGraph||e.parent!=null&&e.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(e.getEdges());for(var i,g=f.length,t=0;t=r.getRight()?e[0]+=Math.min(r.getX()-a.getX(),a.getRight()-r.getRight()):r.getX()<=a.getX()&&r.getRight()>=a.getRight()&&(e[0]+=Math.min(a.getX()-r.getX(),r.getRight()-a.getRight())),a.getY()<=r.getY()&&a.getBottom()>=r.getBottom()?e[1]+=Math.min(r.getY()-a.getY(),a.getBottom()-r.getBottom()):r.getY()<=a.getY()&&r.getBottom()>=a.getBottom()&&(e[1]+=Math.min(a.getY()-r.getY(),r.getBottom()-a.getBottom()));var g=Math.abs((r.getCenterY()-a.getCenterY())/(r.getCenterX()-a.getCenterX()));r.getCenterY()===a.getCenterY()&&r.getCenterX()===a.getCenterX()&&(g=1);var t=g*e[0],o=e[1]/g;e[0]t)return e[0]=f,e[1]=s,e[2]=g,e[3]=X,!1;if(ig)return e[0]=o,e[1]=i,e[2]=G,e[3]=t,!1;if(fg?(e[0]=l,e[1]=T,n=!0):(e[0]=c,e[1]=s,n=!0):p===y&&(f>g?(e[0]=o,e[1]=s,n=!0):(e[0]=d,e[1]=T,n=!0)),-E===y?g>f?(e[2]=K,e[3]=X,m=!0):(e[2]=G,e[3]=C,m=!0):E===y&&(g>f?(e[2]=S,e[3]=C,m=!0):(e[2]=Q,e[3]=X,m=!0)),n&&m)return!1;if(f>g?i>t?(R=this.getCardinalDirection(p,y,4),M=this.getCardinalDirection(E,y,2)):(R=this.getCardinalDirection(-p,y,3),M=this.getCardinalDirection(-E,y,1)):i>t?(R=this.getCardinalDirection(-p,y,1),M=this.getCardinalDirection(-E,y,3)):(R=this.getCardinalDirection(p,y,2),M=this.getCardinalDirection(E,y,4)),!n)switch(R){case 1:W=s,F=f+-L/y,e[0]=F,e[1]=W;break;case 2:F=d,W=i+v*y,e[0]=F,e[1]=W;break;case 3:W=T,F=f+L/y,e[0]=F,e[1]=W;break;case 4:F=l,W=i+-v*y,e[0]=F,e[1]=W;break}if(!m)switch(M){case 1:k=C,x=g+-rt/y,e[2]=x,e[3]=k;break;case 2:x=Q,k=t+O*y,e[2]=x,e[3]=k;break;case 3:k=X,x=g+rt/y,e[2]=x,e[3]=k;break;case 4:x=K,k=t+-O*y,e[2]=x,e[3]=k;break}}return!1},h.getCardinalDirection=function(a,r,e){return a>r?e:1+e%4},h.getIntersection=function(a,r,e,f){if(f==null)return this.getIntersection2(a,r,e);var i=a.x,g=a.y,t=r.x,o=r.y,s=e.x,c=e.y,l=f.x,T=f.y,d=void 0,v=void 0,L=void 0,S=void 0,C=void 0,G=void 0,K=void 0,X=void 0,Q=void 0;return L=o-g,C=i-t,K=t*g-i*o,S=T-c,G=s-l,X=l*c-s*T,Q=L*G-S*C,Q===0?null:(d=(C*X-G*K)/Q,v=(S*K-L*X)/Q,new u(d,v))},h.angleOfVector=function(a,r,e,f){var i=void 0;return a!==e?(i=Math.atan((f-r)/(e-a)),e=0){var T=(-s+Math.sqrt(s*s-4*o*c))/(2*o),d=(-s-Math.sqrt(s*s-4*o*c))/(2*o),v=null;return T>=0&&T<=1?[T]:d>=0&&d<=1?[d]:v}else return null},h.HALF_PI=.5*Math.PI,h.ONE_AND_HALF_PI=1.5*Math.PI,h.TWO_PI=2*Math.PI,h.THREE_PI=3*Math.PI,A.exports=h}),(function(A,P,N){function u(){}u.sign=function(h){return h>0?1:h<0?-1:0},u.floor=function(h){return h<0?Math.ceil(h):Math.floor(h)},u.ceil=function(h){return h<0?Math.floor(h):Math.ceil(h)},A.exports=u}),(function(A,P,N){function u(){}u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,A.exports=u}),(function(A,P,N){var u=(function(){function i(g,t){for(var o=0;o"u"?"undefined":u(a);return a==null||r!="object"&&r!="function"},A.exports=h}),(function(A,P,N){function u(s){if(Array.isArray(s)){for(var c=0,l=Array(s.length);c0&&c;){for(L.push(C[0]);L.length>0&&c;){var G=L[0];L.splice(0,1),v.add(G);for(var K=G.getEdges(),d=0;d-1&&C.splice(rt,1)}v=new Set,S=new Map}}return s},o.prototype.createDummyNodesForBendpoints=function(s){for(var c=[],l=s.source,T=this.graphManager.calcLowestCommonAncestor(s.source,s.target),d=0;d0){for(var T=this.edgeToDummyNodes.get(l),d=0;d=0&&c.splice(X,1);var Q=S.getNeighborsList();Q.forEach(function(n){if(l.indexOf(n)<0){var m=T.get(n),p=m-1;p==1&&G.push(n),T.set(n,p)}})}l=l.concat(G),(c.length==1||c.length==2)&&(d=!0,v=c[0])}return v},o.prototype.setGraphManager=function(s){this.graphManager=s},A.exports=o}),(function(A,P,N){function u(){}u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},A.exports=u}),(function(A,P,N){var u=N(5);function h(a,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}h.prototype.getWorldOrgX=function(){return this.lworldOrgX},h.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},h.prototype.getWorldOrgY=function(){return this.lworldOrgY},h.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},h.prototype.getWorldExtX=function(){return this.lworldExtX},h.prototype.setWorldExtX=function(a){this.lworldExtX=a},h.prototype.getWorldExtY=function(){return this.lworldExtY},h.prototype.setWorldExtY=function(a){this.lworldExtY=a},h.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},h.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},h.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},h.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},h.prototype.getDeviceExtX=function(){return this.ldeviceExtX},h.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},h.prototype.getDeviceExtY=function(){return this.ldeviceExtY},h.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},h.prototype.transformX=function(a){var r=0,e=this.lworldExtX;return e!=0&&(r=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/e),r},h.prototype.transformY=function(a){var r=0,e=this.lworldExtY;return e!=0&&(r=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/e),r},h.prototype.inverseTransformX=function(a){var r=0,e=this.ldeviceExtX;return e!=0&&(r=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/e),r},h.prototype.inverseTransformY=function(a){var r=0,e=this.ldeviceExtY;return e!=0&&(r=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/e),r},h.prototype.inverseTransformPoint=function(a){var r=new u(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return r},A.exports=h}),(function(A,P,N){function u(t){if(Array.isArray(t)){for(var o=0,s=Array(t.length);oa.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},i.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),o,s=0;s0&&arguments[0]!==void 0?arguments[0]:!0,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,c,l,T,d=this.getAllNodes(),v;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),v=new Set,s=0;sL||v>L)&&(t.gravitationForceX=-this.gravityConstant*l,t.gravitationForceY=-this.gravityConstant*T)):(L=o.getEstimatedSize()*this.compoundGravityRangeFactor,(d>L||v>L)&&(t.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},i.prototype.isConverged=function(){var t,o=!1;return this.totalIterations>this.maxIterations/3&&(o=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement=d.length||L>=d[0].length)){for(var S=0;Si}}]),e})();A.exports=r}),(function(A,P,N){function u(){}u.svd=function(h){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=h.length,this.n=h[0].length;var a=Math.min(this.m,this.n);this.s=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Tt){var Ct=function $t(bt){if(bt.length==0)return 0;for(var zt=[],St=0;St0;)Ct.push(0);return Ct})(this.n),e=(function(Tt){for(var Ct=[];Tt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,i=Math.min(this.m-1,this.n),g=Math.max(0,Math.min(this.n-2,this.m)),t=0;t=0;E--)if(this.s[E]!==0){for(var y=E+1;y=0;V--){if((function(Tt,Ct){return Tt&&Ct})(V0;){var q=void 0,It=void 0;for(q=n-2;q>=-1&&q!==-1;q--)if(Math.abs(r[q])<=ht+_*(Math.abs(this.s[q])+Math.abs(this.s[q+1]))){r[q]=0;break}if(q===n-2)It=4;else{var Nt=void 0;for(Nt=n-1;Nt>=q&&Nt!==q;Nt--){var vt=(Nt!==n?Math.abs(r[Nt]):0)+(Nt!==q+1?Math.abs(r[Nt-1]):0);if(Math.abs(this.s[Nt])<=ht+_*vt){this.s[Nt]=0;break}}Nt===q?It=3:Nt===n-1?It=1:(It=2,q=Nt)}switch(q++,It){case 1:{var it=r[n-2];r[n-2]=0;for(var gt=n-2;gt>=q;gt--){var mt=u.hypot(this.s[gt],it),At=this.s[gt]/mt,Ot=it/mt;this.s[gt]=mt,gt!==q&&(it=-Ot*r[gt-1],r[gt-1]=At*r[gt-1]);for(var Et=0;Et=this.s[q+1]);){var Lt=this.s[q];if(this.s[q]=this.s[q+1],this.s[q+1]=Lt,qMath.abs(a)?(r=a/h,r=Math.abs(h)*Math.sqrt(1+r*r)):a!=0?(r=h/a,r=Math.abs(a)*Math.sqrt(1+r*r)):r=0,r},A.exports=u}),(function(A,P,N){var u=(function(){function r(e,f){for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:1,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;h(this,r),this.sequence1=e,this.sequence2=f,this.match_score=i,this.mismatch_penalty=g,this.gap_penalty=t,this.iMax=e.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var o=0;o=0;e--){var f=this.listeners[e];f.event===a&&f.callback===r&&this.listeners.splice(e,1)}},h.emit=function(a,r){for(var e=0;e{var P={45:((a,r,e)=>{var f={};f.layoutBase=e(551),f.CoSEConstants=e(806),f.CoSEEdge=e(767),f.CoSEGraph=e(880),f.CoSEGraphManager=e(578),f.CoSELayout=e(765),f.CoSENode=e(991),f.ConstraintHandler=e(902),a.exports=f}),806:((a,r,e)=>{var f=e(551).FDLayoutConstants;function i(){}for(var g in f)i[g]=f[g];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,i.ENFORCE_CONSTRAINTS=!0,i.APPLY_LAYOUT=!0,i.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,i.TREE_REDUCTION_ON_INCREMENTAL=!0,i.PURE_INCREMENTAL=i.DEFAULT_INCREMENTAL,a.exports=i}),767:((a,r,e)=>{var f=e(551).FDLayoutEdge;function i(t,o,s){f.call(this,t,o,s)}i.prototype=Object.create(f.prototype);for(var g in f)i[g]=f[g];a.exports=i}),880:((a,r,e)=>{var f=e(551).LGraph;function i(t,o,s){f.call(this,t,o,s)}i.prototype=Object.create(f.prototype);for(var g in f)i[g]=f[g];a.exports=i}),578:((a,r,e)=>{var f=e(551).LGraphManager;function i(t){f.call(this,t)}i.prototype=Object.create(f.prototype);for(var g in f)i[g]=f[g];a.exports=i}),765:((a,r,e)=>{var f=e(551).FDLayout,i=e(578),g=e(880),t=e(991),o=e(767),s=e(806),c=e(902),l=e(551).FDLayoutConstants,T=e(551).LayoutConstants,d=e(551).Point,v=e(551).PointD,L=e(551).DimensionD,S=e(551).Layout,C=e(551).Integer,G=e(551).IGeometry,K=e(551).LGraph,X=e(551).Transform,Q=e(551).LinkedList;function O(){f.call(this),this.toBeTiled={},this.constraints={}}O.prototype=Object.create(f.prototype);for(var rt in f)O[rt]=f[rt];O.prototype.newGraphManager=function(){var n=new i(this);return this.graphManager=n,n},O.prototype.newGraph=function(n){return new g(null,this.graphManager,n)},O.prototype.newNode=function(n){return new t(this.graphManager,n)},O.prototype.newEdge=function(n){return new o(null,null,n)},O.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(s.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=s.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=s.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},O.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},O.prototype.layout=function(){var n=T.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},O.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(s.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(R){return m.has(R)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(E){return m.has(E)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),s.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},O.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),s.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),s.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,E=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,E),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},O.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),m={},p=0;p0&&this.updateDisplacements();for(var p=0;p0&&(E.fixedNodeWeight=R)}}if(this.constraints.relativePlacementConstraint){var M=new Map,F=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(w){n.fixedNodesOnHorizontal.add(w),n.fixedNodesOnVertical.add(w)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var W=this.constraints.alignmentConstraint.vertical,p=0;p=2*w.length/3;_--)H=Math.floor(Math.random()*(_+1)),$=w[_],w[_]=w[H],w[H]=$;return w},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(w){if(w.left){var H=M.has(w.left)?M.get(w.left):w.left,$=M.has(w.right)?M.get(w.right):w.right;n.nodesInRelativeHorizontal.includes(H)||(n.nodesInRelativeHorizontal.push(H),n.nodeToRelativeConstraintMapHorizontal.set(H,[]),n.dummyToNodeForVerticalAlignment.has(H)?n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(H,n.idToNodeMap.get(H).getCenterX())),n.nodesInRelativeHorizontal.includes($)||(n.nodesInRelativeHorizontal.push($),n.nodeToRelativeConstraintMapHorizontal.set($,[]),n.dummyToNodeForVerticalAlignment.has($)?n.nodeToTempPositionMapHorizontal.set($,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get($)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set($,n.idToNodeMap.get($).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(H).push({right:$,gap:w.gap}),n.nodeToRelativeConstraintMapHorizontal.get($).push({left:H,gap:w.gap})}else{var _=F.has(w.top)?F.get(w.top):w.top,ht=F.has(w.bottom)?F.get(w.bottom):w.bottom;n.nodesInRelativeVertical.includes(_)||(n.nodesInRelativeVertical.push(_),n.nodeToRelativeConstraintMapVertical.set(_,[]),n.dummyToNodeForHorizontalAlignment.has(_)?n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(_)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(_,n.idToNodeMap.get(_).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(_).push({bottom:ht,gap:w.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:_,gap:w.gap})}});else{var k=new Map,V=new Map;this.constraints.relativePlacementConstraint.forEach(function(w){if(w.left){var H=M.has(w.left)?M.get(w.left):w.left,$=M.has(w.right)?M.get(w.right):w.right;k.has(H)?k.get(H).push($):k.set(H,[$]),k.has($)?k.get($).push(H):k.set($,[H])}else{var _=F.has(w.top)?F.get(w.top):w.top,ht=F.has(w.bottom)?F.get(w.bottom):w.bottom;V.has(_)?V.get(_).push(ht):V.set(_,[ht]),V.has(ht)?V.get(ht).push(_):V.set(ht,[_])}});var Y=function(H,$){var _=[],ht=[],q=new Q,It=new Set,Nt=0;return H.forEach(function(vt,it){if(!It.has(it)){_[Nt]=[],ht[Nt]=!1;var gt=it;for(q.push(gt),It.add(gt),_[Nt].push(gt);q.length!=0;){gt=q.shift(),$.has(gt)&&(ht[Nt]=!0);var mt=H.get(gt);mt.forEach(function(At){It.has(At)||(q.push(At),It.add(At),_[Nt].push(At))})}Nt++}}),{components:_,isFixed:ht}},et=Y(k,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=et.components,this.fixedComponentsOnHorizontal=et.isFixed;var z=Y(V,n.fixedNodesOnVertical);this.componentsOnVertical=z.components,this.fixedComponentsOnVertical=z.isFixed}}},O.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(z){var w=n.idToNodeMap.get(z.nodeId);w.displacementX=0,w.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,p=0;p1){var F;for(F=0;FE&&(E=Math.floor(M.y)),R=Math.floor(M.x+s.DEFAULT_COMPONENT_SEPERATION)}this.transform(new v(T.WORLD_CENTER_X-M.x/2,T.WORLD_CENTER_Y-M.y/2))},O.radialLayout=function(n,m,p){var E=Math.max(this.maxDiagonalInTree(n),s.DEFAULT_RADIAL_SEPARATION);O.branchRadialLayout(m,null,0,359,0,E);var y=K.calculateBounds(n),R=new X;R.setDeviceOrgX(y.getMinX()),R.setDeviceOrgY(y.getMinY()),R.setWorldOrgX(p.x),R.setWorldOrgY(p.y);for(var M=0;M1;){var $=H[0];H.splice(0,1);var _=V.indexOf($);_>=0&&V.splice(_,1),z--,Y--}m!=null?w=(V.indexOf(H[0])+1)%z:w=0;for(var ht=Math.abs(E-p)/Y,q=w;et!=Y;q=++q%z){var It=V[q].getOtherEnd(n);if(It!=m){var Nt=(p+et*ht)%360,vt=(Nt+ht)%360;O.branchRadialLayout(It,n,Nt,vt,y+R,R),et++}}},O.maxDiagonalInTree=function(n){for(var m=C.MIN_VALUE,p=0;pm&&(m=y)}return m},O.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},O.prototype.groupZeroDegreeMembers=function(){var n=this,m={};this.memberGroups={},this.idToDummyNode={};for(var p=[],E=this.graphManager.getAllNodes(),y=0;y"u"&&(m[F]=[]),m[F]=m[F].concat(R)}Object.keys(m).forEach(function(W){if(m[W].length>1){var x="DummyCompound_"+W;n.memberGroups[x]=m[W];var k=m[W][0].getParent(),V=new t(n.graphManager);V.id=x,V.paddingLeft=k.paddingLeft||0,V.paddingRight=k.paddingRight||0,V.paddingBottom=k.paddingBottom||0,V.paddingTop=k.paddingTop||0,n.idToDummyNode[x]=V;var Y=n.getGraphManager().add(n.newGraph(),V),et=k.getChild();et.add(V);for(var z=0;zy?(E.rect.x-=(E.labelWidth-y)/2,E.setWidth(E.labelWidth),E.labelMarginLeft=(E.labelWidth-y)/2):E.labelPosHorizontal=="right"&&E.setWidth(y+E.labelWidth)),E.labelHeight&&(E.labelPosVertical=="top"?(E.rect.y-=E.labelHeight,E.setHeight(R+E.labelHeight),E.labelMarginTop=E.labelHeight):E.labelPosVertical=="center"&&E.labelHeight>R?(E.rect.y-=(E.labelHeight-R)/2,E.setHeight(E.labelHeight),E.labelMarginTop=(E.labelHeight-R)/2):E.labelPosVertical=="bottom"&&E.setHeight(R+E.labelHeight))}})},O.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var m=this.compoundOrder[n],p=m.id,E=m.paddingLeft,y=m.paddingTop,R=m.labelMarginLeft,M=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],m.rect.x,m.rect.y,E,y,R,M)}},O.prototype.repopulateZeroDegreeMembers=function(){var n=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(p){var E=n.idToDummyNode[p],y=E.paddingLeft,R=E.paddingTop,M=E.labelMarginLeft,F=E.labelMarginTop;n.adjustLocations(m[p],E.rect.x,E.rect.y,y,R,M,F)})},O.prototype.getToBeTiled=function(n){var m=n.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var p=n.getChild();if(p==null)return this.toBeTiled[m]=!1,!1;for(var E=p.getNodes(),y=0;y0)return this.toBeTiled[m]=!1,!1;if(R.getChild()==null){this.toBeTiled[R.id]=!1;continue}if(!this.getToBeTiled(R))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},O.prototype.getNodeDegree=function(n){n.id;for(var m=n.getEdges(),p=0,E=0;Ek&&(k=Y.rect.height)}p+=k+n.verticalPadding}},O.prototype.tileCompoundMembers=function(n,m){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(E){var y=m[E];if(p.tiledMemberPack[E]=p.tileNodes(n[E],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[E].width,y.rect.height=p.tiledMemberPack[E].height,y.setCenter(p.tiledMemberPack[E].centerX,p.tiledMemberPack[E].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,s.NODE_DIMENSIONS_INCLUDE_LABELS){var R=y.rect.width,M=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(R+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>R?(y.rect.x-=(y.labelWidth-R)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-R)/2):y.labelPosHorizontal=="right"&&y.setWidth(R+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(M+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>M?(y.rect.y-=(y.labelHeight-M)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-M)/2):y.labelPosVertical=="bottom"&&y.setHeight(M+y.labelHeight))}})},O.prototype.tileNodes=function(n,m){var p=this.tileNodesByFavoringDim(n,m,!0),E=this.tileNodesByFavoringDim(n,m,!1),y=this.getOrgRatio(p),R=this.getOrgRatio(E),M;return RF&&(F=z.getWidth())});var W=R/y,x=M/y,k=Math.pow(p-E,2)+4*(W+E)*(x+p)*y,V=(E-p+Math.sqrt(k))/(2*(W+E)),Y;m?(Y=Math.ceil(V),Y==V&&Y++):Y=Math.floor(V);var et=Y*(W+E)-E;return F>et&&(et=F),et+=E*2,et},O.prototype.tileNodesByFavoringDim=function(n,m,p){var E=s.TILING_PADDING_VERTICAL,y=s.TILING_PADDING_HORIZONTAL,R=s.TILING_COMPARE_BY,M={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:E,horizontalPadding:y,centerX:0,centerY:0};R&&(M.idealRowWidth=this.calcIdealRowWidth(n,p));var F=function(w){return w.rect.width*w.rect.height},W=function(w,H){return F(H)-F(w)};n.sort(function(z,w){var H=W;return M.idealRowWidth?(H=R,H(z.id,w.id)):H(z,w)});for(var x=0,k=0,V=0;V0&&(M+=n.horizontalPadding),n.rowWidth[p]=M,n.width0&&(F+=n.verticalPadding);var W=0;F>n.rowHeight[p]&&(W=n.rowHeight[p],n.rowHeight[p]=F,W=n.rowHeight[p]-W),n.height+=W,n.rows[p].push(m)},O.prototype.getShortestRowIndex=function(n){for(var m=-1,p=Number.MAX_VALUE,E=0;Ep&&(m=E,p=n.rowWidth[E]);return m},O.prototype.canAddHorizontal=function(n,m,p){if(n.idealRowWidth){var E=n.rows.length-1,y=n.rowWidth[E];return y+m+n.horizontalPadding<=n.idealRowWidth}var R=this.getShortestRowIndex(n);if(R<0)return!0;var M=n.rowWidth[R];if(M+n.horizontalPadding+m<=n.width)return!0;var F=0;n.rowHeight[R]0&&(F=p+n.verticalPadding-n.rowHeight[R]);var W;n.width-M>=m+n.horizontalPadding?W=(n.height+F)/(M+m+n.horizontalPadding):W=(n.height+F)/n.width,F=p+n.verticalPadding;var x;return n.widthR&&m!=p){E.splice(-1,1),n.rows[p].push(y),n.rowWidth[m]=n.rowWidth[m]-R,n.rowWidth[p]=n.rowWidth[p]+R,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var M=Number.MIN_VALUE,F=0;FM&&(M=E[F].height);m>0&&(M+=n.verticalPadding);var W=n.rowHeight[m]+n.rowHeight[p];n.rowHeight[m]=M,n.rowHeight[p]0)for(var et=y;et<=R;et++)Y[0]+=this.grid[et][M-1].length+this.grid[et][M].length-1;if(R0)for(var et=M;et<=F;et++)Y[3]+=this.grid[y-1][et].length+this.grid[y][et].length-1;for(var z=C.MAX_VALUE,w,H,$=0;${var f=e(551).FDLayoutNode,i=e(551).IMath;function g(o,s,c,l){f.call(this,o,s,c,l)}g.prototype=Object.create(f.prototype);for(var t in f)g[t]=f[t];g.prototype.calculateDisplacement=function(){var o=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=o.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=o.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementX=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>o.coolingFactor*o.maxNodeDisplacement&&(this.displacementY=o.coolingFactor*o.maxNodeDisplacement*i.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},g.prototype.propogateDisplacementToChildren=function(o,s){for(var c=this.getChild().getNodes(),l,T=0;T{function f(c){if(Array.isArray(c)){for(var l=0,T=Array(c.length);l0){var Lt=0;ot.forEach(function(st){B=="horizontal"?(tt.set(st,d.has(st)?v[d.get(st)]:Z.get(st)),Lt+=tt.get(st)):(tt.set(st,d.has(st)?L[d.get(st)]:Z.get(st)),Lt+=tt.get(st))}),Lt=Lt/ot.length,lt.forEach(function(st){J.has(st)||tt.set(st,Lt)})}else{var ft=0;lt.forEach(function(st){B=="horizontal"?ft+=d.has(st)?v[d.get(st)]:Z.get(st):ft+=d.has(st)?L[d.get(st)]:Z.get(st)}),ft=ft/lt.length,lt.forEach(function(st){tt.set(st,ft)})}});for(var Mt=function(){var ot=ut.shift(),Lt=U.get(ot);Lt.forEach(function(ft){if(tt.get(ft.id)st&&(st=Zt),KtXt&&(Xt=Kt)}}catch(ee){Ct=!0,$t=ee}finally{try{!Tt&&bt.return&&bt.return()}finally{if(Ct)throw $t}}var ce=(Lt+st)/2-(ft+Xt)/2,Qt=!0,jt=!1,_t=void 0;try{for(var Jt=lt[Symbol.iterator](),oe;!(Qt=(oe=Jt.next()).done);Qt=!0){var te=oe.value;tt.set(te,tt.get(te)+ce)}}catch(ee){jt=!0,_t=ee}finally{try{!Qt&&Jt.return&&Jt.return()}finally{if(jt)throw _t}}})}return tt},rt=function(U){var B=0,J=0,Z=0,at=0;if(U.forEach(function(j){j.left?v[d.get(j.left)]-v[d.get(j.right)]>=0?B++:J++:L[d.get(j.top)]-L[d.get(j.bottom)]>=0?Z++:at++}),B>J&&Z>at)for(var ct=0;ctJ)for(var nt=0;ntat)for(var tt=0;tt1)l.fixedNodeConstraint.forEach(function(b,U){E[U]=[b.position.x,b.position.y],y[U]=[v[d.get(b.nodeId)],L[d.get(b.nodeId)]]}),R=!0;else if(l.alignmentConstraint)(function(){var b=0;if(l.alignmentConstraint.vertical){for(var U=l.alignmentConstraint.vertical,B=function(tt){var j=new Set;U[tt].forEach(function(pt){j.add(pt)});var ut=new Set([].concat(f(j)).filter(function(pt){return F.has(pt)})),Mt=void 0;ut.size>0?Mt=v[d.get(ut.values().next().value)]:Mt=Q(j).x,U[tt].forEach(function(pt){E[b]=[Mt,L[d.get(pt)]],y[b]=[v[d.get(pt)],L[d.get(pt)]],b++})},J=0;J0?Mt=v[d.get(ut.values().next().value)]:Mt=Q(j).y,Z[tt].forEach(function(pt){E[b]=[v[d.get(pt)],Mt],y[b]=[v[d.get(pt)],L[d.get(pt)]],b++})},ct=0;ctV&&(V=k[et].length,Y=et);if(V0){var Et={x:0,y:0};l.fixedNodeConstraint.forEach(function(b,U){var B={x:v[d.get(b.nodeId)],y:L[d.get(b.nodeId)]},J=b.position,Z=X(J,B);Et.x+=Z.x,Et.y+=Z.y}),Et.x/=l.fixedNodeConstraint.length,Et.y/=l.fixedNodeConstraint.length,v.forEach(function(b,U){v[U]+=Et.x}),L.forEach(function(b,U){L[U]+=Et.y}),l.fixedNodeConstraint.forEach(function(b){v[d.get(b.nodeId)]=b.position.x,L[d.get(b.nodeId)]=b.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Dt=l.alignmentConstraint.vertical,Rt=function(U){var B=new Set;Dt[U].forEach(function(at){B.add(at)});var J=new Set([].concat(f(B)).filter(function(at){return F.has(at)})),Z=void 0;J.size>0?Z=v[d.get(J.values().next().value)]:Z=Q(B).x,B.forEach(function(at){F.has(at)||(v[d.get(at)]=Z)})},Ht=0;Ht0?Z=L[d.get(J.values().next().value)]:Z=Q(B).y,B.forEach(function(at){F.has(at)||(L[d.get(at)]=Z)})},Ft=0;Ft{a.exports=A})},N={};function u(a){var r=N[a];if(r!==void 0)return r.exports;var e=N[a]={exports:{}};return P[a](e,e.exports,u),e.exports}var h=u(45);return h})()})})(le)),le.exports}var pr=he.exports,De;function yr(){return De||(De=1,(function(I,D){(function(P,N){I.exports=N(vr())})(pr,function(A){return(()=>{var P={658:(a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var e=arguments.length,f=Array(e>1?e-1:0),i=1;i{var f=(function(){function t(o,s){var c=[],l=!0,T=!1,d=void 0;try{for(var v=o[Symbol.iterator](),L;!(l=(L=v.next()).done)&&(c.push(L.value),!(s&&c.length===s));l=!0);}catch(S){T=!0,d=S}finally{try{!l&&v.return&&v.return()}finally{if(T)throw d}}return c}return function(o,s){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return t(o,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),i=e(140).layoutBase.LinkedList,g={};g.getTopMostNodes=function(t){for(var o={},s=0;s0&&R.merge(x)});for(var M=0;M1){L=d[0],S=L.connectedEdges().length,d.forEach(function(y){y.connectedEdges().length0&&c.set("dummy"+(c.size+1),K),X},g.relocateComponent=function(t,o,s){if(!s.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,T=Number.POSITIVE_INFINITY,d=Number.NEGATIVE_INFINITY;if(s.quality=="draft"){var v=!0,L=!1,S=void 0;try{for(var C=o.nodeIndexes[Symbol.iterator](),G;!(v=(G=C.next()).done);v=!0){var K=G.value,X=f(K,2),Q=X[0],O=X[1],rt=s.cy.getElementById(Q);if(rt){var n=rt.boundingBox(),m=o.xCoords[O]-n.w/2,p=o.xCoords[O]+n.w/2,E=o.yCoords[O]-n.h/2,y=o.yCoords[O]+n.h/2;ml&&(l=p),Ed&&(d=y)}}}catch(x){L=!0,S=x}finally{try{!v&&C.return&&C.return()}finally{if(L)throw S}}var R=t.x-(l+c)/2,M=t.y-(d+T)/2;o.xCoords=o.xCoords.map(function(x){return x+R}),o.yCoords=o.yCoords.map(function(x){return x+M})}else{Object.keys(o).forEach(function(x){var k=o[x],V=k.getRect().x,Y=k.getRect().x+k.getRect().width,et=k.getRect().y,z=k.getRect().y+k.getRect().height;Vl&&(l=Y),etd&&(d=z)});var F=t.x-(l+c)/2,W=t.y-(d+T)/2;Object.keys(o).forEach(function(x){var k=o[x];k.setCenter(k.getCenterX()+F,k.getCenterY()+W)})}}},g.calcBoundingBox=function(t,o,s,c){for(var l=Number.MAX_SAFE_INTEGER,T=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,L=void 0,S=void 0,C=void 0,G=void 0,K=t.descendants().not(":parent"),X=K.length,Q=0;QL&&(l=L),TC&&(d=C),v{var f=e(548),i=e(140).CoSELayout,g=e(140).CoSENode,t=e(140).layoutBase.PointD,o=e(140).layoutBase.DimensionD,s=e(140).layoutBase.LayoutConstants,c=e(140).layoutBase.FDLayoutConstants,l=e(140).CoSEConstants,T=function(v,L){var S=v.cy,C=v.eles,G=C.nodes(),K=C.edges(),X=void 0,Q=void 0,O=void 0,rt={};v.randomize&&(X=L.nodeIndexes,Q=L.xCoords,O=L.yCoords);var n=function(x){return typeof x=="function"},m=function(x,k){return n(x)?x(k):x},p=f.calcParentsWithoutChildren(S,C),E=function W(x,k,V,Y){for(var et=k.length,z=0;z0){var q=void 0;q=V.getGraphManager().add(V.newGraph(),$),W(q,H,V,Y)}}},y=function(x,k,V){for(var Y=0,et=0,z=0;z0?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=Y/et:n(v.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=v.idealEdgeLength,l.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},R=function(x,k){k.fixedNodeConstraint&&(x.constraints.fixedNodeConstraint=k.fixedNodeConstraint),k.alignmentConstraint&&(x.constraints.alignmentConstraint=k.alignmentConstraint),k.relativePlacementConstraint&&(x.constraints.relativePlacementConstraint=k.relativePlacementConstraint)};v.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.nestingFactor),v.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=v.gravity),v.numIter!=null&&(l.MAX_ITERATIONS=c.MAX_ITERATIONS=v.numIter),v.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=v.gravityRange),v.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.gravityCompound),v.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.gravityRangeCompound),v.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.initialEnergyOnIncremental),v.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=v.tilingCompareBy),v.quality=="proof"?s.QUALITY=2:s.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=s.NODE_DIMENSIONS_INCLUDE_LABELS=v.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!v.randomize,l.ANIMATE=c.ANIMATE=s.ANIMATE=v.animate,l.TILE=v.tile,l.TILING_PADDING_VERTICAL=typeof v.tilingPaddingVertical=="function"?v.tilingPaddingVertical.call():v.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof v.tilingPaddingHorizontal=="function"?v.tilingPaddingHorizontal.call():v.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=s.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!v.randomize,s.DEFAULT_UNIFORM_LEAF_NODE_SIZES=v.uniformNodeDimensions,v.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),v.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),v.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),v.step=="all"&&(v.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),v.fixedNodeConstraint||v.alignmentConstraint||v.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var M=new i,F=M.newGraphManager();return E(F.addRoot(),f.getTopMostNodes(G),M,v),y(M,F,K),R(M,v),M.runLayout(),rt};a.exports={coseLayout:T}}),212:((a,r,e)=>{var f=(function(){function v(L,S){for(var C=0;C0)if(p){var R=t.getTopMostNodes(C.eles.nodes());if(O=t.connectComponents(G,C.eles,R),O.forEach(function(vt){var it=vt.boundingBox();rt.push({x:it.x1+it.w/2,y:it.y1+it.h/2})}),C.randomize&&O.forEach(function(vt){C.eles=vt,X.push(s(C))}),C.quality=="default"||C.quality=="proof"){var M=G.collection();if(C.tile){var F=new Map,W=[],x=[],k=0,V={nodeIndexes:F,xCoords:W,yCoords:x},Y=[];if(O.forEach(function(vt,it){vt.edges().length==0&&(vt.nodes().forEach(function(gt,mt){M.merge(vt.nodes()[mt]),gt.isParent()||(V.nodeIndexes.set(vt.nodes()[mt].id(),k++),V.xCoords.push(vt.nodes()[0].position().x),V.yCoords.push(vt.nodes()[0].position().y))}),Y.push(it))}),M.length>1){var et=M.boundingBox();rt.push({x:et.x1+et.w/2,y:et.y1+et.h/2}),O.push(M),X.push(V);for(var z=Y.length-1;z>=0;z--)O.splice(Y[z],1),X.splice(Y[z],1),rt.splice(Y[z],1)}}O.forEach(function(vt,it){C.eles=vt,Q.push(l(C,X[it])),t.relocateComponent(rt[it],Q[it],C)})}else O.forEach(function(vt,it){t.relocateComponent(rt[it],X[it],C)});var w=new Set;if(O.length>1){var H=[],$=K.filter(function(vt){return vt.css("display")=="none"});O.forEach(function(vt,it){var gt=void 0;if(C.quality=="draft"&&(gt=X[it].nodeIndexes),vt.nodes().not($).length>0){var mt={};mt.edges=[],mt.nodes=[];var At=void 0;vt.nodes().not($).forEach(function(Ot){if(C.quality=="draft")if(!Ot.isParent())At=gt.get(Ot.id()),mt.nodes.push({x:X[it].xCoords[At]-Ot.boundingbox().w/2,y:X[it].yCoords[At]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var Et=t.calcBoundingBox(Ot,X[it].xCoords,X[it].yCoords,gt);mt.nodes.push({x:Et.topLeftX,y:Et.topLeftY,width:Et.width,height:Et.height})}else Q[it][Ot.id()]&&mt.nodes.push({x:Q[it][Ot.id()].getLeft(),y:Q[it][Ot.id()].getTop(),width:Q[it][Ot.id()].getWidth(),height:Q[it][Ot.id()].getHeight()})}),vt.edges().forEach(function(Ot){var Et=Ot.source(),Dt=Ot.target();if(Et.css("display")!="none"&&Dt.css("display")!="none")if(C.quality=="draft"){var Rt=gt.get(Et.id()),Ht=gt.get(Dt.id()),Ut=[],Pt=[];if(Et.isParent()){var Ft=t.calcBoundingBox(Et,X[it].xCoords,X[it].yCoords,gt);Ut.push(Ft.topLeftX+Ft.width/2),Ut.push(Ft.topLeftY+Ft.height/2)}else Ut.push(X[it].xCoords[Rt]),Ut.push(X[it].yCoords[Rt]);if(Dt.isParent()){var Yt=t.calcBoundingBox(Dt,X[it].xCoords,X[it].yCoords,gt);Pt.push(Yt.topLeftX+Yt.width/2),Pt.push(Yt.topLeftY+Yt.height/2)}else Pt.push(X[it].xCoords[Ht]),Pt.push(X[it].yCoords[Ht]);mt.edges.push({startX:Ut[0],startY:Ut[1],endX:Pt[0],endY:Pt[1]})}else Q[it][Et.id()]&&Q[it][Dt.id()]&&mt.edges.push({startX:Q[it][Et.id()].getCenterX(),startY:Q[it][Et.id()].getCenterY(),endX:Q[it][Dt.id()].getCenterX(),endY:Q[it][Dt.id()].getCenterY()})}),mt.nodes.length>0&&(H.push(mt),w.add(it))}});var _=m.packComponents(H,C.randomize).shifts;if(C.quality=="draft")X.forEach(function(vt,it){var gt=vt.xCoords.map(function(At){return At+_[it].dx}),mt=vt.yCoords.map(function(At){return At+_[it].dy});vt.xCoords=gt,vt.yCoords=mt});else{var ht=0;w.forEach(function(vt){Object.keys(Q[vt]).forEach(function(it){var gt=Q[vt][it];gt.setCenter(gt.getCenterX()+_[ht].dx,gt.getCenterY()+_[ht].dy)}),ht++})}}}else{var E=C.eles.boundingBox();if(rt.push({x:E.x1+E.w/2,y:E.y1+E.h/2}),C.randomize){var y=s(C);X.push(y)}C.quality=="default"||C.quality=="proof"?(Q.push(l(C,X[0])),t.relocateComponent(rt[0],Q[0],C)):t.relocateComponent(rt[0],X[0],C)}var q=function(it,gt){if(C.quality=="default"||C.quality=="proof"){typeof it=="number"&&(it=gt);var mt=void 0,At=void 0,Ot=it.data("id");return Q.forEach(function(Dt){Ot in Dt&&(mt={x:Dt[Ot].getRect().getCenterX(),y:Dt[Ot].getRect().getCenterY()},At=Dt[Ot])}),C.nodeDimensionsIncludeLabels&&(At.labelWidth&&(At.labelPosHorizontal=="left"?mt.x+=At.labelWidth/2:At.labelPosHorizontal=="right"&&(mt.x-=At.labelWidth/2)),At.labelHeight&&(At.labelPosVertical=="top"?mt.y+=At.labelHeight/2:At.labelPosVertical=="bottom"&&(mt.y-=At.labelHeight/2))),mt==null&&(mt={x:it.position("x"),y:it.position("y")}),{x:mt.x,y:mt.y}}else{var Et=void 0;return X.forEach(function(Dt){var Rt=Dt.nodeIndexes.get(it.id());Rt!=null&&(Et={x:Dt.xCoords[Rt],y:Dt.yCoords[Rt]})}),Et==null&&(Et={x:it.position("x"),y:it.position("y")}),{x:Et.x,y:Et.y}}};if(C.quality=="default"||C.quality=="proof"||C.randomize){var It=t.calcParentsWithoutChildren(G,K),Nt=K.filter(function(vt){return vt.css("display")=="none"});C.eles=K.not(Nt),K.nodes().not(":parent").not(Nt).layoutPositions(S,C,q),It.length>0&&It.forEach(function(vt){vt.position(q(vt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),v})();a.exports=d}),657:((a,r,e)=>{var f=e(548),i=e(140).layoutBase.Matrix,g=e(140).layoutBase.SVD,t=function(s){var c=s.cy,l=s.eles,T=l.nodes(),d=l.nodes(":parent"),v=new Map,L=new Map,S=new Map,C=[],G=[],K=[],X=[],Q=[],O=[],rt=[],n=[],m=void 0,p=1e8,E=1e-9,y=s.piTol,R=s.samplingType,M=s.nodeSeparation,F=void 0,W=function(){for(var U=0,B=0,J=!1;B=at;){nt=Z[at++];for(var xt=C[nt],lt=0;ltut&&(ut=Q[Lt],Mt=Lt)}return Mt},k=function(U){var B=void 0;if(U){B=Math.floor(Math.random()*m);for(var Z=0;Z=1)break;j=tt}for(var pt=0;pt=1)break;j=tt}for(var lt=0;lt0&&(B.isParent()?C[U].push(S.get(B.id())):C[U].push(B.id()))})});var Nt=function(U){var B=L.get(U),J=void 0;v.get(U).forEach(function(Z){c.getElementById(Z).isParent()?J=S.get(Z):J=Z,C[B].push(J),C[L.get(J)].push(U)})},vt=!0,it=!1,gt=void 0;try{for(var mt=v.keys()[Symbol.iterator](),At;!(vt=(At=mt.next()).done);vt=!0){var Ot=At.value;Nt(Ot)}}catch(b){it=!0,gt=b}finally{try{!vt&&mt.return&&mt.return()}finally{if(it)throw gt}}m=L.size;var Et=void 0;if(m>2){F=m{var f=e(212),i=function(t){t&&t("layout","fcose",f)};typeof cytoscape<"u"&&i(cytoscape),a.exports=i}),140:(a=>{a.exports=A})},N={};function u(a){var r=N[a];if(r!==void 0)return r.exports;var e=N[a]={exports:{}};return P[a](e,e.exports,u),e.exports}var h=u(579);return h})()})})(he)),he.exports}var Er=yr();const mr=Ze(Er);var xe={L:"left",R:"right",T:"top",B:"bottom"},Ie={L:dt(I=>`${I},${I/2} 0,${I} 0,0`,"L"),R:dt(I=>`0,${I/2} ${I},0 ${I},${I}`,"R"),T:dt(I=>`0,0 ${I},0 ${I/2},${I}`,"T"),B:dt(I=>`${I/2},0 ${I},${I} 0,${I}`,"B")},se={L:dt((I,D)=>I-D+2,"L"),R:dt((I,D)=>I-2,"R"),T:dt((I,D)=>I-D+2,"T"),B:dt((I,D)=>I-2,"B")},Tr=dt(function(I){return Wt(I)?I==="L"?"R":"L":I==="T"?"B":"T"},"getOppositeArchitectureDirection"),Re=dt(function(I){const D=I;return D==="L"||D==="R"||D==="T"||D==="B"},"isArchitectureDirection"),Wt=dt(function(I){const D=I;return D==="L"||D==="R"},"isArchitectureDirectionX"),qt=dt(function(I){const D=I;return D==="T"||D==="B"},"isArchitectureDirectionY"),Te=dt(function(I,D){const A=Wt(I)&&qt(D),P=qt(I)&&Wt(D);return A||P},"isArchitectureDirectionXY"),Nr=dt(function(I){const D=I[0],A=I[1],P=Wt(D)&&qt(A),N=qt(D)&&Wt(A);return P||N},"isArchitecturePairXY"),Lr=dt(function(I){return I!=="LL"&&I!=="RR"&&I!=="TT"&&I!=="BB"},"isValidArchitectureDirectionPair"),ye=dt(function(I,D){const A=`${I}${D}`;return Lr(A)?A:void 0},"getArchitectureDirectionPair"),Cr=dt(function([I,D],A){const P=A[0],N=A[1];return Wt(P)?qt(N)?[I+(P==="L"?-1:1),D+(N==="T"?1:-1)]:[I+(P==="L"?-1:1),D]:Wt(N)?[I+(N==="L"?1:-1),D+(P==="T"?1:-1)]:[I,D+(P==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),Ar=dt(function(I){return I==="LT"||I==="TL"?[1,1]:I==="BL"||I==="LB"?[1,-1]:I==="BR"||I==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Mr=dt(function(I,D){return Te(I,D)?"bend":Wt(I)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),wr=dt(function(I){return I.type==="service"},"isArchitectureService"),Or=dt(function(I){return I.type==="junction"},"isArchitectureJunction"),be=dt(I=>I.data(),"edgeData"),ie=dt(I=>I.data(),"nodeData"),Dr=ir.architecture,ae,Pe=(ae=class{constructor(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.elements={},this.setAccTitle=Qe,this.getAccTitle=Je,this.setDiagramTitle=Ke,this.getDiagramTitle=je,this.getAccDescription=_e,this.setAccDescription=tr,this.clear()}clear(){this.nodes={},this.groups={},this.edges=[],this.registeredIds={},this.dataStructures=void 0,this.elements={},er()}addService({id:D,icon:A,in:P,title:N,iconText:u}){if(this.registeredIds[D]!==void 0)throw new Error(`The service id [${D}] is already in use by another ${this.registeredIds[D]}`);if(P!==void 0){if(D===P)throw new Error(`The service [${D}] cannot be placed within itself`);if(this.registeredIds[P]===void 0)throw new Error(`The service [${D}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds[P]==="node")throw new Error(`The service [${D}]'s parent is not a group`)}this.registeredIds[D]="node",this.nodes[D]={id:D,type:"service",icon:A,iconText:u,title:N,edges:[],in:P}}getServices(){return Object.values(this.nodes).filter(wr)}addJunction({id:D,in:A}){this.registeredIds[D]="node",this.nodes[D]={id:D,type:"junction",edges:[],in:A}}getJunctions(){return Object.values(this.nodes).filter(Or)}getNodes(){return Object.values(this.nodes)}getNode(D){return this.nodes[D]??null}addGroup({id:D,icon:A,in:P,title:N}){var u,h,a;if(((u=this.registeredIds)==null?void 0:u[D])!==void 0)throw new Error(`The group id [${D}] is already in use by another ${this.registeredIds[D]}`);if(P!==void 0){if(D===P)throw new Error(`The group [${D}] cannot be placed within itself`);if(((h=this.registeredIds)==null?void 0:h[P])===void 0)throw new Error(`The group [${D}]'s parent does not exist. Please make sure the parent is created before this group`);if(((a=this.registeredIds)==null?void 0:a[P])==="node")throw new Error(`The group [${D}]'s parent is not a group`)}this.registeredIds[D]="group",this.groups[D]={id:D,icon:A,title:N,in:P}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:D,rhsId:A,lhsDir:P,rhsDir:N,lhsInto:u,rhsInto:h,lhsGroup:a,rhsGroup:r,title:e}){if(!Re(P))throw new Error(`Invalid direction given for left hand side of edge ${D}--${A}. Expected (L,R,T,B) got ${String(P)}`);if(!Re(N))throw new Error(`Invalid direction given for right hand side of edge ${D}--${A}. Expected (L,R,T,B) got ${String(N)}`);if(this.nodes[D]===void 0&&this.groups[D]===void 0)throw new Error(`The left-hand id [${D}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(this.nodes[A]===void 0&&this.groups[A]===void 0)throw new Error(`The right-hand id [${A}] does not yet exist. Please create the service/group before declaring an edge to it.`);const f=this.nodes[D].in,i=this.nodes[A].in;if(a&&f&&i&&f==i)throw new Error(`The left-hand id [${D}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(r&&f&&i&&f==i)throw new Error(`The right-hand id [${A}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const g={lhsId:D,lhsDir:P,lhsInto:u,lhsGroup:a,rhsId:A,rhsDir:N,rhsInto:h,rhsGroup:r,title:e};this.edges.push(g),this.nodes[D]&&this.nodes[A]&&(this.nodes[D].edges.push(this.edges[this.edges.length-1]),this.nodes[A].edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const D={},A=Object.entries(this.nodes).reduce((r,[e,f])=>(r[e]=f.edges.reduce((i,g)=>{var s,c;const t=(s=this.getNode(g.lhsId))==null?void 0:s.in,o=(c=this.getNode(g.rhsId))==null?void 0:c.in;if(t&&o&&t!==o){const l=Mr(g.lhsDir,g.rhsDir);l!=="bend"&&(D[t]??(D[t]={}),D[t][o]=l,D[o]??(D[o]={}),D[o][t]=l)}if(g.lhsId===e){const l=ye(g.lhsDir,g.rhsDir);l&&(i[l]=g.rhsId)}else{const l=ye(g.rhsDir,g.lhsDir);l&&(i[l]=g.lhsId)}return i},{}),r),{}),P=Object.keys(A)[0],N={[P]:1},u=Object.keys(A).reduce((r,e)=>e===P?r:{...r,[e]:1},{}),h=dt(r=>{const e={[r]:[0,0]},f=[r];for(;f.length>0;){const i=f.shift();if(i){N[i]=1,delete u[i];const g=A[i],[t,o]=e[i];Object.entries(g).forEach(([s,c])=>{N[c]||(e[c]=Cr([t,o],s),f.push(c))})}}return e},"BFS"),a=[h(P)];for(;Object.keys(u).length>0;)a.push(h(Object.keys(u)[0]));this.dataStructures={adjList:A,spatialMaps:a,groupAlignments:D}}return this.dataStructures}setElementForId(D,A){this.elements[D]=A}getElementById(D){return this.elements[D]}getConfig(){return rr({...Dr,...ar().architecture})}getConfigField(D){return this.getConfig()[D]}},dt(ae,"ArchitectureDB"),ae),xr=dt((I,D)=>{fr(I,D),I.groups.map(A=>D.addGroup(A)),I.services.map(A=>D.addService({...A,type:"service"})),I.junctions.map(A=>D.addJunction({...A,type:"junction"})),I.edges.map(A=>D.addEdge(A))},"populateDb"),Ge={parser:{yy:void 0},parse:dt(async I=>{var P;const D=await cr("architecture",I);Se.debug(D);const A=(P=Ge.parser)==null?void 0:P.yy;if(!(A instanceof Pe))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");xr(D,A)},"parse")},Ir=dt(I=>` .edge { stroke-width: ${I.archEdgeWidth}; stroke: ${I.archEdgeColor}; diff --git a/src/adclaw/console/assets/blockDiagram-VD42YOAC-COnr0WQK.js b/src/adclaw/console/assets/blockDiagram-VD42YOAC-Dyi_zh_5.js similarity index 99% rename from src/adclaw/console/assets/blockDiagram-VD42YOAC-COnr0WQK.js rename to src/adclaw/console/assets/blockDiagram-VD42YOAC-Dyi_zh_5.js index 525702c..2947300 100644 --- a/src/adclaw/console/assets/blockDiagram-VD42YOAC-COnr0WQK.js +++ b/src/adclaw/console/assets/blockDiagram-VD42YOAC-Dyi_zh_5.js @@ -1,4 +1,4 @@ -import{g as de}from"./chunk-FMBD7UC4-C_3apHrX.js";import{_ as d,F as st,d as R,e as ge,l as m,y as ue,A as pe,ak as fe,R as xe,S as ye,c as z,O as be,al as Z,am as Ht,an as we,u as et,k as me,ao as Le,ap as yt,i as bt,aq as Se}from"./index-C-alNCkd.js";import{c as ve}from"./clone-CpRDnie0.js";import{G as Ee}from"./graph-D-pGiHx5.js";import{c as _e}from"./channel-BkfSU_FA.js";import"./_baseUniq-mI0_nzhz.js";var wt=(function(){var e=d(function(N,x,g,p){for(g=g||{},p=N.length;p--;g[N[p]]=x);return g},"o"),t=[1,15],a=[1,7],i=[1,13],l=[1,14],s=[1,19],r=[1,16],n=[1,17],o=[1,18],u=[8,30],h=[8,10,21,28,29,30,31,39,43,46],y=[1,23],b=[1,24],L=[8,10,15,16,21,28,29,30,31,39,43,46],E=[8,10,15,16,21,27,28,29,30,31,39,43,46],D=[1,49],v={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(x,g,p,w,S,c,_){var f=c.length-1;switch(S){case 4:w.getLogger().debug("Rule: separator (NL) ");break;case 5:w.getLogger().debug("Rule: separator (Space) ");break;case 6:w.getLogger().debug("Rule: separator (EOF) ");break;case 7:w.getLogger().debug("Rule: hierarchy: ",c[f-1]),w.setHierarchy(c[f-1]);break;case 8:w.getLogger().debug("Stop NL ");break;case 9:w.getLogger().debug("Stop EOF ");break;case 10:w.getLogger().debug("Stop NL2 ");break;case 11:w.getLogger().debug("Stop EOF2 ");break;case 12:w.getLogger().debug("Rule: statement: ",c[f]),typeof c[f].length=="number"?this.$=c[f]:this.$=[c[f]];break;case 13:w.getLogger().debug("Rule: statement #2: ",c[f-1]),this.$=[c[f-1]].concat(c[f]);break;case 14:w.getLogger().debug("Rule: link: ",c[f],x),this.$={edgeTypeStr:c[f],label:""};break;case 15:w.getLogger().debug("Rule: LABEL link: ",c[f-3],c[f-1],c[f]),this.$={edgeTypeStr:c[f],label:c[f-1]};break;case 18:const A=parseInt(c[f]),O=w.generateId();this.$={id:O,type:"space",label:"",width:A,children:[]};break;case 23:w.getLogger().debug("Rule: (nodeStatement link node) ",c[f-2],c[f-1],c[f]," typestr: ",c[f-1].edgeTypeStr);const X=w.edgeStrToEdgeData(c[f-1].edgeTypeStr);this.$=[{id:c[f-2].id,label:c[f-2].label,type:c[f-2].type,directions:c[f-2].directions},{id:c[f-2].id+"-"+c[f].id,start:c[f-2].id,end:c[f].id,label:c[f-1].label,type:"edge",directions:c[f].directions,arrowTypeEnd:X,arrowTypeStart:"arrow_open"},{id:c[f].id,label:c[f].label,type:w.typeStr2Type(c[f].typeStr),directions:c[f].directions}];break;case 24:w.getLogger().debug("Rule: nodeStatement (abc88 node size) ",c[f-1],c[f]),this.$={id:c[f-1].id,label:c[f-1].label,type:w.typeStr2Type(c[f-1].typeStr),directions:c[f-1].directions,widthInColumns:parseInt(c[f],10)};break;case 25:w.getLogger().debug("Rule: nodeStatement (node) ",c[f]),this.$={id:c[f].id,label:c[f].label,type:w.typeStr2Type(c[f].typeStr),directions:c[f].directions,widthInColumns:1};break;case 26:w.getLogger().debug("APA123",this?this:"na"),w.getLogger().debug("COLUMNS: ",c[f]),this.$={type:"column-setting",columns:c[f]==="auto"?-1:parseInt(c[f])};break;case 27:w.getLogger().debug("Rule: id-block statement : ",c[f-2],c[f-1]),w.generateId(),this.$={...c[f-2],type:"composite",children:c[f-1]};break;case 28:w.getLogger().debug("Rule: blockStatement : ",c[f-2],c[f-1],c[f]);const P=w.generateId();this.$={id:P,type:"composite",label:"",children:c[f-1]};break;case 29:w.getLogger().debug("Rule: node (NODE_ID separator): ",c[f]),this.$={id:c[f]};break;case 30:w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",c[f-1],c[f]),this.$={id:c[f-1],label:c[f].label,typeStr:c[f].typeStr,directions:c[f].directions};break;case 31:w.getLogger().debug("Rule: dirList: ",c[f]),this.$=[c[f]];break;case 32:w.getLogger().debug("Rule: dirList: ",c[f-1],c[f]),this.$=[c[f-1]].concat(c[f]);break;case 33:w.getLogger().debug("Rule: nodeShapeNLabel: ",c[f-2],c[f-1],c[f]),this.$={typeStr:c[f-2]+c[f],label:c[f-1]};break;case 34:w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",c[f-3],c[f-2]," #3:",c[f-1],c[f]),this.$={typeStr:c[f-3]+c[f],label:c[f-2],directions:c[f-1]};break;case 35:case 36:this.$={type:"classDef",id:c[f-1].trim(),css:c[f].trim()};break;case 37:this.$={type:"applyClass",id:c[f-1].trim(),styleClass:c[f].trim()};break;case 38:this.$={type:"applyStyles",id:c[f-1].trim(),stylesStr:c[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:o},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:i,29:l,31:s,39:r,43:n,46:o}),e(h,[2,16],{14:22,15:y,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(L,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,31:s},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:o},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(E,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},e(L,[2,24]),{10:t,11:37,13:4,14:22,15:y,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:o},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(E,[2,30]),{18:[1,43]},{18:[1,44]},e(L,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:D},{15:[1,50]},e(h,[2,27]),e(E,[2,33]),{38:[1,51]},{33:52,34:D,38:[2,31]},{31:[2,15]},e(E,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(x,g){if(g.recoverable)this.trace(x);else{var p=new Error(x);throw p.hash=g,p}},"parseError"),parse:d(function(x){var g=this,p=[0],w=[],S=[null],c=[],_=this.table,f="",A=0,O=0,X=2,P=1,J=c.slice.call(arguments,1),M=Object.create(this.lexer),Q={yy:{}};for(var ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ut)&&(Q.yy[ut]=this.yy[ut]);M.setInput(x,Q.yy),Q.yy.lexer=M,Q.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var pt=M.yylloc;c.push(pt);var oe=M.options&&M.options.ranges;typeof Q.yy.parseError=="function"?this.parseError=Q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(H){p.length=p.length-2*H,S.length=S.length-H,c.length=c.length-H}d(he,"popStack");function Tt(){var H;return H=w.pop()||M.lex()||P,typeof H!="number"&&(H instanceof Array&&(w=H,H=w.pop()),H=g.symbols_[H]||H),H}d(Tt,"lex");for(var Y,$,U,ft,tt={},it,q,Ct,nt;;){if($=p[p.length-1],this.defaultActions[$]?U=this.defaultActions[$]:((Y===null||typeof Y>"u")&&(Y=Tt()),U=_[$]&&_[$][Y]),typeof U>"u"||!U.length||!U[0]){var xt="";nt=[];for(it in _[$])this.terminals_[it]&&it>X&&nt.push("'"+this.terminals_[it]+"'");M.showPosition?xt="Parse error on line "+(A+1)+`: +import{g as de}from"./chunk-FMBD7UC4-_lv-Ir7k.js";import{_ as d,F as st,d as R,e as ge,l as m,y as ue,A as pe,ak as fe,R as xe,S as ye,c as z,O as be,al as Z,am as Ht,an as we,u as et,k as me,ao as Le,ap as yt,i as bt,aq as Se}from"./index-CnXIpKtg.js";import{c as ve}from"./clone-z69nb1L5.js";import{G as Ee}from"./graph-C7nCxrGC.js";import{c as _e}from"./channel-DnkcnzbZ.js";import"./_baseUniq-Dg6PvSCo.js";var wt=(function(){var e=d(function(N,x,g,p){for(g=g||{},p=N.length;p--;g[N[p]]=x);return g},"o"),t=[1,15],a=[1,7],i=[1,13],l=[1,14],s=[1,19],r=[1,16],n=[1,17],o=[1,18],u=[8,30],h=[8,10,21,28,29,30,31,39,43,46],y=[1,23],b=[1,24],L=[8,10,15,16,21,28,29,30,31,39,43,46],E=[8,10,15,16,21,27,28,29,30,31,39,43,46],D=[1,49],v={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:d(function(x,g,p,w,S,c,_){var f=c.length-1;switch(S){case 4:w.getLogger().debug("Rule: separator (NL) ");break;case 5:w.getLogger().debug("Rule: separator (Space) ");break;case 6:w.getLogger().debug("Rule: separator (EOF) ");break;case 7:w.getLogger().debug("Rule: hierarchy: ",c[f-1]),w.setHierarchy(c[f-1]);break;case 8:w.getLogger().debug("Stop NL ");break;case 9:w.getLogger().debug("Stop EOF ");break;case 10:w.getLogger().debug("Stop NL2 ");break;case 11:w.getLogger().debug("Stop EOF2 ");break;case 12:w.getLogger().debug("Rule: statement: ",c[f]),typeof c[f].length=="number"?this.$=c[f]:this.$=[c[f]];break;case 13:w.getLogger().debug("Rule: statement #2: ",c[f-1]),this.$=[c[f-1]].concat(c[f]);break;case 14:w.getLogger().debug("Rule: link: ",c[f],x),this.$={edgeTypeStr:c[f],label:""};break;case 15:w.getLogger().debug("Rule: LABEL link: ",c[f-3],c[f-1],c[f]),this.$={edgeTypeStr:c[f],label:c[f-1]};break;case 18:const A=parseInt(c[f]),O=w.generateId();this.$={id:O,type:"space",label:"",width:A,children:[]};break;case 23:w.getLogger().debug("Rule: (nodeStatement link node) ",c[f-2],c[f-1],c[f]," typestr: ",c[f-1].edgeTypeStr);const X=w.edgeStrToEdgeData(c[f-1].edgeTypeStr);this.$=[{id:c[f-2].id,label:c[f-2].label,type:c[f-2].type,directions:c[f-2].directions},{id:c[f-2].id+"-"+c[f].id,start:c[f-2].id,end:c[f].id,label:c[f-1].label,type:"edge",directions:c[f].directions,arrowTypeEnd:X,arrowTypeStart:"arrow_open"},{id:c[f].id,label:c[f].label,type:w.typeStr2Type(c[f].typeStr),directions:c[f].directions}];break;case 24:w.getLogger().debug("Rule: nodeStatement (abc88 node size) ",c[f-1],c[f]),this.$={id:c[f-1].id,label:c[f-1].label,type:w.typeStr2Type(c[f-1].typeStr),directions:c[f-1].directions,widthInColumns:parseInt(c[f],10)};break;case 25:w.getLogger().debug("Rule: nodeStatement (node) ",c[f]),this.$={id:c[f].id,label:c[f].label,type:w.typeStr2Type(c[f].typeStr),directions:c[f].directions,widthInColumns:1};break;case 26:w.getLogger().debug("APA123",this?this:"na"),w.getLogger().debug("COLUMNS: ",c[f]),this.$={type:"column-setting",columns:c[f]==="auto"?-1:parseInt(c[f])};break;case 27:w.getLogger().debug("Rule: id-block statement : ",c[f-2],c[f-1]),w.generateId(),this.$={...c[f-2],type:"composite",children:c[f-1]};break;case 28:w.getLogger().debug("Rule: blockStatement : ",c[f-2],c[f-1],c[f]);const P=w.generateId();this.$={id:P,type:"composite",label:"",children:c[f-1]};break;case 29:w.getLogger().debug("Rule: node (NODE_ID separator): ",c[f]),this.$={id:c[f]};break;case 30:w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",c[f-1],c[f]),this.$={id:c[f-1],label:c[f].label,typeStr:c[f].typeStr,directions:c[f].directions};break;case 31:w.getLogger().debug("Rule: dirList: ",c[f]),this.$=[c[f]];break;case 32:w.getLogger().debug("Rule: dirList: ",c[f-1],c[f]),this.$=[c[f-1]].concat(c[f]);break;case 33:w.getLogger().debug("Rule: nodeShapeNLabel: ",c[f-2],c[f-1],c[f]),this.$={typeStr:c[f-2]+c[f],label:c[f-1]};break;case 34:w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",c[f-3],c[f-2]," #3:",c[f-1],c[f]),this.$={typeStr:c[f-3]+c[f],label:c[f-2],directions:c[f-1]};break;case 35:case 36:this.$={type:"classDef",id:c[f-1].trim(),css:c[f].trim()};break;case 37:this.$={type:"applyClass",id:c[f-1].trim(),styleClass:c[f].trim()};break;case 38:this.$={type:"applyStyles",id:c[f-1].trim(),stylesStr:c[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:o},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:a,28:i,29:l,31:s,39:r,43:n,46:o}),e(h,[2,16],{14:22,15:y,16:b}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(L,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,31:s},{10:t,11:27,13:4,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:o},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(E,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,31:s},{31:[2,14]},{17:[1,36]},e(L,[2,24]),{10:t,11:37,13:4,14:22,15:y,16:b,19:5,20:6,21:a,22:8,23:9,24:10,25:11,26:12,28:i,29:l,31:s,39:r,43:n,46:o},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(E,[2,30]),{18:[1,43]},{18:[1,44]},e(L,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{36:[1,47]},{33:48,34:D},{15:[1,50]},e(h,[2,27]),e(E,[2,33]),{38:[1,51]},{33:52,34:D,38:[2,31]},{31:[2,15]},e(E,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:d(function(x,g){if(g.recoverable)this.trace(x);else{var p=new Error(x);throw p.hash=g,p}},"parseError"),parse:d(function(x){var g=this,p=[0],w=[],S=[null],c=[],_=this.table,f="",A=0,O=0,X=2,P=1,J=c.slice.call(arguments,1),M=Object.create(this.lexer),Q={yy:{}};for(var ut in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ut)&&(Q.yy[ut]=this.yy[ut]);M.setInput(x,Q.yy),Q.yy.lexer=M,Q.yy.parser=this,typeof M.yylloc>"u"&&(M.yylloc={});var pt=M.yylloc;c.push(pt);var oe=M.options&&M.options.ranges;typeof Q.yy.parseError=="function"?this.parseError=Q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(H){p.length=p.length-2*H,S.length=S.length-H,c.length=c.length-H}d(he,"popStack");function Tt(){var H;return H=w.pop()||M.lex()||P,typeof H!="number"&&(H instanceof Array&&(w=H,H=w.pop()),H=g.symbols_[H]||H),H}d(Tt,"lex");for(var Y,$,U,ft,tt={},it,q,Ct,nt;;){if($=p[p.length-1],this.defaultActions[$]?U=this.defaultActions[$]:((Y===null||typeof Y>"u")&&(Y=Tt()),U=_[$]&&_[$][Y]),typeof U>"u"||!U.length||!U[0]){var xt="";nt=[];for(it in _[$])this.terminals_[it]&&it>X&&nt.push("'"+this.terminals_[it]+"'");M.showPosition?xt="Parse error on line "+(A+1)+`: `+M.showPosition()+` Expecting `+nt.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":xt="Parse error on line "+(A+1)+": Unexpected "+(Y==P?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(xt,{text:M.match,token:this.terminals_[Y]||Y,line:M.yylineno,loc:pt,expected:nt})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+Y);switch(U[0]){case 1:p.push(Y),S.push(M.yytext),c.push(M.yylloc),p.push(U[1]),Y=null,O=M.yyleng,f=M.yytext,A=M.yylineno,pt=M.yylloc;break;case 2:if(q=this.productions_[U[1]][1],tt.$=S[S.length-q],tt._$={first_line:c[c.length-(q||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(q||1)].first_column,last_column:c[c.length-1].last_column},oe&&(tt._$.range=[c[c.length-(q||1)].range[0],c[c.length-1].range[1]]),ft=this.performAction.apply(tt,[f,O,A,Q.yy,U[1],S,c].concat(J)),typeof ft<"u")return ft;q&&(p=p.slice(0,-1*q*2),S=S.slice(0,-1*q),c=c.slice(0,-1*q)),p.push(this.productions_[U[1]][0]),S.push(tt.$),c.push(tt._$),Ct=_[p[p.length-2]][p[p.length-1]],p.push(Ct);break;case 3:return!0}}return!0},"parse")},T=(function(){var N={EOF:1,parseError:d(function(g,p){if(this.yy.parser)this.yy.parser.parseError(g,p);else throw new Error(g)},"parseError"),setInput:d(function(x,g){return this.yy=g||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var g=x.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:d(function(x){var g=x.length,p=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var w=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===w.length?this.yylloc.first_column:0)+w[w.length-p.length].length-p[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(x){this.unput(this.match.slice(x))},"less"),pastInput:d(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var x=this.pastInput(),g=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/src/adclaw/console/assets/c4Diagram-YG6GDRKO-DE1-HN-J.js b/src/adclaw/console/assets/c4Diagram-YG6GDRKO-Csim2GTp.js similarity index 99% rename from src/adclaw/console/assets/c4Diagram-YG6GDRKO-DE1-HN-J.js rename to src/adclaw/console/assets/c4Diagram-YG6GDRKO-Csim2GTp.js index e86ba2a..403d401 100644 --- a/src/adclaw/console/assets/c4Diagram-YG6GDRKO-DE1-HN-J.js +++ b/src/adclaw/console/assets/c4Diagram-YG6GDRKO-Csim2GTp.js @@ -1,4 +1,4 @@ -import{g as Se,d as De}from"./chunk-TZMSLE5B-C-awqBe9.js";import{s as Pe,g as Be,a as Ie,b as Me,_ as g,c as Bt,d as jt,l as de,e as Le,f as Ne,h as Tt,i as ge,j as Ye,w as je,k as $t,m as fe}from"./index-C-alNCkd.js";var Ft=(function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: +import{g as Se,d as De}from"./chunk-TZMSLE5B-WkZZUiQp.js";import{s as Pe,g as Be,a as Ie,b as Me,_ as g,c as Bt,d as jt,l as de,e as Le,f as Ne,h as Tt,i as ge,j as Ye,w as je,k as $t,m as fe}from"./index-CnXIpKtg.js";var Ft=(function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],f=[1,68],y=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var p=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[p-3]);break;case 19:b.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:b.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),b.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:b.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:b.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:b.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:b.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:b.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:b.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:b.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:b.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:b.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:b.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:b.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:b.addContainer("container",...h[p]),this.$=h[p];break;case 48:b.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:b.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:b.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:b.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:b.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:b.addComponent("component",...h[p]),this.$=h[p];break;case 54:b.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:b.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:b.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:b.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:b.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:b.addRel("rel",...h[p]),this.$=h[p];break;case 61:b.addRel("birel",...h[p]),this.$=h[p];break;case 62:b.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:b.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:b.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:b.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:b.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),b.addRel("rel",...h[p]),this.$=h[p];break;case 68:b.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:b.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:b.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let Et={};Et[h[p-1].trim()]=h[p].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:f,41:y,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:f,41:y,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,p="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`: `+D.showPosition()+` Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Zt="Parse error on line "+(Et+1)+": Unexpected "+(I==ce?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Kt,expected:Yt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+I);switch(N[0]){case 1:v.push(I),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),I=null,oe=D.yyleng,p=D.yytext,Et=D.yylineno,Kt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},Oe&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(wt,[p,oe,Et,kt.yy,N[1],R,h].concat(Te)),typeof Jt<"u")return Jt;W&&(v=v.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),v.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ue=Dt[v[v.length-2]][v[v.length-1]],v.push(ue);break;case 3:return!0}}return!0},"parse")},Ce=(function(){var _t={EOF:1,parseError:g(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:g(function(x,m){return this.yy=m||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var m=x.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:g(function(x){var m=x.length,v=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===b.length?this.yylloc.first_column:0)+b[b.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(x){this.unput(this.match.slice(x))},"less"),pastInput:g(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var x=this.pastInput(),m=new Array(x.length+1).join("-");return x+this.upcomingInput()+` diff --git a/src/adclaw/console/assets/channel-BkfSU_FA.js b/src/adclaw/console/assets/channel-BkfSU_FA.js deleted file mode 100644 index cb04806..0000000 --- a/src/adclaw/console/assets/channel-BkfSU_FA.js +++ /dev/null @@ -1 +0,0 @@ -import{ar as o,as as s}from"./index-C-alNCkd.js";const t=(r,a)=>o.lang.round(s.parse(r)[a]);export{t as c}; diff --git a/src/adclaw/console/assets/channel-DnkcnzbZ.js b/src/adclaw/console/assets/channel-DnkcnzbZ.js new file mode 100644 index 0000000..b3b6b0d --- /dev/null +++ b/src/adclaw/console/assets/channel-DnkcnzbZ.js @@ -0,0 +1 @@ +import{ar as o,as as s}from"./index-CnXIpKtg.js";const t=(r,a)=>o.lang.round(s.parse(r)[a]);export{t as c}; diff --git a/src/adclaw/console/assets/chunk-4BX2VUAB-CalenPtr.js b/src/adclaw/console/assets/chunk-4BX2VUAB-De0wsjr9.js similarity index 77% rename from src/adclaw/console/assets/chunk-4BX2VUAB-CalenPtr.js rename to src/adclaw/console/assets/chunk-4BX2VUAB-De0wsjr9.js index 8523aab..7893e5d 100644 --- a/src/adclaw/console/assets/chunk-4BX2VUAB-CalenPtr.js +++ b/src/adclaw/console/assets/chunk-4BX2VUAB-De0wsjr9.js @@ -1 +1 @@ -import{_ as l}from"./index-C-alNCkd.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p}; +import{_ as l}from"./index-CnXIpKtg.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p}; diff --git a/src/adclaw/console/assets/chunk-55IACEB6-HWQqZTFV.js b/src/adclaw/console/assets/chunk-55IACEB6-BRDK9d3b.js similarity index 71% rename from src/adclaw/console/assets/chunk-55IACEB6-HWQqZTFV.js rename to src/adclaw/console/assets/chunk-55IACEB6-BRDK9d3b.js index e36c8ce..ed22887 100644 --- a/src/adclaw/console/assets/chunk-55IACEB6-HWQqZTFV.js +++ b/src/adclaw/console/assets/chunk-55IACEB6-BRDK9d3b.js @@ -1 +1 @@ -import{_ as a,d as o}from"./index-C-alNCkd.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g}; +import{_ as a,d as o}from"./index-CnXIpKtg.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g}; diff --git a/src/adclaw/console/assets/chunk-B4BG7PRW-w0Noq32D.js b/src/adclaw/console/assets/chunk-B4BG7PRW-DHog70H7.js similarity index 99% rename from src/adclaw/console/assets/chunk-B4BG7PRW-w0Noq32D.js rename to src/adclaw/console/assets/chunk-B4BG7PRW-DHog70H7.js index da7480e..a93f9dc 100644 --- a/src/adclaw/console/assets/chunk-B4BG7PRW-w0Noq32D.js +++ b/src/adclaw/console/assets/chunk-B4BG7PRW-DHog70H7.js @@ -1,4 +1,4 @@ -import{g as et}from"./chunk-FMBD7UC4-C_3apHrX.js";import{g as tt}from"./chunk-55IACEB6-HWQqZTFV.js";import{s as st}from"./chunk-QN33PNHL-Bfn-g6m4.js";import{_ as f,l as Oe,c as F,o as it,r as at,u as we,d as ee,b as nt,a as rt,s as ut,g as lt,p as ot,q as ct,k as v,y as ht,x as dt,i as pt,Q as R}from"./index-C-alNCkd.js";var Ve=(function(){var s=f(function(I,o,h,p){for(h=h||{},p=I.length;p--;h[I[p]]=o);return h},"o"),i=[1,18],a=[1,19],u=[1,20],l=[1,41],r=[1,42],c=[1,26],A=[1,24],g=[1,25],D=[1,32],L=[1,33],Ae=[1,34],m=[1,45],fe=[1,35],ge=[1,36],Ce=[1,37],me=[1,38],be=[1,27],Ee=[1,28],ye=[1,29],Te=[1,30],ke=[1,31],b=[1,44],E=[1,46],y=[1,43],T=[1,47],De=[1,9],d=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],ne=[1,62],Fe=[1,63],Be=[1,64],z=[1,8,9,41],Pe=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],re=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ue=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Me=[13,60,68,69,70,71,72,86,100,102,103],_e=[1,100],Y=[1,117],Q=[1,113],W=[1,109],j=[1,115],X=[1,110],q=[1,111],H=[1,112],J=[1,114],Z=[1,116],Re=[22,48,60,61,82,86,87,88,89,90],Se=[1,8,9,39,41,44],le=[1,8,9,22],Ge=[1,145],Ue=[1,8,9,61],N=[1,8,9,22,48,60,61,82,86,87,88,89,90],Ne={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(o,h,p,n,C,e,$){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:n.addRelation(e[t]);break;case 20:e[t-1].title=n.cleanupLabel(e[t]),n.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),n.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),n.setAccDescription(this.$);break;case 34:n.addClassesToNamespace(e[t-3],e[t-1]);break;case 35:n.addClassesToNamespace(e[t-4],e[t-1]);break;case 36:this.$=e[t],n.addNamespace(e[t]);break;case 37:this.$=[e[t]];break;case 38:this.$=[e[t-1]];break;case 39:e[t].unshift(e[t-2]),this.$=e[t];break;case 41:n.setCssClass(e[t-2],e[t]);break;case 42:n.addMembers(e[t-3],e[t-1]);break;case 44:n.setCssClass(e[t-5],e[t-3]),n.addMembers(e[t-5],e[t-1]);break;case 45:this.$=e[t],n.addClass(e[t]);break;case 46:this.$=e[t-1],n.addClass(e[t-1]),n.setClassLabel(e[t-1],e[t]);break;case 50:n.addAnnotation(e[t],e[t-2]);break;case 51:case 64:this.$=[e[t]];break;case 52:e[t].push(e[t-1]),this.$=e[t];break;case 53:break;case 54:n.addMember(e[t-1],n.cleanupLabel(e[t]));break;case 55:break;case 56:break;case 57:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 59:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 60:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 61:n.addNote(e[t],e[t-1]);break;case 62:n.addNote(e[t]);break;case 63:this.$=e[t-2],n.defineClass(e[t-1],e[t]);break;case 65:this.$=e[t-2].concat([e[t]]);break;case 66:n.setDirection("TB");break;case 67:n.setDirection("BT");break;case 68:n.setDirection("RL");break;case 69:n.setDirection("LR");break;case 70:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 71:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 72:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 73:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 74:this.$=n.relationType.AGGREGATION;break;case 75:this.$=n.relationType.EXTENSION;break;case 76:this.$=n.relationType.COMPOSITION;break;case 77:this.$=n.relationType.DEPENDENCY;break;case 78:this.$=n.relationType.LOLLIPOP;break;case 79:this.$=n.lineType.LINE;break;case 80:this.$=n.lineType.DOTTED_LINE;break;case 81:case 87:this.$=e[t-2],n.setClickEvent(e[t-1],e[t]);break;case 82:case 88:this.$=e[t-3],n.setClickEvent(e[t-2],e[t-1]),n.setTooltip(e[t-2],e[t]);break;case 83:this.$=e[t-2],n.setLink(e[t-1],e[t]);break;case 84:this.$=e[t-3],n.setLink(e[t-2],e[t-1],e[t]);break;case 85:this.$=e[t-3],n.setLink(e[t-2],e[t-1]),n.setTooltip(e[t-2],e[t]);break;case 86:this.$=e[t-4],n.setLink(e[t-3],e[t-2],e[t]),n.setTooltip(e[t-3],e[t-1]);break;case 89:this.$=e[t-3],n.setClickEvent(e[t-2],e[t-1],e[t]);break;case 90:this.$=e[t-4],n.setClickEvent(e[t-3],e[t-2],e[t-1]),n.setTooltip(e[t-3],e[t]);break;case 91:this.$=e[t-3],n.setLink(e[t-2],e[t]);break;case 92:this.$=e[t-4],n.setLink(e[t-3],e[t-1],e[t]);break;case 93:this.$=e[t-4],n.setLink(e[t-3],e[t-1]),n.setTooltip(e[t-3],e[t]);break;case 94:this.$=e[t-5],n.setLink(e[t-4],e[t-2],e[t]),n.setTooltip(e[t-4],e[t-1]);break;case 95:this.$=e[t-2],n.setCssStyle(e[t-1],e[t]);break;case 96:n.setCssClass(e[t-1],e[t]);break;case 97:this.$=[e[t]];break;case 98:e[t-2].push(e[t]),this.$=e[t-2];break;case 100:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:r,49:c,51:A,52:g,54:D,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(De,[2,5],{8:[1,48]}),{8:[1,49]},s(d,[2,19],{22:[1,50]}),s(d,[2,21]),s(d,[2,22]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),{34:[1,51]},{36:[1,52]},s(d,[2,33]),s(d,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:ne,73:Fe,74:Be}),{39:[1,65]},s(z,[2,40],{39:[1,67],44:[1,66]}),s(d,[2,55]),s(d,[2,56]),{16:68,60:m,86:b,100:E,102:y},{16:39,17:40,19:69,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:70,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:71,60:m,86:b,100:E,102:y,103:T},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:m,86:b,100:E,102:y,103:T},{13:Pe,55:75},{58:77,60:[1,78]},s(d,[2,66]),s(d,[2,67]),s(d,[2,68]),s(d,[2,69]),s(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:m,86:b,100:E,102:y,103:T}),s(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:86,60:m,86:b,100:E,102:y,103:T},s(re,[2,123]),s(re,[2,124]),s(re,[2,125]),s(re,[2,126]),s([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),s(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:a,37:u,42:l,46:r,49:c,51:A,52:g,54:D,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:r,49:c,51:A,52:g,54:D,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T},s(d,[2,20]),s(d,[2,31]),s(d,[2,32]),{13:[1,90],16:39,17:40,19:89,60:m,86:b,100:E,102:y,103:T},{53:91,66:56,67:57,68:te,69:se,70:ie,71:ae,72:ne,73:Fe,74:Be},s(d,[2,54]),{67:92,73:Fe,74:Be},s(ue,[2,73],{66:93,68:te,69:se,70:ie,71:ae,72:ne}),s(K,[2,74]),s(K,[2,75]),s(K,[2,76]),s(K,[2,77]),s(K,[2,78]),s(Me,[2,79]),s(Me,[2,80]),{8:[1,95],24:96,40:94,43:23,46:r},{16:97,60:m,86:b,100:E,102:y},{41:[1,99],45:98,51:_e},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:Y,48:Q,59:106,60:W,82:j,84:107,85:108,86:X,87:q,88:H,89:J,90:Z},{60:[1,118]},{13:Pe,55:119},s(d,[2,62]),s(d,[2,128]),{22:Y,48:Q,59:120,60:W,61:[1,121],82:j,84:107,85:108,86:X,87:q,88:H,89:J,90:Z},s(Re,[2,64]),{16:39,17:40,19:122,60:m,86:b,100:E,102:y,103:T},s(P,[2,16]),s(P,[2,17]),s(P,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:m,86:b,100:E,102:y,103:T},{39:[2,10]},s(Se,[2,45],{11:125,12:[1,126]}),s(De,[2,7]),{9:[1,127]},s(le,[2,57]),{16:39,17:40,19:128,60:m,86:b,100:E,102:y,103:T},{13:[1,130],16:39,17:40,19:129,60:m,86:b,100:E,102:y,103:T},s(ue,[2,72],{66:131,68:te,69:se,70:ie,71:ae,72:ne}),s(ue,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:r},{8:[1,134],41:[2,37]},s(z,[2,41],{39:[1,135]}),{41:[1,136]},s(z,[2,43]),{41:[2,51],45:137,51:_e},{16:39,17:40,19:138,60:m,86:b,100:E,102:y,103:T},s(d,[2,81],{13:[1,139]}),s(d,[2,83],{13:[1,141],77:[1,140]}),s(d,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},s(d,[2,95],{61:Ge}),s(Ue,[2,97],{85:146,22:Y,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(N,[2,99]),s(N,[2,101]),s(N,[2,102]),s(N,[2,103]),s(N,[2,104]),s(N,[2,105]),s(N,[2,106]),s(N,[2,107]),s(N,[2,108]),s(N,[2,109]),s(d,[2,96]),s(d,[2,61]),s(d,[2,63],{61:Ge}),{60:[1,147]},s(P,[2,14]),{15:148,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{39:[2,12]},s(Se,[2,46]),{13:[1,149]},{1:[2,4]},s(le,[2,59]),s(le,[2,58]),{16:39,17:40,19:150,60:m,86:b,100:E,102:y,103:T},s(ue,[2,70]),s(d,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:r},{45:153,51:_e},s(z,[2,42]),{41:[2,52]},s(d,[2,50]),s(d,[2,82]),s(d,[2,84]),s(d,[2,85],{77:[1,154]}),s(d,[2,88]),s(d,[2,89],{13:[1,155]}),s(d,[2,91],{13:[1,157],77:[1,156]}),{22:Y,48:Q,60:W,82:j,84:158,85:108,86:X,87:q,88:H,89:J,90:Z},s(N,[2,100]),s(Re,[2,65]),{39:[2,11]},{14:[1,159]},s(le,[2,60]),s(d,[2,35]),{41:[2,39]},{41:[1,160]},s(d,[2,86]),s(d,[2,90]),s(d,[2,92]),s(d,[2,93],{77:[1,161]}),s(Ue,[2,98],{85:146,22:Y,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(Se,[2,8]),s(z,[2,44]),s(d,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:f(function(o){var h=this,p=[0],n=[],C=[null],e=[],$=this.table,t="",ce=0,ze=0,He=2,Ke=1,Je=e.slice.call(arguments,1),k=Object.create(this.lexer),O={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(O.yy[Le]=this.yy[Le]);k.setInput(o,O.yy),O.yy.lexer=k,O.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var xe=k.yylloc;e.push(xe);var Ze=k.options&&k.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $e(_){p.length=p.length-2*_,C.length=C.length-_,e.length=e.length-_}f($e,"popStack");function Ye(){var _;return _=n.pop()||k.lex()||Ke,typeof _!="number"&&(_ instanceof Array&&(n=_,_=n.pop()),_=h.symbols_[_]||_),_}f(Ye,"lex");for(var B,w,S,ve,M={},he,x,Qe,de;;){if(w=p[p.length-1],this.defaultActions[w]?S=this.defaultActions[w]:((B===null||typeof B>"u")&&(B=Ye()),S=$[w]&&$[w][B]),typeof S>"u"||!S.length||!S[0]){var Ie="";de=[];for(he in $[w])this.terminals_[he]&&he>He&&de.push("'"+this.terminals_[he]+"'");k.showPosition?Ie="Parse error on line "+(ce+1)+`: +import{g as et}from"./chunk-FMBD7UC4-_lv-Ir7k.js";import{g as tt}from"./chunk-55IACEB6-BRDK9d3b.js";import{s as st}from"./chunk-QN33PNHL-Ni-_soP9.js";import{_ as f,l as Oe,c as F,o as it,r as at,u as we,d as ee,b as nt,a as rt,s as ut,g as lt,p as ot,q as ct,k as v,y as ht,x as dt,i as pt,Q as R}from"./index-CnXIpKtg.js";var Ve=(function(){var s=f(function(I,o,h,p){for(h=h||{},p=I.length;p--;h[I[p]]=o);return h},"o"),i=[1,18],a=[1,19],u=[1,20],l=[1,41],r=[1,42],c=[1,26],A=[1,24],g=[1,25],D=[1,32],L=[1,33],Ae=[1,34],m=[1,45],fe=[1,35],ge=[1,36],Ce=[1,37],me=[1,38],be=[1,27],Ee=[1,28],ye=[1,29],Te=[1,30],ke=[1,31],b=[1,44],E=[1,46],y=[1,43],T=[1,47],De=[1,9],d=[1,8,9],te=[1,58],se=[1,59],ie=[1,60],ae=[1,61],ne=[1,62],Fe=[1,63],Be=[1,64],z=[1,8,9,41],Pe=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],re=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ue=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Me=[13,60,68,69,70,71,72,86,100,102,103],_e=[1,100],Y=[1,117],Q=[1,113],W=[1,109],j=[1,115],X=[1,110],q=[1,111],H=[1,112],J=[1,114],Z=[1,116],Re=[22,48,60,61,82,86,87,88,89,90],Se=[1,8,9,39,41,44],le=[1,8,9,22],Ge=[1,145],Ue=[1,8,9,61],N=[1,8,9,22,48,60,61,82,86,87,88,89,90],Ne={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(o,h,p,n,C,e,$){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:n.addRelation(e[t]);break;case 20:e[t-1].title=n.cleanupLabel(e[t]),n.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),n.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),n.setAccDescription(this.$);break;case 34:n.addClassesToNamespace(e[t-3],e[t-1]);break;case 35:n.addClassesToNamespace(e[t-4],e[t-1]);break;case 36:this.$=e[t],n.addNamespace(e[t]);break;case 37:this.$=[e[t]];break;case 38:this.$=[e[t-1]];break;case 39:e[t].unshift(e[t-2]),this.$=e[t];break;case 41:n.setCssClass(e[t-2],e[t]);break;case 42:n.addMembers(e[t-3],e[t-1]);break;case 44:n.setCssClass(e[t-5],e[t-3]),n.addMembers(e[t-5],e[t-1]);break;case 45:this.$=e[t],n.addClass(e[t]);break;case 46:this.$=e[t-1],n.addClass(e[t-1]),n.setClassLabel(e[t-1],e[t]);break;case 50:n.addAnnotation(e[t],e[t-2]);break;case 51:case 64:this.$=[e[t]];break;case 52:e[t].push(e[t-1]),this.$=e[t];break;case 53:break;case 54:n.addMember(e[t-1],n.cleanupLabel(e[t]));break;case 55:break;case 56:break;case 57:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 59:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 60:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 61:n.addNote(e[t],e[t-1]);break;case 62:n.addNote(e[t]);break;case 63:this.$=e[t-2],n.defineClass(e[t-1],e[t]);break;case 65:this.$=e[t-2].concat([e[t]]);break;case 66:n.setDirection("TB");break;case 67:n.setDirection("BT");break;case 68:n.setDirection("RL");break;case 69:n.setDirection("LR");break;case 70:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 71:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 72:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 73:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 74:this.$=n.relationType.AGGREGATION;break;case 75:this.$=n.relationType.EXTENSION;break;case 76:this.$=n.relationType.COMPOSITION;break;case 77:this.$=n.relationType.DEPENDENCY;break;case 78:this.$=n.relationType.LOLLIPOP;break;case 79:this.$=n.lineType.LINE;break;case 80:this.$=n.lineType.DOTTED_LINE;break;case 81:case 87:this.$=e[t-2],n.setClickEvent(e[t-1],e[t]);break;case 82:case 88:this.$=e[t-3],n.setClickEvent(e[t-2],e[t-1]),n.setTooltip(e[t-2],e[t]);break;case 83:this.$=e[t-2],n.setLink(e[t-1],e[t]);break;case 84:this.$=e[t-3],n.setLink(e[t-2],e[t-1],e[t]);break;case 85:this.$=e[t-3],n.setLink(e[t-2],e[t-1]),n.setTooltip(e[t-2],e[t]);break;case 86:this.$=e[t-4],n.setLink(e[t-3],e[t-2],e[t]),n.setTooltip(e[t-3],e[t-1]);break;case 89:this.$=e[t-3],n.setClickEvent(e[t-2],e[t-1],e[t]);break;case 90:this.$=e[t-4],n.setClickEvent(e[t-3],e[t-2],e[t-1]),n.setTooltip(e[t-3],e[t]);break;case 91:this.$=e[t-3],n.setLink(e[t-2],e[t]);break;case 92:this.$=e[t-4],n.setLink(e[t-3],e[t-1],e[t]);break;case 93:this.$=e[t-4],n.setLink(e[t-3],e[t-1]),n.setTooltip(e[t-3],e[t]);break;case 94:this.$=e[t-5],n.setLink(e[t-4],e[t-2],e[t]),n.setTooltip(e[t-4],e[t-1]);break;case 95:this.$=e[t-2],n.setCssStyle(e[t-1],e[t]);break;case 96:n.setCssClass(e[t-1],e[t]);break;case 97:this.$=[e[t]];break;case 98:e[t-2].push(e[t]),this.$=e[t-2];break;case 100:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:r,49:c,51:A,52:g,54:D,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(De,[2,5],{8:[1,48]}),{8:[1,49]},s(d,[2,19],{22:[1,50]}),s(d,[2,21]),s(d,[2,22]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),{34:[1,51]},{36:[1,52]},s(d,[2,33]),s(d,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:te,69:se,70:ie,71:ae,72:ne,73:Fe,74:Be}),{39:[1,65]},s(z,[2,40],{39:[1,67],44:[1,66]}),s(d,[2,55]),s(d,[2,56]),{16:68,60:m,86:b,100:E,102:y},{16:39,17:40,19:69,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:70,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:71,60:m,86:b,100:E,102:y,103:T},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:m,86:b,100:E,102:y,103:T},{13:Pe,55:75},{58:77,60:[1,78]},s(d,[2,66]),s(d,[2,67]),s(d,[2,68]),s(d,[2,69]),s(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:m,86:b,100:E,102:y,103:T}),s(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:86,60:m,86:b,100:E,102:y,103:T},s(re,[2,123]),s(re,[2,124]),s(re,[2,125]),s(re,[2,126]),s([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),s(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:a,37:u,42:l,46:r,49:c,51:A,52:g,54:D,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:r,49:c,51:A,52:g,54:D,56:L,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:Te,83:ke,86:b,100:E,102:y,103:T},s(d,[2,20]),s(d,[2,31]),s(d,[2,32]),{13:[1,90],16:39,17:40,19:89,60:m,86:b,100:E,102:y,103:T},{53:91,66:56,67:57,68:te,69:se,70:ie,71:ae,72:ne,73:Fe,74:Be},s(d,[2,54]),{67:92,73:Fe,74:Be},s(ue,[2,73],{66:93,68:te,69:se,70:ie,71:ae,72:ne}),s(K,[2,74]),s(K,[2,75]),s(K,[2,76]),s(K,[2,77]),s(K,[2,78]),s(Me,[2,79]),s(Me,[2,80]),{8:[1,95],24:96,40:94,43:23,46:r},{16:97,60:m,86:b,100:E,102:y},{41:[1,99],45:98,51:_e},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:Y,48:Q,59:106,60:W,82:j,84:107,85:108,86:X,87:q,88:H,89:J,90:Z},{60:[1,118]},{13:Pe,55:119},s(d,[2,62]),s(d,[2,128]),{22:Y,48:Q,59:120,60:W,61:[1,121],82:j,84:107,85:108,86:X,87:q,88:H,89:J,90:Z},s(Re,[2,64]),{16:39,17:40,19:122,60:m,86:b,100:E,102:y,103:T},s(P,[2,16]),s(P,[2,17]),s(P,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:m,86:b,100:E,102:y,103:T},{39:[2,10]},s(Se,[2,45],{11:125,12:[1,126]}),s(De,[2,7]),{9:[1,127]},s(le,[2,57]),{16:39,17:40,19:128,60:m,86:b,100:E,102:y,103:T},{13:[1,130],16:39,17:40,19:129,60:m,86:b,100:E,102:y,103:T},s(ue,[2,72],{66:131,68:te,69:se,70:ie,71:ae,72:ne}),s(ue,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:r},{8:[1,134],41:[2,37]},s(z,[2,41],{39:[1,135]}),{41:[1,136]},s(z,[2,43]),{41:[2,51],45:137,51:_e},{16:39,17:40,19:138,60:m,86:b,100:E,102:y,103:T},s(d,[2,81],{13:[1,139]}),s(d,[2,83],{13:[1,141],77:[1,140]}),s(d,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},s(d,[2,95],{61:Ge}),s(Ue,[2,97],{85:146,22:Y,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(N,[2,99]),s(N,[2,101]),s(N,[2,102]),s(N,[2,103]),s(N,[2,104]),s(N,[2,105]),s(N,[2,106]),s(N,[2,107]),s(N,[2,108]),s(N,[2,109]),s(d,[2,96]),s(d,[2,61]),s(d,[2,63],{61:Ge}),{60:[1,147]},s(P,[2,14]),{15:148,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{39:[2,12]},s(Se,[2,46]),{13:[1,149]},{1:[2,4]},s(le,[2,59]),s(le,[2,58]),{16:39,17:40,19:150,60:m,86:b,100:E,102:y,103:T},s(ue,[2,70]),s(d,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:r},{45:153,51:_e},s(z,[2,42]),{41:[2,52]},s(d,[2,50]),s(d,[2,82]),s(d,[2,84]),s(d,[2,85],{77:[1,154]}),s(d,[2,88]),s(d,[2,89],{13:[1,155]}),s(d,[2,91],{13:[1,157],77:[1,156]}),{22:Y,48:Q,60:W,82:j,84:158,85:108,86:X,87:q,88:H,89:J,90:Z},s(N,[2,100]),s(Re,[2,65]),{39:[2,11]},{14:[1,159]},s(le,[2,60]),s(d,[2,35]),{41:[2,39]},{41:[1,160]},s(d,[2,86]),s(d,[2,90]),s(d,[2,92]),s(d,[2,93],{77:[1,161]}),s(Ue,[2,98],{85:146,22:Y,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(Se,[2,8]),s(z,[2,44]),s(d,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:f(function(o){var h=this,p=[0],n=[],C=[null],e=[],$=this.table,t="",ce=0,ze=0,He=2,Ke=1,Je=e.slice.call(arguments,1),k=Object.create(this.lexer),O={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(O.yy[Le]=this.yy[Le]);k.setInput(o,O.yy),O.yy.lexer=k,O.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var xe=k.yylloc;e.push(xe);var Ze=k.options&&k.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $e(_){p.length=p.length-2*_,C.length=C.length-_,e.length=e.length-_}f($e,"popStack");function Ye(){var _;return _=n.pop()||k.lex()||Ke,typeof _!="number"&&(_ instanceof Array&&(n=_,_=n.pop()),_=h.symbols_[_]||_),_}f(Ye,"lex");for(var B,w,S,ve,M={},he,x,Qe,de;;){if(w=p[p.length-1],this.defaultActions[w]?S=this.defaultActions[w]:((B===null||typeof B>"u")&&(B=Ye()),S=$[w]&&$[w][B]),typeof S>"u"||!S.length||!S[0]){var Ie="";de=[];for(he in $[w])this.terminals_[he]&&he>He&&de.push("'"+this.terminals_[he]+"'");k.showPosition?Ie="Parse error on line "+(ce+1)+`: `+k.showPosition()+` Expecting `+de.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ie="Parse error on line "+(ce+1)+": Unexpected "+(B==Ke?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ie,{text:k.match,token:this.terminals_[B]||B,line:k.yylineno,loc:xe,expected:de})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+w+", token: "+B);switch(S[0]){case 1:p.push(B),C.push(k.yytext),e.push(k.yylloc),p.push(S[1]),B=null,ze=k.yyleng,t=k.yytext,ce=k.yylineno,xe=k.yylloc;break;case 2:if(x=this.productions_[S[1]][1],M.$=C[C.length-x],M._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},Ze&&(M._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),ve=this.performAction.apply(M,[t,ze,ce,O.yy,S[1],C,e].concat(Je)),typeof ve<"u")return ve;x&&(p=p.slice(0,-1*x*2),C=C.slice(0,-1*x),e=e.slice(0,-1*x)),p.push(this.productions_[S[1]][0]),C.push(M.$),e.push(M._$),Qe=$[p[p.length-2]][p[p.length-1]],p.push(Qe);break;case 3:return!0}}return!0},"parse")},qe=(function(){var I={EOF:1,parseError:f(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:f(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:f(function(o){var h=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===n.length?this.yylloc.first_column:0)+n[n.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/src/adclaw/console/assets/chunk-DI55MBZ5-BdK_uSZV.js b/src/adclaw/console/assets/chunk-DI55MBZ5-Cy3a0Lf9.js similarity index 99% rename from src/adclaw/console/assets/chunk-DI55MBZ5-BdK_uSZV.js rename to src/adclaw/console/assets/chunk-DI55MBZ5-Cy3a0Lf9.js index f396421..1336f2d 100644 --- a/src/adclaw/console/assets/chunk-DI55MBZ5-BdK_uSZV.js +++ b/src/adclaw/console/assets/chunk-DI55MBZ5-Cy3a0Lf9.js @@ -1,4 +1,4 @@ -import{g as te}from"./chunk-55IACEB6-HWQqZTFV.js";import{s as ee}from"./chunk-QN33PNHL-Bfn-g6m4.js";import{_ as f,l as D,c as F,r as se,u as ie,a as re,b as ae,g as ne,s as oe,p as le,q as ce,T as he,k as W,y as ue}from"./index-C-alNCkd.js";var vt=(function(){var e=f(function(V,o,h,n){for(h=h||{},n=V.length;n--;h[V[n]]=o);return h},"o"),t=[1,2],s=[1,3],a=[1,4],i=[2,4],l=[1,9],d=[1,11],S=[1,16],p=[1,17],T=[1,18],_=[1,19],m=[1,33],k=[1,20],A=[1,21],$=[1,22],x=[1,23],R=[1,24],u=[1,26],L=[1,27],I=[1,28],N=[1,29],G=[1,30],P=[1,31],B=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(o,h,n,g,E,r,Z){var c=r.length-1;switch(E){case 3:return g.setRootDoc(r[c]),r[c];case 4:this.$=[];break;case 5:r[c]!="nl"&&(r[c-1].push(r[c]),this.$=r[c-1]);break;case 6:case 7:this.$=r[c];break;case 8:this.$="nl";break;case 12:this.$=r[c];break;case 13:const tt=r[c-1];tt.description=g.trimColon(r[c]),this.$=tt;break;case 14:this.$={stmt:"relation",state1:r[c-2],state2:r[c]};break;case 15:const Tt=g.trimColon(r[c]);this.$={stmt:"relation",state1:r[c-3],state2:r[c-1],description:Tt};break;case 19:this.$={stmt:"state",id:r[c-3],type:"default",description:"",doc:r[c-1]};break;case 20:var U=r[c],X=r[c-2].trim();if(r[c].match(":")){var ut=r[c].split(":");U=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:U,type:"default",description:X};break;case 21:this.$={stmt:"state",id:r[c-3],type:"default",description:r[c-5],doc:r[c-1]};break;case 22:this.$={stmt:"state",id:r[c],type:"fork"};break;case 23:this.$={stmt:"state",id:r[c],type:"join"};break;case 24:this.$={stmt:"state",id:r[c],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[c-1].trim(),note:{position:r[c-2].trim(),text:r[c].trim()}};break;case 29:this.$=r[c].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=r[c].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[c-3],url:r[c-2],tooltip:r[c-1]};break;case 33:this.$={stmt:"click",id:r[c-3],url:r[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[c-1].trim(),classes:r[c].trim()};break;case 36:this.$={stmt:"style",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 37:this.$={stmt:"applyClass",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:s,6:a},{1:[3]},{3:5,4:t,5:s,6:a},{3:6,4:t,5:s,6:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,7]),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(y,[2,11]),e(y,[2,12],{14:[1,40],15:[1,41]}),e(y,[2,16]),{18:[1,42]},e(y,[2,18],{20:[1,43]}),{23:[1,44]},e(y,[2,22]),e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(y,[2,28]),{34:[1,49]},{36:[1,50]},e(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(ct,[2,44],{58:[1,56]}),e(ct,[2,45],{58:[1,57]}),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,41]),e(y,[2,6]),e(y,[2,13]),{13:58,24:m,57:K},e(y,[2,17]),e(xt,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(y,[2,29]),e(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(y,[2,14],{14:[1,71]}),{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,72],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(ct,[2,46]),e(ct,[2,47]),e(y,[2,15]),e(y,[2,19]),e(xt,i,{7:78}),e(y,[2,26]),e(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,81],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,32]),e(y,[2,33]),e(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=h,n}},"parseError"),parse:f(function(o){var h=this,n=[0],g=[],E=[null],r=[],Z=this.table,c="",U=0,X=0,ut=2,tt=1,Tt=r.slice.call(arguments,1),b=Object.create(this.lexer),j={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(j.yy[Et]=this.yy[Et]);b.setInput(o,j.yy),j.yy.lexer=b,j.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var _t=b.yylloc;r.push(_t);var Qt=b.options&&b.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(O){n.length=n.length-2*O,E.length=E.length-O,r.length=r.length-O}f(Zt,"popStack");function Lt(){var O;return O=g.pop()||b.lex()||tt,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}f(Lt,"lex");for(var C,H,w,mt,J={},dt,Y,Ot,ft;;){if(H=n[n.length-1],this.defaultActions[H]?w=this.defaultActions[H]:((C===null||typeof C>"u")&&(C=Lt()),w=Z[H]&&Z[H][C]),typeof w>"u"||!w.length||!w[0]){var Dt="";ft=[];for(dt in Z[H])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");b.showPosition?Dt="Parse error on line "+(U+1)+`: +import{g as te}from"./chunk-55IACEB6-BRDK9d3b.js";import{s as ee}from"./chunk-QN33PNHL-Ni-_soP9.js";import{_ as f,l as D,c as F,r as se,u as ie,a as re,b as ae,g as ne,s as oe,p as le,q as ce,T as he,k as W,y as ue}from"./index-CnXIpKtg.js";var vt=(function(){var e=f(function(V,o,h,n){for(h=h||{},n=V.length;n--;h[V[n]]=o);return h},"o"),t=[1,2],s=[1,3],a=[1,4],i=[2,4],l=[1,9],d=[1,11],S=[1,16],p=[1,17],T=[1,18],_=[1,19],m=[1,33],k=[1,20],A=[1,21],$=[1,22],x=[1,23],R=[1,24],u=[1,26],L=[1,27],I=[1,28],N=[1,29],G=[1,30],P=[1,31],B=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(o,h,n,g,E,r,Z){var c=r.length-1;switch(E){case 3:return g.setRootDoc(r[c]),r[c];case 4:this.$=[];break;case 5:r[c]!="nl"&&(r[c-1].push(r[c]),this.$=r[c-1]);break;case 6:case 7:this.$=r[c];break;case 8:this.$="nl";break;case 12:this.$=r[c];break;case 13:const tt=r[c-1];tt.description=g.trimColon(r[c]),this.$=tt;break;case 14:this.$={stmt:"relation",state1:r[c-2],state2:r[c]};break;case 15:const Tt=g.trimColon(r[c]);this.$={stmt:"relation",state1:r[c-3],state2:r[c-1],description:Tt};break;case 19:this.$={stmt:"state",id:r[c-3],type:"default",description:"",doc:r[c-1]};break;case 20:var U=r[c],X=r[c-2].trim();if(r[c].match(":")){var ut=r[c].split(":");U=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:U,type:"default",description:X};break;case 21:this.$={stmt:"state",id:r[c-3],type:"default",description:r[c-5],doc:r[c-1]};break;case 22:this.$={stmt:"state",id:r[c],type:"fork"};break;case 23:this.$={stmt:"state",id:r[c],type:"join"};break;case 24:this.$={stmt:"state",id:r[c],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[c-1].trim(),note:{position:r[c-2].trim(),text:r[c].trim()}};break;case 29:this.$=r[c].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=r[c].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[c-3],url:r[c-2],tooltip:r[c-1]};break;case 33:this.$={stmt:"click",id:r[c-3],url:r[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[c-1].trim(),classes:r[c].trim()};break;case 36:this.$={stmt:"style",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 37:this.$={stmt:"applyClass",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:s,6:a},{1:[3]},{3:5,4:t,5:s,6:a},{3:6,4:t,5:s,6:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,7]),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(y,[2,11]),e(y,[2,12],{14:[1,40],15:[1,41]}),e(y,[2,16]),{18:[1,42]},e(y,[2,18],{20:[1,43]}),{23:[1,44]},e(y,[2,22]),e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(y,[2,28]),{34:[1,49]},{36:[1,50]},e(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(ct,[2,44],{58:[1,56]}),e(ct,[2,45],{58:[1,57]}),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,41]),e(y,[2,6]),e(y,[2,13]),{13:58,24:m,57:K},e(y,[2,17]),e(xt,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(y,[2,29]),e(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(y,[2,14],{14:[1,71]}),{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,72],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(ct,[2,46]),e(ct,[2,47]),e(y,[2,15]),e(y,[2,19]),e(xt,i,{7:78}),e(y,[2,26]),e(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,81],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,32]),e(y,[2,33]),e(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=h,n}},"parseError"),parse:f(function(o){var h=this,n=[0],g=[],E=[null],r=[],Z=this.table,c="",U=0,X=0,ut=2,tt=1,Tt=r.slice.call(arguments,1),b=Object.create(this.lexer),j={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(j.yy[Et]=this.yy[Et]);b.setInput(o,j.yy),j.yy.lexer=b,j.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var _t=b.yylloc;r.push(_t);var Qt=b.options&&b.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(O){n.length=n.length-2*O,E.length=E.length-O,r.length=r.length-O}f(Zt,"popStack");function Lt(){var O;return O=g.pop()||b.lex()||tt,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}f(Lt,"lex");for(var C,H,w,mt,J={},dt,Y,Ot,ft;;){if(H=n[n.length-1],this.defaultActions[H]?w=this.defaultActions[H]:((C===null||typeof C>"u")&&(C=Lt()),w=Z[H]&&Z[H][C]),typeof w>"u"||!w.length||!w[0]){var Dt="";ft=[];for(dt in Z[H])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");b.showPosition?Dt="Parse error on line "+(U+1)+`: `+b.showPosition()+` Expecting `+ft.join(", ")+", got '"+(this.terminals_[C]||C)+"'":Dt="Parse error on line "+(U+1)+": Unexpected "+(C==tt?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(Dt,{text:b.match,token:this.terminals_[C]||C,line:b.yylineno,loc:_t,expected:ft})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+C);switch(w[0]){case 1:n.push(C),E.push(b.yytext),r.push(b.yylloc),n.push(w[1]),C=null,X=b.yyleng,c=b.yytext,U=b.yylineno,_t=b.yylloc;break;case 2:if(Y=this.productions_[w[1]][1],J.$=E[E.length-Y],J._$={first_line:r[r.length-(Y||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(Y||1)].first_column,last_column:r[r.length-1].last_column},Qt&&(J._$.range=[r[r.length-(Y||1)].range[0],r[r.length-1].range[1]]),mt=this.performAction.apply(J,[c,X,U,j.yy,w[1],E,r].concat(Tt)),typeof mt<"u")return mt;Y&&(n=n.slice(0,-1*Y*2),E=E.slice(0,-1*Y),r=r.slice(0,-1*Y)),n.push(this.productions_[w[1]][0]),E.push(J.$),r.push(J._$),Ot=Z[n[n.length-2]][n[n.length-1]],n.push(Ot);break;case 3:return!0}}return!0},"parse")},qt=(function(){var V={EOF:1,parseError:f(function(h,n){if(this.yy.parser)this.yy.parser.parseError(h,n);else throw new Error(h)},"parseError"),setInput:f(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:f(function(o){var h=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===g.length?this.yylloc.first_column:0)+g[g.length-n.length].length-n[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/src/adclaw/console/assets/chunk-FMBD7UC4-C_3apHrX.js b/src/adclaw/console/assets/chunk-FMBD7UC4-_lv-Ir7k.js similarity index 84% rename from src/adclaw/console/assets/chunk-FMBD7UC4-C_3apHrX.js rename to src/adclaw/console/assets/chunk-FMBD7UC4-_lv-Ir7k.js index 771a72b..51a177e 100644 --- a/src/adclaw/console/assets/chunk-FMBD7UC4-C_3apHrX.js +++ b/src/adclaw/console/assets/chunk-FMBD7UC4-_lv-Ir7k.js @@ -1,4 +1,4 @@ -import{_ as e}from"./index-C-alNCkd.js";var l=e(()=>` +import{_ as e}from"./index-CnXIpKtg.js";var l=e(()=>` /* Font Awesome icon styling - consolidated */ .label-icon { display: inline-block; diff --git a/src/adclaw/console/assets/chunk-QN33PNHL-Bfn-g6m4.js b/src/adclaw/console/assets/chunk-QN33PNHL-Ni-_soP9.js similarity index 87% rename from src/adclaw/console/assets/chunk-QN33PNHL-Bfn-g6m4.js rename to src/adclaw/console/assets/chunk-QN33PNHL-Ni-_soP9.js index 229f1fa..65f19b1 100644 --- a/src/adclaw/console/assets/chunk-QN33PNHL-Bfn-g6m4.js +++ b/src/adclaw/console/assets/chunk-QN33PNHL-Ni-_soP9.js @@ -1 +1 @@ -import{_ as a,e as w,l as x}from"./index-C-alNCkd.js";var d=a((e,t,i,o)=>{e.attr("class",i);const{width:r,height:h,x:n,y:c}=u(e,t);w(e,h,r,o);const s=l(n,c,r,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{var o;const i=((o=e.node())==null?void 0:o.getBBox())||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,o,r)=>`${e-r} ${t-r} ${i} ${o}`,"createViewBox");export{d as s}; +import{_ as a,e as w,l as x}from"./index-CnXIpKtg.js";var d=a((e,t,i,o)=>{e.attr("class",i);const{width:r,height:h,x:n,y:c}=u(e,t);w(e,h,r,o);const s=l(n,c,r,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{var o;const i=((o=e.node())==null?void 0:o.getBBox())||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,o,r)=>`${e-r} ${t-r} ${i} ${o}`,"createViewBox");export{d as s}; diff --git a/src/adclaw/console/assets/chunk-QZHKN3VN-DlUXLqBe.js b/src/adclaw/console/assets/chunk-QZHKN3VN-Bemo9eSF.js similarity index 65% rename from src/adclaw/console/assets/chunk-QZHKN3VN-DlUXLqBe.js rename to src/adclaw/console/assets/chunk-QZHKN3VN-Bemo9eSF.js index d5ac71e..85bb4ec 100644 --- a/src/adclaw/console/assets/chunk-QZHKN3VN-DlUXLqBe.js +++ b/src/adclaw/console/assets/chunk-QZHKN3VN-Bemo9eSF.js @@ -1 +1 @@ -import{_ as s}from"./index-C-alNCkd.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; +import{_ as s}from"./index-CnXIpKtg.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I}; diff --git a/src/adclaw/console/assets/chunk-TZMSLE5B-C-awqBe9.js b/src/adclaw/console/assets/chunk-TZMSLE5B-WkZZUiQp.js similarity index 95% rename from src/adclaw/console/assets/chunk-TZMSLE5B-C-awqBe9.js rename to src/adclaw/console/assets/chunk-TZMSLE5B-WkZZUiQp.js index 0b923d6..5d6547b 100644 --- a/src/adclaw/console/assets/chunk-TZMSLE5B-C-awqBe9.js +++ b/src/adclaw/console/assets/chunk-TZMSLE5B-WkZZUiQp.js @@ -1 +1 @@ -import{_ as n,U as o,j as l}from"./index-C-alNCkd.js";var x=n((s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(s,e).lower()},"drawBackgroundRect"),g=n((s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const a=r.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),r},"drawText"),h=n((s,t,e,r)=>{const a=s.append("image");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",i)},"drawImage"),m=n((s,t,e,r)=>{const a=s.append("use");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{d as a,p as b,m as c,x as d,h as e,g as f,y as g}; +import{_ as n,U as o,j as l}from"./index-CnXIpKtg.js";var x=n((s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(s,e).lower()},"drawBackgroundRect"),g=n((s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const a=r.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),r},"drawText"),h=n((s,t,e,r)=>{const a=s.append("image");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",i)},"drawImage"),m=n((s,t,e,r)=>{const a=s.append("use");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{d as a,p as b,m as c,x as d,h as e,g as f,y as g}; diff --git a/src/adclaw/console/assets/classDiagram-2ON5EDUG-C8nUsQQ7.js b/src/adclaw/console/assets/classDiagram-2ON5EDUG-C8nUsQQ7.js deleted file mode 100644 index a18fa09..0000000 --- a/src/adclaw/console/assets/classDiagram-2ON5EDUG-C8nUsQQ7.js +++ /dev/null @@ -1 +0,0 @@ -import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-w0Noq32D.js";import{_ as i}from"./index-C-alNCkd.js";import"./chunk-FMBD7UC4-C_3apHrX.js";import"./chunk-55IACEB6-HWQqZTFV.js";import"./chunk-QN33PNHL-Bfn-g6m4.js";var p={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{p as diagram}; diff --git a/src/adclaw/console/assets/classDiagram-2ON5EDUG-DKdIacjv.js b/src/adclaw/console/assets/classDiagram-2ON5EDUG-DKdIacjv.js new file mode 100644 index 0000000..12135e5 --- /dev/null +++ b/src/adclaw/console/assets/classDiagram-2ON5EDUG-DKdIacjv.js @@ -0,0 +1 @@ +import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-DHog70H7.js";import{_ as i}from"./index-CnXIpKtg.js";import"./chunk-FMBD7UC4-_lv-Ir7k.js";import"./chunk-55IACEB6-BRDK9d3b.js";import"./chunk-QN33PNHL-Ni-_soP9.js";var p={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{p as diagram}; diff --git a/src/adclaw/console/assets/classDiagram-v2-WZHVMYZB-C8nUsQQ7.js b/src/adclaw/console/assets/classDiagram-v2-WZHVMYZB-C8nUsQQ7.js deleted file mode 100644 index a18fa09..0000000 --- a/src/adclaw/console/assets/classDiagram-v2-WZHVMYZB-C8nUsQQ7.js +++ /dev/null @@ -1 +0,0 @@ -import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-w0Noq32D.js";import{_ as i}from"./index-C-alNCkd.js";import"./chunk-FMBD7UC4-C_3apHrX.js";import"./chunk-55IACEB6-HWQqZTFV.js";import"./chunk-QN33PNHL-Bfn-g6m4.js";var p={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{p as diagram}; diff --git a/src/adclaw/console/assets/classDiagram-v2-WZHVMYZB-DKdIacjv.js b/src/adclaw/console/assets/classDiagram-v2-WZHVMYZB-DKdIacjv.js new file mode 100644 index 0000000..12135e5 --- /dev/null +++ b/src/adclaw/console/assets/classDiagram-v2-WZHVMYZB-DKdIacjv.js @@ -0,0 +1 @@ +import{s as a,c as s,a as e,C as t}from"./chunk-B4BG7PRW-DHog70H7.js";import{_ as i}from"./index-CnXIpKtg.js";import"./chunk-FMBD7UC4-_lv-Ir7k.js";import"./chunk-55IACEB6-BRDK9d3b.js";import"./chunk-QN33PNHL-Ni-_soP9.js";var p={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{p as diagram}; diff --git a/src/adclaw/console/assets/clone-CpRDnie0.js b/src/adclaw/console/assets/clone-CpRDnie0.js deleted file mode 100644 index 202a89c..0000000 --- a/src/adclaw/console/assets/clone-CpRDnie0.js +++ /dev/null @@ -1 +0,0 @@ -import{at as r}from"./index-C-alNCkd.js";var a=4;function n(o){return r(o,a)}export{n as c}; diff --git a/src/adclaw/console/assets/clone-z69nb1L5.js b/src/adclaw/console/assets/clone-z69nb1L5.js new file mode 100644 index 0000000..bbd73bd --- /dev/null +++ b/src/adclaw/console/assets/clone-z69nb1L5.js @@ -0,0 +1 @@ +import{at as r}from"./index-CnXIpKtg.js";var a=4;function n(o){return r(o,a)}export{n as c}; diff --git a/src/adclaw/console/assets/cose-bilkent-S5V4N54A-BWT2Jt_z.js b/src/adclaw/console/assets/cose-bilkent-S5V4N54A-5hofHsXZ.js similarity index 99% rename from src/adclaw/console/assets/cose-bilkent-S5V4N54A-BWT2Jt_z.js rename to src/adclaw/console/assets/cose-bilkent-S5V4N54A-5hofHsXZ.js index bce331d..0db0316 100644 --- a/src/adclaw/console/assets/cose-bilkent-S5V4N54A-BWT2Jt_z.js +++ b/src/adclaw/console/assets/cose-bilkent-S5V4N54A-5hofHsXZ.js @@ -1 +1 @@ -import{aM as lt,_ as V,l as $,d as gt}from"./index-C-alNCkd.js";import{c as tt}from"./cytoscape.esm-BQaXIfA_.js";var k={exports:{}},Z={exports:{}},Q={exports:{}},ut=Q.exports,j;function ft(){return j||(j=1,(function(G,b){(function(I,T){G.exports=T()})(ut,function(){return(function(N){var I={};function T(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,T),e.l=!0,e.exports}return T.m=N,T.c=I,T.i=function(o){return o},T.d=function(o,e,t){T.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},T.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return T.d(e,"a",e),e},T.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},T.p="",T(T.s=26)})([(function(N,I,T){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,T){var o=T(2),e=T(8),t=T(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,T){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,T){var o=T(2),e=T(10),t=T(13),i=T(0),l=T(16),g=T(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;vh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,T){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,T){var o=T(2),e=T(10),t=T(0),i=T(6),l=T(3),g=T(1),n=T(13),d=T(12),r=T(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var E=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(E.source=v,E.target=D,E.isInterGraph=!1,this.getEdges().push(E),v.edges.push(E),D!=v&&D.edges.push(E),E)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,E=D.length,y=0;y-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,E,y=this.getNodes(),O=y.length,s=0;sD&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?E=y[0].getParent().paddingLeft:E=this.margin,this.left=v-E,this.top=p-E,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,E=-e.MAX_VALUE,y,O,s,f,c,L=this.nodes,A=L.length,m=0;my&&(v=y),Ds&&(u=s),Ey&&(v=y),Ds&&(u=s),E=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,T){var o,e=T(1);function t(i){o=T(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]r)return l[0]=g,l[1]=a,l[2]=d,l[3]=L,!1;if(nd)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(gd?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=L,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=L,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+E*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-E*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=L,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,E=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,L=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,L=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*L-f*c)/A,E=(O*c-y*L)/A,new o(u,E))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,T){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,T){var o=(function(){function n(d,r){for(var h=0;h"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,T){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),E.add(f);for(var c=f.getEdges(),u=0;u-1&&s.splice(C,1)}E=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u0){for(var D=this.edgeToDummyNodes.get(v),u=0;u=0&&p.splice(L,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,E=p[0])}return E},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,T){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,T){var o=T(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,T){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),E;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),E=new Set,a=0;ay||E>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||E>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=u.length||y>=u[0].length)){for(var O=0;On}}]),l})();N.exports=i}),(function(N,I,T){var o=(function(){function i(l,g){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;lg.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(L){return f.has(L)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,L=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,L),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c1){var R;for(R=0;RL&&(L=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var L=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,L);var A=u.calculateBounds(s),m=new E;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(L-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var q=(c+F*W)%360,ht=(q+W)%360;y.branchRadialLayout(K,s,q,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;cf&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],L=this.graphManager.getAllNodes(),A=0;A"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U=0;s--){var f=this.compoundOrder[s],c=f.id,L=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,L,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var L=s.idToDummyNode[c],A=L.paddingLeft,m=L.paddingTop;s.adjustLocations(f[c],L.rect.x,L.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var L=c.getNodes(),A=0;A0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,L=0;LM&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(L){var A=f[L];c.tiledMemberPack[L]=c.tileNodes(s[L],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[L].width,A.rect.height=c.tiledMemberPack[L].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,L=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:L};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,L=0;Lc&&(f=L,c=s.rowWidth[L]);return f},y.prototype.canAddHorizontal=function(s,f,c){var L=this.getShortestRowIndex(s);if(L<0)return!0;var A=s.rowWidth[L];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[L]0&&(m=c+s.verticalPadding-s.rowHeight[L]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.widthm&&f!=c){L.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;RC&&(C=L[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X0){var R;R=E.getGraphManager().add(E.newGraph(),c),this.processChildrenList(R,f,E)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})(k)),k.exports}var yt=vt();const Et=lt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(T=>{["id","label","height","width","padding","x","y"].includes(T)||(I[T]=N[T])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(T=>{["id","start","end"].includes(T)||(I[T]=N[T])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=gt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const T={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(T).run(),I.ready(o=>{$.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),T={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(T[o]=N[o])}),T})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,T={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(T[o]=N[o])}),T})}V(ot,"extractPositionedEdges");async function st(G,b){$.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),T=ot(N);return $.debug(`Layout completed: ${I.length} nodes, ${T.length} edges`),{nodes:I,edges:T}}catch(N){throw $.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:T,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const E={...u};n[u.id]=E,g[u.id]=E,await N(r,u)}else{const E={...u};g[u.id]=E;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();E.width=O.width,E.height=O.height,E.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const E=g[u.id];return{...u,width:E.width,height:E.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const E=g[u.id];E!=null&&E.domId&&(E.domId.attr("transform",`translate(${u.x}, ${u.y})`),E.x=u.x,E.y=u.y,t.debug(`Positioned node ${E.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const E=G.edges.find(y=>y.id===u.id);E&&(E.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await T(a,u);const E=g[u.start??""],y=g[u.end??""];if(E&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,E,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:E.x||0,y:E.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,E,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),At=Lt;export{At as render}; +import{aM as lt,_ as V,l as $,d as gt}from"./index-CnXIpKtg.js";import{c as tt}from"./cytoscape.esm-BQaXIfA_.js";var k={exports:{}},Z={exports:{}},Q={exports:{}},ut=Q.exports,j;function ft(){return j||(j=1,(function(G,b){(function(I,T){G.exports=T()})(ut,function(){return(function(N){var I={};function T(o){if(I[o])return I[o].exports;var e=I[o]={i:o,l:!1,exports:{}};return N[o].call(e.exports,e,e.exports,T),e.l=!0,e.exports}return T.m=N,T.c=I,T.i=function(o){return o},T.d=function(o,e,t){T.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},T.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return T.d(e,"a",e),e},T.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},T.p="",T(T.s=26)})([(function(N,I,T){function o(){}o.QUALITY=1,o.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,o.DEFAULT_INCREMENTAL=!1,o.DEFAULT_ANIMATION_ON_LAYOUT=!0,o.DEFAULT_ANIMATION_DURING_LAYOUT=!1,o.DEFAULT_ANIMATION_PERIOD=50,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,o.DEFAULT_GRAPH_MARGIN=15,o.NODE_DIMENSIONS_INCLUDE_LABELS=!1,o.SIMPLE_NODE_SIZE=40,o.SIMPLE_NODE_HALF_SIZE=o.SIMPLE_NODE_SIZE/2,o.EMPTY_COMPOUND_NODE_SIZE=40,o.MIN_EDGE_LENGTH=1,o.WORLD_BOUNDARY=1e6,o.INITIAL_WORLD_BOUNDARY=o.WORLD_BOUNDARY/1e3,o.WORLD_CENTER_X=1200,o.WORLD_CENTER_Y=900,N.exports=o}),(function(N,I,T){var o=T(2),e=T(8),t=T(9);function i(g,n,d){o.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=g,this.target=n}i.prototype=Object.create(o.prototype);for(var l in o)i[l]=o[l];i.prototype.getSource=function(){return this.source},i.prototype.getTarget=function(){return this.target},i.prototype.isInterGraph=function(){return this.isInterGraph},i.prototype.getLength=function(){return this.length},i.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},i.prototype.getBendpoints=function(){return this.bendpoints},i.prototype.getLca=function(){return this.lca},i.prototype.getSourceInLca=function(){return this.sourceInLca},i.prototype.getTargetInLca=function(){return this.targetInLca},i.prototype.getOtherEnd=function(g){if(this.source===g)return this.target;if(this.target===g)return this.source;throw"Node is not incident with this edge"},i.prototype.getOtherEndInGraph=function(g,n){for(var d=this.getOtherEnd(g),r=n.getGraphManager().getRoot();;){if(d.getOwner()==n)return d;if(d.getOwner()==r)break;d=d.getOwner().getParent()}return null},i.prototype.updateLength=function(){var g=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),g),this.isOverlapingSourceAndTarget||(this.lengthX=g[0]-g[2],this.lengthY=g[1]-g[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},i.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},N.exports=i}),(function(N,I,T){function o(e){this.vGraphObject=e}N.exports=o}),(function(N,I,T){var o=T(2),e=T(10),t=T(13),i=T(0),l=T(16),g=T(4);function n(r,h,a,p){a==null&&p==null&&(p=h),o.call(this,p),r.graphManager!=null&&(r=r.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=p,this.edges=[],this.graphManager=r,a!=null&&h!=null?this.rect=new t(h.x,h.y,a.width,a.height):this.rect=new t}n.prototype=Object.create(o.prototype);for(var d in o)n[d]=o[d];n.prototype.getEdges=function(){return this.edges},n.prototype.getChild=function(){return this.child},n.prototype.getOwner=function(){return this.owner},n.prototype.getWidth=function(){return this.rect.width},n.prototype.setWidth=function(r){this.rect.width=r},n.prototype.getHeight=function(){return this.rect.height},n.prototype.setHeight=function(r){this.rect.height=r},n.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},n.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},n.prototype.getCenter=function(){return new g(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},n.prototype.getLocation=function(){return new g(this.rect.x,this.rect.y)},n.prototype.getRect=function(){return this.rect},n.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},n.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},n.prototype.setRect=function(r,h){this.rect.x=r.x,this.rect.y=r.y,this.rect.width=h.width,this.rect.height=h.height},n.prototype.setCenter=function(r,h){this.rect.x=r-this.rect.width/2,this.rect.y=h-this.rect.height/2},n.prototype.setLocation=function(r,h){this.rect.x=r,this.rect.y=h},n.prototype.moveBy=function(r,h){this.rect.x+=r,this.rect.y+=h},n.prototype.getEdgeListToNode=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(p.target==r){if(p.source!=a)throw"Incorrect edge source!";h.push(p)}}),h},n.prototype.getEdgesBetween=function(r){var h=[],a=this;return a.edges.forEach(function(p){if(!(p.source==a||p.target==a))throw"Incorrect edge source and/or target";(p.target==r||p.source==r)&&h.push(p)}),h},n.prototype.getNeighborsList=function(){var r=new Set,h=this;return h.edges.forEach(function(a){if(a.source==h)r.add(a.target);else{if(a.target!=h)throw"Incorrect incidency!";r.add(a.source)}}),r},n.prototype.withChildren=function(){var r=new Set,h,a;if(r.add(this),this.child!=null)for(var p=this.child.getNodes(),v=0;vh&&(this.rect.x-=(this.labelWidth-h)/2,this.setWidth(this.labelWidth)),this.labelHeight>a&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-a)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-a),this.setHeight(this.labelHeight))}}},n.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},n.prototype.transform=function(r){var h=this.rect.x;h>i.WORLD_BOUNDARY?h=i.WORLD_BOUNDARY:h<-i.WORLD_BOUNDARY&&(h=-i.WORLD_BOUNDARY);var a=this.rect.y;a>i.WORLD_BOUNDARY?a=i.WORLD_BOUNDARY:a<-i.WORLD_BOUNDARY&&(a=-i.WORLD_BOUNDARY);var p=new g(h,a),v=r.inverseTransformPoint(p);this.setLocation(v.x,v.y)},n.prototype.getLeft=function(){return this.rect.x},n.prototype.getRight=function(){return this.rect.x+this.rect.width},n.prototype.getTop=function(){return this.rect.y},n.prototype.getBottom=function(){return this.rect.y+this.rect.height},n.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},N.exports=n}),(function(N,I,T){function o(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.setX=function(e){this.x=e},o.prototype.setY=function(e){this.y=e},o.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},o.prototype.getCopy=function(){return new o(this.x,this.y)},o.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},N.exports=o}),(function(N,I,T){var o=T(2),e=T(10),t=T(0),i=T(6),l=T(3),g=T(1),n=T(13),d=T(12),r=T(11);function h(p,v,D){o.call(this,D),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=p,v!=null&&v instanceof i?this.graphManager=v:v!=null&&v instanceof Layout&&(this.graphManager=v.graphManager)}h.prototype=Object.create(o.prototype);for(var a in o)h[a]=o[a];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(p,v,D){if(v==null&&D==null){var u=p;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var E=p;if(!(this.getNodes().indexOf(v)>-1&&this.getNodes().indexOf(D)>-1))throw"Source or target not in graph!";if(!(v.owner==D.owner&&v.owner==this))throw"Both owners must be this graph!";return v.owner!=D.owner?null:(E.source=v,E.target=D,E.isInterGraph=!1,this.getEdges().push(E),v.edges.push(E),D!=v&&D.edges.push(E),E)}},h.prototype.remove=function(p){var v=p;if(p instanceof l){if(v==null)throw"Node is null!";if(!(v.owner!=null&&v.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var D=v.edges.slice(),u,E=D.length,y=0;y-1&&f>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(s,1),u.target!=u.source&&u.target.edges.splice(f,1);var O=u.source.owner.getEdges().indexOf(u);if(O==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(O,1)}},h.prototype.updateLeftTop=function(){for(var p=e.MAX_VALUE,v=e.MAX_VALUE,D,u,E,y=this.getNodes(),O=y.length,s=0;sD&&(p=D),v>u&&(v=u)}return p==e.MAX_VALUE?null:(y[0].getParent().paddingLeft!=null?E=y[0].getParent().paddingLeft:E=this.margin,this.left=v-E,this.top=p-E,new d(this.left,this.top))},h.prototype.updateBounds=function(p){for(var v=e.MAX_VALUE,D=-e.MAX_VALUE,u=e.MAX_VALUE,E=-e.MAX_VALUE,y,O,s,f,c,L=this.nodes,A=L.length,m=0;my&&(v=y),Ds&&(u=s),Ey&&(v=y),Ds&&(u=s),E=this.nodes.length){var A=0;D.forEach(function(m){m.owner==p&&A++}),A==this.nodes.length&&(this.isConnected=!0)}},N.exports=h}),(function(N,I,T){var o,e=T(1);function t(i){o=T(5),this.layout=i,this.graphs=[],this.edges=[]}t.prototype.addRoot=function(){var i=this.layout.newGraph(),l=this.layout.newNode(null),g=this.add(i,l);return this.setRootGraph(g),this.rootGraph},t.prototype.add=function(i,l,g,n,d){if(g==null&&n==null&&d==null){if(i==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(i)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(i),i.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return i.parent=l,l.child=i,i}else{d=g,n=l,g=i;var r=n.getOwner(),h=d.getOwner();if(!(r!=null&&r.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(h!=null&&h.getGraphManager()==this))throw"Target not in this graph mgr!";if(r==h)return g.isInterGraph=!1,r.add(g,n,d);if(g.isInterGraph=!0,g.source=n,g.target=d,this.edges.indexOf(g)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(g),!(g.source!=null&&g.target!=null))throw"Edge source and/or target is null!";if(!(g.source.edges.indexOf(g)==-1&&g.target.edges.indexOf(g)==-1))throw"Edge already in source and/or target incidency list!";return g.source.edges.push(g),g.target.edges.push(g),g}},t.prototype.remove=function(i){if(i instanceof o){var l=i;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var g=[];g=g.concat(l.getEdges());for(var n,d=g.length,r=0;r=i.getRight()?l[0]+=Math.min(i.getX()-t.getX(),t.getRight()-i.getRight()):i.getX()<=t.getX()&&i.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-i.getX(),i.getRight()-t.getRight())),t.getY()<=i.getY()&&t.getBottom()>=i.getBottom()?l[1]+=Math.min(i.getY()-t.getY(),t.getBottom()-i.getBottom()):i.getY()<=t.getY()&&i.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-i.getY(),i.getBottom()-t.getBottom()));var d=Math.abs((i.getCenterY()-t.getCenterY())/(i.getCenterX()-t.getCenterX()));i.getCenterY()===t.getCenterY()&&i.getCenterX()===t.getCenterX()&&(d=1);var r=d*l[0],h=l[1]/d;l[0]r)return l[0]=g,l[1]=a,l[2]=d,l[3]=L,!1;if(nd)return l[0]=h,l[1]=n,l[2]=f,l[3]=r,!1;if(gd?(l[0]=v,l[1]=D,R=!0):(l[0]=p,l[1]=a,R=!0):S===w&&(g>d?(l[0]=h,l[1]=a,R=!0):(l[0]=u,l[1]=D,R=!0)),-Y===w?d>g?(l[2]=c,l[3]=L,M=!0):(l[2]=f,l[3]=s,M=!0):Y===w&&(d>g?(l[2]=O,l[3]=s,M=!0):(l[2]=A,l[3]=L,M=!0)),R&&M)return!1;if(g>d?n>r?(x=this.getCardinalDirection(S,w,4),F=this.getCardinalDirection(Y,w,2)):(x=this.getCardinalDirection(-S,w,3),F=this.getCardinalDirection(-Y,w,1)):n>r?(x=this.getCardinalDirection(-S,w,1),F=this.getCardinalDirection(-Y,w,3)):(x=this.getCardinalDirection(S,w,2),F=this.getCardinalDirection(Y,w,4)),!R)switch(x){case 1:P=a,U=g+-y/w,l[0]=U,l[1]=P;break;case 2:U=u,P=n+E*w,l[0]=U,l[1]=P;break;case 3:P=D,U=g+y/w,l[0]=U,l[1]=P;break;case 4:U=v,P=n+-E*w,l[0]=U,l[1]=P;break}if(!M)switch(F){case 1:X=s,_=d+-C/w,l[2]=_,l[3]=X;break;case 2:_=A,X=r+m*w,l[2]=_,l[3]=X;break;case 3:X=L,_=d+C/w,l[2]=_,l[3]=X;break;case 4:_=c,X=r+-m*w,l[2]=_,l[3]=X;break}}return!1},e.getCardinalDirection=function(t,i,l){return t>i?l:1+l%4},e.getIntersection=function(t,i,l,g){if(g==null)return this.getIntersection2(t,i,l);var n=t.x,d=t.y,r=i.x,h=i.y,a=l.x,p=l.y,v=g.x,D=g.y,u=void 0,E=void 0,y=void 0,O=void 0,s=void 0,f=void 0,c=void 0,L=void 0,A=void 0;return y=h-d,s=n-r,c=r*d-n*h,O=D-p,f=a-v,L=v*p-a*D,A=y*f-O*s,A===0?null:(u=(s*L-f*c)/A,E=(O*c-y*L)/A,new o(u,E))},e.angleOfVector=function(t,i,l,g){var n=void 0;return t!==l?(n=Math.atan((g-i)/(l-t)),l0?1:e<0?-1:0},o.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},o.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},N.exports=o}),(function(N,I,T){function o(){}o.MAX_VALUE=2147483647,o.MIN_VALUE=-2147483648,N.exports=o}),(function(N,I,T){var o=(function(){function n(d,r){for(var h=0;h"u"?"undefined":o(t);return t==null||i!="object"&&i!="function"},N.exports=e}),(function(N,I,T){function o(a){if(Array.isArray(a)){for(var p=0,v=Array(a.length);p0&&p;){for(y.push(s[0]);y.length>0&&p;){var f=y[0];y.splice(0,1),E.add(f);for(var c=f.getEdges(),u=0;u-1&&s.splice(C,1)}E=new Set,O=new Map}}return a},h.prototype.createDummyNodesForBendpoints=function(a){for(var p=[],v=a.source,D=this.graphManager.calcLowestCommonAncestor(a.source,a.target),u=0;u0){for(var D=this.edgeToDummyNodes.get(v),u=0;u=0&&p.splice(L,1);var A=O.getNeighborsList();A.forEach(function(R){if(v.indexOf(R)<0){var M=D.get(R),S=M-1;S==1&&f.push(R),D.set(R,S)}})}v=v.concat(f),(p.length==1||p.length==2)&&(u=!0,E=p[0])}return E},h.prototype.setGraphManager=function(a){this.graphManager=a},N.exports=h}),(function(N,I,T){function o(){}o.seed=1,o.x=0,o.nextDouble=function(){return o.x=Math.sin(o.seed++)*1e4,o.x-Math.floor(o.x)},N.exports=o}),(function(N,I,T){var o=T(4);function e(t,i){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var i=0,l=this.lworldExtX;return l!=0&&(i=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),i},e.prototype.transformY=function(t){var i=0,l=this.lworldExtY;return l!=0&&(i=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),i},e.prototype.inverseTransformX=function(t){var i=0,l=this.ldeviceExtX;return l!=0&&(i=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),i},e.prototype.inverseTransformY=function(t){var i=0,l=this.ldeviceExtY;return l!=0&&(i=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),i},e.prototype.inverseTransformPoint=function(t){var i=new o(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return i},N.exports=e}),(function(N,I,T){function o(r){if(Array.isArray(r)){for(var h=0,a=Array(r.length);ht.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(r>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(r-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},n.prototype.calcSpringForces=function(){for(var r=this.getAllEdges(),h,a=0;a0&&arguments[0]!==void 0?arguments[0]:!0,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a,p,v,D,u=this.getAllNodes(),E;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&r&&this.updateGrid(),E=new Set,a=0;ay||E>y)&&(r.gravitationForceX=-this.gravityConstant*v,r.gravitationForceY=-this.gravityConstant*D)):(y=h.getEstimatedSize()*this.compoundGravityRangeFactor,(u>y||E>y)&&(r.gravitationForceX=-this.gravityConstant*v*this.compoundGravityConstant,r.gravitationForceY=-this.gravityConstant*D*this.compoundGravityConstant))},n.prototype.isConverged=function(){var r,h=!1;return this.totalIterations>this.maxIterations/3&&(h=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),r=this.totalDisplacement=u.length||y>=u[0].length)){for(var O=0;On}}]),l})();N.exports=i}),(function(N,I,T){var o=(function(){function i(l,g){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,i),this.sequence1=l,this.sequence2=g,this.match_score=n,this.mismatch_penalty=d,this.gap_penalty=r,this.iMax=l.length+1,this.jMax=g.length+1,this.grid=new Array(this.iMax);for(var h=0;h=0;l--){var g=this.listeners[l];g.event===t&&g.callback===i&&this.listeners.splice(l,1)}},e.emit=function(t,i){for(var l=0;lg.coolingFactor*g.maxNodeDisplacement&&(this.displacementX=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>g.coolingFactor*g.maxNodeDisplacement&&(this.displacementY=g.coolingFactor*g.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),g.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},i.prototype.propogateDisplacementToChildren=function(g,n){for(var d=this.getChild().getNodes(),r,h=0;h0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var f=new Set(this.getAllNodes()),c=this.nodesWithGravity.filter(function(L){return f.has(L)});this.graphManager.setAllNodesToApplyGravitation(c),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},y.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),f=this.nodesWithGravity.filter(function(A){return s.has(A)});this.graphManager.setAllNodesToApplyGravitation(f),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var c=!this.isTreeGrowing&&!this.isGrowthFinished,L=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(c,L),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},y.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),f={},c=0;c1){var R;for(R=0;RL&&(L=Math.floor(C.y)),m=Math.floor(C.x+n.DEFAULT_COMPONENT_SEPERATION)}this.transform(new a(r.WORLD_CENTER_X-C.x/2,r.WORLD_CENTER_Y-C.y/2))},y.radialLayout=function(s,f,c){var L=Math.max(this.maxDiagonalInTree(s),n.DEFAULT_RADIAL_SEPARATION);y.branchRadialLayout(f,null,0,359,0,L);var A=u.calculateBounds(s),m=new E;m.setDeviceOrgX(A.getMinX()),m.setDeviceOrgY(A.getMinY()),m.setWorldOrgX(c.x),m.setWorldOrgY(c.y);for(var C=0;C1;){var X=_[0];_.splice(0,1);var H=w.indexOf(X);H>=0&&w.splice(H,1),U--,x--}f!=null?P=(w.indexOf(_[0])+1)%U:P=0;for(var W=Math.abs(L-c)/x,B=P;F!=x;B=++B%U){var K=w[B].getOtherEnd(s);if(K!=f){var q=(c+F*W)%360,ht=(q+W)%360;y.branchRadialLayout(K,s,q,ht,A+m,m),F++}}},y.maxDiagonalInTree=function(s){for(var f=v.MIN_VALUE,c=0;cf&&(f=A)}return f},y.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},y.prototype.groupZeroDegreeMembers=function(){var s=this,f={};this.memberGroups={},this.idToDummyNode={};for(var c=[],L=this.graphManager.getAllNodes(),A=0;A"u"&&(f[R]=[]),f[R]=f[R].concat(m)}Object.keys(f).forEach(function(M){if(f[M].length>1){var S="DummyCompound_"+M;s.memberGroups[S]=f[M];var Y=f[M][0].getParent(),w=new l(s.graphManager);w.id=S,w.paddingLeft=Y.paddingLeft||0,w.paddingRight=Y.paddingRight||0,w.paddingBottom=Y.paddingBottom||0,w.paddingTop=Y.paddingTop||0,s.idToDummyNode[S]=w;var x=s.getGraphManager().add(s.newGraph(),w),F=Y.getChild();F.add(w);for(var U=0;U=0;s--){var f=this.compoundOrder[s],c=f.id,L=f.paddingLeft,A=f.paddingTop;this.adjustLocations(this.tiledMemberPack[c],f.rect.x,f.rect.y,L,A)}},y.prototype.repopulateZeroDegreeMembers=function(){var s=this,f=this.tiledZeroDegreePack;Object.keys(f).forEach(function(c){var L=s.idToDummyNode[c],A=L.paddingLeft,m=L.paddingTop;s.adjustLocations(f[c],L.rect.x,L.rect.y,A,m)})},y.prototype.getToBeTiled=function(s){var f=s.id;if(this.toBeTiled[f]!=null)return this.toBeTiled[f];var c=s.getChild();if(c==null)return this.toBeTiled[f]=!1,!1;for(var L=c.getNodes(),A=0;A0)return this.toBeTiled[f]=!1,!1;if(m.getChild()==null){this.toBeTiled[m.id]=!1;continue}if(!this.getToBeTiled(m))return this.toBeTiled[f]=!1,!1}return this.toBeTiled[f]=!0,!0},y.prototype.getNodeDegree=function(s){s.id;for(var f=s.getEdges(),c=0,L=0;LM&&(M=Y.rect.height)}c+=M+s.verticalPadding}},y.prototype.tileCompoundMembers=function(s,f){var c=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(L){var A=f[L];c.tiledMemberPack[L]=c.tileNodes(s[L],A.paddingLeft+A.paddingRight),A.rect.width=c.tiledMemberPack[L].width,A.rect.height=c.tiledMemberPack[L].height})},y.prototype.tileNodes=function(s,f){var c=n.TILING_PADDING_VERTICAL,L=n.TILING_PADDING_HORIZONTAL,A={rows:[],rowWidth:[],rowHeight:[],width:0,height:f,verticalPadding:c,horizontalPadding:L};s.sort(function(R,M){return R.rect.width*R.rect.height>M.rect.width*M.rect.height?-1:R.rect.width*R.rect.height0&&(C+=s.horizontalPadding),s.rowWidth[c]=C,s.width0&&(R+=s.verticalPadding);var M=0;R>s.rowHeight[c]&&(M=s.rowHeight[c],s.rowHeight[c]=R,M=s.rowHeight[c]-M),s.height+=M,s.rows[c].push(f)},y.prototype.getShortestRowIndex=function(s){for(var f=-1,c=Number.MAX_VALUE,L=0;Lc&&(f=L,c=s.rowWidth[L]);return f},y.prototype.canAddHorizontal=function(s,f,c){var L=this.getShortestRowIndex(s);if(L<0)return!0;var A=s.rowWidth[L];if(A+s.horizontalPadding+f<=s.width)return!0;var m=0;s.rowHeight[L]0&&(m=c+s.verticalPadding-s.rowHeight[L]);var C;s.width-A>=f+s.horizontalPadding?C=(s.height+m)/(A+f+s.horizontalPadding):C=(s.height+m)/s.width,m=c+s.verticalPadding;var R;return s.widthm&&f!=c){L.splice(-1,1),s.rows[c].push(A),s.rowWidth[f]=s.rowWidth[f]-m,s.rowWidth[c]=s.rowWidth[c]+m,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var C=Number.MIN_VALUE,R=0;RC&&(C=L[R].height);f>0&&(C+=s.verticalPadding);var M=s.rowHeight[f]+s.rowHeight[c];s.rowHeight[f]=C,s.rowHeight[c]0)for(var F=A;F<=m;F++)x[0]+=this.grid[F][C-1].length+this.grid[F][C].length-1;if(m0)for(var F=C;F<=R;F++)x[3]+=this.grid[A-1][F].length+this.grid[A][F].length-1;for(var U=v.MAX_VALUE,P,_,X=0;X0){var R;R=E.getGraphManager().add(E.newGraph(),c),this.processChildrenList(R,f,E)}}},a.prototype.stop=function(){return this.stopped=!0,this};var v=function(u){u("layout","cose-bilkent",a)};typeof cytoscape<"u"&&v(cytoscape),I.exports=v})])})})(k)),k.exports}var yt=vt();const Et=lt(yt);tt.use(Et);function et(G,b){G.forEach(N=>{const I={id:N.id,labelText:N.label,height:N.height,width:N.width,padding:N.padding??0};Object.keys(N).forEach(T=>{["id","label","height","width","padding","x","y"].includes(T)||(I[T]=N[T])}),b.add({group:"nodes",data:I,position:{x:N.x??0,y:N.y??0}})})}V(et,"addNodes");function rt(G,b){G.forEach(N=>{const I={id:N.id,source:N.start,target:N.end};Object.keys(N).forEach(T=>{["id","start","end"].includes(T)||(I[T]=N[T])}),b.add({group:"edges",data:I})})}V(rt,"addEdges");function it(G){return new Promise(b=>{const N=gt("body").append("div").attr("id","cy").attr("style","display:none"),I=tt({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});N.remove(),et(G.nodes,I),rt(G.edges,I),I.nodes().forEach(function(o){o.layoutDimensions=()=>{const e=o.data();return{w:e.width,h:e.height}}});const T={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};I.layout(T).run(),I.ready(o=>{$.info("Cytoscape ready",o),b(I)})})}V(it,"createCytoscapeInstance");function nt(G){return G.nodes().map(b=>{const N=b.data(),I=b.position(),T={id:N.id,x:I.x,y:I.y};return Object.keys(N).forEach(o=>{o!=="id"&&(T[o]=N[o])}),T})}V(nt,"extractPositionedNodes");function ot(G){return G.edges().map(b=>{const N=b.data(),I=b._private.rscratch,T={id:N.id,source:N.source,target:N.target,startX:I.startX,startY:I.startY,midX:I.midX,midY:I.midY,endX:I.endX,endY:I.endY};return Object.keys(N).forEach(o=>{["id","source","target"].includes(o)||(T[o]=N[o])}),T})}V(ot,"extractPositionedEdges");async function st(G,b){$.debug("Starting cose-bilkent layout algorithm");try{at(G);const N=await it(G),I=nt(N),T=ot(N);return $.debug(`Layout completed: ${I.length} nodes, ${T.length} edges`),{nodes:I,edges:T}}catch(N){throw $.error("Error in cose-bilkent layout algorithm:",N),N}}V(st,"executeCoseBilkentLayout");function at(G){if(!G)throw new Error("Layout data is required");if(!G.config)throw new Error("Configuration is required in layout data");if(!G.rootNode)throw new Error("Root node is required");if(!G.nodes||!Array.isArray(G.nodes))throw new Error("No nodes found in layout data");if(!Array.isArray(G.edges))throw new Error("Edges array is required in layout data");return!0}V(at,"validateLayoutData");var Lt=V(async(G,b,{insertCluster:N,insertEdge:I,insertEdgeLabel:T,insertMarkers:o,insertNode:e,log:t,positionEdgeLabel:i},{algorithm:l})=>{const g={},n={},d=b.select("g");o(d,G.markers,G.type,G.diagramId);const r=d.insert("g").attr("class","subgraphs"),h=d.insert("g").attr("class","edgePaths"),a=d.insert("g").attr("class","edgeLabels"),p=d.insert("g").attr("class","nodes");t.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(G.nodes.map(async u=>{if(u.isGroup){const E={...u};n[u.id]=E,g[u.id]=E,await N(r,u)}else{const E={...u};g[u.id]=E;const y=await e(p,u,{config:G.config,dir:G.direction||"TB"}),O=y.node().getBBox();E.width=O.width,E.height=O.height,E.domId=y,t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`)}})),t.debug("Running cose-bilkent layout algorithm");const v={...G,nodes:G.nodes.map(u=>{const E=g[u.id];return{...u,width:E.width,height:E.height}})},D=await st(v,G.config);t.debug("Positioning nodes based on layout results"),D.nodes.forEach(u=>{const E=g[u.id];E!=null&&E.domId&&(E.domId.attr("transform",`translate(${u.x}, ${u.y})`),E.x=u.x,E.y=u.y,t.debug(`Positioned node ${E.id} at center (${u.x}, ${u.y})`))}),D.edges.forEach(u=>{const E=G.edges.find(y=>y.id===u.id);E&&(E.points=[{x:u.startX,y:u.startY},{x:u.midX,y:u.midY},{x:u.endX,y:u.endY}])}),t.debug("Inserting and positioning edges"),await Promise.all(G.edges.map(async u=>{await T(a,u);const E=g[u.start??""],y=g[u.end??""];if(E&&y){const O=D.edges.find(s=>s.id===u.id);if(O){t.debug("APA01 positionedEdge",O);const s={...u},f=I(h,s,n,G.type,E,y,G.diagramId);i(s,f)}else{const s={...u,points:[{x:E.x||0,y:E.y||0},{x:y.x||0,y:y.y||0}]},f=I(h,s,n,G.type,E,y,G.diagramId);i(s,f)}}})),t.debug("Cose-bilkent rendering completed")},"render"),At=Lt;export{At as render}; diff --git a/src/adclaw/console/assets/dagre-6UL2VRFP-Dgjgnu5A.js b/src/adclaw/console/assets/dagre-6UL2VRFP-CWWv_xqB.js similarity index 97% rename from src/adclaw/console/assets/dagre-6UL2VRFP-Dgjgnu5A.js rename to src/adclaw/console/assets/dagre-6UL2VRFP-CWWv_xqB.js index 52c9368..c2ba018 100644 --- a/src/adclaw/console/assets/dagre-6UL2VRFP-Dgjgnu5A.js +++ b/src/adclaw/console/assets/dagre-6UL2VRFP-CWWv_xqB.js @@ -1,4 +1,4 @@ -import{_ as X,au as F,av as Y,aw as _,ax as H,l as i,c as V,ay as z,az as U,ai as $,an as q,aj as P,ah as K,aA as Q,aB as W,aC as Z}from"./index-C-alNCkd.js";import{G as B}from"./graph-D-pGiHx5.js";import{l as I}from"./layout-Ceh3TcTz.js";import{i as x}from"./_baseUniq-mI0_nzhz.js";import{c as L}from"./clone-CpRDnie0.js";import{m as A}from"./_basePickBy-D8ru0AWw.js";function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return x(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),c={v:t};return x(n)||(c.value=n),x(o)||(c.parent=o),c})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),o={v:t.v,w:t.w};return x(t.name)||(o.name=t.name),x(n)||(o.value=n),o})}var f=new Map,b=new Map,J=new Map,te=X(()=>{b.clear(),J.clear(),f.clear()},"clear"),O=X((e,t)=>{const n=b.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),se=X((e,t)=>{const n=b.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||O(e.v,t)||O(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=X((e,t,n,o)=>{i.warn("Copying children of ",e,"root",o,"data",t.node(e),o);const c=t.children(e)||[];e!==o&&c.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",c),c.forEach(a=>{if(t.children(a).length>0)G(a,t,n,o);else{const r=t.node(a);i.info("cp ",a," to ",o," with parent ",e),n.setNode(a,r),o!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==o&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",o,"data",t.node(e),o),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==o,"node!==clusterId",a!==e));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(l=>{i.info("Edge",l);const v=t.edge(l.v,l.w,l.name);i.info("Edge data",v,o);try{se(l,o)?(i.info("Copying as ",l.v,l.w,v,l.name),n.setEdge(l.v,l.w,v,l.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",o," clusterId:",e)}catch(C){i.error(C)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),R=X((e,t)=>{const n=t.children(e);let o=[...n];for(const c of n)J.set(c,e),o=[...o,...R(c,t)];return o},"extractDescendants"),ie=X((e,t,n)=>{const o=e.edges().filter(l=>l.v===t||l.w===t),c=e.edges().filter(l=>l.v===n||l.w===n),a=o.map(l=>({v:l.v===t?n:l.v,w:l.w===t?t:l.w})),r=c.map(l=>({v:l.v,w:l.w}));return a.filter(l=>r.some(v=>l.v===v.v&&l.w===v.w))},"findCommonEdges"),D=X((e,t,n)=>{const o=t.children(e);if(i.trace("Searching children of id ",e,o),o.length<1)return e;let c;for(const a of o){const r=D(a,t,n),u=ie(t,n,r);if(r)if(u.length>0)c=r;else return r}return c},"findNonClusterChild"),k=X(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,"getAnchorId"),re=X((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),b.set(n,R(n,e)),f.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const o=e.children(n),c=e.edges();o.length>0?(i.debug("Cluster identified",n,b),c.forEach(a=>{const r=O(a.v,n),u=O(a.w,n);r^u&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",b.get(n)),f.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,b)});for(let n of f.keys()){const o=f.get(n).id,c=e.parent(o);c!==n&&f.has(c)&&!f.get(c).externalConnections&&(f.get(n).id=c)}e.edges().forEach(function(n){const o=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let c=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f.get(n.v)," --- ",f.get(n.w)),f.get(n.v)||f.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),c=k(n.v),a=k(n.w),e.removeEdge(n.v,n.w,n.name),c!==n.v){const r=e.parent(c);f.get(r).externalConnections=!0,o.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);f.get(r).externalConnections=!0,o.toCluster=n.w}i.warn("Fix Replacing with XXX",c,a,n.name),e.setEdge(c,a,o,n.name)}}),i.warn("Adjusted Graph",p(e)),T(e,0),i.trace(f)},"adjustClustersAndEdges"),T=X((e,t)=>{var c,a;if(i.warn("extractor - ",t,p(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),o=!1;for(const r of n){const u=e.children(r);o=o||u.length>0}if(!o){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const r of n)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(a=(c=f.get(r))==null?void 0:c.clusterData)!=null&&a.dir&&(l=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,l));const v=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(e)),G(r,e,v,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:v}),i.warn("New graph after copy node: (",r,")",p(v)),i.debug("Old graph after copy",p(e))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const r of n){const u=e.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&T(u.graph,t+1)}},"extractor"),M=X((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(o=>{const c=e.children(o),a=M(e,c);n=[...n,...a]}),n},"sorter"),oe=X(e=>M(e,e.children()),"sortNodesByHierarchy"),j=X(async(e,t,n,o,c,a)=>{i.warn("Graph in recursive render:XAX",p(t),c);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));const l=u.insert("g").attr("class","clusters"),v=u.insert("g").attr("class","edgePaths"),C=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(d){const s=t.node(d);if(c!==void 0){const w=JSON.parse(JSON.stringify(c.clusterData));i.trace(`Setting data for parent cluster XXX +import{_ as X,au as F,av as Y,aw as _,ax as H,l as i,c as V,ay as z,az as U,ai as $,an as q,aj as P,ah as K,aA as Q,aB as W,aC as Z}from"./index-CnXIpKtg.js";import{G as B}from"./graph-C7nCxrGC.js";import{l as I}from"./layout-DaarVybf.js";import{i as x}from"./_baseUniq-Dg6PvSCo.js";import{c as L}from"./clone-z69nb1L5.js";import{m as A}from"./_basePickBy-BzYxueAG.js";function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ee(e),edges:ne(e)};return x(e.graph())||(t.value=L(e.graph())),t}function ee(e){return A(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),c={v:t};return x(n)||(c.value=n),x(o)||(c.parent=o),c})}function ne(e){return A(e.edges(),function(t){var n=e.edge(t),o={v:t.v,w:t.w};return x(t.name)||(o.name=t.name),x(n)||(o.value=n),o})}var f=new Map,b=new Map,J=new Map,te=X(()=>{b.clear(),J.clear(),f.clear()},"clear"),O=X((e,t)=>{const n=b.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),se=X((e,t)=>{const n=b.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||O(e.v,t)||O(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),G=X((e,t,n,o)=>{i.warn("Copying children of ",e,"root",o,"data",t.node(e),o);const c=t.children(e)||[];e!==o&&c.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",c),c.forEach(a=>{if(t.children(a).length>0)G(a,t,n,o);else{const r=t.node(a);i.info("cp ",a," to ",o," with parent ",e),n.setNode(a,r),o!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==o&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",o,"data",t.node(e),o),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==o,"node!==clusterId",a!==e));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(l=>{i.info("Edge",l);const v=t.edge(l.v,l.w,l.name);i.info("Edge data",v,o);try{se(l,o)?(i.info("Copying as ",l.v,l.w,v,l.name),n.setEdge(l.v,l.w,v,l.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",o," clusterId:",e)}catch(C){i.error(C)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),R=X((e,t)=>{const n=t.children(e);let o=[...n];for(const c of n)J.set(c,e),o=[...o,...R(c,t)];return o},"extractDescendants"),ie=X((e,t,n)=>{const o=e.edges().filter(l=>l.v===t||l.w===t),c=e.edges().filter(l=>l.v===n||l.w===n),a=o.map(l=>({v:l.v===t?n:l.v,w:l.w===t?t:l.w})),r=c.map(l=>({v:l.v,w:l.w}));return a.filter(l=>r.some(v=>l.v===v.v&&l.w===v.w))},"findCommonEdges"),D=X((e,t,n)=>{const o=t.children(e);if(i.trace("Searching children of id ",e,o),o.length<1)return e;let c;for(const a of o){const r=D(a,t,n),u=ie(t,n,r);if(r)if(u.length>0)c=r;else return r}return c},"findNonClusterChild"),k=X(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,"getAnchorId"),re=X((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),b.set(n,R(n,e)),f.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const o=e.children(n),c=e.edges();o.length>0?(i.debug("Cluster identified",n,b),c.forEach(a=>{const r=O(a.v,n),u=O(a.w,n);r^u&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",b.get(n)),f.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,b)});for(let n of f.keys()){const o=f.get(n).id,c=e.parent(o);c!==n&&f.has(c)&&!f.get(c).externalConnections&&(f.get(n).id=c)}e.edges().forEach(function(n){const o=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let c=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f.get(n.v)," --- ",f.get(n.w)),f.get(n.v)||f.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),c=k(n.v),a=k(n.w),e.removeEdge(n.v,n.w,n.name),c!==n.v){const r=e.parent(c);f.get(r).externalConnections=!0,o.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);f.get(r).externalConnections=!0,o.toCluster=n.w}i.warn("Fix Replacing with XXX",c,a,n.name),e.setEdge(c,a,o,n.name)}}),i.warn("Adjusted Graph",p(e)),T(e,0),i.trace(f)},"adjustClustersAndEdges"),T=X((e,t)=>{var c,a;if(i.warn("extractor - ",t,p(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),o=!1;for(const r of n){const u=e.children(r);o=o||u.length>0}if(!o){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const r of n)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(a=(c=f.get(r))==null?void 0:c.clusterData)!=null&&a.dir&&(l=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,l));const v=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(e)),G(r,e,v,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:v}),i.warn("New graph after copy node: (",r,")",p(v)),i.debug("Old graph after copy",p(e))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const r of n){const u=e.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&T(u.graph,t+1)}},"extractor"),M=X((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(o=>{const c=e.children(o),a=M(e,c);n=[...n,...a]}),n},"sorter"),oe=X(e=>M(e,e.children()),"sortNodesByHierarchy"),j=X(async(e,t,n,o,c,a)=>{i.warn("Graph in recursive render:XAX",p(t),c);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));const l=u.insert("g").attr("class","clusters"),v=u.insert("g").attr("class","edgePaths"),C=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(d){const s=t.node(d);if(c!==void 0){const w=JSON.parse(JSON.stringify(c.clusterData));i.trace(`Setting data for parent cluster XXX Node.id = `,d,` data=`,w.height,` Parent cluster`,c.height),t.setNode(c.id,w),t.parent(d)||(i.trace("Setting parent",d,c.id),t.setParent(d,c.id,w))}if(i.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),s!=null&&s.clusterNode){i.info("Cluster identified XBX",d,s.width,t.node(d));const{ranksep:w,nodesep:m}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:w+25,nodesep:m});const N=await j(g,s.graph,n,o,t.node(d),a),S=N.elem;z(s,S),s.diff=N.diff||0,i.info("New compound node after recursive render XAX",d,"width",s.width,"height",s.height),U(S,s)}else t.children(d).length>0?(i.trace("Cluster - the non recursive path XBX",d,s.id,s,s.width,"Graph:",t),i.trace(D(s.id,t)),f.set(s.id,{id:D(s.id,t),node:s})):(i.trace("Node - the non recursive path XAX",d,g,t.node(d),r),await $(g,t.node(d),{config:a,dir:r}))})),await X(async()=>{const d=t.edges().map(async function(s){const w=t.edge(s.v,s.w,s.name);i.info("Edge "+s.v+" -> "+s.w+": "+JSON.stringify(s)),i.info("Edge "+s.v+" -> "+s.w+": ",s," ",JSON.stringify(t.edge(s))),i.info("Fix",f,"ids:",s.v,s.w,"Translating: ",f.get(s.v),f.get(s.w)),await Z(C,w)});await Promise.all(d)},"processEdges")(),i.info("Graph before layout:",JSON.stringify(p(t))),i.info("############################################# XXX"),i.info("### Layout ### XXX"),i.info("############################################# XXX"),I(t),i.info("Graph after layout:",JSON.stringify(p(t)));let E=0,{subGraphTitleTotalMargin:y}=q(a);return await Promise.all(oe(t).map(async function(d){var w;const s=t.node(d);if(i.info("Position XBX => "+d+": ("+s.x,","+s.y,") width: ",s.width," height: ",s.height),s!=null&&s.clusterNode)s.y+=y,i.info("A tainted cluster node XBX1",d,s.id,s.width,s.height,s.x,s.y,t.parent(d)),f.get(s.id).node=s,P(s);else if(t.children(d).length>0){i.info("A pure cluster node XBX1",d,s.id,s.x,s.y,s.width,s.height,t.parent(d)),s.height+=y,t.node(s.parentId);const m=(s==null?void 0:s.padding)/2||0,N=((w=s==null?void 0:s.labelBBox)==null?void 0:w.height)||0,S=N-m||0;i.debug("OffsetY",S,"labelHeight",N,"halfPadding",m),await K(l,s),f.get(s.id).node=s}else{const m=t.node(s.parentId);s.y+=y/2,i.info("A regular node XBX1 - using the padding",s.id,"parent",s.parentId,s.width,s.height,s.x,s.y,"offsetY",s.offsetY,"parent",m,m==null?void 0:m.offsetY,s),P(s)}})),t.edges().forEach(function(d){const s=t.edge(d);i.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(s),s),s.points.forEach(S=>S.y+=y/2);const w=t.node(d.v);var m=t.node(d.w);const N=Q(v,s,f,n,w,m,o);W(s,N)}),t.nodes().forEach(function(d){const s=t.node(d);i.info(d,s.type,s.diff),s.isGroup&&(E=s.diff)}),i.warn("Returning from recursive render XAX",u,E),{elem:u,diff:E}},"recursiveRender"),ge=X(async(e,t)=>{var a,r,u,l,v,C;const n=new B({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((a=e.config)==null?void 0:a.nodeSpacing)||((u=(r=e.config)==null?void 0:r.flowchart)==null?void 0:u.nodeSpacing)||e.nodeSpacing,ranksep:((l=e.config)==null?void 0:l.rankSpacing)||((C=(v=e.config)==null?void 0:v.flowchart)==null?void 0:C.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),o=t.select("g");F(o,e.markers,e.type,e.diagramId),Y(),_(),H(),te(),e.nodes.forEach(g=>{n.setNode(g.id,{...g}),g.parentId&&n.setParent(g.id,g.parentId)}),i.debug("Edges:",e.edges),e.edges.forEach(g=>{if(g.start===g.end){const h=g.start,E=h+"---"+h+"---1",y=h+"---"+h+"---2",d=n.node(h);n.setNode(E,{domId:E,id:E,parentId:d.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(E,d.parentId),n.setNode(y,{domId:y,id:y,parentId:d.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(y,d.parentId);const s=structuredClone(g),w=structuredClone(g),m=structuredClone(g);s.label="",s.arrowTypeEnd="none",s.id=h+"-cyclic-special-1",w.arrowTypeStart="none",w.arrowTypeEnd="none",w.id=h+"-cyclic-special-mid",m.label="",d.isGroup&&(s.fromCluster=h,m.toCluster=h),m.id=h+"-cyclic-special-2",m.arrowTypeStart="none",n.setEdge(h,E,s,h+"-cyclic-special-0"),n.setEdge(E,y,w,h+"-cyclic-special-1"),n.setEdge(y,h,m,h+"-cyclic-special-2")}else n.setEdge(g.start,g.end,{...g},g.id)}),i.warn("Graph at first:",JSON.stringify(p(n))),re(n),i.warn("Graph after XAX:",JSON.stringify(p(n)));const c=V();await j(o,n,e.type,e.diagramId,void 0,c)},"render");export{ge as render}; diff --git a/src/adclaw/console/assets/diagram-PSM6KHXK-khjhdnel.js b/src/adclaw/console/assets/diagram-PSM6KHXK-q4aPZlA7.js similarity index 97% rename from src/adclaw/console/assets/diagram-PSM6KHXK-khjhdnel.js rename to src/adclaw/console/assets/diagram-PSM6KHXK-q4aPZlA7.js index 8bb1d70..6e5593e 100644 --- a/src/adclaw/console/assets/diagram-PSM6KHXK-khjhdnel.js +++ b/src/adclaw/console/assets/diagram-PSM6KHXK-q4aPZlA7.js @@ -1,4 +1,4 @@ -import{_ as w,D as te,F as ae,H as he,e as ue,l as K,b7 as P,d as Y,b as pe,a as fe,p as ge,q as me,g as ye,s as Se,E as ve,b8 as xe,y as be}from"./index-C-alNCkd.js";import{s as we}from"./chunk-QN33PNHL-Bfn-g6m4.js";import{p as Ce}from"./chunk-4BX2VUAB-CalenPtr.js";import{p as Te}from"./treemap-GDKQZRPO-CEi_XKuI.js";import{b as O}from"./defaultLocale-DX6XiGOO.js";import{o as J}from"./ordinal-Cboi1Yqb.js";import"./_baseUniq-mI0_nzhz.js";import"./_basePickBy-D8ru0AWw.js";import"./clone-CpRDnie0.js";import"./init-Gi6I4Gst.js";function Le(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function $e(){return this.eachAfter(Le)}function Ae(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function Fe(t,a){for(var l=this,n=[l],o,s,d=-1;l=n.pop();)if(t.call(a,l,++d,this),o=l.children)for(s=o.length-1;s>=0;--s)n.push(o[s]);return this}function ke(t,a){for(var l=this,n=[l],o=[],s,d,h,g=-1;l=n.pop();)if(o.push(l),s=l.children)for(d=0,h=s.length;d=0;)l+=n[o].value;a.value=l})}function _e(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function ze(t){for(var a=this,l=Ve(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var o=n.length;t!==l;)n.splice(o,0,t),t=t.parent;return n}function Ve(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),o=null;for(t=l.pop(),a=n.pop();t===a;)o=t,t=l.pop(),a=n.pop();return o}function De(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Pe(){return Array.from(this)}function Be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function Ee(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Re(){var t=this,a,l=[t],n,o,s;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(o=0,s=n.length;o=0;--h)o.push(s=d[h]=new U(d[h])),s.parent=n,s.depth=n.depth+1;return l.eachBefore(qe)}function We(){return Q(this).eachBefore(Oe)}function He(t){return t.children}function Ie(t){return Array.isArray(t)?t[1]:null}function Oe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function qe(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function U(t){this.data=t,this.depth=this.height=0,this.parent=null}U.prototype=Q.prototype={constructor:U,count:$e,each:Ae,eachAfter:ke,eachBefore:Fe,find:Ne,sum:Me,sort:_e,path:ze,ancestors:De,descendants:Pe,leaves:Be,links:Ee,copy:We,[Symbol.iterator]:Re};function Ge(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function Xe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function je(t,a,l,n,o){for(var s=t.children,d,h=-1,g=s.length,c=t.value&&(n-a)/t.value;++hN&&(N=c),M=p*p*R,k=Math.max(N/M,M/m),k>V){p-=c;break}V=k}d.push(g={value:p,dice:x1?n:1)},l})(Ue);function Ke(){var t=Je,a=!1,l=1,n=1,o=[0],s=q,d=q,h=q,g=q,c=q;function u(r){return r.x0=r.y0=0,r.x1=l,r.y1=n,r.eachBefore(b),o=[0],a&&r.eachBefore(Xe),r}function b(r){var x=o[r.depth],S=r.x0+x,v=r.y0+x,p=r.x1-x,m=r.y1-x;p{xe(s)&&(n!=null&&n.textStyles?n.textStyles.push(s):n.textStyles=[s]),n!=null&&n.styles?n.styles.push(s):n.styles=[s]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){var l;return((l=this.classes.get(a))==null?void 0:l.styles)??[]}clear(){be(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},w(E,"TreeMapDB"),E);function le(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const o={name:n.name,children:n.type==="Leaf"?void 0:[]};for(o.classSelector=n==null?void 0:n.classSelector,n!=null&&n.cssCompiledStyles&&(o.cssCompiledStyles=[n.cssCompiledStyles]),n.type==="Leaf"&&n.value!==void 0&&(o.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(o);else{const s=l[l.length-1].node;s.children?s.children.push(o):s.children=[o]}n.type!=="Leaf"&&l.push({node:o,level:n.level})}),a}w(le,"buildHierarchy");var Qe=w((t,a)=>{Ce(t,a);const l=[];for(const s of t.TreemapRows??[])s.$type==="ClassDefStatement"&&a.addClass(s.className??"",s.styleText??"");for(const s of t.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,g=et(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],u=c.length>0?c.join(";"):void 0,b={level:h,name:g,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:u};l.push(b)}const n=le(l),o=w((s,d)=>{for(const h of s)a.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(n,0)},"populate"),et=w(t=>t.name?String(t.name):"","getItemName"),re={parser:{yy:void 0},parse:w(async t=>{var a;try{const n=await Te("treemap",t);K.debug("Treemap AST:",n);const o=(a=re.parser)==null?void 0:a.yy;if(!(o instanceof ne))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Qe(n,o)}catch(l){throw K.error("Error parsing treemap:",l),l}},"parse")},tt=10,B=10,X=25,at=w((t,a,l,n)=>{const o=n.db,s=o.getConfig(),d=s.padding??tt,h=o.getDiagramTitle(),g=o.getRoot(),{themeVariables:c}=ae();if(!g)return;const u=h?30:0,b=he(a),r=s.nodeWidth?s.nodeWidth*B:960,x=s.nodeHeight?s.nodeHeight*B:500,S=r,v=x+u;b.attr("viewBox",`0 0 ${S} ${v}`),ue(b,v,S,s.useMaxWidth);let p;try{const e=s.valueFormat||",";if(e==="$0,0")p=w(i=>"$"+O(",")(i),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const i=/\.\d+/.exec(e),f=i?i[0]:"";p=w(C=>"$"+O(","+f)(C),"valueFormat")}else if(e.startsWith("$")){const i=e.substring(1);p=w(f=>"$"+O(i||"")(f),"valueFormat")}else p=O(e)}catch(e){K.error("Error creating format function:",e),p=O(",")}const m=J().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=J().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),k=J().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);h&&b.append("text").attr("x",S/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const V=b.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=Q(g).sum(e=>e.value??0).sort((e,i)=>(i.value??0)-(e.value??0)),ee=Ke().size([r,x]).paddingTop(e=>e.children&&e.children.length>0?X+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(R),se=ee.descendants().filter(e=>e.children&&e.children.length>0),W=V.selectAll(".treemapSection").data(se).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),W.append("clipPath").attr("id",(e,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,i)=>`treemapSection section${i}`).attr("fill",e=>m(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>N(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const i=P({cssCompiledStyles:e.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const i=Y(this),f=e.data.name;i.text(f);const C=e.x1-e.x0,L=6;let $;s.showValues!==!1&&e.value?$=C-10-30-10-L:$=C-L-6;const A=Math.max(15,$),y=i.node();if(y.getComputedTextLength()>A){let T=f;for(;T.length>0;){if(T=f.substring(0,T.length-1),T.length===0){i.text("..."),y.getComputedTextLength()>A&&i.text("");break}if(i.text(T+"..."),y.getComputedTextLength()<=A)break}}}),s.showValues!==!1&&W.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const ie=ee.leaves(),j=V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class",(e,i)=>`treemapNode treemapLeafGroup leaf${i}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);j.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?m(e.parent.data.name):m(e.data.name)).attr("style",e=>P({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?m(e.parent.data.name):m(e.data.name)).attr("stroke-width",3),j.append("clipPath").attr("id",(e,i)=>`clip-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),j.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+k(e.data.name)+";",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,i)=>`url(#clip-${a}-${i})`).text(e=>e.data.name).each(function(e){const i=Y(this),f=e.x1-e.x0,C=e.y1-e.y0,L=i.node(),$=4,D=f-2*$,A=C-2*$;if(D<10||A<10){i.style("display","none");return}let y=parseInt(i.style("font-size"),10);const _=8,F=28,T=.6,z=6,H=2;for(;L.getComputedTextLength()>D&&y>_;)y--,i.style("font-size",`${y}px`);let I=Math.max(z,Math.min(F,Math.round(y*T))),Z=y+H+I;for(;Z>A&&y>_&&(y--,I=Math.max(z,Math.min(F,Math.round(y*T))),!(ID||y<_||A(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+k(i.data.name)+";",C=P({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?p(i.value):"").each(function(i){const f=Y(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=Y(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const $=parseFloat(L.style("font-size")),D=28,A=.6,y=6,_=2,F=Math.max(y,Math.min(D,Math.round($*A)));f.style("font-size",`${F}px`);const z=(i.y1-i.y0)/2+$/2+_;f.attr("y",z);const H=i.x1-i.x0,ce=i.y1-i.y0-4,de=H-8;f.node().getComputedTextLength()>de||z+F>ce||F{const a=te(rt,t);return` +import{_ as w,D as te,F as ae,H as he,e as ue,l as K,b7 as P,d as Y,b as pe,a as fe,p as ge,q as me,g as ye,s as Se,E as ve,b8 as xe,y as be}from"./index-CnXIpKtg.js";import{s as we}from"./chunk-QN33PNHL-Ni-_soP9.js";import{p as Ce}from"./chunk-4BX2VUAB-De0wsjr9.js";import{p as Te}from"./treemap-GDKQZRPO-DwNuPoGC.js";import{b as O}from"./defaultLocale-DX6XiGOO.js";import{o as J}from"./ordinal-Cboi1Yqb.js";import"./_baseUniq-Dg6PvSCo.js";import"./_basePickBy-BzYxueAG.js";import"./clone-z69nb1L5.js";import"./init-Gi6I4Gst.js";function Le(t){var a=0,l=t.children,n=l&&l.length;if(!n)a=1;else for(;--n>=0;)a+=l[n].value;t.value=a}function $e(){return this.eachAfter(Le)}function Ae(t,a){let l=-1;for(const n of this)t.call(a,n,++l,this);return this}function Fe(t,a){for(var l=this,n=[l],o,s,d=-1;l=n.pop();)if(t.call(a,l,++d,this),o=l.children)for(s=o.length-1;s>=0;--s)n.push(o[s]);return this}function ke(t,a){for(var l=this,n=[l],o=[],s,d,h,g=-1;l=n.pop();)if(o.push(l),s=l.children)for(d=0,h=s.length;d=0;)l+=n[o].value;a.value=l})}function _e(t){return this.eachBefore(function(a){a.children&&a.children.sort(t)})}function ze(t){for(var a=this,l=Ve(a,t),n=[a];a!==l;)a=a.parent,n.push(a);for(var o=n.length;t!==l;)n.splice(o,0,t),t=t.parent;return n}function Ve(t,a){if(t===a)return t;var l=t.ancestors(),n=a.ancestors(),o=null;for(t=l.pop(),a=n.pop();t===a;)o=t,t=l.pop(),a=n.pop();return o}function De(){for(var t=this,a=[t];t=t.parent;)a.push(t);return a}function Pe(){return Array.from(this)}function Be(){var t=[];return this.eachBefore(function(a){a.children||t.push(a)}),t}function Ee(){var t=this,a=[];return t.each(function(l){l!==t&&a.push({source:l.parent,target:l})}),a}function*Re(){var t=this,a,l=[t],n,o,s;do for(a=l.reverse(),l=[];t=a.pop();)if(yield t,n=t.children)for(o=0,s=n.length;o=0;--h)o.push(s=d[h]=new U(d[h])),s.parent=n,s.depth=n.depth+1;return l.eachBefore(qe)}function We(){return Q(this).eachBefore(Oe)}function He(t){return t.children}function Ie(t){return Array.isArray(t)?t[1]:null}function Oe(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function qe(t){var a=0;do t.height=a;while((t=t.parent)&&t.height<++a)}function U(t){this.data=t,this.depth=this.height=0,this.parent=null}U.prototype=Q.prototype={constructor:U,count:$e,each:Ae,eachAfter:ke,eachBefore:Fe,find:Ne,sum:Me,sort:_e,path:ze,ancestors:De,descendants:Pe,leaves:Be,links:Ee,copy:We,[Symbol.iterator]:Re};function Ge(t){if(typeof t!="function")throw new Error;return t}function q(){return 0}function G(t){return function(){return t}}function Xe(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function je(t,a,l,n,o){for(var s=t.children,d,h=-1,g=s.length,c=t.value&&(n-a)/t.value;++hN&&(N=c),M=p*p*R,k=Math.max(N/M,M/m),k>V){p-=c;break}V=k}d.push(g={value:p,dice:x1?n:1)},l})(Ue);function Ke(){var t=Je,a=!1,l=1,n=1,o=[0],s=q,d=q,h=q,g=q,c=q;function u(r){return r.x0=r.y0=0,r.x1=l,r.y1=n,r.eachBefore(b),o=[0],a&&r.eachBefore(Xe),r}function b(r){var x=o[r.depth],S=r.x0+x,v=r.y0+x,p=r.x1-x,m=r.y1-x;p{xe(s)&&(n!=null&&n.textStyles?n.textStyles.push(s):n.textStyles=[s]),n!=null&&n.styles?n.styles.push(s):n.styles=[s]}),this.classes.set(a,n)}getClasses(){return this.classes}getStylesForClass(a){var l;return((l=this.classes.get(a))==null?void 0:l.styles)??[]}clear(){be(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},w(E,"TreeMapDB"),E);function le(t){if(!t.length)return[];const a=[],l=[];return t.forEach(n=>{const o={name:n.name,children:n.type==="Leaf"?void 0:[]};for(o.classSelector=n==null?void 0:n.classSelector,n!=null&&n.cssCompiledStyles&&(o.cssCompiledStyles=[n.cssCompiledStyles]),n.type==="Leaf"&&n.value!==void 0&&(o.value=n.value);l.length>0&&l[l.length-1].level>=n.level;)l.pop();if(l.length===0)a.push(o);else{const s=l[l.length-1].node;s.children?s.children.push(o):s.children=[o]}n.type!=="Leaf"&&l.push({node:o,level:n.level})}),a}w(le,"buildHierarchy");var Qe=w((t,a)=>{Ce(t,a);const l=[];for(const s of t.TreemapRows??[])s.$type==="ClassDefStatement"&&a.addClass(s.className??"",s.styleText??"");for(const s of t.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,g=et(d),c=d.classSelector?a.getStylesForClass(d.classSelector):[],u=c.length>0?c.join(";"):void 0,b={level:h,name:g,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:u};l.push(b)}const n=le(l),o=w((s,d)=>{for(const h of s)a.addNode(h,d),h.children&&h.children.length>0&&o(h.children,d+1)},"addNodesRecursively");o(n,0)},"populate"),et=w(t=>t.name?String(t.name):"","getItemName"),re={parser:{yy:void 0},parse:w(async t=>{var a;try{const n=await Te("treemap",t);K.debug("Treemap AST:",n);const o=(a=re.parser)==null?void 0:a.yy;if(!(o instanceof ne))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Qe(n,o)}catch(l){throw K.error("Error parsing treemap:",l),l}},"parse")},tt=10,B=10,X=25,at=w((t,a,l,n)=>{const o=n.db,s=o.getConfig(),d=s.padding??tt,h=o.getDiagramTitle(),g=o.getRoot(),{themeVariables:c}=ae();if(!g)return;const u=h?30:0,b=he(a),r=s.nodeWidth?s.nodeWidth*B:960,x=s.nodeHeight?s.nodeHeight*B:500,S=r,v=x+u;b.attr("viewBox",`0 0 ${S} ${v}`),ue(b,v,S,s.useMaxWidth);let p;try{const e=s.valueFormat||",";if(e==="$0,0")p=w(i=>"$"+O(",")(i),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const i=/\.\d+/.exec(e),f=i?i[0]:"";p=w(C=>"$"+O(","+f)(C),"valueFormat")}else if(e.startsWith("$")){const i=e.substring(1);p=w(f=>"$"+O(i||"")(f),"valueFormat")}else p=O(e)}catch(e){K.error("Error creating format function:",e),p=O(",")}const m=J().range(["transparent",c.cScale0,c.cScale1,c.cScale2,c.cScale3,c.cScale4,c.cScale5,c.cScale6,c.cScale7,c.cScale8,c.cScale9,c.cScale10,c.cScale11]),N=J().range(["transparent",c.cScalePeer0,c.cScalePeer1,c.cScalePeer2,c.cScalePeer3,c.cScalePeer4,c.cScalePeer5,c.cScalePeer6,c.cScalePeer7,c.cScalePeer8,c.cScalePeer9,c.cScalePeer10,c.cScalePeer11]),k=J().range([c.cScaleLabel0,c.cScaleLabel1,c.cScaleLabel2,c.cScaleLabel3,c.cScaleLabel4,c.cScaleLabel5,c.cScaleLabel6,c.cScaleLabel7,c.cScaleLabel8,c.cScaleLabel9,c.cScaleLabel10,c.cScaleLabel11]);h&&b.append("text").attr("x",S/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const V=b.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer"),R=Q(g).sum(e=>e.value??0).sort((e,i)=>(i.value??0)-(e.value??0)),ee=Ke().size([r,x]).paddingTop(e=>e.children&&e.children.length>0?X+B:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?B:0).paddingRight(e=>e.children&&e.children.length>0?B:0).paddingBottom(e=>e.children&&e.children.length>0?B:0).round(!0)(R),se=ee.descendants().filter(e=>e.children&&e.children.length>0),W=V.selectAll(".treemapSection").data(se).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",X).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),W.append("clipPath").attr("id",(e,i)=>`clip-section-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",X),W.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,i)=>`treemapSection section${i}`).attr("fill",e=>m(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>N(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const i=P({cssCompiledStyles:e.data.cssCompiledStyles});return i.nodeStyles+";"+i.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",X/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const i="dominant-baseline: middle; font-size: 12px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const i=Y(this),f=e.data.name;i.text(f);const C=e.x1-e.x0,L=6;let $;s.showValues!==!1&&e.value?$=C-10-30-10-L:$=C-L-6;const A=Math.max(15,$),y=i.node();if(y.getComputedTextLength()>A){let T=f;for(;T.length>0;){if(T=f.substring(0,T.length-1),T.length===0){i.text("..."),y.getComputedTextLength()>A&&i.text("");break}if(i.text(T+"..."),y.getComputedTextLength()<=A)break}}}),s.showValues!==!1&&W.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",X/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?p(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const i="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+k(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")});const ie=ee.leaves(),j=V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class",(e,i)=>`treemapNode treemapLeafGroup leaf${i}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);j.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?m(e.parent.data.name):m(e.data.name)).attr("style",e=>P({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?m(e.parent.data.name):m(e.data.name)).attr("stroke-width",3),j.append("clipPath").attr("id",(e,i)=>`clip-${a}-${i}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),j.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const i="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+k(e.data.name)+";",f=P({cssCompiledStyles:e.data.cssCompiledStyles});return i+f.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,i)=>`url(#clip-${a}-${i})`).text(e=>e.data.name).each(function(e){const i=Y(this),f=e.x1-e.x0,C=e.y1-e.y0,L=i.node(),$=4,D=f-2*$,A=C-2*$;if(D<10||A<10){i.style("display","none");return}let y=parseInt(i.style("font-size"),10);const _=8,F=28,T=.6,z=6,H=2;for(;L.getComputedTextLength()>D&&y>_;)y--,i.style("font-size",`${y}px`);let I=Math.max(z,Math.min(F,Math.round(y*T))),Z=y+H+I;for(;Z>A&&y>_&&(y--,I=Math.max(z,Math.min(F,Math.round(y*T))),!(ID||y<_||A(i.x1-i.x0)/2).attr("y",function(i){return(i.y1-i.y0)/2}).attr("style",i=>{const f="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+k(i.data.name)+";",C=P({cssCompiledStyles:i.data.cssCompiledStyles});return f+C.labelStyles.replace("color:","fill:")}).attr("clip-path",(i,f)=>`url(#clip-${a}-${f})`).text(i=>i.value?p(i.value):"").each(function(i){const f=Y(this),C=this.parentNode;if(!C){f.style("display","none");return}const L=Y(C).select(".treemapLabel");if(L.empty()||L.style("display")==="none"){f.style("display","none");return}const $=parseFloat(L.style("font-size")),D=28,A=.6,y=6,_=2,F=Math.max(y,Math.min(D,Math.round($*A)));f.style("font-size",`${F}px`);const z=(i.y1-i.y0)/2+$/2+_;f.attr("y",z);const H=i.x1-i.x0,ce=i.y1-i.y0-4,de=H-8;f.node().getComputedTextLength()>de||z+F>ce||F{const a=te(rt,t);return` .treemapNode.section { stroke: ${a.sectionStrokeColor}; stroke-width: ${a.sectionStrokeWidth}; diff --git a/src/adclaw/console/assets/diagram-QEK2KX5R-CTTNPGgI.js b/src/adclaw/console/assets/diagram-QEK2KX5R-DT2g0V4c.js similarity index 95% rename from src/adclaw/console/assets/diagram-QEK2KX5R-CTTNPGgI.js rename to src/adclaw/console/assets/diagram-QEK2KX5R-DT2g0V4c.js index 1f90235..a64fea6 100644 --- a/src/adclaw/console/assets/diagram-QEK2KX5R-CTTNPGgI.js +++ b/src/adclaw/console/assets/diagram-QEK2KX5R-DT2g0V4c.js @@ -1,4 +1,4 @@ -import{s as k,g as R,q as E,p as F,a as I,b as _,_ as l,H as D,y as G,D as f,E as P,F as C,l as z,K as H}from"./index-C-alNCkd.js";import{p as V}from"./chunk-4BX2VUAB-CalenPtr.js";import{p as W}from"./treemap-GDKQZRPO-CEi_XKuI.js";import"./_baseUniq-mI0_nzhz.js";import"./_basePickBy-D8ru0AWw.js";import"./clone-CpRDnie0.js";var h={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},w={axes:[],curves:[],options:h},m=structuredClone(w),B=P.radar,j=l(()=>f({...B,...C().radar}),"getConfig"),b=l(()=>m.axes,"getAxes"),q=l(()=>m.curves,"getCurves"),K=l(()=>m.options,"getOptions"),N=l(a=>{m.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),U=l(a=>{m.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:X(t.entries)}))},"setCurves"),X=l(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=b();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>{var o;return((o=s.axis)==null?void 0:o.$refText)===e.name});if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Y=l(a=>{var e,r,s,o,i;const t=a.reduce((n,c)=>(n[c.name]=c,n),{});m.options={showLegend:((e=t.showLegend)==null?void 0:e.value)??h.showLegend,ticks:((r=t.ticks)==null?void 0:r.value)??h.ticks,max:((s=t.max)==null?void 0:s.value)??h.max,min:((o=t.min)==null?void 0:o.value)??h.min,graticule:((i=t.graticule)==null?void 0:i.value)??h.graticule}},"setOptions"),Z=l(()=>{G(),m=structuredClone(w)},"clear"),$={getAxes:b,getCurves:q,getOptions:K,setAxes:N,setCurves:U,setOptions:Y,getConfig:j,clear:Z,setAccTitle:_,getAccTitle:I,setDiagramTitle:F,getDiagramTitle:E,getAccDescription:R,setAccDescription:k},J=l(a=>{V(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),Q={parse:l(async a=>{const t=await W("radar",a);z.debug(t),J(t)},"parse")},tt=l((a,t,e,r)=>{const s=r.db,o=s.getAxes(),i=s.getCurves(),n=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),u=D(t),p=et(u,c),g=n.max??Math.max(...i.map(y=>Math.max(...y.entries))),x=n.min,v=Math.min(c.width,c.height)/2;at(p,o,v,n.ticks,n.graticule),rt(p,o,v,c),M(p,o,i,x,g,n.graticule,c),T(p,i,n.showLegend,c),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),et=l((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return a.attr("viewbox",`0 0 ${e} ${r}`).attr("width",e).attr("height",r),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),at=l((a,t,e,r,s)=>{if(s==="circle")for(let o=0;o{const p=2*u*Math.PI/o-Math.PI/2,g=n*Math.cos(p),x=n*Math.sin(p);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),rt=l((a,t,e,r)=>{const s=t.length;for(let o=0;o{if(d.entries.length!==n)return;const p=d.entries.map((g,x)=>{const v=2*Math.PI*x/n-Math.PI/2,y=A(g,r,s,c),O=y*Math.cos(v),S=y*Math.sin(v);return{x:O,y:S}});o==="circle"?a.append("path").attr("d",L(p,i.curveTension)).attr("class",`radarCurve-${u}`):o==="polygon"&&a.append("polygon").attr("points",p.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}l(M,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}l(A,"relativeRadius");function L(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*i})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}l(T,"drawLegend");var st={draw:tt},nt=l((a,t)=>{let e="";for(let r=0;rf({...B,...C().radar}),"getConfig"),b=l(()=>m.axes,"getAxes"),q=l(()=>m.curves,"getCurves"),K=l(()=>m.options,"getOptions"),N=l(a=>{m.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),U=l(a=>{m.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:X(t.entries)}))},"setCurves"),X=l(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=b();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>{var o;return((o=s.axis)==null?void 0:o.$refText)===e.name});if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Y=l(a=>{var e,r,s,o,i;const t=a.reduce((n,c)=>(n[c.name]=c,n),{});m.options={showLegend:((e=t.showLegend)==null?void 0:e.value)??h.showLegend,ticks:((r=t.ticks)==null?void 0:r.value)??h.ticks,max:((s=t.max)==null?void 0:s.value)??h.max,min:((o=t.min)==null?void 0:o.value)??h.min,graticule:((i=t.graticule)==null?void 0:i.value)??h.graticule}},"setOptions"),Z=l(()=>{G(),m=structuredClone(w)},"clear"),$={getAxes:b,getCurves:q,getOptions:K,setAxes:N,setCurves:U,setOptions:Y,getConfig:j,clear:Z,setAccTitle:_,getAccTitle:I,setDiagramTitle:F,getDiagramTitle:E,getAccDescription:R,setAccDescription:k},J=l(a=>{V(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),Q={parse:l(async a=>{const t=await W("radar",a);z.debug(t),J(t)},"parse")},tt=l((a,t,e,r)=>{const s=r.db,o=s.getAxes(),i=s.getCurves(),n=s.getOptions(),c=s.getConfig(),d=s.getDiagramTitle(),u=D(t),p=et(u,c),g=n.max??Math.max(...i.map(y=>Math.max(...y.entries))),x=n.min,v=Math.min(c.width,c.height)/2;at(p,o,v,n.ticks,n.graticule),rt(p,o,v,c),M(p,o,i,x,g,n.graticule,c),T(p,i,n.showLegend,c),p.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-c.height/2-c.marginTop)},"draw"),et=l((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return a.attr("viewbox",`0 0 ${e} ${r}`).attr("width",e).attr("height",r),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),at=l((a,t,e,r,s)=>{if(s==="circle")for(let o=0;o{const p=2*u*Math.PI/o-Math.PI/2,g=n*Math.cos(p),x=n*Math.sin(p);return`${g},${x}`}).join(" ");a.append("polygon").attr("points",c).attr("class","radarGraticule")}}},"drawGraticule"),rt=l((a,t,e,r)=>{const s=t.length;for(let o=0;o{if(d.entries.length!==n)return;const p=d.entries.map((g,x)=>{const v=2*Math.PI*x/n-Math.PI/2,y=A(g,r,s,c),O=y*Math.cos(v),S=y*Math.sin(v);return{x:O,y:S}});o==="circle"?a.append("path").attr("d",L(p,i.curveTension)).attr("class",`radarCurve-${u}`):o==="polygon"&&a.append("polygon").attr("points",p.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${u}`)})}l(M,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}l(A,"relativeRadius");function L(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s{const d=a.append("g").attr("transform",`translate(${s}, ${o+c*i})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${c}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}l(T,"drawLegend");var st={draw:tt},nt=l((a,t)=>{let e="";for(let r=0;r0&&this.packet.push(t)}clear(){W(),this.packet=[]}},b(u,"PacketDB"),u),M=1e4,Y=b((e,t)=>{_(e,t);let o=-1,r=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const r=t*o-1,n=t*o;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{var r;const t=await N("packet",e),o=(r=x.parser)==null?void 0:r.yy;if(!(o instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,o)},"parse")},I=b((e,t,o,r)=>{const n=r.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=B(t);f.attr("viewbox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,o,{rowHeight:r,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=o*(r+l)+l;for(const s of t){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",r).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=b(({packet:e}={})=>{const t=m(q,e);return` +import{_ as b,D as m,H as B,e as C,l as w,b as S,a as D,p as T,q as E,g as F,s as P,E as z,F as A,y as W}from"./index-CnXIpKtg.js";import{p as _}from"./chunk-4BX2VUAB-De0wsjr9.js";import{p as N}from"./treemap-GDKQZRPO-DwNuPoGC.js";import"./_baseUniq-Dg6PvSCo.js";import"./_basePickBy-BzYxueAG.js";import"./clone-z69nb1L5.js";var L=z.packet,u,v=(u=class{constructor(){this.packet=[],this.setAccTitle=S,this.getAccTitle=D,this.setDiagramTitle=T,this.getDiagramTitle=E,this.getAccDescription=F,this.setAccDescription=P}getConfig(){const t=m({...L,...A().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){W(),this.packet=[]}},b(u,"PacketDB"),u),M=1e4,Y=b((e,t)=>{_(e,t);let o=-1,r=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*o)return[e,void 0];const r=t*o-1,n=t*o;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:b(async e=>{var r;const t=await N("packet",e),o=(r=x.parser)==null?void 0:r.yy;if(!(o instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),Y(t,o)},"parse")},I=b((e,t,o,r)=>{const n=r.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),s=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(s?0:a),k=d*c+2,f=B(t);f.attr("viewbox",`0 0 ${k} ${g}`),C(f,g,k,l.useMaxWidth);for(const[y,$]of p.entries())O(f,$,y,l);f.append("text").text(s).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),O=b((e,t,o,{rowHeight:r,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=o*(r+l)+l;for(const s of t){const h=s.start%i*a+1,g=(s.end-s.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",r).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(s.label),!d)continue;const k=s.end===s.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(s.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(s.end)}},"drawWord"),j={draw:I},q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},G=b(({packet:e}={})=>{const t=m(q,e);return` .packetByte { font-size: ${t.byteFontSize}; } diff --git a/src/adclaw/console/assets/erDiagram-Q2GNP2WA-Bf7_08s1.js b/src/adclaw/console/assets/erDiagram-Q2GNP2WA-BQxq7iHq.js similarity index 98% rename from src/adclaw/console/assets/erDiagram-Q2GNP2WA-Bf7_08s1.js rename to src/adclaw/console/assets/erDiagram-Q2GNP2WA-BQxq7iHq.js index ad48a59..72670ea 100644 --- a/src/adclaw/console/assets/erDiagram-Q2GNP2WA-Bf7_08s1.js +++ b/src/adclaw/console/assets/erDiagram-Q2GNP2WA-BQxq7iHq.js @@ -1,4 +1,4 @@ -import{g as Dt}from"./chunk-55IACEB6-HWQqZTFV.js";import{s as wt}from"./chunk-QN33PNHL-Bfn-g6m4.js";import{_ as u,b as Vt,a as Lt,s as Mt,g as Bt,p as Ft,q as Yt,c as tt,l as D,y as Pt,x as zt,A as Gt,B as Kt,o as Zt,r as Ut,d as jt,u as Wt}from"./index-C-alNCkd.js";import{c as Qt}from"./channel-BkfSU_FA.js";var dt=(function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],h=[1,10],d=[1,11],o=[1,12],l=[1,13],f=[1,20],_=[1,21],E=[1,22],V=[1,23],Z=[1,24],S=[1,19],et=[1,25],U=[1,26],T=[1,18],L=[1,33],st=[1,34],it=[1,35],rt=[1,36],nt=[1,37],pt=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],A=[1,43],M=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],N=[1,58],P=[1,62],z=[1,64],j=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],yt=[63,64,65,66,67],ft=[1,81],_t=[1,80],gt=[1,78],bt=[1,79],mt=[6,10,42,47],v=[6,10,13,41,42,47,48,49],W=[1,89],Q=[1,88],X=[1,87],G=[19,56],Et=[1,98],kt=[1,97],at=[19,56,58,60],ct={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,K){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=r.Cardinality.ZERO_OR_ONE;break;case 70:this.$=r.Cardinality.ZERO_OR_MORE;break;case 71:this.$=r.Cardinality.ONE_OR_MORE;break;case 72:this.$=r.Cardinality.ONLY_ONE;break;case 73:this.$=r.Cardinality.MD_PARENT;break;case 74:this.$=r.Identification.NON_IDENTIFYING;break;case 75:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:Z,40:S,43:et,44:U,50:T},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:Z,40:S,43:et,44:U,50:T},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:L,64:st,65:it,66:rt,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(pt,[2,54]),s(pt,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:A},{16:44,40:O,41:A},{16:45,40:O,41:A},s(i,[2,4]),{11:46,40:S,50:T},{16:47,40:O,41:A},{18:48,19:[1,49],51:50,52:51,56:M},{11:53,40:S,50:T},{62:54,68:[1,55],69:[1,56]},s(B,[2,69]),s(B,[2,70]),s(B,[2,71]),s(B,[2,72]),s(B,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:F,38:57,41:Y,42:N,45:59,46:60,48:P,49:z},s(j,[2,37]),s(j,[2,38]),{16:65,40:O,41:A,42:N},{13:F,38:66,41:Y,42:N,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:N,63:L,64:st,65:it,66:rt,67:nt}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:M},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:L,64:st,65:it,66:rt,67:nt},s(yt,[2,74]),s(yt,[2,75]),{6:ft,10:_t,39:77,42:gt,47:bt},{40:[1,82],41:[1,83]},s(mt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),s(v,[2,45]),s(v,[2,50]),s(v,[2,51]),s(v,[2,52]),s(v,[2,53]),s(i,[2,41],{42:N}),{6:ft,10:_t,39:85,42:gt,47:bt},{14:86,40:W,50:Q,70:X},{16:90,40:O,41:A},{11:91,40:S,50:T},{18:92,19:[1,93],51:50,52:51,56:M},s(i,[2,12]),{19:[2,57]},s(G,[2,58],{54:94,55:95,57:96,59:Et,60:kt}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(j,[2,39]),s(j,[2,40]),s(v,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:N},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(G,[2,59],{55:106,58:[1,107],60:kt}),s(G,[2,60]),s(at,[2,64]),s(G,[2,67]),s(at,[2,66]),{18:108,19:[1,109],51:50,52:51,56:M},{16:110,40:O,41:A},s(mt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:W,50:Q,70:X},{16:112,40:O,41:A},{14:113,40:W,50:Q,70:X},s(i,[2,13]),s(G,[2,61]),{57:114,59:Et},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:N}),s(i,[2,11]),{13:[1,117],42:N},s(i,[2,10]),s(at,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:M},{14:120,40:W,50:Q,70:X},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],K=this.table,e="",H=0,St=0,xt=2,Tt=1,It=t.slice.call(arguments,1),y=Object.create(this.lexer),x={yy:{}};for(var lt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,lt)&&(x.yy[lt]=this.yy[lt]);y.setInput(n,x.yy),x.yy.lexer=y,x.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var ot=y.yylloc;t.push(ot);var vt=y.options&&y.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(Ct,"popStack");function Ot(){var b;return b=r.pop()||y.lex()||Tt,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Ot,"lex");for(var g,I,m,ht,C={},J,k,At,$;;){if(I=c[c.length-1],this.defaultActions[I]?m=this.defaultActions[I]:((g===null||typeof g>"u")&&(g=Ot()),m=K[I]&&K[I][g]),typeof m>"u"||!m.length||!m[0]){var ut="";$=[];for(J in K[I])this.terminals_[J]&&J>xt&&$.push("'"+this.terminals_[J]+"'");y.showPosition?ut="Parse error on line "+(H+1)+`: +import{g as Dt}from"./chunk-55IACEB6-BRDK9d3b.js";import{s as wt}from"./chunk-QN33PNHL-Ni-_soP9.js";import{_ as u,b as Vt,a as Lt,s as Mt,g as Bt,p as Ft,q as Yt,c as tt,l as D,y as Pt,x as zt,A as Gt,B as Kt,o as Zt,r as Ut,d as jt,u as Wt}from"./index-CnXIpKtg.js";import{c as Qt}from"./channel-DnkcnzbZ.js";var dt=(function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],h=[1,10],d=[1,11],o=[1,12],l=[1,13],f=[1,20],_=[1,21],E=[1,22],V=[1,23],Z=[1,24],S=[1,19],et=[1,25],U=[1,26],T=[1,18],L=[1,33],st=[1,34],it=[1,35],rt=[1,36],nt=[1,37],pt=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],A=[1,43],M=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],N=[1,58],P=[1,62],z=[1,64],j=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],yt=[63,64,65,66,67],ft=[1,81],_t=[1,80],gt=[1,78],bt=[1,79],mt=[6,10,42,47],v=[6,10,13,41,42,47,48,49],W=[1,89],Q=[1,88],X=[1,87],G=[19,56],Et=[1,98],kt=[1,97],at=[19,56,58,60],ct={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,K){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=r.Cardinality.ZERO_OR_ONE;break;case 70:this.$=r.Cardinality.ZERO_OR_MORE;break;case 71:this.$=r.Cardinality.ONE_OR_MORE;break;case 72:this.$=r.Cardinality.ONLY_ONE;break;case 73:this.$=r.Cardinality.MD_PARENT;break;case 74:this.$=r.Identification.NON_IDENTIFYING;break;case 75:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:Z,40:S,43:et,44:U,50:T},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:h,24:d,26:o,28:l,29:14,30:15,31:16,32:17,33:f,34:_,35:E,36:V,37:Z,40:S,43:et,44:U,50:T},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:L,64:st,65:it,66:rt,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(pt,[2,54]),s(pt,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:A},{16:44,40:O,41:A},{16:45,40:O,41:A},s(i,[2,4]),{11:46,40:S,50:T},{16:47,40:O,41:A},{18:48,19:[1,49],51:50,52:51,56:M},{11:53,40:S,50:T},{62:54,68:[1,55],69:[1,56]},s(B,[2,69]),s(B,[2,70]),s(B,[2,71]),s(B,[2,72]),s(B,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:F,38:57,41:Y,42:N,45:59,46:60,48:P,49:z},s(j,[2,37]),s(j,[2,38]),{16:65,40:O,41:A,42:N},{13:F,38:66,41:Y,42:N,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:N,63:L,64:st,65:it,66:rt,67:nt}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:M},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:L,64:st,65:it,66:rt,67:nt},s(yt,[2,74]),s(yt,[2,75]),{6:ft,10:_t,39:77,42:gt,47:bt},{40:[1,82],41:[1,83]},s(mt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),s(v,[2,45]),s(v,[2,50]),s(v,[2,51]),s(v,[2,52]),s(v,[2,53]),s(i,[2,41],{42:N}),{6:ft,10:_t,39:85,42:gt,47:bt},{14:86,40:W,50:Q,70:X},{16:90,40:O,41:A},{11:91,40:S,50:T},{18:92,19:[1,93],51:50,52:51,56:M},s(i,[2,12]),{19:[2,57]},s(G,[2,58],{54:94,55:95,57:96,59:Et,60:kt}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(j,[2,39]),s(j,[2,40]),s(v,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:N},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(G,[2,59],{55:106,58:[1,107],60:kt}),s(G,[2,60]),s(at,[2,64]),s(G,[2,67]),s(at,[2,66]),{18:108,19:[1,109],51:50,52:51,56:M},{16:110,40:O,41:A},s(mt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:W,50:Q,70:X},{16:112,40:O,41:A},{14:113,40:W,50:Q,70:X},s(i,[2,13]),s(G,[2,61]),{57:114,59:Et},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:N}),s(i,[2,11]),{13:[1,117],42:N},s(i,[2,10]),s(at,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:M},{14:120,40:W,50:Q,70:X},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],K=this.table,e="",H=0,St=0,xt=2,Tt=1,It=t.slice.call(arguments,1),y=Object.create(this.lexer),x={yy:{}};for(var lt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,lt)&&(x.yy[lt]=this.yy[lt]);y.setInput(n,x.yy),x.yy.lexer=y,x.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var ot=y.yylloc;t.push(ot);var vt=y.options&&y.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ct(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(Ct,"popStack");function Ot(){var b;return b=r.pop()||y.lex()||Tt,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Ot,"lex");for(var g,I,m,ht,C={},J,k,At,$;;){if(I=c[c.length-1],this.defaultActions[I]?m=this.defaultActions[I]:((g===null||typeof g>"u")&&(g=Ot()),m=K[I]&&K[I][g]),typeof m>"u"||!m.length||!m[0]){var ut="";$=[];for(J in K[I])this.terminals_[J]&&J>xt&&$.push("'"+this.terminals_[J]+"'");y.showPosition?ut="Parse error on line "+(H+1)+`: `+y.showPosition()+` Expecting `+$.join(", ")+", got '"+(this.terminals_[g]||g)+"'":ut="Parse error on line "+(H+1)+": Unexpected "+(g==Tt?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(ut,{text:y.match,token:this.terminals_[g]||g,line:y.yylineno,loc:ot,expected:$})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+g);switch(m[0]){case 1:c.push(g),p.push(y.yytext),t.push(y.yylloc),c.push(m[1]),g=null,St=y.yyleng,e=y.yytext,H=y.yylineno,ot=y.yylloc;break;case 2:if(k=this.productions_[m[1]][1],C.$=p[p.length-k],C._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},vt&&(C._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(C,[e,St,H,x.yy,m[1],p,t].concat(It)),typeof ht<"u")return ht;k&&(c=c.slice(0,-1*k*2),p=p.slice(0,-1*k),t=t.slice(0,-1*k)),c.push(this.productions_[m[1]][0]),p.push(C.$),t.push(C._$),At=K[c[c.length-2]][c[c.length-1]],c.push(At);break;case 3:return!0}}return!0},"parse")},Rt=(function(){var R={EOF:1,parseError:u(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:u(function(n,a){return this.yy=a||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:u(function(n){var a=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(n){this.unput(this.match.slice(n))},"less"),pastInput:u(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/src/adclaw/console/assets/flowDiagram-NV44I4VS-DWaZuKmZ.js b/src/adclaw/console/assets/flowDiagram-NV44I4VS-B9dFj1QQ.js similarity index 99% rename from src/adclaw/console/assets/flowDiagram-NV44I4VS-DWaZuKmZ.js rename to src/adclaw/console/assets/flowDiagram-NV44I4VS-B9dFj1QQ.js index 21c7cb1..95bdd3e 100644 --- a/src/adclaw/console/assets/flowDiagram-NV44I4VS-DWaZuKmZ.js +++ b/src/adclaw/console/assets/flowDiagram-NV44I4VS-B9dFj1QQ.js @@ -1,4 +1,4 @@ -import{g as qt}from"./chunk-FMBD7UC4-C_3apHrX.js";import{_ as m,n as Ot,l as t1,c as b1,d as S1,o as Ht,r as Xt,u as it,b as Qt,s as Jt,p as Zt,a as $t,g as te,q as ee,k as se,t as ie,J as re,v as ae,x as st,y as ne,z as ue,A as oe}from"./index-C-alNCkd.js";import{g as le}from"./chunk-55IACEB6-HWQqZTFV.js";import{s as ce}from"./chunk-QN33PNHL-Bfn-g6m4.js";import{c as he}from"./channel-BkfSU_FA.js";var de="flowchart-",P1,pe=(P1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Qt,this.setAccDescription=Jt,this.setDiagramTitle=Zt,this.getAccTitle=$t,this.getAccDescription=te,this.getDiagramTitle=ee,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return se.sanitizeText(i,this.config)}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return a.domId;return i}addVertex(i,a,n,u,o,f,c={},A){var L,C;if(!i||i.trim().length===0)return;let r;if(A!==void 0){let d;A.includes(` +import{g as qt}from"./chunk-FMBD7UC4-_lv-Ir7k.js";import{_ as m,n as Ot,l as t1,c as b1,d as S1,o as Ht,r as Xt,u as it,b as Qt,s as Jt,p as Zt,a as $t,g as te,q as ee,k as se,t as ie,J as re,v as ae,x as st,y as ne,z as ue,A as oe}from"./index-CnXIpKtg.js";import{g as le}from"./chunk-55IACEB6-BRDK9d3b.js";import{s as ce}from"./chunk-QN33PNHL-Ni-_soP9.js";import{c as he}from"./channel-DnkcnzbZ.js";var de="flowchart-",P1,pe=(P1=class{constructor(){this.vertexCounter=0,this.config=b1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Qt,this.setAccDescription=Jt,this.setDiagramTitle=Zt,this.getAccTitle=$t,this.getAccDescription=te,this.getDiagramTitle=ee,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return se.sanitizeText(i,this.config)}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return a.domId;return i}addVertex(i,a,n,u,o,f,c={},A){var L,C;if(!i||i.trim().length===0)return;let r;if(A!==void 0){let d;A.includes(` `)?d=A+` `:d=`{ `+A+` diff --git a/src/adclaw/console/assets/ganttDiagram-JELNMOA3-B33mOOCE.js b/src/adclaw/console/assets/ganttDiagram-JELNMOA3-BACMDM9w.js similarity index 99% rename from src/adclaw/console/assets/ganttDiagram-JELNMOA3-B33mOOCE.js rename to src/adclaw/console/assets/ganttDiagram-JELNMOA3-BACMDM9w.js index 4f65788..e4d61a9 100644 --- a/src/adclaw/console/assets/ganttDiagram-JELNMOA3-B33mOOCE.js +++ b/src/adclaw/console/assets/ganttDiagram-JELNMOA3-BACMDM9w.js @@ -1,4 +1,4 @@ -import{b9 as tn,ba as In,bb as en,bc as nn,bd as rn,be as se,bf as Yn,aM as sn,g as An,s as Wn,q as Ln,p as On,a as $n,b as Nn,_ as f,c as St,d as qt,e as Hn,bg as nt,l as vt,k as Vn,j as Pn,y as Rn,u as zn,bh as Bn,bi as qn}from"./index-C-alNCkd.js";import{b as Zn,t as Le,c as jn,a as Xn,l as Gn}from"./linear-6bmKclen.js";import{i as Qn}from"./init-Gi6I4Gst.js";import"./defaultLocale-DX6XiGOO.js";function Jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Kn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function tr(t){return t}var jt=1,ae=2,ke=3,Zt=4,Oe=1e-6;function er(t){return"translate("+t+",0)"}function nr(t){return"translate(0,"+t+")"}function rr(t){return e=>+t(e)}function ir(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function sr(){return!this.__axis}function an(t,e){var n=[],r=null,i=null,a=6,c=6,b=3,E=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===jt||t===Zt?-1:1,x=t===Zt||t===ae?"x":"y",W=t===jt||t===ke?er:nr;function _(C){var V=r??(e.ticks?e.ticks.apply(e,n):e.domain()),I=i??(e.tickFormat?e.tickFormat.apply(e,n):tr),tt=Math.max(a,0)+b,Z=e.range(),rt=+Z[0]+E,R=+Z[Z.length-1]+E,q=(e.bandwidth?ir:rr)(e.copy(),E),Q=C.selection?C.selection():C,m=Q.selectAll(".domain").data([null]),g=Q.selectAll(".tick").data(V,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),D=g.select("line"),M=g.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),D=D.merge(h.append("line").attr("stroke","currentColor").attr(x+"2",S*a)),M=M.merge(h.append("text").attr("fill","currentColor").attr(x,S*tt).attr("dy",t===jt?"0em":t===ke?"0.71em":"0.32em")),C!==Q&&(m=m.transition(C),g=g.transition(C),D=D.transition(C),M=M.transition(C),y=y.transition(C).attr("opacity",Oe).attr("transform",function(w){return isFinite(w=q(w))?W(w+E):this.getAttribute("transform")}),h.attr("opacity",Oe).attr("transform",function(w){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(w))?p:q(w))+E)})),y.remove(),m.attr("d",t===Zt||t===ae?c?"M"+S*c+","+rt+"H"+E+"V"+R+"H"+S*c:"M"+E+","+rt+"V"+R:c?"M"+rt+","+S*c+"V"+E+"H"+R+"V"+S*c:"M"+rt+","+E+"H"+R),g.attr("opacity",1).attr("transform",function(w){return W(q(w)+E)}),D.attr(x+"2",S*a),M.attr(x,S*tt).text(I),Q.filter(sr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ae?"start":t===Zt?"end":"middle"),Q.each(function(){this.__axis=q})}return _.scale=function(C){return arguments.length?(e=C,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(C){return arguments.length?(n=C==null?[]:Array.from(C),_):n.slice()},_.tickValues=function(C){return arguments.length?(r=C==null?null:Array.from(C),_):r&&r.slice()},_.tickFormat=function(C){return arguments.length?(i=C,_):i},_.tickSize=function(C){return arguments.length?(a=c=+C,_):a},_.tickSizeInner=function(C){return arguments.length?(a=+C,_):a},_.tickSizeOuter=function(C){return arguments.length?(c=+C,_):c},_.tickPadding=function(C){return arguments.length?(b=+C,_):b},_.offset=function(C){return arguments.length?(E=+C,_):E},_}function ar(t){return an(jt,t)}function or(t){return an(ke,t)}const cr=Math.PI/180,ur=180/Math.PI,Kt=18,on=.96422,cn=1,un=.82521,ln=4/29,_t=6/29,fn=3*_t*_t,lr=_t*_t*_t;function dn(t){if(t instanceof ut)return new ut(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return hn(t);t instanceof tn||(t=In(t));var e=le(t.r),n=le(t.g),r=le(t.b),i=oe((.2225045*e+.7168786*n+.0606169*r)/cn),a,c;return e===n&&n===r?a=c=i:(a=oe((.4360747*e+.3850649*n+.1430804*r)/on),c=oe((.0139322*e+.0971045*n+.7141733*r)/un)),new ut(116*i-16,500*(a-i),200*(i-c),t.opacity)}function fr(t,e,n,r){return arguments.length===1?dn(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}en(ut,fr,nn(rn,{brighter(t){return new ut(this.l+Kt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ut(this.l-Kt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=on*ce(e),t=cn*ce(t),n=un*ce(n),new tn(ue(3.1338561*e-1.6168667*t-.4906146*n),ue(-.9787684*e+1.9161415*t+.033454*n),ue(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function oe(t){return t>lr?Math.pow(t,1/3):t/fn+ln}function ce(t){return t>_t?t*t*t:fn*(t-ln)}function ue(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function le(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function dr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ut||(t=dn(t)),t.a===0&&t.b===0)return new ht(NaN,0(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const c=i(a),b=i.ceil(a);return a-c(e(a=new Date(+a),c==null?1:Math.floor(c)),a),i.range=(a,c,b)=>{const E=[];if(a=i.ceil(a),b=b==null?1:Math.floor(b),!(a0))return E;let S;do E.push(S=new Date(+a)),e(a,b),t(a);while(SG(c=>{if(c>=c)for(;t(c),!a(c);)c.setTime(c-1)},(c,b)=>{if(c>=c)if(b<0)for(;++b<=0;)for(;e(c,-1),!a(c););else for(;--b>=0;)for(;e(c,1),!a(c););}),n&&(i.count=(a,c)=>(fe.setTime(+a),de.setTime(+c),t(fe),t(de),Math.floor(n(fe,de))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?c=>r(c)%a===0:c=>i.count(0,c)%a===0):i)),i}const Ut=G(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?G(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,st=mt*60,gt=st*60,yt=gt*24,we=yt*7,$e=yt*30,he=yt*365,pt=G(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());pt.range;const Lt=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*st)},(t,e)=>(e-t)/st,t=>t.getMinutes());Lt.range;const yr=G(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*st)},(t,e)=>(e-t)/st,t=>t.getUTCMinutes());yr.range;const Ot=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*st)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const kr=G(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());kr.range;const Tt=G(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*st)/yt,t=>t.getDate()-1);Tt.range;const Ce=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);Ce.range;const pr=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));pr.range;function wt(t){return G(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*st)/we)}const Ht=wt(0),$t=wt(1),mn=wt(2),gn=wt(3),bt=wt(4),yn=wt(5),kn=wt(6);Ht.range;$t.range;mn.range;gn.range;bt.range;yn.range;kn.range;function Ct(t){return G(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/we)}const pn=Ct(0),te=Ct(1),vr=Ct(2),Tr=Ct(3),Et=Ct(4),br=Ct(5),xr=Ct(6);pn.range;te.range;vr.range;Tr.range;Et.range;br.range;xr.range;const Nt=G(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const wr=G(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());wr.range;const kt=G(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const xt=G(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function Cr(t,e,n,r,i,a){const c=[[pt,1,mt],[pt,5,5*mt],[pt,15,15*mt],[pt,30,30*mt],[a,1,st],[a,5,5*st],[a,15,15*st],[a,30,30*st],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,we],[e,1,$e],[e,3,3*$e],[t,1,he]];function b(S,x,W){const _=xtt).right(c,_);if(C===c.length)return t.every(Le(S/he,x/he,W));if(C===0)return Ut.every(Math.max(Le(S,x,W),1));const[V,I]=c[_/c[C-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(A=ge(Yt(l.y,0,1)),j=A.getUTCDay(),A=j>4||j===0?te.ceil(A):te(A),A=Ce.offset(A,(l.V-1)*7),l.y=A.getUTCFullYear(),l.m=A.getUTCMonth(),l.d=A.getUTCDate()+(l.w+6)%7):(A=me(Yt(l.y,0,1)),j=A.getDay(),A=j>4||j===0?$t.ceil(A):$t(A),A=Tt.offset(A,(l.V-1)*7),l.y=A.getFullYear(),l.m=A.getMonth(),l.d=A.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?ge(Yt(l.y,0,1)).getUTCDay():me(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ge(l)):me(l)}}function y(T,L,N,l){for(var et=0,A=L.length,j=N.length,B,ot;et=j)return-1;if(B=L.charCodeAt(et++),B===37){if(B=L.charAt(et++),ot=Q[B in Ne?L.charAt(et++):B],!ot||(l=ot(T,N,l))<0)return-1}else if(B!=N.charCodeAt(l++))return-1}return l}function h(T,L,N){var l=S.exec(L.slice(N));return l?(T.p=x.get(l[0].toLowerCase()),N+l[0].length):-1}function D(T,L,N){var l=C.exec(L.slice(N));return l?(T.w=V.get(l[0].toLowerCase()),N+l[0].length):-1}function M(T,L,N){var l=W.exec(L.slice(N));return l?(T.w=_.get(l[0].toLowerCase()),N+l[0].length):-1}function w(T,L,N){var l=Z.exec(L.slice(N));return l?(T.m=rt.get(l[0].toLowerCase()),N+l[0].length):-1}function p(T,L,N){var l=I.exec(L.slice(N));return l?(T.m=tt.get(l[0].toLowerCase()),N+l[0].length):-1}function u(T,L,N){return y(T,e,L,N)}function d(T,L,N){return y(T,n,L,N)}function v(T,L,N){return y(T,r,L,N)}function k(T){return c[T.getDay()]}function F(T){return a[T.getDay()]}function o(T){return E[T.getMonth()]}function z(T){return b[T.getMonth()]}function s(T){return i[+(T.getHours()>=12)]}function U(T){return 1+~~(T.getMonth()/3)}function P(T){return c[T.getUTCDay()]}function $(T){return a[T.getUTCDay()]}function O(T){return E[T.getUTCMonth()]}function J(T){return b[T.getUTCMonth()]}function Y(T){return i[+(T.getUTCHours()>=12)]}function at(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var L=m(T+="",R);return L.toString=function(){return T},L},parse:function(T){var L=g(T+="",!1);return L.toString=function(){return T},L},utcFormat:function(T){var L=m(T+="",q);return L.toString=function(){return T},L},utcParse:function(T){var L=g(T+="",!0);return L.toString=function(){return T},L}}}var Ne={"-":"",_:" ",0:"0"},K=/^\s*\d+/,_r=/^%/,Fr=/[\\^$*+?|[\]().{}]/g;function H(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a[e.toLowerCase(),n]))}function Er(t,e,n){var r=K.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=K.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function He(t,e,n){var r=K.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Or(t,e,n){var r=K.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function $r(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Pe(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=K.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Re(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=K.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=K.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Br(t,e,n){var r=K.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=K.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function ze(t,e){return H(t.getDate(),e,2)}function Zr(t,e){return H(t.getHours(),e,2)}function jr(t,e){return H(t.getHours()%12||12,e,2)}function Xr(t,e){return H(1+Tt.count(kt(t),t),e,3)}function vn(t,e){return H(t.getMilliseconds(),e,3)}function Gr(t,e){return vn(t,e)+"000"}function Qr(t,e){return H(t.getMonth()+1,e,2)}function Jr(t,e){return H(t.getMinutes(),e,2)}function Kr(t,e){return H(t.getSeconds(),e,2)}function ti(t){var e=t.getDay();return e===0?7:e}function ei(t,e){return H(Ht.count(kt(t)-1,t),e,2)}function Tn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ni(t,e){return t=Tn(t),H(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ri(t){return t.getDay()}function ii(t,e){return H($t.count(kt(t)-1,t),e,2)}function si(t,e){return H(t.getFullYear()%100,e,2)}function ai(t,e){return t=Tn(t),H(t.getFullYear()%100,e,2)}function oi(t,e){return H(t.getFullYear()%1e4,e,4)}function ci(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),H(t.getFullYear()%1e4,e,4)}function ui(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+H(e/60|0,"0",2)+H(e%60,"0",2)}function Be(t,e){return H(t.getUTCDate(),e,2)}function li(t,e){return H(t.getUTCHours(),e,2)}function fi(t,e){return H(t.getUTCHours()%12||12,e,2)}function di(t,e){return H(1+Ce.count(xt(t),t),e,3)}function bn(t,e){return H(t.getUTCMilliseconds(),e,3)}function hi(t,e){return bn(t,e)+"000"}function mi(t,e){return H(t.getUTCMonth()+1,e,2)}function gi(t,e){return H(t.getUTCMinutes(),e,2)}function yi(t,e){return H(t.getUTCSeconds(),e,2)}function ki(t){var e=t.getUTCDay();return e===0?7:e}function pi(t,e){return H(pn.count(xt(t)-1,t),e,2)}function xn(t){var e=t.getUTCDay();return e>=4||e===0?Et(t):Et.ceil(t)}function vi(t,e){return t=xn(t),H(Et.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function Ti(t){return t.getUTCDay()}function bi(t,e){return H(te.count(xt(t)-1,t),e,2)}function xi(t,e){return H(t.getUTCFullYear()%100,e,2)}function wi(t,e){return t=xn(t),H(t.getUTCFullYear()%100,e,2)}function Ci(t,e){return H(t.getUTCFullYear()%1e4,e,4)}function Di(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Et(t):Et.ceil(t),H(t.getUTCFullYear()%1e4,e,4)}function Mi(){return"+0000"}function qe(){return"%"}function Ze(t){return+t}function je(t){return Math.floor(+t/1e3)}var Mt,ee;Si({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Si(t){return Mt=Sr(t),ee=Mt.format,Mt.parse,Mt.utcFormat,Mt.utcParse,Mt}function _i(t){return new Date(t)}function Fi(t){return t instanceof Date?+t:+new Date(+t)}function wn(t,e,n,r,i,a,c,b,E,S){var x=jn(),W=x.invert,_=x.domain,C=S(".%L"),V=S(":%S"),I=S("%I:%M"),tt=S("%I %p"),Z=S("%a %d"),rt=S("%b %d"),R=S("%B"),q=S("%Y");function Q(m){return(E(m)4&&(C+=7),_.add(C,n));return V.diff(I,"week")+1},b.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var E=b.startOf;b.startOf=function(S,x){var W=this.$utils(),_=!!W.u(x)||x;return W.p(S)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):E.bind(this)(S,x)}}}))})(Xt)),Xt.exports}var Yi=Ii();const Ai=sn(Yi);var Gt={exports:{}},Wi=Gt.exports,Ge;function Li(){return Ge||(Ge=1,(function(t,e){(function(n,r){t.exports=r()})(Wi,(function(){var n,r,i=1e3,a=6e4,c=36e5,b=864e5,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S=31536e6,x=2628e6,W=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:S,months:x,days:b,hours:c,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},C=function(m){return m instanceof q},V=function(m,g,y){return new q(m,y,g.$l)},I=function(m){return r.p(m)+"s"},tt=function(m){return m<0},Z=function(m){return tt(m)?Math.ceil(m):Math.floor(m)},rt=function(m){return Math.abs(m)},R=function(m,g){return m?tt(m)?{negative:!0,format:""+rt(m)+g}:{negative:!1,format:""+m+g}:{negative:!1,format:""}},q=(function(){function m(y,h,D){var M=this;if(this.$d={},this.$l=D,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return V(y*_[I(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach((function(u){M.$d[I(u)]=y[u]})),this.calMilliseconds(),this;if(typeof y=="string"){var w=y.match(W);if(w){var p=w.slice(2).map((function(u){return u!=null?Number(u):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce((function(h,D){return h+(y.$d[D]||0)*_[D]}),0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=Z(y/S),y%=S,this.$d.months=Z(y/x),y%=x,this.$d.days=Z(y/b),y%=b,this.$d.hours=Z(y/c),y%=c,this.$d.minutes=Z(y/a),y%=a,this.$d.seconds=Z(y/i),y%=i,this.$d.milliseconds=y},g.toISOString=function(){var y=R(this.$d.years,"Y"),h=R(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var M=R(D,"D"),w=R(this.$d.hours,"H"),p=R(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var d=R(u,"S"),v=y.negative||h.negative||M.negative||w.negative||p.negative||d.negative,k=w.format||p.format||d.format?"T":"",F=(v?"-":"")+"P"+y.format+h.format+M.format+k+w.format+p.format+d.format;return F==="P"||F==="-P"?"P0D":F},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(E,(function(M,w){return w||String(D[M])}))},g.as=function(y){return this.$ms/_[I(y)]},g.get=function(y){var h=this.$ms,D=I(y);return D==="milliseconds"?h%=1e3:h=D==="weeks"?Z(h/_[D]):this.$d[D],h||0},g.add=function(y,h,D){var M;return M=h?y*_[I(h)]:C(y)?y.$ms:V(y,this).$ms,V(this.$ms+M*(D?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return V(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},m})(),Q=function(m,g,y){return m.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(m,g,y){n=y,r=y().$utils(),y.duration=function(M,w){var p=y.locale();return V(M,{$l:p},w)},y.isDuration=C;var h=g.prototype.add,D=g.prototype.subtract;g.prototype.add=function(M,w){return C(M)?Q(this,M,1):h.bind(this)(M,w)},g.prototype.subtract=function(M,w){return C(M)?Q(this,M,-1):D.bind(this)(M,w)}}}))})(Gt)),Gt.exports}var Oi=Li();const $i=sn(Oi);var ve=(function(){var t=f(function(p,u,d,v){for(d=d||{},v=p.length;v--;d[p[v]]=u);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],c=[1,30],b=[1,31],E=[1,32],S=[1,33],x=[1,34],W=[1,9],_=[1,10],C=[1,11],V=[1,12],I=[1,13],tt=[1,14],Z=[1,15],rt=[1,16],R=[1,19],q=[1,20],Q=[1,21],m=[1,22],g=[1,23],y=[1,25],h=[1,35],D={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:f(function(u,d,v,k,F,o,z){var s=o.length-1;switch(F){case 1:return o[s-1];case 2:this.$=[];break;case 3:o[s-1].push(o[s]),this.$=o[s-1];break;case 4:case 5:this.$=o[s];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[s].substr(18);break;case 19:k.TopAxis(),this.$=o[s].substr(8);break;case 20:k.setAxisFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 21:k.setTickInterval(o[s].substr(13)),this.$=o[s].substr(13);break;case 22:k.setExcludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 23:k.setIncludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 24:k.setTodayMarker(o[s].substr(12)),this.$=o[s].substr(12);break;case 27:k.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 28:this.$=o[s].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[s].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 33:k.addTask(o[s-1],o[s]),this.$="task";break;case 34:this.$=o[s-1],k.setClickEvent(o[s-1],o[s],null);break;case 35:this.$=o[s-2],k.setClickEvent(o[s-2],o[s-1],o[s]);break;case 36:this.$=o[s-2],k.setClickEvent(o[s-2],o[s-1],null),k.setLink(o[s-2],o[s]);break;case 37:this.$=o[s-3],k.setClickEvent(o[s-3],o[s-2],o[s-1]),k.setLink(o[s-3],o[s]);break;case 38:this.$=o[s-2],k.setClickEvent(o[s-2],o[s],null),k.setLink(o[s-2],o[s-1]);break;case 39:this.$=o[s-3],k.setClickEvent(o[s-3],o[s-1],o[s]),k.setLink(o[s-3],o[s-2]);break;case 40:this.$=o[s-1],k.setLink(o[s-1],o[s]);break;case 41:case 47:this.$=o[s-1]+" "+o[s];break;case 42:case 43:case 45:this.$=o[s-2]+" "+o[s-1]+" "+o[s];break;case 44:case 46:this.$=o[s-3]+" "+o[s-2]+" "+o[s-1]+" "+o[s];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:c,17:b,18:E,19:18,20:S,21:x,22:W,23:_,24:C,25:V,26:I,27:tt,28:Z,29:rt,30:R,31:q,33:Q,35:m,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:c,17:b,18:E,19:18,20:S,21:x,22:W,23:_,24:C,25:V,26:I,27:tt,28:Z,29:rt,30:R,31:q,33:Q,35:m,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:f(function(u,d){if(d.recoverable)this.trace(u);else{var v=new Error(u);throw v.hash=d,v}},"parseError"),parse:f(function(u){var d=this,v=[0],k=[],F=[null],o=[],z=this.table,s="",U=0,P=0,$=2,O=1,J=o.slice.call(arguments,1),Y=Object.create(this.lexer),at={yy:{}};for(var T in this.yy)Object.prototype.hasOwnProperty.call(this.yy,T)&&(at.yy[T]=this.yy[T]);Y.setInput(u,at.yy),at.yy.lexer=Y,at.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var L=Y.yylloc;o.push(L);var N=Y.options&&Y.options.ranges;typeof at.yy.parseError=="function"?this.parseError=at.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(it){v.length=v.length-2*it,F.length=F.length-it,o.length=o.length-it}f(l,"popStack");function et(){var it;return it=k.pop()||Y.lex()||O,typeof it!="number"&&(it instanceof Array&&(k=it,it=k.pop()),it=d.symbols_[it]||it),it}f(et,"lex");for(var A,j,B,ot,lt={},zt,ft,We,Bt;;){if(j=v[v.length-1],this.defaultActions[j]?B=this.defaultActions[j]:((A===null||typeof A>"u")&&(A=et()),B=z[j]&&z[j][A]),typeof B>"u"||!B.length||!B[0]){var ie="";Bt=[];for(zt in z[j])this.terminals_[zt]&&zt>$&&Bt.push("'"+this.terminals_[zt]+"'");Y.showPosition?ie="Parse error on line "+(U+1)+`: +import{b9 as tn,ba as In,bb as en,bc as nn,bd as rn,be as se,bf as Yn,aM as sn,g as An,s as Wn,q as Ln,p as On,a as $n,b as Nn,_ as f,c as St,d as qt,e as Hn,bg as nt,l as vt,k as Vn,j as Pn,y as Rn,u as zn,bh as Bn,bi as qn}from"./index-CnXIpKtg.js";import{b as Zn,t as Le,c as jn,a as Xn,l as Gn}from"./linear-Bizo30dK.js";import{i as Qn}from"./init-Gi6I4Gst.js";import"./defaultLocale-DX6XiGOO.js";function Jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Kn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function tr(t){return t}var jt=1,ae=2,ke=3,Zt=4,Oe=1e-6;function er(t){return"translate("+t+",0)"}function nr(t){return"translate(0,"+t+")"}function rr(t){return e=>+t(e)}function ir(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function sr(){return!this.__axis}function an(t,e){var n=[],r=null,i=null,a=6,c=6,b=3,E=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===jt||t===Zt?-1:1,x=t===Zt||t===ae?"x":"y",W=t===jt||t===ke?er:nr;function _(C){var V=r??(e.ticks?e.ticks.apply(e,n):e.domain()),I=i??(e.tickFormat?e.tickFormat.apply(e,n):tr),tt=Math.max(a,0)+b,Z=e.range(),rt=+Z[0]+E,R=+Z[Z.length-1]+E,q=(e.bandwidth?ir:rr)(e.copy(),E),Q=C.selection?C.selection():C,m=Q.selectAll(".domain").data([null]),g=Q.selectAll(".tick").data(V,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),D=g.select("line"),M=g.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),D=D.merge(h.append("line").attr("stroke","currentColor").attr(x+"2",S*a)),M=M.merge(h.append("text").attr("fill","currentColor").attr(x,S*tt).attr("dy",t===jt?"0em":t===ke?"0.71em":"0.32em")),C!==Q&&(m=m.transition(C),g=g.transition(C),D=D.transition(C),M=M.transition(C),y=y.transition(C).attr("opacity",Oe).attr("transform",function(w){return isFinite(w=q(w))?W(w+E):this.getAttribute("transform")}),h.attr("opacity",Oe).attr("transform",function(w){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(w))?p:q(w))+E)})),y.remove(),m.attr("d",t===Zt||t===ae?c?"M"+S*c+","+rt+"H"+E+"V"+R+"H"+S*c:"M"+E+","+rt+"V"+R:c?"M"+rt+","+S*c+"V"+E+"H"+R+"V"+S*c:"M"+rt+","+E+"H"+R),g.attr("opacity",1).attr("transform",function(w){return W(q(w)+E)}),D.attr(x+"2",S*a),M.attr(x,S*tt).text(I),Q.filter(sr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ae?"start":t===Zt?"end":"middle"),Q.each(function(){this.__axis=q})}return _.scale=function(C){return arguments.length?(e=C,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(C){return arguments.length?(n=C==null?[]:Array.from(C),_):n.slice()},_.tickValues=function(C){return arguments.length?(r=C==null?null:Array.from(C),_):r&&r.slice()},_.tickFormat=function(C){return arguments.length?(i=C,_):i},_.tickSize=function(C){return arguments.length?(a=c=+C,_):a},_.tickSizeInner=function(C){return arguments.length?(a=+C,_):a},_.tickSizeOuter=function(C){return arguments.length?(c=+C,_):c},_.tickPadding=function(C){return arguments.length?(b=+C,_):b},_.offset=function(C){return arguments.length?(E=+C,_):E},_}function ar(t){return an(jt,t)}function or(t){return an(ke,t)}const cr=Math.PI/180,ur=180/Math.PI,Kt=18,on=.96422,cn=1,un=.82521,ln=4/29,_t=6/29,fn=3*_t*_t,lr=_t*_t*_t;function dn(t){if(t instanceof ut)return new ut(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return hn(t);t instanceof tn||(t=In(t));var e=le(t.r),n=le(t.g),r=le(t.b),i=oe((.2225045*e+.7168786*n+.0606169*r)/cn),a,c;return e===n&&n===r?a=c=i:(a=oe((.4360747*e+.3850649*n+.1430804*r)/on),c=oe((.0139322*e+.0971045*n+.7141733*r)/un)),new ut(116*i-16,500*(a-i),200*(i-c),t.opacity)}function fr(t,e,n,r){return arguments.length===1?dn(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}en(ut,fr,nn(rn,{brighter(t){return new ut(this.l+Kt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ut(this.l-Kt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=on*ce(e),t=cn*ce(t),n=un*ce(n),new tn(ue(3.1338561*e-1.6168667*t-.4906146*n),ue(-.9787684*e+1.9161415*t+.033454*n),ue(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function oe(t){return t>lr?Math.pow(t,1/3):t/fn+ln}function ce(t){return t>_t?t*t*t:fn*(t-ln)}function ue(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function le(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function dr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ut||(t=dn(t)),t.a===0&&t.b===0)return new ht(NaN,0(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const c=i(a),b=i.ceil(a);return a-c(e(a=new Date(+a),c==null?1:Math.floor(c)),a),i.range=(a,c,b)=>{const E=[];if(a=i.ceil(a),b=b==null?1:Math.floor(b),!(a0))return E;let S;do E.push(S=new Date(+a)),e(a,b),t(a);while(SG(c=>{if(c>=c)for(;t(c),!a(c);)c.setTime(c-1)},(c,b)=>{if(c>=c)if(b<0)for(;++b<=0;)for(;e(c,-1),!a(c););else for(;--b>=0;)for(;e(c,1),!a(c););}),n&&(i.count=(a,c)=>(fe.setTime(+a),de.setTime(+c),t(fe),t(de),Math.floor(n(fe,de))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?c=>r(c)%a===0:c=>i.count(0,c)%a===0):i)),i}const Ut=G(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?G(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,st=mt*60,gt=st*60,yt=gt*24,we=yt*7,$e=yt*30,he=yt*365,pt=G(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());pt.range;const Lt=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*st)},(t,e)=>(e-t)/st,t=>t.getMinutes());Lt.range;const yr=G(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*st)},(t,e)=>(e-t)/st,t=>t.getUTCMinutes());yr.range;const Ot=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*st)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const kr=G(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());kr.range;const Tt=G(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*st)/yt,t=>t.getDate()-1);Tt.range;const Ce=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);Ce.range;const pr=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));pr.range;function wt(t){return G(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*st)/we)}const Ht=wt(0),$t=wt(1),mn=wt(2),gn=wt(3),bt=wt(4),yn=wt(5),kn=wt(6);Ht.range;$t.range;mn.range;gn.range;bt.range;yn.range;kn.range;function Ct(t){return G(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/we)}const pn=Ct(0),te=Ct(1),vr=Ct(2),Tr=Ct(3),Et=Ct(4),br=Ct(5),xr=Ct(6);pn.range;te.range;vr.range;Tr.range;Et.range;br.range;xr.range;const Nt=G(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const wr=G(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());wr.range;const kt=G(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const xt=G(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function Cr(t,e,n,r,i,a){const c=[[pt,1,mt],[pt,5,5*mt],[pt,15,15*mt],[pt,30,30*mt],[a,1,st],[a,5,5*st],[a,15,15*st],[a,30,30*st],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,we],[e,1,$e],[e,3,3*$e],[t,1,he]];function b(S,x,W){const _=xtt).right(c,_);if(C===c.length)return t.every(Le(S/he,x/he,W));if(C===0)return Ut.every(Math.max(Le(S,x,W),1));const[V,I]=c[_/c[C-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(A=ge(Yt(l.y,0,1)),j=A.getUTCDay(),A=j>4||j===0?te.ceil(A):te(A),A=Ce.offset(A,(l.V-1)*7),l.y=A.getUTCFullYear(),l.m=A.getUTCMonth(),l.d=A.getUTCDate()+(l.w+6)%7):(A=me(Yt(l.y,0,1)),j=A.getDay(),A=j>4||j===0?$t.ceil(A):$t(A),A=Tt.offset(A,(l.V-1)*7),l.y=A.getFullYear(),l.m=A.getMonth(),l.d=A.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?ge(Yt(l.y,0,1)).getUTCDay():me(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ge(l)):me(l)}}function y(T,L,N,l){for(var et=0,A=L.length,j=N.length,B,ot;et=j)return-1;if(B=L.charCodeAt(et++),B===37){if(B=L.charAt(et++),ot=Q[B in Ne?L.charAt(et++):B],!ot||(l=ot(T,N,l))<0)return-1}else if(B!=N.charCodeAt(l++))return-1}return l}function h(T,L,N){var l=S.exec(L.slice(N));return l?(T.p=x.get(l[0].toLowerCase()),N+l[0].length):-1}function D(T,L,N){var l=C.exec(L.slice(N));return l?(T.w=V.get(l[0].toLowerCase()),N+l[0].length):-1}function M(T,L,N){var l=W.exec(L.slice(N));return l?(T.w=_.get(l[0].toLowerCase()),N+l[0].length):-1}function w(T,L,N){var l=Z.exec(L.slice(N));return l?(T.m=rt.get(l[0].toLowerCase()),N+l[0].length):-1}function p(T,L,N){var l=I.exec(L.slice(N));return l?(T.m=tt.get(l[0].toLowerCase()),N+l[0].length):-1}function u(T,L,N){return y(T,e,L,N)}function d(T,L,N){return y(T,n,L,N)}function v(T,L,N){return y(T,r,L,N)}function k(T){return c[T.getDay()]}function F(T){return a[T.getDay()]}function o(T){return E[T.getMonth()]}function z(T){return b[T.getMonth()]}function s(T){return i[+(T.getHours()>=12)]}function U(T){return 1+~~(T.getMonth()/3)}function P(T){return c[T.getUTCDay()]}function $(T){return a[T.getUTCDay()]}function O(T){return E[T.getUTCMonth()]}function J(T){return b[T.getUTCMonth()]}function Y(T){return i[+(T.getUTCHours()>=12)]}function at(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var L=m(T+="",R);return L.toString=function(){return T},L},parse:function(T){var L=g(T+="",!1);return L.toString=function(){return T},L},utcFormat:function(T){var L=m(T+="",q);return L.toString=function(){return T},L},utcParse:function(T){var L=g(T+="",!0);return L.toString=function(){return T},L}}}var Ne={"-":"",_:" ",0:"0"},K=/^\s*\d+/,_r=/^%/,Fr=/[\\^$*+?|[\]().{}]/g;function H(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a[e.toLowerCase(),n]))}function Er(t,e,n){var r=K.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=K.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function He(t,e,n){var r=K.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Or(t,e,n){var r=K.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function $r(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Pe(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=K.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Re(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=K.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=K.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Br(t,e,n){var r=K.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=K.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function ze(t,e){return H(t.getDate(),e,2)}function Zr(t,e){return H(t.getHours(),e,2)}function jr(t,e){return H(t.getHours()%12||12,e,2)}function Xr(t,e){return H(1+Tt.count(kt(t),t),e,3)}function vn(t,e){return H(t.getMilliseconds(),e,3)}function Gr(t,e){return vn(t,e)+"000"}function Qr(t,e){return H(t.getMonth()+1,e,2)}function Jr(t,e){return H(t.getMinutes(),e,2)}function Kr(t,e){return H(t.getSeconds(),e,2)}function ti(t){var e=t.getDay();return e===0?7:e}function ei(t,e){return H(Ht.count(kt(t)-1,t),e,2)}function Tn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ni(t,e){return t=Tn(t),H(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ri(t){return t.getDay()}function ii(t,e){return H($t.count(kt(t)-1,t),e,2)}function si(t,e){return H(t.getFullYear()%100,e,2)}function ai(t,e){return t=Tn(t),H(t.getFullYear()%100,e,2)}function oi(t,e){return H(t.getFullYear()%1e4,e,4)}function ci(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),H(t.getFullYear()%1e4,e,4)}function ui(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+H(e/60|0,"0",2)+H(e%60,"0",2)}function Be(t,e){return H(t.getUTCDate(),e,2)}function li(t,e){return H(t.getUTCHours(),e,2)}function fi(t,e){return H(t.getUTCHours()%12||12,e,2)}function di(t,e){return H(1+Ce.count(xt(t),t),e,3)}function bn(t,e){return H(t.getUTCMilliseconds(),e,3)}function hi(t,e){return bn(t,e)+"000"}function mi(t,e){return H(t.getUTCMonth()+1,e,2)}function gi(t,e){return H(t.getUTCMinutes(),e,2)}function yi(t,e){return H(t.getUTCSeconds(),e,2)}function ki(t){var e=t.getUTCDay();return e===0?7:e}function pi(t,e){return H(pn.count(xt(t)-1,t),e,2)}function xn(t){var e=t.getUTCDay();return e>=4||e===0?Et(t):Et.ceil(t)}function vi(t,e){return t=xn(t),H(Et.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function Ti(t){return t.getUTCDay()}function bi(t,e){return H(te.count(xt(t)-1,t),e,2)}function xi(t,e){return H(t.getUTCFullYear()%100,e,2)}function wi(t,e){return t=xn(t),H(t.getUTCFullYear()%100,e,2)}function Ci(t,e){return H(t.getUTCFullYear()%1e4,e,4)}function Di(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Et(t):Et.ceil(t),H(t.getUTCFullYear()%1e4,e,4)}function Mi(){return"+0000"}function qe(){return"%"}function Ze(t){return+t}function je(t){return Math.floor(+t/1e3)}var Mt,ee;Si({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Si(t){return Mt=Sr(t),ee=Mt.format,Mt.parse,Mt.utcFormat,Mt.utcParse,Mt}function _i(t){return new Date(t)}function Fi(t){return t instanceof Date?+t:+new Date(+t)}function wn(t,e,n,r,i,a,c,b,E,S){var x=jn(),W=x.invert,_=x.domain,C=S(".%L"),V=S(":%S"),I=S("%I:%M"),tt=S("%I %p"),Z=S("%a %d"),rt=S("%b %d"),R=S("%B"),q=S("%Y");function Q(m){return(E(m)4&&(C+=7),_.add(C,n));return V.diff(I,"week")+1},b.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var E=b.startOf;b.startOf=function(S,x){var W=this.$utils(),_=!!W.u(x)||x;return W.p(S)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):E.bind(this)(S,x)}}}))})(Xt)),Xt.exports}var Yi=Ii();const Ai=sn(Yi);var Gt={exports:{}},Wi=Gt.exports,Ge;function Li(){return Ge||(Ge=1,(function(t,e){(function(n,r){t.exports=r()})(Wi,(function(){var n,r,i=1e3,a=6e4,c=36e5,b=864e5,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S=31536e6,x=2628e6,W=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:S,months:x,days:b,hours:c,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},C=function(m){return m instanceof q},V=function(m,g,y){return new q(m,y,g.$l)},I=function(m){return r.p(m)+"s"},tt=function(m){return m<0},Z=function(m){return tt(m)?Math.ceil(m):Math.floor(m)},rt=function(m){return Math.abs(m)},R=function(m,g){return m?tt(m)?{negative:!0,format:""+rt(m)+g}:{negative:!1,format:""+m+g}:{negative:!1,format:""}},q=(function(){function m(y,h,D){var M=this;if(this.$d={},this.$l=D,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return V(y*_[I(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach((function(u){M.$d[I(u)]=y[u]})),this.calMilliseconds(),this;if(typeof y=="string"){var w=y.match(W);if(w){var p=w.slice(2).map((function(u){return u!=null?Number(u):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce((function(h,D){return h+(y.$d[D]||0)*_[D]}),0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=Z(y/S),y%=S,this.$d.months=Z(y/x),y%=x,this.$d.days=Z(y/b),y%=b,this.$d.hours=Z(y/c),y%=c,this.$d.minutes=Z(y/a),y%=a,this.$d.seconds=Z(y/i),y%=i,this.$d.milliseconds=y},g.toISOString=function(){var y=R(this.$d.years,"Y"),h=R(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var M=R(D,"D"),w=R(this.$d.hours,"H"),p=R(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var d=R(u,"S"),v=y.negative||h.negative||M.negative||w.negative||p.negative||d.negative,k=w.format||p.format||d.format?"T":"",F=(v?"-":"")+"P"+y.format+h.format+M.format+k+w.format+p.format+d.format;return F==="P"||F==="-P"?"P0D":F},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(E,(function(M,w){return w||String(D[M])}))},g.as=function(y){return this.$ms/_[I(y)]},g.get=function(y){var h=this.$ms,D=I(y);return D==="milliseconds"?h%=1e3:h=D==="weeks"?Z(h/_[D]):this.$d[D],h||0},g.add=function(y,h,D){var M;return M=h?y*_[I(h)]:C(y)?y.$ms:V(y,this).$ms,V(this.$ms+M*(D?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return V(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},m})(),Q=function(m,g,y){return m.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(m,g,y){n=y,r=y().$utils(),y.duration=function(M,w){var p=y.locale();return V(M,{$l:p},w)},y.isDuration=C;var h=g.prototype.add,D=g.prototype.subtract;g.prototype.add=function(M,w){return C(M)?Q(this,M,1):h.bind(this)(M,w)},g.prototype.subtract=function(M,w){return C(M)?Q(this,M,-1):D.bind(this)(M,w)}}}))})(Gt)),Gt.exports}var Oi=Li();const $i=sn(Oi);var ve=(function(){var t=f(function(p,u,d,v){for(d=d||{},v=p.length;v--;d[p[v]]=u);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],c=[1,30],b=[1,31],E=[1,32],S=[1,33],x=[1,34],W=[1,9],_=[1,10],C=[1,11],V=[1,12],I=[1,13],tt=[1,14],Z=[1,15],rt=[1,16],R=[1,19],q=[1,20],Q=[1,21],m=[1,22],g=[1,23],y=[1,25],h=[1,35],D={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:f(function(u,d,v,k,F,o,z){var s=o.length-1;switch(F){case 1:return o[s-1];case 2:this.$=[];break;case 3:o[s-1].push(o[s]),this.$=o[s-1];break;case 4:case 5:this.$=o[s];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[s].substr(18);break;case 19:k.TopAxis(),this.$=o[s].substr(8);break;case 20:k.setAxisFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 21:k.setTickInterval(o[s].substr(13)),this.$=o[s].substr(13);break;case 22:k.setExcludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 23:k.setIncludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 24:k.setTodayMarker(o[s].substr(12)),this.$=o[s].substr(12);break;case 27:k.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 28:this.$=o[s].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[s].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 33:k.addTask(o[s-1],o[s]),this.$="task";break;case 34:this.$=o[s-1],k.setClickEvent(o[s-1],o[s],null);break;case 35:this.$=o[s-2],k.setClickEvent(o[s-2],o[s-1],o[s]);break;case 36:this.$=o[s-2],k.setClickEvent(o[s-2],o[s-1],null),k.setLink(o[s-2],o[s]);break;case 37:this.$=o[s-3],k.setClickEvent(o[s-3],o[s-2],o[s-1]),k.setLink(o[s-3],o[s]);break;case 38:this.$=o[s-2],k.setClickEvent(o[s-2],o[s],null),k.setLink(o[s-2],o[s-1]);break;case 39:this.$=o[s-3],k.setClickEvent(o[s-3],o[s-1],o[s]),k.setLink(o[s-3],o[s-2]);break;case 40:this.$=o[s-1],k.setLink(o[s-1],o[s]);break;case 41:case 47:this.$=o[s-1]+" "+o[s];break;case 42:case 43:case 45:this.$=o[s-2]+" "+o[s-1]+" "+o[s];break;case 44:case 46:this.$=o[s-3]+" "+o[s-2]+" "+o[s-1]+" "+o[s];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:c,17:b,18:E,19:18,20:S,21:x,22:W,23:_,24:C,25:V,26:I,27:tt,28:Z,29:rt,30:R,31:q,33:Q,35:m,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:c,17:b,18:E,19:18,20:S,21:x,22:W,23:_,24:C,25:V,26:I,27:tt,28:Z,29:rt,30:R,31:q,33:Q,35:m,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:f(function(u,d){if(d.recoverable)this.trace(u);else{var v=new Error(u);throw v.hash=d,v}},"parseError"),parse:f(function(u){var d=this,v=[0],k=[],F=[null],o=[],z=this.table,s="",U=0,P=0,$=2,O=1,J=o.slice.call(arguments,1),Y=Object.create(this.lexer),at={yy:{}};for(var T in this.yy)Object.prototype.hasOwnProperty.call(this.yy,T)&&(at.yy[T]=this.yy[T]);Y.setInput(u,at.yy),at.yy.lexer=Y,at.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var L=Y.yylloc;o.push(L);var N=Y.options&&Y.options.ranges;typeof at.yy.parseError=="function"?this.parseError=at.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(it){v.length=v.length-2*it,F.length=F.length-it,o.length=o.length-it}f(l,"popStack");function et(){var it;return it=k.pop()||Y.lex()||O,typeof it!="number"&&(it instanceof Array&&(k=it,it=k.pop()),it=d.symbols_[it]||it),it}f(et,"lex");for(var A,j,B,ot,lt={},zt,ft,We,Bt;;){if(j=v[v.length-1],this.defaultActions[j]?B=this.defaultActions[j]:((A===null||typeof A>"u")&&(A=et()),B=z[j]&&z[j][A]),typeof B>"u"||!B.length||!B[0]){var ie="";Bt=[];for(zt in z[j])this.terminals_[zt]&&zt>$&&Bt.push("'"+this.terminals_[zt]+"'");Y.showPosition?ie="Parse error on line "+(U+1)+`: `+Y.showPosition()+` Expecting `+Bt.join(", ")+", got '"+(this.terminals_[A]||A)+"'":ie="Parse error on line "+(U+1)+": Unexpected "+(A==O?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(ie,{text:Y.match,token:this.terminals_[A]||A,line:Y.yylineno,loc:L,expected:Bt})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+A);switch(B[0]){case 1:v.push(A),F.push(Y.yytext),o.push(Y.yylloc),v.push(B[1]),A=null,P=Y.yyleng,s=Y.yytext,U=Y.yylineno,L=Y.yylloc;break;case 2:if(ft=this.productions_[B[1]][1],lt.$=F[F.length-ft],lt._$={first_line:o[o.length-(ft||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(ft||1)].first_column,last_column:o[o.length-1].last_column},N&&(lt._$.range=[o[o.length-(ft||1)].range[0],o[o.length-1].range[1]]),ot=this.performAction.apply(lt,[s,P,U,at.yy,B[1],F,o].concat(J)),typeof ot<"u")return ot;ft&&(v=v.slice(0,-1*ft*2),F=F.slice(0,-1*ft),o=o.slice(0,-1*ft)),v.push(this.productions_[B[1]][0]),F.push(lt.$),o.push(lt._$),We=z[v[v.length-2]][v[v.length-1]],v.push(We);break;case 3:return!0}}return!0},"parse")},M=(function(){var p={EOF:1,parseError:f(function(d,v){if(this.yy.parser)this.yy.parser.parseError(d,v);else throw new Error(d)},"parseError"),setInput:f(function(u,d){return this.yy=d||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var d=u.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:f(function(u){var d=u.length,v=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var k=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===k.length?this.yylloc.first_column:0)+k[k.length-v.length].length-v[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(u){this.unput(this.match.slice(u))},"less"),pastInput:f(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var u=this.pastInput(),d=new Array(u.length+1).join("-");return u+this.upcomingInput()+` diff --git a/src/adclaw/console/assets/gitGraphDiagram-V2S2FVAM-Da1Rodr0.js b/src/adclaw/console/assets/gitGraphDiagram-V2S2FVAM-DDdvBXDK.js similarity index 98% rename from src/adclaw/console/assets/gitGraphDiagram-V2S2FVAM-Da1Rodr0.js rename to src/adclaw/console/assets/gitGraphDiagram-V2S2FVAM-DDdvBXDK.js index ef13b79..08d17d1 100644 --- a/src/adclaw/console/assets/gitGraphDiagram-V2S2FVAM-Da1Rodr0.js +++ b/src/adclaw/console/assets/gitGraphDiagram-V2S2FVAM-DDdvBXDK.js @@ -1,4 +1,4 @@ -import{p as Z}from"./chunk-4BX2VUAB-CalenPtr.js";import{I as F}from"./chunk-QZHKN3VN-DlUXLqBe.js";import{q as U,p as rr,s as er,g as tr,a as ar,b as nr,_ as h,l as m,d as sr,u as or,C as cr,y as ir,k as B,D as dr,E as hr,F as lr,c as $r,G as fr}from"./index-C-alNCkd.js";import{p as gr}from"./treemap-GDKQZRPO-CEi_XKuI.js";import"./_baseUniq-mI0_nzhz.js";import"./_basePickBy-D8ru0AWw.js";import"./clone-CpRDnie0.js";var u={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},yr=hr.gitGraph,z=h(()=>dr({...yr,...lr().gitGraph}),"getConfig"),i=new F(()=>{const t=z(),r=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function S(){return fr({length:7})}h(S,"getID");function N(t,r){const a=Object.create(null);return t.reduce((s,e)=>{const n=r(e);return a[n]||(a[n]=!0,s.push(e)),s},[])}h(N,"uniqBy");var xr=h(function(t){i.records.direction=t},"setDirection"),ur=h(function(t){m.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){m.error("error while parsing gitGraph options",r.message)}},"setOptions"),pr=h(function(){return i.records.options},"getOptions"),br=h(function(t){let r=t.msg,a=t.id;const s=t.type;let e=t.tags;m.info("commit",r,a,s,e),m.debug("Entering commit:",r,a,s,e);const n=z();a=B.sanitizeText(a,n),r=B.sanitizeText(r,n),e=e==null?void 0:e.map(o=>B.sanitizeText(o,n));const c={id:a||i.records.seq+"-"+S(),message:r,seq:i.records.seq++,type:s??u.NORMAL,tags:e??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,m.info("main branch",n.mainBranchName),i.records.commits.has(c.id)&&m.warn(`Commit ID ${c.id} already exists`),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),m.debug("in pushCommit "+c.id)},"commit"),mr=h(function(t){let r=t.name;const a=t.order;if(r=B.sanitizeText(r,z()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:a}),_(r),m.debug("in createBranch")},"branch"),wr=h(t=>{let r=t.branch,a=t.id;const s=t.type,e=t.tags,n=z();r=B.sanitizeText(r,n),a&&(a=B.sanitizeText(a,n));const c=i.records.branches.get(i.records.currBranch),o=i.records.branches.get(r),$=c?i.records.commits.get(c):void 0,l=o?i.records.commits.get(o):void 0;if($&&l&&$.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if($===void 0||!$){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!i.records.branches.has(r)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(l===void 0||!l){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if($===l){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&i.records.commits.has(a)){const d=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${s} ${e==null?void 0:e.join(" ")}`]},d}const f=o||"",g={id:a||`${i.records.seq}-${S()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:u.MERGE,customType:s,customId:!!a,tags:e??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),m.debug(i.records.branches),m.debug("in mergeBranch")},"merge"),vr=h(function(t){let r=t.id,a=t.targetId,s=t.tags,e=t.parent;m.debug("Entering cherryPick:",r,a,s);const n=z();if(r=B.sanitizeText(r,n),a=B.sanitizeText(a,n),s=s==null?void 0:s.map($=>B.sanitizeText($,n)),e=B.sanitizeText(e,n),!r||!i.records.commits.has(r)){const $=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw $.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},$}const c=i.records.commits.get(r);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=c.branch;if(c.type===u.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(o===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const $=i.records.branches.get(i.records.currBranch);if($===void 0||!$){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const l=i.records.commits.get($);if(l===void 0||!l){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const f={id:i.records.seq+"-"+S(),message:`cherry-picked ${c==null?void 0:c.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:u.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${c.id}${c.type===u.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),m.debug(i.records.branches),m.debug("in cherryPick")}},"cherryPick"),_=h(function(t){if(t=B.sanitizeText(t,z()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function D(t,r,a){const s=t.indexOf(r);s===-1?t.push(a):t.splice(s,1,a)}h(D,"upsert");function A(t){const r=t.reduce((e,n)=>e.seq>n.seq?e:n,t[0]);let a="";t.forEach(function(e){e===r?a+=" *":a+=" |"});const s=[a,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&s.push(e);if(m.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);D(t,r,e),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);D(t,r,e)}}t=N(t,e=>e.id),A(t)}h(A,"prettyPrintCommitHistory");var Cr=h(function(){m.debug(i.records.commits);const t=V()[0];A([t])},"prettyPrint"),Er=h(function(){i.reset(),ir()},"clear"),Br=h(function(){return[...i.records.branchConfig.values()].map((r,a)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${a}`)}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),kr=h(function(){return i.records.branches},"getBranches"),Lr=h(function(){return i.records.commits},"getCommits"),V=h(function(){const t=[...i.records.commits.values()];return t.forEach(function(r){m.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),Tr=h(function(){return i.records.currBranch},"getCurrentBranch"),Mr=h(function(){return i.records.direction},"getDirection"),Rr=h(function(){return i.records.head},"getHead"),X={commitType:u,getConfig:z,setDirection:xr,setOptions:ur,getOptions:pr,commit:br,branch:mr,merge:wr,cherryPick:vr,checkout:_,prettyPrint:Cr,clear:Er,getBranchesAsObjArray:Br,getBranches:kr,getCommits:Lr,getCommitsArray:V,getCurrentBranch:Tr,getDirection:Mr,getHead:Rr,setAccTitle:nr,getAccTitle:ar,getAccDescription:tr,setAccDescription:er,setDiagramTitle:rr,getDiagramTitle:U},Ir=h((t,r)=>{Z(t,r),t.dir&&r.setDirection(t.dir);for(const a of t.statements)qr(a,r)},"populate"),qr=h((t,r)=>{const s={Commit:h(e=>r.commit(Or(e)),"Commit"),Branch:h(e=>r.branch(zr(e)),"Branch"),Merge:h(e=>r.merge(Gr(e)),"Merge"),Checkout:h(e=>r.checkout(Hr(e)),"Checkout"),CherryPicking:h(e=>r.cherryPick(Pr(e)),"CherryPicking")}[t.$type];s?s(t):m.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Or=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?u[t.type]:u.NORMAL,tags:t.tags??void 0}),"parseCommit"),zr=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Gr=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?u[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Hr=h(t=>t.branch,"parseCheckout"),Pr=h(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Wr={parse:h(async t=>{const r=await gr("gitGraph",t);m.debug(r),Ir(r,X)},"parse")},j=$r(),b=j==null?void 0:j.gitGraph,R=10,I=40,k=4,L=2,O=8,C=new Map,E=new Map,P=30,G=new Map,W=[],M=0,x="LR",Sr=h(()=>{C.clear(),E.clear(),G.clear(),M=0,W=[],x="LR"},"clear"),J=h(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(s=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=s.trim(),r.appendChild(e)}),r},"drawText"),Q=h(t=>{let r,a,s;return x==="BT"?(a=h((e,n)=>e<=n,"comparisonFunc"),s=1/0):(a=h((e,n)=>e>=n,"comparisonFunc"),s=0),t.forEach(e=>{var c,o;const n=x==="TB"||x=="BT"?(c=E.get(e))==null?void 0:c.y:(o=E.get(e))==null?void 0:o.x;n!==void 0&&a(n,s)&&(r=e,s=n)}),r},"findClosestParent"),jr=h(t=>{let r="",a=1/0;return t.forEach(s=>{const e=E.get(s).y;e<=a&&(r=s,a=e)}),r||void 0},"findClosestParentBT"),Dr=h((t,r,a)=>{let s=a,e=a;const n=[];t.forEach(c=>{const o=r.get(c);if(!o)throw new Error(`Commit not found for key ${c}`);o.parents.length?(s=Yr(o),e=Math.max(s,e)):n.push(o),Kr(o,s)}),s=e,n.forEach(c=>{Nr(c,s,a)}),t.forEach(c=>{const o=r.get(c);if(o!=null&&o.parents.length){const $=jr(o.parents);s=E.get($).y-I,s<=e&&(e=s);const l=C.get(o.branch).pos,f=s-R;E.set(o.id,{x:l,y:f})}})},"setParallelBTPos"),Ar=h(t=>{var s;const r=Q(t.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(s=E.get(r))==null?void 0:s.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Yr=h(t=>Ar(t)+I,"calculateCommitPosition"),Kr=h((t,r)=>{const a=C.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const s=a.pos,e=r+R;return E.set(t.id,{x:s,y:e}),{x:s,y:e}},"setCommitPosition"),Nr=h((t,r,a)=>{const s=C.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const e=r+a,n=s.pos;E.set(t.id,{x:n,y:e})},"setRootPosition"),_r=h((t,r,a,s,e,n)=>{if(n===u.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${s}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${s}-inner`);else if(n===u.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`);else{const c=t.append("circle");if(c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",r.type===u.MERGE?9:10),c.attr("class",`commit ${r.id} commit${e%O}`),n===u.MERGE){const o=t.append("circle");o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",6),o.attr("class",`commit ${s} ${r.id} commit${e%O}`)}n===u.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${s} ${r.id} commit${e%O}`)}},"drawCommitBullet"),Vr=h((t,r,a,s)=>{var e;if(r.type!==u.CHERRY_PICK&&(r.customId&&r.type===u.MERGE||r.type!==u.MERGE)&&(b!=null&&b.showCommitLabel)){const n=t.append("g"),c=n.insert("rect").attr("class","commit-label-bkg"),o=n.append("text").attr("x",s).attr("y",a.y+25).attr("class","commit-label").text(r.id),$=(e=o.node())==null?void 0:e.getBBox();if($&&(c.attr("x",a.posWithOffset-$.width/2-L).attr("y",a.y+13.5).attr("width",$.width+2*L).attr("height",$.height+2*L),x==="TB"||x==="BT"?(c.attr("x",a.x-($.width+4*k+5)).attr("y",a.y-12),o.attr("x",a.x-($.width+4*k)).attr("y",a.y+$.height-12)):o.attr("x",a.posWithOffset-$.width/2),b.rotateCommitLabel))if(x==="TB"||x==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),c.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const l=-7.5-($.width+10)/25*9.5,f=10+$.width/25*8.5;n.attr("transform","translate("+l+", "+f+") rotate(-45, "+s+", "+a.y+")")}}},"drawCommitLabel"),Xr=h((t,r,a,s)=>{var e;if(r.tags.length>0){let n=0,c=0,o=0;const $=[];for(const l of r.tags.reverse()){const f=t.insert("polygon"),g=t.append("circle"),d=t.append("text").attr("y",a.y-16-n).attr("class","tag-label").text(l),y=(e=d.node())==null?void 0:e.getBBox();if(!y)throw new Error("Tag bbox not found");c=Math.max(c,y.width),o=Math.max(o,y.height),d.attr("x",a.posWithOffset-y.width/2),$.push({tag:d,hole:g,rect:f,yOffset:n}),n+=20}for(const{tag:l,hole:f,rect:g,yOffset:d}of $){const y=o/2,p=a.y-19.2-d;if(g.attr("class","tag-label-bkg").attr("points",` +import{p as Z}from"./chunk-4BX2VUAB-De0wsjr9.js";import{I as F}from"./chunk-QZHKN3VN-Bemo9eSF.js";import{q as U,p as rr,s as er,g as tr,a as ar,b as nr,_ as h,l as m,d as sr,u as or,C as cr,y as ir,k as B,D as dr,E as hr,F as lr,c as $r,G as fr}from"./index-CnXIpKtg.js";import{p as gr}from"./treemap-GDKQZRPO-DwNuPoGC.js";import"./_baseUniq-Dg6PvSCo.js";import"./_basePickBy-BzYxueAG.js";import"./clone-z69nb1L5.js";var u={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},yr=hr.gitGraph,z=h(()=>dr({...yr,...lr().gitGraph}),"getConfig"),i=new F(()=>{const t=z(),r=t.mainBranchName,a=t.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function S(){return fr({length:7})}h(S,"getID");function N(t,r){const a=Object.create(null);return t.reduce((s,e)=>{const n=r(e);return a[n]||(a[n]=!0,s.push(e)),s},[])}h(N,"uniqBy");var xr=h(function(t){i.records.direction=t},"setDirection"),ur=h(function(t){m.debug("options str",t),t=t==null?void 0:t.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(r){m.error("error while parsing gitGraph options",r.message)}},"setOptions"),pr=h(function(){return i.records.options},"getOptions"),br=h(function(t){let r=t.msg,a=t.id;const s=t.type;let e=t.tags;m.info("commit",r,a,s,e),m.debug("Entering commit:",r,a,s,e);const n=z();a=B.sanitizeText(a,n),r=B.sanitizeText(r,n),e=e==null?void 0:e.map(o=>B.sanitizeText(o,n));const c={id:a||i.records.seq+"-"+S(),message:r,seq:i.records.seq++,type:s??u.NORMAL,tags:e??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=c,m.info("main branch",n.mainBranchName),i.records.commits.has(c.id)&&m.warn(`Commit ID ${c.id} already exists`),i.records.commits.set(c.id,c),i.records.branches.set(i.records.currBranch,c.id),m.debug("in pushCommit "+c.id)},"commit"),mr=h(function(t){let r=t.name;const a=t.order;if(r=B.sanitizeText(r,z()),i.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);i.records.branches.set(r,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(r,{name:r,order:a}),_(r),m.debug("in createBranch")},"branch"),wr=h(t=>{let r=t.branch,a=t.id;const s=t.type,e=t.tags,n=z();r=B.sanitizeText(r,n),a&&(a=B.sanitizeText(a,n));const c=i.records.branches.get(i.records.currBranch),o=i.records.branches.get(r),$=c?i.records.commits.get(c):void 0,l=o?i.records.commits.get(o):void 0;if($&&l&&$.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(i.records.currBranch===r){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if($===void 0||!$){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},d}if(!i.records.branches.has(r)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},d}if(l===void 0||!l){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},d}if($===l){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},d}if(a&&i.records.commits.has(a)){const d=new Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw d.hash={text:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,token:`merge ${r} ${a} ${s} ${e==null?void 0:e.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${s} ${e==null?void 0:e.join(" ")}`]},d}const f=o||"",g={id:a||`${i.records.seq}-${S()}`,message:`merged branch ${r} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,f],branch:i.records.currBranch,type:u.MERGE,customType:s,customId:!!a,tags:e??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),m.debug(i.records.branches),m.debug("in mergeBranch")},"merge"),vr=h(function(t){let r=t.id,a=t.targetId,s=t.tags,e=t.parent;m.debug("Entering cherryPick:",r,a,s);const n=z();if(r=B.sanitizeText(r,n),a=B.sanitizeText(a,n),s=s==null?void 0:s.map($=>B.sanitizeText($,n)),e=B.sanitizeText(e,n),!r||!i.records.commits.has(r)){const $=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw $.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},$}const c=i.records.commits.get(r);if(c===void 0||!c)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(e&&!(Array.isArray(c.parents)&&c.parents.includes(e)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const o=c.branch;if(c.type===u.MERGE&&!e)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!i.records.commits.has(a)){if(o===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const $=i.records.branches.get(i.records.currBranch);if($===void 0||!$){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const l=i.records.commits.get($);if(l===void 0||!l){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}const f={id:i.records.seq+"-"+S(),message:`cherry-picked ${c==null?void 0:c.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,c.id],branch:i.records.currBranch,type:u.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${c.id}${c.type===u.MERGE?`|parent:${e}`:""}`]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),m.debug(i.records.branches),m.debug("in cherryPick")}},"cherryPick"),_=h(function(t){if(t=B.sanitizeText(t,z()),i.records.branches.has(t)){i.records.currBranch=t;const r=i.records.branches.get(i.records.currBranch);r===void 0||!r?i.records.head=null:i.records.head=i.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw r.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},r}},"checkout");function D(t,r,a){const s=t.indexOf(r);s===-1?t.push(a):t.splice(s,1,a)}h(D,"upsert");function A(t){const r=t.reduce((e,n)=>e.seq>n.seq?e:n,t[0]);let a="";t.forEach(function(e){e===r?a+=" *":a+=" |"});const s=[a,r.id,r.seq];for(const e in i.records.branches)i.records.branches.get(e)===r.id&&s.push(e);if(m.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const e=i.records.commits.get(r.parents[0]);D(t,r,e),r.parents[1]&&t.push(i.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const e=i.records.commits.get(r.parents[0]);D(t,r,e)}}t=N(t,e=>e.id),A(t)}h(A,"prettyPrintCommitHistory");var Cr=h(function(){m.debug(i.records.commits);const t=V()[0];A([t])},"prettyPrint"),Er=h(function(){i.reset(),ir()},"clear"),Br=h(function(){return[...i.records.branchConfig.values()].map((r,a)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${a}`)}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),kr=h(function(){return i.records.branches},"getBranches"),Lr=h(function(){return i.records.commits},"getCommits"),V=h(function(){const t=[...i.records.commits.values()];return t.forEach(function(r){m.debug(r.id)}),t.sort((r,a)=>r.seq-a.seq),t},"getCommitsArray"),Tr=h(function(){return i.records.currBranch},"getCurrentBranch"),Mr=h(function(){return i.records.direction},"getDirection"),Rr=h(function(){return i.records.head},"getHead"),X={commitType:u,getConfig:z,setDirection:xr,setOptions:ur,getOptions:pr,commit:br,branch:mr,merge:wr,cherryPick:vr,checkout:_,prettyPrint:Cr,clear:Er,getBranchesAsObjArray:Br,getBranches:kr,getCommits:Lr,getCommitsArray:V,getCurrentBranch:Tr,getDirection:Mr,getHead:Rr,setAccTitle:nr,getAccTitle:ar,getAccDescription:tr,setAccDescription:er,setDiagramTitle:rr,getDiagramTitle:U},Ir=h((t,r)=>{Z(t,r),t.dir&&r.setDirection(t.dir);for(const a of t.statements)qr(a,r)},"populate"),qr=h((t,r)=>{const s={Commit:h(e=>r.commit(Or(e)),"Commit"),Branch:h(e=>r.branch(zr(e)),"Branch"),Merge:h(e=>r.merge(Gr(e)),"Merge"),Checkout:h(e=>r.checkout(Hr(e)),"Checkout"),CherryPicking:h(e=>r.cherryPick(Pr(e)),"CherryPicking")}[t.$type];s?s(t):m.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),Or=h(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?u[t.type]:u.NORMAL,tags:t.tags??void 0}),"parseCommit"),zr=h(t=>({name:t.name,order:t.order??0}),"parseBranch"),Gr=h(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?u[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),Hr=h(t=>t.branch,"parseCheckout"),Pr=h(t=>{var a;return{id:t.id,targetId:"",tags:((a=t.tags)==null?void 0:a.length)===0?void 0:t.tags,parent:t.parent}},"parseCherryPicking"),Wr={parse:h(async t=>{const r=await gr("gitGraph",t);m.debug(r),Ir(r,X)},"parse")},j=$r(),b=j==null?void 0:j.gitGraph,R=10,I=40,k=4,L=2,O=8,C=new Map,E=new Map,P=30,G=new Map,W=[],M=0,x="LR",Sr=h(()=>{C.clear(),E.clear(),G.clear(),M=0,W=[],x="LR"},"clear"),J=h(t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|/gi):t).forEach(s=>{const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=s.trim(),r.appendChild(e)}),r},"drawText"),Q=h(t=>{let r,a,s;return x==="BT"?(a=h((e,n)=>e<=n,"comparisonFunc"),s=1/0):(a=h((e,n)=>e>=n,"comparisonFunc"),s=0),t.forEach(e=>{var c,o;const n=x==="TB"||x=="BT"?(c=E.get(e))==null?void 0:c.y:(o=E.get(e))==null?void 0:o.x;n!==void 0&&a(n,s)&&(r=e,s=n)}),r},"findClosestParent"),jr=h(t=>{let r="",a=1/0;return t.forEach(s=>{const e=E.get(s).y;e<=a&&(r=s,a=e)}),r||void 0},"findClosestParentBT"),Dr=h((t,r,a)=>{let s=a,e=a;const n=[];t.forEach(c=>{const o=r.get(c);if(!o)throw new Error(`Commit not found for key ${c}`);o.parents.length?(s=Yr(o),e=Math.max(s,e)):n.push(o),Kr(o,s)}),s=e,n.forEach(c=>{Nr(c,s,a)}),t.forEach(c=>{const o=r.get(c);if(o!=null&&o.parents.length){const $=jr(o.parents);s=E.get($).y-I,s<=e&&(e=s);const l=C.get(o.branch).pos,f=s-R;E.set(o.id,{x:l,y:f})}})},"setParallelBTPos"),Ar=h(t=>{var s;const r=Q(t.parents.filter(e=>e!==null));if(!r)throw new Error(`Closest parent not found for commit ${t.id}`);const a=(s=E.get(r))==null?void 0:s.y;if(a===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return a},"findClosestParentPos"),Yr=h(t=>Ar(t)+I,"calculateCommitPosition"),Kr=h((t,r)=>{const a=C.get(t.branch);if(!a)throw new Error(`Branch not found for commit ${t.id}`);const s=a.pos,e=r+R;return E.set(t.id,{x:s,y:e}),{x:s,y:e}},"setCommitPosition"),Nr=h((t,r,a)=>{const s=C.get(t.branch);if(!s)throw new Error(`Branch not found for commit ${t.id}`);const e=r+a,n=s.pos;E.set(t.id,{x:n,y:e})},"setRootPosition"),_r=h((t,r,a,s,e,n)=>{if(n===u.HIGHLIGHT)t.append("rect").attr("x",a.x-10).attr("y",a.y-10).attr("width",20).attr("height",20).attr("class",`commit ${r.id} commit-highlight${e%O} ${s}-outer`),t.append("rect").attr("x",a.x-6).attr("y",a.y-6).attr("width",12).attr("height",12).attr("class",`commit ${r.id} commit${e%O} ${s}-inner`);else if(n===u.CHERRY_PICK)t.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",10).attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`),t.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke","#fff").attr("class",`commit ${r.id} ${s}`);else{const c=t.append("circle");if(c.attr("cx",a.x),c.attr("cy",a.y),c.attr("r",r.type===u.MERGE?9:10),c.attr("class",`commit ${r.id} commit${e%O}`),n===u.MERGE){const o=t.append("circle");o.attr("cx",a.x),o.attr("cy",a.y),o.attr("r",6),o.attr("class",`commit ${s} ${r.id} commit${e%O}`)}n===u.REVERSE&&t.append("path").attr("d",`M ${a.x-5},${a.y-5}L${a.x+5},${a.y+5}M${a.x-5},${a.y+5}L${a.x+5},${a.y-5}`).attr("class",`commit ${s} ${r.id} commit${e%O}`)}},"drawCommitBullet"),Vr=h((t,r,a,s)=>{var e;if(r.type!==u.CHERRY_PICK&&(r.customId&&r.type===u.MERGE||r.type!==u.MERGE)&&(b!=null&&b.showCommitLabel)){const n=t.append("g"),c=n.insert("rect").attr("class","commit-label-bkg"),o=n.append("text").attr("x",s).attr("y",a.y+25).attr("class","commit-label").text(r.id),$=(e=o.node())==null?void 0:e.getBBox();if($&&(c.attr("x",a.posWithOffset-$.width/2-L).attr("y",a.y+13.5).attr("width",$.width+2*L).attr("height",$.height+2*L),x==="TB"||x==="BT"?(c.attr("x",a.x-($.width+4*k+5)).attr("y",a.y-12),o.attr("x",a.x-($.width+4*k)).attr("y",a.y+$.height-12)):o.attr("x",a.posWithOffset-$.width/2),b.rotateCommitLabel))if(x==="TB"||x==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),c.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{const l=-7.5-($.width+10)/25*9.5,f=10+$.width/25*8.5;n.attr("transform","translate("+l+", "+f+") rotate(-45, "+s+", "+a.y+")")}}},"drawCommitLabel"),Xr=h((t,r,a,s)=>{var e;if(r.tags.length>0){let n=0,c=0,o=0;const $=[];for(const l of r.tags.reverse()){const f=t.insert("polygon"),g=t.append("circle"),d=t.append("text").attr("y",a.y-16-n).attr("class","tag-label").text(l),y=(e=d.node())==null?void 0:e.getBBox();if(!y)throw new Error("Tag bbox not found");c=Math.max(c,y.width),o=Math.max(o,y.height),d.attr("x",a.posWithOffset-y.width/2),$.push({tag:d,hole:g,rect:f,yOffset:n}),n+=20}for(const{tag:l,hole:f,rect:g,yOffset:d}of $){const y=o/2,p=a.y-19.2-d;if(g.attr("class","tag-label-bkg").attr("points",` ${s-c/2-k/2},${p+L} ${s-c/2-k/2},${p-L} ${a.posWithOffset-c/2-k},${p-y-L} diff --git a/src/adclaw/console/assets/graph-D-pGiHx5.js b/src/adclaw/console/assets/graph-C7nCxrGC.js similarity index 97% rename from src/adclaw/console/assets/graph-D-pGiHx5.js rename to src/adclaw/console/assets/graph-C7nCxrGC.js index 03bdbb0..a2beb3d 100644 --- a/src/adclaw/console/assets/graph-D-pGiHx5.js +++ b/src/adclaw/console/assets/graph-C7nCxrGC.js @@ -1 +1 @@ -import{aD as N,aE as j,aF as v,aG as f,aH as b,aI as _,aJ as E}from"./index-C-alNCkd.js";import{b as P,f as g,a as d,i as l,v as p,r as D}from"./_baseUniq-mI0_nzhz.js";var w=N(function(o){return P(j(o,1,v,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=G(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,y(this._preds[t],e),y(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],C(this._preds[t],e),C(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function y(o,e){o[e]?o[e]++:o[e]=1}function C(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function G(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G}; +import{aD as N,aE as j,aF as v,aG as f,aH as b,aI as _,aJ as E}from"./index-CnXIpKtg.js";import{b as P,f as g,a as d,i as l,v as p,r as D}from"./_baseUniq-Dg6PvSCo.js";var w=N(function(o){return P(j(o,1,v,!0))}),F="\0",a="\0",O="";class L{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=f(void 0),this._defaultEdgeLabelFn=f(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return b(e)||(e=f(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _(this._nodes)}sources(){var e=this;return g(this.nodes(),function(t){return E(e._in[t])})}sinks(){var e=this;return g(this.nodes(),function(t){return E(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return d(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],d(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),d(_(this._in[e]),t),delete this._in[e],delete this._preds[e],d(_(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(l(t))t=a;else{t+="";for(var s=t;!l(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(l(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _(t)}successors(e){var t=this._sucs[e];if(t)return _(t)}neighbors(e){var t=this.predecessors(e);if(t)return w(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;d(this._nodes,function(n,h){e(h)&&t.setNode(h,n)}),d(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var h=s.parent(n);return h===void 0||t.hasNode(h)?(i[n]=h,h):h in i?i[h]:r(h)}return this._isCompound&&d(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return b(e)||(e=f(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return p(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return D(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,l(s)||(s=""+s);var h=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h))return r&&(this._edgeLabels[h]=i),this;if(!l(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[h]=r?i:this._defaultEdgeLabelFn(e,t,s);var u=G(this._isDirected,e,t,s);return e=u.v,t=u.w,Object.freeze(u),this._edgeObjs[h]=u,y(this._preds[t],e),y(this._sucs[e],t),this._in[t][h]=u,this._out[e][h]=u,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?m(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],C(this._preds[t],e),C(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=p(s);return t?g(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=p(s);return t?g(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}L.prototype._nodeCount=0;L.prototype._edgeCount=0;function y(o,e){o[e]?o[e]++:o[e]=1}function C(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+O+r+O+(l(s)?F:s)}function G(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var h={v:i,w:r};return s&&(h.name=s),h}function m(o,e){return c(o,e.v,e.w,e.name)}export{L as G}; diff --git a/src/adclaw/console/assets/index-B-0lp_EC.css b/src/adclaw/console/assets/index-B-0lp_EC.css deleted file mode 100644 index 0fc85d4..0000000 --- a/src/adclaw/console/assets/index-B-0lp_EC.css +++ /dev/null @@ -1 +0,0 @@ -:where(.spark-icon){display:inline-flex;align-items:center;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;vertical-align:-.125em;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:where(.spark-icon svg){display:inline-block}@keyframes spark-icon-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:where(.spark-icon-spin){animation:spark-icon-spin 1s linear infinite}.index-module__wrap__aiy6x{position:fixed;top:24px;right:24px;z-index:1000;display:flex;flex-direction:column;gap:12px;max-width:min(400px,calc(100vw - 48px));pointer-events:none}.index-module__wrap__aiy6x>*{pointer-events:auto}.index-module__bubble__VN2so{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;background:var(--citedy-glass-bg, rgba(255, 255, 255, .8));backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-radius:9999px;box-shadow:0 4px 16px #00000014;border:1px solid rgba(226,232,240,.4)}.index-module__icon__Yz1JX{flex-shrink:0;color:var(--citedy-slate-900, #0f172a);margin-top:2px}.index-module__text__4IwUI{flex:1;margin:0;font-size:14px;line-height:1.5;color:var(--citedy-slate-700, #334155);word-break:break-word;white-space:pre-wrap;max-height:6em;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4}.index-module__close__MaJsb{flex-shrink:0;padding:4px;border:none;background:transparent;color:var(--citedy-slate-400, #94a3b8);cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center}.index-module__close__MaJsb:hover{color:var(--citedy-slate-700, #334155);background:var(--citedy-slate-100, #f1f5f9)}.x-markdown-debug-panel{position:fixed;z-index:9999;right:0;background:#000000d9;border-radius:8px;padding:12px;font-family:SF Mono,Monaco,Inconsolata,Fira Mono,Droid Sans Mono,Source Code Pro,monospace;font-size:12px;color:#fff;width:180px;box-shadow:0 2px 8px #00000026;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);-webkit-user-select:none;user-select:none;transition:box-shadow .2s}.x-markdown-debug-panel:hover{box-shadow:0 4px 12px #00000040}.x-markdown-debug-row{display:flex;align-items:center;gap:8px;margin-bottom:8px}.x-markdown-debug-row:last-child{margin-bottom:0}.x-markdown-debug-label{color:#ffffffa6;font-weight:500;min-width:60px}.x-markdown-debug-value{font-weight:600;min-width:50px;text-align:right}.x-markdown-debug-chart{margin-left:auto}.x-markdown-debug-actions{display:flex;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.1)}.x-markdown-debug-action{flex:1;padding:6px 12px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:4px;color:#fff;font-size:11px;font-family:inherit;cursor:pointer;transition:all .2s;font-weight:500}.x-markdown-debug-action:hover{background:#ffffff26;border-color:#ffffff4d}.x-markdown-debug-action:active{transform:scale(.98)}.x-markdown-debug-record-btn.recording{background:#ff4d4f33;border-color:#ff4d4f;animation:recording-pulse 1.5s ease-in-out infinite}@keyframes recording-pulse{0%,to{box-shadow:0 0 #ff4d4f66}50%{box-shadow:0 0 0 8px #ff4d4f00}}.x-markdown-debug-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000bf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10000;display:flex;align-items:center;justify-content:center;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.x-markdown-debug-modal{background:#1e1e1ef2;border-radius:12px;box-shadow:0 8px 32px #0006;max-width:90vw;max-height:90vh;overflow:auto;animation:slideIn .3s ease-out;border:1px solid rgba(255,255,255,.1)}@keyframes slideIn{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}.x-markdown-debug-modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.1)}.x-markdown-debug-close-btn{width:32px;height:32px;border-radius:6px;background:#ffffff1a;border:none;color:#fff;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.x-markdown-debug-close-btn:hover{background:#ff4d4f4d}.x-markdown-debug-modal-content{padding:24px}.x-markdown-debug-stats-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.x-markdown-debug-stat-item{background:#ffffff0d;border-radius:8px;padding:16px;border:1px solid rgba(255,255,255,.1)}.x-markdown-debug-stat-label{font-size:11px;color:#fff9;margin-bottom:8px;text-transform:uppercase;letter-spacing:.5px}.x-markdown-debug-stat-value{font-size:20px;font-weight:700;color:#fff}.x-markdown-debug-chart-full{background:#ffffff05;border-radius:8px;border:1px solid rgba(255,255,255,.1)}.x-markdown-debug-chart-full .fps-line,.x-markdown-debug-chart-full .memory-line{filter:drop-shadow(0 0 4px currentColor)}.x-markdown-debug-legend{display:flex;gap:24px;justify-content:center;margin-top:16px}.x-markdown-debug-legend-item{display:flex;align-items:center;gap:8px;font-size:13px;color:#fffc}.x-markdown-debug-legend-color{width:12px;height:12px;border-radius:2px}@media(max-width:768px){.x-markdown-debug-stats-summary{grid-template-columns:repeat(2,1fr)}}@keyframes x-markdown-fade-in{0%{opacity:0}to{opacity:1}}.x-markdown{--text-color: inherit;--font-size: inherit;--margin-block: 0 0 1em 0;--td-th-padding: .85em 1em;--pre-th-td-padding: 2px 0;--border-font-weight: 600;--padding-ul-ol: 0 0 0 1em;--margin-ul-ol: 0 0 1em 1.8em;--margin-li: .25em 0;--margin-pre: 1em 0;--padding-code-inline: .2em .4em;--margin-code-inline: 0 .2em;--code-inline-text: .85em;--small-border-radius: 2px;--image-margin: .5em 0;--hr-margin: 1.5em 0;--table-margin: 1em 0;font-size:var(--font-size);line-height:1.5714285714285714;width:100%;color:var(--text-color)}.x-markdown p,.x-markdown div,.x-markdown span,.x-markdown li{word-break:break-word;overflow-wrap:break-word}.x-markdown pre,.x-markdown code{word-break:break-word;overflow-wrap:break-word;white-space:pre-wrap}.x-markdown th,.x-markdown td{padding:var(--td-th-padding)}.x-markdown th{font-weight:var(--border-font-weight)}.x-markdown pre table{box-shadow:none}.x-markdown pre td,.x-markdown pre th{padding:var(--pre-th-td-padding);border:none;text-align:left}.x-markdown p{margin:var(--margin-block)}.x-markdown p:first-child{margin-top:0}.x-markdown p:last-child{margin-bottom:0}.x-markdown ul,.x-markdown ol{margin:var(--margin-ul-ol);padding:var(--padding-ul-ol)}.x-markdown ul:first-child,.x-markdown ol:first-child{margin-top:0}.x-markdown ul:last-child,.x-markdown ol:last-child{margin-bottom:0}.x-markdown ol>li{list-style:decimal}.x-markdown ul>li{list-style:disc}.x-markdown li{margin:var(--margin-li)}.x-markdown li:first-child{margin-top:0}.x-markdown li:last-child{margin-bottom:0}.x-markdown pre{margin:var(--margin-pre);overflow-x:auto}.x-markdown pre:first-child{margin-top:0}.x-markdown pre:last-child{margin-bottom:0}.x-markdown code{padding:var(--padding-code-inline);margin:var(--margin-code-inline);font-size:var(--code-inline-text);border-radius:var(--small-border-radius)}.x-markdown pre code{padding:0;margin:0;font-size:inherit;border-radius:0;line-height:2}.x-markdown img{max-width:100%;height:auto;margin:var(--image-margin)}.x-markdown hr{margin:var(--hr-margin)}.x-markdown table:not(pre){margin:var(--table-margin);border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.x-markdown table:not(pre):first-child{margin-top:0}.x-markdown table:not(pre):last-child{margin-bottom:0}.x-markdown .inline-katex .katex-display{display:inline-block;margin:0;text-align:initial;vertical-align:middle}.x-markdown .inline-katex .katex-display>.katex{display:inline-block;text-align:initial;white-space:normal}.x-markdown .inline-katex .katex-display>.katex>.katex-html{display:inline-block;position:static}.x-markdown .inline-katex .katex-display>.katex>.katex-html>.tag{position:static}@font-face{font-display:block;font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2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bf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-display:block;font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.33"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex svg{fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}[class*=chat-anywhere-welcome-default] [class*=-avatar]{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;font-size:18px!important;flex-shrink:0;overflow:visible!important}[class*=chat-anywhere-welcome-default] [class*=-avatar]>img{object-fit:contain!important;object-position:center;width:100%!important;height:100%!important}.index-module__chatStage__Yw5Yh{position:relative;flex:1;min-height:0}.index-module__liveProgress__QL9lH{position:absolute;left:50%;bottom:92px;z-index:20;width:min(560px,calc(100% - 48px));pointer-events:none;transform:translate(-50%)}.index-module__liveProgressInner__cus8Z{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(203,213,225,.72);border-radius:999px;background:#ffffffeb;color:var(--citedy-slate-700, #334155);box-shadow:0 18px 38px #0f172a1f;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.index-module__liveProgressPulse__hDHeC{width:10px;height:10px;border-radius:999px;background:#16a34a;box-shadow:0 0 #16a34a6b;animation:index-module__live-progress-pulse__8pccH 1.5s ease-out infinite;flex:0 0 auto}.index-module__liveProgressError__ShCpe{width:10px;height:10px;border-radius:999px;background:#f97316;box-shadow:0 0 0 4px #f9731629;flex:0 0 auto}.index-module__liveProgressText__8NooH{min-width:0;flex:1 1 auto}.index-module__liveProgressTitle__kYb-i{font-size:13px;font-weight:700;line-height:1.3;color:var(--citedy-slate-900, #0f172a)}.index-module__liveProgressDetail__OeB-W{margin-top:2px;font-size:12px;line-height:1.35;color:var(--citedy-slate-500, #64748b)}.index-module__liveProgressElapsed__WJphO{margin-left:auto;padding:3px 8px;border-radius:999px;background:#0f172a0f;color:var(--citedy-slate-500, #64748b);font-size:11px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;flex:0 0 auto}@keyframes index-module__live-progress-pulse__8pccH{0%{box-shadow:0 0 #16a34a6b;transform:scale(.94)}70%{box-shadow:0 0 0 8px #16a34a00;transform:scale(1)}to{box-shadow:0 0 #16a34a00;transform:scale(.94)}}@media(prefers-reduced-motion:reduce){.index-module__liveProgressPulse__hDHeC{animation:none;transform:none}}@media(prefers-color-scheme:dark){.index-module__liveProgressInner__cus8Z{border-color:#475569c7;background:#0f172ae6;color:var(--citedy-slate-300, #cbd5e1);box-shadow:0 18px 38px #00000047}.index-module__liveProgressTitle__kYb-i{color:var(--citedy-slate-50, #f8fafc)}.index-module__liveProgressDetail__OeB-W{color:var(--citedy-slate-300, #cbd5e1)}.index-module__liveProgressElapsed__WJphO{background:#f8fafc1a;color:var(--citedy-slate-300, #cbd5e1)}}@media(max-width:640px){.index-module__liveProgress__QL9lH{bottom:84px;width:calc(100% - 24px)}.index-module__liveProgressInner__cus8Z{align-items:flex-start;border-radius:18px}.index-module__liveProgressElapsed__WJphO{margin-top:2px}}.index-module__chatDisabledOverlay__hK8nM{position:relative;height:100%;width:100%}.index-module__chatDisabledOverlay__hK8nM [class*=chat-anywhere-input],.index-module__chatDisabledOverlay__hK8nM [class*=chat-input],.index-module__chatDisabledOverlay__hK8nM textarea,.index-module__chatDisabledOverlay__hK8nM input[type=text]{pointer-events:none!important;opacity:.5!important;background-color:var(--citedy-slate-50)!important;cursor:not-allowed!important}.index-module__chatDisabledOverlay__hK8nM button[class*=send],.index-module__chatDisabledOverlay__hK8nM button[class*=submit]{pointer-events:none!important;opacity:.3!important;cursor:not-allowed!important}.index-module__channelsPage__KERMS{padding:24px}.index-module__title__f29rX{margin-bottom:16px;font-size:24px;font-weight:700;color:var(--citedy-slate-900)}.index-module__description__scLfu{margin-bottom:24px;color:var(--citedy-slate-500);font-size:14px}.index-module__loading__NCm2R{text-align:center;padding:60px}.index-module__loadingText__JovP-{color:var(--citedy-slate-500)}.index-module__channelsGrid__i5OVf{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}.index-module__channelCard__a6OxB{border-radius:16px;cursor:pointer;transition:all .3s ease;position:relative;overflow:hidden}.index-module__channelCard__a6OxB.index-module__hover__UPifS{transform:translateY(-2px);border:1px solid rgba(148,163,184,.28)!important;box-shadow:0 12px 28px #0f172a14!important}.index-module__channelCard__a6OxB.index-module__enabled__o157g{border:1px solid rgba(99,102,241,.22)!important;box-shadow:0 10px 28px #0f172a14!important;background:linear-gradient(180deg,#fffffff0,#f8fafce6)!important}.index-module__channelCard__a6OxB.index-module__normal__SH6vm{border:1px solid rgba(226,232,240,.4)!important;box-shadow:0 1px 3px #0000000a!important}.index-module__cardHeader__--wbL{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.index-module__statusContainer__25wiW{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--citedy-slate-400)}.index-module__statusDot__0b9lX{width:8px;height:8px;border-radius:50%}.index-module__statusDot__0b9lX.index-module__enabled__o157g{background-color:var(--citedy-emerald-500);box-shadow:0 0 6px #10b98166}.index-module__statusDot__0b9lX.index-module__disabled__C1DI1{background-color:var(--citedy-slate-300);box-shadow:none}.index-module__channelTag__gPC2m{font-size:12px;color:var(--citedy-slate-600);padding:2px 8px;border-radius:999px;background:#e2e8f066;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.index-module__cardTitle__pNukR{font-size:14px;font-weight:600;color:var(--citedy-slate-600);margin-bottom:8px}.index-module__cardDescription__-oM4i{font-size:12px;color:var(--citedy-slate-500);margin-bottom:12px}.index-module__cardHint__ceo7S{font-size:11px;color:#64748bb8}.index-module__drawerTitle__cfLmt{display:flex;align-items:center;gap:8px}.index-module__dingtalkDocBtn__eFV-V{font-size:12px;padding:0 8px}.index-module__formActions__Iz42x{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.index-module__sessionsPage__GddkQ{padding:24px;min-height:calc(100vh - 128px)}.index-module__sessionsTable__Hm5J2 .adclaw-table{background:transparent}.index-module__sessionsTable__Hm5J2 .adclaw-table-container{border-radius:0 0 28px 28px}.index-module__sessionsTable__Hm5J2 .adclaw-table-thead>tr>th{min-height:58px;padding:18px 20px!important;border-bottom:1px solid rgba(226,232,240,.9)!important;background:#fcfcffd1!important;color:var(--citedy-slate-500)!important;font-size:12px!important;font-weight:700!important;letter-spacing:.02em}.index-module__sessionsTable__Hm5J2 .adclaw-table-thead>tr>th.adclaw-table-selection-column,.index-module__sessionsTable__Hm5J2 .ant-table-thead>tr>th.ant-table-selection-column,.index-module__sessionsTable__Hm5J2 .adclaw-table-tbody>tr>td.adclaw-table-selection-column,.index-module__sessionsTable__Hm5J2 .ant-table-tbody>tr>td.ant-table-selection-column{width:56px!important;min-width:56px!important;max-width:56px!important;padding:0 12px!important;text-align:center!important}.index-module__sessionsTable__Hm5J2 .adclaw-table-selection-column .adclaw-checkbox-wrapper,.index-module__sessionsTable__Hm5J2 .ant-table-selection-column .ant-checkbox-wrapper,.index-module__sessionsTable__Hm5J2 .adclaw-table-selection-column label,.index-module__sessionsTable__Hm5J2 .ant-table-selection-column label{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important}.index-module__sessionsTable__Hm5J2 .adclaw-table-tbody>tr>td{padding:18px 20px!important;border-bottom:1px solid rgba(230,234,242,.72)!important;background:#fffffff5!important;color:var(--citedy-slate-700);vertical-align:middle}.index-module__sessionsTable__Hm5J2 .adclaw-table-tbody>tr:hover>td{background:#f8fafce0!important}.index-module__sessionsTable__Hm5J2 .adclaw-table-placeholder>td{padding:0!important;border-bottom:0!important;background:transparent!important}.index-module__sessionsTable__Hm5J2 .adclaw-table-pagination{margin:0!important;padding:18px 20px 20px!important}.index-module__selectedRow__GQcgw>td{background-color:#eff6ffe6!important}.index-module__selectedRow__GQcgw:hover>td{background-color:#e0e7ffb8!important}.index-module__header__ayC9B{margin-bottom:18px}.index-module__title__F6obu{margin-bottom:4px;font-size:24px;font-weight:700;color:var(--citedy-slate-900)}.index-module__description__BINbW{margin:0;color:var(--citedy-slate-500);font-size:14px}.index-module__toolbar__bCbph{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.index-module__filterBar__GMzJg{margin-bottom:0;display:flex;gap:12px;align-items:center}.index-module__toolbarMeta__3thrM{display:flex;align-items:center;gap:12px}.index-module__countChip__FTRaI{min-height:40px;display:inline-flex;align-items:center;border-radius:999px;border:1px solid rgba(226,232,240,.8);background:#f8fafcf5;box-shadow:0 8px 20px #0f172a0a;padding:0 14px;color:var(--citedy-slate-500);font-size:13px;font-weight:600}.index-module__surfaceHead__Rn7NX{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid rgba(226,232,240,.9);background:linear-gradient(180deg,#f9fbfff0,#f5f7fce0);border-radius:18px 18px 0 0}.index-module__surfaceTitle__NCN0G{display:flex;flex-direction:column;gap:4px}.index-module__surfaceTitle__NCN0G strong{color:var(--citedy-slate-800);font-size:15px;font-weight:700}.index-module__surfaceTitle__NCN0G span{color:var(--citedy-slate-500);font-size:13px;font-weight:400}.sessions-filter-input .index-module__ant-input__pWz-N{border-radius:9999px!important;border:1px solid var(--citedy-slate-200)!important;transition:all .2s ease-in-out!important}.sessions-filter-input .index-module__ant-input__pWz-N:hover{border-color:var(--citedy-slate-400)!important}.sessions-filter-input .index-module__ant-input__pWz-N:focus{border-color:var(--citedy-slate-900)!important;box-shadow:0 0 0 2px #0f172a1a!important}.sessions-filter-select .index-module__ant-select-selector__HixmQ{border-radius:9999px!important;border:1px solid var(--citedy-slate-200)!important;transition:all .2s ease-in-out!important}.sessions-filter-select .index-module__ant-select-selector__HixmQ:hover{border-color:var(--citedy-slate-400)!important}.sessions-filter-select .index-module__ant-select-selector__HixmQ:focus,.sessions-filter-select .index-module__ant-select-selector__HixmQ:focus-within{border-color:var(--citedy-slate-900)!important;box-shadow:0 0 0 2px #0f172a1a!important}.index-module__tableCard__srtEK{overflow:hidden;border-radius:28px!important;border:1px solid rgba(226,232,240,.78)!important;background:#fffffff5!important;box-shadow:0 18px 40px #0f172a12!important}.index-module__tableCard__srtEK .ant-card-body{padding:0}.index-module__tableCard__srtEK .adclaw-table-cell-fix-left,.index-module__tableCard__srtEK .adclaw-table-cell-fix-right,.index-module__tableCard__srtEK [class*=table-cell-fix-left],.index-module__tableCard__srtEK [class*=table-cell-fix-right]{background:#fff!important;z-index:2!important}.index-module__tableCard__srtEK td.adclaw-table-selection-column,.index-module__tableCard__srtEK td.ant-table-selection-column,.index-module__tableCard__srtEK td[class*=selection-column]{z-index:3!important}.index-module__emptyStatePanel__N1zWj{border-radius:0 0 18px 18px;background:#fffffffa}.index-module__emptyState__-CNaE{display:flex;align-items:center;justify-content:center;min-height:220px;padding:24px 24px 28px;width:100%}.index-module__emptyStateCore__zdJzJ{max-width:420px;margin:0 auto;text-align:center}.index-module__emptyStateIcon__JpWAr{position:relative;width:56px;height:56px;margin:0 auto 16px;border-radius:18px;border:1px solid rgba(129,140,248,.18);background:linear-gradient(180deg,#eef2fff0,#f8fafcf5);box-shadow:0 12px 30px #0f172a0f}.index-module__emptyStateIcon__JpWAr:before{content:"";position:absolute;top:13px;right:13px;bottom:13px;left:13px;border-radius:12px;border:1.5px solid rgba(99,102,241,.22);background:linear-gradient(180deg,#ffffffe6,#eff6ffc2)}.index-module__emptyStateIcon__JpWAr:after{content:"";position:absolute;left:18px;right:18px;top:27px;height:2px;border-radius:999px;background:#6366f142;box-shadow:0 -8px #94a3b829}.index-module__emptyStateTitle__f3ZB1{margin:0 0 8px;color:var(--citedy-slate-800);font-size:22px;font-weight:700}.index-module__emptyStateDescription__yScHD{margin:0;color:var(--citedy-slate-500);font-size:14px;line-height:1.7}@media(max-width:768px){.index-module__sessionsPage__GddkQ{padding:16px}.index-module__toolbar__bCbph{align-items:stretch}.index-module__filterBar__GMzJg{width:100%;flex-direction:column;align-items:stretch}.index-module__toolbarMeta__3thrM{width:100%;justify-content:space-between;flex-wrap:wrap}.index-module__countChip__FTRaI{width:100%;justify-content:center}.sessions-filter-input,.sessions-filter-input .ant-input-affix-wrapper,.sessions-filter-input .ant-input,.sessions-filter-select,.sessions-filter-select .ant-select-selector{width:100%!important}}.index-module__cronJobsPage__WL7BY{padding:24px;min-height:calc(100vh - 128px)}.index-module__header__28oOZ{margin-bottom:18px}.index-module__title__LMhM3{margin-bottom:4px;font-size:24px;font-weight:700;color:var(--citedy-slate-900)}.index-module__description__m8hge{margin:0;color:var(--citedy-slate-500);font-size:14px}.index-module__toolbar__6heGA{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.index-module__toolbarMeta__ybepT{display:flex;align-items:center;gap:12px}.index-module__countChip__zNwIw{min-height:40px;display:inline-flex;align-items:center;border-radius:999px;border:1px solid rgba(226,232,240,.8);background:#f8fafcf5;box-shadow:0 8px 20px #0f172a0a;padding:0 14px;color:var(--citedy-slate-500);font-size:13px;font-weight:600}.index-module__surfaceHead__wxro3{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid rgba(226,232,240,.9);background:linear-gradient(180deg,#f9fbfff0,#f5f7fce0);border-radius:18px 18px 0 0}.index-module__surfaceTitle__-8azm{display:flex;flex-direction:column;gap:4px}.index-module__surfaceTitle__-8azm strong{color:var(--citedy-slate-800);font-size:15px;font-weight:700}.index-module__surfaceTitle__-8azm span{color:var(--citedy-slate-500);font-size:13px;font-weight:400}.index-module__cronJobsTable__683-b .adclaw-table{background:transparent}.index-module__cronJobsTable__683-b .adclaw-table-container{border-radius:0 0 28px 28px}.index-module__cronJobsTable__683-b .adclaw-table-thead>tr>th{min-height:58px;padding:18px 20px!important;border-bottom:1px solid rgba(226,232,240,.9)!important;background:#fcfcffd1!important;color:var(--citedy-slate-500)!important;font-size:12px!important;font-weight:700!important;letter-spacing:.02em}.index-module__cronJobsTable__683-b .adclaw-table-tbody>tr>td{padding:18px 20px!important;border-bottom:1px solid rgba(230,234,242,.72)!important;background:#fffffff5!important;color:var(--citedy-slate-700);vertical-align:middle}.index-module__cronJobsTable__683-b .adclaw-table-tbody>tr:hover>td{background:#f8fafce0!important}.index-module__cronJobsTable__683-b .adclaw-table-placeholder>td,.index-module__cronJobsTable__683-b .ant-table-placeholder>td{padding:0!important;border-bottom:0!important;background:transparent!important}.index-module__cronJobsTable__683-b .adclaw-table-pagination{margin:0!important;padding:18px 20px 20px!important}.index-module__tableCard__CBbTi{overflow:hidden;border-radius:28px!important;border:1px solid rgba(226,232,240,.78)!important;background:#fffffff5!important;box-shadow:0 18px 40px #0f172a12!important}.index-module__tableCard__CBbTi .ant-card-body{padding:0}.index-module__emptyStatePanel__TshDS{border-radius:0 0 18px 18px;background:#fffffffa}.index-module__emptyState__xdtbu{display:flex;align-items:center;justify-content:center;min-height:220px;padding:24px 24px 28px;width:100%}.index-module__emptyStateCore__pPAOO{max-width:460px;margin:0 auto;text-align:center}.index-module__emptyStateIcon__b2e-k{position:relative;width:56px;height:56px;margin:0 auto 16px;border-radius:18px;border:1px solid rgba(129,140,248,.18);background:linear-gradient(180deg,#eef2fff0,#f8fafcf5);box-shadow:0 12px 30px #0f172a0f}.index-module__emptyStateIcon__b2e-k:before{content:"";position:absolute;top:13px;right:13px;bottom:13px;left:13px;border-radius:12px;border:1.5px solid rgba(99,102,241,.22);background:linear-gradient(180deg,#ffffffe6,#eff6ffc2)}.index-module__emptyStateIcon__b2e-k:after{content:"";position:absolute;left:18px;right:18px;top:27px;height:2px;border-radius:999px;background:#6366f142;box-shadow:0 -8px #94a3b829}.index-module__emptyStateTitle__UG1np{margin:0 0 8px;color:var(--citedy-slate-800);font-size:22px;font-weight:700}.index-module__emptyStateDescription__4D47g{margin:0;color:var(--citedy-slate-500);font-size:14px;line-height:1.7}.index-module__heartbeatPage__Ujxds{padding:24px}.index-module__title__-ynxy{margin-bottom:4px;font-size:24px;font-weight:700;color:var(--citedy-slate-900)}.index-module__description__kGYqZ{margin:0 0 24px;color:var(--citedy-slate-500);font-size:14px}.index-module__card__rsntz{max-width:560px}.index-module__everyField__AYk5f .ant-form-item-control-input-content{display:block}.index-module__everyRow__inlCa{display:flex;gap:12px;align-items:center}.index-module__everyNumber__mQJuv{width:120px}.index-module__everyUnit__LuPNC{min-width:100px}.index-module__formActions__HMGzL{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.index-module__activeHoursRow__3kavY{display:flex;gap:16px;align-items:flex-start}.index-module__activeHoursRow__3kavY .ant-form-item{flex:1;margin-bottom:0}.index-module__page__cM5xr{padding:24px;height:100%;overflow-y:auto}.index-module__header__dBBDa{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.index-module__title__SW2jn{font-size:24px;font-weight:700;margin:0 0 8px;color:var(--citedy-slate-900)}.index-module__description__FKwq5{font-size:14px;color:var(--citedy-slate-600);margin:0}.index-module__formCard__Az1mF{max-width:800px}.index-module__formCard__Az1mF:hover{border:1px solid var(--citedy-slate-300)!important;box-shadow:0 12px 32px #00000014!important}.index-module__form__zF1QN .ant-form-item-label>label{font-weight:500}.index-module__buttonGroup__Q5-rj{display:flex;gap:12px;justify-content:flex-end;margin-top:32px;margin-bottom:0}.index-module__centerState__ItP3h{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px;gap:16px}.index-module__stateText__03Y8b{font-size:14px;color:var(--citedy-slate-600)}.index-module__stateTextError__5ndGk{font-size:14px;color:var(--citedy-red-600)}.index-module__skillsPage__vNKDw{padding:24px}.index-module__header__Awoet{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.index-module__headerActions__Y7EEs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.index-module__headerActionButton__AE3Gz{flex:0 0 auto}.index-module__headerInfo__rh4vm{display:flex;flex-direction:column}.index-module__title__Ilomk{margin-bottom:4px;font-size:24px;font-weight:700;color:var(--citedy-slate-900)}.index-module__description__3yxm7{margin:0;color:var(--citedy-slate-500);font-size:14px}.index-module__loading__xEQGZ{text-align:center;padding:60px}.index-module__loadingText__N-UyK{color:var(--citedy-slate-500)}.index-module__importHintBlock__e-L7E{margin-bottom:12px}.index-module__importHintTitle__A3uWY{margin:0;font-size:13px;color:var(--citedy-slate-600)}.index-module__importHintList__xK88E{margin:8px 0;padding:0 0 0 20px;font-size:12px;color:var(--citedy-slate-500)}.index-module__importUrlInput__St5Ws{width:100%;height:40px;padding:0 12px;border:1px solid var(--citedy-slate-200);border-radius:9999px;outline:none;font-size:14px;transition:all .2s ease}.index-module__importUrlInput__St5Ws:focus{border-color:var(--citedy-slate-900);box-shadow:0 0 0 2px #0f172a1a}.index-module__importUrlError__Ry86H{margin-top:8px;color:var(--citedy-red-600);font-size:13px}.index-module__importLoadingText__qFCwC{margin-top:8px;font-size:13px;color:var(--citedy-slate-600)}.index-module__skillsGrid__COFQN{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}.index-module__skillCard__2tACD{border-radius:16px;transition:all .3s ease;cursor:pointer;position:relative;overflow:hidden}.index-module__skillCard__2tACD.index-module__enabledCard__9ZhWr{border:2px solid var(--citedy-slate-900)!important;box-shadow:0 4px 16px #0f172a1f!important}.index-module__skillCard__2tACD.index-module__enabledCard__9ZhWr .index-module__statusDot__HyrOm.index-module__enabled__8NIG8{background-color:var(--citedy-green-500)}.index-module__skillCard__2tACD.index-module__enabledCard__9ZhWr .index-module__statusText__o6o--.index-module__enabled__8NIG8{color:var(--citedy-green-500)}.index-module__skillCard__2tACD.index-module__hover__S-cTc{transform:translateY(-2px);border:1px solid var(--citedy-slate-300)!important;box-shadow:0 12px 32px #00000014!important}.index-module__skillCard__2tACD.index-module__normal__KfVZf{border:1px solid rgba(226,232,240,.4)!important;box-shadow:0 1px 3px #0000000a!important}.index-module__cardHeader__JHFNH{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.index-module__skillTitle__eBUh3{margin:0;font-size:14px;font-weight:600;color:var(--citedy-slate-600)}.index-module__fileIcon__67c9Q{font-size:16px;display:flex;align-items:center}.index-module__statusContainer__uEc50{display:flex;align-items:center;gap:6px}.index-module__statusDot__HyrOm{width:6px;height:6px;border-radius:50%}.index-module__statusDot__HyrOm.index-module__enabled__8NIG8{background-color:var(--citedy-green-500)}.index-module__statusDot__HyrOm.index-module__disabled__ib1il{background-color:var(--citedy-slate-300)}.index-module__statusText__o6o--{font-size:12px}.index-module__statusText__o6o--.index-module__enabled__8NIG8{color:var(--citedy-green-500)}.index-module__statusText__o6o--.index-module__disabled__ib1il{color:var(--citedy-slate-400)}.index-module__infoSection__6F8vC{margin-bottom:12px;height:50px}.index-module__infoLabel__VyvP-{font-size:12px;color:var(--citedy-slate-500);margin-bottom:4px}.index-module__infoCode__o3E-y{font-size:12px;color:var(--citedy-slate-600);background-color:var(--citedy-slate-50);padding:2px 6px;border-radius:4px;overflow:hidden;text-overflow:ellipsis}.index-module__infoCode__o3E-y.index-module__path__7gW-o{word-break:break-all}.index-module__infoCode__o3E-y.index-module__description__3yxm7{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;font-family:inherit;background-color:transparent;color:var(--citedy-slate-500);padding:0}.index-module__cardFooter__1tFvW{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding-top:12px;border-top:1px solid rgba(226,232,240,.4)}.index-module__actionButton__2W6Jc{padding:0}.index-module__deleteButton__fjOJa{padding:4px;display:flex;align-items:center;justify-content:center}.index-module__deleteButton__fjOJa:hover{background-color:var(--citedy-red-600)!important;color:#fff!important;border-color:var(--citedy-red-600)!important}.index-module__contentLabel__vcAOz{font-size:12px;font-weight:600;display:flex;justify-content:space-between;align-items:center;height:20px;width:100%}.index-module__contentLabel__vcAOz label{width:100%}.index-module__buttonGroup__WSKLp{display:flex;align-items:center}.index-module__markdownToggle__BxjqP{display:flex;align-items:center;gap:8px}@media(max-width:768px){.index-module__skillsPage__vNKDw{padding:16px}.index-module__header__Awoet{flex-direction:column;align-items:flex-start;gap:14px}.index-module__headerActions__Y7EEs{width:100%;flex-direction:column;align-items:stretch}.index-module__headerActionButton__AE3Gz{width:100%;justify-content:center}.index-module__skillsGrid__COFQN{grid-template-columns:1fr;gap:16px}}.index-module__toggleLabel__Bz0I8{font-size:12px;color:var(--citedy-slate-600);white-space:nowrap}.index-module__markdownViewer__vOzI2{min-height:200px;max-height:300px;overflow:auto;border:1px solid var(--citedy-slate-200);border-radius:6px;background-color:#fff}.index-module__copyButton__6-K6x{border-radius:4px}.index-module__markdownCopy__NGt4R{display:flex;flex-direction:column;height:100%}.index-module__controls__OIVwB{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12px;font-weight:600;height:20px}.index-module__controlGroup__bPEXQ,.index-module__previewToggle__b4LMK{display:flex;align-items:center;gap:8px}.index-module__previewLabel__arwJn{font-size:12px;color:var(--citedy-slate-600);white-space:nowrap}.index-module__markdownViewer__2WXPx{flex:1;min-height:300px;max-height:300px;overflow:auto;border:1px solid var(--citedy-slate-200);border-radius:6px;background-color:#fff9}.index-module__textareaContainer__zOSti{flex:1;display:flex;flex-direction:column}.index-module__textarea__aVu-C{flex:1;font-family:monospace;font-size:13px;resize:none;min-height:300px;max-height:300px;padding:12px;border:1px solid var(--citedy-slate-200);border-radius:6px}.index-module__agentsPage__2ZTY2{padding:24px;height:calc(100vh - 96px);display:flex;flex-direction:column;overflow:hidden}.index-module__header__YpFSR{flex-shrink:0}.index-module__title__1SMtt{margin-bottom:4px;font-size:24px;color:var(--citedy-slate-900);font-weight:700}.index-module__description__I46Ba{margin:0;color:var(--citedy-slate-500);font-size:14px}.index-module__content__jM-em{display:flex;gap:16px;flex:1;min-height:0;overflow:auto;padding-bottom:12px}.index-module__fileListPanel__kcpu8{width:400px;flex-shrink:0;display:flex;flex-direction:column;min-height:0;overflow:hidden}.index-module__cardBody__spfiT{padding:16px;display:flex;flex-direction:column;height:100%;overflow:auto}.index-module__cardContainer__RDY-a{flex:1;min-height:0}.index-module__workspaceInfo__U7BT1{display:flex;align-items:center;justify-content:space-between;height:30px}.index-module__headerRow__yS3y6{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex-shrink:0}.index-module__actionButtons__7Y20J{display:flex;gap:8px;align-items:center;margin-bottom:12px}.index-module__sectionTitle__DG1eM{margin:0;font-size:14px;font-weight:600;color:var(--citedy-slate-900)}.index-module__infoText__klOzD{margin:0 0 12px;font-size:12px;color:var(--citedy-slate-500);flex-shrink:0}.index-module__workspacePath__oDWCQ{margin:0 0 12px;font-size:12px;color:var(--citedy-slate-600);font-family:monospace;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.index-module__divider__-MXKO{height:1px;background-color:#e2e8f099;margin-bottom:16px;flex-shrink:0}.index-module__scrollContainer__CChdA{flex:1;min-height:0;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch}.index-module__scrollContainer__CChdA::-webkit-scrollbar{display:none}.index-module__fileEditor__WeD-s{flex:1;display:flex;flex-direction:column;min-height:0;height:100%;width:100%}.index-module__editorCard__SK72V{height:100%!important}.index-module__editorCard__SK72V .adclaw-card-body,.index-module__editorCard__SK72V .adclaw-card-body .adclaw-spark-card-wrapper,.index-module__editorCard__SK72V .adclaw-card-body .adclaw-spark-content,.index-module__editorCard__SK72V .adclaw-card-body .agentscope-runtime-webui-spark-card-wrapper,.index-module__editorCard__SK72V .adclaw-card-body .agentscope-runtime-webui-spark-card-wrapper .agentscope-runtime-webui-spark-content,.index-module__editorCard__SK72V .adclaw-card-body .spark-card-wrapper{height:100%}.index-module__editorCard__SK72V .adclaw-card-body .spark-card-wrapper .spark-content{height:100%;overflow:hidden}.index-module__editorHeader__mRUWW{padding:16px;border-bottom:1px solid rgba(226,232,240,.4);display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.index-module__fileName__gZLHx{font-size:16px;font-weight:600;margin-bottom:4px;color:var(--citedy-slate-900)}.index-module__filePath__-jHrr{font-size:12px;color:var(--citedy-slate-500);font-family:monospace}.index-module__buttonGroup__cDmge{display:flex;gap:8px;align-items:center}.index-module__editorContent__6WFLX{padding:16px;height:calc(100% - 96px)}.index-module__editorContent__6WFLX textarea{font-family:monospace;font-size:13px;resize:vertical;height:100%}.index-module__contentLabel__0fDMN{margin-bottom:8px;font-size:12px;font-weight:600;flex-shrink:0;display:flex;justify-content:space-between;align-items:center;height:20px}.index-module__markdownViewer__CqeZ8{flex:1;display:flex;flex-direction:column;height:100%;overflow:auto;border:1px solid var(--citedy-slate-200);padding:16px;border-radius:8px}.index-module__textarea__zh0P8{font-family:monospace;font-size:13px;resize:vertical;height:min(100%,clamp(280px,50vh,640px));min-height:min(240px,100%);max-height:100%}.index-module__markdownToggle__FNUrf{display:flex;align-items:center;gap:8px}.index-module__toggleLabel__t2aAr{font-size:12px;color:var(--citedy-slate-600);white-space:nowrap}.index-module__emptyState__sSM-6{flex:1;display:flex;align-items:center;justify-content:center;color:var(--citedy-slate-400)}.index-module__copyButton__CLn6j{border-radius:4px}.index-module__fileItem__eA99E{padding:12px;border:1px solid rgba(226,232,240,.6);border-radius:8px;margin-bottom:8px;cursor:pointer;background-color:#fff9;transition:all .2s}.index-module__fileItem__eA99E:hover:not(.index-module__selected__lUv7M){border-color:var(--citedy-slate-300);background-color:var(--citedy-slate-50)}.index-module__fileItem__eA99E.index-module__selected__lUv7M{border:2px solid var(--citedy-slate-900);background-color:#0f172a0a;border-radius:10px}.index-module__fileItemHeader__4JM0J{display:flex;align-items:center;justify-content:space-between}.index-module__fileInfo__7x1XX{flex:1}.index-module__fileActions__wbunc{display:flex;align-items:center;gap:8px}.index-module__fileItemName__WBQ1X{font-size:14px;font-weight:600;margin-bottom:4px;color:var(--citedy-slate-900)}.index-module__fileItemMeta__LKnfS{font-size:12px;color:var(--citedy-slate-500)}.index-module__expandIcon__HVdbA{font-size:12px;color:var(--citedy-slate-400);margin-left:8px}.index-module__dailyMemoryList__cY7mG{margin-left:16px;margin-top:-4px;margin-bottom:8px}.index-module__dailyMemoryItem__NKk4-{padding:10px;border:1px solid rgba(226,232,240,.6);border-radius:6px;margin-bottom:6px;cursor:pointer;background-color:#fff9;transition:all .2s}.index-module__dailyMemoryItem__NKk4-:hover:not(.index-module__selected__lUv7M){border-color:var(--citedy-slate-300);background-color:var(--citedy-slate-50)}.index-module__dailyMemoryItem__NKk4-.index-module__selected__lUv7M{border:2px solid var(--citedy-slate-900);background-color:#0f172a0a}.index-module__dailyMemoryName__nqSse{font-size:13px;font-weight:500;margin-bottom:2px;color:var(--citedy-slate-900)}.index-module__dailyMemoryMeta__It0mp{font-size:11px;color:var(--citedy-slate-500)}@media(max-width:768px){.index-module__agentsPage__2ZTY2{padding:16px;height:auto;min-height:calc(100vh - 96px);overflow:auto}.index-module__header__YpFSR{margin-bottom:16px}.index-module__workspaceInfo__U7BT1{flex-direction:column;align-items:stretch;justify-content:flex-start;height:auto;gap:12px}.index-module__workspacePath__oDWCQ{margin-bottom:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.index-module__actionButtons__7Y20J{width:100%;flex-wrap:wrap;margin-bottom:0}.index-module__content__jM-em{flex-direction:column;overflow:visible}.index-module__fileListPanel__kcpu8{width:100%}.index-module__editorHeader__mRUWW{flex-direction:column;align-items:flex-start;gap:12px}.index-module__buttonGroup__cDmge{width:100%;flex-wrap:wrap}.index-module__editorContent__6WFLX{height:auto;min-height:320px}}.index-module__mcpCard__NHAbK{border-radius:16px;transition:all .3s ease;cursor:pointer;padding:16px;position:relative;overflow:hidden}.index-module__mcpCard__NHAbK.index-module__enabledCard__6MaeF{border:2px solid var(--citedy-slate-900)!important;box-shadow:0 4px 16px #0f172a1f!important}.index-module__mcpCard__NHAbK.index-module__hover__x9CgJ{transform:translateY(-2px);border:1px solid var(--citedy-slate-300)!important;box-shadow:0 12px 32px #00000014!important}.index-module__mcpCard__NHAbK.index-module__normal__MnZ91{border:1px solid rgba(226,232,240,.4)!important;box-shadow:0 1px 3px #0000000a!important}.index-module__cardHeader__9usx-{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.index-module__mcpTitle__hls-f{margin:0;font-size:14px;font-weight:600;color:var(--citedy-slate-600);max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.index-module__typeBadge__-N8OH{font-size:10px;padding:2px 8px;border-radius:9999px;font-weight:500;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);white-space:nowrap}.index-module__typeBadge__-N8OH.index-module__local__tEVxU{background-color:#3b82f614;color:var(--citedy-blue-500);border:1px solid rgba(59,130,246,.2)}.index-module__typeBadge__-N8OH.index-module__remote__-8tSW{background-color:#f59e0b14;color:var(--citedy-amber-500);border:1px solid rgba(245,158,11,.2)}.index-module__fileIcon__sfnmG{font-size:20px;display:flex;align-items:center}.index-module__description__2lip1{font-size:14px;color:var(--citedy-slate-600);line-height:1.6;margin-bottom:32px;min-height:64px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.index-module__cardFooter__RkStn{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding-top:16px;margin-top:auto;border-top:1px solid rgba(226,232,240,.4)}.index-module__actionButton__zqbuq{padding:0;font-size:12px}.index-module__deleteButton__coiRH{padding:4px;display:flex;align-items:center;justify-content:center}.index-module__deleteButton__coiRH:hover{background-color:var(--citedy-red-600)!important;color:#fff!important;border-color:var(--citedy-red-600)!important}.index-module__statusContainer__4D1Tq{display:flex;align-items:center;gap:6px}.index-module__statusDot__WD8ZW{width:6px;height:6px;border-radius:50%}.index-module__statusDot__WD8ZW.index-module__enabled__IrxGE{background-color:var(--citedy-green-500)}.index-module__statusDot__WD8ZW.index-module__disabled__aFYEJ{background-color:var(--citedy-slate-300)}.index-module__statusText__u4-a-{font-size:12px}.index-module__statusText__u4-a-.index-module__enabled__IrxGE{color:var(--citedy-green-500)}.index-module__statusText__u4-a-.index-module__disabled__aFYEJ{color:var(--citedy-slate-400)}.index-module__editJsonTextArea__oaMND{width:100%;min-height:500px;font-family:Monaco,Courier New,monospace;font-size:13px;padding:16px;border:1px solid var(--citedy-slate-200);border-radius:8px;resize:vertical}.index-module__preformattedText__1MVIo{background-color:var(--citedy-slate-50);padding:16px;border-radius:8px;max-height:500px;overflow:auto}.index-module__page__-KHrh{padding:24px}.index-module__loading__E8z42{text-align:center;padding:60px}.index-module__loadingText__c-UjQ{color:var(--citedy-slate-500)}.index-module__section__Vcquy{margin-bottom:32px}.index-module__section__Vcquy:last-child{margin-bottom:0}.index-module__sectionTitle__XvbR5{margin-bottom:4px;font-size:24px;font-weight:700;color:var(--citedy-slate-900)}.index-module__sectionDesc__BrUBs{margin:0 0 16px;color:var(--citedy-slate-500);font-size:14px}.index-module__providersBlock__89GLO{margin-top:32px}.index-module__providerGroup__k-x-v{margin-bottom:24px}.index-module__providerGroup__k-x-v:last-of-type{margin-bottom:0}.index-module__providerGroupTitle__Dx9Ip{font-size:14px;font-weight:600;color:var(--citedy-slate-600);margin:0 0 12px;letter-spacing:.02em}.index-module__providerCards__fYCGM{display:flex;gap:16px;margin-bottom:16px;flex-wrap:wrap;align-items:stretch}.index-module__providerCard__vHdYF{flex:1 1 calc(33.333% - 16px);min-width:280px;border-radius:16px;transition:all .3s ease;cursor:pointer;position:relative;overflow:hidden;display:flex;flex-direction:column}.index-module__providerCard__vHdYF.index-module__enabledCard__gEeW4{border:2px solid var(--citedy-slate-900)!important;box-shadow:0 4px 16px #0f172a1f!important}.index-module__providerCard__vHdYF.index-module__hover__me1r9{transform:translateY(-2px);border:1px solid var(--citedy-slate-300)!important;box-shadow:0 12px 32px #00000014!important}.index-module__providerCard__vHdYF.index-module__normal__RgnkR{border:1px solid rgba(226,232,240,.4)!important;box-shadow:0 1px 3px #0000000a!important}.index-module__providerCard__vHdYF .ant-card-body{display:flex;flex-direction:column;flex:1;height:100%}.index-module__statusContainer__bPQqG{display:flex;align-items:center;gap:8px}.index-module__statusContainer__bPQqG .index-module__statusText__amA-k{font-size:12px;font-weight:500}.index-module__statusContainer__bPQqG .index-module__statusText__amA-k.index-module__enabled__kat0g{color:var(--citedy-green-500)}.index-module__statusContainer__bPQqG .index-module__statusText__amA-k.index-module__disabled__wpbIu{color:var(--citedy-slate-400)}.index-module__cardBody__PqJSo{padding:20px 24px}.index-module__cardHeader__cR54-{margin-bottom:14px;display:flex;align-items:center;justify-content:space-between}.index-module__cardHeader__cR54- .ant-badge-status-success .ant-badge-status-text{color:var(--citedy-green-500)!important}.index-module__cardHeader__cR54- .ant-badge-status-error .ant-badge-status-text{color:var(--citedy-red-600)!important}.index-module__cardName__52hTS{font-size:14px;font-weight:600;color:var(--citedy-slate-600)}.index-module__cardInfo__pEdcv{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;min-height:66px}.index-module__infoRow__4FuYK{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--citedy-slate-600)}.index-module__infoLabel__d9nd2{color:var(--citedy-slate-500);min-width:70px;flex-shrink:0;font-weight:500}.index-module__infoValue__Hv3kZ{color:var(--citedy-slate-700);font-family:SF Mono,Menlo,monospace;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;max-width:calc(100% - 80px);text-align:left}.index-module__infoEmpty__sq4Q1{color:var(--citedy-slate-300);font-style:italic}.index-module__cardActions__TNmjE{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:14px;border-top:1px solid rgba(226,232,240,.4)}.index-module__configBtn__EVtyI{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;color:var(--citedy-slate-600);font-size:13px;cursor:pointer;transition:all .2s;line-height:1;white-space:nowrap}.index-module__modalFooter__UmWj8{display:flex;justify-content:space-between;align-items:center}.index-module__modalFooterLeft__sySSN,.index-module__modalFooterRight__4d3xt{display:flex;align-items:center;gap:8px}.index-module__slotSection__2TMOV{padding:24px;background:linear-gradient(135deg,#f8fafccc,#fff9,#f9fafbcc);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:16px;border:1px solid rgba(226,232,240,.4);box-shadow:0 1px 3px #0000000a;transition:all .3s ease}.index-module__slotSection__2TMOV:hover{box-shadow:0 4px 16px #00000014;border-color:var(--citedy-slate-300)}.index-module__slotHeader__-RiFH{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid rgba(226,232,240,.4)}.index-module__slotTitle__-wUM7{font-size:18px;font-weight:600;color:var(--citedy-slate-900)}.index-module__slotCurrent__AkM8Q{font-size:13px;color:var(--citedy-green-500);font-family:SF Mono,Menlo,monospace;background:#22c55e14;padding:4px 12px;border-radius:9999px;border:1px solid rgba(34,197,94,.2)}.index-module__slotForm__CGh3M{display:flex;gap:20px;align-items:flex-end;flex-wrap:wrap}@media(max-width:768px){.index-module__slotForm__CGh3M{flex-direction:column;gap:16px;align-items:stretch}}.index-module__slotField__lASKW{flex:1;display:flex;flex-direction:column;gap:8px;min-width:200px}@media(max-width:768px){.index-module__slotField__lASKW{min-width:unset;width:100%}}.index-module__slotLabel__lVC3z{font-size:14px;color:var(--citedy-slate-600);font-weight:500;display:flex;align-items:center;gap:4px}.index-module__slotActions__UMgm1{display:flex;justify-content:flex-end;margin-top:24px;padding-top:20px;border-top:1px solid rgba(226,232,240,.4)}.index-module__sectionHeaderRow__4fOBq{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:0}.index-module__sectionHeaderRow__4fOBq .index-module__section__Vcquy{flex:1;margin-bottom:0}.index-module__addProviderBtn__uqYE3{flex-shrink:0;margin-top:4px}.index-module__modelList__SdsnK{max-height:360px;overflow-y:auto;border:1px solid rgba(226,232,240,.4);border-radius:8px;margin-top:8px}.index-module__modelListEmpty__W5vZC{padding:24px;text-align:center;color:var(--citedy-slate-400);font-size:13px}.index-module__modelListItem__KbvzA{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid rgba(226,232,240,.3);transition:background .15s}.index-module__modelListItem__KbvzA:last-child{border-bottom:none}.index-module__modelListItem__KbvzA:hover{background:var(--citedy-slate-50)}.index-module__modelListItemInfo__Mtp2n{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.index-module__modelListItemName__GglLP{font-size:14px;font-weight:500;color:var(--citedy-slate-900)}.index-module__modelListItemId__1iNr7{font-size:12px;color:var(--citedy-slate-400);font-family:SF Mono,Menlo,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.index-module__modelListItemActions__8KTj5{display:flex;align-items:center;gap:4px;flex-shrink:0;margin-left:12px}.index-module__openrouterRouting__0yKBd{display:flex;flex-direction:column;gap:8px}.index-module__openrouterRoutingHeader__uDGG-{margin-bottom:4px}.index-module__modelAddForm__Z2SM6{margin-top:12px;padding:16px;background:var(--citedy-slate-50);border-radius:8px;border:1px dashed var(--citedy-slate-300)}.index-module__page__cm4HX{padding:24px}.index-module__section__sRom7{margin-bottom:24px}.index-module__sectionTitle__0Oaym{margin-bottom:4px;font-size:24px;font-weight:700;color:var(--citedy-slate-900)}.index-module__sectionDesc__9091t{margin:0;color:var(--citedy-slate-500);font-size:14px}.index-module__centerState__oMrCX{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 24px}.index-module__stateText__n2ydg{font-size:14px;color:var(--citedy-slate-500)}.index-module__stateTextError__HYpnD{font-size:14px;color:var(--citedy-red-600);margin-bottom:4px}.index-module__tableCard__kOpcR{background:linear-gradient(135deg,#f8fafccc,#fff9,#f9fafbcc);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(226,232,240,.4);border-radius:16px;box-shadow:0 1px 3px #0000000a;overflow:hidden;transition:all .3s ease}.index-module__tableCard__kOpcR:hover{box-shadow:0 4px 16px #00000014;border-color:var(--citedy-slate-300)}.index-module__toolbar__zOZGT{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;background:var(--citedy-slate-50);border-bottom:1px solid rgba(226,232,240,.4);transition:background .2s ease-in-out}.index-module__toolbar__zOZGT:hover{background:var(--citedy-slate-100)}.index-module__toolbarLeft__laxj1{display:flex;align-items:center;gap:10px}.index-module__toolbarCount__nlzYW{font-size:13px;color:var(--citedy-slate-500);-webkit-user-select:none;user-select:none}.index-module__toolbarRight__4M--m{display:flex;align-items:center;gap:8px}.index-module__rowList__0JhOw{display:flex;flex-direction:column}.index-module__envRow__vTrnv{display:flex;align-items:center;gap:16px;padding:12px 24px;border-bottom:1px solid rgba(226,232,240,.3);transition:all .2s ease-in-out;flex-wrap:wrap}.index-module__envRow__vTrnv:last-child{border-bottom:none}.index-module__envRow__vTrnv:hover{background:var(--citedy-slate-50);transform:translate(2px)}.index-module__envRowSelected__VaIjO{background:#0f172a0a;border-left:3px solid var(--citedy-slate-900)}.index-module__envRowSelected__VaIjO:hover{background:#0f172a0f;transform:translate(2px)}.index-module__rowCheckbox__7c8KY{flex-shrink:0}.index-module__fieldsWrap__BDaoF{display:flex;flex:1;min-width:0;gap:16px}.index-module__inputGroup__G6-N2{display:flex;align-items:center;flex:1 1 0;min-width:180px;height:42px;border:1px solid var(--citedy-slate-200);border-radius:8px;background:#fff;overflow:hidden;transition:all .2s ease-in-out}.index-module__inputGroup__G6-N2:focus-within{border-color:var(--citedy-slate-900);box-shadow:0 0 0 2px #0f172a1a;transform:translateY(-1px)}.index-module__inputGroupError__3q90L{border-color:var(--citedy-red-600);animation:index-module__shake__DSyXM .3s ease-in-out}.index-module__inputGroupError__3q90L:focus-within{border-color:var(--citedy-red-600);box-shadow:0 0 0 2px #dc262626}@keyframes index-module__shake__DSyXM{0%,to{transform:translate(0)}25%{transform:translate(-2px)}75%{transform:translate(2px)}}.index-module__inputLabel__uRy5l{flex-shrink:0;padding:0 14px;font-size:14px;font-weight:500;color:var(--citedy-slate-600);white-space:nowrap;-webkit-user-select:none;user-select:none;line-height:42px;border-right:1px solid rgba(226,232,240,.4);background:var(--citedy-slate-50);min-width:60px;text-align:center;transition:all .2s ease-in-out}.index-module__inputGroup__G6-N2:focus-within .index-module__inputLabel__uRy5l{color:var(--citedy-slate-900);background:#0f172a0a}.index-module__inputField__8Bra9{flex:1;min-width:0;height:40px!important;border:none!important;box-shadow:none!important;outline:none!important;font-family:SF Mono,Menlo,Consolas,monospace;font-size:14px;background:transparent;padding-left:12px;transition:all .2s ease-in-out}.index-module__inputField__8Bra9::placeholder{color:var(--citedy-slate-300)}.index-module__inputField__8Bra9 .ant-input{height:40px!important;border:none!important;box-shadow:none!important;font-family:SF Mono,Menlo,Consolas,monospace;font-size:14px;padding-left:12px;transition:all .2s ease-in-out}.index-module__inputField__8Bra9 .ant-input::placeholder{color:var(--citedy-slate-300)}.index-module__rowActions__9j-Ex{display:flex;align-items:center;gap:6px;flex-shrink:0}.index-module__rowIconBtn__xPMhN{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:8px;background:transparent;cursor:pointer;font-size:16px;color:var(--citedy-slate-400);transition:all .2s ease-in-out}.index-module__rowIconBtn__xPMhN:hover{color:var(--citedy-slate-900);background:#0f172a0a;transform:translateY(-1px);box-shadow:0 2px 8px #0f172a1a}.index-module__rowIconBtnDanger__lNJ6Q:hover{color:var(--citedy-red-600);background:#dc26260f;transform:translateY(-1px);box-shadow:0 2px 8px #dc26261a}.index-module__rowError__Zl4ao{flex-basis:100%;font-size:12px;color:var(--citedy-red-600);padding-left:36px;margin-top:-2px}.index-module__addBar__kHyh6{display:flex;padding:16px 24px;border-top:1px solid rgba(226,232,240,.4);background:var(--citedy-slate-50);transition:background .2s ease-in-out}.index-module__addBar__kHyh6:hover{background:var(--citedy-slate-100)}.index-module__addBtn__5D2dP{display:inline-flex;align-items:center;gap:8px;padding:8px 20px;border:1px dashed var(--citedy-slate-300);border-radius:9999px;background:transparent;cursor:pointer;font-size:14px;color:var(--citedy-slate-500);transition:all .2s ease-in-out}.index-module__addBtn__5D2dP:hover{color:var(--citedy-slate-900);border-color:var(--citedy-slate-900);background:#0f172a0a;transform:translateY(-1px);box-shadow:0 2px 8px #0f172a1a}.index-module__addBtn__5D2dP svg{font-size:16px}.index-module__emptyState__kNT9f{display:flex;flex-direction:column;align-items:center;gap:8px;padding:48px 24px;color:var(--citedy-slate-400);font-size:14px}.index-module__emptyIcon__x1aa9{font-size:32px;opacity:.6}.index-module__refSection__w0olb{margin-top:32px}.index-module__refTitle__DG64P{font-size:18px;font-weight:600;margin-bottom:8px;color:var(--citedy-slate-900)}.index-module__refDesc__6u2vT{color:var(--citedy-slate-500);font-size:13px;margin-bottom:16px}.index-module__refTable__9lfLJ{width:100%;border-collapse:collapse;background:#fff9;border:1px solid rgba(226,232,240,.4);border-radius:12px;overflow:hidden}.index-module__refTable__9lfLJ th{background:var(--citedy-slate-50);padding:10px 16px;text-align:left;font-size:13px;font-weight:600;color:var(--citedy-slate-600);border-bottom:1px solid rgba(226,232,240,.4)}.index-module__refTable__9lfLJ td{padding:10px 16px;font-size:13px;border-bottom:1px solid rgba(226,232,240,.3);font-family:SF Mono,Menlo,Consolas,monospace}.index-module__refTable__9lfLJ tr:last-child td{border-bottom:none}.index-module__refTable__9lfLJ tr:hover td{background:var(--citedy-slate-50)}.index-module__refBadge__TXFW5{display:inline-block;padding:2px 8px;border-radius:9999px;font-size:11px;font-weight:500;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.index-module__refBadgeOk__rAUv4{background:#22c55e14;color:var(--citedy-green-500)}.index-module__refBadgeMissing__m05ax{background:#f59e0b14;color:var(--citedy-amber-500)}.index-module__bulkSection__iKp6P{margin-top:24px}.index-module__bulkTextarea__XL28a{width:100%;min-height:120px;padding:12px 16px;font-family:SF Mono,Menlo,Consolas,monospace;font-size:13px;border:1px solid var(--citedy-slate-200);border-radius:8px;resize:vertical;margin-bottom:12px}.index-module__bulkTextarea__XL28a:focus{outline:none;border-color:var(--citedy-slate-900);box-shadow:0 0 0 2px #0f172a1a}.index-module__bulkTextarea__XL28a::placeholder{color:var(--citedy-slate-300)}.index-module__bulkActions__eQmW-{display:flex;gap:8px;align-items:center}.index-module__bulkCount__nyypn{font-size:13px;color:var(--citedy-slate-500);margin-left:8px}.index-module__page__xlnCl{padding:24px}.index-module__header__Xc1cI{margin-bottom:20px}.index-module__title__BeEMd{margin:0 0 4px;font-size:24px;font-weight:700;color:var(--citedy-slate-900)}.index-module__description__-yMDw{margin:0;font-size:14px;color:var(--citedy-slate-500)}.index-module__statusBanner__ic0LA{border-radius:16px!important;border:1px solid rgba(251,191,36,.16)!important;background:linear-gradient(180deg,#fffcf5eb,#fff7edfa)!important;box-shadow:0 12px 30px #0f172a0a}.index-module__statusBanner__ic0LA .ant-alert-content,.index-module__statusBanner__ic0LA .ant-alert-message{width:100%}.index-module__statusBannerMessage__y86S-{display:flex;align-items:center;justify-content:space-between;gap:16px}.index-module__statusBannerSummary__oTlaD{display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-width:0}.index-module__statusBannerLabel__Y1aw4{color:var(--citedy-slate-700)}.index-module__statusBannerUptime__P3iA7{color:#64748b}.index-module__statusBannerActions__KCezr{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.index-module__statusActionButton__Ay5L2{white-space:nowrap}.index-module__statusActionText__i8cGh{display:inline}.index-module__subsystemGrid__giB7A{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:24px}.index-module__subsystemCard__OOXy6{min-width:0;border-radius:20px!important}.index-module__subsystemCard__OOXy6 .ant-card-body{padding:20px 24px!important}.index-module__subsystemCardHeader__eG9-i{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.index-module__subsystemStatusTag__1XTwm{margin:0!important;display:inline-flex!important;align-items:center!important;gap:4px!important;flex-shrink:0}.index-module__subsystemDetail__xfZHz{color:#475569;font-size:13px;line-height:1.6}.index-module__subsystemDetailItem__e2XSf{display:inline-block;margin-right:12px}.index-module__subsystemCount__jWATv{color:#64748b;font-size:12px;margin-top:6px}.index-module__errorTable__0HKOM .ant-table-placeholder>td{padding:36px 16px!important;border-bottom:0!important;background:transparent!important}.index-module__tableEmptyText__VSpfc{color:var(--citedy-slate-500);font-size:14px;font-weight:400}@media(max-width:768px){.index-module__page__xlnCl{padding:16px}.index-module__statusBannerMessage__y86S-{flex-direction:column;align-items:flex-start}.index-module__statusBannerSummary__oTlaD{flex-direction:column;align-items:flex-start;gap:6px}.index-module__statusBannerActions__KCezr{width:100%;justify-content:flex-start}.index-module__subsystemGrid__giB7A{grid-template-columns:1fr}.index-module__subsystemCardHeader__eG9-i{align-items:center}.index-module__statusActionText__i8cGh{display:none}}.index-module__personasPage__1381a{padding:24px}.index-module__header__ih7nC{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.index-module__headerInfo__H4wg-{display:flex;flex-direction:column}.index-module__headerActions__VN34R{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.index-module__headerActionItem__n41Xr{display:flex}.index-module__headerActionButton__uxs5O{justify-content:center}.index-module__title__XL0El{margin-bottom:4px;font-size:24px;font-weight:700;color:var(--citedy-slate-900)}.index-module__description__MzaRo{margin:0;color:var(--citedy-slate-500);font-size:14px}.index-module__introCard__j0dQL{margin-bottom:20px;padding:20px 24px;border-radius:20px;border:1px solid rgba(226,232,240,.5);background:linear-gradient(135deg,#f8fafce0,#ffffffbd,#f9fafbeb);box-shadow:0 12px 32px #0f172a0f}.index-module__introEyebrow__dcwqD{display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border-radius:9999px;background:#6366f114;color:#4f46e5;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.index-module__introTitle__-pn6m{margin:14px 0 6px;font-size:22px;line-height:1.15;font-weight:700;color:var(--citedy-slate-900)}.index-module__introText__ecdKw{margin:0;max-width:760px;color:var(--citedy-slate-600);font-size:15px;line-height:1.7}.index-module__introHint__pQYD1{margin:10px 0 0;color:var(--citedy-slate-500);font-size:13px;line-height:1.6}.index-module__loading__DMqoO{text-align:center;padding:60px}.index-module__loadingText__qpVvs{color:var(--citedy-slate-500)}.index-module__emptyState__LwpMY{text-align:center;padding:80px 0;color:var(--citedy-slate-500);font-size:14px}.index-module__personasGrid__NrjxJ{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:24px}.index-module__personaCard__BvLFW{border-radius:16px;transition:all .3s ease;cursor:pointer;position:relative;overflow:hidden}.index-module__personaCard__BvLFW.index-module__hover__9Wy0g{transform:translateY(-2px);border:1px solid var(--citedy-slate-300)!important;box-shadow:0 12px 32px #00000014!important}.index-module__personaCard__BvLFW.index-module__normal__RdF7h{border:1px solid rgba(226,232,240,.4)!important;box-shadow:0 1px 3px #0000000a!important}.index-module__cardBody__IafsY{margin-bottom:12px}.index-module__cardHeader__p73nY{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.index-module__personaTitle__28icm{margin:0;font-size:14px;font-weight:600;color:var(--citedy-slate-600)}.index-module__soulPreview__gZxoK{margin-bottom:12px;padding:8px;background-color:var(--citedy-slate-50);border-radius:6px;overflow:hidden}.index-module__soulPreview__gZxoK code{font-size:12px;color:var(--citedy-slate-600);white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.index-module__badges__L0l0W{display:flex;flex-wrap:wrap;gap:4px}.index-module__cardFooter__unZE0{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding-top:12px;border-top:1px solid rgba(226,232,240,.4)}.index-module__actionButton__1qS2L{padding:0}.index-module__deleteButton__VG9-N{padding:4px;display:flex;align-items:center;justify-content:center}.index-module__deleteButton__VG9-N:hover{background-color:var(--citedy-red-600)!important;color:#fff!important;border-color:var(--citedy-red-600)!important}@media(max-width:768px){.index-module__personasPage__1381a{padding:16px}.index-module__header__ih7nC{flex-direction:column;align-items:stretch;gap:16px}.index-module__headerActions__VN34R{flex-direction:column;align-items:stretch;width:100%}.index-module__headerActionItem__n41Xr{width:100%}.index-module__headerActionItem__n41Xr>*{width:100%}.index-module__headerActionButton__uxs5O{width:100%}.index-module__personasGrid__NrjxJ{grid-template-columns:1fr;gap:16px}}.index-module__page__EE9pL{padding:24px}.index-module__title__IhGV4{margin-bottom:4px;font-size:24px;font-weight:700;color:var(--citedy-slate-900)}.index-module__description__kcq12{margin:0;color:var(--citedy-slate-500);font-size:14px}.index-module__emptyStateCard__53ZFX{margin-top:20px;max-width:720px;padding:28px;border-radius:20px;border:1px solid rgba(226,232,240,.5);background:linear-gradient(135deg,#f8fafce0,#ffffffbd,#f9fafbeb);box-shadow:0 12px 32px #0f172a0f}.index-module__emptyEyebrow__F0r7Z{display:inline-flex;align-items:center;min-height:28px;padding:0 12px;border-radius:9999px;background:#6366f114;color:#4f46e5;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.index-module__emptyTitle__O8krT{margin:16px 0 8px;font-size:28px;line-height:1.1;font-weight:700;color:var(--citedy-slate-900)}.index-module__emptyText__GicB-{margin:0;max-width:560px;color:var(--citedy-slate-600);font-size:15px;line-height:1.7}.index-module__emptyActions__NGWko{margin-top:20px;display:flex;gap:12px}.index-module__emptyHint__wiJb0{margin:18px 0 0;color:var(--citedy-slate-500);font-size:13px;line-height:1.6}.index-module__grid__VheSi{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:20px;margin-top:20px}.index-module__card__an1d-{padding:20px;border-radius:16px;border:1px solid rgba(226,232,240,.4);background:linear-gradient(135deg,#f8fafccc,#fff9,#f9fafbcc);transition:all .2s}.index-module__card__an1d-:hover{transform:translateY(-2px);box-shadow:0 12px 32px #00000014}.index-module__cardHeader__QWRBf{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.index-module__personaName__wLmKH{font-size:16px;font-weight:600;color:var(--citedy-slate-900)}.index-module__personaRole__lzjAb{font-size:13px;color:var(--citedy-slate-500);margin-top:2px}.index-module__statusBadge__x6i2-{display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:2px 8px;border-radius:9999px}.index-module__statsRow__8IgH8{display:flex;gap:16px;margin-top:12px;font-size:13px;color:var(--citedy-slate-600)}.index-module__cronList__3uKrI{margin-top:12px;font-size:12px;color:var(--citedy-slate-600)}.index-module__cronItem__uE1BD{display:flex;align-items:center;gap:6px;margin-top:4px}.index-module__actions__7LsDU{margin-top:16px;display:flex;gap:8px}.index-module__welcomeContainer__-q1XA{display:flex;justify-content:center;align-items:flex-start;min-height:100vh;background:linear-gradient(135deg,#f8fafc,#eff6ff66,#faf5ff4d);padding:48px 24px 24px;position:relative;overflow-x:hidden;overflow-y:auto}.index-module__welcomeContainer__-q1XA:before{content:"";position:absolute;width:400px;height:400px;border-radius:50%;background:#3b82f614;filter:blur(64px);top:-100px;right:-100px;pointer-events:none}.index-module__welcomeContainer__-q1XA:after{content:"";position:absolute;width:350px;height:350px;border-radius:50%;background:#8b5cf60f;filter:blur(64px);bottom:-80px;left:-80px;pointer-events:none}.index-module__welcomeContent__-A1wh{max-width:600px;width:100%;position:relative;z-index:1}.index-module__heroSection__1GM5U{text-align:center;margin-bottom:32px}.index-module__welcomeTitle__mTPCk{font-size:16px;color:var(--citedy-slate-900);margin-bottom:4px!important}.index-module__subtitle__Rm-vw{color:var(--citedy-slate-500);font-size:16px;line-height:1.6}.index-module__steps__x7noJ{margin-bottom:32px}.index-module__steps__x7noJ .adclaw-steps-item-icon{display:flex!important;align-items:center!important;justify-content:center!important}.index-module__stepContent__A29jM{margin-bottom:24px}.index-module__stepCard__7pl4x{border-radius:16px;box-shadow:0 1px 3px #0000000a}.index-module__skipSection__-t0WP{text-align:center}html,body{height:100%;overflow:hidden;margin:0;padding:0}#root{height:100%;overflow:hidden;background:linear-gradient(135deg,#f8fafc,#eff6ff4d,#faf5ff33)}.ant-layout{min-height:100vh;max-height:100vh;overflow:hidden}.ant-layout-content{overflow:hidden}.page-container{height:100%;overflow:hidden;display:flex;flex-direction:column}.page-header{flex:0 0 auto}.page-content{flex:1 1 auto;overflow:auto;padding:0 24px 24px}.page-content-chat{overflow:hidden;padding:0}.page-content-chat .adclaw-chat-anywhere-sessions-header-collapse{display:none!important}.page-content-chat .adclaw-chat-anywhere-layout{background:transparent!important}.page-content-chat .adclaw-chat-anywhere-layout-left{flex:0 0 320px!important;width:320px!important;max-width:320px!important;background:transparent!important;border-right:none;-webkit-backdrop-filter:none;backdrop-filter:none}.page-content-chat .adclaw-chat-anywhere-layout-right,.page-content-chat .adclaw-chat-anywhere-layout-right-header,.page-content-chat .adclaw-chat-anywhere-message-list,.page-content-chat .adclaw-chat-anywhere-message-list-welcome,.page-content-chat .adclaw-chat-anywhere-message-list>div{background:transparent!important}.page-content-chat .adclaw-operate-card{display:none!important}.page-content-chat .adclaw-chat-anywhere-welcome-default-prompt{background-color:#ffffffd6!important;border:1px solid rgba(226,232,240,.72);box-shadow:0 10px 24px #0f172a0d}.page-content-chat .adclaw-chat-anywhere-sessions-header{display:none!important}.page-content-chat .adclaw-chat-anywhere-sessions-content{margin:12px 16px 16px;padding:12px 0 10px;min-height:0;border:1px solid rgba(226,232,240,.78);border-radius:12px;background:#ffffff80;box-shadow:0 10px 28px #0f172a0a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);overflow:hidden}.page-content-chat .adclaw-chat-anywhere-sessions-adder{padding:0 12px 12px}.page-content-chat .adclaw-chat-anywhere-sessions-adder button{min-height:44px;border-radius:999px;box-shadow:none!important}.page-content-chat .adclaw-chat-anywhere-sessions-list{padding:2px 10px 8px}.page-content-chat .adclaw-conversations-item{border:1px solid transparent;border-radius:10px}.page-content-chat .adclaw-conversations-content{min-width:0;gap:8px;padding-right:10px}.page-content-chat .adclaw-conversations-label{min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent)}.page-content-chat .adclaw-conversations-menu-icon{flex:0 0 auto;margin-left:4px}.page-content-chat .adclaw-conversations-item:hover{background-color:#ffffffb8!important}.page-content-chat .adclaw-conversations-item-active{background-color:#ffffffe6!important;border-color:#e2e8f0d9!important;box-shadow:0 6px 18px #0f172a0d}.page-content-chat .adclaw-sender{border:1px solid rgba(191,200,219,.56)!important;border-radius:22px!important;background:linear-gradient(180deg,#ffffffd6,#f8fafcc7)!important;box-shadow:0 18px 40px #0f172a0d,inset 0 1px #ffffffb8!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.page-content-chat .adclaw-sender:after{border-width:1px!important;border-color:#e2e8f08c!important}.page-content-chat .adclaw-sender:focus-within{border-color:#b4c1de94!important;box-shadow:0 18px 42px #0f172a0f,0 0 0 3px #ffffff94,0 0 0 6px #e2e8f061!important}.page-content-chat .adclaw-sender:focus-within:after{border-width:1px!important;border-color:#cbd5e1c7!important}.page-content-chat .adclaw-sender-content{padding:12px 12px 10px!important}.page-content-chat .adclaw-sender-input{margin:0!important;padding:0!important}.page-content-chat .adclaw-sender .ant-input,.page-content-chat .adclaw-sender textarea,.page-content-chat .adclaw-sender [class*=ant-input]{min-height:58px!important;border:1px solid rgba(226,232,240,.92)!important;border-radius:18px!important;background:#ffffffeb!important;box-shadow:inset 0 1px #fffffff2,0 8px 18px #0f172a08!important;padding:16px 18px!important;line-height:1.5!important}.page-content-chat .adclaw-sender .ant-input:focus,.page-content-chat .adclaw-sender textarea:focus,.page-content-chat .adclaw-sender .ant-input-focused,.page-content-chat .adclaw-sender [class*=ant-input]:focus{border-color:#cbd5e1eb!important;box-shadow:inset 0 1px #fffffff2,0 0 0 4px #f1f5f9e6!important}.page-content-chat .adclaw-sender-actions-list-length{color:#94a3b8!important}.table-container{height:100%;overflow:hidden}.table-wrapper{height:100%;overflow:auto}.ant-card-body{height:100%;padding:0}[class*=chat-anywhere-welcome-default] [class*=-avatar],[class*=message-list-welcome] [class*=welcome-default] [class*=-avatar]{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;overflow:visible!important}[class*=chat-anywhere-welcome-default] [class*=-avatar]>img,[class*=message-list-welcome] [class*=-avatar]>img{object-fit:contain!important;object-position:center}.ant-form-item-required:before{color:#dc2626!important}span.spark-required-mark,span[class*=spark-required-mark]{color:#dc2626!important}:root{--citedy-slate-50: #f8fafc;--citedy-slate-100: #f1f5f9;--citedy-slate-200: #e2e8f0;--citedy-slate-300: #cbd5e1;--citedy-slate-400: #94a3b8;--citedy-slate-500: #64748b;--citedy-slate-600: #475569;--citedy-slate-700: #334155;--citedy-slate-800: #1e293b;--citedy-slate-900: #0f172a;--citedy-slate-950: #020617;--citedy-green-500: #22c55e;--citedy-amber-500: #f59e0b;--citedy-red-600: #dc2626;--citedy-emerald-500: #10b981;--citedy-blue-500: #3b82f6;--citedy-cyan-500: #06b6d4;--citedy-space-xs: 8px;--citedy-space-sm: 12px;--citedy-space-md: 16px;--citedy-space-lg: 20px;--citedy-space-xl: 24px;--citedy-card-bg: linear-gradient(135deg, rgba(248, 250, 252, .8), rgba(255, 255, 255, .6), rgba(249, 250, 251, .8));--citedy-card-border: rgba(226, 232, 240, .4);--citedy-card-shadow: 0 1px 3px rgba(0, 0, 0, .04);--citedy-card-hover-shadow: 0 12px 32px rgba(0, 0, 0, .08);--citedy-glass-bg: #ffffff;--citedy-glass-blur: blur(0px)}.ant-card,.adclaw-card,[class*=ant-card]{background:var(--citedy-card-bg)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;border:1px solid var(--citedy-card-border)!important;border-radius:16px!important}.ant-btn,.adclaw-btn,[class*=ant-btn],[class*=adclaw-btn]{border-radius:9999px!important}.ant-btn-icon-only,.adclaw-btn-icon-only,[class*=btn-icon-only]{border-radius:50%!important}.ant-btn-primary,.adclaw-btn-primary,[class*=ant-btn-primary],[class*=adclaw-btn-primary]{background-color:var(--citedy-slate-900)!important;border-color:var(--citedy-slate-900)!important;color:#fff!important}.ant-btn-primary:hover,.adclaw-btn-primary:hover,[class*=ant-btn-primary]:hover,[class*=adclaw-btn-primary]:hover,.ant-btn-primary:focus,.adclaw-btn-primary:focus,[class*=ant-btn-primary]:focus,[class*=adclaw-btn-primary]:focus{background-color:var(--citedy-slate-800)!important;border-color:var(--citedy-slate-800)!important}.adclaw-layout-header,[class*=adclaw-layout-header],.ant-layout-header,[class*=ant-layout-header]{background:var(--citedy-glass-bg)!important;backdrop-filter:var(--citedy-glass-blur)!important;-webkit-backdrop-filter:var(--citedy-glass-blur)!important;border-bottom:1px solid rgba(226,232,240,.6)!important;position:sticky!important;top:0!important;z-index:50!important}.ant-modal-content,.adclaw-modal-content,[class*=ant-modal-content],[class*=adclaw-modal-content]{border-radius:24px!important;background:#fff!important;backdrop-filter:var(--citedy-glass-blur)!important;-webkit-backdrop-filter:var(--citedy-glass-blur)!important;border:1px solid var(--citedy-card-border)!important;box-shadow:0 25px 50px -12px #00000026!important}.ant-modal-header,.adclaw-modal-header,[class*=ant-modal-header],[class*=adclaw-modal-header]{background:transparent!important;border-bottom:1px solid rgba(226,232,240,.4)!important;border-radius:24px 24px 0 0!important}.ant-drawer-content,.adclaw-drawer-content,[class*=ant-drawer-content],[class*=adclaw-drawer-content]{background:var(--citedy-glass-bg)!important;backdrop-filter:var(--citedy-glass-blur)!important;-webkit-backdrop-filter:var(--citedy-glass-blur)!important}.ant-drawer-header,.adclaw-drawer-header,[class*=ant-drawer-header],[class*=adclaw-drawer-header]{background:transparent!important;border-bottom:1px solid rgba(226,232,240,.4)!important}.ant-popover-inner,.adclaw-popover-inner,[class*=popover-inner],.ant-dropdown,.adclaw-dropdown,[class*=dropdown]{background:#fff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.ant-tooltip-inner,[class*=tooltip-inner]{color:#fff!important;background:var(--citedy-slate-900)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:10px!important;box-shadow:0 12px 30px #0f172a2e!important}.ant-tooltip .ant-tooltip-arrow:before,[class*=tooltip] [class*=tooltip-arrow]:before{background:var(--citedy-slate-900)!important}.adclaw-menu-submenu-popup.adclaw-menu-submenu,.adclaw-menu.adclaw-menu-submenu-popup,.ant-menu-submenu-popup,[class*=menu-submenu-popup]{background:linear-gradient(180deg,#fffffff5,#f8fafcf0)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 18px 40px #0f172a14!important;border:1px solid rgba(226,232,240,.9)!important;z-index:1050!important;border-radius:16px!important;overflow:hidden!important}.adclaw-select-dropdown,[class*=select-dropdown]{overflow:auto!important;max-height:none!important}.adclaw-select-dropdown .rc-virtual-list,[class*=select-dropdown] .rc-virtual-list{overflow:auto!important}.adclaw-menu-submenu-popup>ul,.adclaw-menu-submenu-popup .adclaw-menu,.adclaw-menu-submenu-popup .adclaw-menu-sub,[class*=menu-submenu-popup]>ul,[class*=menu-submenu-popup] [class*=menu-sub]{background:transparent!important;padding:8px!important}.adclaw-menu-submenu-popup .adclaw-menu-item,[class*=menu-submenu-popup] [class*=menu-item],.adclaw-menu-submenu-popup .adclaw-menu-submenu-title,[class*=menu-submenu-popup] [class*=menu-submenu-title]{margin:0!important;border-radius:12px!important;min-height:40px!important;display:flex!important;align-items:center!important}.adclaw-layout-sider-collapsed .adclaw-menu-item,.adclaw-layout-sider-collapsed .adclaw-menu-submenu-title{width:44px!important;height:44px!important;padding:0!important;margin:4px auto!important;line-height:1!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important}.ant-tag,.adclaw-tag,[class*=ant-tag],[class*=adclaw-tag]{border-radius:9999px!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}.ant-menu-item,.adclaw-menu-item,[class*=ant-menu-item],[class*=adclaw-menu-item]{border-radius:12px!important;margin:2px 8px!important;transition:all .2s ease!important}.ant-menu-item:hover,.adclaw-menu-item:hover,[class*=ant-menu-item]:hover,[class*=adclaw-menu-item]:hover{background-color:#f1f5f966!important;color:var(--citedy-slate-700)!important}.ant-menu-submenu-title,.adclaw-menu-submenu-title,[class*=ant-menu-submenu-title],[class*=adclaw-menu-submenu-title]{border-radius:12px!important;margin:2px 8px!important}.ant-menu-item-selected,.adclaw-menu-item-selected,[class*=ant-menu-item-selected],[class*=adclaw-menu-item-selected]{background:linear-gradient(to right,#3b82f614,#a855f714)!important;color:var(--citedy-slate-700)!important}.ant-menu-item-selected:after,.adclaw-menu-item-selected:after,[class*=ant-menu-item-selected]:after,[class*=adclaw-menu-item-selected]:after{display:none!important}.ant-menu-item-selected a,.adclaw-menu-item-selected a,[class*=ant-menu-item-selected] a,[class*=adclaw-menu-item-selected] a,.ant-menu-item-selected span,.adclaw-menu-item-selected span,[class*=ant-menu-item-selected] span,[class*=adclaw-menu-item-selected] span,.ant-menu-item-selected .anticon,.adclaw-menu-item-selected .anticon,[class*=ant-menu-item-selected] .anticon,[class*=adclaw-menu-item-selected] .anticon,.ant-menu-item-selected [class*=icon],.adclaw-menu-item-selected [class*=icon],[class*=ant-menu-item-selected] [class*=icon],[class*=adclaw-menu-item-selected] [class*=icon]{color:var(--citedy-slate-700)!important}.ant-menu-item:after,.adclaw-menu-item:after,[class*=ant-menu-item]:after,[class*=adclaw-menu-item]:after{display:none!important}.ant-layout-sider-collapsed .ant-menu-item,.ant-layout-sider-collapsed .ant-menu-submenu-title{width:44px!important;height:44px!important;padding:0!important;margin:4px auto!important;line-height:1!important;text-align:center!important;display:flex!important;align-items:center!important;justify-content:center!important}.ant-layout-sider-collapsed,.adclaw-layout-sider-collapsed,[class*=layout-sider-collapsed],.ant-layout-sider-collapsed .ant-layout-sider-children,.adclaw-layout-sider-collapsed .adclaw-layout-sider-children,.ant-layout-sider-collapsed [class*=layout-sider-children],.adclaw-layout-sider-collapsed [class*=layout-sider-children]{overflow:hidden!important}.ant-layout-sider-collapsed .ant-menu-title-content,.adclaw-layout-sider-collapsed .adclaw-menu-title-content,.ant-layout-sider-collapsed [class*=menu-title-content],.adclaw-layout-sider-collapsed [class*=menu-title-content],.ant-layout-sider-collapsed .ant-menu-submenu-arrow,.adclaw-layout-sider-collapsed .adclaw-menu-submenu-arrow,.ant-layout-sider-collapsed [class*=menu-submenu-arrow],.adclaw-layout-sider-collapsed [class*=menu-submenu-arrow]{display:none!important}.ant-layout-sider-collapsed .ant-menu-item .anticon,.ant-layout-sider-collapsed .ant-menu-submenu-title .anticon,.ant-layout-sider-collapsed .ant-menu-item [class*=icon],.ant-layout-sider-collapsed .ant-menu-submenu-title [class*=icon],.adclaw-layout-sider-collapsed .adclaw-menu-item [class*=icon],.adclaw-layout-sider-collapsed .adclaw-menu-submenu-title [class*=icon],.ant-layout-sider-collapsed .ant-menu-item svg,.ant-layout-sider-collapsed .ant-menu-submenu-title svg,.adclaw-layout-sider-collapsed .adclaw-menu-item svg,.adclaw-layout-sider-collapsed .adclaw-menu-submenu-title svg{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important;vertical-align:middle!important}.ant-layout-sider,.adclaw-layout-sider,[class*=ant-layout-sider],[class*=adclaw-layout-sider]{background:linear-gradient(to bottom,#fffffff2,#ffffffe6,#f8fafcf2)!important;backdrop-filter:blur(24px)!important;-webkit-backdrop-filter:blur(24px)!important;box-shadow:0 8px 32px #0000000f!important;border-right:none!important;position:relative!important;scrollbar-width:none!important}.ant-layout-sider::-webkit-scrollbar,.adclaw-layout-sider::-webkit-scrollbar,[class*=ant-layout-sider]::-webkit-scrollbar,[class*=adclaw-layout-sider]::-webkit-scrollbar{width:0!important;height:0!important}.ant-layout-sider:before,.adclaw-layout-sider:before,[class*=ant-layout-sider]:before,[class*=adclaw-layout-sider]:before{content:""!important;position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;background:linear-gradient(to bottom,rgba(239,246,255,.3),transparent,rgba(250,245,255,.2))!important;pointer-events:none!important;z-index:0!important}.ant-layout-sider>*,.adclaw-layout-sider>*,[class*=ant-layout-sider]>*,[class*=adclaw-layout-sider]>*{position:relative!important;z-index:1!important}.ant-layout-sider-children,.adclaw-layout-sider-children,[class*=layout-sider-children]{overflow:hidden!important;background:transparent!important}.ant-menu,.adclaw-menu,[class*=ant-menu]{background:transparent!important}.ant-menu-inline,.adclaw-menu-inline,[class*=ant-menu-inline]{border-inline-end:none!important}.ant-menu-sub.ant-menu-inline,.adclaw-menu-sub.adclaw-menu-inline,.rc-menu-sub.rc-menu-inline,.ant-menu-inline .ant-menu-sub,.adclaw-menu-inline .adclaw-menu-sub,.rc-menu-inline .rc-menu-sub,[class*=ant-menu-inline] [class*=ant-menu-sub]{background:transparent!important;box-shadow:none!important;border:0!important;margin-top:0!important;padding-top:0!important;padding-bottom:0!important}.ant-menu-inline .ant-menu-submenu-open>.ant-menu-submenu-title,.adclaw-menu-inline .adclaw-menu-submenu-open>.adclaw-menu-submenu-title,.rc-menu-inline .rc-menu-submenu-open>.rc-menu-submenu-title,[class*=ant-menu-inline] [class*=ant-menu-submenu-open]>[class*=ant-menu-submenu-title]{margin-bottom:0!important}.ant-menu-sub.ant-menu-inline>.ant-menu-item,.ant-menu-sub.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title,.adclaw-menu-sub.adclaw-menu-inline>.adclaw-menu-item,.adclaw-menu-sub.adclaw-menu-inline>.adclaw-menu-submenu>.adclaw-menu-submenu-title,.rc-menu-sub.rc-menu-inline>.rc-menu-item,.rc-menu-sub.rc-menu-inline>.rc-menu-submenu>.rc-menu-submenu-title,[class*=ant-menu-sub][class*=ant-menu-inline]>[class*=ant-menu-item],[class*=ant-menu-sub][class*=ant-menu-inline]>[class*=ant-menu-submenu]>[class*=ant-menu-submenu-title]{margin-top:0!important;margin-bottom:0!important}.ant-menu-item-group-title,[class*=ant-menu-item-group-title]{font-size:11px!important;font-weight:600!important;color:var(--citedy-slate-400)!important;text-transform:uppercase!important;letter-spacing:.05em!important}.page-header h1,.page-header h2,[class*=Title]{font-weight:700}.ant-table,[class*=ant-table]{background:transparent!important}.ant-table-thead>tr>th,[class*=ant-table-thead]>tr>th{background:var(--citedy-slate-50)!important;border-bottom:1px solid var(--citedy-slate-200)!important;color:var(--citedy-slate-600)!important;font-weight:600!important;font-size:13px!important}.ant-table-tbody>tr>td,[class*=ant-table-tbody]>tr>td{border-bottom:1px solid rgba(226,232,240,.4)!important}.ant-table-tbody>tr:hover>td,[class*=ant-table-tbody]>tr:hover>td{background:var(--citedy-slate-50)!important}.ant-input:focus,.ant-input-focused,.adclaw-input:focus,[class*=ant-input]:focus{border-color:var(--citedy-slate-900)!important;box-shadow:0 0 0 2px #0f172a1a!important}.ant-select-focused .ant-select-selector,[class*=ant-select-focused] [class*=ant-select-selector]{border-color:var(--citedy-slate-900)!important;box-shadow:0 0 0 2px #0f172a1a!important}.ant-checkbox-checked .ant-checkbox-inner,[class*=ant-checkbox-checked] [class*=ant-checkbox-inner]{background-color:var(--citedy-slate-900)!important;border-color:var(--citedy-slate-900)!important}.ant-switch-checked,[class*=ant-switch-checked]{background-color:var(--citedy-slate-900)!important}.citedy-orb{position:absolute;border-radius:50%;filter:blur(64px);pointer-events:none;z-index:0}.citedy-orb-blue{width:400px;height:400px;background:#3b82f614;top:-100px;right:-100px}.citedy-orb-purple{width:350px;height:350px;background:#8b5cf60f;bottom:-80px;left:-80px}.citedy-orb-cyan{width:300px;height:300px;background:#06b6d40d;top:50%;left:50%;transform:translate(-50%,-50%)}.citedy-card-decor{position:absolute;bottom:-16px;right:-16px;width:128px;height:128px;opacity:.03;pointer-events:none;z-index:0}.citedy-card-hover{transition:all .3s ease!important}.citedy-card-hover:hover{transform:translateY(-2px);box-shadow:var(--citedy-card-hover-shadow)!important}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--citedy-slate-300);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--citedy-slate-400)}.citedy-gradient-text{background:linear-gradient(to right,#3b82f6,#06b6d4);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.citedy-page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--citedy-space-md)}.citedy-page-title{font-size:24px;font-weight:700;margin-bottom:4px;color:var(--citedy-slate-900)}.citedy-page-description{margin:0;color:var(--citedy-slate-500);font-size:14px}.citedy-content-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:var(--citedy-space-lg)}.citedy-promo-card{margin-bottom:var(--citedy-space-lg);border-radius:16px!important;overflow:hidden}.citedy-promo-card.configured{background:linear-gradient(135deg,#f0fdf4,#ecfdf5)!important;border:1px solid #bbf7d0!important}.citedy-promo-card.unconfigured{background:linear-gradient(180deg,#fffcf5eb,#fff7edfa)!important;border:1px solid rgba(251,191,36,.16)!important;box-shadow:0 12px 30px #0f172a0a!important}.ant-drawer-footer,[class*=ant-drawer-footer]{border-top:1px solid rgba(226,232,240,.4)!important;padding:12px 24px!important}.citedy-cron-tooltip-sub{font-size:11px;opacity:.8;margin-top:4px} diff --git a/src/adclaw/console/assets/index-C-alNCkd.js b/src/adclaw/console/assets/index-CnXIpKtg.js similarity index 66% rename from src/adclaw/console/assets/index-C-alNCkd.js rename to src/adclaw/console/assets/index-CnXIpKtg.js index cbd7c35..695a2aa 100644 --- a/src/adclaw/console/assets/index-C-alNCkd.js +++ b/src/adclaw/console/assets/index-CnXIpKtg.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-Dgjgnu5A.js","assets/graph-D-pGiHx5.js","assets/_baseUniq-mI0_nzhz.js","assets/layout-Ceh3TcTz.js","assets/_basePickBy-D8ru0AWw.js","assets/clone-CpRDnie0.js","assets/cose-bilkent-S5V4N54A-BWT2Jt_z.js","assets/cytoscape.esm-BQaXIfA_.js","assets/c4Diagram-YG6GDRKO-DE1-HN-J.js","assets/chunk-TZMSLE5B-C-awqBe9.js","assets/flowDiagram-NV44I4VS-DWaZuKmZ.js","assets/chunk-FMBD7UC4-C_3apHrX.js","assets/chunk-55IACEB6-HWQqZTFV.js","assets/chunk-QN33PNHL-Bfn-g6m4.js","assets/channel-BkfSU_FA.js","assets/erDiagram-Q2GNP2WA-Bf7_08s1.js","assets/gitGraphDiagram-V2S2FVAM-Da1Rodr0.js","assets/chunk-4BX2VUAB-CalenPtr.js","assets/chunk-QZHKN3VN-DlUXLqBe.js","assets/treemap-GDKQZRPO-CEi_XKuI.js","assets/ganttDiagram-JELNMOA3-B33mOOCE.js","assets/linear-6bmKclen.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-HS3SLOUP-Bnu2SiEb.js","assets/pieDiagram-ADFJNKIX-u0d3VpfA.js","assets/arc-BwOY2Xs1.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-AYHSOK5B-CGtue8c6.js","assets/xychartDiagram-PRI3JC2R-D7zfNghn.js","assets/requirementDiagram-UZGBJVZJ-WmeTNjrk.js","assets/sequenceDiagram-WL72ISMW-Yt9Nueoj.js","assets/classDiagram-2ON5EDUG-C8nUsQQ7.js","assets/chunk-B4BG7PRW-w0Noq32D.js","assets/classDiagram-v2-WZHVMYZB-C8nUsQQ7.js","assets/stateDiagram-FKZM4ZOC-D2lbMb06.js","assets/chunk-DI55MBZ5-BdK_uSZV.js","assets/stateDiagram-v2-4FDKWEC3-DnoEvM3A.js","assets/journeyDiagram-XKPGCS4Q-BLuRTCzZ.js","assets/timeline-definition-IT6M3QCI-ConOPyEE.js","assets/mindmap-definition-VGOIOE7T-B_XmCI29.js","assets/kanban-definition-3W4ZIXB7-BWFNF9Mf.js","assets/sankeyDiagram-TZEHDZUN-TiQtw_h8.js","assets/diagram-S2PKOQOG-CBxp8Ly1.js","assets/diagram-QEK2KX5R-CTTNPGgI.js","assets/blockDiagram-VD42YOAC-COnr0WQK.js","assets/architectureDiagram-VXUJARFQ-BgROGXvj.js","assets/diagram-PSM6KHXK-khjhdnel.js"])))=>i.map(i=>d[i]); -var z9e=Object.defineProperty;var B9e=(e,t,n)=>t in e?z9e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Wt=(e,t,n)=>B9e(e,typeof t!="symbol"?t+"":t,n);function v1e(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const F9e=Object.freeze(Object.defineProperty({__proto__:null,get Audios(){return pYt},get DeepThink(){return _pe},get DeepThinking(){return _pe},get Files(){return YXt},get Footer(){return aYt},get FooterActions(){return a4e},get FooterCount(){return i4e},get Images(){return GXt},get Interrupted(){return cYt},get Text(){return JXt},get Videos(){return dYt}},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 i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var jT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function IRn(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 p4={exports:{}},Bv={},m4={exports:{}},Xr={};/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-CWWv_xqB.js","assets/graph-C7nCxrGC.js","assets/_baseUniq-Dg6PvSCo.js","assets/layout-DaarVybf.js","assets/_basePickBy-BzYxueAG.js","assets/clone-z69nb1L5.js","assets/cose-bilkent-S5V4N54A-5hofHsXZ.js","assets/cytoscape.esm-BQaXIfA_.js","assets/c4Diagram-YG6GDRKO-Csim2GTp.js","assets/chunk-TZMSLE5B-WkZZUiQp.js","assets/flowDiagram-NV44I4VS-B9dFj1QQ.js","assets/chunk-FMBD7UC4-_lv-Ir7k.js","assets/chunk-55IACEB6-BRDK9d3b.js","assets/chunk-QN33PNHL-Ni-_soP9.js","assets/channel-DnkcnzbZ.js","assets/erDiagram-Q2GNP2WA-BQxq7iHq.js","assets/gitGraphDiagram-V2S2FVAM-DDdvBXDK.js","assets/chunk-4BX2VUAB-De0wsjr9.js","assets/chunk-QZHKN3VN-Bemo9eSF.js","assets/treemap-GDKQZRPO-DwNuPoGC.js","assets/ganttDiagram-JELNMOA3-BACMDM9w.js","assets/linear-Bizo30dK.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-HS3SLOUP-DuU3d8pT.js","assets/pieDiagram-ADFJNKIX-C6lAEiPw.js","assets/arc-5gXlsG4Q.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-AYHSOK5B-CJFHD57u.js","assets/xychartDiagram-PRI3JC2R-DCe4WDuI.js","assets/requirementDiagram-UZGBJVZJ-Ks_8asey.js","assets/sequenceDiagram-WL72ISMW-3_PaRG9T.js","assets/classDiagram-2ON5EDUG-DKdIacjv.js","assets/chunk-B4BG7PRW-DHog70H7.js","assets/classDiagram-v2-WZHVMYZB-DKdIacjv.js","assets/stateDiagram-FKZM4ZOC-B2Gz9yRX.js","assets/chunk-DI55MBZ5-Cy3a0Lf9.js","assets/stateDiagram-v2-4FDKWEC3-Byi7VEQa.js","assets/journeyDiagram-XKPGCS4Q-DU-0mOjJ.js","assets/timeline-definition-IT6M3QCI-bL2kMDYi.js","assets/mindmap-definition-VGOIOE7T-DmTviSoI.js","assets/kanban-definition-3W4ZIXB7-CdluP49I.js","assets/sankeyDiagram-TZEHDZUN-Dyf7sSJr.js","assets/diagram-S2PKOQOG--v39NZhz.js","assets/diagram-QEK2KX5R-DT2g0V4c.js","assets/blockDiagram-VD42YOAC-Dyi_zh_5.js","assets/architectureDiagram-VXUJARFQ-BnMQ6QYc.js","assets/diagram-PSM6KHXK-q4aPZlA7.js"])))=>i.map(i=>d[i]); +var hze=Object.defineProperty;var gze=(e,t,n)=>t in e?hze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Kt=(e,t,n)=>gze(e,typeof t!="symbol"?t+"":t,n);function V1e(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const Oze=Object.freeze(Object.defineProperty({__proto__:null,get Audios(){return WYt},get DeepThink(){return Fpe},get DeepThinking(){return Fpe},get Files(){return wYt},get Footer(){return zYt},get FooterActions(){return R4e},get FooterCount(){return P4e},get Images(){return PYt},get Interrupted(){return XYt},get Text(){return IYt},get Videos(){return VYt}},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 i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var GT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function LPn(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 T4={exports:{}},Yv={},w4={exports:{}},Xr={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ var z9e=Object.defineProperty;var B9e=(e,t,n)=>t in e?z9e(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $te;function U9e(){if($te)return Xr;$te=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"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator;function f(D){return D===null||typeof D!="object"?null:(D=d&&D[d]||D["@@iterator"],typeof D=="function"?D:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function O(D,X,Y){this.props=D,this.context=X,this.refs=g,this.updater=Y||m}O.prototype.isReactComponent={},O.prototype.setState=function(D,X){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,X,"setState")},O.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function v(){}v.prototype=O.prototype;function y(D,X,Y){this.props=D,this.context=X,this.refs=g,this.updater=Y||m}var S=y.prototype=new v;S.constructor=y,h(S,O.prototype),S.isPureReactComponent=!0;var C=Array.isArray,_=Object.prototype.hasOwnProperty,w={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function A(D,X,Y){var q,H={},J=null,te=null;if(X!=null)for(q in X.ref!==void 0&&(te=X.ref),X.key!==void 0&&(J=""+X.key),X)_.call(X,q)&&!T.hasOwnProperty(q)&&(H[q]=X[q]);var ne=arguments.length-2;if(ne===1)H.children=Y;else if(1t in e?z9e(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pte;function j9e(){if(Pte)return Bv;Pte=1;var e=vu(),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,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,c){var u,d={},f=null,m=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(m=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:f,ref:m,props:d,_owner:a.current}}return Bv.Fragment=n,Bv.jsx=o,Bv.jsxs=o,Bv}var kte;function X9e(){return kte||(kte=1,p4.exports=j9e()),p4.exports}var x=X9e(),XT={},h4={exports:{}},Ys={},g4={exports:{}},O4={};/** + */var ene;function vze(){if(ene)return Yv;ene=1;var e=xu(),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,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,c){var u,d={},f=null,m=null;c!==void 0&&(f=""+c),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(m=l.ref);for(u in l)r.call(l,u)&&!i.hasOwnProperty(u)&&(d[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:s,key:f,ref:m,props:d,_owner:a.current}}return Yv.Fragment=n,Yv.jsx=o,Yv.jsxs=o,Yv}var tne;function yze(){return tne||(tne=1,T4.exports=vze()),T4.exports}var x=yze(),HT={},C4={exports:{}},Vs={},$4={exports:{}},R4={};/** * @license React * scheduler.production.min.js * @@ -23,7 +23,7 @@ var z9e=Object.defineProperty;var B9e=(e,t,n)=>t in e?z9e(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ate;function Y9e(){return Ate||(Ate=1,(function(e){function t(P,z){var B=P.length;P.push(z);e:for(;0>>1,X=P[D];if(0>>1;Da(H,B))Ja(te,H)?(P[D]=te,P[J]=B,D=J):(P[D]=H,P[q]=B,D=q);else if(Ja(te,B))P[D]=te,P[J]=B,D=J;else break e}}return z}function a(P,z){var B=P.sortIndex-z.sortIndex;return B!==0?B:P.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,f=3,m=!1,h=!1,g=!1,O=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(P){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=P)r(c),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(c)}}function C(P){if(g=!1,S(P),!h)if(n(l)!==null)h=!0,R(_);else{var z=n(c);z!==null&&$(C,z.startTime-P)}}function _(P,z){h=!1,g&&(g=!1,v(A),A=-1),m=!0;var B=f;try{for(S(z),d=n(l);d!==null&&(!(d.expirationTime>z)||P&&!M());){var D=d.callback;if(typeof D=="function"){d.callback=null,f=d.priorityLevel;var X=D(d.expirationTime<=z);z=e.unstable_now(),typeof X=="function"?d.callback=X:d===n(l)&&r(l),S(z)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var q=n(c);q!==null&&$(C,q.startTime-z),Y=!1}return Y}finally{d=null,f=B,m=!1}}var w=!1,T=null,A=-1,k=5,I=-1;function M(){return!(e.unstable_now()-IP||125D?(P.sortIndex=B,t(c,P),n(l)===null&&P===n(c)&&(g?(v(A),A=-1):g=!0,$(C,B-D))):(P.sortIndex=X,t(l,P),h||m||(h=!0,R(_))),P},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(P){var z=f;return function(){var B=f;f=z;try{return P.apply(this,arguments)}finally{f=B}}}})(O4)),O4}var Nte;function V9e(){return Nte||(Nte=1,g4.exports=Y9e()),g4.exports}/** + */var nne;function Sze(){return nne||(nne=1,(function(e){function t(P,z){var F=P.length;P.push(z);e:for(;0>>1,X=P[L];if(0>>1;La(G,F))eea(K,G)?(P[L]=K,P[ee]=F,L=ee):(P[L]=G,P[q]=F,L=q);else if(eea(K,F))P[L]=K,P[ee]=F,L=ee;else break e}}return z}function a(P,z){var F=P.sortIndex-z.sortIndex;return F!==0?F:P.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,f=3,m=!1,h=!1,g=!1,O=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(P){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=P)r(c),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(c)}}function C(P){if(g=!1,S(P),!h)if(n(l)!==null)h=!0,R(_);else{var z=n(c);z!==null&&$(C,z.startTime-P)}}function _(P,z){h=!1,g&&(g=!1,v(k),k=-1),m=!0;var F=f;try{for(S(z),d=n(l);d!==null&&(!(d.expirationTime>z)||P&&!M());){var L=d.callback;if(typeof L=="function"){d.callback=null,f=d.priorityLevel;var X=L(d.expirationTime<=z);z=e.unstable_now(),typeof X=="function"?d.callback=X:d===n(l)&&r(l),S(z)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var q=n(c);q!==null&&$(C,q.startTime-z),Y=!1}return Y}finally{d=null,f=F,m=!1}}var w=!1,T=null,k=-1,A=5,I=-1;function M(){return!(e.unstable_now()-IP||125L?(P.sortIndex=F,t(c,P),n(l)===null&&P===n(c)&&(g?(v(k),k=-1):g=!0,$(C,F-L))):(P.sortIndex=X,t(l,P),h||m||(h=!0,R(_))),P},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(P){var z=f;return function(){var F=f;f=z;try{return P.apply(this,arguments)}finally{f=F}}}})(R4)),R4}var rne;function _ze(){return rne||(rne=1,$4.exports=Sze()),$4.exports}/** * @license React * react-dom.production.min.js * @@ -31,29 +31,29 @@ var z9e=Object.defineProperty;var B9e=(e,t,n)=>t in e?z9e(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ite;function q9e(){if(Ite)return Ys;Ite=1;var e=vu(),t=V9e();function n(b){for(var E="https://reactjs.org/docs/error-decoder.html?invariant="+b,N=1;N"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},d={};function f(b){return l.call(d,b)?!0:l.call(u,b)?!1:c.test(b)?d[b]=!0:(u[b]=!0,!1)}function m(b,E,N,j){if(N!==null&&N.type===0)return!1;switch(typeof E){case"function":case"symbol":return!0;case"boolean":return j?!1:N!==null?!N.acceptsBooleans:(b=b.toLowerCase().slice(0,5),b!=="data-"&&b!=="aria-");default:return!1}}function h(b,E,N,j){if(E===null||typeof E>"u"||m(b,E,N,j))return!0;if(j)return!1;if(N!==null)switch(N.type){case 3:return!E;case 4:return E===!1;case 5:return isNaN(E);case 6:return isNaN(E)||1>E}return!1}function g(b,E,N,j,V,K,pe){this.acceptsBooleans=E===2||E===3||E===4,this.attributeName=j,this.attributeNamespace=V,this.mustUseProperty=N,this.propertyName=b,this.type=E,this.sanitizeURL=K,this.removeEmptyString=pe}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(b){O[b]=new g(b,0,!1,b,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(b){var E=b[0];O[E]=new g(E,1,!1,b[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(b){O[b]=new g(b,2,!1,b.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(b){O[b]=new g(b,2,!1,b,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(b){O[b]=new g(b,3,!1,b.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(b){O[b]=new g(b,3,!0,b,null,!1,!1)}),["capture","download"].forEach(function(b){O[b]=new g(b,4,!1,b,null,!1,!1)}),["cols","rows","size","span"].forEach(function(b){O[b]=new g(b,6,!1,b,null,!1,!1)}),["rowSpan","start"].forEach(function(b){O[b]=new g(b,5,!1,b.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(b){return b[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(b){var E=b.replace(v,y);O[E]=new g(E,1,!1,b,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(b){var E=b.replace(v,y);O[E]=new g(E,1,!1,b,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(b){var E=b.replace(v,y);O[E]=new g(E,1,!1,b,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(b){O[b]=new g(b,1,!1,b.toLowerCase(),null,!1,!1)}),O.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(b){O[b]=new g(b,1,!1,b.toLowerCase(),null,!0,!0)});function S(b,E,N,j){var V=O.hasOwnProperty(E)?O[E]:null;(V!==null?V.type!==0:j||!(2Ce||V[pe]!==K[Ce]){var Be=` -`+V[pe].replace(" at new "," at ");return b.displayName&&Be.includes("")&&(Be=Be.replace("",b.displayName)),Be}while(1<=pe&&0<=Ce);break}}}finally{Y=!1,Error.prepareStackTrace=N}return(b=b?b.displayName||b.name:"")?X(b):""}function H(b){switch(b.tag){case 5:return X(b.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return b=q(b.type,!1),b;case 11:return b=q(b.type.render,!1),b;case 1:return b=q(b.type,!0),b;default:return""}}function J(b){if(b==null)return null;if(typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case T:return"Fragment";case w:return"Portal";case k:return"Profiler";case A:return"StrictMode";case F:return"Suspense";case L:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case M:return(b.displayName||"Context")+".Consumer";case I:return(b._context.displayName||"Context")+".Provider";case Q:var E=b.render;return b=b.displayName,b||(b=E.displayName||E.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case U:return E=b.displayName||null,E!==null?E:J(b.type)||"Memo";case R:E=b._payload,b=b._init;try{return J(b(E))}catch{}}return null}function te(b){var E=b.type;switch(b.tag){case 24:return"Cache";case 9:return(E.displayName||"Context")+".Consumer";case 10:return(E._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return b=E.render,b=b.displayName||b.name||"",E.displayName||(b!==""?"ForwardRef("+b+")":"ForwardRef");case 7:return"Fragment";case 5:return E;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return J(E);case 8:return E===A?"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 E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E}return null}function ne(b){switch(typeof b){case"boolean":case"number":case"string":case"undefined":return b;case"object":return b;default:return""}}function ie(b){var E=b.type;return(b=b.nodeName)&&b.toLowerCase()==="input"&&(E==="checkbox"||E==="radio")}function le(b){var E=ie(b)?"checked":"value",N=Object.getOwnPropertyDescriptor(b.constructor.prototype,E),j=""+b[E];if(!b.hasOwnProperty(E)&&typeof N<"u"&&typeof N.get=="function"&&typeof N.set=="function"){var V=N.get,K=N.set;return Object.defineProperty(b,E,{configurable:!0,get:function(){return V.call(this)},set:function(pe){j=""+pe,K.call(this,pe)}}),Object.defineProperty(b,E,{enumerable:N.enumerable}),{getValue:function(){return j},setValue:function(pe){j=""+pe},stopTracking:function(){b._valueTracker=null,delete b[E]}}}}function ue(b){b._valueTracker||(b._valueTracker=le(b))}function oe(b){if(!b)return!1;var E=b._valueTracker;if(!E)return!0;var N=E.getValue(),j="";return b&&(j=ie(b)?b.checked?"true":"false":b.value),b=j,b!==N?(E.setValue(b),!0):!1}function ge(b){if(b=b||(typeof document<"u"?document:void 0),typeof b>"u")return null;try{return b.activeElement||b.body}catch{return b.body}}function ve(b,E){var N=E.checked;return B({},E,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:N??b._wrapperState.initialChecked})}function he(b,E){var N=E.defaultValue==null?"":E.defaultValue,j=E.checked!=null?E.checked:E.defaultChecked;N=ne(E.value!=null?E.value:N),b._wrapperState={initialChecked:j,initialValue:N,controlled:E.type==="checkbox"||E.type==="radio"?E.checked!=null:E.value!=null}}function me(b,E){E=E.checked,E!=null&&S(b,"checked",E,!1)}function xe(b,E){me(b,E);var N=ne(E.value),j=E.type;if(N!=null)j==="number"?(N===0&&b.value===""||b.value!=N)&&(b.value=""+N):b.value!==""+N&&(b.value=""+N);else if(j==="submit"||j==="reset"){b.removeAttribute("value");return}E.hasOwnProperty("value")?Qe(b,E.type,N):E.hasOwnProperty("defaultValue")&&Qe(b,E.type,ne(E.defaultValue)),E.checked==null&&E.defaultChecked!=null&&(b.defaultChecked=!!E.defaultChecked)}function we(b,E,N){if(E.hasOwnProperty("value")||E.hasOwnProperty("defaultValue")){var j=E.type;if(!(j!=="submit"&&j!=="reset"||E.value!==void 0&&E.value!==null))return;E=""+b._wrapperState.initialValue,N||E===b.value||(b.value=E),b.defaultValue=E}N=b.name,N!==""&&(b.name=""),b.defaultChecked=!!b._wrapperState.initialChecked,N!==""&&(b.name=N)}function Qe(b,E,N){(E!=="number"||ge(b.ownerDocument)!==b)&&(N==null?b.defaultValue=""+b._wrapperState.initialValue:b.defaultValue!==""+N&&(b.defaultValue=""+N))}var Ie=Array.isArray;function Ee(b,E,N,j){if(b=b.options,E){E={};for(var V=0;V"+E.valueOf().toString()+"",E=lt.firstChild;b.firstChild;)b.removeChild(b.firstChild);for(;E.firstChild;)b.appendChild(E.firstChild)}});function ut(b,E){if(E){var N=b.firstChild;if(N&&N===b.lastChild&&N.nodeType===3){N.nodeValue=E;return}}b.textContent=E}var We={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},Me=["Webkit","ms","Moz","O"];Object.keys(We).forEach(function(b){Me.forEach(function(E){E=E+b.charAt(0).toUpperCase()+b.substring(1),We[E]=We[b]})});function Ge(b,E,N){return E==null||typeof E=="boolean"||E===""?"":N||typeof E!="number"||E===0||We.hasOwnProperty(b)&&We[b]?(""+E).trim():E+"px"}function ze(b,E){b=b.style;for(var N in E)if(E.hasOwnProperty(N)){var j=N.indexOf("--")===0,V=Ge(N,E[N],j);N==="float"&&(N="cssFloat"),j?b.setProperty(N,V):b[N]=V}}var qe=B({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 Pe(b,E){if(E){if(qe[b]&&(E.children!=null||E.dangerouslySetInnerHTML!=null))throw Error(n(137,b));if(E.dangerouslySetInnerHTML!=null){if(E.children!=null)throw Error(n(60));if(typeof E.dangerouslySetInnerHTML!="object"||!("__html"in E.dangerouslySetInnerHTML))throw Error(n(61))}if(E.style!=null&&typeof E.style!="object")throw Error(n(62))}}function Ae(b,E){if(b.indexOf("-")===-1)return typeof E.is=="string";switch(b){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 Oe=null;function Te(b){return b=b.target||b.srcElement||window,b.correspondingUseElement&&(b=b.correspondingUseElement),b.nodeType===3?b.parentNode:b}var Ue=null,rt=null,tt=null;function ot(b){if(b=Tv(b)){if(typeof Ue!="function")throw Error(n(280));var E=b.stateNode;E&&(E=aT(E),Ue(b.stateNode,b.type,E))}}function St(b){rt?tt?tt.push(b):tt=[b]:rt=b}function Xe(){if(rt){var b=rt,E=tt;if(tt=rt=null,ot(b),E)for(b=0;b>>=0,b===0?32:31-(ca(b)/Wr|0)|0}var Gr=64,ra=4194304;function Ra(b){switch(b&-b){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 b&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return b&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return b}}function xr(b,E){var N=b.pendingLanes;if(N===0)return 0;var j=0,V=b.suspendedLanes,K=b.pingedLanes,pe=N&268435455;if(pe!==0){var Ce=pe&~V;Ce!==0?j=Ra(Ce):(K&=pe,K!==0&&(j=Ra(K)))}else pe=N&~V,pe!==0?j=Ra(pe):K!==0&&(j=Ra(K));if(j===0)return 0;if(E!==0&&E!==j&&(E&V)===0&&(V=j&-j,K=E&-E,V>=K||V===16&&(K&4194240)!==0))return E;if((j&4)!==0&&(j|=N&16),E=b.entangledLanes,E!==0)for(b=b.entanglements,E&=j;0N;N++)E.push(b);return E}function or(b,E,N){b.pendingLanes|=E,E!==536870912&&(b.suspendedLanes=0,b.pingedLanes=0),b=b.eventTimes,E=31-rr(E),b[E]=N}function Hr(b,E){var N=b.pendingLanes&~E;b.pendingLanes=E,b.suspendedLanes=0,b.pingedLanes=0,b.expiredLanes&=E,b.mutableReadLanes&=E,b.entangledLanes&=E,E=b.entanglements;var j=b.eventTimes;for(b=b.expirationTimes;0=gv),SJ=" ",_J=!1;function EJ(b,E){switch(b){case"keyup":return I7e.indexOf(E.keyCode)!==-1;case"keydown":return E.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xJ(b){return b=b.detail,typeof b=="object"&&"data"in b?b.data:null}var Qg=!1;function D7e(b,E){switch(b){case"compositionend":return xJ(E);case"keypress":return E.which!==32?null:(_J=!0,SJ);case"textInput":return b=E.data,b===SJ&&_J?null:b;default:return null}}function L7e(b,E){if(Qg)return b==="compositionend"||!qN&&EJ(b,E)?(b=hJ(),qx=FN=jf=null,Qg=!1,b):null;switch(b){case"paste":return null;case"keypress":if(!(E.ctrlKey||E.altKey||E.metaKey)||E.ctrlKey&&E.altKey){if(E.char&&1=E)return{node:N,offset:E-b};b=j}e:{for(;N;){if(N.nextSibling){N=N.nextSibling;break e}N=N.parentNode}N=void 0}N=kJ(N)}}function NJ(b,E){return b&&E?b===E?!0:b&&b.nodeType===3?!1:E&&E.nodeType===3?NJ(b,E.parentNode):"contains"in b?b.contains(E):b.compareDocumentPosition?!!(b.compareDocumentPosition(E)&16):!1:!1}function IJ(){for(var b=window,E=ge();E instanceof b.HTMLIFrameElement;){try{var N=typeof E.contentWindow.location.href=="string"}catch{N=!1}if(N)b=E.contentWindow;else break;E=ge(b.document)}return E}function HN(b){var E=b&&b.nodeName&&b.nodeName.toLowerCase();return E&&(E==="input"&&(b.type==="text"||b.type==="search"||b.type==="tel"||b.type==="url"||b.type==="password")||E==="textarea"||b.contentEditable==="true")}function V7e(b){var E=IJ(),N=b.focusedElem,j=b.selectionRange;if(E!==N&&N&&N.ownerDocument&&NJ(N.ownerDocument.documentElement,N)){if(j!==null&&HN(N)){if(E=j.start,b=j.end,b===void 0&&(b=E),"selectionStart"in N)N.selectionStart=E,N.selectionEnd=Math.min(b,N.value.length);else if(b=(E=N.ownerDocument||document)&&E.defaultView||window,b.getSelection){b=b.getSelection();var V=N.textContent.length,K=Math.min(j.start,V);j=j.end===void 0?K:Math.min(j.end,V),!b.extend&&K>j&&(V=j,j=K,K=V),V=AJ(N,K);var pe=AJ(N,j);V&&pe&&(b.rangeCount!==1||b.anchorNode!==V.node||b.anchorOffset!==V.offset||b.focusNode!==pe.node||b.focusOffset!==pe.offset)&&(E=E.createRange(),E.setStart(V.node,V.offset),b.removeAllRanges(),K>j?(b.addRange(E),b.extend(pe.node,pe.offset)):(E.setEnd(pe.node,pe.offset),b.addRange(E)))}}for(E=[],b=N;b=b.parentNode;)b.nodeType===1&&E.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N=document.documentMode,zg=null,ZN=null,yv=null,KN=!1;function MJ(b,E,N){var j=N.window===N?N.document:N.nodeType===9?N:N.ownerDocument;KN||zg==null||zg!==ge(j)||(j=zg,"selectionStart"in j&&HN(j)?j={start:j.selectionStart,end:j.selectionEnd}:(j=(j.ownerDocument&&j.ownerDocument.defaultView||window).getSelection(),j={anchorNode:j.anchorNode,anchorOffset:j.anchorOffset,focusNode:j.focusNode,focusOffset:j.focusOffset}),yv&&vv(yv,j)||(yv=j,j=tT(ZN,"onSelect"),0Xg||(b.current=uI[Xg],uI[Xg]=null,Xg--)}function ja(b,E){Xg++,uI[Xg]=b.current,b.current=E}var qf={},Vo=Vf(qf),Bs=Vf(!1),wm=qf;function Yg(b,E){var N=b.type.contextTypes;if(!N)return qf;var j=b.stateNode;if(j&&j.__reactInternalMemoizedUnmaskedChildContext===E)return j.__reactInternalMemoizedMaskedChildContext;var V={},K;for(K in N)V[K]=E[K];return j&&(b=b.stateNode,b.__reactInternalMemoizedUnmaskedChildContext=E,b.__reactInternalMemoizedMaskedChildContext=V),V}function Fs(b){return b=b.childContextTypes,b!=null}function iT(){Za(Bs),Za(Vo)}function HJ(b,E,N){if(Vo.current!==qf)throw Error(n(168));ja(Vo,E),ja(Bs,N)}function ZJ(b,E,N){var j=b.stateNode;if(E=E.childContextTypes,typeof j.getChildContext!="function")return N;j=j.getChildContext();for(var V in j)if(!(V in E))throw Error(n(108,te(b)||"Unknown",V));return B({},N,j)}function oT(b){return b=(b=b.stateNode)&&b.__reactInternalMemoizedMergedChildContext||qf,wm=Vo.current,ja(Vo,b),ja(Bs,Bs.current),!0}function KJ(b,E,N){var j=b.stateNode;if(!j)throw Error(n(169));N?(b=ZJ(b,E,wm),j.__reactInternalMemoizedMergedChildContext=b,Za(Bs),Za(Vo),ja(Vo,b)):Za(Bs),ja(Bs,N)}var Md=null,sT=!1,dI=!1;function JJ(b){Md===null?Md=[b]:Md.push(b)}function a9e(b){sT=!0,JJ(b)}function Wf(){if(!dI&&Md!==null){dI=!0;var b=0,E=Kn;try{var N=Md;for(Kn=1;b>=pe,V-=pe,Dd=1<<32-rr(E)+V|N<br?(ho=lr,lr=null):ho=lr.sibling;var ua=Dt(nt,lr,at[br],tn);if(ua===null){lr===null&&(lr=ho);break}b&&lr&&ua.alternate===null&&E(nt,lr),Ve=K(ua,Ve,br),sr===null?jn=ua:sr.sibling=ua,sr=ua,lr=ho}if(br===at.length)return N(nt,lr),ti&&$m(nt,br),jn;if(lr===null){for(;brbr?(ho=lr,lr=null):ho=lr.sibling;var rp=Dt(nt,lr,ua.value,tn);if(rp===null){lr===null&&(lr=ho);break}b&&lr&&rp.alternate===null&&E(nt,lr),Ve=K(rp,Ve,br),sr===null?jn=rp:sr.sibling=rp,sr=rp,lr=ho}if(ua.done)return N(nt,lr),ti&&$m(nt,br),jn;if(lr===null){for(;!ua.done;br++,ua=at.next())ua=Xt(nt,ua.value,tn),ua!==null&&(Ve=K(ua,Ve,br),sr===null?jn=ua:sr.sibling=ua,sr=ua);return ti&&$m(nt,br),jn}for(lr=j(nt,lr);!ua.done;br++,ua=at.next())ua=En(lr,nt,br,ua.value,tn),ua!==null&&(b&&ua.alternate!==null&&lr.delete(ua.key===null?br:ua.key),Ve=K(ua,Ve,br),sr===null?jn=ua:sr.sibling=ua,sr=ua);return b&&lr.forEach(function(Q9e){return E(nt,Q9e)}),ti&&$m(nt,br),jn}function Ri(nt,Ve,at,tn){if(typeof at=="object"&&at!==null&&at.type===T&&at.key===null&&(at=at.props.children),typeof at=="object"&&at!==null){switch(at.$$typeof){case _:e:{for(var jn=at.key,sr=Ve;sr!==null;){if(sr.key===jn){if(jn=at.type,jn===T){if(sr.tag===7){N(nt,sr.sibling),Ve=V(sr,at.props.children),Ve.return=nt,nt=Ve;break e}}else if(sr.elementType===jn||typeof jn=="object"&&jn!==null&&jn.$$typeof===R&&iee(jn)===sr.type){N(nt,sr.sibling),Ve=V(sr,at.props),Ve.ref=wv(nt,sr,at),Ve.return=nt,nt=Ve;break e}N(nt,sr);break}else E(nt,sr);sr=sr.sibling}at.type===T?(Ve=Dm(at.props.children,nt.mode,tn,at.key),Ve.return=nt,nt=Ve):(tn=MT(at.type,at.key,at.props,null,nt.mode,tn),tn.ref=wv(nt,Ve,at),tn.return=nt,nt=tn)}return pe(nt);case w:e:{for(sr=at.key;Ve!==null;){if(Ve.key===sr)if(Ve.tag===4&&Ve.stateNode.containerInfo===at.containerInfo&&Ve.stateNode.implementation===at.implementation){N(nt,Ve.sibling),Ve=V(Ve,at.children||[]),Ve.return=nt,nt=Ve;break e}else{N(nt,Ve);break}else E(nt,Ve);Ve=Ve.sibling}Ve=l4(at,nt.mode,tn),Ve.return=nt,nt=Ve}return pe(nt);case R:return sr=at._init,Ri(nt,Ve,sr(at._payload),tn)}if(Ie(at))return An(nt,Ve,at,tn);if(z(at))return Qn(nt,Ve,at,tn);dT(nt,at)}return typeof at=="string"&&at!==""||typeof at=="number"?(at=""+at,Ve!==null&&Ve.tag===6?(N(nt,Ve.sibling),Ve=V(Ve,at),Ve.return=nt,nt=Ve):(N(nt,Ve),Ve=s4(at,nt.mode,tn),Ve.return=nt,nt=Ve),pe(nt)):N(nt,Ve)}return Ri}var Gg=oee(!0),see=oee(!1),fT=Vf(null),pT=null,Hg=null,OI=null;function bI(){OI=Hg=pT=null}function vI(b){var E=fT.current;Za(fT),b._currentValue=E}function yI(b,E,N){for(;b!==null;){var j=b.alternate;if((b.childLanes&E)!==E?(b.childLanes|=E,j!==null&&(j.childLanes|=E)):j!==null&&(j.childLanes&E)!==E&&(j.childLanes|=E),b===N)break;b=b.return}}function Zg(b,E){pT=b,OI=Hg=null,b=b.dependencies,b!==null&&b.firstContext!==null&&((b.lanes&E)!==0&&(Us=!0),b.firstContext=null)}function rc(b){var E=b._currentValue;if(OI!==b)if(b={context:b,memoizedValue:E,next:null},Hg===null){if(pT===null)throw Error(n(308));Hg=b,pT.dependencies={lanes:0,firstContext:b}}else Hg=Hg.next=b;return E}var Rm=null;function SI(b){Rm===null?Rm=[b]:Rm.push(b)}function lee(b,E,N,j){var V=E.interleaved;return V===null?(N.next=N,SI(E)):(N.next=V.next,V.next=N),E.interleaved=N,Qd(b,j)}function Qd(b,E){b.lanes|=E;var N=b.alternate;for(N!==null&&(N.lanes|=E),N=b,b=b.return;b!==null;)b.childLanes|=E,N=b.alternate,N!==null&&(N.childLanes|=E),N=b,b=b.return;return N.tag===3?N.stateNode:null}var Gf=!1;function _I(b){b.updateQueue={baseState:b.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cee(b,E){b=b.updateQueue,E.updateQueue===b&&(E.updateQueue={baseState:b.baseState,firstBaseUpdate:b.firstBaseUpdate,lastBaseUpdate:b.lastBaseUpdate,shared:b.shared,effects:b.effects})}function zd(b,E){return{eventTime:b,lane:E,tag:0,payload:null,callback:null,next:null}}function Hf(b,E,N){var j=b.updateQueue;if(j===null)return null;if(j=j.shared,(oa&2)!==0){var V=j.pending;return V===null?E.next=E:(E.next=V.next,V.next=E),j.pending=E,Qd(b,N)}return V=j.interleaved,V===null?(E.next=E,SI(j)):(E.next=V.next,V.next=E),j.interleaved=E,Qd(b,N)}function mT(b,E,N){if(E=E.updateQueue,E!==null&&(E=E.shared,(N&4194240)!==0)){var j=E.lanes;j&=b.pendingLanes,N|=j,E.lanes=N,Sn(b,N)}}function uee(b,E){var N=b.updateQueue,j=b.alternate;if(j!==null&&(j=j.updateQueue,N===j)){var V=null,K=null;if(N=N.firstBaseUpdate,N!==null){do{var pe={eventTime:N.eventTime,lane:N.lane,tag:N.tag,payload:N.payload,callback:N.callback,next:null};K===null?V=K=pe:K=K.next=pe,N=N.next}while(N!==null);K===null?V=K=E:K=K.next=E}else V=K=E;N={baseState:j.baseState,firstBaseUpdate:V,lastBaseUpdate:K,shared:j.shared,effects:j.effects},b.updateQueue=N;return}b=N.lastBaseUpdate,b===null?N.firstBaseUpdate=E:b.next=E,N.lastBaseUpdate=E}function hT(b,E,N,j){var V=b.updateQueue;Gf=!1;var K=V.firstBaseUpdate,pe=V.lastBaseUpdate,Ce=V.shared.pending;if(Ce!==null){V.shared.pending=null;var Be=Ce,ct=Be.next;Be.next=null,pe===null?K=ct:pe.next=ct,pe=Be;var zt=b.alternate;zt!==null&&(zt=zt.updateQueue,Ce=zt.lastBaseUpdate,Ce!==pe&&(Ce===null?zt.firstBaseUpdate=ct:Ce.next=ct,zt.lastBaseUpdate=Be))}if(K!==null){var Xt=V.baseState;pe=0,zt=ct=Be=null,Ce=K;do{var Dt=Ce.lane,En=Ce.eventTime;if((j&Dt)===Dt){zt!==null&&(zt=zt.next={eventTime:En,lane:0,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null});e:{var An=b,Qn=Ce;switch(Dt=E,En=N,Qn.tag){case 1:if(An=Qn.payload,typeof An=="function"){Xt=An.call(En,Xt,Dt);break e}Xt=An;break e;case 3:An.flags=An.flags&-65537|128;case 0:if(An=Qn.payload,Dt=typeof An=="function"?An.call(En,Xt,Dt):An,Dt==null)break e;Xt=B({},Xt,Dt);break e;case 2:Gf=!0}}Ce.callback!==null&&Ce.lane!==0&&(b.flags|=64,Dt=V.effects,Dt===null?V.effects=[Ce]:Dt.push(Ce))}else En={eventTime:En,lane:Dt,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null},zt===null?(ct=zt=En,Be=Xt):zt=zt.next=En,pe|=Dt;if(Ce=Ce.next,Ce===null){if(Ce=V.shared.pending,Ce===null)break;Dt=Ce,Ce=Dt.next,Dt.next=null,V.lastBaseUpdate=Dt,V.shared.pending=null}}while(!0);if(zt===null&&(Be=Xt),V.baseState=Be,V.firstBaseUpdate=ct,V.lastBaseUpdate=zt,E=V.shared.interleaved,E!==null){V=E;do pe|=V.lane,V=V.next;while(V!==E)}else K===null&&(V.shared.lanes=0);Am|=pe,b.lanes=pe,b.memoizedState=Xt}}function dee(b,E,N){if(b=E.effects,E.effects=null,b!==null)for(E=0;EN?N:4,b(!0);var j=CI.transition;CI.transition={};try{b(!1),E()}finally{Kn=N,CI.transition=j}}function Pee(){return ac().memoizedState}function l9e(b,E,N){var j=ep(b);if(N={lane:j,action:N,hasEagerState:!1,eagerState:null,next:null},kee(b))Aee(E,N);else if(N=lee(b,E,N,j),N!==null){var V=Ss();Xc(N,b,j,V),Nee(N,E,j)}}function c9e(b,E,N){var j=ep(b),V={lane:j,action:N,hasEagerState:!1,eagerState:null,next:null};if(kee(b))Aee(E,V);else{var K=b.alternate;if(b.lanes===0&&(K===null||K.lanes===0)&&(K=E.lastRenderedReducer,K!==null))try{var pe=E.lastRenderedState,Ce=K(pe,N);if(V.hasEagerState=!0,V.eagerState=Ce,zc(Ce,pe)){var Be=E.interleaved;Be===null?(V.next=V,SI(E)):(V.next=Be.next,Be.next=V),E.interleaved=V;return}}catch{}finally{}N=lee(b,E,V,j),N!==null&&(V=Ss(),Xc(N,b,j,V),Nee(N,E,j))}}function kee(b){var E=b.alternate;return b===fi||E!==null&&E===fi}function Aee(b,E){Pv=bT=!0;var N=b.pending;N===null?E.next=E:(E.next=N.next,N.next=E),b.pending=E}function Nee(b,E,N){if((N&4194240)!==0){var j=E.lanes;j&=b.pendingLanes,N|=j,E.lanes=N,Sn(b,N)}}var ST={readContext:rc,useCallback:qo,useContext:qo,useEffect:qo,useImperativeHandle:qo,useInsertionEffect:qo,useLayoutEffect:qo,useMemo:qo,useReducer:qo,useRef:qo,useState:qo,useDebugValue:qo,useDeferredValue:qo,useTransition:qo,useMutableSource:qo,useSyncExternalStore:qo,useId:qo,unstable_isNewReconciler:!1},u9e={readContext:rc,useCallback:function(b,E){return $u().memoizedState=[b,E===void 0?null:E],b},useContext:rc,useEffect:_ee,useImperativeHandle:function(b,E,N){return N=N!=null?N.concat([b]):null,vT(4194308,4,Tee.bind(null,E,b),N)},useLayoutEffect:function(b,E){return vT(4194308,4,b,E)},useInsertionEffect:function(b,E){return vT(4,2,b,E)},useMemo:function(b,E){var N=$u();return E=E===void 0?null:E,b=b(),N.memoizedState=[b,E],b},useReducer:function(b,E,N){var j=$u();return E=N!==void 0?N(E):E,j.memoizedState=j.baseState=E,b={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:b,lastRenderedState:E},j.queue=b,b=b.dispatch=l9e.bind(null,fi,b),[j.memoizedState,b]},useRef:function(b){var E=$u();return b={current:b},E.memoizedState=b},useState:yee,useDebugValue:II,useDeferredValue:function(b){return $u().memoizedState=b},useTransition:function(){var b=yee(!1),E=b[0];return b=s9e.bind(null,b[1]),$u().memoizedState=b,[E,b]},useMutableSource:function(){},useSyncExternalStore:function(b,E,N){var j=fi,V=$u();if(ti){if(N===void 0)throw Error(n(407));N=N()}else{if(N=E(),mo===null)throw Error(n(349));(km&30)!==0||hee(j,E,N)}V.memoizedState=N;var K={value:N,getSnapshot:E};return V.queue=K,_ee(Oee.bind(null,j,K,b),[b]),j.flags|=2048,Nv(9,gee.bind(null,j,K,N,E),void 0,null),N},useId:function(){var b=$u(),E=mo.identifierPrefix;if(ti){var N=Ld,j=Dd;N=(j&~(1<<32-rr(j)-1)).toString(32)+N,E=":"+E+"R"+N,N=kv++,0<\/script>",b=b.removeChild(b.firstChild)):typeof j.is=="string"?b=pe.createElement(N,{is:j.is}):(b=pe.createElement(N),N==="select"&&(pe=b,j.multiple?pe.multiple=!0:j.size&&(pe.size=j.size))):b=pe.createElementNS(b,N),b[wu]=E,b[xv]=j,Jee(b,E,!1,!1),E.stateNode=b;e:{switch(pe=Ae(N,j),N){case"dialog":Ha("cancel",b),Ha("close",b),V=j;break;case"iframe":case"object":case"embed":Ha("load",b),V=j;break;case"video":case"audio":for(V=0;VnO&&(E.flags|=128,j=!0,Iv(K,!1),E.lanes=4194304)}else{if(!j)if(b=gT(pe),b!==null){if(E.flags|=128,j=!0,N=b.updateQueue,N!==null&&(E.updateQueue=N,E.flags|=4),Iv(K,!0),K.tail===null&&K.tailMode==="hidden"&&!pe.alternate&&!ti)return Wo(E),null}else 2*yt()-K.renderingStartTime>nO&&N!==1073741824&&(E.flags|=128,j=!0,Iv(K,!1),E.lanes=4194304);K.isBackwards?(pe.sibling=E.child,E.child=pe):(N=K.last,N!==null?N.sibling=pe:E.child=pe,K.last=pe)}return K.tail!==null?(E=K.tail,K.rendering=E,K.tail=E.sibling,K.renderingStartTime=yt(),E.sibling=null,N=di.current,ja(di,j?N&1|2:N&1),E):(Wo(E),null);case 22:case 23:return a4(),j=E.memoizedState!==null,b!==null&&b.memoizedState!==null!==j&&(E.flags|=8192),j&&(E.mode&1)!==0?(bl&1073741824)!==0&&(Wo(E),E.subtreeFlags&6&&(E.flags|=8192)):Wo(E),null;case 24:return null;case 25:return null}throw Error(n(156,E.tag))}function b9e(b,E){switch(pI(E),E.tag){case 1:return Fs(E.type)&&iT(),b=E.flags,b&65536?(E.flags=b&-65537|128,E):null;case 3:return Kg(),Za(Bs),Za(Vo),wI(),b=E.flags,(b&65536)!==0&&(b&128)===0?(E.flags=b&-65537|128,E):null;case 5:return xI(E),null;case 13:if(Za(di),b=E.memoizedState,b!==null&&b.dehydrated!==null){if(E.alternate===null)throw Error(n(340));Wg()}return b=E.flags,b&65536?(E.flags=b&-65537|128,E):null;case 19:return Za(di),null;case 4:return Kg(),null;case 10:return vI(E.type._context),null;case 22:case 23:return a4(),null;case 24:return null;default:return null}}var TT=!1,Go=!1,v9e=typeof WeakSet=="function"?WeakSet:Set,Pn=null;function eO(b,E){var N=b.ref;if(N!==null)if(typeof N=="function")try{N(null)}catch(j){Si(b,E,j)}else N.current=null}function VI(b,E,N){try{N()}catch(j){Si(b,E,j)}}var nte=!1;function y9e(b,E){if(aI=Yx,b=IJ(),HN(b)){if("selectionStart"in b)var N={start:b.selectionStart,end:b.selectionEnd};else e:{N=(N=b.ownerDocument)&&N.defaultView||window;var j=N.getSelection&&N.getSelection();if(j&&j.rangeCount!==0){N=j.anchorNode;var V=j.anchorOffset,K=j.focusNode;j=j.focusOffset;try{N.nodeType,K.nodeType}catch{N=null;break e}var pe=0,Ce=-1,Be=-1,ct=0,zt=0,Xt=b,Dt=null;t:for(;;){for(var En;Xt!==N||V!==0&&Xt.nodeType!==3||(Ce=pe+V),Xt!==K||j!==0&&Xt.nodeType!==3||(Be=pe+j),Xt.nodeType===3&&(pe+=Xt.nodeValue.length),(En=Xt.firstChild)!==null;)Dt=Xt,Xt=En;for(;;){if(Xt===b)break t;if(Dt===N&&++ct===V&&(Ce=pe),Dt===K&&++zt===j&&(Be=pe),(En=Xt.nextSibling)!==null)break;Xt=Dt,Dt=Xt.parentNode}Xt=En}N=Ce===-1||Be===-1?null:{start:Ce,end:Be}}else N=null}N=N||{start:0,end:0}}else N=null;for(iI={focusedElem:b,selectionRange:N},Yx=!1,Pn=E;Pn!==null;)if(E=Pn,b=E.child,(E.subtreeFlags&1028)!==0&&b!==null)b.return=E,Pn=b;else for(;Pn!==null;){E=Pn;try{var An=E.alternate;if((E.flags&1024)!==0)switch(E.tag){case 0:case 11:case 15:break;case 1:if(An!==null){var Qn=An.memoizedProps,Ri=An.memoizedState,nt=E.stateNode,Ve=nt.getSnapshotBeforeUpdate(E.elementType===E.type?Qn:Fc(E.type,Qn),Ri);nt.__reactInternalSnapshotBeforeUpdate=Ve}break;case 3:var at=E.stateNode.containerInfo;at.nodeType===1?at.textContent="":at.nodeType===9&&at.documentElement&&at.removeChild(at.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(tn){Si(E,E.return,tn)}if(b=E.sibling,b!==null){b.return=E.return,Pn=b;break}Pn=E.return}return An=nte,nte=!1,An}function Mv(b,E,N){var j=E.updateQueue;if(j=j!==null?j.lastEffect:null,j!==null){var V=j=j.next;do{if((V.tag&b)===b){var K=V.destroy;V.destroy=void 0,K!==void 0&&VI(E,N,K)}V=V.next}while(V!==j)}}function wT(b,E){if(E=E.updateQueue,E=E!==null?E.lastEffect:null,E!==null){var N=E=E.next;do{if((N.tag&b)===b){var j=N.create;N.destroy=j()}N=N.next}while(N!==E)}}function qI(b){var E=b.ref;if(E!==null){var N=b.stateNode;switch(b.tag){case 5:b=N;break;default:b=N}typeof E=="function"?E(b):E.current=b}}function rte(b){var E=b.alternate;E!==null&&(b.alternate=null,rte(E)),b.child=null,b.deletions=null,b.sibling=null,b.tag===5&&(E=b.stateNode,E!==null&&(delete E[wu],delete E[xv],delete E[cI],delete E[n9e],delete E[r9e])),b.stateNode=null,b.return=null,b.dependencies=null,b.memoizedProps=null,b.memoizedState=null,b.pendingProps=null,b.stateNode=null,b.updateQueue=null}function ate(b){return b.tag===5||b.tag===3||b.tag===4}function ite(b){e:for(;;){for(;b.sibling===null;){if(b.return===null||ate(b.return))return null;b=b.return}for(b.sibling.return=b.return,b=b.sibling;b.tag!==5&&b.tag!==6&&b.tag!==18;){if(b.flags&2||b.child===null||b.tag===4)continue e;b.child.return=b,b=b.child}if(!(b.flags&2))return b.stateNode}}function WI(b,E,N){var j=b.tag;if(j===5||j===6)b=b.stateNode,E?N.nodeType===8?N.parentNode.insertBefore(b,E):N.insertBefore(b,E):(N.nodeType===8?(E=N.parentNode,E.insertBefore(b,N)):(E=N,E.appendChild(b)),N=N._reactRootContainer,N!=null||E.onclick!==null||(E.onclick=rT));else if(j!==4&&(b=b.child,b!==null))for(WI(b,E,N),b=b.sibling;b!==null;)WI(b,E,N),b=b.sibling}function GI(b,E,N){var j=b.tag;if(j===5||j===6)b=b.stateNode,E?N.insertBefore(b,E):N.appendChild(b);else if(j!==4&&(b=b.child,b!==null))for(GI(b,E,N),b=b.sibling;b!==null;)GI(b,E,N),b=b.sibling}var Ro=null,Uc=!1;function Zf(b,E,N){for(N=N.child;N!==null;)ote(b,E,N),N=N.sibling}function ote(b,E,N){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(dt,N)}catch{}switch(N.tag){case 5:Go||eO(N,E);case 6:var j=Ro,V=Uc;Ro=null,Zf(b,E,N),Ro=j,Uc=V,Ro!==null&&(Uc?(b=Ro,N=N.stateNode,b.nodeType===8?b.parentNode.removeChild(N):b.removeChild(N)):Ro.removeChild(N.stateNode));break;case 18:Ro!==null&&(Uc?(b=Ro,N=N.stateNode,b.nodeType===8?lI(b.parentNode,N):b.nodeType===1&&lI(b,N),Uf(b)):lI(Ro,N.stateNode));break;case 4:j=Ro,V=Uc,Ro=N.stateNode.containerInfo,Uc=!0,Zf(b,E,N),Ro=j,Uc=V;break;case 0:case 11:case 14:case 15:if(!Go&&(j=N.updateQueue,j!==null&&(j=j.lastEffect,j!==null))){V=j=j.next;do{var K=V,pe=K.destroy;K=K.tag,pe!==void 0&&((K&2)!==0||(K&4)!==0)&&VI(N,E,pe),V=V.next}while(V!==j)}Zf(b,E,N);break;case 1:if(!Go&&(eO(N,E),j=N.stateNode,typeof j.componentWillUnmount=="function"))try{j.props=N.memoizedProps,j.state=N.memoizedState,j.componentWillUnmount()}catch(Ce){Si(N,E,Ce)}Zf(b,E,N);break;case 21:Zf(b,E,N);break;case 22:N.mode&1?(Go=(j=Go)||N.memoizedState!==null,Zf(b,E,N),Go=j):Zf(b,E,N);break;default:Zf(b,E,N)}}function ste(b){var E=b.updateQueue;if(E!==null){b.updateQueue=null;var N=b.stateNode;N===null&&(N=b.stateNode=new v9e),E.forEach(function(j){var V=R9e.bind(null,b,j);N.has(j)||(N.add(j),j.then(V,V))})}}function jc(b,E){var N=E.deletions;if(N!==null)for(var j=0;jV&&(V=pe),j&=~K}if(j=V,j=yt()-j,j=(120>j?120:480>j?480:1080>j?1080:1920>j?1920:3e3>j?3e3:4320>j?4320:1960*_9e(j/1960))-j,10b?16:b,Jf===null)var j=!1;else{if(b=Jf,Jf=null,kT=0,(oa&6)!==0)throw Error(n(331));var V=oa;for(oa|=4,Pn=b.current;Pn!==null;){var K=Pn,pe=K.child;if((Pn.flags&16)!==0){var Ce=K.deletions;if(Ce!==null){for(var Be=0;Beyt()-KI?Im(b,0):ZI|=N),Xs(b,E)}function yte(b,E){E===0&&((b.mode&1)===0?E=1:(E=ra,ra<<=1,(ra&130023424)===0&&(ra=4194304)));var N=Ss();b=Qd(b,E),b!==null&&(or(b,E,N),Xs(b,N))}function $9e(b){var E=b.memoizedState,N=0;E!==null&&(N=E.retryLane),yte(b,N)}function R9e(b,E){var N=0;switch(b.tag){case 13:var j=b.stateNode,V=b.memoizedState;V!==null&&(N=V.retryLane);break;case 19:j=b.stateNode;break;default:throw Error(n(314))}j!==null&&j.delete(E),yte(b,N)}var Ste;Ste=function(b,E,N){if(b!==null)if(b.memoizedProps!==E.pendingProps||Bs.current)Us=!0;else{if((b.lanes&N)===0&&(E.flags&128)===0)return Us=!1,g9e(b,E,N);Us=(b.flags&131072)!==0}else Us=!1,ti&&(E.flags&1048576)!==0&&eee(E,cT,E.index);switch(E.lanes=0,E.tag){case 2:var j=E.type;xT(b,E),b=E.pendingProps;var V=Yg(E,Vo.current);Zg(E,N),V=RI(null,E,j,b,V,N);var K=PI();return E.flags|=1,typeof V=="object"&&V!==null&&typeof V.render=="function"&&V.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Fs(j)?(K=!0,oT(E)):K=!1,E.memoizedState=V.state!==null&&V.state!==void 0?V.state:null,_I(E),V.updater=_T,E.stateNode=V,V._reactInternals=E,DI(E,j,b,N),E=BI(null,E,j,!0,K,N)):(E.tag=0,ti&&K&&fI(E),ys(null,E,V,N),E=E.child),E;case 16:j=E.elementType;e:{switch(xT(b,E),b=E.pendingProps,V=j._init,j=V(j._payload),E.type=j,V=E.tag=k9e(j),b=Fc(j,b),V){case 0:E=zI(null,E,j,b,N);break e;case 1:E=qee(null,E,j,b,N);break e;case 11:E=Uee(null,E,j,b,N);break e;case 14:E=jee(null,E,j,Fc(j.type,b),N);break e}throw Error(n(306,j,""))}return E;case 0:return j=E.type,V=E.pendingProps,V=E.elementType===j?V:Fc(j,V),zI(b,E,j,V,N);case 1:return j=E.type,V=E.pendingProps,V=E.elementType===j?V:Fc(j,V),qee(b,E,j,V,N);case 3:e:{if(Wee(E),b===null)throw Error(n(387));j=E.pendingProps,K=E.memoizedState,V=K.element,cee(b,E),hT(E,j,null,N);var pe=E.memoizedState;if(j=pe.element,K.isDehydrated)if(K={element:j,isDehydrated:!1,cache:pe.cache,pendingSuspenseBoundaries:pe.pendingSuspenseBoundaries,transitions:pe.transitions},E.updateQueue.baseState=K,E.memoizedState=K,E.flags&256){V=Jg(Error(n(423)),E),E=Gee(b,E,j,N,V);break e}else if(j!==V){V=Jg(Error(n(424)),E),E=Gee(b,E,j,N,V);break e}else for(Ol=Yf(E.stateNode.containerInfo.firstChild),gl=E,ti=!0,Bc=null,N=see(E,null,j,N),E.child=N;N;)N.flags=N.flags&-3|4096,N=N.sibling;else{if(Wg(),j===V){E=Bd(b,E,N);break e}ys(b,E,j,N)}E=E.child}return E;case 5:return fee(E),b===null&&hI(E),j=E.type,V=E.pendingProps,K=b!==null?b.memoizedProps:null,pe=V.children,oI(j,V)?pe=null:K!==null&&oI(j,K)&&(E.flags|=32),Vee(b,E),ys(b,E,pe,N),E.child;case 6:return b===null&&hI(E),null;case 13:return Hee(b,E,N);case 4:return EI(E,E.stateNode.containerInfo),j=E.pendingProps,b===null?E.child=Gg(E,null,j,N):ys(b,E,j,N),E.child;case 11:return j=E.type,V=E.pendingProps,V=E.elementType===j?V:Fc(j,V),Uee(b,E,j,V,N);case 7:return ys(b,E,E.pendingProps,N),E.child;case 8:return ys(b,E,E.pendingProps.children,N),E.child;case 12:return ys(b,E,E.pendingProps.children,N),E.child;case 10:e:{if(j=E.type._context,V=E.pendingProps,K=E.memoizedProps,pe=V.value,ja(fT,j._currentValue),j._currentValue=pe,K!==null)if(zc(K.value,pe)){if(K.children===V.children&&!Bs.current){E=Bd(b,E,N);break e}}else for(K=E.child,K!==null&&(K.return=E);K!==null;){var Ce=K.dependencies;if(Ce!==null){pe=K.child;for(var Be=Ce.firstContext;Be!==null;){if(Be.context===j){if(K.tag===1){Be=zd(-1,N&-N),Be.tag=2;var ct=K.updateQueue;if(ct!==null){ct=ct.shared;var zt=ct.pending;zt===null?Be.next=Be:(Be.next=zt.next,zt.next=Be),ct.pending=Be}}K.lanes|=N,Be=K.alternate,Be!==null&&(Be.lanes|=N),yI(K.return,N,E),Ce.lanes|=N;break}Be=Be.next}}else if(K.tag===10)pe=K.type===E.type?null:K.child;else if(K.tag===18){if(pe=K.return,pe===null)throw Error(n(341));pe.lanes|=N,Ce=pe.alternate,Ce!==null&&(Ce.lanes|=N),yI(pe,N,E),pe=K.sibling}else pe=K.child;if(pe!==null)pe.return=K;else for(pe=K;pe!==null;){if(pe===E){pe=null;break}if(K=pe.sibling,K!==null){K.return=pe.return,pe=K;break}pe=pe.return}K=pe}ys(b,E,V.children,N),E=E.child}return E;case 9:return V=E.type,j=E.pendingProps.children,Zg(E,N),V=rc(V),j=j(V),E.flags|=1,ys(b,E,j,N),E.child;case 14:return j=E.type,V=Fc(j,E.pendingProps),V=Fc(j.type,V),jee(b,E,j,V,N);case 15:return Xee(b,E,E.type,E.pendingProps,N);case 17:return j=E.type,V=E.pendingProps,V=E.elementType===j?V:Fc(j,V),xT(b,E),E.tag=1,Fs(j)?(b=!0,oT(E)):b=!1,Zg(E,N),Mee(E,j,V),DI(E,j,V,N),BI(null,E,j,!0,b,N);case 19:return Kee(b,E,N);case 22:return Yee(b,E,N)}throw Error(n(156,E.tag))};function _te(b,E){return Bt(b,E)}function P9e(b,E,N,j){this.tag=b,this.key=N,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=E,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=j,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oc(b,E,N,j){return new P9e(b,E,N,j)}function o4(b){return b=b.prototype,!(!b||!b.isReactComponent)}function k9e(b){if(typeof b=="function")return o4(b)?1:0;if(b!=null){if(b=b.$$typeof,b===Q)return 11;if(b===U)return 14}return 2}function np(b,E){var N=b.alternate;return N===null?(N=oc(b.tag,E,b.key,b.mode),N.elementType=b.elementType,N.type=b.type,N.stateNode=b.stateNode,N.alternate=b,b.alternate=N):(N.pendingProps=E,N.type=b.type,N.flags=0,N.subtreeFlags=0,N.deletions=null),N.flags=b.flags&14680064,N.childLanes=b.childLanes,N.lanes=b.lanes,N.child=b.child,N.memoizedProps=b.memoizedProps,N.memoizedState=b.memoizedState,N.updateQueue=b.updateQueue,E=b.dependencies,N.dependencies=E===null?null:{lanes:E.lanes,firstContext:E.firstContext},N.sibling=b.sibling,N.index=b.index,N.ref=b.ref,N}function MT(b,E,N,j,V,K){var pe=2;if(j=b,typeof b=="function")o4(b)&&(pe=1);else if(typeof b=="string")pe=5;else e:switch(b){case T:return Dm(N.children,V,K,E);case A:pe=8,V|=8;break;case k:return b=oc(12,N,E,V|2),b.elementType=k,b.lanes=K,b;case F:return b=oc(13,N,E,V),b.elementType=F,b.lanes=K,b;case L:return b=oc(19,N,E,V),b.elementType=L,b.lanes=K,b;case $:return DT(N,V,K,E);default:if(typeof b=="object"&&b!==null)switch(b.$$typeof){case I:pe=10;break e;case M:pe=9;break e;case Q:pe=11;break e;case U:pe=14;break e;case R:pe=16,j=null;break e}throw Error(n(130,b==null?b:typeof b,""))}return E=oc(pe,N,E,V),E.elementType=b,E.type=j,E.lanes=K,E}function Dm(b,E,N,j){return b=oc(7,b,j,E),b.lanes=N,b}function DT(b,E,N,j){return b=oc(22,b,j,E),b.elementType=$,b.lanes=N,b.stateNode={isHidden:!1},b}function s4(b,E,N){return b=oc(6,b,null,E),b.lanes=N,b}function l4(b,E,N){return E=oc(4,b.children!==null?b.children:[],b.key,E),E.lanes=N,E.stateNode={containerInfo:b.containerInfo,pendingChildren:null,implementation:b.implementation},E}function A9e(b,E,N,j,V){this.tag=E,this.containerInfo=b,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=j,this.onRecoverableError=V,this.mutableSourceEagerHydrationData=null}function c4(b,E,N,j,V,K,pe,Ce,Be){return b=new A9e(b,E,N,Ce,Be),E===1?(E=1,K===!0&&(E|=8)):E=0,K=oc(3,null,null,E),b.current=K,K.stateNode=b,K.memoizedState={element:j,isDehydrated:N,cache:null,transitions:null,pendingSuspenseBoundaries:null},_I(K),b}function N9e(b,E,N){var j=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),h4.exports=q9e(),h4.exports}var Dte;function W9e(){if(Dte)return XT;Dte=1;var e=y1e();return XT.createRoot=e.createRoot,XT.hydrateRoot=e.hydrateRoot,XT}var G9e=W9e();function Sa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ut(e){"@babel/helpers - typeof";return Ut=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},Ut(e)}function H9e(e,t){if(Ut(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ut(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function S1e(e){var t=H9e(e,"string");return Ut(t)=="symbol"?t:t+""}function Lte(e,t){for(var n=0;n0?Qo(yb,--sl):0,M0--,Bi===10&&(M0=1,qP--),Bi}function Dl(){return Bi=sl2||r_(Bi)>3?"":" "}function uze(e,t){for(;--t&&Dl()&&!(Bi<48||Bi>102||Bi>57&&Bi<65||Bi>70&&Bi<97););return ME(e,t2()+(t<6&&ad()==32&&Dl()==32))}function c7(e){for(;Dl();)switch(Bi){case e:return sl;case 34:case 39:e!==34&&e!==39&&c7(Bi);break;case 40:e===41&&c7(e);break;case 92:Dl();break}return sl}function dze(e,t){for(;Dl()&&e+Bi!==57;)if(e+Bi===84&&ad()===47)break;return"/*"+ME(t,sl-1)+"*"+VP(e===47?e:Dl())}function fze(e){for(;!r_(ad());)Dl();return ME(e,sl)}function pze(e){return C1e(r2("",null,null,null,[""],e=w1e(e),0,[0],e))}function r2(e,t,n,r,a,i,o,s,l){for(var c=0,u=0,d=o,f=0,m=0,h=0,g=1,O=1,v=1,y=0,S="",C=a,_=i,w=r,T=S;O;)switch(h=y,y=Dl()){case 40:if(h!=108&&Qo(T,d-1)==58){l7(T+=va(n2(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=n2(y);break;case 9:case 10:case 13:case 32:T+=cze(h);break;case 92:T+=uze(t2()-1,7);continue;case 47:switch(ad()){case 42:case 47:YT(mze(dze(Dl(),t2()),t,n),l);break;default:T+="/"}break;case 123*g:s[c++]=Uu(T)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:O=0;case 59+u:v==-1&&(T=va(T,/\f/g,"")),m>0&&Uu(T)-d&&YT(m>32?zte(T+";",r,n,d-1):zte(va(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(YT(w=Qte(T,t,n,c,u,a,s,S,C=[],_=[],d),i),y===123)if(u===0)r2(T,t,w,w,C,i,d,s,_);else switch(f===99&&Qo(T,3)===110?100:f){case 100:case 108:case 109:case 115:r2(e,w,w,r&&YT(Qte(e,w,w,0,0,a,s,S,a,C=[],d),_),a,_,d,s,r?C:_);break;default:r2(T,w,w,w,[""],_,0,s,_)}}c=u=m=0,g=v=1,S=T="",d=o;break;case 58:d=1+Uu(T),m=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&lze()==125)continue}switch(T+=VP(y),y*g){case 38:v=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(Uu(T)-1)*v,v=1;break;case 64:ad()===45&&(T+=n2(Dl())),f=ad(),u=d=Uu(S=T+=fze(t2())),y++;break;case 45:h===45&&Uu(T)==2&&(g=0)}}return i}function Qte(e,t,n,r,a,i,o,s,l,c,u){for(var d=a-1,f=a===0?i:[""],m=LU(f),h=0,g=0,O=0;h0?f[v]+" "+y:va(y,/&\f/g,f[v])))&&(l[O++]=S);return WP(e,t,n,a===0?MU:s,l,c,u)}function mze(e,t,n){return WP(e,t,n,_1e,VP(sze()),n_(e,2,-2),0)}function zte(e,t,n,r){return WP(e,t,n,DU,n_(e,0,r),n_(e,r+1,-1),r)}function o0(e,t){for(var n="",r=LU(e),a=0;a6)switch(Qo(e,t+1)){case 109:if(Qo(e,t+4)!==45)break;case 102:return va(e,/(.+:)(.+)-([^]+)/,"$1"+Oa+"$2-$3$1"+g$+(Qo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~l7(e,"stretch")?$1e(va(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Qo(e,t+1)!==115)break;case 6444:switch(Qo(e,Uu(e)-3-(~l7(e,"!important")&&10))){case 107:return va(e,":",":"+Oa)+e;case 101:return va(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Oa+(Qo(e,14)===45?"inline-":"")+"box$3$1"+Oa+"$2$3$1"+Zo+"$2box$3")+e}break;case 5936:switch(Qo(e,t+11)){case 114:return Oa+e+Zo+va(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Oa+e+Zo+va(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Oa+e+Zo+va(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Oa+e+Zo+e+e}return e}var xze=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case DU:t.return=$1e(t.value,t.length);break;case E1e:return o0([Fv(t,{value:va(t.value,"@","@"+Oa)})],a);case MU:if(t.length)return oze(t.props,function(i){switch(ize(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return o0([Fv(t,{props:[va(i,/:(read-\w+)/,":"+g$+"$1")]})],a);case"::placeholder":return o0([Fv(t,{props:[va(i,/:(plac\w+)/,":"+Oa+"input-$1")]}),Fv(t,{props:[va(i,/:(plac\w+)/,":"+g$+"$1")]}),Fv(t,{props:[va(i,/:(plac\w+)/,Zo+"input-$1")]})],a)}return""})}},Tze=[xze],R1e=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var O=g.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=t.stylisPlugins||Tze,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var O=g.getAttribute("data-emotion").split(" "),v=1;v=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)}var Cze={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},$ze=/[A-Z]|^ms/g,Rze=/_EMO_([^_]+?)_([^]*?)_EMO_/g,P1e=function(t){return t.charCodeAt(1)===45},Ute=function(t){return t!=null&&typeof t!="boolean"},b4=bze(function(e){return P1e(e)?e:e.replace($ze,"-$&").toLowerCase()}),jte=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Rze,function(r,a,i){return ju={name:a,styles:i,next:ju},a})}return Cze[t]!==1&&!P1e(t)&&typeof n=="number"&&n!==0?n+"px":n};function a_(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return ju={name:a.name,styles:a.styles,next:ju},a.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)ju={name:o.name,styles:o.styles,next:ju},o=o.next;var s=i.styles+";";return s}return Pze(e,t,n)}case"function":{if(e!==void 0){var l=ju,c=n(e);return ju=l,a_(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Pze(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},d={};function f(b){return l.call(d,b)?!0:l.call(u,b)?!1:c.test(b)?d[b]=!0:(u[b]=!0,!1)}function m(b,E,N,j){if(N!==null&&N.type===0)return!1;switch(typeof E){case"function":case"symbol":return!0;case"boolean":return j?!1:N!==null?!N.acceptsBooleans:(b=b.toLowerCase().slice(0,5),b!=="data-"&&b!=="aria-");default:return!1}}function h(b,E,N,j){if(E===null||typeof E>"u"||m(b,E,N,j))return!0;if(j)return!1;if(N!==null)switch(N.type){case 3:return!E;case 4:return E===!1;case 5:return isNaN(E);case 6:return isNaN(E)||1>E}return!1}function g(b,E,N,j,V,J,he){this.acceptsBooleans=E===2||E===3||E===4,this.attributeName=j,this.attributeNamespace=V,this.mustUseProperty=N,this.propertyName=b,this.type=E,this.sanitizeURL=J,this.removeEmptyString=he}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(b){O[b]=new g(b,0,!1,b,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(b){var E=b[0];O[E]=new g(E,1,!1,b[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(b){O[b]=new g(b,2,!1,b.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(b){O[b]=new g(b,2,!1,b,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(b){O[b]=new g(b,3,!1,b.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(b){O[b]=new g(b,3,!0,b,null,!1,!1)}),["capture","download"].forEach(function(b){O[b]=new g(b,4,!1,b,null,!1,!1)}),["cols","rows","size","span"].forEach(function(b){O[b]=new g(b,6,!1,b,null,!1,!1)}),["rowSpan","start"].forEach(function(b){O[b]=new g(b,5,!1,b.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(b){return b[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(b){var E=b.replace(v,y);O[E]=new g(E,1,!1,b,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(b){var E=b.replace(v,y);O[E]=new g(E,1,!1,b,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(b){var E=b.replace(v,y);O[E]=new g(E,1,!1,b,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(b){O[b]=new g(b,1,!1,b.toLowerCase(),null,!1,!1)}),O.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(b){O[b]=new g(b,1,!1,b.toLowerCase(),null,!0,!0)});function S(b,E,N,j){var V=O.hasOwnProperty(E)?O[E]:null;(V!==null?V.type!==0:j||!(2Pe||V[he]!==J[Pe]){var Ue=` +`+V[he].replace(" at new "," at ");return b.displayName&&Ue.includes("")&&(Ue=Ue.replace("",b.displayName)),Ue}while(1<=he&&0<=Pe);break}}}finally{Y=!1,Error.prepareStackTrace=N}return(b=b?b.displayName||b.name:"")?X(b):""}function G(b){switch(b.tag){case 5:return X(b.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return b=q(b.type,!1),b;case 11:return b=q(b.type.render,!1),b;case 1:return b=q(b.type,!0),b;default:return""}}function ee(b){if(b==null)return null;if(typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case T:return"Fragment";case w:return"Portal";case A:return"Profiler";case k:return"StrictMode";case B:return"Suspense";case D:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case M:return(b.displayName||"Context")+".Consumer";case I:return(b._context.displayName||"Context")+".Provider";case Q:var E=b.render;return b=b.displayName,b||(b=E.displayName||E.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case U:return E=b.displayName||null,E!==null?E:ee(b.type)||"Memo";case R:E=b._payload,b=b._init;try{return ee(b(E))}catch{}}return null}function K(b){var E=b.type;switch(b.tag){case 24:return"Cache";case 9:return(E.displayName||"Context")+".Consumer";case 10:return(E._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return b=E.render,b=b.displayName||b.name||"",E.displayName||(b!==""?"ForwardRef("+b+")":"ForwardRef");case 7:return"Fragment";case 5:return E;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ee(E);case 8:return E===k?"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 E=="function")return E.displayName||E.name||null;if(typeof E=="string")return E}return null}function ne(b){switch(typeof b){case"boolean":case"number":case"string":case"undefined":return b;case"object":return b;default:return""}}function ie(b){var E=b.type;return(b=b.nodeName)&&b.toLowerCase()==="input"&&(E==="checkbox"||E==="radio")}function se(b){var E=ie(b)?"checked":"value",N=Object.getOwnPropertyDescriptor(b.constructor.prototype,E),j=""+b[E];if(!b.hasOwnProperty(E)&&typeof N<"u"&&typeof N.get=="function"&&typeof N.set=="function"){var V=N.get,J=N.set;return Object.defineProperty(b,E,{configurable:!0,get:function(){return V.call(this)},set:function(he){j=""+he,J.call(this,he)}}),Object.defineProperty(b,E,{enumerable:N.enumerable}),{getValue:function(){return j},setValue:function(he){j=""+he},stopTracking:function(){b._valueTracker=null,delete b[E]}}}}function ue(b){b._valueTracker||(b._valueTracker=se(b))}function ce(b){if(!b)return!1;var E=b._valueTracker;if(!E)return!0;var N=E.getValue(),j="";return b&&(j=ie(b)?b.checked?"true":"false":b.value),b=j,b!==N?(E.setValue(b),!0):!1}function be(b){if(b=b||(typeof document<"u"?document:void 0),typeof b>"u")return null;try{return b.activeElement||b.body}catch{return b.body}}function ge(b,E){var N=E.checked;return F({},E,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:N??b._wrapperState.initialChecked})}function Oe(b,E){var N=E.defaultValue==null?"":E.defaultValue,j=E.checked!=null?E.checked:E.defaultChecked;N=ne(E.value!=null?E.value:N),b._wrapperState={initialChecked:j,initialValue:N,controlled:E.type==="checkbox"||E.type==="radio"?E.checked!=null:E.value!=null}}function me(b,E){E=E.checked,E!=null&&S(b,"checked",E,!1)}function Te(b,E){me(b,E);var N=ne(E.value),j=E.type;if(N!=null)j==="number"?(N===0&&b.value===""||b.value!=N)&&(b.value=""+N):b.value!==""+N&&(b.value=""+N);else if(j==="submit"||j==="reset"){b.removeAttribute("value");return}E.hasOwnProperty("value")?Fe(b,E.type,N):E.hasOwnProperty("defaultValue")&&Fe(b,E.type,ne(E.defaultValue)),E.checked==null&&E.defaultChecked!=null&&(b.defaultChecked=!!E.defaultChecked)}function Ce(b,E,N){if(E.hasOwnProperty("value")||E.hasOwnProperty("defaultValue")){var j=E.type;if(!(j!=="submit"&&j!=="reset"||E.value!==void 0&&E.value!==null))return;E=""+b._wrapperState.initialValue,N||E===b.value||(b.value=E),b.defaultValue=E}N=b.name,N!==""&&(b.name=""),b.defaultChecked=!!b._wrapperState.initialChecked,N!==""&&(b.name=N)}function Fe(b,E,N){(E!=="number"||be(b.ownerDocument)!==b)&&(N==null?b.defaultValue=""+b._wrapperState.initialValue:b.defaultValue!==""+N&&(b.defaultValue=""+N))}var Me=Array.isArray;function Ee(b,E,N,j){if(b=b.options,E){E={};for(var V=0;V"+E.valueOf().toString()+"",E=st.firstChild;b.firstChild;)b.removeChild(b.firstChild);for(;E.firstChild;)b.appendChild(E.firstChild)}});function pt(b,E){if(E){var N=b.firstChild;if(N&&N===b.lastChild&&N.nodeType===3){N.nodeValue=E;return}}b.textContent=E}var Ze={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},De=["Webkit","ms","Moz","O"];Object.keys(Ze).forEach(function(b){De.forEach(function(E){E=E+b.charAt(0).toUpperCase()+b.substring(1),Ze[E]=Ze[b]})});function Ke(b,E,N){return E==null||typeof E=="boolean"||E===""?"":N||typeof E!="number"||E===0||Ze.hasOwnProperty(b)&&Ze[b]?(""+E).trim():E+"px"}function Be(b,E){b=b.style;for(var N in E)if(E.hasOwnProperty(N)){var j=N.indexOf("--")===0,V=Ke(N,E[N],j);N==="float"&&(N="cssFloat"),j?b.setProperty(N,V):b[N]=V}}var We=F({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 Re(b,E){if(E){if(We[b]&&(E.children!=null||E.dangerouslySetInnerHTML!=null))throw Error(n(137,b));if(E.dangerouslySetInnerHTML!=null){if(E.children!=null)throw Error(n(60));if(typeof E.dangerouslySetInnerHTML!="object"||!("__html"in E.dangerouslySetInnerHTML))throw Error(n(61))}if(E.style!=null&&typeof E.style!="object")throw Error(n(62))}}function Ie(b,E){if(b.indexOf("-")===-1)return typeof E.is=="string";switch(b){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 ve=null;function we(b){return b=b.target||b.srcElement||window,b.correspondingUseElement&&(b=b.correspondingUseElement),b.nodeType===3?b.parentNode:b}var Xe=null,rt=null,at=null;function ct(b){if(b=Pv(b)){if(typeof Xe!="function")throw Error(n(280));var E=b.stateNode;E&&(E=uT(E),Xe(b.stateNode,b.type,E))}}function mt(b){rt?at?at.push(b):at=[b]:rt=b}function je(){if(rt){var b=rt,E=at;if(at=rt=null,ct(b),E)for(b=0;b>>=0,b===0?32:31-(ua(b)/Gr|0)|0}var Hr=64,aa=4194304;function Pa(b){switch(b&-b){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 b&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return b&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return b}}function xr(b,E){var N=b.pendingLanes;if(N===0)return 0;var j=0,V=b.suspendedLanes,J=b.pingedLanes,he=N&268435455;if(he!==0){var Pe=he&~V;Pe!==0?j=Pa(Pe):(J&=he,J!==0&&(j=Pa(J)))}else he=N&~V,he!==0?j=Pa(he):J!==0&&(j=Pa(J));if(j===0)return 0;if(E!==0&&E!==j&&(E&V)===0&&(V=j&-j,J=E&-E,V>=J||V===16&&(J&4194240)!==0))return E;if((j&4)!==0&&(j|=N&16),E=b.entangledLanes,E!==0)for(b=b.entanglements,E&=j;0N;N++)E.push(b);return E}function or(b,E,N){b.pendingLanes|=E,E!==536870912&&(b.suspendedLanes=0,b.pingedLanes=0),b=b.eventTimes,E=31-rr(E),b[E]=N}function Zr(b,E){var N=b.pendingLanes&~E;b.pendingLanes=E,b.suspendedLanes=0,b.pingedLanes=0,b.expiredLanes&=E,b.mutableReadLanes&=E,b.entangledLanes&=E,E=b.entanglements;var j=b.eventTimes;for(b=b.expirationTimes;0=Sv),YJ=" ",VJ=!1;function qJ(b,E){switch(b){case"keyup":return u9e.indexOf(E.keyCode)!==-1;case"keydown":return E.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WJ(b){return b=b.detail,typeof b=="object"&&"data"in b?b.data:null}var Vg=!1;function f9e(b,E){switch(b){case"compositionend":return WJ(E);case"keypress":return E.which!==32?null:(VJ=!0,YJ);case"textInput":return b=E.data,b===YJ&&VJ?null:b;default:return null}}function p9e(b,E){if(Vg)return b==="compositionend"||!iI&&qJ(b,E)?(b=zJ(),Jx=JN=Gf=null,Vg=!1,b):null;switch(b){case"paste":return null;case"keypress":if(!(E.ctrlKey||E.altKey||E.metaKey)||E.ctrlKey&&E.altKey){if(E.char&&1=E)return{node:N,offset:E-b};b=j}e:{for(;N;){if(N.nextSibling){N=N.nextSibling;break e}N=N.parentNode}N=void 0}N=tee(N)}}function ree(b,E){return b&&E?b===E?!0:b&&b.nodeType===3?!1:E&&E.nodeType===3?ree(b,E.parentNode):"contains"in b?b.contains(E):b.compareDocumentPosition?!!(b.compareDocumentPosition(E)&16):!1:!1}function aee(){for(var b=window,E=be();E instanceof b.HTMLIFrameElement;){try{var N=typeof E.contentWindow.location.href=="string"}catch{N=!1}if(N)b=E.contentWindow;else break;E=be(b.document)}return E}function lI(b){var E=b&&b.nodeName&&b.nodeName.toLowerCase();return E&&(E==="input"&&(b.type==="text"||b.type==="search"||b.type==="tel"||b.type==="url"||b.type==="password")||E==="textarea"||b.contentEditable==="true")}function _9e(b){var E=aee(),N=b.focusedElem,j=b.selectionRange;if(E!==N&&N&&N.ownerDocument&&ree(N.ownerDocument.documentElement,N)){if(j!==null&&lI(N)){if(E=j.start,b=j.end,b===void 0&&(b=E),"selectionStart"in N)N.selectionStart=E,N.selectionEnd=Math.min(b,N.value.length);else if(b=(E=N.ownerDocument||document)&&E.defaultView||window,b.getSelection){b=b.getSelection();var V=N.textContent.length,J=Math.min(j.start,V);j=j.end===void 0?J:Math.min(j.end,V),!b.extend&&J>j&&(V=j,j=J,J=V),V=nee(N,J);var he=nee(N,j);V&&he&&(b.rangeCount!==1||b.anchorNode!==V.node||b.anchorOffset!==V.offset||b.focusNode!==he.node||b.focusOffset!==he.offset)&&(E=E.createRange(),E.setStart(V.node,V.offset),b.removeAllRanges(),J>j?(b.addRange(E),b.extend(he.node,he.offset)):(E.setEnd(he.node,he.offset),b.addRange(E)))}}for(E=[],b=N;b=b.parentNode;)b.nodeType===1&&E.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N=document.documentMode,qg=null,cI=null,Tv=null,uI=!1;function iee(b,E,N){var j=N.window===N?N.document:N.nodeType===9?N:N.ownerDocument;uI||qg==null||qg!==be(j)||(j=qg,"selectionStart"in j&&lI(j)?j={start:j.selectionStart,end:j.selectionEnd}:(j=(j.ownerDocument&&j.ownerDocument.defaultView||window).getSelection(),j={anchorNode:j.anchorNode,anchorOffset:j.anchorOffset,focusNode:j.focusNode,focusOffset:j.focusOffset}),Tv&&xv(Tv,j)||(Tv=j,j=sT(cI,"onSelect"),0Kg||(b.current=_I[Kg],_I[Kg]=null,Kg--)}function Xa(b,E){Kg++,_I[Kg]=b.current,b.current=E}var Jf={},Yo=Kf(Jf),Fs=Kf(!1),Am=Jf;function Jg(b,E){var N=b.type.contextTypes;if(!N)return Jf;var j=b.stateNode;if(j&&j.__reactInternalMemoizedUnmaskedChildContext===E)return j.__reactInternalMemoizedMaskedChildContext;var V={},J;for(J in N)V[J]=E[J];return j&&(b=b.stateNode,b.__reactInternalMemoizedUnmaskedChildContext=E,b.__reactInternalMemoizedMaskedChildContext=V),V}function Us(b){return b=b.childContextTypes,b!=null}function dT(){Ka(Fs),Ka(Yo)}function yee(b,E,N){if(Yo.current!==Jf)throw Error(n(168));Xa(Yo,E),Xa(Fs,N)}function See(b,E,N){var j=b.stateNode;if(E=E.childContextTypes,typeof j.getChildContext!="function")return N;j=j.getChildContext();for(var V in j)if(!(V in E))throw Error(n(108,K(b)||"Unknown",V));return F({},N,j)}function fT(b){return b=(b=b.stateNode)&&b.__reactInternalMemoizedMergedChildContext||Jf,Am=Yo.current,Xa(Yo,b),Xa(Fs,Fs.current),!0}function _ee(b,E,N){var j=b.stateNode;if(!j)throw Error(n(169));N?(b=See(b,E,Am),j.__reactInternalMemoizedMergedChildContext=b,Ka(Fs),Ka(Yo),Xa(Yo,b)):Ka(Fs),Xa(Fs,N)}var Fd=null,pT=!1,EI=!1;function Eee(b){Fd===null?Fd=[b]:Fd.push(b)}function I9e(b){pT=!0,Eee(b)}function ep(){if(!EI&&Fd!==null){EI=!0;var b=0,E=Kn;try{var N=Fd;for(Kn=1;b>=he,V-=he,Ud=1<<32-rr(E)+V|N<br?(mo=lr,lr=null):mo=lr.sibling;var da=zt(it,lr,ot[br],an);if(da===null){lr===null&&(lr=mo);break}b&&lr&&da.alternate===null&&E(it,lr),Ge=J(da,Ge,br),sr===null?Yn=da:sr.sibling=da,sr=da,lr=mo}if(br===ot.length)return N(it,lr),ni&&Im(it,br),Yn;if(lr===null){for(;brbr?(mo=lr,lr=null):mo=lr.sibling;var cp=zt(it,lr,da.value,an);if(cp===null){lr===null&&(lr=mo);break}b&&lr&&cp.alternate===null&&E(it,lr),Ge=J(cp,Ge,br),sr===null?Yn=cp:sr.sibling=cp,sr=cp,lr=mo}if(da.done)return N(it,lr),ni&&Im(it,br),Yn;if(lr===null){for(;!da.done;br++,da=ot.next())da=qt(it,da.value,an),da!==null&&(Ge=J(da,Ge,br),sr===null?Yn=da:sr.sibling=da,sr=da);return ni&&Im(it,br),Yn}for(lr=j(it,lr);!da.done;br++,da=ot.next())da=wn(lr,it,br,da.value,an),da!==null&&(b&&da.alternate!==null&&lr.delete(da.key===null?br:da.key),Ge=J(da,Ge,br),sr===null?Yn=da:sr.sibling=da,sr=da);return b&&lr.forEach(function(mze){return E(it,mze)}),ni&&Im(it,br),Yn}function Ri(it,Ge,ot,an){if(typeof ot=="object"&&ot!==null&&ot.type===T&&ot.key===null&&(ot=ot.props.children),typeof ot=="object"&&ot!==null){switch(ot.$$typeof){case _:e:{for(var Yn=ot.key,sr=Ge;sr!==null;){if(sr.key===Yn){if(Yn=ot.type,Yn===T){if(sr.tag===7){N(it,sr.sibling),Ge=V(sr,ot.props.children),Ge.return=it,it=Ge;break e}}else if(sr.elementType===Yn||typeof Yn=="object"&&Yn!==null&&Yn.$$typeof===R&&Ree(Yn)===sr.type){N(it,sr.sibling),Ge=V(sr,ot.props),Ge.ref=kv(it,sr,ot),Ge.return=it,it=Ge;break e}N(it,sr);break}else E(it,sr);sr=sr.sibling}ot.type===T?(Ge=Um(ot.props.children,it.mode,an,ot.key),Ge.return=it,it=Ge):(an=FT(ot.type,ot.key,ot.props,null,it.mode,an),an.ref=kv(it,Ge,ot),an.return=it,it=an)}return he(it);case w:e:{for(sr=ot.key;Ge!==null;){if(Ge.key===sr)if(Ge.tag===4&&Ge.stateNode.containerInfo===ot.containerInfo&&Ge.stateNode.implementation===ot.implementation){N(it,Ge.sibling),Ge=V(Ge,ot.children||[]),Ge.return=it,it=Ge;break e}else{N(it,Ge);break}else E(it,Ge);Ge=Ge.sibling}Ge=y4(ot,it.mode,an),Ge.return=it,it=Ge}return he(it);case R:return sr=ot._init,Ri(it,Ge,sr(ot._payload),an)}if(Me(ot))return Nn(it,Ge,ot,an);if(z(ot))return Bn(it,Ge,ot,an);OT(it,ot)}return typeof ot=="string"&&ot!==""||typeof ot=="number"?(ot=""+ot,Ge!==null&&Ge.tag===6?(N(it,Ge.sibling),Ge=V(Ge,ot),Ge.return=it,it=Ge):(N(it,Ge),Ge=v4(ot,it.mode,an),Ge.return=it,it=Ge),he(it)):N(it,Ge)}return Ri}var rO=Pee(!0),kee=Pee(!1),bT=Kf(null),vT=null,aO=null,RI=null;function PI(){RI=aO=vT=null}function kI(b){var E=bT.current;Ka(bT),b._currentValue=E}function AI(b,E,N){for(;b!==null;){var j=b.alternate;if((b.childLanes&E)!==E?(b.childLanes|=E,j!==null&&(j.childLanes|=E)):j!==null&&(j.childLanes&E)!==E&&(j.childLanes|=E),b===N)break;b=b.return}}function iO(b,E){vT=b,RI=aO=null,b=b.dependencies,b!==null&&b.firstContext!==null&&((b.lanes&E)!==0&&(js=!0),b.firstContext=null)}function rc(b){var E=b._currentValue;if(RI!==b)if(b={context:b,memoizedValue:E,next:null},aO===null){if(vT===null)throw Error(n(308));aO=b,vT.dependencies={lanes:0,firstContext:b}}else aO=aO.next=b;return E}var Mm=null;function NI(b){Mm===null?Mm=[b]:Mm.push(b)}function Aee(b,E,N,j){var V=E.interleaved;return V===null?(N.next=N,NI(E)):(N.next=V.next,V.next=N),E.interleaved=N,Xd(b,j)}function Xd(b,E){b.lanes|=E;var N=b.alternate;for(N!==null&&(N.lanes|=E),N=b,b=b.return;b!==null;)b.childLanes|=E,N=b.alternate,N!==null&&(N.childLanes|=E),N=b,b=b.return;return N.tag===3?N.stateNode:null}var tp=!1;function II(b){b.updateQueue={baseState:b.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nee(b,E){b=b.updateQueue,E.updateQueue===b&&(E.updateQueue={baseState:b.baseState,firstBaseUpdate:b.firstBaseUpdate,lastBaseUpdate:b.lastBaseUpdate,shared:b.shared,effects:b.effects})}function Yd(b,E){return{eventTime:b,lane:E,tag:0,payload:null,callback:null,next:null}}function np(b,E,N){var j=b.updateQueue;if(j===null)return null;if(j=j.shared,(sa&2)!==0){var V=j.pending;return V===null?E.next=E:(E.next=V.next,V.next=E),j.pending=E,Xd(b,N)}return V=j.interleaved,V===null?(E.next=E,NI(j)):(E.next=V.next,V.next=E),j.interleaved=E,Xd(b,N)}function yT(b,E,N){if(E=E.updateQueue,E!==null&&(E=E.shared,(N&4194240)!==0)){var j=E.lanes;j&=b.pendingLanes,N|=j,E.lanes=N,xn(b,N)}}function Iee(b,E){var N=b.updateQueue,j=b.alternate;if(j!==null&&(j=j.updateQueue,N===j)){var V=null,J=null;if(N=N.firstBaseUpdate,N!==null){do{var he={eventTime:N.eventTime,lane:N.lane,tag:N.tag,payload:N.payload,callback:N.callback,next:null};J===null?V=J=he:J=J.next=he,N=N.next}while(N!==null);J===null?V=J=E:J=J.next=E}else V=J=E;N={baseState:j.baseState,firstBaseUpdate:V,lastBaseUpdate:J,shared:j.shared,effects:j.effects},b.updateQueue=N;return}b=N.lastBaseUpdate,b===null?N.firstBaseUpdate=E:b.next=E,N.lastBaseUpdate=E}function ST(b,E,N,j){var V=b.updateQueue;tp=!1;var J=V.firstBaseUpdate,he=V.lastBaseUpdate,Pe=V.shared.pending;if(Pe!==null){V.shared.pending=null;var Ue=Pe,ft=Ue.next;Ue.next=null,he===null?J=ft:he.next=ft,he=Ue;var Ft=b.alternate;Ft!==null&&(Ft=Ft.updateQueue,Pe=Ft.lastBaseUpdate,Pe!==he&&(Pe===null?Ft.firstBaseUpdate=ft:Pe.next=ft,Ft.lastBaseUpdate=Ue))}if(J!==null){var qt=V.baseState;he=0,Ft=ft=Ue=null,Pe=J;do{var zt=Pe.lane,wn=Pe.eventTime;if((j&zt)===zt){Ft!==null&&(Ft=Ft.next={eventTime:wn,lane:0,tag:Pe.tag,payload:Pe.payload,callback:Pe.callback,next:null});e:{var Nn=b,Bn=Pe;switch(zt=E,wn=N,Bn.tag){case 1:if(Nn=Bn.payload,typeof Nn=="function"){qt=Nn.call(wn,qt,zt);break e}qt=Nn;break e;case 3:Nn.flags=Nn.flags&-65537|128;case 0:if(Nn=Bn.payload,zt=typeof Nn=="function"?Nn.call(wn,qt,zt):Nn,zt==null)break e;qt=F({},qt,zt);break e;case 2:tp=!0}}Pe.callback!==null&&Pe.lane!==0&&(b.flags|=64,zt=V.effects,zt===null?V.effects=[Pe]:zt.push(Pe))}else wn={eventTime:wn,lane:zt,tag:Pe.tag,payload:Pe.payload,callback:Pe.callback,next:null},Ft===null?(ft=Ft=wn,Ue=qt):Ft=Ft.next=wn,he|=zt;if(Pe=Pe.next,Pe===null){if(Pe=V.shared.pending,Pe===null)break;zt=Pe,Pe=zt.next,zt.next=null,V.lastBaseUpdate=zt,V.shared.pending=null}}while(!0);if(Ft===null&&(Ue=qt),V.baseState=Ue,V.firstBaseUpdate=ft,V.lastBaseUpdate=Ft,E=V.shared.interleaved,E!==null){V=E;do he|=V.lane,V=V.next;while(V!==E)}else J===null&&(V.shared.lanes=0);Qm|=he,b.lanes=he,b.memoizedState=qt}}function Mee(b,E,N){if(b=E.effects,E.effects=null,b!==null)for(E=0;EN?N:4,b(!0);var j=zI.transition;zI.transition={};try{b(!1),E()}finally{Kn=N,zI.transition=j}}function ete(){return ac().memoizedState}function Q9e(b,E,N){var j=op(b);if(N={lane:j,action:N,hasEagerState:!1,eagerState:null,next:null},tte(b))nte(E,N);else if(N=Aee(b,E,N,j),N!==null){var V=ys();Vc(N,b,j,V),rte(N,E,j)}}function z9e(b,E,N){var j=op(b),V={lane:j,action:N,hasEagerState:!1,eagerState:null,next:null};if(tte(b))nte(E,V);else{var J=b.alternate;if(b.lanes===0&&(J===null||J.lanes===0)&&(J=E.lastRenderedReducer,J!==null))try{var he=E.lastRenderedState,Pe=J(he,N);if(V.hasEagerState=!0,V.eagerState=Pe,Fc(Pe,he)){var Ue=E.interleaved;Ue===null?(V.next=V,NI(E)):(V.next=Ue.next,Ue.next=V),E.interleaved=V;return}}catch{}finally{}N=Aee(b,E,V,j),N!==null&&(V=ys(),Vc(N,b,j,V),rte(N,E,j))}}function tte(b){var E=b.alternate;return b===pi||E!==null&&E===pi}function nte(b,E){Mv=xT=!0;var N=b.pending;N===null?E.next=E:(E.next=N.next,N.next=E),b.pending=E}function rte(b,E,N){if((N&4194240)!==0){var j=E.lanes;j&=b.pendingLanes,N|=j,E.lanes=N,xn(b,N)}}var CT={readContext:rc,useCallback:Vo,useContext:Vo,useEffect:Vo,useImperativeHandle:Vo,useInsertionEffect:Vo,useLayoutEffect:Vo,useMemo:Vo,useReducer:Vo,useRef:Vo,useState:Vo,useDebugValue:Vo,useDeferredValue:Vo,useTransition:Vo,useMutableSource:Vo,useSyncExternalStore:Vo,useId:Vo,unstable_isNewReconciler:!1},B9e={readContext:rc,useCallback:function(b,E){return Nu().memoizedState=[b,E===void 0?null:E],b},useContext:rc,useEffect:Vee,useImperativeHandle:function(b,E,N){return N=N!=null?N.concat([b]):null,TT(4194308,4,Gee.bind(null,E,b),N)},useLayoutEffect:function(b,E){return TT(4194308,4,b,E)},useInsertionEffect:function(b,E){return TT(4,2,b,E)},useMemo:function(b,E){var N=Nu();return E=E===void 0?null:E,b=b(),N.memoizedState=[b,E],b},useReducer:function(b,E,N){var j=Nu();return E=N!==void 0?N(E):E,j.memoizedState=j.baseState=E,b={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:b,lastRenderedState:E},j.queue=b,b=b.dispatch=Q9e.bind(null,pi,b),[j.memoizedState,b]},useRef:function(b){var E=Nu();return b={current:b},E.memoizedState=b},useState:Xee,useDebugValue:VI,useDeferredValue:function(b){return Nu().memoizedState=b},useTransition:function(){var b=Xee(!1),E=b[0];return b=L9e.bind(null,b[1]),Nu().memoizedState=b,[E,b]},useMutableSource:function(){},useSyncExternalStore:function(b,E,N){var j=pi,V=Nu();if(ni){if(N===void 0)throw Error(n(407));N=N()}else{if(N=E(),po===null)throw Error(n(349));(Lm&30)!==0||zee(j,E,N)}V.memoizedState=N;var J={value:N,getSnapshot:E};return V.queue=J,Vee(Fee.bind(null,j,J,b),[b]),j.flags|=2048,Qv(9,Bee.bind(null,j,J,N,E),void 0,null),N},useId:function(){var b=Nu(),E=po.identifierPrefix;if(ni){var N=jd,j=Ud;N=(j&~(1<<32-rr(j)-1)).toString(32)+N,E=":"+E+"R"+N,N=Dv++,0<\/script>",b=b.removeChild(b.firstChild)):typeof j.is=="string"?b=he.createElement(N,{is:j.is}):(b=he.createElement(N),N==="select"&&(he=b,j.multiple?he.multiple=!0:j.size&&(he.size=j.size))):b=he.createElementNS(b,N),b[ku]=E,b[Rv]=j,Ete(b,E,!1,!1),E.stateNode=b;e:{switch(he=Ie(N,j),N){case"dialog":Za("cancel",b),Za("close",b),V=j;break;case"iframe":case"object":case"embed":Za("load",b),V=j;break;case"video":case"audio":for(V=0;VuO&&(E.flags|=128,j=!0,zv(J,!1),E.lanes=4194304)}else{if(!j)if(b=_T(he),b!==null){if(E.flags|=128,j=!0,N=b.updateQueue,N!==null&&(E.updateQueue=N,E.flags|=4),zv(J,!0),J.tail===null&&J.tailMode==="hidden"&&!he.alternate&&!ni)return qo(E),null}else 2*dt()-J.renderingStartTime>uO&&N!==1073741824&&(E.flags|=128,j=!0,zv(J,!1),E.lanes=4194304);J.isBackwards?(he.sibling=E.child,E.child=he):(N=J.last,N!==null?N.sibling=he:E.child=he,J.last=he)}return J.tail!==null?(E=J.tail,J.rendering=E,J.tail=E.sibling,J.renderingStartTime=dt(),E.sibling=null,N=fi.current,Xa(fi,j?N&1|2:N&1),E):(qo(E),null);case 22:case 23:return g4(),j=E.memoizedState!==null,b!==null&&b.memoizedState!==null!==j&&(E.flags|=8192),j&&(E.mode&1)!==0?(bl&1073741824)!==0&&(qo(E),E.subtreeFlags&6&&(E.flags|=8192)):qo(E),null;case 24:return null;case 25:return null}throw Error(n(156,E.tag))}function W9e(b,E){switch(TI(E),E.tag){case 1:return Us(E.type)&&dT(),b=E.flags,b&65536?(E.flags=b&-65537|128,E):null;case 3:return oO(),Ka(Fs),Ka(Yo),QI(),b=E.flags,(b&65536)!==0&&(b&128)===0?(E.flags=b&-65537|128,E):null;case 5:return DI(E),null;case 13:if(Ka(fi),b=E.memoizedState,b!==null&&b.dehydrated!==null){if(E.alternate===null)throw Error(n(340));nO()}return b=E.flags,b&65536?(E.flags=b&-65537|128,E):null;case 19:return Ka(fi),null;case 4:return oO(),null;case 10:return kI(E.type._context),null;case 22:case 23:return g4(),null;case 24:return null;default:return null}}var kT=!1,Wo=!1,G9e=typeof WeakSet=="function"?WeakSet:Set,kn=null;function lO(b,E){var N=b.ref;if(N!==null)if(typeof N=="function")try{N(null)}catch(j){_i(b,E,j)}else N.current=null}function a4(b,E,N){try{N()}catch(j){_i(b,E,j)}}var wte=!1;function H9e(b,E){if(gI=Zx,b=aee(),lI(b)){if("selectionStart"in b)var N={start:b.selectionStart,end:b.selectionEnd};else e:{N=(N=b.ownerDocument)&&N.defaultView||window;var j=N.getSelection&&N.getSelection();if(j&&j.rangeCount!==0){N=j.anchorNode;var V=j.anchorOffset,J=j.focusNode;j=j.focusOffset;try{N.nodeType,J.nodeType}catch{N=null;break e}var he=0,Pe=-1,Ue=-1,ft=0,Ft=0,qt=b,zt=null;t:for(;;){for(var wn;qt!==N||V!==0&&qt.nodeType!==3||(Pe=he+V),qt!==J||j!==0&&qt.nodeType!==3||(Ue=he+j),qt.nodeType===3&&(he+=qt.nodeValue.length),(wn=qt.firstChild)!==null;)zt=qt,qt=wn;for(;;){if(qt===b)break t;if(zt===N&&++ft===V&&(Pe=he),zt===J&&++Ft===j&&(Ue=he),(wn=qt.nextSibling)!==null)break;qt=zt,zt=qt.parentNode}qt=wn}N=Pe===-1||Ue===-1?null:{start:Pe,end:Ue}}else N=null}N=N||{start:0,end:0}}else N=null;for(OI={focusedElem:b,selectionRange:N},Zx=!1,kn=E;kn!==null;)if(E=kn,b=E.child,(E.subtreeFlags&1028)!==0&&b!==null)b.return=E,kn=b;else for(;kn!==null;){E=kn;try{var Nn=E.alternate;if((E.flags&1024)!==0)switch(E.tag){case 0:case 11:case 15:break;case 1:if(Nn!==null){var Bn=Nn.memoizedProps,Ri=Nn.memoizedState,it=E.stateNode,Ge=it.getSnapshotBeforeUpdate(E.elementType===E.type?Bn:jc(E.type,Bn),Ri);it.__reactInternalSnapshotBeforeUpdate=Ge}break;case 3:var ot=E.stateNode.containerInfo;ot.nodeType===1?ot.textContent="":ot.nodeType===9&&ot.documentElement&&ot.removeChild(ot.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(an){_i(E,E.return,an)}if(b=E.sibling,b!==null){b.return=E.return,kn=b;break}kn=E.return}return Nn=wte,wte=!1,Nn}function Bv(b,E,N){var j=E.updateQueue;if(j=j!==null?j.lastEffect:null,j!==null){var V=j=j.next;do{if((V.tag&b)===b){var J=V.destroy;V.destroy=void 0,J!==void 0&&a4(E,N,J)}V=V.next}while(V!==j)}}function AT(b,E){if(E=E.updateQueue,E=E!==null?E.lastEffect:null,E!==null){var N=E=E.next;do{if((N.tag&b)===b){var j=N.create;N.destroy=j()}N=N.next}while(N!==E)}}function i4(b){var E=b.ref;if(E!==null){var N=b.stateNode;switch(b.tag){case 5:b=N;break;default:b=N}typeof E=="function"?E(b):E.current=b}}function Cte(b){var E=b.alternate;E!==null&&(b.alternate=null,Cte(E)),b.child=null,b.deletions=null,b.sibling=null,b.tag===5&&(E=b.stateNode,E!==null&&(delete E[ku],delete E[Rv],delete E[SI],delete E[A9e],delete E[N9e])),b.stateNode=null,b.return=null,b.dependencies=null,b.memoizedProps=null,b.memoizedState=null,b.pendingProps=null,b.stateNode=null,b.updateQueue=null}function $te(b){return b.tag===5||b.tag===3||b.tag===4}function Rte(b){e:for(;;){for(;b.sibling===null;){if(b.return===null||$te(b.return))return null;b=b.return}for(b.sibling.return=b.return,b=b.sibling;b.tag!==5&&b.tag!==6&&b.tag!==18;){if(b.flags&2||b.child===null||b.tag===4)continue e;b.child.return=b,b=b.child}if(!(b.flags&2))return b.stateNode}}function o4(b,E,N){var j=b.tag;if(j===5||j===6)b=b.stateNode,E?N.nodeType===8?N.parentNode.insertBefore(b,E):N.insertBefore(b,E):(N.nodeType===8?(E=N.parentNode,E.insertBefore(b,N)):(E=N,E.appendChild(b)),N=N._reactRootContainer,N!=null||E.onclick!==null||(E.onclick=cT));else if(j!==4&&(b=b.child,b!==null))for(o4(b,E,N),b=b.sibling;b!==null;)o4(b,E,N),b=b.sibling}function s4(b,E,N){var j=b.tag;if(j===5||j===6)b=b.stateNode,E?N.insertBefore(b,E):N.appendChild(b);else if(j!==4&&(b=b.child,b!==null))for(s4(b,E,N),b=b.sibling;b!==null;)s4(b,E,N),b=b.sibling}var $o=null,Xc=!1;function rp(b,E,N){for(N=N.child;N!==null;)Pte(b,E,N),N=N.sibling}function Pte(b,E,N){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Et,N)}catch{}switch(N.tag){case 5:Wo||lO(N,E);case 6:var j=$o,V=Xc;$o=null,rp(b,E,N),$o=j,Xc=V,$o!==null&&(Xc?(b=$o,N=N.stateNode,b.nodeType===8?b.parentNode.removeChild(N):b.removeChild(N)):$o.removeChild(N.stateNode));break;case 18:$o!==null&&(Xc?(b=$o,N=N.stateNode,b.nodeType===8?yI(b.parentNode,N):b.nodeType===1&&yI(b,N),Wf(b)):yI($o,N.stateNode));break;case 4:j=$o,V=Xc,$o=N.stateNode.containerInfo,Xc=!0,rp(b,E,N),$o=j,Xc=V;break;case 0:case 11:case 14:case 15:if(!Wo&&(j=N.updateQueue,j!==null&&(j=j.lastEffect,j!==null))){V=j=j.next;do{var J=V,he=J.destroy;J=J.tag,he!==void 0&&((J&2)!==0||(J&4)!==0)&&a4(N,E,he),V=V.next}while(V!==j)}rp(b,E,N);break;case 1:if(!Wo&&(lO(N,E),j=N.stateNode,typeof j.componentWillUnmount=="function"))try{j.props=N.memoizedProps,j.state=N.memoizedState,j.componentWillUnmount()}catch(Pe){_i(N,E,Pe)}rp(b,E,N);break;case 21:rp(b,E,N);break;case 22:N.mode&1?(Wo=(j=Wo)||N.memoizedState!==null,rp(b,E,N),Wo=j):rp(b,E,N);break;default:rp(b,E,N)}}function kte(b){var E=b.updateQueue;if(E!==null){b.updateQueue=null;var N=b.stateNode;N===null&&(N=b.stateNode=new G9e),E.forEach(function(j){var V=ize.bind(null,b,j);N.has(j)||(N.add(j),j.then(V,V))})}}function Yc(b,E){var N=E.deletions;if(N!==null)for(var j=0;jV&&(V=he),j&=~J}if(j=V,j=dt()-j,j=(120>j?120:480>j?480:1080>j?1080:1920>j?1920:3e3>j?3e3:4320>j?4320:1960*K9e(j/1960))-j,10b?16:b,ip===null)var j=!1;else{if(b=ip,ip=null,LT=0,(sa&6)!==0)throw Error(n(331));var V=sa;for(sa|=4,kn=b.current;kn!==null;){var J=kn,he=J.child;if((kn.flags&16)!==0){var Pe=J.deletions;if(Pe!==null){for(var Ue=0;Uedt()-u4?Bm(b,0):c4|=N),Ys(b,E)}function Xte(b,E){E===0&&((b.mode&1)===0?E=1:(E=aa,aa<<=1,(aa&130023424)===0&&(aa=4194304)));var N=ys();b=Xd(b,E),b!==null&&(or(b,E,N),Ys(b,N))}function aze(b){var E=b.memoizedState,N=0;E!==null&&(N=E.retryLane),Xte(b,N)}function ize(b,E){var N=0;switch(b.tag){case 13:var j=b.stateNode,V=b.memoizedState;V!==null&&(N=V.retryLane);break;case 19:j=b.stateNode;break;default:throw Error(n(314))}j!==null&&j.delete(E),Xte(b,N)}var Yte;Yte=function(b,E,N){if(b!==null)if(b.memoizedProps!==E.pendingProps||Fs.current)js=!0;else{if((b.lanes&N)===0&&(E.flags&128)===0)return js=!1,V9e(b,E,N);js=(b.flags&131072)!==0}else js=!1,ni&&(E.flags&1048576)!==0&&xee(E,hT,E.index);switch(E.lanes=0,E.tag){case 2:var j=E.type;PT(b,E),b=E.pendingProps;var V=Jg(E,Yo.current);iO(E,N),V=FI(null,E,j,b,V,N);var J=UI();return E.flags|=1,typeof V=="object"&&V!==null&&typeof V.render=="function"&&V.$$typeof===void 0?(E.tag=1,E.memoizedState=null,E.updateQueue=null,Us(j)?(J=!0,fT(E)):J=!1,E.memoizedState=V.state!==null&&V.state!==void 0?V.state:null,II(E),V.updater=$T,E.stateNode=V,V._reactInternals=E,WI(E,j,b,N),E=KI(null,E,j,!0,J,N)):(E.tag=0,ni&&J&&xI(E),vs(null,E,V,N),E=E.child),E;case 16:j=E.elementType;e:{switch(PT(b,E),b=E.pendingProps,V=j._init,j=V(j._payload),E.type=j,V=E.tag=sze(j),b=jc(j,b),V){case 0:E=ZI(null,E,j,b,N);break e;case 1:E=Ote(null,E,j,b,N);break e;case 11:E=fte(null,E,j,b,N);break e;case 14:E=pte(null,E,j,jc(j.type,b),N);break e}throw Error(n(306,j,""))}return E;case 0:return j=E.type,V=E.pendingProps,V=E.elementType===j?V:jc(j,V),ZI(b,E,j,V,N);case 1:return j=E.type,V=E.pendingProps,V=E.elementType===j?V:jc(j,V),Ote(b,E,j,V,N);case 3:e:{if(bte(E),b===null)throw Error(n(387));j=E.pendingProps,J=E.memoizedState,V=J.element,Nee(b,E),ST(E,j,null,N);var he=E.memoizedState;if(j=he.element,J.isDehydrated)if(J={element:j,isDehydrated:!1,cache:he.cache,pendingSuspenseBoundaries:he.pendingSuspenseBoundaries,transitions:he.transitions},E.updateQueue.baseState=J,E.memoizedState=J,E.flags&256){V=sO(Error(n(423)),E),E=vte(b,E,j,N,V);break e}else if(j!==V){V=sO(Error(n(424)),E),E=vte(b,E,j,N,V);break e}else for(Ol=Zf(E.stateNode.containerInfo.firstChild),gl=E,ni=!0,Uc=null,N=kee(E,null,j,N),E.child=N;N;)N.flags=N.flags&-3|4096,N=N.sibling;else{if(nO(),j===V){E=Vd(b,E,N);break e}vs(b,E,j,N)}E=E.child}return E;case 5:return Dee(E),b===null&&CI(E),j=E.type,V=E.pendingProps,J=b!==null?b.memoizedProps:null,he=V.children,bI(j,V)?he=null:J!==null&&bI(j,J)&&(E.flags|=32),gte(b,E),vs(b,E,he,N),E.child;case 6:return b===null&&CI(E),null;case 13:return yte(b,E,N);case 4:return MI(E,E.stateNode.containerInfo),j=E.pendingProps,b===null?E.child=rO(E,null,j,N):vs(b,E,j,N),E.child;case 11:return j=E.type,V=E.pendingProps,V=E.elementType===j?V:jc(j,V),fte(b,E,j,V,N);case 7:return vs(b,E,E.pendingProps,N),E.child;case 8:return vs(b,E,E.pendingProps.children,N),E.child;case 12:return vs(b,E,E.pendingProps.children,N),E.child;case 10:e:{if(j=E.type._context,V=E.pendingProps,J=E.memoizedProps,he=V.value,Xa(bT,j._currentValue),j._currentValue=he,J!==null)if(Fc(J.value,he)){if(J.children===V.children&&!Fs.current){E=Vd(b,E,N);break e}}else for(J=E.child,J!==null&&(J.return=E);J!==null;){var Pe=J.dependencies;if(Pe!==null){he=J.child;for(var Ue=Pe.firstContext;Ue!==null;){if(Ue.context===j){if(J.tag===1){Ue=Yd(-1,N&-N),Ue.tag=2;var ft=J.updateQueue;if(ft!==null){ft=ft.shared;var Ft=ft.pending;Ft===null?Ue.next=Ue:(Ue.next=Ft.next,Ft.next=Ue),ft.pending=Ue}}J.lanes|=N,Ue=J.alternate,Ue!==null&&(Ue.lanes|=N),AI(J.return,N,E),Pe.lanes|=N;break}Ue=Ue.next}}else if(J.tag===10)he=J.type===E.type?null:J.child;else if(J.tag===18){if(he=J.return,he===null)throw Error(n(341));he.lanes|=N,Pe=he.alternate,Pe!==null&&(Pe.lanes|=N),AI(he,N,E),he=J.sibling}else he=J.child;if(he!==null)he.return=J;else for(he=J;he!==null;){if(he===E){he=null;break}if(J=he.sibling,J!==null){J.return=he.return,he=J;break}he=he.return}J=he}vs(b,E,V.children,N),E=E.child}return E;case 9:return V=E.type,j=E.pendingProps.children,iO(E,N),V=rc(V),j=j(V),E.flags|=1,vs(b,E,j,N),E.child;case 14:return j=E.type,V=jc(j,E.pendingProps),V=jc(j.type,V),pte(b,E,j,V,N);case 15:return mte(b,E,E.type,E.pendingProps,N);case 17:return j=E.type,V=E.pendingProps,V=E.elementType===j?V:jc(j,V),PT(b,E),E.tag=1,Us(j)?(b=!0,fT(E)):b=!1,iO(E,N),ite(E,j,V),WI(E,j,V,N),KI(null,E,j,!0,b,N);case 19:return _te(b,E,N);case 22:return hte(b,E,N)}throw Error(n(156,E.tag))};function Vte(b,E){return xe(b,E)}function oze(b,E,N,j){this.tag=b,this.key=N,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=E,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=j,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function oc(b,E,N,j){return new oze(b,E,N,j)}function b4(b){return b=b.prototype,!(!b||!b.isReactComponent)}function sze(b){if(typeof b=="function")return b4(b)?1:0;if(b!=null){if(b=b.$$typeof,b===Q)return 11;if(b===U)return 14}return 2}function lp(b,E){var N=b.alternate;return N===null?(N=oc(b.tag,E,b.key,b.mode),N.elementType=b.elementType,N.type=b.type,N.stateNode=b.stateNode,N.alternate=b,b.alternate=N):(N.pendingProps=E,N.type=b.type,N.flags=0,N.subtreeFlags=0,N.deletions=null),N.flags=b.flags&14680064,N.childLanes=b.childLanes,N.lanes=b.lanes,N.child=b.child,N.memoizedProps=b.memoizedProps,N.memoizedState=b.memoizedState,N.updateQueue=b.updateQueue,E=b.dependencies,N.dependencies=E===null?null:{lanes:E.lanes,firstContext:E.firstContext},N.sibling=b.sibling,N.index=b.index,N.ref=b.ref,N}function FT(b,E,N,j,V,J){var he=2;if(j=b,typeof b=="function")b4(b)&&(he=1);else if(typeof b=="string")he=5;else e:switch(b){case T:return Um(N.children,V,J,E);case k:he=8,V|=8;break;case A:return b=oc(12,N,E,V|2),b.elementType=A,b.lanes=J,b;case B:return b=oc(13,N,E,V),b.elementType=B,b.lanes=J,b;case D:return b=oc(19,N,E,V),b.elementType=D,b.lanes=J,b;case $:return UT(N,V,J,E);default:if(typeof b=="object"&&b!==null)switch(b.$$typeof){case I:he=10;break e;case M:he=9;break e;case Q:he=11;break e;case U:he=14;break e;case R:he=16,j=null;break e}throw Error(n(130,b==null?b:typeof b,""))}return E=oc(he,N,E,V),E.elementType=b,E.type=j,E.lanes=J,E}function Um(b,E,N,j){return b=oc(7,b,j,E),b.lanes=N,b}function UT(b,E,N,j){return b=oc(22,b,j,E),b.elementType=$,b.lanes=N,b.stateNode={isHidden:!1},b}function v4(b,E,N){return b=oc(6,b,null,E),b.lanes=N,b}function y4(b,E,N){return E=oc(4,b.children!==null?b.children:[],b.key,E),E.lanes=N,E.stateNode={containerInfo:b.containerInfo,pendingChildren:null,implementation:b.implementation},E}function lze(b,E,N,j,V){this.tag=E,this.containerInfo=b,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nn(0),this.expirationTimes=nn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nn(0),this.identifierPrefix=j,this.onRecoverableError=V,this.mutableSourceEagerHydrationData=null}function S4(b,E,N,j,V,J,he,Pe,Ue){return b=new lze(b,E,N,Pe,Ue),E===1?(E=1,J===!0&&(E|=8)):E=0,J=oc(3,null,null,E),b.current=J,J.stateNode=b,J.memoizedState={element:j,isDehydrated:N,cache:null,transitions:null,pendingSuspenseBoundaries:null},II(J),b}function cze(b,E,N){var j=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),C4.exports=Eze(),C4.exports}var one;function xze(){if(one)return HT;one=1;var e=q1e();return HT.createRoot=e.createRoot,HT.hydrateRoot=e.hydrateRoot,HT}var Tze=xze();function _a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xt(e){"@babel/helpers - typeof";return Xt=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},Xt(e)}function wze(e,t){if(Xt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W1e(e){var t=wze(e,"string");return Xt(t)=="symbol"?t:t+""}function sne(e,t){for(var n=0;n0?Lo(Tb,--sl):0,B0--,Bi===10&&(B0=1,ik--),Bi}function Dl(){return Bi=sl2||c_(Bi)>3?"":" "}function Bze(e,t){for(;--t&&Dl()&&!(Bi<48||Bi>102||Bi>57&&Bi<65||Bi>70&&Bi<97););return FE(e,c2()+(t<6&&ud()==32&&Dl()==32))}function R7(e){for(;Dl();)switch(Bi){case e:return sl;case 34:case 39:e!==34&&e!==39&&R7(Bi);break;case 40:e===41&&R7(e);break;case 92:Dl();break}return sl}function Fze(e,t){for(;Dl()&&e+Bi!==57;)if(e+Bi===84&&ud()===47)break;return"/*"+FE(t,sl-1)+"*"+ak(e===47?e:Dl())}function Uze(e){for(;!c_(ud());)Dl();return FE(e,sl)}function jze(e){return eEe(d2("",null,null,null,[""],e=J1e(e),0,[0],e))}function d2(e,t,n,r,a,i,o,s,l){for(var c=0,u=0,d=o,f=0,m=0,h=0,g=1,O=1,v=1,y=0,S="",C=a,_=i,w=r,T=S;O;)switch(h=y,y=Dl()){case 40:if(h!=108&&Lo(T,d-1)==58){$7(T+=ya(u2(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:T+=u2(y);break;case 9:case 10:case 13:case 32:T+=zze(h);break;case 92:T+=Bze(c2()-1,7);continue;case 47:switch(ud()){case 42:case 47:ZT(Xze(Fze(Dl(),c2()),t,n),l);break;default:T+="/"}break;case 123*g:s[c++]=Wu(T)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:O=0;case 59+u:v==-1&&(T=ya(T,/\f/g,"")),m>0&&Wu(T)-d&&ZT(m>32?cne(T+";",r,n,d-1):cne(ya(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(ZT(w=lne(T,t,n,c,u,a,s,S,C=[],_=[],d),i),y===123)if(u===0)d2(T,t,w,w,C,i,d,s,_);else switch(f===99&&Lo(T,3)===110?100:f){case 100:case 108:case 109:case 115:d2(e,w,w,r&&ZT(lne(e,w,w,0,0,a,s,S,a,C=[],d),_),a,_,d,s,r?C:_);break;default:d2(T,w,w,w,[""],_,0,s,_)}}c=u=m=0,g=v=1,S=T="",d=o;break;case 58:d=1+Wu(T),m=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&Qze()==125)continue}switch(T+=ak(y),y*g){case 38:v=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(Wu(T)-1)*v,v=1;break;case 64:ud()===45&&(T+=u2(Dl())),f=ud(),u=d=Wu(S=T+=Uze(c2())),y++;break;case 45:h===45&&Wu(T)==2&&(g=0)}}return i}function lne(e,t,n,r,a,i,o,s,l,c,u){for(var d=a-1,f=a===0?i:[""],m=sj(f),h=0,g=0,O=0;h0?f[v]+" "+y:ya(y,/&\f/g,f[v])))&&(l[O++]=S);return ok(e,t,n,a===0?ij:s,l,c,u)}function Xze(e,t,n){return ok(e,t,n,G1e,ak(Lze()),l_(e,2,-2),0)}function cne(e,t,n,r){return ok(e,t,n,oj,l_(e,0,r),l_(e,r+1,-1),r)}function d0(e,t){for(var n="",r=sj(e),a=0;a6)switch(Lo(e,t+1)){case 109:if(Lo(e,t+4)!==45)break;case 102:return ya(e,/(.+:)(.+)-([^]+)/,"$1"+ba+"$2-$3$1"+C$+(Lo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$7(e,"stretch")?tEe(ya(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lo(e,t+1)!==115)break;case 6444:switch(Lo(e,Wu(e)-3-(~$7(e,"!important")&&10))){case 107:return ya(e,":",":"+ba)+e;case 101:return ya(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ba+(Lo(e,14)===45?"inline-":"")+"box$3$1"+ba+"$2$3$1"+Ho+"$2box$3")+e}break;case 5936:switch(Lo(e,t+11)){case 114:return ba+e+Ho+ya(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ba+e+Ho+ya(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ba+e+Ho+ya(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ba+e+Ho+e+e}return e}var eBe=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case oj:t.return=tEe(t.value,t.length);break;case H1e:return d0([Vv(t,{value:ya(t.value,"@","@"+ba)})],a);case ij:if(t.length)return Dze(t.props,function(i){switch(Mze(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return d0([Vv(t,{props:[ya(i,/:(read-\w+)/,":"+C$+"$1")]})],a);case"::placeholder":return d0([Vv(t,{props:[ya(i,/:(plac\w+)/,":"+ba+"input-$1")]}),Vv(t,{props:[ya(i,/:(plac\w+)/,":"+C$+"$1")]}),Vv(t,{props:[ya(i,/:(plac\w+)/,Ho+"input-$1")]})],a)}return""})}},tBe=[eBe],nEe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var O=g.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var a=t.stylisPlugins||tBe,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var O=g.getAttribute("data-emotion").split(" "),v=1;v=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)}var rBe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},aBe=/[A-Z]|^ms/g,iBe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rEe=function(t){return t.charCodeAt(1)===45},fne=function(t){return t!=null&&typeof t!="boolean"},P4=Wze(function(e){return rEe(e)?e:e.replace(aBe,"-$&").toLowerCase()}),pne=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(iBe,function(r,a,i){return Gu={name:a,styles:i,next:Gu},a})}return rBe[t]!==1&&!rEe(t)&&typeof n=="number"&&n!==0?n+"px":n};function u_(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return Gu={name:a.name,styles:a.styles,next:Gu},a.name;var i=n;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)Gu={name:o.name,styles:o.styles,next:Gu},o=o.next;var s=i.styles+";";return s}return oBe(e,t,n)}case"function":{if(e!==void 0){var l=Gu,c=n(e);return Gu=l,u_(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function oBe(e,t,n){var r="";if(Array.isArray(n))for(var a=0;ae.length)&&(t=e.length);for(var n=0,r=Array(t);n=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 xo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function f7(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 ene="data-rc-order",tne="data-rc-priority",oBe="rc-util-key",p7=new Map;function z1e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):oBe}function HP(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function sBe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function YU(e){return Array.from((p7.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function B1e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xo())return null;var n=t.csp,r=t.prepend,a=t.priority,i=a===void 0?0:a,o=sBe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(ene,o),s&&i&&l.setAttribute(tne,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=HP(t),u=c.firstChild;if(r){if(s){var d=(t.styles||YU(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(ene)))return!1;var m=Number(f.getAttribute(tne)||0);return i>=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 F1e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=HP(t);return(t.styles||YU(n)).find(function(r){return r.getAttribute(z1e(t))===e})}function o_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=F1e(e,t);if(n){var r=HP(t);r.removeChild(n)}}function lBe(e,t){var n=p7.get(e);if(!n||!f7(document,n)){var r=B1e("",t),a=r.parentNode;p7.set(e,a),e.removeChild(r)}}function ff(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=HP(n),a=YU(r),i=se(se({},n),{},{styles:a});lBe(r,i);var o=F1e(t,i);if(o){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=B1e(e,i);return u.setAttribute(z1e(i),t),u}function dm(e,t,n){var r=p.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var m7={},cBe=function(t){};function uBe(e,t){}function dBe(e,t){}function fBe(){m7={}}function U1e(e,t,n){!t&&!m7[n]&&(e(!1,n),m7[n]=!0)}function Ma(e,t){U1e(uBe,e,t)}function pBe(e,t){U1e(dBe,e,t)}Ma.preMessage=cBe;Ma.resetWarned=fBe;Ma.noteOnce=pBe;function Bl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Ma(!l,"Warning: There may be circular references"),l)return!1;if(i===o)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&i&&(o.value[1]=this.cacheCallTimes++),(a=o)===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 i=this.keys.reduce(function(c,u){var d=be(c,2),f=d[1];return a.internalGet(u)[1]0,void 0),nne+=1}return _a(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),S4=new VU;function O$(e){var t=Array.isArray(e)?e:[e];return S4.has(t)||S4.set(t,new Y1e(t)),S4.get(t)}var vBe=new WeakMap,_4={};function yBe(e,t){for(var n=vBe,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 i=se(se({},r),{},ae(ae({},L0,t),su,n)),o=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var a2=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()},SBe=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 i=be(a,2),o=i[0],s=i[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},V1e=function(t,n,r){var a={},i={};return Object.entries(t).forEach(function(o){var s,l,c=be(o,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])i[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var f,m=a2(u,r==null?void 0:r.prefix);a[m]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),i[u]="var(".concat(m,")")}}),[i,SBe(a,n,{scope:r==null?void 0:r.scope})]},ine=xo()?p.useLayoutEffect:p.useEffect,tr=function(t,n){var r=p.useRef(!0);ine(function(){return t(r.current)},n),ine(function(){return r.current=!1,function(){r.current=!0}},[])},$h=function(t,n){tr(function(r){if(!r)return t()},n)},_Be=se({},D0),one=_Be.useInsertionEffect,EBe=function(t,n,r){p.useMemo(t,r),tr(function(){return n(!0)},r)},xBe=one?function(e,t,n){return one(function(){return e(),t()},n)}:EBe,TBe=se({},D0),wBe=TBe.useInsertionEffect,CBe=function(t){var n=[],r=!1;function a(i){r||n.push(i)}return p.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),a},$Be=function(){return function(t){t()}},RBe=typeof wBe<"u"?CBe:$Be;function qU(e,t,n,r,a){var i=p.useContext(Lh),o=i.cache,s=[e].concat(Ke(t)),l=h7(s),c=RBe([l]),u=function(h){o.opUpdate(l,function(g){var O=g||[void 0,void 0],v=be(O,2),y=v[0],S=y===void 0?0:y,C=v[1],_=C,w=_||n(),T=[S,w];return h?h(T):T})};p.useMemo(function(){u()},[l]);var d=o.opGet(l),f=d[1];return xBe(function(){a==null||a(f)},function(m){return u(function(h){var g=be(h,2),O=g[0],v=g[1];return m&&O===0&&(a==null||a(f)),[O+1,v]}),function(){o.opUpdate(l,function(h){var g=h||[],O=be(g,2),v=O[0],y=v===void 0?0:v,S=O[1],C=y-1;return C===0?(c(function(){(m||!o.opGet(l))&&(r==null||r(S,!1))}),null):[y-1,S]})}},[l]),f}var PBe={},kBe="css",rh=new Map;function ABe(e){rh.set(e,(rh.get(e)||0)+1)}function NBe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(L0,'="').concat(e,'"]'));n.forEach(function(r){if(r[wp]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var IBe=0;function MBe(e,t){rh.set(e,(rh.get(e)||0)-1);var n=new Set;rh.forEach(function(r,a){r<=0&&n.add(a)}),rh.size-n.size>IBe&&n.forEach(function(r){NBe(r,t),rh.delete(r)})}var q1e=function(t,n,r,a){var i=r.getDerivativeToken(t),o=se(se({},i),n);return a&&(o=a(o)),o},W1e="token";function DBe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=p.useContext(Lh),a=r.cache.instanceId,i=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?PBe:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,m=yBe(function(){return Object.assign.apply(Object,[{}].concat(Ke(t)))},t),h=yS(m),g=yS(c),O=f?yS(f):"",v=qU(W1e,[s,e.id,h,g,O],function(){var y,S=d?d(m,c,e):q1e(m,c,e,u),C=se({},S),_="";if(f){var w=V1e(S,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),T=be(w,2);S=T[0],_=T[1]}var A=ane(S,s);S._tokenKey=A,C._tokenKey=ane(C,s);var k=(y=f==null?void 0:f.key)!==null&&y!==void 0?y:A;S._themeKey=k,ABe(k);var I="".concat(kBe,"-").concat(ud(A));return S._hashId=I,[S,I,C,_,(f==null?void 0:f.key)||""]},function(y){MBe(y[0]._themeKey,a)},function(y){var S=be(y,4),C=S[0],_=S[3];if(f&&_){var w=ff(_,ud("css-variables-".concat(C._themeKey)),{mark:su,prepend:"queue",attachTo:i,priority:-999});w[wp]=a,w.setAttribute(L0,C._themeKey)}});return v}var LBe=function(t,n,r){var a=be(t,5),i=a[2],o=a[3],s=a[4],l=r||{},c=l.plain;if(!o)return null;var u=i._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=b$(o,s,u,f,c);return[d,u,m]},G1e={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},Ka="-ms-",SS="-moz-",ba="-webkit-",H1e="comm",WU="rule",GU="decl",QBe="@import",zBe="@namespace",Z1e="@keyframes",BBe="@layer",K1e=Math.abs,HU=String.fromCharCode,O7=Object.assign;function FBe(e,t){return Ji(e,0)^45?(((t<<2^Ji(e,0))<<2^Ji(e,1))<<2^Ji(e,2))<<2^Ji(e,3):0}function J1e(e){return e.trim()}function nf(e,t){return(e=t.exec(e))?e[0]:e}function Fr(e,t,n){return e.replace(t,n)}function i2(e,t,n){return e.indexOf(t,n)}function Ji(e,t){return e.charCodeAt(t)|0}function zh(e,t,n){return e.slice(t,n)}function Gc(e){return e.length}function eEe(e){return e.length}function jy(e,t){return t.push(e),e}function UBe(e,t){return e.map(t).join("")}function sne(e,t){return e.filter(function(n){return!nf(n,t)})}var KP=1,z0=1,tEe=0,Tc=0,Fi=0,Sb="";function JP(e,t,n,r,a,i,o,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:KP,column:z0,length:o,return:"",siblings:s}}function mp(e,t){return O7(JP("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function aO(e){for(;e.root;)e=mp(e.root,{children:[e]});jy(e,e.siblings)}function jBe(){return Fi}function XBe(){return Fi=Tc>0?Ji(Sb,--Tc):0,z0--,Fi===10&&(z0=1,KP--),Fi}function lu(){return Fi=Tc2||s_(Fi)>3?"":" "}function WBe(e,t){for(;--t&&lu()&&!(Fi<48||Fi>102||Fi>57&&Fi<65||Fi>70&&Fi<97););return ek(e,o2()+(t<6&&Cp()==32&&lu()==32))}function b7(e){for(;lu();)switch(Fi){case e:return Tc;case 34:case 39:e!==34&&e!==39&&b7(Fi);break;case 40:e===41&&b7(e);break;case 92:lu();break}return Tc}function GBe(e,t){for(;lu()&&e+Fi!==57;)if(e+Fi===84&&Cp()===47)break;return"/*"+ek(t,Tc-1)+"*"+HU(e===47?e:lu())}function HBe(e){for(;!s_(Cp());)lu();return ek(e,Tc)}function v$(e){return VBe(s2("",null,null,null,[""],e=YBe(e),0,[0],e))}function s2(e,t,n,r,a,i,o,s,l){for(var c=0,u=0,d=o,f=0,m=0,h=0,g=1,O=1,v=1,y=0,S="",C=a,_=i,w=r,T=S;O;)switch(h=y,y=lu()){case 40:if(h!=108&&Ji(T,d-1)==58){i2(T+=Fr(E4(y),"&","&\f"),"&\f",K1e(c?s[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:T+=E4(y);break;case 9:case 10:case 13:case 32:T+=qBe(h);break;case 92:T+=WBe(o2()-1,7);continue;case 47:switch(Cp()){case 42:case 47:jy(ZBe(GBe(lu(),o2()),t,n,l),l),(s_(h||1)==5||s_(Cp()||1)==5)&&Gc(T)&&zh(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*g:s[c++]=Gc(T)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:O=0;case 59+u:v==-1&&(T=Fr(T,/\f/g,"")),m>0&&(Gc(T)-d||g===0&&h===47)&&jy(m>32?cne(T+";",r,n,d-1,l):cne(Fr(T," ","")+";",r,n,d-2,l),l);break;case 59:T+=";";default:if(jy(w=lne(T,t,n,c,u,a,s,S,C=[],_=[],d,i),i),y===123)if(u===0)s2(T,t,w,w,C,i,d,s,_);else{switch(f){case 99:if(Ji(T,3)===110)break;case 108:if(Ji(T,2)===97)break;default:u=0;case 100:case 109:case 115:}u?s2(e,w,w,r&&jy(lne(e,w,w,0,0,a,s,S,a,C=[],d,_),_),a,_,d,s,r?C:_):s2(T,w,w,w,[""],_,0,s,_)}}c=u=m=0,g=v=1,S=T="",d=o;break;case 58:d=1+Gc(T),m=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&XBe()==125)continue}switch(T+=HU(y),y*g){case 38:v=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(Gc(T)-1)*v,v=1;break;case 64:Cp()===45&&(T+=E4(lu())),f=Cp(),u=d=Gc(S=T+=HBe(o2())),y++;break;case 45:h===45&&Gc(T)==2&&(g=0)}}return i}function lne(e,t,n,r,a,i,o,s,l,c,u,d){for(var f=a-1,m=a===0?i:[""],h=eEe(m),g=0,O=0,v=0;g0?m[y]+" "+S:Fr(S,/&\f/g,m[y])))&&(l[v++]=C);return JP(e,t,n,a===0?WU:s,l,c,u,d)}function ZBe(e,t,n,r){return JP(e,t,n,H1e,HU(jBe()),zh(e,2,-2),0,r)}function cne(e,t,n,r,a){return JP(e,t,n,GU,zh(e,0,r),zh(e,r+1,-1),r,a)}function nEe(e,t,n){switch(FBe(e,t)){case 5103:return ba+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return ba+e+e;case 4855:return ba+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return SS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ba+e+SS+e+Ka+e+e;case 5936:switch(Ji(e,t+11)){case 114:return ba+e+Ka+Fr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ba+e+Ka+Fr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ba+e+Ka+Fr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ba+e+Ka+e+e;case 6165:return ba+e+Ka+"flex-"+e+e;case 5187:return ba+e+Fr(e,/(\w+).+(:[^]+)/,ba+"box-$1$2"+Ka+"flex-$1$2")+e;case 5443:return ba+e+Ka+"flex-item-"+Fr(e,/flex-|-self/g,"")+(nf(e,/flex-|baseline/)?"":Ka+"grid-row-"+Fr(e,/flex-|-self/g,""))+e;case 4675:return ba+e+Ka+"flex-line-pack"+Fr(e,/align-content|flex-|-self/g,"")+e;case 5548:return ba+e+Ka+Fr(e,"shrink","negative")+e;case 5292:return ba+e+Ka+Fr(e,"basis","preferred-size")+e;case 6060:return ba+"box-"+Fr(e,"-grow","")+ba+e+Ka+Fr(e,"grow","positive")+e;case 4554:return ba+Fr(e,/([^-])(transform)/g,"$1"+ba+"$2")+e;case 6187:return Fr(Fr(Fr(e,/(zoom-|grab)/,ba+"$1"),/(image-set)/,ba+"$1"),e,"")+e;case 5495:case 3959:return Fr(e,/(image-set\([^]*)/,ba+"$1$`$1");case 4968:return Fr(Fr(e,/(.+:)(flex-)?(.*)/,ba+"box-pack:$3"+Ka+"flex-pack:$3"),/space-between/,"justify")+ba+e+e;case 4200:if(!nf(e,/flex-|baseline/))return Ka+"grid-column-align"+zh(e,t)+e;break;case 2592:case 3360:return Ka+Fr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,nf(r.props,/grid-\w+-end/)})?~i2(e+(n=n[t].value),"span",0)?e:Ka+Fr(e,"-start","")+e+Ka+"grid-row-span:"+(~i2(n,"span",0)?nf(n,/\d+/):+nf(n,/\d+/)-+nf(e,/\d+/))+";":Ka+Fr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return nf(r.props,/grid-\w+-start/)})?e:Ka+Fr(Fr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Fr(e,/(.+)-inline(.+)/,ba+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Gc(e)-1-t>6)switch(Ji(e,t+1)){case 109:if(Ji(e,t+4)!==45)break;case 102:return Fr(e,/(.+:)(.+)-([^]+)/,"$1"+ba+"$2-$3$1"+SS+(Ji(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~i2(e,"stretch",0)?nEe(Fr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Fr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,i,o,s,l,c){return Ka+a+":"+i+c+(o?Ka+a+"-span:"+(s?l:+l-+i)+c:"")+e});case 4949:if(Ji(e,t+6)===121)return Fr(e,":",":"+ba)+e;break;case 6444:switch(Ji(e,Ji(e,14)===45?18:11)){case 120:return Fr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ba+(Ji(e,14)===45?"inline-":"")+"box$3$1"+ba+"$2$3$1"+Ka+"$2box$3")+e;case 100:return Fr(e,":",":"+Ka)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Fr(e,"scroll-","scroll-snap-")+e}return e}function Bh(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case GU:e.return=nEe(e.value,e.length,n);return;case Z1e:return Bh([mp(e,{value:Fr(e.value,"@","@"+ba)})],r);case WU:if(e.length)return UBe(n=e.props,function(a){switch(nf(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":aO(mp(e,{props:[Fr(a,/:(read-\w+)/,":"+SS+"$1")]})),aO(mp(e,{props:[a]})),O7(e,{props:sne(n,r)});break;case"::placeholder":aO(mp(e,{props:[Fr(a,/:(plac\w+)/,":"+ba+"input-$1")]})),aO(mp(e,{props:[Fr(a,/:(plac\w+)/,":"+SS+"$1")]})),aO(mp(e,{props:[Fr(a,/:(plac\w+)/,Ka+"input-$1")]})),aO(mp(e,{props:[a]})),O7(e,{props:sne(n,r)});break}return""})}}var une="data-ant-cssinjs-cache-path",rEe="_FILE_STYLE__",Rh,aEe=!0;function eFe(){if(!Rh&&(Rh={},xo())){var e=document.createElement("div");e.className=une,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var i=a.split(":"),o=be(i,2),s=o[0],l=o[1];Rh[s]=l});var n=document.querySelector("style[".concat(une,"]"));if(n){var r;aEe=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function tFe(e){return eFe(),!!Rh[e]}function nFe(e){var t=Rh[e],n=null;if(t&&xo())if(aEe)n=rEe;else{var r=document.querySelector("style[".concat(su,'="').concat(Rh[e],'"]'));r?n=r.innerHTML:delete Rh[e]}return[n,t]}var rFe="_skip_check_",iEe="_multi_value_";function l2(e){var t=Bh(v$(e),y$);return t.replace(/\{%%%\:[^;];}/g,";")}function aFe(e){return Ut(e)==="object"&&e&&(rFe in e||iEe in e)}function dne(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(o){var s,l=o.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(a).concat(c.slice(u.length)),[c].concat(Ke(l.slice(1))).join(" ")});return i.join(",")}var iFe=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,i=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var f="",m={};function h(v){var y=v.getName(s);if(!m[y]){var S=e(v.style,n,{root:!1,parentSelectors:o}),C=be(S,1),_=C[0];m[y]="@keyframes ".concat(v.getName(s)).concat(_)}}function g(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return v.forEach(function(S){Array.isArray(S)?g(S,y):S&&y.push(S)}),y}var O=g(Array.isArray(t)?t:[t]);return O.forEach(function(v){var y=typeof v=="string"&&!a?{}:v;if(typeof y=="string")f+="".concat(y,` -`);else if(y._keyframe)h(y);else{var S=d.reduce(function(C,_){var w;return(_==null||(w=_.visit)===null||w===void 0?void 0:w.call(_,C))||C},y);Object.keys(S).forEach(function(C){var _=S[C];if(Ut(_)==="object"&&_&&(C!=="animationName"||!_._keyframe)&&!aFe(_)){var w=!1,T=C.trim(),A=!1;(a||i)&&s?T.startsWith("@")?w=!0:T==="&"?T=dne("",s,c):T=dne(C,s,c):a&&!s&&(T==="&"||T==="")&&(T="",A=!0);var k=e(_,n,{root:A,injectHash:w,parentSelectors:[].concat(Ke(o),[T])}),I=be(k,2),M=I[0],Q=I[1];m=se(se({},m),Q),f+="".concat(T).concat(M)}else{let U=function(R,$){var P=R.replace(/[A-Z]/g,function(B){return"-".concat(B.toLowerCase())}),z=$;!G1e[R]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),R==="animationName"&&$!==null&&$!==void 0&&$._keyframe&&(h($),z=$.getName(s)),f+="".concat(P,":").concat(z,";")};var F,L=(F=_==null?void 0:_.value)!==null&&F!==void 0?F:_;Ut(_)==="object"&&_!==null&&_!==void 0&&_[iEe]&&Array.isArray(L)?L.forEach(function(R){U(C,R)}):U(C,L)}})}}),a?l&&(f&&(f="@layer ".concat(l.name," {").concat(f,"}")),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map(function(v){return"@layer ".concat(v,", ").concat(l.name,";")}).join(` -`))):f="{".concat(f,"}"),[f,m]};function oEe(e,t){return ud("".concat(e.join("%")).concat(t))}function oFe(){return null}var sEe="style";function v7(e,t){var n=e.token,r=e.path,a=e.hashId,i=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=p.useContext(Lh),d=u.autoClear;u.mock;var f=u.defaultCache,m=u.hashPriority,h=u.container,g=u.ssrInline,O=u.transformers,v=u.linters,y=u.cache,S=u.layer,C=n._tokenKey,_=[C];S&&_.push("layer"),_.push.apply(_,Ke(r));var w=g7,T=qU(sEe,_,function(){var Q=_.join("|");if(tFe(Q)){var F=nFe(Q),L=be(F,2),U=L[0],R=L[1];if(U)return[U,C,R,{},s,c]}var $=t(),P=iFe($,{hashId:a,hashPriority:m,layer:S?i:void 0,path:r.join("-"),transformers:O,linters:v}),z=be(P,2),B=z[0],D=z[1],X=l2(B),Y=oEe(_,X);return[X,C,Y,D,s,c]},function(Q,F){var L=be(Q,3),U=L[2];(F||d)&&g7&&o_(U,{mark:su,attachTo:h})},function(Q){var F=be(Q,4),L=F[0];F[1];var U=F[2],R=F[3];if(w&&L!==rEe){var $={mark:su,prepend:S?!1:"queue",attachTo:h,priority:c},P=typeof o=="function"?o():o;P&&($.csp={nonce:P});var z=[],B=[];Object.keys(R).forEach(function(X){X.startsWith("@layer")?z.push(X):B.push(X)}),z.forEach(function(X){ff(l2(R[X]),"_layer-".concat(X),se(se({},$),{},{prepend:!0}))});var D=ff(L,U,$);D[wp]=y.instanceId,D.setAttribute(L0,C),B.forEach(function(X){ff(l2(R[X]),"_effect-".concat(X),$)})}}),A=be(T,3),k=A[0],I=A[1],M=A[2];return function(Q){var F;return!g||w||!f?F=p.createElement(oFe,null):F=p.createElement("style",Re({},ae(ae({},L0,I),su,M),{dangerouslySetInnerHTML:{__html:k}})),p.createElement(p.Fragment,null,F,Q)}}var sFe=function(t,n,r){var a=be(t,6),i=a[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],d=r||{},f=d.plain;if(c)return null;var m=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=b$(i,o,s,h,f),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var O=l2(l[g]),v=b$(O,o,"_effect-".concat(g),h,f);g.startsWith("@layer")?m=v+m:m+=v}}),[u,s,m]},lEe="cssVar",lFe=function(t,n){var r=t.key,a=t.prefix,i=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=p.useContext(Lh),d=u.cache.instanceId,f=u.container,m=s._tokenKey,h=[].concat(Ke(t.path),[r,c,m]),g=qU(lEe,h,function(){var O=n(),v=V1e(O,r,{prefix:a,unitless:i,ignore:o,scope:c}),y=be(v,2),S=y[0],C=y[1],_=oEe(h,C);return[S,C,_,r]},function(O){var v=be(O,3),y=v[2];g7&&o_(y,{mark:su,attachTo:f})},function(O){var v=be(O,3),y=v[1],S=v[2];if(y){var C=ff(y,S,{mark:su,prepend:"queue",attachTo:f,priority:-999});C[wp]=d,C.setAttribute(L0,r)}});return g},cFe=function(t,n,r){var a=be(t,4),i=a[1],o=a[2],s=a[3],l=r||{},c=l.plain;if(!i)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=b$(i,s,o,d,c);return[u,o,f]};ae(ae(ae({},sEe,sFe),W1e,LBe),lEe,cFe);var kr=(function(){function e(t,n){Sa(this,e),ae(this,"name",void 0),ae(this,"style",void 0),ae(this,"_keyframe",!0),this.name=t,this.style=n}return _a(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 iO(e){return e.notSplit=!0,e}iO(["borderTop","borderBottom"]),iO(["borderTop"]),iO(["borderBottom"]),iO(["borderLeft","borderRight"]),iO(["borderLeft"]),iO(["borderRight"]);var uFe=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],dFe=function(t){return p.memo(function(n){var r=n.children,a=n.prefix,i=n.speedy,o=n.getStyleManager,s=n.container,l=n.nonce,c=n.insertionPoint,u=n.stylisPlugins,d=n.linters,f=on(n,uFe),m=p.useContext(t),h=a??m.sheet.key,g=s??m.sheet.container,O=i??m.sheet.isSpeedy,v=p.useMemo(function(){var S=!1,C=BU({speedy:O??S,key:h,container:g,nonce:l,insertionPoint:c,stylisPlugins:u});if(typeof global<"u"){var _=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;_&&(C.cache=_.add(C.cache))}return C},[h,O,g,l,c,u]);p.useEffect(function(){o==null||o(v)},[v]);var y=x.jsx(t.Provider,{value:v,children:r});return Object.keys(f).length||g?x.jsx(OBe,se(se({linters:d,container:g},f),{},{children:y})):y})},fFe=function(t){var n=t.css,r=t.token;return{buttonDefaultHover:n({backgroundColor:r.colorBgContainer,border:"1px solid ".concat(r.colorBorder),cursor:"pointer",":hover":{color:r.colorPrimaryHover,borderColor:r.colorPrimaryHover},":active":{color:r.colorPrimaryActive,borderColor:r.colorPrimaryActive}})}},pFe=function(t){return Object.fromEntries(Object.entries(t).map(function(n){var r=be(n,2),a=r[0],i=r[1];return[a,i.styles]}))},x4={exports:{}};/*! + */var vne;function bBe(){if(vne)return xa;vne=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var w=_.$$typeof;switch(w){case t:switch(_=_.type,_){case l:case c:case r:case i:case a:case d:return _;default:switch(_=_&&_.$$typeof,_){case s:case u:case h:case m:case o:return _;default:return w}}case n:return w}}}function C(_){return S(_)===c}return xa.AsyncMode=l,xa.ConcurrentMode=c,xa.ContextConsumer=s,xa.ContextProvider=o,xa.Element=t,xa.ForwardRef=u,xa.Fragment=r,xa.Lazy=h,xa.Memo=m,xa.Portal=n,xa.Profiler=i,xa.StrictMode=a,xa.Suspense=d,xa.isAsyncMode=function(_){return C(_)||S(_)===l},xa.isConcurrentMode=C,xa.isContextConsumer=function(_){return S(_)===s},xa.isContextProvider=function(_){return S(_)===o},xa.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},xa.isForwardRef=function(_){return S(_)===u},xa.isFragment=function(_){return S(_)===r},xa.isLazy=function(_){return S(_)===h},xa.isMemo=function(_){return S(_)===m},xa.isPortal=function(_){return S(_)===n},xa.isProfiler=function(_){return S(_)===i},xa.isStrictMode=function(_){return S(_)===a},xa.isSuspense=function(_){return S(_)===d},xa.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===c||_===i||_===a||_===d||_===f||typeof _=="object"&&_!==null&&(_.$$typeof===h||_.$$typeof===m||_.$$typeof===o||_.$$typeof===s||_.$$typeof===u||_.$$typeof===O||_.$$typeof===v||_.$$typeof===y||_.$$typeof===g)},xa.typeOf=S,xa}var yne;function vBe(){return yne||(yne=1,k4.exports=bBe()),k4.exports}var A4,Sne;function yBe(){if(Sne)return A4;Sne=1;var e=vBe(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function o(h){return e.isMemo(h)?a:i[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function m(h,g,O){if(typeof g!="string"){if(f){var v=d(g);v&&v!==f&&m(h,v,O)}var y=l(g);c&&(y=y.concat(c(g)));for(var S=o(h),C=o(g),_=0;_e.length)&&(t=e.length);for(var n=0,r=Array(t);n=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 Eo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function A7(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 xne="data-rc-order",Tne="data-rc-priority",DBe="rc-util-key",N7=new Map;function fEe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):DBe}function lk(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function LBe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function hj(e){return Array.from((N7.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function pEe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Eo())return null;var n=t.csp,r=t.prepend,a=t.priority,i=a===void 0?0:a,o=LBe(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(xne,o),s&&i&&l.setAttribute(Tne,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=lk(t),u=c.firstChild;if(r){if(s){var d=(t.styles||hj(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(xne)))return!1;var m=Number(f.getAttribute(Tne)||0);return i>=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 mEe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=lk(t);return(t.styles||hj(n)).find(function(r){return r.getAttribute(fEe(t))===e})}function f_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=mEe(e,t);if(n){var r=lk(t);r.removeChild(n)}}function QBe(e,t){var n=N7.get(e);if(!n||!A7(document,n)){var r=pEe("",t),a=r.parentNode;N7.set(e,a),e.removeChild(r)}}function bf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=lk(n),a=hj(r),i=oe(oe({},n),{},{styles:a});QBe(r,i);var o=mEe(t,i);if(o){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=pEe(e,i);return u.setAttribute(fEe(i),t),u}function Om(e,t,n){var r=p.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var I7={},zBe=function(t){};function BBe(e,t){}function FBe(e,t){}function UBe(){I7={}}function hEe(e,t,n){!t&&!I7[n]&&(e(!1,n),I7[n]=!0)}function Da(e,t){hEe(BBe,e,t)}function jBe(e,t){hEe(FBe,e,t)}Da.preMessage=zBe;Da.resetWarned=UBe;Da.noteOnce=jBe;function Bl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Da(!l,"Warning: There may be circular references"),l)return!1;if(i===o)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return n.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=o)!==null&&r!==void 0&&r.value&&i&&(o.value[1]=this.cacheCallTimes++),(a=o)===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 i=this.keys.reduce(function(c,u){var d=ye(c,2),f=d[1];return a.internalGet(u)[1]0,void 0),wne+=1}return Ea(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e})(),N4=new gj;function $$(e){var t=Array.isArray(e)?e:[e];return N4.has(t)||N4.set(t,new bEe(t)),N4.get(t)}var GBe=new WeakMap,I4={};function HBe(e,t){for(var n=GBe,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 i=oe(oe({},r),{},ae(ae({},U0,t),fu,n)),o=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var f2=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()},ZBe=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 i=ye(a,2),o=i[0],s=i[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},vEe=function(t,n,r){var a={},i={};return Object.entries(t).forEach(function(o){var s,l,c=ye(o,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])i[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var f,m=f2(u,r==null?void 0:r.prefix);a[m]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),i[u]="var(".concat(m,")")}}),[i,ZBe(a,n,{scope:r==null?void 0:r.scope})]},Rne=Eo()?p.useLayoutEffect:p.useEffect,tr=function(t,n){var r=p.useRef(!0);Rne(function(){return t(r.current)},n),Rne(function(){return r.current=!1,function(){r.current=!0}},[])},Mh=function(t,n){tr(function(r){if(!r)return t()},n)},KBe=oe({},F0),Pne=KBe.useInsertionEffect,JBe=function(t,n,r){p.useMemo(t,r),tr(function(){return n(!0)},r)},eFe=Pne?function(e,t,n){return Pne(function(){return e(),t()},n)}:JBe,tFe=oe({},F0),nFe=tFe.useInsertionEffect,rFe=function(t){var n=[],r=!1;function a(i){r||n.push(i)}return p.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),a},aFe=function(){return function(t){t()}},iFe=typeof nFe<"u"?rFe:aFe;function Oj(e,t,n,r,a){var i=p.useContext(Xh),o=i.cache,s=[e].concat(et(t)),l=M7(s),c=iFe([l]),u=function(h){o.opUpdate(l,function(g){var O=g||[void 0,void 0],v=ye(O,2),y=v[0],S=y===void 0?0:y,C=v[1],_=C,w=_||n(),T=[S,w];return h?h(T):T})};p.useMemo(function(){u()},[l]);var d=o.opGet(l),f=d[1];return eFe(function(){a==null||a(f)},function(m){return u(function(h){var g=ye(h,2),O=g[0],v=g[1];return m&&O===0&&(a==null||a(f)),[O+1,v]}),function(){o.opUpdate(l,function(h){var g=h||[],O=ye(g,2),v=O[0],y=v===void 0?0:v,S=O[1],C=y-1;return C===0?(c(function(){(m||!o.opGet(l))&&(r==null||r(S,!1))}),null):[y-1,S]})}},[l]),f}var oFe={},sFe="css",uh=new Map;function lFe(e){uh.set(e,(uh.get(e)||0)+1)}function cFe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(U0,'="').concat(e,'"]'));n.forEach(function(r){if(r[Np]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var uFe=0;function dFe(e,t){uh.set(e,(uh.get(e)||0)-1);var n=new Set;uh.forEach(function(r,a){r<=0&&n.add(a)}),uh.size-n.size>uFe&&n.forEach(function(r){cFe(r,t),uh.delete(r)})}var yEe=function(t,n,r,a){var i=r.getDerivativeToken(t),o=oe(oe({},i),n);return a&&(o=a(o)),o},SEe="token";function fFe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=p.useContext(Xh),a=r.cache.instanceId,i=r.container,o=n.salt,s=o===void 0?"":o,l=n.override,c=l===void 0?oFe:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,m=HBe(function(){return Object.assign.apply(Object,[{}].concat(et(t)))},t),h=wS(m),g=wS(c),O=f?wS(f):"",v=Oj(SEe,[s,e.id,h,g,O],function(){var y,S=d?d(m,c,e):yEe(m,c,e,u),C=oe({},S),_="";if(f){var w=vEe(S,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),T=ye(w,2);S=T[0],_=T[1]}var k=$ne(S,s);S._tokenKey=k,C._tokenKey=$ne(C,s);var A=(y=f==null?void 0:f.key)!==null&&y!==void 0?y:k;S._themeKey=A,lFe(A);var I="".concat(sFe,"-").concat(gd(k));return S._hashId=I,[S,I,C,_,(f==null?void 0:f.key)||""]},function(y){dFe(y[0]._themeKey,a)},function(y){var S=ye(y,4),C=S[0],_=S[3];if(f&&_){var w=bf(_,gd("css-variables-".concat(C._themeKey)),{mark:fu,prepend:"queue",attachTo:i,priority:-999});w[Np]=a,w.setAttribute(U0,C._themeKey)}});return v}var pFe=function(t,n,r){var a=ye(t,5),i=a[2],o=a[3],s=a[4],l=r||{},c=l.plain;if(!o)return null;var u=i._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=R$(o,s,u,f,c);return[d,u,m]},_Ee={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},Ja="-ms-",CS="-moz-",va="-webkit-",EEe="comm",bj="rule",vj="decl",mFe="@import",hFe="@namespace",xEe="@keyframes",gFe="@layer",TEe=Math.abs,yj=String.fromCharCode,L7=Object.assign;function OFe(e,t){return Ki(e,0)^45?(((t<<2^Ki(e,0))<<2^Ki(e,1))<<2^Ki(e,2))<<2^Ki(e,3):0}function wEe(e){return e.trim()}function cf(e,t){return(e=t.exec(e))?e[0]:e}function Fr(e,t,n){return e.replace(t,n)}function p2(e,t,n){return e.indexOf(t,n)}function Ki(e,t){return e.charCodeAt(t)|0}function Vh(e,t,n){return e.slice(t,n)}function eu(e){return e.length}function CEe(e){return e.length}function Hy(e,t){return t.push(e),e}function bFe(e,t){return e.map(t).join("")}function kne(e,t){return e.filter(function(n){return!cf(n,t)})}var uk=1,X0=1,$Ee=0,Tc=0,Fi=0,wb="";function dk(e,t,n,r,a,i,o,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:uk,column:X0,length:o,return:"",siblings:s}}function yp(e,t){return L7(dk("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function fO(e){for(;e.root;)e=yp(e.root,{children:[e]});Hy(e,e.siblings)}function vFe(){return Fi}function yFe(){return Fi=Tc>0?Ki(wb,--Tc):0,X0--,Fi===10&&(X0=1,uk--),Fi}function pu(){return Fi=Tc<$Ee?Ki(wb,Tc++):0,X0++,Fi===10&&(X0=1,uk++),Fi}function Ip(){return Ki(wb,Tc)}function m2(){return Tc}function fk(e,t){return Vh(wb,e,t)}function p_(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function SFe(e){return uk=X0=1,$Ee=eu(wb=e),Tc=0,[]}function _Fe(e){return wb="",e}function M4(e){return wEe(fk(Tc-1,Q7(e===91?e+2:e===40?e+1:e)))}function EFe(e){for(;(Fi=Ip())&&Fi<33;)pu();return p_(e)>2||p_(Fi)>3?"":" "}function xFe(e,t){for(;--t&&pu()&&!(Fi<48||Fi>102||Fi>57&&Fi<65||Fi>70&&Fi<97););return fk(e,m2()+(t<6&&Ip()==32&&pu()==32))}function Q7(e){for(;pu();)switch(Fi){case e:return Tc;case 34:case 39:e!==34&&e!==39&&Q7(Fi);break;case 40:e===41&&Q7(e);break;case 92:pu();break}return Tc}function TFe(e,t){for(;pu()&&e+Fi!==57;)if(e+Fi===84&&Ip()===47)break;return"/*"+fk(t,Tc-1)+"*"+yj(e===47?e:pu())}function wFe(e){for(;!p_(Ip());)pu();return fk(e,Tc)}function P$(e){return _Fe(h2("",null,null,null,[""],e=SFe(e),0,[0],e))}function h2(e,t,n,r,a,i,o,s,l){for(var c=0,u=0,d=o,f=0,m=0,h=0,g=1,O=1,v=1,y=0,S="",C=a,_=i,w=r,T=S;O;)switch(h=y,y=pu()){case 40:if(h!=108&&Ki(T,d-1)==58){p2(T+=Fr(M4(y),"&","&\f"),"&\f",TEe(c?s[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:T+=M4(y);break;case 9:case 10:case 13:case 32:T+=EFe(h);break;case 92:T+=xFe(m2()-1,7);continue;case 47:switch(Ip()){case 42:case 47:Hy(CFe(TFe(pu(),m2()),t,n,l),l),(p_(h||1)==5||p_(Ip()||1)==5)&&eu(T)&&Vh(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*g:s[c++]=eu(T)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:O=0;case 59+u:v==-1&&(T=Fr(T,/\f/g,"")),m>0&&(eu(T)-d||g===0&&h===47)&&Hy(m>32?Nne(T+";",r,n,d-1,l):Nne(Fr(T," ","")+";",r,n,d-2,l),l);break;case 59:T+=";";default:if(Hy(w=Ane(T,t,n,c,u,a,s,S,C=[],_=[],d,i),i),y===123)if(u===0)h2(T,t,w,w,C,i,d,s,_);else{switch(f){case 99:if(Ki(T,3)===110)break;case 108:if(Ki(T,2)===97)break;default:u=0;case 100:case 109:case 115:}u?h2(e,w,w,r&&Hy(Ane(e,w,w,0,0,a,s,S,a,C=[],d,_),_),a,_,d,s,r?C:_):h2(T,w,w,w,[""],_,0,s,_)}}c=u=m=0,g=v=1,S=T="",d=o;break;case 58:d=1+eu(T),m=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&yFe()==125)continue}switch(T+=yj(y),y*g){case 38:v=u>0?1:(T+="\f",-1);break;case 44:s[c++]=(eu(T)-1)*v,v=1;break;case 64:Ip()===45&&(T+=M4(pu())),f=Ip(),u=d=eu(S=T+=wFe(m2())),y++;break;case 45:h===45&&eu(T)==2&&(g=0)}}return i}function Ane(e,t,n,r,a,i,o,s,l,c,u,d){for(var f=a-1,m=a===0?i:[""],h=CEe(m),g=0,O=0,v=0;g0?m[y]+" "+S:Fr(S,/&\f/g,m[y])))&&(l[v++]=C);return dk(e,t,n,a===0?bj:s,l,c,u,d)}function CFe(e,t,n,r){return dk(e,t,n,EEe,yj(vFe()),Vh(e,2,-2),0,r)}function Nne(e,t,n,r,a){return dk(e,t,n,vj,Vh(e,0,r),Vh(e,r+1,-1),r,a)}function REe(e,t,n){switch(OFe(e,t)){case 5103:return va+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return va+e+e;case 4855:return va+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return CS+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return va+e+CS+e+Ja+e+e;case 5936:switch(Ki(e,t+11)){case 114:return va+e+Ja+Fr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return va+e+Ja+Fr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return va+e+Ja+Fr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return va+e+Ja+e+e;case 6165:return va+e+Ja+"flex-"+e+e;case 5187:return va+e+Fr(e,/(\w+).+(:[^]+)/,va+"box-$1$2"+Ja+"flex-$1$2")+e;case 5443:return va+e+Ja+"flex-item-"+Fr(e,/flex-|-self/g,"")+(cf(e,/flex-|baseline/)?"":Ja+"grid-row-"+Fr(e,/flex-|-self/g,""))+e;case 4675:return va+e+Ja+"flex-line-pack"+Fr(e,/align-content|flex-|-self/g,"")+e;case 5548:return va+e+Ja+Fr(e,"shrink","negative")+e;case 5292:return va+e+Ja+Fr(e,"basis","preferred-size")+e;case 6060:return va+"box-"+Fr(e,"-grow","")+va+e+Ja+Fr(e,"grow","positive")+e;case 4554:return va+Fr(e,/([^-])(transform)/g,"$1"+va+"$2")+e;case 6187:return Fr(Fr(Fr(e,/(zoom-|grab)/,va+"$1"),/(image-set)/,va+"$1"),e,"")+e;case 5495:case 3959:return Fr(e,/(image-set\([^]*)/,va+"$1$`$1");case 4968:return Fr(Fr(e,/(.+:)(flex-)?(.*)/,va+"box-pack:$3"+Ja+"flex-pack:$3"),/space-between/,"justify")+va+e+e;case 4200:if(!cf(e,/flex-|baseline/))return Ja+"grid-column-align"+Vh(e,t)+e;break;case 2592:case 3360:return Ja+Fr(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,a){return t=a,cf(r.props,/grid-\w+-end/)})?~p2(e+(n=n[t].value),"span",0)?e:Ja+Fr(e,"-start","")+e+Ja+"grid-row-span:"+(~p2(n,"span",0)?cf(n,/\d+/):+cf(n,/\d+/)-+cf(e,/\d+/))+";":Ja+Fr(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return cf(r.props,/grid-\w+-start/)})?e:Ja+Fr(Fr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Fr(e,/(.+)-inline(.+)/,va+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(eu(e)-1-t>6)switch(Ki(e,t+1)){case 109:if(Ki(e,t+4)!==45)break;case 102:return Fr(e,/(.+:)(.+)-([^]+)/,"$1"+va+"$2-$3$1"+CS+(Ki(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~p2(e,"stretch",0)?REe(Fr(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Fr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,a,i,o,s,l,c){return Ja+a+":"+i+c+(o?Ja+a+"-span:"+(s?l:+l-+i)+c:"")+e});case 4949:if(Ki(e,t+6)===121)return Fr(e,":",":"+va)+e;break;case 6444:switch(Ki(e,Ki(e,14)===45?18:11)){case 120:return Fr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+va+(Ki(e,14)===45?"inline-":"")+"box$3$1"+va+"$2$3$1"+Ja+"$2box$3")+e;case 100:return Fr(e,":",":"+Ja)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Fr(e,"scroll-","scroll-snap-")+e}return e}function qh(e,t){for(var n="",r=0;r-1&&!e.return)switch(e.type){case vj:e.return=REe(e.value,e.length,n);return;case xEe:return qh([yp(e,{value:Fr(e.value,"@","@"+va)})],r);case bj:if(e.length)return bFe(n=e.props,function(a){switch(cf(a,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":fO(yp(e,{props:[Fr(a,/:(read-\w+)/,":"+CS+"$1")]})),fO(yp(e,{props:[a]})),L7(e,{props:kne(n,r)});break;case"::placeholder":fO(yp(e,{props:[Fr(a,/:(plac\w+)/,":"+va+"input-$1")]})),fO(yp(e,{props:[Fr(a,/:(plac\w+)/,":"+CS+"$1")]})),fO(yp(e,{props:[Fr(a,/:(plac\w+)/,Ja+"input-$1")]})),fO(yp(e,{props:[a]})),L7(e,{props:kne(n,r)});break}return""})}}var Ine="data-ant-cssinjs-cache-path",PEe="_FILE_STYLE__",Dh,kEe=!0;function PFe(){if(!Dh&&(Dh={},Eo())){var e=document.createElement("div");e.className=Ine,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(a){var i=a.split(":"),o=ye(i,2),s=o[0],l=o[1];Dh[s]=l});var n=document.querySelector("style[".concat(Ine,"]"));if(n){var r;kEe=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function kFe(e){return PFe(),!!Dh[e]}function AFe(e){var t=Dh[e],n=null;if(t&&Eo())if(kEe)n=PEe;else{var r=document.querySelector("style[".concat(fu,'="').concat(Dh[e],'"]'));r?n=r.innerHTML:delete Dh[e]}return[n,t]}var NFe="_skip_check_",AEe="_multi_value_";function g2(e){var t=qh(P$(e),k$);return t.replace(/\{%%%\:[^;];}/g,";")}function IFe(e){return Xt(e)==="object"&&e&&(NFe in e||AEe in e)}function Mne(e,t,n){if(!t)return e;var r=".".concat(t),a=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(o){var s,l=o.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(a).concat(c.slice(u.length)),[c].concat(et(l.slice(1))).join(" ")});return i.join(",")}var MFe=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,i=r.injectHash,o=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var f="",m={};function h(v){var y=v.getName(s);if(!m[y]){var S=e(v.style,n,{root:!1,parentSelectors:o}),C=ye(S,1),_=C[0];m[y]="@keyframes ".concat(v.getName(s)).concat(_)}}function g(v){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return v.forEach(function(S){Array.isArray(S)?g(S,y):S&&y.push(S)}),y}var O=g(Array.isArray(t)?t:[t]);return O.forEach(function(v){var y=typeof v=="string"&&!a?{}:v;if(typeof y=="string")f+="".concat(y,` +`);else if(y._keyframe)h(y);else{var S=d.reduce(function(C,_){var w;return(_==null||(w=_.visit)===null||w===void 0?void 0:w.call(_,C))||C},y);Object.keys(S).forEach(function(C){var _=S[C];if(Xt(_)==="object"&&_&&(C!=="animationName"||!_._keyframe)&&!IFe(_)){var w=!1,T=C.trim(),k=!1;(a||i)&&s?T.startsWith("@")?w=!0:T==="&"?T=Mne("",s,c):T=Mne(C,s,c):a&&!s&&(T==="&"||T==="")&&(T="",k=!0);var A=e(_,n,{root:k,injectHash:w,parentSelectors:[].concat(et(o),[T])}),I=ye(A,2),M=I[0],Q=I[1];m=oe(oe({},m),Q),f+="".concat(T).concat(M)}else{let U=function(R,$){var P=R.replace(/[A-Z]/g,function(F){return"-".concat(F.toLowerCase())}),z=$;!_Ee[R]&&typeof z=="number"&&z!==0&&(z="".concat(z,"px")),R==="animationName"&&$!==null&&$!==void 0&&$._keyframe&&(h($),z=$.getName(s)),f+="".concat(P,":").concat(z,";")};var B,D=(B=_==null?void 0:_.value)!==null&&B!==void 0?B:_;Xt(_)==="object"&&_!==null&&_!==void 0&&_[AEe]&&Array.isArray(D)?D.forEach(function(R){U(C,R)}):U(C,D)}})}}),a?l&&(f&&(f="@layer ".concat(l.name," {").concat(f,"}")),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map(function(v){return"@layer ".concat(v,", ").concat(l.name,";")}).join(` +`))):f="{".concat(f,"}"),[f,m]};function NEe(e,t){return gd("".concat(e.join("%")).concat(t))}function DFe(){return null}var IEe="style";function z7(e,t){var n=e.token,r=e.path,a=e.hashId,i=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=p.useContext(Xh),d=u.autoClear;u.mock;var f=u.defaultCache,m=u.hashPriority,h=u.container,g=u.ssrInline,O=u.transformers,v=u.linters,y=u.cache,S=u.layer,C=n._tokenKey,_=[C];S&&_.push("layer"),_.push.apply(_,et(r));var w=D7,T=Oj(IEe,_,function(){var Q=_.join("|");if(kFe(Q)){var B=AFe(Q),D=ye(B,2),U=D[0],R=D[1];if(U)return[U,C,R,{},s,c]}var $=t(),P=MFe($,{hashId:a,hashPriority:m,layer:S?i:void 0,path:r.join("-"),transformers:O,linters:v}),z=ye(P,2),F=z[0],L=z[1],X=g2(F),Y=NEe(_,X);return[X,C,Y,L,s,c]},function(Q,B){var D=ye(Q,3),U=D[2];(B||d)&&D7&&f_(U,{mark:fu,attachTo:h})},function(Q){var B=ye(Q,4),D=B[0];B[1];var U=B[2],R=B[3];if(w&&D!==PEe){var $={mark:fu,prepend:S?!1:"queue",attachTo:h,priority:c},P=typeof o=="function"?o():o;P&&($.csp={nonce:P});var z=[],F=[];Object.keys(R).forEach(function(X){X.startsWith("@layer")?z.push(X):F.push(X)}),z.forEach(function(X){bf(g2(R[X]),"_layer-".concat(X),oe(oe({},$),{},{prepend:!0}))});var L=bf(D,U,$);L[Np]=y.instanceId,L.setAttribute(U0,C),F.forEach(function(X){bf(g2(R[X]),"_effect-".concat(X),$)})}}),k=ye(T,3),A=k[0],I=k[1],M=k[2];return function(Q){var B;return!g||w||!f?B=p.createElement(DFe,null):B=p.createElement("style",Ae({},ae(ae({},U0,I),fu,M),{dangerouslySetInnerHTML:{__html:A}})),p.createElement(p.Fragment,null,B,Q)}}var LFe=function(t,n,r){var a=ye(t,6),i=a[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],d=r||{},f=d.plain;if(c)return null;var m=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=R$(i,o,s,h,f),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var O=g2(l[g]),v=R$(O,o,"_effect-".concat(g),h,f);g.startsWith("@layer")?m=v+m:m+=v}}),[u,s,m]},MEe="cssVar",QFe=function(t,n){var r=t.key,a=t.prefix,i=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=p.useContext(Xh),d=u.cache.instanceId,f=u.container,m=s._tokenKey,h=[].concat(et(t.path),[r,c,m]),g=Oj(MEe,h,function(){var O=n(),v=vEe(O,r,{prefix:a,unitless:i,ignore:o,scope:c}),y=ye(v,2),S=y[0],C=y[1],_=NEe(h,C);return[S,C,_,r]},function(O){var v=ye(O,3),y=v[2];D7&&f_(y,{mark:fu,attachTo:f})},function(O){var v=ye(O,3),y=v[1],S=v[2];if(y){var C=bf(y,S,{mark:fu,prepend:"queue",attachTo:f,priority:-999});C[Np]=d,C.setAttribute(U0,r)}});return g},zFe=function(t,n,r){var a=ye(t,4),i=a[1],o=a[2],s=a[3],l=r||{},c=l.plain;if(!i)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=R$(i,s,o,d,c);return[u,o,f]};ae(ae(ae({},IEe,LFe),SEe,pFe),MEe,zFe);var kr=(function(){function e(t,n){_a(this,e),ae(this,"name",void 0),ae(this,"style",void 0),ae(this,"_keyframe",!0),this.name=t,this.style=n}return Ea(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 pO(e){return e.notSplit=!0,e}pO(["borderTop","borderBottom"]),pO(["borderTop"]),pO(["borderBottom"]),pO(["borderLeft","borderRight"]),pO(["borderLeft"]),pO(["borderRight"]);var BFe=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],FFe=function(t){return p.memo(function(n){var r=n.children,a=n.prefix,i=n.speedy,o=n.getStyleManager,s=n.container,l=n.nonce,c=n.insertionPoint,u=n.stylisPlugins,d=n.linters,f=ln(n,BFe),m=p.useContext(t),h=a??m.sheet.key,g=s??m.sheet.container,O=i??m.sheet.isSpeedy,v=p.useMemo(function(){var S=!1,C=uj({speedy:O??S,key:h,container:g,nonce:l,insertionPoint:c,stylisPlugins:u});if(typeof global<"u"){var _=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;_&&(C.cache=_.add(C.cache))}return C},[h,O,g,l,c,u]);p.useEffect(function(){o==null||o(v)},[v]);var y=x.jsx(t.Provider,{value:v,children:r});return Object.keys(f).length||g?x.jsx(qBe,oe(oe({linters:d,container:g},f),{},{children:y})):y})},UFe=function(t){var n=t.css,r=t.token;return{buttonDefaultHover:n({backgroundColor:r.colorBgContainer,border:"1px solid ".concat(r.colorBorder),cursor:"pointer",":hover":{color:r.colorPrimaryHover,borderColor:r.colorPrimaryHover},":active":{color:r.colorPrimaryActive,borderColor:r.colorPrimaryActive}})}},jFe=function(t){return Object.fromEntries(Object.entries(t).map(function(n){var r=ye(n,2),a=r[0],i=r[1];return[a,i.styles]}))},D4={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/var fne;function mFe(){return fne||(fne=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Z.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(To(r)):cEe(r)&&r.props?n=n.concat(To(r.props.children,t)):n.push(r))}),n}var Fl=y1e();const rl=Ii(Fl),vFe=v1e({__proto__:null,default:rl},[Fl]);function l_(e){return e instanceof HTMLElement||e instanceof SVGElement}function LE(e){return e&&Ut(e)==="object"&&l_(e.nativeElement)?e.nativeElement:l_(e)?e:null}function c2(e){var t=LE(e);if(t)return t;if(e instanceof Z.Component){var n;return(n=rl.findDOMNode)===null||n===void 0?void 0:n.call(rl,e)}return null}var T4={exports:{}},xa={};/** +*/var Dne;function XFe(){return Dne||(Dne=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Z.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(xo(r)):DEe(r)&&r.props?n=n.concat(xo(r.props.children,t)):n.push(r))}),n}var Fl=q1e();const rl=Ii(Fl),GFe=V1e({__proto__:null,default:rl},[Fl]);function m_(e){return e instanceof HTMLElement||e instanceof SVGElement}function jE(e){return e&&Xt(e)==="object"&&m_(e.nativeElement)?e.nativeElement:m_(e)?e:null}function O2(e){var t=jE(e);if(t)return t;if(e instanceof Z.Component){var n;return(n=rl.findDOMNode)===null||n===void 0?void 0:n.call(rl,e)}return null}var L4={exports:{}},Ta={};/** * @license React * react-is.production.min.js * @@ -61,14 +61,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var pne;function yFe(){if(pne)return xa;pne=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"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(O){if(typeof O=="object"&&O!==null){var v=O.$$typeof;switch(v){case e:switch(O=O.type,O){case n:case a:case r:case c:case u:return O;default:switch(O=O&&O.$$typeof,O){case s:case o:case l:case f:case d:case i:return O;default:return v}}case t:return v}}}return xa.ContextConsumer=o,xa.ContextProvider=i,xa.Element=e,xa.ForwardRef=l,xa.Fragment=n,xa.Lazy=f,xa.Memo=d,xa.Portal=t,xa.Profiler=a,xa.StrictMode=r,xa.Suspense=c,xa.SuspenseList=u,xa.isAsyncMode=function(){return!1},xa.isConcurrentMode=function(){return!1},xa.isContextConsumer=function(O){return g(O)===o},xa.isContextProvider=function(O){return g(O)===i},xa.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===e},xa.isForwardRef=function(O){return g(O)===l},xa.isFragment=function(O){return g(O)===n},xa.isLazy=function(O){return g(O)===f},xa.isMemo=function(O){return g(O)===d},xa.isPortal=function(O){return g(O)===t},xa.isProfiler=function(O){return g(O)===a},xa.isStrictMode=function(O){return g(O)===r},xa.isSuspense=function(O){return g(O)===c},xa.isSuspenseList=function(O){return g(O)===u},xa.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===n||O===a||O===r||O===c||O===u||O===m||typeof O=="object"&&O!==null&&(O.$$typeof===f||O.$$typeof===d||O.$$typeof===i||O.$$typeof===o||O.$$typeof===l||O.$$typeof===h||O.getModuleId!==void 0)},xa.typeOf=g,xa}var mne;function uEe(){return mne||(mne=1,T4.exports=yFe()),T4.exports}var s0=uEe(),SFe=Number(p.version.split(".")[0]),c_=function(t,n){typeof t=="function"?t(n):Ut(t)==="object"&&t&&"current"in t&&(t.current=n)},Ci=function(){for(var t=arguments.length,n=new Array(t),r=0;r=19)return!0;var a=s0.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==s0.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==s0.ForwardRef)};function ZU(e){return p.isValidElement(e)&&!cEe(e)}var _Fe=function(t){return ZU(t)&&fu(t)},fm=function(t){if(t&&ZU(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},y7=p.createContext(null);function EFe(e){var t=e.children,n=e.onBatchResize,r=p.useRef(0),a=p.useRef([]),i=p.useContext(y7),o=p.useCallback(function(s,l,c){r.current+=1;var u=r.current;a.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(a.current),a.current=[])}),i==null||i(s,l,c)},[n,i]);return p.createElement(y7.Provider,{value:o},t)}var dEe=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,i){return a[0]===n?(r=i,!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,i=this.__entries__;a0},e.prototype.connect_=function(){!S7||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),RFe?(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(){!S7||!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=$Fe.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),fEe=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof B0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new QFe(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 B0(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 zFe(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})(),mEe=typeof WeakMap<"u"?new WeakMap:new dEe,hEe=(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=PFe.getInstance(),r=new BFe(t,n,this);mEe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){hEe.prototype[e]=function(){var t;return(t=mEe.get(this))[e].apply(t,arguments)}});var FFe=(function(){return typeof S$.ResizeObserver<"u"?S$.ResizeObserver:hEe})(),$p=new Map;function UFe(e){e.forEach(function(t){var n,r=t.target;(n=$p.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var gEe=new FFe(UFe);function jFe(e,t){$p.has(e)||($p.set(e,new Set),gEe.observe(e)),$p.get(e).add(t)}function XFe(e,t){$p.has(e)&&($p.get(e).delete(t),$p.get(e).size||(gEe.unobserve(e),$p.delete(e)))}var YFe=(function(e){dl(n,e);var t=Wl(n);function n(){return Sa(this,n),t.apply(this,arguments)}return _a(n,[{key:"render",value:function(){return this.props.children}}]),n})(p.Component);function VFe(e,t){var n=e.children,r=e.disabled,a=p.useRef(null),i=p.useRef(null),o=p.useContext(y7),s=typeof n=="function",l=s?n(a):n,c=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&p.isValidElement(l)&&fu(l),d=u?fm(l):null,f=Sd(d,a),m=function(){var v;return c2(a.current)||(a.current&&Ut(a.current)==="object"?c2((v=a.current)===null||v===void 0?void 0:v.nativeElement):null)||c2(i.current)};p.useImperativeHandle(t,function(){return m()});var h=p.useRef(e);h.current=e;var g=p.useCallback(function(O){var v=h.current,y=v.onResize,S=v.data,C=O.getBoundingClientRect(),_=C.width,w=C.height,T=O.offsetWidth,A=O.offsetHeight,k=Math.floor(_),I=Math.floor(w);if(c.current.width!==k||c.current.height!==I||c.current.offsetWidth!==T||c.current.offsetHeight!==A){var M={width:k,height:I,offsetWidth:T,offsetHeight:A};c.current=M;var Q=T===Math.round(_)?_:T,F=A===Math.round(w)?w:A,L=se(se({},M),{},{offsetWidth:Q,offsetHeight:F});o==null||o(L,O,S),y&&Promise.resolve().then(function(){y(L,O)})}},[]);return p.useEffect(function(){var O=m();return O&&!r&&jFe(O,g),function(){return XFe(O,g)}},[a.current,r]),p.createElement(YFe,{ref:i},u?p.cloneElement(l,{ref:f}):l)}var qFe=p.forwardRef(VFe),WFe="rc-observer-key";function GFe(e,t){var n=e.children,r=typeof n=="function"?[n]:To(n);return r.map(function(a,i){var o=(a==null?void 0:a.key)||"".concat(WFe,"-").concat(i);return p.createElement(qFe,Re({},e,{key:o,ref:i===0?t:void 0}),a)})}var Eo=p.forwardRef(GFe);Eo.Collection=EFe;var OEe=function(t){return+setTimeout(t,16)},bEe=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(OEe=function(t){return window.requestAnimationFrame(t)},bEe=function(t){return window.cancelAnimationFrame(t)});var gne=0,KU=new Map;function vEe(e){KU.delete(e)}var ur=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;gne+=1;var r=gne;function a(i){if(i===0)vEe(r),t();else{var o=OEe(function(){a(i-1)});KU.set(r,o)}}return a(n),r};ur.cancel=function(e){var t=KU.get(e);return vEe(e),bEe(t)};var JU=p.createContext({});function yEe(e){return D1e(e)||Q1e(e)||XU(e)||L1e()}function Cs(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Cs(e,t.slice(0,-1))?e:SEe(e,t,n,r)}function HFe(e){return Ut(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function One(e){return Array.isArray(e)?[]:{}}var ZFe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function qO(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=KFe,e},_Ee=p.createContext(void 0);var EEe={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"},eUe={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},tUe=se(se({},eUe),{},{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 xEe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},E$={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"]},tUe),timePickerLocale:Object.assign({},xEe)},vl="${label} is not a valid ${type}",pu={locale:"en",Pagination:EEe,DatePicker:E$,TimePicker:xEe,Calendar:E$,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:vl,method:vl,array:vl,object:vl,number:vl,date:vl,boolean:vl,integer:vl,float:vl,regexp:vl,email:vl,url:vl,hex:vl},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 u2=Object.assign({},pu.Modal),d2=[];const bne=()=>d2.reduce((e,t)=>Object.assign(Object.assign({},e),t),pu.Modal);function nUe(e){if(e){const t=Object.assign({},e);return d2.push(t),u2=bne(),()=>{d2=d2.filter(n=>n!==t),u2=bne()}}u2=Object.assign({},pu.Modal)}function TEe(){return u2}const ej=p.createContext(void 0),fl=(e,t)=>{const n=p.useContext(ej),r=p.useMemo(()=>{var i;const o=t||pu[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),a=p.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?pu.locale:i},[n]);return[r,a]},rUe="internalMark",aUe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;p.useEffect(()=>nUe(t==null?void 0:t.Modal),[t]);const a=p.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return p.createElement(ej.Provider,{value:a},n)},tj={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"},F0=Object.assign(Object.assign({},tj),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + */var Lne;function HFe(){if(Lne)return Ta;Lne=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"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(O){if(typeof O=="object"&&O!==null){var v=O.$$typeof;switch(v){case e:switch(O=O.type,O){case n:case a:case r:case c:case u:return O;default:switch(O=O&&O.$$typeof,O){case s:case o:case l:case f:case d:case i:return O;default:return v}}case t:return v}}}return Ta.ContextConsumer=o,Ta.ContextProvider=i,Ta.Element=e,Ta.ForwardRef=l,Ta.Fragment=n,Ta.Lazy=f,Ta.Memo=d,Ta.Portal=t,Ta.Profiler=a,Ta.StrictMode=r,Ta.Suspense=c,Ta.SuspenseList=u,Ta.isAsyncMode=function(){return!1},Ta.isConcurrentMode=function(){return!1},Ta.isContextConsumer=function(O){return g(O)===o},Ta.isContextProvider=function(O){return g(O)===i},Ta.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===e},Ta.isForwardRef=function(O){return g(O)===l},Ta.isFragment=function(O){return g(O)===n},Ta.isLazy=function(O){return g(O)===f},Ta.isMemo=function(O){return g(O)===d},Ta.isPortal=function(O){return g(O)===t},Ta.isProfiler=function(O){return g(O)===a},Ta.isStrictMode=function(O){return g(O)===r},Ta.isSuspense=function(O){return g(O)===c},Ta.isSuspenseList=function(O){return g(O)===u},Ta.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===n||O===a||O===r||O===c||O===u||O===m||typeof O=="object"&&O!==null&&(O.$$typeof===f||O.$$typeof===d||O.$$typeof===i||O.$$typeof===o||O.$$typeof===l||O.$$typeof===h||O.getModuleId!==void 0)},Ta.typeOf=g,Ta}var Qne;function LEe(){return Qne||(Qne=1,L4.exports=HFe()),L4.exports}var f0=LEe(),ZFe=Number(p.version.split(".")[0]),h_=function(t,n){typeof t=="function"?t(n):Xt(t)==="object"&&t&&"current"in t&&(t.current=n)},Ci=function(){for(var t=arguments.length,n=new Array(t),r=0;r=19)return!0;var a=f0.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==f0.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==f0.ForwardRef)};function Sj(e){return p.isValidElement(e)&&!DEe(e)}var KFe=function(t){return Sj(t)&&Ou(t)},bm=function(t){if(t&&Sj(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},B7=p.createContext(null);function JFe(e){var t=e.children,n=e.onBatchResize,r=p.useRef(0),a=p.useRef([]),i=p.useContext(B7),o=p.useCallback(function(s,l,c){r.current+=1;var u=r.current;a.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(a.current),a.current=[])}),i==null||i(s,l,c)},[n,i]);return p.createElement(B7.Provider,{value:o},t)}var QEe=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,i){return a[0]===n?(r=i,!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,i=this.__entries__;a0},e.prototype.connect_=function(){!F7||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),iUe?(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(){!F7||!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=aUe.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),zEe=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Y0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new mUe(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 Y0(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 hUe(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})(),FEe=typeof WeakMap<"u"?new WeakMap:new QEe,UEe=(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=oUe.getInstance(),r=new gUe(t,n,this);FEe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){UEe.prototype[e]=function(){var t;return(t=FEe.get(this))[e].apply(t,arguments)}});var OUe=(function(){return typeof A$.ResizeObserver<"u"?A$.ResizeObserver:UEe})(),Mp=new Map;function bUe(e){e.forEach(function(t){var n,r=t.target;(n=Mp.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var jEe=new OUe(bUe);function vUe(e,t){Mp.has(e)||(Mp.set(e,new Set),jEe.observe(e)),Mp.get(e).add(t)}function yUe(e,t){Mp.has(e)&&(Mp.get(e).delete(t),Mp.get(e).size||(jEe.unobserve(e),Mp.delete(e)))}var SUe=(function(e){dl(n,e);var t=Wl(n);function n(){return _a(this,n),t.apply(this,arguments)}return Ea(n,[{key:"render",value:function(){return this.props.children}}]),n})(p.Component);function _Ue(e,t){var n=e.children,r=e.disabled,a=p.useRef(null),i=p.useRef(null),o=p.useContext(B7),s=typeof n=="function",l=s?n(a):n,c=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&p.isValidElement(l)&&Ou(l),d=u?bm(l):null,f=Cd(d,a),m=function(){var v;return O2(a.current)||(a.current&&Xt(a.current)==="object"?O2((v=a.current)===null||v===void 0?void 0:v.nativeElement):null)||O2(i.current)};p.useImperativeHandle(t,function(){return m()});var h=p.useRef(e);h.current=e;var g=p.useCallback(function(O){var v=h.current,y=v.onResize,S=v.data,C=O.getBoundingClientRect(),_=C.width,w=C.height,T=O.offsetWidth,k=O.offsetHeight,A=Math.floor(_),I=Math.floor(w);if(c.current.width!==A||c.current.height!==I||c.current.offsetWidth!==T||c.current.offsetHeight!==k){var M={width:A,height:I,offsetWidth:T,offsetHeight:k};c.current=M;var Q=T===Math.round(_)?_:T,B=k===Math.round(w)?w:k,D=oe(oe({},M),{},{offsetWidth:Q,offsetHeight:B});o==null||o(D,O,S),y&&Promise.resolve().then(function(){y(D,O)})}},[]);return p.useEffect(function(){var O=m();return O&&!r&&vUe(O,g),function(){return yUe(O,g)}},[a.current,r]),p.createElement(SUe,{ref:i},u?p.cloneElement(l,{ref:f}):l)}var EUe=p.forwardRef(_Ue),xUe="rc-observer-key";function TUe(e,t){var n=e.children,r=typeof n=="function"?[n]:xo(n);return r.map(function(a,i){var o=(a==null?void 0:a.key)||"".concat(xUe,"-").concat(i);return p.createElement(EUe,Ae({},e,{key:o,ref:i===0?t:void 0}),a)})}var _o=p.forwardRef(TUe);_o.Collection=JFe;var XEe=function(t){return+setTimeout(t,16)},YEe=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(XEe=function(t){return window.requestAnimationFrame(t)},YEe=function(t){return window.cancelAnimationFrame(t)});var Bne=0,_j=new Map;function VEe(e){_j.delete(e)}var ur=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Bne+=1;var r=Bne;function a(i){if(i===0)VEe(r),t();else{var o=XEe(function(){a(i-1)});_j.set(r,o)}}return a(n),r};ur.cancel=function(e){var t=_j.get(e);return VEe(e),YEe(t)};var Ej=p.createContext({});function qEe(e){return cEe(e)||dEe(e)||mj(e)||uEe()}function ws(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ws(e,t.slice(0,-1))?e:WEe(e,t,n,r)}function wUe(e){return Xt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Fne(e){return Array.isArray(e)?[]:{}}var CUe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function KO(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=$Ue,e},GEe=p.createContext(void 0);var HEe={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"},PUe={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},kUe=oe(oe({},PUe),{},{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 ZEe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},I$={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"]},kUe),timePickerLocale:Object.assign({},ZEe)},vl="${label} is not a valid ${type}",bu={locale:"en",Pagination:HEe,DatePicker:I$,TimePicker:ZEe,Calendar:I$,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:vl,method:vl,array:vl,object:vl,number:vl,date:vl,boolean:vl,integer:vl,float:vl,regexp:vl,email:vl,url:vl,hex:vl},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 b2=Object.assign({},bu.Modal),v2=[];const Une=()=>v2.reduce((e,t)=>Object.assign(Object.assign({},e),t),bu.Modal);function AUe(e){if(e){const t=Object.assign({},e);return v2.push(t),b2=Une(),()=>{v2=v2.filter(n=>n!==t),b2=Une()}}b2=Object.assign({},bu.Modal)}function KEe(){return b2}const xj=p.createContext(void 0),fl=(e,t)=>{const n=p.useContext(xj),r=p.useMemo(()=>{var i;const o=t||bu[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,n]),a=p.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?bu.locale:i},[n]);return[r,a]},NUe="internalMark",IUe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;p.useEffect(()=>AUe(t==null?void 0:t.Modal),[t]);const a=p.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return p.createElement(xj.Provider,{value:a},n)},Tj={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"},V0=Object.assign(Object.assign({},Tj),{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}),go=Math.round;function w4(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 vne=(e,t,n)=>n===0?e:e/100;function Uv(e,t){const n=t||255;return e>n?n:e<0?0:e}let Sr=class wEe{constructor(t){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof wEe)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=Uv(t.r),this.g=Uv(t.g),this.b=Uv(t.b),this.a=typeof t.a=="number"?Uv(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(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.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=go(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,i=s=>(r[s]-this[s])*a+this[s],o={r:go(i("r")),g:go(i("g")),b:go(i("b")),a:go(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>go((this[i]*this.a+n[i]*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 i=go(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=go(this.getSaturation()*100),r=go(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]=Uv(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,i){return parseInt(n[a]+n[i||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 f=go(r*255);this.r=f,this.g=f,this.b=f}let i=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,o=u):l>=1&&l<2?(i=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=r-c/2;this.r=go((i+d)*255),this.g=go((o+d)*255),this.b=go((s+d)*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 i=go(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=go(r*(1-n)*255),u=go(r*(1-n*l)*255),d=go(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=w4(t,vne);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=w4(t,vne);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=w4(t,(r,a)=>a.includes("%")?go(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var VT=2,yne=.16,iUe=.05,oUe=.05,sUe=.15,CEe=5,$Ee=4,lUe=[{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 Sne(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-VT*t:Math.round(e.h)+VT*t:r=n?Math.round(e.h)+VT*t:Math.round(e.h)-VT*t,r<0?r+=360:r>=360&&(r-=360),r}function _ne(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-yne*t:t===$Ee?r=e.s+yne:r=e.s+iUe*t,r>1&&(r=1),n&&t===CEe&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Ene(e,t,n){var r;return n?r=e.v+oUe*t:r=e.v-sUe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function U0(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Sr(e),a=r.toHsv(),i=CEe;i>0;i-=1){var o=new Sr({h:Sne(a,i,!0),s:_ne(a,i,!0),v:Ene(a,i,!0)});n.push(o)}n.push(r);for(var s=1;s<=$Ee;s+=1){var l=new Sr({h:Sne(a,s),s:_ne(a,s),v:Ene(a,s)});n.push(l)}return t.theme==="dark"?lUe.map(function(c){var u=c.index,d=c.amount;return new Sr(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var l0={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"},_7=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_7.primary=_7[5];var E7=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];E7.primary=E7[5];var x7=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];x7.primary=x7[5];var x$=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];x$.primary=x$[5];var T7=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];T7.primary=T7[5];var w7=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];w7.primary=w7[5];var C7=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];C7.primary=C7[5];var $7=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];$7.primary=$7[5];var u_=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];u_.primary=u_[5];var R7=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];R7.primary=R7[5];var P7=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];P7.primary=P7[5];var k7=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];k7.primary=k7[5];var A7=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];A7.primary=A7[5];var C4={red:_7,volcano:E7,orange:x7,gold:x$,yellow:T7,lime:w7,green:C7,cyan:$7,blue:u_,geekblue:R7,purple:P7,magenta:k7,grey:A7};function REe(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:i,colorInfo:o,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(r),f=t(a),m=t(i),h=t(o),g=n(l,c),O=e.colorLink||e.colorInfo,v=t(O),y=new Sr(m[1]).mix(new Sr(m[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:y,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[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:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Sr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const cUe=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 uUe(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},cUe(r))}const PEe=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function f2(e){return(e+8)/e}function dUe(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,i=e*Math.pow(Math.E,a/5),o=r>1?Math.floor(i):Math.ceil(i);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:f2(n)}))}const kEe=e=>{const t=dUe(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),a=n[1],i=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function fUe(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 sc=(e,t)=>new Sr(e).setA(t).toRgbString(),jv=(e,t)=>new Sr(e).darken(t).toHexString(),pUe=e=>{const t=U0(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]}},mUe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:sc(r,.88),colorTextSecondary:sc(r,.65),colorTextTertiary:sc(r,.45),colorTextQuaternary:sc(r,.25),colorFill:sc(r,.15),colorFillSecondary:sc(r,.06),colorFillTertiary:sc(r,.04),colorFillQuaternary:sc(r,.02),colorBgSolid:sc(r,1),colorBgSolidHover:sc(r,.75),colorBgSolidActive:sc(r,.95),colorBgLayout:jv(n,4),colorBgContainer:jv(n,0),colorBgElevated:jv(n,0),colorBgSpotlight:sc(r,.85),colorBgBlur:"transparent",colorBorder:jv(n,15),colorBorderSecondary:jv(n,6)}};function nk(e){l0.pink=l0.magenta,C4.pink=C4.magenta;const t=Object.keys(tj).map(n=>{const r=e[n]===l0[n]?C4[n]:U0(e[n]);return Array.from({length:10},()=>1).reduce((a,i,o)=>(a[`${n}-${o+1}`]=r[o],a[`${n}${o+1}`]=r[o],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),REe(e,{generateColorPalettes:pUe,generateNeutralColorPalettes:mUe})),kEe(e.fontSize)),fUe(e)),PEe(e)),uUe(e))}const nj=O$(nk),d_={token:F0,override:{override:F0},hashed:!0},rj=Z.createContext(d_),f_="ant",rk="anticon",hUe=["outlined","borderless","filled","underlined"],gUe=(e,t)=>t||(e?`${f_}-${e}`:f_),fn=p.createContext({getPrefixCls:gUe,iconPrefixCls:rk}),{Consumer:MRn}=fn,xne={};function $i(e){const t=p.useContext(fn),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,i=t[e];return Object.assign(Object.assign({classNames:xne,styles:xne},i),{getPrefixCls:n,direction:r,getPopupContainer:a})}const OUe=`-ant-${Date.now()}-${Math.random()}`;function bUe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},a=(o,s)=>{const l=new Sr(o),c=U0(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){a(t.primaryColor,"primary");const o=new Sr(t.primaryColor),s=U0(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new Sr(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` +'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}),ho=Math.round;function Q4(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 jne=(e,t,n)=>n===0?e:e/100;function qv(e,t){const n=t||255;return e>n?n:e<0?0:e}let Sr=class JEe{constructor(t){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof JEe)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=qv(t.r),this.g=qv(t.g),this.b=qv(t.b),this.a=typeof t.a=="number"?qv(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(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.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=ho(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,i=s=>(r[s]-this[s])*a+this[s],o={r:ho(i("r")),g:ho(i("g")),b:ho(i("b")),a:ho(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>ho((this[i]*this.a+n[i]*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 i=ho(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ho(this.getSaturation()*100),r=ho(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]=qv(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,i){return parseInt(n[a]+n[i||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 f=ho(r*255);this.r=f,this.g=f,this.b=f}let i=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,o=u):l>=1&&l<2?(i=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=r-c/2;this.r=ho((i+d)*255),this.g=ho((o+d)*255),this.b=ho((s+d)*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 i=ho(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=ho(r*(1-n)*255),u=ho(r*(1-n*l)*255),d=ho(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=Q4(t,jne);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Q4(t,jne);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Q4(t,(r,a)=>a.includes("%")?ho(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var KT=2,Xne=.16,MUe=.05,DUe=.05,LUe=.15,exe=5,txe=4,QUe=[{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 Yne(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-KT*t:Math.round(e.h)+KT*t:r=n?Math.round(e.h)+KT*t:Math.round(e.h)-KT*t,r<0?r+=360:r>=360&&(r-=360),r}function Vne(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Xne*t:t===txe?r=e.s+Xne:r=e.s+MUe*t,r>1&&(r=1),n&&t===exe&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function qne(e,t,n){var r;return n?r=e.v+DUe*t:r=e.v-LUe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function q0(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Sr(e),a=r.toHsv(),i=exe;i>0;i-=1){var o=new Sr({h:Yne(a,i,!0),s:Vne(a,i,!0),v:qne(a,i,!0)});n.push(o)}n.push(r);for(var s=1;s<=txe;s+=1){var l=new Sr({h:Yne(a,s),s:Vne(a,s),v:qne(a,s)});n.push(l)}return t.theme==="dark"?QUe.map(function(c){var u=c.index,d=c.amount;return new Sr(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var p0={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"},U7=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];U7.primary=U7[5];var j7=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];j7.primary=j7[5];var X7=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];X7.primary=X7[5];var M$=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];M$.primary=M$[5];var Y7=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Y7.primary=Y7[5];var V7=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];V7.primary=V7[5];var q7=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];q7.primary=q7[5];var W7=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];W7.primary=W7[5];var g_=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];g_.primary=g_[5];var G7=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];G7.primary=G7[5];var H7=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];H7.primary=H7[5];var Z7=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Z7.primary=Z7[5];var K7=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];K7.primary=K7[5];var z4={red:U7,volcano:j7,orange:X7,gold:M$,yellow:Y7,lime:V7,green:q7,cyan:W7,blue:g_,geekblue:G7,purple:H7,magenta:Z7,grey:K7};function nxe(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:i,colorInfo:o,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(r),f=t(a),m=t(i),h=t(o),g=n(l,c),O=e.colorLink||e.colorInfo,v=t(O),y=new Sr(m[1]).mix(new Sr(m[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:y,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[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:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Sr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const zUe=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 BUe(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},zUe(r))}const rxe=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function y2(e){return(e+8)/e}function FUe(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,i=e*Math.pow(Math.E,a/5),o=r>1?Math.floor(i):Math.ceil(i);return Math.floor(o/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:y2(n)}))}const axe=e=>{const t=FUe(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),a=n[1],i=n[0],o=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:o,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function UUe(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 sc=(e,t)=>new Sr(e).setA(t).toRgbString(),Wv=(e,t)=>new Sr(e).darken(t).toHexString(),jUe=e=>{const t=q0(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]}},XUe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:sc(r,.88),colorTextSecondary:sc(r,.65),colorTextTertiary:sc(r,.45),colorTextQuaternary:sc(r,.25),colorFill:sc(r,.15),colorFillSecondary:sc(r,.06),colorFillTertiary:sc(r,.04),colorFillQuaternary:sc(r,.02),colorBgSolid:sc(r,1),colorBgSolidHover:sc(r,.75),colorBgSolidActive:sc(r,.95),colorBgLayout:Wv(n,4),colorBgContainer:Wv(n,0),colorBgElevated:Wv(n,0),colorBgSpotlight:sc(r,.85),colorBgBlur:"transparent",colorBorder:Wv(n,15),colorBorderSecondary:Wv(n,6)}};function mk(e){p0.pink=p0.magenta,z4.pink=z4.magenta;const t=Object.keys(Tj).map(n=>{const r=e[n]===p0[n]?z4[n]:q0(e[n]);return Array.from({length:10},()=>1).reduce((a,i,o)=>(a[`${n}-${o+1}`]=r[o],a[`${n}${o+1}`]=r[o],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),nxe(e,{generateColorPalettes:jUe,generateNeutralColorPalettes:XUe})),axe(e.fontSize)),UUe(e)),rxe(e)),BUe(e))}const wj=$$(mk),O_={token:V0,override:{override:V0},hashed:!0},Cj=Z.createContext(O_),b_="ant",hk="anticon",YUe=["outlined","borderless","filled","underlined"],VUe=(e,t)=>t||(e?`${b_}-${e}`:b_),pn=p.createContext({getPrefixCls:VUe,iconPrefixCls:hk}),{Consumer:QPn}=pn,Wne={};function $i(e){const t=p.useContext(pn),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,i=t[e];return Object.assign(Object.assign({classNames:Wne,styles:Wne},i),{getPrefixCls:n,direction:r,getPopupContainer:a})}const qUe=`-ant-${Date.now()}-${Math.random()}`;function WUe(e,t){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},a=(o,s)=>{const l=new Sr(o),c=q0(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){a(t.primaryColor,"primary");const o=new Sr(t.primaryColor),s=q0(o.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(o,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(o,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(o,c=>c.setA(c.a*.12));const l=new Sr(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` :root { ${Object.keys(n).map(o=>`--${e}-${o}: ${n[o]};`).join(` `)} } - `.trim()}function vUe(e,t){const n=bUe(e,t);xo()&&ff(n,`${OUe}-dynamic-theme`)}const Xo=p.createContext(!1),aj=({children:e,disabled:t})=>{const n=p.useContext(Xo);return p.createElement(Xo.Provider,{value:t??n},e)},Fh=p.createContext(void 0),yUe=({children:e,size:t})=>{const n=p.useContext(Fh);return p.createElement(Fh.Provider,{value:t||n},e)};function SUe(){const e=p.useContext(Xo),t=p.useContext(Fh);return{componentDisabled:e,componentSize:t}}var AEe=_a(function e(){Sa(this,e)}),NEe="CALC_UNIT",_Ue=new RegExp(NEe,"g");function $4(e){return typeof e=="number"?"".concat(e).concat(NEe):e}var EUe=(function(e){dl(n,e);var t=Wl(n);function n(r,a){var i;Sa(this,n),i=t.call(this),ae(Yt(i),"result",""),ae(Yt(i),"unitlessCssVar",void 0),ae(Yt(i),"lowPriority",void 0);var o=Ut(r);return i.unitlessCssVar=a,r instanceof n?i.result="(".concat(r.result,")"):o==="number"?i.result=$4(r):o==="string"&&(i.result=r),i}return _a(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($4(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($4(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 i=this,o=a||{},s=o.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(_Ue,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(AEe),xUe=(function(e){dl(n,e);var t=Wl(n);function n(r){var a;return Sa(this,n),a=t.call(this),ae(Yt(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return _a(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})(AEe),TUe=function(t,n){var r=t==="css"?EUe:xUe;return function(a){return new r(a,n)}},Tne=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 ar(e){var t=p.useRef();t.current=e;var n=p.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),o=0;o1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,i){r-a>RUe&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),Rne=new PUe;function kUe(e,t){return Z.useMemo(function(){var n=Rne.get(t);if(n)return n;var r=e();return Rne.set(t,r),r},t)}var AUe=function(){return{}};function NUe(e){var t=e.useCSP,n=t===void 0?AUe:t,r=e.useToken,a=e.usePrefix,i=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(f,m,h,g){var O=Array.isArray(f)?f[0]:f;function v(A){return"".concat(String(O)).concat(A.slice(0,1).toUpperCase()).concat(A.slice(1))}var y=(g==null?void 0:g.unitless)||{},S=typeof s=="function"?s(f):{},C=se(se({},S),{},ae({},v("zIndexPopup"),!0));Object.keys(y).forEach(function(A){C[v(A)]=y[A]});var _=se(se({},g),{},{unitless:C,prefixToken:v}),w=u(f,m,h,_),T=c(O,h,_);return function(A){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,I=w(A,k),M=be(I,2),Q=M[1],F=T(k),L=be(F,2),U=L[0],R=L[1];return[U,Q,R]}}function c(f,m,h){var g=h.unitless,O=h.injectStyle,v=O===void 0?!0:O,y=h.prefixToken,S=h.ignore,C=function(T){var A=T.rootCls,k=T.cssVar,I=k===void 0?{}:k,M=r(),Q=M.realToken;return lFe({path:[f],prefix:I.prefix,key:I.key,unitless:g,ignore:S,token:Q,scope:A},function(){var F=$ne(f,Q,m),L=wne(f,Q,F,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(F).forEach(function(U){L[y(U)]=L[U],delete L[U]}),L}),null},_=function(T){var A=r(),k=A.cssVar;return[function(I){return v&&k?Z.createElement(Z.Fragment,null,Z.createElement(C,{rootCls:T,cssVar:k,component:f}),I):I},k==null?void 0:k.key]};return _}function u(f,m,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},O=Array.isArray(f)?f:[f,f],v=be(O,1),y=v[0],S=O.join("-"),C=e.layer||{name:"antd"};return function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,T=r(),A=T.theme,k=T.realToken,I=T.hashId,M=T.token,Q=T.cssVar,F=a(),L=F.rootPrefixCls,U=F.iconPrefixCls,R=n(),$=Q?"css":"js",P=kUe(function(){var q=new Set;return Q&&Object.keys(g.unitless||{}).forEach(function(H){q.add(a2(H,Q.prefix)),q.add(a2(H,Tne(y,Q.prefix)))}),TUe($,q)},[$,y,Q==null?void 0:Q.prefix]),z=$Ue($),B=z.max,D=z.min,X={theme:A,token:M,hashId:I,nonce:function(){return R.nonce},clientOnly:g.clientOnly,layer:C,order:g.order||-999};typeof i=="function"&&v7(se(se({},X),{},{clientOnly:!1,path:["Shared",L]}),function(){return i(M,{prefix:{rootPrefixCls:L,iconPrefixCls:U},csp:R})});var Y=v7(se(se({},X),{},{path:[S,_,U]}),function(){if(g.injectStyle===!1)return[];var q=CUe(M),H=q.token,J=q.flush,te=$ne(y,k,h),ne=".".concat(_),ie=wne(y,k,te,{deprecatedTokens:g.deprecatedTokens});Q&&te&&Ut(te)==="object"&&Object.keys(te).forEach(function(ge){te[ge]="var(".concat(a2(ge,Tne(y,Q.prefix)),")")});var le=nr(H,{componentCls:ne,prefixCls:_,iconCls:".".concat(U),antCls:".".concat(L),calc:P,max:B,min:D},Q?te:ie),ue=m(le,{hashId:I,prefixCls:_,rootPrefixCls:L,iconPrefixCls:U});J(y,ie);var oe=typeof o=="function"?o(le,_,w,g.resetFont):null;return[g.resetStyle===!1?null:oe,ue]});return[Y,I]}}function d(f,m,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},O=u(f,m,h,se({resetStyle:!1,order:-998},g)),v=function(S){var C=S.prefixCls,_=S.rootCls,w=_===void 0?C:_;return O(C,w),null};return v}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const zp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],IUe="5.29.3";function P4(e){return e>=0&&e<=255}function Xy(e,t){const{r:n,g:r,b:a,a:i}=new Sr(e).toRgb();if(i<1)return e;const{r:o,g:s,b:l}=new Sr(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((a-l*(1-c))/c);if(P4(u)&&P4(d)&&P4(f))return new Sr({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Sr({r:n,g:r,b:a,a:1}).toRgbString()}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{delete r[f]});const a=Object.assign(Object.assign({},n),r),i=480,o=576,s=768,l=992,c=1200,u=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:Xy(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:Xy(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Xy(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:Xy(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 GUe(e,t){const n=WUe(e,t);Eo()&&bf(n,`${qUe}-dynamic-theme`)}const jo=p.createContext(!1),$j=({children:e,disabled:t})=>{const n=p.useContext(jo);return p.createElement(jo.Provider,{value:t??n},e)},Wh=p.createContext(void 0),HUe=({children:e,size:t})=>{const n=p.useContext(Wh);return p.createElement(Wh.Provider,{value:t||n},e)};function ZUe(){const e=p.useContext(jo),t=p.useContext(Wh);return{componentDisabled:e,componentSize:t}}var ixe=Ea(function e(){_a(this,e)}),oxe="CALC_UNIT",KUe=new RegExp(oxe,"g");function B4(e){return typeof e=="number"?"".concat(e).concat(oxe):e}var JUe=(function(e){dl(n,e);var t=Wl(n);function n(r,a){var i;_a(this,n),i=t.call(this),ae(Wt(i),"result",""),ae(Wt(i),"unitlessCssVar",void 0),ae(Wt(i),"lowPriority",void 0);var o=Xt(r);return i.unitlessCssVar=a,r instanceof n?i.result="(".concat(r.result,")"):o==="number"?i.result=B4(r):o==="string"&&(i.result=r),i}return Ea(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(B4(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(B4(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 i=this,o=a||{},s=o.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(KUe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(ixe),eje=(function(e){dl(n,e);var t=Wl(n);function n(r){var a;return _a(this,n),a=t.call(this),ae(Wt(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return Ea(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})(ixe),tje=function(t,n){var r=t==="css"?JUe:eje;return function(a){return new r(a,n)}},Gne=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 ar(e){var t=p.useRef();t.current=e;var n=p.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),o=0;o1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,i){r-a>ije&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),Jne=new oje;function sje(e,t){return Z.useMemo(function(){var n=Jne.get(t);if(n)return n;var r=e();return Jne.set(t,r),r},t)}var lje=function(){return{}};function cje(e){var t=e.useCSP,n=t===void 0?lje:t,r=e.useToken,a=e.usePrefix,i=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(f,m,h,g){var O=Array.isArray(f)?f[0]:f;function v(k){return"".concat(String(O)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var y=(g==null?void 0:g.unitless)||{},S=typeof s=="function"?s(f):{},C=oe(oe({},S),{},ae({},v("zIndexPopup"),!0));Object.keys(y).forEach(function(k){C[v(k)]=y[k]});var _=oe(oe({},g),{},{unitless:C,prefixToken:v}),w=u(f,m,h,_),T=c(O,h,_);return function(k){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,I=w(k,A),M=ye(I,2),Q=M[1],B=T(A),D=ye(B,2),U=D[0],R=D[1];return[U,Q,R]}}function c(f,m,h){var g=h.unitless,O=h.injectStyle,v=O===void 0?!0:O,y=h.prefixToken,S=h.ignore,C=function(T){var k=T.rootCls,A=T.cssVar,I=A===void 0?{}:A,M=r(),Q=M.realToken;return QFe({path:[f],prefix:I.prefix,key:I.key,unitless:g,ignore:S,token:Q,scope:k},function(){var B=Kne(f,Q,m),D=Hne(f,Q,B,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(B).forEach(function(U){D[y(U)]=D[U],delete D[U]}),D}),null},_=function(T){var k=r(),A=k.cssVar;return[function(I){return v&&A?Z.createElement(Z.Fragment,null,Z.createElement(C,{rootCls:T,cssVar:A,component:f}),I):I},A==null?void 0:A.key]};return _}function u(f,m,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},O=Array.isArray(f)?f:[f,f],v=ye(O,1),y=v[0],S=O.join("-"),C=e.layer||{name:"antd"};return function(_){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,T=r(),k=T.theme,A=T.realToken,I=T.hashId,M=T.token,Q=T.cssVar,B=a(),D=B.rootPrefixCls,U=B.iconPrefixCls,R=n(),$=Q?"css":"js",P=sje(function(){var q=new Set;return Q&&Object.keys(g.unitless||{}).forEach(function(G){q.add(f2(G,Q.prefix)),q.add(f2(G,Gne(y,Q.prefix)))}),tje($,q)},[$,y,Q==null?void 0:Q.prefix]),z=aje($),F=z.max,L=z.min,X={theme:k,token:M,hashId:I,nonce:function(){return R.nonce},clientOnly:g.clientOnly,layer:C,order:g.order||-999};typeof i=="function"&&z7(oe(oe({},X),{},{clientOnly:!1,path:["Shared",D]}),function(){return i(M,{prefix:{rootPrefixCls:D,iconPrefixCls:U},csp:R})});var Y=z7(oe(oe({},X),{},{path:[S,_,U]}),function(){if(g.injectStyle===!1)return[];var q=rje(M),G=q.token,ee=q.flush,K=Kne(y,A,h),ne=".".concat(_),ie=Hne(y,A,K,{deprecatedTokens:g.deprecatedTokens});Q&&K&&Xt(K)==="object"&&Object.keys(K).forEach(function(be){K[be]="var(".concat(f2(be,Gne(y,Q.prefix)),")")});var se=nr(G,{componentCls:ne,prefixCls:_,iconCls:".".concat(U),antCls:".".concat(D),calc:P,max:F,min:L},Q?K:ie),ue=m(se,{hashId:I,prefixCls:_,rootPrefixCls:D,iconPrefixCls:U});ee(y,ie);var ce=typeof o=="function"?o(se,_,w,g.resetFont):null;return[g.resetStyle===!1?null:ce,ue]});return[Y,I]}}function d(f,m,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},O=u(f,m,h,oe({resetStyle:!1,order:-998},g)),v=function(S){var C=S.prefixCls,_=S.rootCls,w=_===void 0?C:_;return O(C,w),null};return v}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const Vp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],uje="5.29.3";function U4(e){return e>=0&&e<=255}function Zy(e,t){const{r:n,g:r,b:a,a:i}=new Sr(e).toRgb();if(i<1)return e;const{r:o,g:s,b:l}=new Sr(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-o*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((a-l*(1-c))/c);if(U4(u)&&U4(d)&&U4(f))return new Sr({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Sr({r:n,g:r,b:a,a:1}).toRgbString()}var dje=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[f]});const a=Object.assign(Object.assign({},n),r),i=480,o=576,s=768,l=992,c=1200,u=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:Zy(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:Zy(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Zy(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:Zy(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) @@ -100,7 +100,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 Pne=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,i=Pne(t,["override"]);let o=Object.assign(Object.assign({},r),{override:a});return o=ij(o),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=Pne(l,["theme"]);let d=u;c&&(d=DEe(Object.assign(Object.assign({},o),u),{override:u},c)),o[s]=d}),o};function uo(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=Z.useContext(rj),i=`${IUe}-${t||""}`,o=n||nj,[s,l,c]=DBe(o,[F0,e],{salt:i,override:r,getComputedToken:DEe,formatToken:ij,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:MEe,ignore:DUe,preserve:LUe}});return[o,c,t?l:"",s,a]}const ll={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},zr=(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}),_b=()=>({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"}}),dd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),QUe=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"}}}),zUe=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:a,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),o),{[a]:o})}},wc=(e,t)=>({outline:`${de(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ul=(e,t)=>({"&:focus-visible":wc(e,t)}),LEe=e=>({[`.${e}`]:Object.assign(Object.assign({},_b()),{[`.${e} .${e}-icon`]:{display:"block"}})}),oj=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"},Ul(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Er,genComponentStyleHook:BUe,genSubStyleComponent:mg}=NUe({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=p.useContext(fn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=uo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=p.useContext(fn);return e??{}},getResetStyles:(e,t)=>{var n;const r=QUe(e);return[r,{"&":r},LEe((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:rk)]},getCommonStyle:zUe,getCompUnitless:()=>MEe});function QEe(e,t){return zp.reduce((n,r)=>{const a=e[`${r}1`],i=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:i,darkColor:o,textColor:s}))},{})}const FUe=(e,t)=>{const[n,r]=uo();return v7({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>LEe(e))},UUe=Object.assign({},D0),{useId:kne}=UUe,jUe=()=>"",XUe=typeof kne>"u"?jUe:kne;function zEe(e,t,n){var r;_d();const a=e||{},i=a.inherit===!1||!t?Object.assign(Object.assign({},d_),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:d_.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=XUe();return dm(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${o.replace(/:/g,"")}`,d=((s=a.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((l=a.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),a),{token:Object.assign(Object.assign({},i.token),a.token),components:c,cssVar:d})},[a,i],(s,l)=>s.some((c,u)=>{const d=l[u];return!Bl(c,d,!0)}))}var YUe=["children"],BEe=p.createContext({});function VUe(e){var t=e.children,n=on(e,YUe);return p.createElement(BEe.Provider,{value:n},t)}var qUe=(function(e){dl(n,e);var t=Wl(n);function n(){return Sa(this,n),t.apply(this,arguments)}return _a(n,[{key:"render",value:function(){return this.props.children}}]),n})(p.Component);function WUe(e){var t=p.useReducer(function(s){return s+1},0),n=be(t,2),r=n[1],a=p.useRef(e),i=ar(function(){return a.current}),o=ar(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[i,o]}var hp="none",qT="appear",WT="enter",GT="leave",Ane="none",Hc="prepare",WO="start",GO="active",sj="end",FEe="prepared";function Nne(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 GUe(e,t){var n={animationend:Nne("Animation","AnimationEnd"),transitionend:Nne("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var HUe=GUe(xo(),typeof window<"u"?window:{}),UEe={};if(xo()){var ZUe=document.createElement("div");UEe=ZUe.style}var HT={};function jEe(e){if(HT[e])return HT[e];var t=HUe[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var i=ur(function(){a<=1?r({isCanceled:function(){return i!==e.current}}):n(r,a-1)});e.current=i}return p.useEffect(function(){return function(){t()}},[]),[n,t]});var eje=[Hc,WO,GO,sj],tje=[Hc,FEe],WEe=!1,nje=!0;function GEe(e){return e===GO||e===sj}const rje=(function(e,t,n){var r=Uh(Ane),a=be(r,2),i=a[0],o=a[1],s=JUe(),l=be(s,2),c=l[0],u=l[1];function d(){o(Hc,!0)}var f=t?tje:eje;return qEe(function(){if(i!==Ane&&i!==sj){var m=f.indexOf(i),h=f[m+1],g=n(i);g===WEe?o(h,!0):h&&c(function(O){function v(){O.isCanceled()||o(h,!0)}g===!0?v():Promise.resolve(g).then(v)})}},[e,i]),p.useEffect(function(){return function(){u()}},[]),[d,i]});function aje(e,t,n,r){var a=r.motionEnter,i=a===void 0?!0:a,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,m=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,O=r.onEnterStart,v=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,C=r.onLeaveActive,_=r.onAppearEnd,w=r.onEnterEnd,T=r.onLeaveEnd,A=r.onVisibleChanged,k=Uh(),I=be(k,2),M=I[0],Q=I[1],F=WUe(hp),L=be(F,2),U=L[0],R=L[1],$=Uh(null),P=be($,2),z=P[0],B=P[1],D=U(),X=p.useRef(!1),Y=p.useRef(null);function q(){return n()}var H=p.useRef(!1);function J(){R(hp),B(null,!0)}var te=ar(function(Ee){var De=U();if(De!==hp){var Le=q();if(!(Ee&&!Ee.deadline&&Ee.target!==Le)){var Ne=H.current,et;De===qT&&Ne?et=_==null?void 0:_(Le,Ee):De===WT&&Ne?et=w==null?void 0:w(Le,Ee):De===GT&&Ne&&(et=T==null?void 0:T(Le,Ee)),Ne&&et!==!1&&J()}}}),ne=KUe(te),ie=be(ne,1),le=ie[0],ue=function(De){switch(De){case qT:return ae(ae(ae({},Hc,f),WO,g),GO,y);case WT:return ae(ae(ae({},Hc,m),WO,O),GO,S);case GT:return ae(ae(ae({},Hc,h),WO,v),GO,C);default:return{}}},oe=p.useMemo(function(){return ue(D)},[D]),ge=rje(D,!e,function(Ee){if(Ee===Hc){var De=oe[Hc];return De?De(q()):WEe}if(me in oe){var Le;B(((Le=oe[me])===null||Le===void 0?void 0:Le.call(oe,q(),null))||null)}return me===GO&&D!==hp&&(le(q()),u>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){te({deadline:!0})},u))),me===FEe&&J(),nje}),ve=be(ge,2),he=ve[0],me=ve[1],xe=GEe(me);H.current=xe;var we=p.useRef(null);qEe(function(){if(!(X.current&&we.current===t)){Q(t);var Ee=X.current;X.current=!0;var De;!Ee&&t&&s&&(De=qT),Ee&&t&&i&&(De=WT),(Ee&&!t&&c||!Ee&&d&&!t&&c)&&(De=GT);var Le=ue(De);De&&(e||Le[Hc])?(R(De),he()):R(hp),we.current=t}},[t]),p.useEffect(function(){(D===qT&&!s||D===WT&&!i||D===GT&&!c)&&R(hp)},[s,i,c]),p.useEffect(function(){return function(){X.current=!1,clearTimeout(Y.current)}},[]);var Qe=p.useRef(!1);p.useEffect(function(){M&&(Qe.current=!0),M!==void 0&&D===hp&&((Qe.current||M)&&(A==null||A(M)),Qe.current=!0)},[M,D]);var Ie=z;return oe[Hc]&&me===WO&&(Ie=se({transition:"none"},Ie)),[D,me,Ie,M??t]}function ije(e){var t=e;Ut(e)==="object"&&(t=e.transitionSupport);function n(a,i){return!!(a.motionName&&t&&i!==!1)}var r=p.forwardRef(function(a,i){var o=a.visible,s=o===void 0?!0:o,l=a.removeOnLeave,c=l===void 0?!0:l,u=a.forceRender,d=a.children,f=a.motionName,m=a.leavedClassName,h=a.eventProps,g=p.useContext(BEe),O=g.motion,v=n(a,O),y=p.useRef(),S=p.useRef();function C(){try{return y.current instanceof HTMLElement?y.current:c2(S.current)}catch{return null}}var _=aje(v,s,C,a),w=be(_,4),T=w[0],A=w[1],k=w[2],I=w[3],M=p.useRef(I);I&&(M.current=!0);var Q=p.useCallback(function(P){y.current=P,c_(i,P)},[i]),F,L=se(se({},h),{},{visible:s});if(!d)F=null;else if(T===hp)I?F=d(se({},L),Q):!c&&M.current&&m?F=d(se(se({},L),{},{className:m}),Q):u||!c&&!m?F=d(se(se({},L),{},{style:{display:"none"}}),Q):F=null;else{var U;A===Hc?U="prepare":GEe(A)?U="active":A===WO&&(U="start");var R=Dne(f,"".concat(T,"-").concat(U));F=d(se(se({},L),{},{className:ce(Dne(f,T),ae(ae({},R,R&&U),f,typeof f=="string")),style:k}),Q)}if(p.isValidElement(F)&&fu(F)){var $=fm(F);$||(F=p.cloneElement(F,{ref:Q}))}return p.createElement(qUe,{ref:S},F)});return r.displayName="CSSMotion",r}const ao=ije(VEe);var I7="add",M7="keep",D7="remove",k4="removed";function oje(e){var t;return e&&Ut(e)==="object"&&"key"in e?t=e:t={key:e},se(se({},t),{},{key:String(t.key)})}function L7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(oje)}function sje(){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,i=L7(e),o=L7(t);i.forEach(function(c){for(var u=!1,d=r;d1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==D7}),n.forEach(function(u){u.key===c&&(u.status=M7)})}),n}var lje=["component","children","onVisibleChanged","onAllRemoved"],cje=["status"],uje=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function dje(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ao,n=(function(r){dl(i,r);var a=Wl(i);function i(){var o;Sa(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var mje=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 bje=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(T$=t),n!==void 0&&(HEe=n),"holderRender"in e&&(KEe=a),r&&(Oje(r)?vUe(p2(),r):ZEe=r)},lj=()=>({getPrefixCls:(e,t)=>t||(e?`${p2()}-${e}`:p2()),getIconPrefixCls:gje,getRootPrefixCls:()=>T$||p2(),getTheme:()=>ZEe,holderRender:KEe}),vje=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:i,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:O,parentContext:v,iconPrefixCls:y,theme:S,componentDisabled:C,segmented:_,statistic:w,spin:T,calendar:A,carousel:k,cascader:I,collapse:M,typography:Q,checkbox:F,descriptions:L,divider:U,drawer:R,skeleton:$,steps:P,image:z,layout:B,list:D,mentions:X,modal:Y,progress:q,result:H,slider:J,breadcrumb:te,menu:ne,pagination:ie,input:le,textArea:ue,empty:oe,badge:ge,radio:ve,rate:he,switch:me,transfer:xe,avatar:we,message:Qe,tag:Ie,table:Ee,card:De,tabs:Le,timeline:Ne,timePicker:et,upload:He,notification:pt,tree:lt,colorPicker:it,datePicker:ut,rangePicker:We,flex:Me,wave:Ge,dropdown:ze,warning:qe,tour:Pe,tooltip:Ae,popover:Oe,popconfirm:Te,floatButton:Ue,floatButtonGroup:rt,variant:tt,inputNumber:ot,treeSelect:St}=e,Xe=p.useCallback((en,Rn)=>{const{prefixCls:jt}=e;if(Rn)return Rn;const wt=jt||v.getPrefixCls("");return en?`${wt}-${en}`:wt},[v.getPrefixCls,e.prefixCls]),je=y||v.iconPrefixCls||rk,bt=n||v.csp;FUe(je,bt);const xt=zEe(S,v.theme,{prefixCls:Xe("")}),vt={csp:bt,autoInsertSpaceInButton:r,alert:a,anchor:i,locale:s||O,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:h??m,popupOverflow:g,getPrefixCls:Xe,iconPrefixCls:je,theme:xt,segmented:_,statistic:w,spin:T,calendar:A,carousel:k,cascader:I,collapse:M,typography:Q,checkbox:F,descriptions:L,divider:U,drawer:R,skeleton:$,steps:P,image:z,input:le,textArea:ue,layout:B,list:D,mentions:X,modal:Y,progress:q,result:H,slider:J,breadcrumb:te,menu:ne,pagination:ie,empty:oe,badge:ge,radio:ve,rate:he,switch:me,transfer:xe,avatar:we,message:Qe,tag:Ie,table:Ee,card:De,tabs:Le,timeline:Ne,timePicker:et,upload:He,notification:pt,tree:lt,colorPicker:it,datePicker:ut,rangePicker:We,flex:Me,wave:Ge,dropdown:ze,warning:qe,tour:Pe,tooltip:Ae,popover:Oe,popconfirm:Te,floatButton:Ue,floatButtonGroup:rt,variant:tt,inputNumber:ot,treeSelect:St},Nt=Object.assign({},v);Object.keys(vt).forEach(en=>{vt[en]!==void 0&&(Nt[en]=vt[en])}),hje.forEach(en=>{const Rn=e[en];Rn&&(Nt[en]=Rn)}),typeof r<"u"&&(Nt.button=Object.assign({autoInsertSpace:r},Nt.button));const Mt=dm(()=>Nt,Nt,(en,Rn)=>{const jt=Object.keys(en),wt=Object.keys(Rn);return jt.length!==wt.length||jt.some(an=>en[an]!==Rn[an])}),{layer:Ot}=p.useContext(Lh),ft=p.useMemo(()=>({prefixCls:je,csp:bt,layer:Ot?"antd":void 0}),[je,bt,Ot]);let st=p.createElement(p.Fragment,null,p.createElement(pje,{dropdownMatchSelectWidth:m}),t);const Et=p.useMemo(()=>{var en,Rn,jt,wt;return qO(((en=pu.Form)===null||en===void 0?void 0:en.defaultValidateMessages)||{},((jt=(Rn=Mt.locale)===null||Rn===void 0?void 0:Rn.Form)===null||jt===void 0?void 0:jt.defaultValidateMessages)||{},((wt=Mt.form)===null||wt===void 0?void 0:wt.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[Mt,o==null?void 0:o.validateMessages]);Object.keys(Et).length>0&&(st=p.createElement(_Ee.Provider,{value:Et},st)),s&&(st=p.createElement(aUe,{locale:s,_ANT_MARK__:rUe},st)),st=p.createElement(JU.Provider,{value:ft},st),l&&(st=p.createElement(yUe,{size:l},st)),st=p.createElement(fje,null,st);const Jt=p.useMemo(()=>{const en=xt||{},{algorithm:Rn,token:jt,components:wt,cssVar:an}=en,$n=mje(en,["algorithm","token","components","cssVar"]),Gn=Rn&&(!Array.isArray(Rn)||Rn.length>0)?O$(Rn):nj,Xn={};Object.entries(wt||{}).forEach(([Fn,Bt])=>{const Se=Object.assign({},Bt);"algorithm"in Se&&(Se.algorithm===!0?Se.theme=Gn:(Array.isArray(Se.algorithm)||typeof Se.algorithm=="function")&&(Se.theme=O$(Se.algorithm)),delete Se.algorithm),Xn[Fn]=Se});const gr=Object.assign(Object.assign({},F0),jt);return Object.assign(Object.assign({},$n),{theme:Gn,token:gr,components:Xn,override:Object.assign({override:gr},Xn),cssVar:an})},[xt]);return S&&(st=p.createElement(rj.Provider,{value:Jt},st)),Mt.warning&&(st=p.createElement(JFe.Provider,{value:Mt.warning},st)),C!==void 0&&(st=p.createElement(aj,{disabled:C},st)),p.createElement(fn.Provider,{value:Mt},st)},ci=e=>{const t=p.useContext(fn),n=p.useContext(ej);return p.createElement(vje,Object.assign({parentContext:t,legacyLocale:n},e))};ci.ConfigContext=fn;ci.SizeContext=Fh;ci.config=bje;ci.useConfig=SUe;Object.defineProperty(ci,"SizeContext",{get:()=>Fh});var yje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const Oo=Math.round;function A4(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 Qne=(e,t,n)=>n===0?e:e/100;function Xv(e,t){const n=t||255;return e>n?n:e<0?0:e}let ZT=class JEe{constructor(t){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof JEe)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=Xv(t.r),this.g=Xv(t.g),this.b=Xv(t.b),this.a=typeof t.a=="number"?Xv(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(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.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=Oo(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,i=s=>(r[s]-this[s])*a+this[s],o={r:Oo(i("r")),g:Oo(i("g")),b:Oo(i("b")),a:Oo(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>Oo((this[i]*this.a+n[i]*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 i=Oo(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Oo(this.getSaturation()*100),r=Oo(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]=Xv(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,i){return parseInt(n[a]+n[i||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 f=Oo(r*255);this.r=f,this.g=f,this.b=f}let i=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,o=u):l>=1&&l<2?(i=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=r-c/2;this.r=Oo((i+d)*255),this.g=Oo((o+d)*255),this.b=Oo((s+d)*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 i=Oo(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=Oo(r*(1-n)*255),u=Oo(r*(1-n*l)*255),d=Oo(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=A4(t,Qne);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=A4(t,Qne);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=A4(t,(r,a)=>a.includes("%")?Oo(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var KT=2,zne=.16,Sje=.05,_je=.05,Eje=.15,exe=5,txe=4,xje=[{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 Bne(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-KT*t:Math.round(e.h)+KT*t:r=n?Math.round(e.h)+KT*t:Math.round(e.h)-KT*t,r<0?r+=360:r>=360&&(r-=360),r}function Fne(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-zne*t:t===txe?r=e.s+zne:r=e.s+Sje*t,r>1&&(r=1),n&&t===exe&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Une(e,t,n){var r;return n?r=e.v+_je*t:r=e.v-Eje*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Tje(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new ZT(e),a=r.toHsv(),i=exe;i>0;i-=1){var o=new ZT({h:Bne(a,i,!0),s:Fne(a,i,!0),v:Une(a,i,!0)});n.push(o)}n.push(r);for(var s=1;s<=txe;s+=1){var l=new ZT({h:Bne(a,s),s:Fne(a,s),v:Une(a,s)});n.push(l)}return t.theme==="dark"?xje.map(function(c){var u=c.index,d=c.amount;return new ZT(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var Q7=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Q7.primary=Q7[5];function nxe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function wje(e){return nxe(e)instanceof ShadowRoot}function w$(e){return wje(e)?nxe(e):null}function Cje(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function $je(e,t){Ma(e,"[@ant-design/icons] ".concat(t))}function jne(e){return Ut(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ut(e.icon)==="object"||typeof e.icon=="function")}function Xne(){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[Cje(n)]=r}return t},{})}function z7(e,t,n){return n?Z.createElement(e.tag,se(se({key:t},Xne(e.attrs)),n),(e.children||[]).map(function(r,a){return z7(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):Z.createElement(e.tag,se({key:t},Xne(e.attrs)),(e.children||[]).map(function(r,a){return z7(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function rxe(e){return Tje(e)[0]}function axe(e){return e?Array.isArray(e)?e:[e]:[]}var Rje=` + `,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 ere=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,i=ere(t,["override"]);let o=Object.assign(Object.assign({},r),{override:a});return o=Rj(o),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=ere(l,["theme"]);let d=u;c&&(d=cxe(Object.assign(Object.assign({},o),u),{override:u},c)),o[s]=d}),o};function co(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=Z.useContext(Cj),i=`${uje}-${t||""}`,o=n||wj,[s,l,c]=fFe(o,[V0,e],{salt:i,override:r,getComputedToken:cxe,formatToken:Rj,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:lxe,ignore:fje,preserve:pje}});return[o,c,t?l:"",s,a]}const ll={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Qr=(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}),Cb=()=>({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"}}),Od=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),mje=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"}}}),hje=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:a,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),o),{[a]:o})}},wc=(e,t)=>({outline:`${de(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ul=(e,t)=>({"&:focus-visible":wc(e,t)}),uxe=e=>({[`.${e}`]:Object.assign(Object.assign({},Cb()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Pj=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"},Ul(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Er,genComponentStyleHook:gje,genSubStyleComponent:_g}=cje({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=p.useContext(pn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=co();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=p.useContext(pn);return e??{}},getResetStyles:(e,t)=>{var n;const r=mje(e);return[r,{"&":r},uxe((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:hk)]},getCommonStyle:hje,getCompUnitless:()=>lxe});function dxe(e,t){return Vp.reduce((n,r)=>{const a=e[`${r}1`],i=e[`${r}3`],o=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:i,darkColor:o,textColor:s}))},{})}const Oje=(e,t)=>{const[n,r]=co();return z7({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>uxe(e))},bje=Object.assign({},F0),{useId:tre}=bje,vje=()=>"",yje=typeof tre>"u"?vje:tre;function fxe(e,t,n){var r;$d();const a=e||{},i=a.inherit===!1||!t?Object.assign(Object.assign({},O_),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:O_.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=yje();return Om(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${o.replace(/:/g,"")}`,d=((s=a.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((l=a.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),a),{token:Object.assign(Object.assign({},i.token),a.token),components:c,cssVar:d})},[a,i],(s,l)=>s.some((c,u)=>{const d=l[u];return!Bl(c,d,!0)}))}var Sje=["children"],pxe=p.createContext({});function _je(e){var t=e.children,n=ln(e,Sje);return p.createElement(pxe.Provider,{value:n},t)}var Eje=(function(e){dl(n,e);var t=Wl(n);function n(){return _a(this,n),t.apply(this,arguments)}return Ea(n,[{key:"render",value:function(){return this.props.children}}]),n})(p.Component);function xje(e){var t=p.useReducer(function(s){return s+1},0),n=ye(t,2),r=n[1],a=p.useRef(e),i=ar(function(){return a.current}),o=ar(function(s){a.current=typeof s=="function"?s(a.current):s,r()});return[i,o]}var Sp="none",JT="appear",ew="enter",tw="leave",nre="none",tu="prepare",JO="start",e0="active",kj="end",mxe="prepared";function rre(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 Tje(e,t){var n={animationend:rre("Animation","AnimationEnd"),transitionend:rre("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var wje=Tje(Eo(),typeof window<"u"?window:{}),hxe={};if(Eo()){var Cje=document.createElement("div");hxe=Cje.style}var nw={};function gxe(e){if(nw[e])return nw[e];var t=wje[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var i=ur(function(){a<=1?r({isCanceled:function(){return i!==e.current}}):n(r,a-1)});e.current=i}return p.useEffect(function(){return function(){t()}},[]),[n,t]});var Pje=[tu,JO,e0,kj],kje=[tu,mxe],Sxe=!1,Aje=!0;function _xe(e){return e===e0||e===kj}const Nje=(function(e,t,n){var r=Gh(nre),a=ye(r,2),i=a[0],o=a[1],s=Rje(),l=ye(s,2),c=l[0],u=l[1];function d(){o(tu,!0)}var f=t?kje:Pje;return yxe(function(){if(i!==nre&&i!==kj){var m=f.indexOf(i),h=f[m+1],g=n(i);g===Sxe?o(h,!0):h&&c(function(O){function v(){O.isCanceled()||o(h,!0)}g===!0?v():Promise.resolve(g).then(v)})}},[e,i]),p.useEffect(function(){return function(){u()}},[]),[d,i]});function Ije(e,t,n,r){var a=r.motionEnter,i=a===void 0?!0:a,o=r.motionAppear,s=o===void 0?!0:o,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,m=r.onEnterPrepare,h=r.onLeavePrepare,g=r.onAppearStart,O=r.onEnterStart,v=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,C=r.onLeaveActive,_=r.onAppearEnd,w=r.onEnterEnd,T=r.onLeaveEnd,k=r.onVisibleChanged,A=Gh(),I=ye(A,2),M=I[0],Q=I[1],B=xje(Sp),D=ye(B,2),U=D[0],R=D[1],$=Gh(null),P=ye($,2),z=P[0],F=P[1],L=U(),X=p.useRef(!1),Y=p.useRef(null);function q(){return n()}var G=p.useRef(!1);function ee(){R(Sp),F(null,!0)}var K=ar(function(Ee){var Le=U();if(Le!==Sp){var ze=q();if(!(Ee&&!Ee.deadline&&Ee.target!==ze)){var Qe=G.current,Je;Le===JT&&Qe?Je=_==null?void 0:_(ze,Ee):Le===ew&&Qe?Je=w==null?void 0:w(ze,Ee):Le===tw&&Qe&&(Je=T==null?void 0:T(ze,Ee)),Qe&&Je!==!1&&ee()}}}),ne=$je(K),ie=ye(ne,1),se=ie[0],ue=function(Le){switch(Le){case JT:return ae(ae(ae({},tu,f),JO,g),e0,y);case ew:return ae(ae(ae({},tu,m),JO,O),e0,S);case tw:return ae(ae(ae({},tu,h),JO,v),e0,C);default:return{}}},ce=p.useMemo(function(){return ue(L)},[L]),be=Nje(L,!e,function(Ee){if(Ee===tu){var Le=ce[tu];return Le?Le(q()):Sxe}if(me in ce){var ze;F(((ze=ce[me])===null||ze===void 0?void 0:ze.call(ce,q(),null))||null)}return me===e0&&L!==Sp&&(se(q()),u>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){K({deadline:!0})},u))),me===mxe&&ee(),Aje}),ge=ye(be,2),Oe=ge[0],me=ge[1],Te=_xe(me);G.current=Te;var Ce=p.useRef(null);yxe(function(){if(!(X.current&&Ce.current===t)){Q(t);var Ee=X.current;X.current=!0;var Le;!Ee&&t&&s&&(Le=JT),Ee&&t&&i&&(Le=ew),(Ee&&!t&&c||!Ee&&d&&!t&&c)&&(Le=tw);var ze=ue(Le);Le&&(e||ze[tu])?(R(Le),Oe()):R(Sp),Ce.current=t}},[t]),p.useEffect(function(){(L===JT&&!s||L===ew&&!i||L===tw&&!c)&&R(Sp)},[s,i,c]),p.useEffect(function(){return function(){X.current=!1,clearTimeout(Y.current)}},[]);var Fe=p.useRef(!1);p.useEffect(function(){M&&(Fe.current=!0),M!==void 0&&L===Sp&&((Fe.current||M)&&(k==null||k(M)),Fe.current=!0)},[M,L]);var Me=z;return ce[tu]&&me===JO&&(Me=oe({transition:"none"},Me)),[L,me,Me,M??t]}function Mje(e){var t=e;Xt(e)==="object"&&(t=e.transitionSupport);function n(a,i){return!!(a.motionName&&t&&i!==!1)}var r=p.forwardRef(function(a,i){var o=a.visible,s=o===void 0?!0:o,l=a.removeOnLeave,c=l===void 0?!0:l,u=a.forceRender,d=a.children,f=a.motionName,m=a.leavedClassName,h=a.eventProps,g=p.useContext(pxe),O=g.motion,v=n(a,O),y=p.useRef(),S=p.useRef();function C(){try{return y.current instanceof HTMLElement?y.current:O2(S.current)}catch{return null}}var _=Ije(v,s,C,a),w=ye(_,4),T=w[0],k=w[1],A=w[2],I=w[3],M=p.useRef(I);I&&(M.current=!0);var Q=p.useCallback(function(P){y.current=P,h_(i,P)},[i]),B,D=oe(oe({},h),{},{visible:s});if(!d)B=null;else if(T===Sp)I?B=d(oe({},D),Q):!c&&M.current&&m?B=d(oe(oe({},D),{},{className:m}),Q):u||!c&&!m?B=d(oe(oe({},D),{},{style:{display:"none"}}),Q):B=null;else{var U;k===tu?U="prepare":_xe(k)?U="active":k===JO&&(U="start");var R=ore(f,"".concat(T,"-").concat(U));B=d(oe(oe({},D),{},{className:le(ore(f,T),ae(ae({},R,R&&U),f,typeof f=="string")),style:A}),Q)}if(p.isValidElement(B)&&Ou(B)){var $=bm(B);$||(B=p.cloneElement(B,{ref:Q}))}return p.createElement(Eje,{ref:S},B)});return r.displayName="CSSMotion",r}const ro=Mje(vxe);var e9="add",t9="keep",n9="remove",j4="removed";function Dje(e){var t;return e&&Xt(e)==="object"&&"key"in e?t=e:t={key:e},oe(oe({},t),{},{key:String(t.key)})}function r9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Dje)}function Lje(){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,i=r9(e),o=r9(t);i.forEach(function(c){for(var u=!1,d=r;d1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==n9}),n.forEach(function(u){u.key===c&&(u.status=t9)})}),n}var Qje=["component","children","onVisibleChanged","onAllRemoved"],zje=["status"],Bje=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Fje(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ro,n=(function(r){dl(i,r);var a=Wl(i);function i(){var o;_a(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var Xje=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 Wje=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(D$=t),n!==void 0&&(Exe=n),"holderRender"in e&&(Txe=a),r&&(qje(r)?GUe(S2(),r):xxe=r)},Aj=()=>({getPrefixCls:(e,t)=>t||(e?`${S2()}-${e}`:S2()),getIconPrefixCls:Vje,getRootPrefixCls:()=>D$||S2(),getTheme:()=>xxe,holderRender:Txe}),Gje=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:i,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:h,popupOverflow:g,legacyLocale:O,parentContext:v,iconPrefixCls:y,theme:S,componentDisabled:C,segmented:_,statistic:w,spin:T,calendar:k,carousel:A,cascader:I,collapse:M,typography:Q,checkbox:B,descriptions:D,divider:U,drawer:R,skeleton:$,steps:P,image:z,layout:F,list:L,mentions:X,modal:Y,progress:q,result:G,slider:ee,breadcrumb:K,menu:ne,pagination:ie,input:se,textArea:ue,empty:ce,badge:be,radio:ge,rate:Oe,switch:me,transfer:Te,avatar:Ce,message:Fe,tag:Me,table:Ee,card:Le,tabs:ze,timeline:Qe,timePicker:Je,upload:He,notification:gt,tree:st,colorPicker:lt,datePicker:pt,rangePicker:Ze,flex:De,wave:Ke,dropdown:Be,warning:We,tour:Re,tooltip:Ie,popover:ve,popconfirm:we,floatButton:Xe,floatButtonGroup:rt,variant:at,inputNumber:ct,treeSelect:mt}=e,je=p.useCallback((en,Rn)=>{const{prefixCls:Ut}=e;if(Rn)return Rn;const Ct=Ut||v.getPrefixCls("");return en?`${Ct}-${en}`:Ct},[v.getPrefixCls,e.prefixCls]),Ye=y||v.iconPrefixCls||hk,yt=n||v.csp;Oje(Ye,yt);const $t=fxe(S,v.theme,{prefixCls:je("")}),St={csp:yt,autoInsertSpaceInButton:r,alert:a,anchor:i,locale:s||O,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:h??m,popupOverflow:g,getPrefixCls:je,iconPrefixCls:Ye,theme:$t,segmented:_,statistic:w,spin:T,calendar:k,carousel:A,cascader:I,collapse:M,typography:Q,checkbox:B,descriptions:D,divider:U,drawer:R,skeleton:$,steps:P,image:z,input:se,textArea:ue,layout:F,list:L,mentions:X,modal:Y,progress:q,result:G,slider:ee,breadcrumb:K,menu:ne,pagination:ie,empty:ce,badge:be,radio:ge,rate:Oe,switch:me,transfer:Te,avatar:Ce,message:Fe,tag:Me,table:Ee,card:Le,tabs:ze,timeline:Qe,timePicker:Je,upload:He,notification:gt,tree:st,colorPicker:lt,datePicker:pt,rangePicker:Ze,flex:De,wave:Ke,dropdown:Be,warning:We,tour:Re,tooltip:Ie,popover:ve,popconfirm:we,floatButton:Xe,floatButtonGroup:rt,variant:at,inputNumber:ct,treeSelect:mt},Mt=Object.assign({},v);Object.keys(St).forEach(en=>{St[en]!==void 0&&(Mt[en]=St[en])}),Yje.forEach(en=>{const Rn=e[en];Rn&&(Mt[en]=Rn)}),typeof r<"u"&&(Mt.button=Object.assign({autoInsertSpace:r},Mt.button));const Qt=Om(()=>Mt,Mt,(en,Rn)=>{const Ut=Object.keys(en),Ct=Object.keys(Rn);return Ut.length!==Ct.length||Ut.some(Vt=>en[Vt]!==Rn[Vt])}),{layer:Ot}=p.useContext(Xh),ht=p.useMemo(()=>({prefixCls:Ye,csp:yt,layer:Ot?"antd":void 0}),[Ye,yt,Ot]);let ut=p.createElement(p.Fragment,null,p.createElement(jje,{dropdownMatchSelectWidth:m}),t);const vt=p.useMemo(()=>{var en,Rn,Ut,Ct;return KO(((en=bu.Form)===null||en===void 0?void 0:en.defaultValidateMessages)||{},((Ut=(Rn=Qt.locale)===null||Rn===void 0?void 0:Rn.Form)===null||Ut===void 0?void 0:Ut.defaultValidateMessages)||{},((Ct=Qt.form)===null||Ct===void 0?void 0:Ct.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[Qt,o==null?void 0:o.validateMessages]);Object.keys(vt).length>0&&(ut=p.createElement(GEe.Provider,{value:vt},ut)),s&&(ut=p.createElement(IUe,{locale:s,_ANT_MARK__:NUe},ut)),ut=p.createElement(Ej.Provider,{value:ht},ut),l&&(ut=p.createElement(HUe,{size:l},ut)),ut=p.createElement(Uje,null,ut);const Gt=p.useMemo(()=>{const en=$t||{},{algorithm:Rn,token:Ut,components:Ct,cssVar:Vt}=en,_n=Xje(en,["algorithm","token","components","cssVar"]),jn=Rn&&(!Array.isArray(Rn)||Rn.length>0)?$$(Rn):wj,Qn={};Object.entries(Ct||{}).forEach(([Pt,xe])=>{const pe=Object.assign({},xe);"algorithm"in pe&&(pe.algorithm===!0?pe.theme=jn:(Array.isArray(pe.algorithm)||typeof pe.algorithm=="function")&&(pe.theme=$$(pe.algorithm)),delete pe.algorithm),Qn[Pt]=pe});const fr=Object.assign(Object.assign({},V0),Ut);return Object.assign(Object.assign({},_n),{theme:jn,token:fr,components:Qn,override:Object.assign({override:fr},Qn),cssVar:Vt})},[$t]);return S&&(ut=p.createElement(Cj.Provider,{value:Gt},ut)),Qt.warning&&(ut=p.createElement(RUe.Provider,{value:Qt.warning},ut)),C!==void 0&&(ut=p.createElement($j,{disabled:C},ut)),p.createElement(pn.Provider,{value:Qt},ut)},ui=e=>{const t=p.useContext(pn),n=p.useContext(xj);return p.createElement(Gje,Object.assign({parentContext:t,legacyLocale:n},e))};ui.ConfigContext=pn;ui.SizeContext=Wh;ui.config=Wje;ui.useConfig=ZUe;Object.defineProperty(ui,"SizeContext",{get:()=>Wh});var Hje={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const go=Math.round;function X4(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 lre=(e,t,n)=>n===0?e:e/100;function Gv(e,t){const n=t||255;return e>n?n:e<0?0:e}let rw=class wxe{constructor(t){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof wxe)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=Gv(t.r),this.g=Gv(t.g),this.b=Gv(t.b),this.a=typeof t.a=="number"?Gv(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(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.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=go(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,i=s=>(r[s]-this[s])*a+this[s],o={r:go(i("r")),g:go(i("g")),b:go(i("b")),a:go(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>go((this[i]*this.a+n[i]*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 i=go(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=go(this.getSaturation()*100),r=go(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]=Gv(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,i){return parseInt(n[a]+n[i||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 f=go(r*255);this.r=f,this.g=f,this.b=f}let i=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,o=u):l>=1&&l<2?(i=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=r-c/2;this.r=go((i+d)*255),this.g=go((o+d)*255),this.b=go((s+d)*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 i=go(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=go(r*(1-n)*255),u=go(r*(1-n*l)*255),d=go(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=X4(t,lre);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=X4(t,lre);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=X4(t,(r,a)=>a.includes("%")?go(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var aw=2,cre=.16,Zje=.05,Kje=.05,Jje=.15,Cxe=5,$xe=4,eXe=[{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 ure(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-aw*t:Math.round(e.h)+aw*t:r=n?Math.round(e.h)+aw*t:Math.round(e.h)-aw*t,r<0?r+=360:r>=360&&(r-=360),r}function dre(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-cre*t:t===$xe?r=e.s+cre:r=e.s+Zje*t,r>1&&(r=1),n&&t===Cxe&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function fre(e,t,n){var r;return n?r=e.v+Kje*t:r=e.v-Jje*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function tXe(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new rw(e),a=r.toHsv(),i=Cxe;i>0;i-=1){var o=new rw({h:ure(a,i,!0),s:dre(a,i,!0),v:fre(a,i,!0)});n.push(o)}n.push(r);for(var s=1;s<=$xe;s+=1){var l=new rw({h:ure(a,s),s:dre(a,s),v:fre(a,s)});n.push(l)}return t.theme==="dark"?eXe.map(function(c){var u=c.index,d=c.amount;return new rw(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var a9=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];a9.primary=a9[5];function Rxe(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function nXe(e){return Rxe(e)instanceof ShadowRoot}function L$(e){return nXe(e)?Rxe(e):null}function rXe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function aXe(e,t){Da(e,"[@ant-design/icons] ".concat(t))}function pre(e){return Xt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Xt(e.icon)==="object"||typeof e.icon=="function")}function mre(){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[rXe(n)]=r}return t},{})}function i9(e,t,n){return n?Z.createElement(e.tag,oe(oe({key:t},mre(e.attrs)),n),(e.children||[]).map(function(r,a){return i9(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):Z.createElement(e.tag,oe({key:t},mre(e.attrs)),(e.children||[]).map(function(r,a){return i9(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Pxe(e){return tXe(e)[0]}function kxe(e){return e?Array.isArray(e)?e:[e]:[]}var iXe=` .anticon { display: inline-flex; align-items: center; @@ -155,9 +155,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,Pje=function(t){var n=p.useContext(JU),r=n.csp,a=n.prefixCls,i=n.layer,o=Rje;a&&(o=o.replace(/anticon/g,a)),i&&(o="@layer ".concat(i,` { +`,oXe=function(t){var n=p.useContext(Ej),r=n.csp,a=n.prefixCls,i=n.layer,o=iXe;a&&(o=o.replace(/anticon/g,a)),i&&(o="@layer ".concat(i,` { `).concat(o,` -}`)),p.useEffect(function(){var s=t.current,l=w$(s);ff(o,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])},kje=["icon","className","onClick","style","primaryColor","secondaryColor"],_S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Aje(e){var t=e.primaryColor,n=e.secondaryColor;_S.primaryColor=t,_S.secondaryColor=n||rxe(t),_S.calculated=!!n}function Nje(){return se({},_S)}var Eb=function(t){var n=t.icon,r=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,l=on(t,kje),c=p.useRef(),u=_S;if(o&&(u={primaryColor:o,secondaryColor:s||rxe(o)}),Pje(c),$je(jne(n),"icon should be icon definiton, but got ".concat(n)),!jne(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=se(se({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),z7(d.icon,"svg-".concat(d.name),se(se({className:r,onClick:a,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Eb.displayName="IconReact";Eb.getTwoToneColors=Nje;Eb.setTwoToneColors=Aje;function ixe(e){var t=axe(e),n=be(t,2),r=n[0],a=n[1];return Eb.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Ije(){var e=Eb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Mje=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];ixe(Q7.primary);var Tn=p.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=on(e,Mje),u=p.useContext(JU),d=u.prefixCls,f=d===void 0?"anticon":d,m=u.rootClassName,h=ce(m,f,ae(ae({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!a||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var O=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,v=axe(l),y=be(v,2),S=y[0],C=y[1];return p.createElement("span",Re({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),p.createElement(Eb,{icon:r,primaryColor:S,secondaryColor:C,style:O}))});Tn.displayName="AntdIcon";Tn.getTwoToneColor=Ije;Tn.setTwoToneColor=ixe;var Dje=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:yje}))},hg=p.forwardRef(Dje),Lje={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"},Qje=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Lje}))},Pf=p.forwardRef(Qje),zje={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"},Bje=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:zje}))},Gl=p.forwardRef(Bje),Fje={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"},Uje=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Fje}))},xb=p.forwardRef(Uje),jje={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"},Xje=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:jje}))},ik=p.forwardRef(Xje),Yje=`accept acceptCharset accessKey action allowFullScreen allowTransparency +}`)),p.useEffect(function(){var s=t.current,l=L$(s);bf(o,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])},sXe=["icon","className","onClick","style","primaryColor","secondaryColor"],$S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function lXe(e){var t=e.primaryColor,n=e.secondaryColor;$S.primaryColor=t,$S.secondaryColor=n||Pxe(t),$S.calculated=!!n}function cXe(){return oe({},$S)}var $b=function(t){var n=t.icon,r=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,l=ln(t,sXe),c=p.useRef(),u=$S;if(o&&(u={primaryColor:o,secondaryColor:s||Pxe(o)}),oXe(c),aXe(pre(n),"icon should be icon definiton, but got ".concat(n)),!pre(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=oe(oe({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),i9(d.icon,"svg-".concat(d.name),oe(oe({className:r,onClick:a,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};$b.displayName="IconReact";$b.getTwoToneColors=cXe;$b.setTwoToneColors=lXe;function Axe(e){var t=kxe(e),n=ye(t,2),r=n[0],a=n[1];return $b.setTwoToneColors({primaryColor:r,secondaryColor:a})}function uXe(){var e=$b.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var dXe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Axe(a9.primary);var $n=p.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=ln(e,dXe),u=p.useContext(Ej),d=u.prefixCls,f=d===void 0?"anticon":d,m=u.rootClassName,h=le(m,f,ae(ae({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!a||r.name==="loading"),n),g=o;g===void 0&&s&&(g=-1);var O=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,v=kxe(l),y=ye(v,2),S=y[0],C=y[1];return p.createElement("span",Ae({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:h}),p.createElement($b,{icon:r,primaryColor:S,secondaryColor:C,style:O}))});$n.displayName="AntdIcon";$n.getTwoToneColor=uXe;$n.setTwoToneColor=Axe;var fXe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Hje}))},Eg=p.forwardRef(fXe),pXe={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"},mXe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:pXe}))},Df=p.forwardRef(mXe),hXe={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"},gXe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:hXe}))},Gl=p.forwardRef(gXe),OXe={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"},bXe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:OXe}))},Rb=p.forwardRef(bXe),vXe={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"},yXe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:vXe}))},Ok=p.forwardRef(yXe),SXe=`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 @@ -168,115 +168,115 @@ 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`,Vje=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + summary tabIndex target title type useMap value width wmode wrap`,_Xe=`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`,qje="".concat(Yje," ").concat(Vje).split(/[\s\n]+/),Wje="aria-",Gje="data-";function Yne(e,t){return e.indexOf(t)===0}function bi(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=se({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||Yne(a,Wje))||n.data&&Yne(a,Gje)||n.attr&&qje.includes(a))&&(r[a]=e[a])}),r}function oxe(e){return e&&Z.isValidElement(e)&&e.type===Z.Fragment}const cj=(e,t,n)=>Z.isValidElement(e)?Z.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function wo(e,t){return cj(e,e,t)}const JT=(e,t,n,r,a)=>({background:e,border:`${de(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),Hje=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:i,fontSizeLG:o,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:m,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},zr(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,EXe="".concat(SXe," ").concat(_Xe).split(/[\s\n]+/),xXe="aria-",TXe="data-";function hre(e,t){return e.indexOf(t)===0}function vi(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=oe({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||hre(a,xXe))||n.data&&hre(a,TXe)||n.attr&&EXe.includes(a))&&(r[a]=e[a])}),r}function Nxe(e){return e&&Z.isValidElement(e)&&e.type===Z.Fragment}const Nj=(e,t,n)=>Z.isValidElement(e)?Z.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function To(e,t){return Nj(e,e,t)}const iw=(e,t,n,r,a)=>({background:e,border:`${de(r.lineWidth)} ${r.lineType} ${t}`,[`${a}-icon`]:{color:n}}),wXe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:a,fontSize:i,fontSizeLG:o,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:m,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},Qr(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, padding-top ${n} ${c}, padding-bottom ${n} ${c}, - margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:m,[`${t}-icon`]:{marginInlineEnd:a,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:o},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Zje=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:i,colorWarningBorder:o,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:m}=e;return{[t]:{"&-success":JT(a,r,n,e,t),"&-info":JT(m,f,d,e,t),"&-warning":JT(s,o,i,e,t),"&-error":Object.assign(Object.assign({},JT(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},Kje=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:i,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:i,lineHeight:de(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},Jje=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),eXe=Er("Alert",e=>[Hje(e),Zje(e),Kje(e)],Jje);var Vne=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=tXe[r]||null;return t?cj(t,p.createElement("span",{className:`${n}-icon`},t),()=>({className:ce(`${n}-icon`,t.props.className)})):p.createElement(a,{className:`${n}-icon`})},rXe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:i}=e,o=r===!0||r===void 0?p.createElement(Gl,null):r;return t?p.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},i),o):null},sxe=p.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:i,className:o,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:d,afterClose:f,showIcon:m,closable:h,closeText:g,closeIcon:O,action:v,id:y}=e,S=Vne(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,_]=p.useState(!1),w=p.useRef(null);p.useImperativeHandle(t,()=>({nativeElement:w.current}));const{getPrefixCls:T,direction:A,closable:k,closeIcon:I,className:M,style:Q}=$i("alert"),F=T("alert",r),[L,U,R]=eXe(F),$=H=>{var J;_(!0),(J=e.onClose)===null||J===void 0||J.call(e,H)},P=p.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),z=p.useMemo(()=>typeof h=="object"&&h.closeIcon||g?!0:typeof h=="boolean"?h:O!==!1&&O!==null&&O!==void 0?!0:!!k,[g,O,h,k]),B=i&&m===void 0?!0:m,D=ce(F,`${F}-${P}`,{[`${F}-with-description`]:!!n,[`${F}-no-icon`]:!B,[`${F}-banner`]:!!i,[`${F}-rtl`]:A==="rtl"},M,o,s,R,U),X=bi(S,{aria:!0,data:!0}),Y=p.useMemo(()=>typeof h=="object"&&h.closeIcon?h.closeIcon:g||(O!==void 0?O:typeof k=="object"&&k.closeIcon?k.closeIcon:I),[O,h,k,g,I]),q=p.useMemo(()=>{const H=h??k;if(typeof H=="object"){const{closeIcon:J}=H;return Vne(H,["closeIcon"])}return{}},[h,k]);return L(p.createElement(ao,{visible:!C,motionName:`${F}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:H=>({maxHeight:H.offsetHeight}),onLeaveEnd:f},({className:H,style:J},te)=>p.createElement("div",Object.assign({id:y,ref:Ci(w,te),"data-show":!C,className:ce(D,H),style:Object.assign(Object.assign(Object.assign({},Q),l),J),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},X),B?p.createElement(nXe,{description:n,icon:e.icon,prefixCls:F,type:P}):null,p.createElement("div",{className:`${F}-content`},a?p.createElement("div",{className:`${F}-message`},a):null,n?p.createElement("div",{className:`${F}-description`},n):null),v?p.createElement("div",{className:`${F}-action`},v):null,p.createElement(rXe,{isClosable:z,prefixCls:F,closeIcon:Y,handleClose:$,ariaProps:q}))))});function aXe(e,t,n){return t=Qh(t),X1e(e,ZP()?Reflect.construct(t,n||[],Qh(e).constructor):t.apply(e,n))}let iXe=(function(e){function t(){var n;return Sa(this,t),n=aXe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return dl(t,e),_a(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:i,children:o}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,d=typeof a>"u"?c:a;return s?p.createElement(sxe,{id:i,type:"error",message:u,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):o}}])})(p.Component);const yp=sxe;yp.ErrorBoundary=iXe;const qne=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Wne=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ew=(e,t)=>{if(e.clientHeight{const a=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightit||i>e&&o=t&&s>=n?i-e-r:o>t&&sn?o-t+a:0,oXe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Gne=(e,t)=>{var n,r,a,i;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:R=>R!==c;if(!qne(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,m=[];let h=e;for(;qne(h)&&d(h);){if(h=oXe(h),h===f){m.push(h);break}h!=null&&h===document.body&&ew(h)&&!ew(document.documentElement)||h!=null&&ew(h,u)&&m.push(h)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,O=(i=(a=window.visualViewport)==null?void 0:a.height)!=null?i:innerHeight,{scrollX:v,scrollY:y}=window,{height:S,width:C,top:_,right:w,bottom:T,left:A}=e.getBoundingClientRect(),{top:k,right:I,bottom:M,left:Q}=(R=>{const $=window.getComputedStyle(R);return{top:parseFloat($.scrollMarginTop)||0,right:parseFloat($.scrollMarginRight)||0,bottom:parseFloat($.scrollMarginBottom)||0,left:parseFloat($.scrollMarginLeft)||0}})(e);let F=s==="start"||s==="nearest"?_-k:s==="end"?T+M:_+S/2-k+M,L=l==="center"?A+C/2-Q+I:l==="end"?w+I:A-Q;const U=[];for(let R=0;R=0&&A>=0&&T<=O&&w<=g&&($===f&&!ew($)||_>=B&&T<=X&&A>=Y&&w<=D))return U;const q=getComputedStyle($),H=parseInt(q.borderLeftWidth,10),J=parseInt(q.borderTopWidth,10),te=parseInt(q.borderRightWidth,10),ne=parseInt(q.borderBottomWidth,10);let ie=0,le=0;const ue="offsetWidth"in $?$.offsetWidth-$.clientWidth-H-te:0,oe="offsetHeight"in $?$.offsetHeight-$.clientHeight-J-ne:0,ge="offsetWidth"in $?$.offsetWidth===0?0:z/$.offsetWidth:0,ve="offsetHeight"in $?$.offsetHeight===0?0:P/$.offsetHeight:0;if(f===$)ie=s==="start"?F:s==="end"?F-O:s==="nearest"?tw(y,y+O,O,J,ne,y+F,y+F+S,S):F-O/2,le=l==="start"?L:l==="center"?L-g/2:l==="end"?L-g:tw(v,v+g,g,H,te,v+L,v+L+C,C),ie=Math.max(0,ie+y),le=Math.max(0,le+v);else{ie=s==="start"?F-B-J:s==="end"?F-X+ne+oe:s==="nearest"?tw(B,X,P,J,ne+oe,F,F+S,S):F-(B+P/2)+oe/2,le=l==="start"?L-Y-H:l==="center"?L-(Y+z/2)+ue/2:l==="end"?L-D+te+ue:tw(Y,D,z,H,te+ue,L,L+C,C);const{scrollLeft:he,scrollTop:me}=$;ie=ve===0?0:Math.max(0,Math.min(me+ie/ve,$.scrollHeight-P/ve+oe)),le=ge===0?0:Math.max(0,Math.min(he+le/ge,$.scrollWidth-z/ge+ue)),F+=me-ie,L+=he-le}U.push({el:$,top:ie,left:le})}return U},sXe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function lXe(e,t){if(!e.isConnected||!(a=>{let i=a;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(a=>{const i=window.getComputedStyle(a);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(Gne(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:i,left:o}of Gne(e,sXe(t))){const s=i-n.top+n.bottom,l=o-n.left+n.right;a.scroll({top:s,left:l,behavior:r})}}function B7(e){return e!=null&&e===e.window}const cXe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return B7(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!B7(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 uXe(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 dXe(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,i=n(),o=cXe(i),s=Date.now(),l=()=>{const u=Date.now()-s,d=uXe(u>a?a:u,o,e,a);B7(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=d:i.scrollTop=d,u{const[,,,,t]=uo();return t?`${e}-css-var`:""};var Vt={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},uj=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,i=e.duration,o=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,d=e.content,f=e.closable,m=e.closeIcon,h=m===void 0?"x":m,g=e.props,O=e.onClick,v=e.onNoticeClose,y=e.times,S=e.hovering,C=p.useState(!1),_=be(C,2),w=_[0],T=_[1],A=p.useState(0),k=be(A,2),I=k[0],M=k[1],Q=p.useState(0),F=be(Q,2),L=F[0],U=F[1],R=S||w,$=o>0&&s,P=function(){v(u)},z=function(H){(H.key==="Enter"||H.code==="Enter"||H.keyCode===Vt.ENTER)&&P()};p.useEffect(function(){if(!R&&o>0){var q=Date.now()-L,H=setTimeout(function(){P()},o*1e3-L);return function(){c&&clearTimeout(H),U(Date.now()-q)}}},[o,R,y]),p.useEffect(function(){if(!R&&$&&(c||L===0)){var q=performance.now(),H,J=function te(){cancelAnimationFrame(H),H=requestAnimationFrame(function(ne){var ie=ne+L-q,le=Math.min(ie/(o*1e3),1);M(le*100),le<1&&te()})};return J(),function(){c&&cancelAnimationFrame(H)}}},[o,L,R,$,y]);var B=p.useMemo(function(){return Ut(f)==="object"&&f!==null?f:f?{closeIcon:h}:{}},[f,h]),D=bi(B,!0),X=100-(!I||I<0?0:I>100?100:I),Y="".concat(n,"-notice");return p.createElement("div",Re({},g,{ref:t,className:ce(Y,a,ae({},"".concat(Y,"-closable"),f)),style:r,onMouseEnter:function(H){var J;T(!0),g==null||(J=g.onMouseEnter)===null||J===void 0||J.call(g,H)},onMouseLeave:function(H){var J;T(!1),g==null||(J=g.onMouseLeave)===null||J===void 0||J.call(g,H)},onClick:O}),p.createElement("div",{className:"".concat(Y,"-content")},d),f&&p.createElement("a",Re({tabIndex:0,className:"".concat(Y,"-close"),onKeyDown:z,"aria-label":"Close"},D,{onClick:function(H){H.preventDefault(),H.stopPropagation(),P()}}),B.closeIcon),$&&p.createElement("progress",{className:"".concat(Y,"-progress"),max:"100",value:X},X+"%"))}),lxe=Z.createContext({}),cxe=function(t){var n=t.children,r=t.classNames;return Z.createElement(lxe.Provider,{value:{classNames:r}},n)},Hne=8,Zne=3,Kne=16,fXe=function(t){var n={offset:Hne,threshold:Zne,gap:Kne};if(t&&Ut(t)==="object"){var r,a,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:Hne,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:Zne,n.gap=(i=t.gap)!==null&&i!==void 0?i:Kne}return[!!t,n]},pXe=["className","style","classNames","styles"],mXe=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,i=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,d=p.useContext(lxe),f=d.classNames,m=p.useRef({}),h=p.useState(null),g=be(h,2),O=g[0],v=g[1],y=p.useState([]),S=be(y,2),C=S[0],_=S[1],w=n.map(function(R){return{config:R,key:String(R.key)}}),T=fXe(u),A=be(T,2),k=A[0],I=A[1],M=I.offset,Q=I.threshold,F=I.gap,L=k&&(C.length>0||w.length<=Q),U=typeof s=="function"?s(r):s;return p.useEffect(function(){k&&C.length>1&&_(function(R){return R.filter(function($){return w.some(function(P){var z=P.key;return $===z})})})},[C,w,k]),p.useEffect(function(){var R;if(k&&m.current[(R=w[w.length-1])===null||R===void 0?void 0:R.key]){var $;v(m.current[($=w[w.length-1])===null||$===void 0?void 0:$.key])}},[w,k]),Z.createElement(ak,Re({key:r,className:ce(a,"".concat(a,"-").concat(r),f==null?void 0:f.list,i,ae(ae({},"".concat(a,"-stack"),!!k),"".concat(a,"-stack-expanded"),L)),style:o,keys:w,motionAppear:!0},U,{onAllRemoved:function(){l(r)}}),function(R,$){var P=R.config,z=R.className,B=R.style,D=R.index,X=P,Y=X.key,q=X.times,H=String(Y),J=P,te=J.className,ne=J.style,ie=J.classNames,le=J.styles,ue=on(J,pXe),oe=w.findIndex(function(Ne){return Ne.key===H}),ge={};if(k){var ve=w.length-1-(oe>-1?oe:D-1),he=r==="top"||r==="bottom"?"-50%":"0";if(ve>0){var me,xe,we;ge.height=L?(me=m.current[H])===null||me===void 0?void 0:me.offsetHeight:O==null?void 0:O.offsetHeight;for(var Qe=0,Ie=0;Ie-1?m.current[H]=et:delete m.current[H]},prefixCls:a,classNames:ie,styles:le,className:ce(te,f==null?void 0:f.notice),style:ne,times:q,key:Y,eventKey:Y,onNoticeClose:c,hovering:k&&C.length>0})))})},hXe=p.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,i=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=p.useState([]),m=be(f,2),h=m[0],g=m[1],O=function(k){var I,M=h.find(function(Q){return Q.key===k});M==null||(I=M.onClose)===null||I===void 0||I.call(M),g(function(Q){return Q.filter(function(F){return F.key!==k})})};p.useImperativeHandle(t,function(){return{open:function(k){g(function(I){var M=Ke(I),Q=M.findIndex(function(U){return U.key===k.key}),F=se({},k);if(Q>=0){var L;F.times=(((L=I[Q])===null||L===void 0?void 0:L.times)||0)+1,M[Q]=F}else F.times=0,M.push(F);return o>0&&M.length>o&&(M=M.slice(-o)),M})},close:function(k){O(k)},destroy:function(){g([])}}});var v=p.useState({}),y=be(v,2),S=y[0],C=y[1];p.useEffect(function(){var A={};h.forEach(function(k){var I=k.placement,M=I===void 0?"topRight":I;M&&(A[M]=A[M]||[],A[M].push(k))}),Object.keys(S).forEach(function(k){A[k]=A[k]||[]}),C(A)},[h]);var _=function(k){C(function(I){var M=se({},I),Q=M[k]||[];return Q.length||delete M[k],M})},w=p.useRef(!1);if(p.useEffect(function(){Object.keys(S).length>0?w.current=!0:w.current&&(c==null||c(),w.current=!1)},[S]),!a)return null;var T=Object.keys(S);return Fl.createPortal(p.createElement(p.Fragment,null,T.map(function(A){var k=S[A],I=p.createElement(mXe,{key:A,configList:k,placement:A,prefixCls:r,className:s==null?void 0:s(A),style:l==null?void 0:l(A),motion:i,onNoticeClose:O,onAllNoticeRemoved:_,stack:u});return d?d(I,{prefixCls:r,key:A}):I})),a)}),gXe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],OXe=function(){return document.body},Jne=0;function bXe(){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?OXe:t,r=e.motion,a=e.prefixCls,i=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=on(e,gXe),f=p.useState(),m=be(f,2),h=m[0],g=m[1],O=p.useRef(),v=p.createElement(hXe,{container:h,ref:O,prefixCls:a,motion:r,maxCount:i,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=p.useState([]),S=be(y,2),C=S[0],_=S[1],w=ar(function(A){var k=bXe(d,A);(k.key===null||k.key===void 0)&&(k.key="rc-notification-".concat(Jne),Jne+=1),_(function(I){return[].concat(Ke(I),[{type:"open",config:k}])})}),T=p.useMemo(function(){return{open:w,close:function(k){_(function(I){return[].concat(Ke(I),[{type:"close",key:k}])})},destroy:function(){_(function(k){return[].concat(Ke(k),[{type:"destroy"}])})}}},[]);return p.useEffect(function(){g(n())}),p.useEffect(function(){if(O.current&&C.length){C.forEach(function(I){switch(I.type){case"open":O.current.open(I.config);break;case"close":O.current.close(I.key);break;case"destroy":O.current.destroy();break}});var A,k;_(function(I){return(A!==I||!k)&&(A=I,k=I.filter(function(M){return!C.includes(M)})),k})}},[C]),[T,v]}var dxe={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"},vXe=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:dxe}))},mu=p.forwardRef(vXe);function C$(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function j0(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function ere(e){const{closable:t,closeIcon:n}=e||{};return Z.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 yXe={},dj=(e,t,n=yXe)=>{const r=ere(e),a=ere(t),[i]=fl("global",pu.global),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=Z.useMemo(()=>Object.assign({closeIcon:Z.createElement(Gl,null)},n),[n]),l=Z.useMemo(()=>r===!1?!1:r?C$(s,a,r):a===!1?!1:a?C$(s,a):s.closable?s:!1,[r,a,s]);return Z.useMemo(()=>{var c,u;if(l===!1)return[!1,null,o,{}];const{closeIconRender:d}=s,{closeIcon:f}=l;let m=f;const h=bi(l,!0);return m!=null&&(d&&(m=d(f)),m=Z.isValidElement(m)?Z.cloneElement(m,Object.assign(Object.assign(Object.assign({},m.props),{"aria-label":(u=(c=m.props)===null||c===void 0?void 0:c["aria-label"])!==null&&u!==void 0?u:i.close}),h)):Z.createElement("span",Object.assign({"aria-label":i.close},h),m)),[!0,m,o,h]},[o,i.close,l,s])},fj=()=>Z.useReducer(e=>e+1,0);function fxe(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(i=>{const o=n[i],s=a[i];if(o&&typeof o=="object")if(s&&typeof s=="object")r[i]=fxe(o,r[i],s);else{const{_default:l}=o;l&&(r[i]=r[i]||{},r[i][l]=ce(r[i][l],s))}else r[i]=ce(r[i],s)}),r),{})}function SXe(e,...t){return p.useMemo(()=>fxe.apply(void 0,[e].concat(t)),[t,e])}function _Xe(...e){return p.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function F7(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],i=n[r]||{};n[r]=a?F7(i,a):i}}),n}const EXe=(e,t,n)=>{const r=SXe.apply(void 0,[n].concat(Ke(e))),a=_Xe.apply(void 0,Ke(t));return p.useMemo(()=>[F7(r,n),F7(a,n)],[r,a,n])},xXe=e=>{const[t,n]=p.useState(null);return[p.useCallback((a,i,o)=>{const s=t??a,l=Math.min(s||0,a),c=Math.max(s||0,a),u=i.slice(l,c+1).map(e),d=u.some(m=>!o.has(m)),f=[];return u.forEach(m=>{d?(o.has(m)||f.push(m),o.add(m)):(o.delete(m),f.push(m))}),n(d?c:null),f},[t]),n]},TXe=()=>{const[e,t]=p.useState([]),n=p.useCallback(r=>(t(a=>[].concat(Ke(a),[r])),()=>{t(a=>a.filter(i=>i!==r))}),[]);return[e,n]};function wXe(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 CXe=(e,t)=>p.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,i){return n[i]?n[i]:Reflect.get(a,i)}}):wXe(r,n)}),$Xe=e=>{const t=p.useRef(e),[,n]=fj();return[()=>t.current,r=>{t.current=r,n()}]},QE=Z.createContext(void 0),gp=100,RXe=10,pj=gp*RXe,pxe={Modal:gp,Drawer:gp,Popover:gp,Popconfirm:gp,Tooltip:gp,Tour:gp,FloatButton:gp},PXe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function kXe(e){return e in pxe}const Ed=(e,t)=>{const[,n]=uo(),r=Z.useContext(QE),a=kXe(e);let i;if(t!==void 0)i=[t,t];else{let o=r??0;a?o+=(r?0:n.zIndexPopupBase)+pxe[e]:o+=PXe[e],i=[r===void 0?t:o,o]}return i},AXe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:i,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:m,borderRadiusLG:h,zIndexPopup:g,contentPadding:O,contentBg:v}=e,y=`${t}-notice`,S=new kr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),C=new kr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),_={padding:m,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:O,background:v,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, - ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},zr(e)),{color:a,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:m,[`${t}-icon`]:{marginInlineEnd:a,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:o},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},CXe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:a,colorWarning:i,colorWarningBorder:o,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:m}=e;return{[t]:{"&-success":iw(a,r,n,e,t),"&-info":iw(m,f,d,e,t),"&-warning":iw(s,o,i,e,t),"&-error":Object.assign(Object.assign({},iw(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},$Xe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:a,fontSizeIcon:i,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:i,lineHeight:de(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:o,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${r}`,"&:hover":{color:s}}}}},RXe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),PXe=Er("Alert",e=>[wXe(e),CXe(e),$Xe(e)],RXe);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{icon:t,prefixCls:n,type:r}=e,a=kXe[r]||null;return t?Nj(t,p.createElement("span",{className:`${n}-icon`},t),()=>({className:le(`${n}-icon`,t.props.className)})):p.createElement(a,{className:`${n}-icon`})},NXe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:a,ariaProps:i}=e,o=r===!0||r===void 0?p.createElement(Gl,null):r;return t?p.createElement("button",Object.assign({type:"button",onClick:a,className:`${n}-close-icon`,tabIndex:0},i),o):null},Ixe=p.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:a,banner:i,className:o,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:d,afterClose:f,showIcon:m,closable:h,closeText:g,closeIcon:O,action:v,id:y}=e,S=gre(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,_]=p.useState(!1),w=p.useRef(null);p.useImperativeHandle(t,()=>({nativeElement:w.current}));const{getPrefixCls:T,direction:k,closable:A,closeIcon:I,className:M,style:Q}=$i("alert"),B=T("alert",r),[D,U,R]=PXe(B),$=G=>{var ee;_(!0),(ee=e.onClose)===null||ee===void 0||ee.call(e,G)},P=p.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),z=p.useMemo(()=>typeof h=="object"&&h.closeIcon||g?!0:typeof h=="boolean"?h:O!==!1&&O!==null&&O!==void 0?!0:!!A,[g,O,h,A]),F=i&&m===void 0?!0:m,L=le(B,`${B}-${P}`,{[`${B}-with-description`]:!!n,[`${B}-no-icon`]:!F,[`${B}-banner`]:!!i,[`${B}-rtl`]:k==="rtl"},M,o,s,R,U),X=vi(S,{aria:!0,data:!0}),Y=p.useMemo(()=>typeof h=="object"&&h.closeIcon?h.closeIcon:g||(O!==void 0?O:typeof A=="object"&&A.closeIcon?A.closeIcon:I),[O,h,A,g,I]),q=p.useMemo(()=>{const G=h??A;if(typeof G=="object"){const{closeIcon:ee}=G;return gre(G,["closeIcon"])}return{}},[h,A]);return D(p.createElement(ro,{visible:!C,motionName:`${B}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:G=>({maxHeight:G.offsetHeight}),onLeaveEnd:f},({className:G,style:ee},K)=>p.createElement("div",Object.assign({id:y,ref:Ci(w,K),"data-show":!C,className:le(L,G),style:Object.assign(Object.assign(Object.assign({},Q),l),ee),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},X),F?p.createElement(AXe,{description:n,icon:e.icon,prefixCls:B,type:P}):null,p.createElement("div",{className:`${B}-content`},a?p.createElement("div",{className:`${B}-message`},a):null,n?p.createElement("div",{className:`${B}-description`},n):null),v?p.createElement("div",{className:`${B}-action`},v):null,p.createElement(NXe,{isClosable:z,prefixCls:B,closeIcon:Y,handleClose:$,ariaProps:q}))))});function IXe(e,t,n){return t=Yh(t),OEe(e,ck()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}let MXe=(function(e){function t(){var n;return _a(this,t),n=IXe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return dl(t,e),Ea(t,[{key:"componentDidCatch",value:function(r,a){this.setState({error:r,info:a})}},{key:"render",value:function(){const{message:r,description:a,id:i,children:o}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,d=typeof a>"u"?c:a;return s?p.createElement(Ixe,{id:i,type:"error",message:u,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):o}}])})(p.Component);const wp=Ixe;wp.ErrorBoundary=MXe;const Ore=e=>typeof e=="object"&&e!=null&&e.nodeType===1,bre=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ow=(e,t)=>{if(e.clientHeight{const a=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightit||i>e&&o=t&&s>=n?i-e-r:o>t&&sn?o-t+a:0,DXe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},vre=(e,t)=>{var n,r,a,i;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:R=>R!==c;if(!Ore(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,m=[];let h=e;for(;Ore(h)&&d(h);){if(h=DXe(h),h===f){m.push(h);break}h!=null&&h===document.body&&ow(h)&&!ow(document.documentElement)||h!=null&&ow(h,u)&&m.push(h)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,O=(i=(a=window.visualViewport)==null?void 0:a.height)!=null?i:innerHeight,{scrollX:v,scrollY:y}=window,{height:S,width:C,top:_,right:w,bottom:T,left:k}=e.getBoundingClientRect(),{top:A,right:I,bottom:M,left:Q}=(R=>{const $=window.getComputedStyle(R);return{top:parseFloat($.scrollMarginTop)||0,right:parseFloat($.scrollMarginRight)||0,bottom:parseFloat($.scrollMarginBottom)||0,left:parseFloat($.scrollMarginLeft)||0}})(e);let B=s==="start"||s==="nearest"?_-A:s==="end"?T+M:_+S/2-A+M,D=l==="center"?k+C/2-Q+I:l==="end"?w+I:k-Q;const U=[];for(let R=0;R=0&&k>=0&&T<=O&&w<=g&&($===f&&!ow($)||_>=F&&T<=X&&k>=Y&&w<=L))return U;const q=getComputedStyle($),G=parseInt(q.borderLeftWidth,10),ee=parseInt(q.borderTopWidth,10),K=parseInt(q.borderRightWidth,10),ne=parseInt(q.borderBottomWidth,10);let ie=0,se=0;const ue="offsetWidth"in $?$.offsetWidth-$.clientWidth-G-K:0,ce="offsetHeight"in $?$.offsetHeight-$.clientHeight-ee-ne:0,be="offsetWidth"in $?$.offsetWidth===0?0:z/$.offsetWidth:0,ge="offsetHeight"in $?$.offsetHeight===0?0:P/$.offsetHeight:0;if(f===$)ie=s==="start"?B:s==="end"?B-O:s==="nearest"?sw(y,y+O,O,ee,ne,y+B,y+B+S,S):B-O/2,se=l==="start"?D:l==="center"?D-g/2:l==="end"?D-g:sw(v,v+g,g,G,K,v+D,v+D+C,C),ie=Math.max(0,ie+y),se=Math.max(0,se+v);else{ie=s==="start"?B-F-ee:s==="end"?B-X+ne+ce:s==="nearest"?sw(F,X,P,ee,ne+ce,B,B+S,S):B-(F+P/2)+ce/2,se=l==="start"?D-Y-G:l==="center"?D-(Y+z/2)+ue/2:l==="end"?D-L+K+ue:sw(Y,L,z,G,K+ue,D,D+C,C);const{scrollLeft:Oe,scrollTop:me}=$;ie=ge===0?0:Math.max(0,Math.min(me+ie/ge,$.scrollHeight-P/ge+ce)),se=be===0?0:Math.max(0,Math.min(Oe+se/be,$.scrollWidth-z/be+ue)),B+=me-ie,D+=Oe-se}U.push({el:$,top:ie,left:se})}return U},LXe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function QXe(e,t){if(!e.isConnected||!(a=>{let i=a;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(a=>{const i=window.getComputedStyle(a);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(vre(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:i,left:o}of vre(e,LXe(t))){const s=i-n.top+n.bottom,l=o-n.left+n.right;a.scroll({top:s,left:l,behavior:r})}}function o9(e){return e!=null&&e===e.window}const zXe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return o9(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!o9(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 BXe(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 FXe(e,t={}){const{getContainer:n=()=>window,callback:r,duration:a=450}=t,i=n(),o=zXe(i),s=Date.now(),l=()=>{const u=Date.now()-s,d=BXe(u>a?a:u,o,e,a);o9(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=d:i.scrollTop=d,u{const[,,,,t]=co();return t?`${e}-css-var`:""};var Ht={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Ij=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,i=e.duration,o=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,d=e.content,f=e.closable,m=e.closeIcon,h=m===void 0?"x":m,g=e.props,O=e.onClick,v=e.onNoticeClose,y=e.times,S=e.hovering,C=p.useState(!1),_=ye(C,2),w=_[0],T=_[1],k=p.useState(0),A=ye(k,2),I=A[0],M=A[1],Q=p.useState(0),B=ye(Q,2),D=B[0],U=B[1],R=S||w,$=o>0&&s,P=function(){v(u)},z=function(G){(G.key==="Enter"||G.code==="Enter"||G.keyCode===Ht.ENTER)&&P()};p.useEffect(function(){if(!R&&o>0){var q=Date.now()-D,G=setTimeout(function(){P()},o*1e3-D);return function(){c&&clearTimeout(G),U(Date.now()-q)}}},[o,R,y]),p.useEffect(function(){if(!R&&$&&(c||D===0)){var q=performance.now(),G,ee=function K(){cancelAnimationFrame(G),G=requestAnimationFrame(function(ne){var ie=ne+D-q,se=Math.min(ie/(o*1e3),1);M(se*100),se<1&&K()})};return ee(),function(){c&&cancelAnimationFrame(G)}}},[o,D,R,$,y]);var F=p.useMemo(function(){return Xt(f)==="object"&&f!==null?f:f?{closeIcon:h}:{}},[f,h]),L=vi(F,!0),X=100-(!I||I<0?0:I>100?100:I),Y="".concat(n,"-notice");return p.createElement("div",Ae({},g,{ref:t,className:le(Y,a,ae({},"".concat(Y,"-closable"),f)),style:r,onMouseEnter:function(G){var ee;T(!0),g==null||(ee=g.onMouseEnter)===null||ee===void 0||ee.call(g,G)},onMouseLeave:function(G){var ee;T(!1),g==null||(ee=g.onMouseLeave)===null||ee===void 0||ee.call(g,G)},onClick:O}),p.createElement("div",{className:"".concat(Y,"-content")},d),f&&p.createElement("a",Ae({tabIndex:0,className:"".concat(Y,"-close"),onKeyDown:z,"aria-label":"Close"},L,{onClick:function(G){G.preventDefault(),G.stopPropagation(),P()}}),F.closeIcon),$&&p.createElement("progress",{className:"".concat(Y,"-progress"),max:"100",value:X},X+"%"))}),Mxe=Z.createContext({}),Dxe=function(t){var n=t.children,r=t.classNames;return Z.createElement(Mxe.Provider,{value:{classNames:r}},n)},yre=8,Sre=3,_re=16,UXe=function(t){var n={offset:yre,threshold:Sre,gap:_re};if(t&&Xt(t)==="object"){var r,a,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:yre,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:Sre,n.gap=(i=t.gap)!==null&&i!==void 0?i:_re}return[!!t,n]},jXe=["className","style","classNames","styles"],XXe=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,i=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,d=p.useContext(Mxe),f=d.classNames,m=p.useRef({}),h=p.useState(null),g=ye(h,2),O=g[0],v=g[1],y=p.useState([]),S=ye(y,2),C=S[0],_=S[1],w=n.map(function(R){return{config:R,key:String(R.key)}}),T=UXe(u),k=ye(T,2),A=k[0],I=k[1],M=I.offset,Q=I.threshold,B=I.gap,D=A&&(C.length>0||w.length<=Q),U=typeof s=="function"?s(r):s;return p.useEffect(function(){A&&C.length>1&&_(function(R){return R.filter(function($){return w.some(function(P){var z=P.key;return $===z})})})},[C,w,A]),p.useEffect(function(){var R;if(A&&m.current[(R=w[w.length-1])===null||R===void 0?void 0:R.key]){var $;v(m.current[($=w[w.length-1])===null||$===void 0?void 0:$.key])}},[w,A]),Z.createElement(gk,Ae({key:r,className:le(a,"".concat(a,"-").concat(r),f==null?void 0:f.list,i,ae(ae({},"".concat(a,"-stack"),!!A),"".concat(a,"-stack-expanded"),D)),style:o,keys:w,motionAppear:!0},U,{onAllRemoved:function(){l(r)}}),function(R,$){var P=R.config,z=R.className,F=R.style,L=R.index,X=P,Y=X.key,q=X.times,G=String(Y),ee=P,K=ee.className,ne=ee.style,ie=ee.classNames,se=ee.styles,ue=ln(ee,jXe),ce=w.findIndex(function(Qe){return Qe.key===G}),be={};if(A){var ge=w.length-1-(ce>-1?ce:L-1),Oe=r==="top"||r==="bottom"?"-50%":"0";if(ge>0){var me,Te,Ce;be.height=D?(me=m.current[G])===null||me===void 0?void 0:me.offsetHeight:O==null?void 0:O.offsetHeight;for(var Fe=0,Me=0;Me-1?m.current[G]=Je:delete m.current[G]},prefixCls:a,classNames:ie,styles:se,className:le(K,f==null?void 0:f.notice),style:ne,times:q,key:Y,eventKey:Y,onNoticeClose:c,hovering:A&&C.length>0})))})},YXe=p.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,i=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=p.useState([]),m=ye(f,2),h=m[0],g=m[1],O=function(A){var I,M=h.find(function(Q){return Q.key===A});M==null||(I=M.onClose)===null||I===void 0||I.call(M),g(function(Q){return Q.filter(function(B){return B.key!==A})})};p.useImperativeHandle(t,function(){return{open:function(A){g(function(I){var M=et(I),Q=M.findIndex(function(U){return U.key===A.key}),B=oe({},A);if(Q>=0){var D;B.times=(((D=I[Q])===null||D===void 0?void 0:D.times)||0)+1,M[Q]=B}else B.times=0,M.push(B);return o>0&&M.length>o&&(M=M.slice(-o)),M})},close:function(A){O(A)},destroy:function(){g([])}}});var v=p.useState({}),y=ye(v,2),S=y[0],C=y[1];p.useEffect(function(){var k={};h.forEach(function(A){var I=A.placement,M=I===void 0?"topRight":I;M&&(k[M]=k[M]||[],k[M].push(A))}),Object.keys(S).forEach(function(A){k[A]=k[A]||[]}),C(k)},[h]);var _=function(A){C(function(I){var M=oe({},I),Q=M[A]||[];return Q.length||delete M[A],M})},w=p.useRef(!1);if(p.useEffect(function(){Object.keys(S).length>0?w.current=!0:w.current&&(c==null||c(),w.current=!1)},[S]),!a)return null;var T=Object.keys(S);return Fl.createPortal(p.createElement(p.Fragment,null,T.map(function(k){var A=S[k],I=p.createElement(XXe,{key:k,configList:A,placement:k,prefixCls:r,className:s==null?void 0:s(k),style:l==null?void 0:l(k),motion:i,onNoticeClose:O,onAllNoticeRemoved:_,stack:u});return d?d(I,{prefixCls:r,key:k}):I})),a)}),VXe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],qXe=function(){return document.body},Ere=0;function WXe(){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?qXe:t,r=e.motion,a=e.prefixCls,i=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=ln(e,VXe),f=p.useState(),m=ye(f,2),h=m[0],g=m[1],O=p.useRef(),v=p.createElement(YXe,{container:h,ref:O,prefixCls:a,motion:r,maxCount:i,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=p.useState([]),S=ye(y,2),C=S[0],_=S[1],w=ar(function(k){var A=WXe(d,k);(A.key===null||A.key===void 0)&&(A.key="rc-notification-".concat(Ere),Ere+=1),_(function(I){return[].concat(et(I),[{type:"open",config:A}])})}),T=p.useMemo(function(){return{open:w,close:function(A){_(function(I){return[].concat(et(I),[{type:"close",key:A}])})},destroy:function(){_(function(A){return[].concat(et(A),[{type:"destroy"}])})}}},[]);return p.useEffect(function(){g(n())}),p.useEffect(function(){if(O.current&&C.length){C.forEach(function(I){switch(I.type){case"open":O.current.open(I.config);break;case"close":O.current.close(I.key);break;case"destroy":O.current.destroy();break}});var k,A;_(function(I){return(k!==I||!A)&&(k=I,A=I.filter(function(M){return!C.includes(M)})),A})}},[C]),[T,v]}var Qxe={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"},GXe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Qxe}))},vu=p.forwardRef(GXe);function Q$(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function W0(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function xre(e){const{closable:t,closeIcon:n}=e||{};return Z.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 HXe={},Mj=(e,t,n=HXe)=>{const r=xre(e),a=xre(t),[i]=fl("global",bu.global),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=Z.useMemo(()=>Object.assign({closeIcon:Z.createElement(Gl,null)},n),[n]),l=Z.useMemo(()=>r===!1?!1:r?Q$(s,a,r):a===!1?!1:a?Q$(s,a):s.closable?s:!1,[r,a,s]);return Z.useMemo(()=>{var c,u;if(l===!1)return[!1,null,o,{}];const{closeIconRender:d}=s,{closeIcon:f}=l;let m=f;const h=vi(l,!0);return m!=null&&(d&&(m=d(f)),m=Z.isValidElement(m)?Z.cloneElement(m,Object.assign(Object.assign(Object.assign({},m.props),{"aria-label":(u=(c=m.props)===null||c===void 0?void 0:c["aria-label"])!==null&&u!==void 0?u:i.close}),h)):Z.createElement("span",Object.assign({"aria-label":i.close},h),m)),[!0,m,o,h]},[o,i.close,l,s])},Dj=()=>Z.useReducer(e=>e+1,0);function zxe(e,...t){const n=e||{};return t.reduce((r,a)=>(Object.keys(a||{}).forEach(i=>{const o=n[i],s=a[i];if(o&&typeof o=="object")if(s&&typeof s=="object")r[i]=zxe(o,r[i],s);else{const{_default:l}=o;l&&(r[i]=r[i]||{},r[i][l]=le(r[i][l],s))}else r[i]=le(r[i],s)}),r),{})}function ZXe(e,...t){return p.useMemo(()=>zxe.apply(void 0,[e].concat(t)),[t,e])}function KXe(...e){return p.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function s9(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const a=t[r],i=n[r]||{};n[r]=a?s9(i,a):i}}),n}const JXe=(e,t,n)=>{const r=ZXe.apply(void 0,[n].concat(et(e))),a=KXe.apply(void 0,et(t));return p.useMemo(()=>[s9(r,n),s9(a,n)],[r,a,n])},eYe=e=>{const[t,n]=p.useState(null);return[p.useCallback((a,i,o)=>{const s=t??a,l=Math.min(s||0,a),c=Math.max(s||0,a),u=i.slice(l,c+1).map(e),d=u.some(m=>!o.has(m)),f=[];return u.forEach(m=>{d?(o.has(m)||f.push(m),o.add(m)):(o.delete(m),f.push(m))}),n(d?c:null),f},[t]),n]},tYe=()=>{const[e,t]=p.useState([]),n=p.useCallback(r=>(t(a=>[].concat(et(a),[r])),()=>{t(a=>a.filter(i=>i!==r))}),[]);return[e,n]};function nYe(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 rYe=(e,t)=>p.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,i){return n[i]?n[i]:Reflect.get(a,i)}}):nYe(r,n)}),aYe=e=>{const t=p.useRef(e),[,n]=Dj();return[()=>t.current,r=>{t.current=r,n()}]},XE=Z.createContext(void 0),_p=100,iYe=10,Lj=_p*iYe,Bxe={Modal:_p,Drawer:_p,Popover:_p,Popconfirm:_p,Tooltip:_p,Tour:_p,FloatButton:_p},oYe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function sYe(e){return e in Bxe}const Rd=(e,t)=>{const[,n]=co(),r=Z.useContext(XE),a=sYe(e);let i;if(t!==void 0)i=[t,t];else{let o=r??0;a?o+=(r?0:n.zIndexPopupBase)+Bxe[e]:o+=oYe[e],i=[r===void 0?t:o,o]}return i},lYe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:i,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:m,borderRadiusLG:h,zIndexPopup:g,contentPadding:O,contentBg:v}=e,y=`${t}-notice`,S=new kr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),C=new kr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),_={padding:m,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:f,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:O,background:v,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:o},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, + ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Qr(e)),{color:a,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:S,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},_)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},_),{padding:0,textAlign:"start"})}]},NXe=e=>({zIndexPopup:e.zIndexPopupBase+pj+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),mxe=Er("Message",e=>{const t=nr(e,{height:150});return AXe(t)},NXe);var IXe=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);ap.createElement("div",{className:ce(`${e}-custom-content`,`${e}-${t}`)},n||MXe[t],p.createElement("span",null,r)),DXe=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:i}=e,o=IXe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=p.useContext(fn),l=t||s("message"),c=Fa(l),[u,d,f]=mxe(l,c);return u(p.createElement(uj,Object.assign({},o,{prefixCls:l,className:ce(n,d,`${l}-notice-pure-panel`,f,c),eventKey:"pure",duration:null,content:p.createElement(hxe,{prefixCls:l,type:r,icon:a},i)})))};function LXe(e,t){return{motionName:t??`${e}-move-up`}}function mj(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,i)=>n.then(a,i),r.promise=n,r}var QXe=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=Fa(t),[r,a,i]=mxe(t,n);return r(p.createElement(cxe,{classNames:{list:ce(a,i,n)}},e))},UXe=(e,{prefixCls:t,key:n})=>p.createElement(FXe,{prefixCls:t,key:n},e),jXe=p.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:i,duration:o=BXe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:m}=p.useContext(fn),h=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??zXe}),O=()=>ce({[`${h}-rtl`]:s??m==="rtl"}),v=()=>LXe(h,l),y=p.createElement("span",{className:`${h}-close-x`},p.createElement(Gl,{className:`${h}-close-icon`})),[S,C]=uxe({prefixCls:h,style:g,className:O,motion:v,closable:!1,closeIcon:y,duration:o,getContainer:()=>(a==null?void 0:a())||(d==null?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:UXe});return p.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:h,message:f})),C});let tre=0;function gxe(e){const t=p.useRef(null);return _d(),[p.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},a=l=>{if(!t.current){const w=()=>{};return w.then=()=>{},w}const{open:c,prefixCls:u,message:d}=t.current,f=`${u}-notice`,{content:m,icon:h,type:g,key:O,className:v,style:y,onClose:S}=l,C=QXe(l,["content","icon","type","key","className","style","onClose"]);let _=O;return _==null&&(tre+=1,_=`antd-message-${tre}`),mj(w=>(c(Object.assign(Object.assign({},C),{key:_,content:p.createElement(hxe,{prefixCls:u,type:g,icon:h},m),placement:"top",className:ce(g&&`${f}-${g}`,v,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),y),onClose:()=>{S==null||S(),w()}})),()=>{r(_)}))},o={open:a,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,d,f)=>{let m;u&&typeof u=="object"&&"content"in u?m=u:m={content:u};let h,g;typeof d=="function"?g=d:(h=d,g=f);const O=Object.assign(Object.assign({onClose:g,duration:h},m),{type:l});return a(O)};o[l]=c}),o},[]),p.createElement(jXe,Object.assign({key:"message-holder"},e,{ref:t}))]}function Oxe(e){return gxe(e)}function bxe(e,t){this.v=e,this.k=t}function ts(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}ts=function(o,s,l,c){function u(d,f){ts(o,d,function(m){return this._invoke(d,f,m)})}s?a?a(o,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):o[s]=l:(u("next",0),u("throw",1),u("return",2))},ts(e,t,n,r)}function hj(){/*! 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 i(m,h,g,O){var v=h&&h.prototype instanceof s?h:s,y=Object.create(v.prototype);return ts(y,"_invoke",(function(S,C,_){var w,T,A,k=0,I=_||[],M=!1,Q={p:0,n:0,v:e,a:F,f:F.bind(e,4),d:function(U,R){return w=U,T=0,A=e,Q.n=R,o}};function F(L,U){for(T=L,A=U,t=0;!M&&k&&!R&&t3?(R=z===U)&&(A=$[(T=$[4])?5:(T=3,3)],$[4]=$[5]=e):$[0]<=P&&((R=L<2&&P<$[1])?(T=0,Q.v=U,Q.n=$[1]):PU||U>z)&&($[4]=L,$[5]=U,Q.n=z,T=0))}if(R||L>1)return o;throw M=!0,U}return function(L,U,R){if(k>1)throw TypeError("Generator is already running");for(M&&U===1&&F(U,R),T=U,A=R;(t=T<2?e:A)||!M;){w||(T?T<3?(T>1&&(Q.n=-1),F(T,A)):Q.n=A:Q.v=A);try{if(k=2,w){if(T||(L="next"),t=w[L]){if(!(t=t.call(w,A)))throw TypeError("iterator result is not an object");if(!t.done)return t;A=t.value,T<2&&(T=0)}else T===1&&(t=w.return)&&t.call(w),T<2&&(A=TypeError("The iterator does not provide a '"+L+"' method"),T=1);w=e}else if((t=(M=Q.n<0)?A:S.call(C,Q))!==o)break}catch($){w=e,T=1,A=$}finally{k=1}}return{value:t,done:M}}})(m,g,O),!0),y}var o={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ts(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,c):(m.__proto__=c,ts(m,a,"GeneratorFunction")),m.prototype=Object.create(d),m}return l.prototype=c,ts(d,"constructor",c),ts(c,"constructor",l),l.displayName="GeneratorFunction",ts(c,a,"GeneratorFunction"),ts(d),ts(d,a,"Generator"),ts(d,r,function(){return this}),ts(d,"toString",function(){return"[object Generator]"}),(hj=function(){return{w:i,m:f}})()}function $$(e,t){function n(a,i,o,s){try{var l=e[a](i),c=l.value;return c instanceof bxe?t.resolve(c.v).then(function(u){n("next",u,o,s)},function(u){n("throw",u,o,s)}):t.resolve(c).then(function(u){l.value=u,o(l)},function(u){return n("throw",u,o,s)})}catch(u){s(u)}}var r;this.next||(ts($$.prototype),ts($$.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ts(this,"_invoke",function(a,i,o){function s(){return new t(function(l,c){n(a,o,l,c)})}return r=r?r.then(s,s):s()},!0)}function vxe(e,t,n,r,a){return new $$(hj().w(e,t,n,r),a||Promise)}function XXe(e,t,n,r,a){var i=vxe(e,t,n,r,a);return i.next().then(function(o){return o.done?o.value:i.next()})}function YXe(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 nre(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(Ut(e)+" is not iterable")}function da(){var e=hj(),t=e.m(da),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(o){var s=typeof o=="function"&&o.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function i(o){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return l(c.a,a[d],f)},delegateYield:function(d,f,m){return s.resultName=f,l(c.d,nre(d),m)},finish:function(d){return l(c.f,d)}},l=function(d,f,m){c.p=s.prev,c.n=s.next;try{return d(f,m)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return o.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(da=function(){return{wrap:function(l,c,u,d){return e.w(i(l),c,u,d&&d.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(l,c){return new bxe(l,c)},AsyncIterator:$$,async:function(l,c,u,d,f){return(r(c)?vxe:XXe)(i(l),c,u,d,f)},keys:YXe,values:nre}})()}function rre(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,a)}function $s(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(l){rre(i,r,a,o,s,"next",l)}function s(l){rre(i,r,a,o,s,"throw",l)}o(void 0)})}}var zE=se({},vFe),VXe=zE.version,N4=zE.render,qXe=zE.unmountComponentAtNode,ok;try{var WXe=Number((VXe||"").split(".")[0]);WXe>=18&&(ok=zE.createRoot)}catch{}function are(e){var t=zE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ut(t)==="object"&&(t.usingClientEntryPoint=e)}var R$="__rc_react_root__";function GXe(e,t){are(!0);var n=t[R$]||ok(t);are(!1),n.render(e),t[R$]=n}function HXe(e,t){N4==null||N4(e,t)}function ZXe(e,t){if(ok){GXe(e,t);return}HXe(e,t)}function KXe(e){return U7.apply(this,arguments)}function U7(){return U7=$s(da().mark(function e(t){return da().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[R$])===null||a===void 0||a.unmount(),delete t[R$]}));case 1:case"end":return r.stop()}},e)})),U7.apply(this,arguments)}function JXe(e){qXe(e)}function eYe(e){return j7.apply(this,arguments)}function j7(){return j7=$s(da().mark(function e(t){return da().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(ok===void 0){r.next=2;break}return r.abrupt("return",KXe(t));case 2:JXe(t);case 3:case"end":return r.stop()}},e)})),j7.apply(this,arguments)}const tYe=(e,t)=>(ZXe(e,t),()=>eYe(t));let nYe=tYe;function sk(e){return nYe}const I4=()=>({height:0,opacity:0}),ire=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},rYe=e=>({height:e?e.offsetHeight:0}),M4=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",p_=(e=f_)=>({motionName:`${e}-motion-collapse`,onAppearStart:I4,onEnterStart:I4,onAppearActive:ire,onEnterActive:ire,onLeaveStart:rYe,onLeaveActive:I4,onAppearEnd:M4,onEnterEnd:M4,onLeaveEnd:M4,motionDeadline:500}),cl=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function ga(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Tb=(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(),i=a.width,o=a.height;if(i||o)return!0}}return!1}),aYe=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(",")}}}}},iYe=BUe("Wave",aYe),lk=`${f_}-wave-target`;function oYe(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 sYe(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(oYe))!==null&&t!==void 0?t:null}function D4(e){return Number.isNaN(e)?0:e}const lYe=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,i=p.useRef(null),o=p.useRef(null);p.useEffect(()=>{o.current=a()},[]);const[s,l]=p.useState(null),[c,u]=p.useState([]),[d,f]=p.useState(0),[m,h]=p.useState(0),[g,O]=p.useState(0),[v,y]=p.useState(0),[S,C]=p.useState(!1),_={left:d,top:m,width:g,height:v,borderRadius:c.map(A=>`${A}px`).join(" ")};s&&(_["--wave-color"]=s);function w(){const A=getComputedStyle(n);l(sYe(n));const k=A.position==="static",{borderLeftWidth:I,borderTopWidth:M}=A;f(k?n.offsetLeft:D4(-Number.parseFloat(I))),h(k?n.offsetTop:D4(-Number.parseFloat(M))),O(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:Q,borderTopRightRadius:F,borderBottomLeftRadius:L,borderBottomRightRadius:U}=A;u([Q,F,U,L].map(R=>D4(Number.parseFloat(R))))}if(p.useEffect(()=>{if(n){const A=ur(()=>{w(),C(!0)});let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(w),k.observe(n)),()=>{ur.cancel(A),k==null||k.disconnect()}}},[n]),!S)return null;const T=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(lk));return p.createElement(ao,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(A,k)=>{var I,M;if(k.deadline||k.propertyName==="opacity"){const Q=(I=i.current)===null||I===void 0?void 0:I.parentElement;(M=o.current)===null||M===void 0||M.call(o).then(()=>{Q==null||Q.remove()})}return!1}},({className:A},k)=>p.createElement("div",{ref:Ci(i,k),className:ce(t,A,{"wave-quick":T}),style:_}))},cYe=(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 i=sk();let o=null;function s(){return o}o=i(p.createElement(lYe,Object.assign({},t,{target:e,registerUnmount:s})),a)},uYe=(e,t,n)=>{const{wave:r}=p.useContext(fn),[,a,i]=uo(),o=ar(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${lk}`)||u,{showEffect:f}=r||{};(f||cYe)(d,{className:t,token:a,component:n,event:c,hashId:i})}),s=p.useRef(null);return c=>{ur.cancel(s.current),s.current=ur(()=>{o(c)})}},BE=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=p.useContext(fn),i=p.useRef(null),o=a("wave"),[,s]=iYe(o),l=uYe(i,ce(o,s),r);if(Z.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==window.Node.ELEMENT_NODE||n)return;const d=f=>{!Tb(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")&&!u.className.includes("disabled:")||u.getAttribute("aria-disabled")==="true"||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!Z.isValidElement(t))return t??null;const c=fu(t)?Ci(fm(t),i):i;return wo(t,{ref:c})},Yi=e=>{const t=Z.useContext(Fh);return Z.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},dYe=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},fYe=Er(["Space","Compact"],e=>[dYe(e)],()=>({}),{resetStyle:!1});var yxe=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=p.useContext(ck),r=p.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:i,isLastItem:o}=n,s=a==="vertical"?"-vertical-":"-";return ce(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},pYe=e=>{const{children:t}=e;return p.createElement(ck.Provider,{value:null},t)},mYe=e=>{const{children:t}=e,n=yxe(e,["children"]);return p.createElement(ck.Provider,{value:p.useMemo(()=>n,[n])},t)},hYe=e=>{const{getPrefixCls:t,direction:n}=p.useContext(fn),{size:r,direction:a,block:i,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=yxe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Yi(S=>r??S),f=t("space-compact",o),[m,h]=fYe(f),g=ce(f,h,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:i,[`${f}-vertical`]:a==="vertical"},s,l),O=p.useContext(ck),v=To(c),y=p.useMemo(()=>v.map((S,C)=>{const _=(S==null?void 0:S.key)||`${f}-item-${C}`;return p.createElement(mYe,{key:_,compactSize:d,compactDirection:a,isFirstItem:C===0&&(!O||(O==null?void 0:O.isFirstItem)),isLastItem:C===v.length-1&&(!O||(O==null?void 0:O.isLastItem))},S)}),[v,O,a,d,f]);return v.length===0?null:m(p.createElement("div",Object.assign({className:g},u),y))};var gYe=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}=p.useContext(fn),{prefixCls:r,size:a,className:i}=e,o=gYe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=uo(),c=p.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),u=ce(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return p.createElement(Sxe.Provider,{value:a},p.createElement("div",Object.assign({},o,{className:u})))},ore=/^[\u4E00-\u9FA5]{2}$/,X7=ore.test.bind(ore);function _xe(e){return e==="danger"?{danger:!0}:{type:e}}function sre(e){return typeof e=="string"}function L4(e){return e==="text"||e==="link"}function bYe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&sre(e.type)&&X7(e.props.children)?wo(e,{children:e.props.children.split("").join(n)}):sre(e)?X7(e)?Z.createElement("span",null,e.split("").join(n)):Z.createElement("span",null,e):oxe(e)?Z.createElement("span",null,e):e}function vYe(e,t){let n=!1;const r=[];return Z.Children.forEach(e,a=>{const i=typeof a,o=i==="string"||i==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${a}`}else r.push(a);n=o}),Z.Children.map(r,a=>bYe(a,t))}["default","primary","danger"].concat(Ke(zp));const Exe=p.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:i}=e,o=ce(`${i}-icon`,n);return Z.createElement("span",{ref:t,className:o,style:r},a)}),lre=p.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:i}=e,o=ce(`${n}-loading-icon`,r);return Z.createElement(Exe,{prefixCls:n,className:o,style:a,ref:t},Z.createElement(mu,{className:i}))}),Q4=()=>({width:0,opacity:0,transform:"scale(0)"}),z4=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),yYe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:i,mount:o}=e,s=!!n;return r?Z.createElement(lre,{prefixCls:t,className:a,style:i}):Z.createElement(ao,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:Q4,onAppearActive:z4,onEnterStart:Q4,onEnterActive:z4,onLeaveStart:z4,onLeaveActive:Q4},({className:l,style:c},u)=>{const d=Object.assign(Object.assign({},i),c);return Z.createElement(lre,{prefixCls:t,className:ce(a,l),style:d,ref:u})})},cre=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),SYe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(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}},cre(`${t}-primary`,a),cre(`${t}-danger`,i)]}},bo=Math.round;function B4(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 ure=(e,t,n)=>n===0?e:e/100;function Yv(e,t){const n=t||255;return e>n?n:e<0?0:e}let xxe=class Txe{constructor(t){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof Txe)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=Yv(t.r),this.g=Yv(t.g),this.b=Yv(t.b),this.a=typeof t.a=="number"?Yv(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(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.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=bo(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,i=s=>(r[s]-this[s])*a+this[s],o={r:bo(i("r")),g:bo(i("g")),b:bo(i("b")),a:bo(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>bo((this[i]*this.a+n[i]*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 i=bo(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=bo(this.getSaturation()*100),r=bo(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]=Yv(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,i){return parseInt(n[a]+n[i||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 f=bo(r*255);this.r=f,this.g=f,this.b=f}let i=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,o=u):l>=1&&l<2?(i=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=r-c/2;this.r=bo((i+d)*255),this.g=bo((o+d)*255),this.b=bo((s+d)*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 i=bo(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=bo(r*(1-n)*255),u=bo(r*(1-n*l)*255),d=bo(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=B4(t,ure);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=B4(t,ure);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=B4(t,(r,a)=>a.includes("%")?bo(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var _Ye=["b"],EYe=["v"],F4=function(t){return Math.round(Number(t||0))},xYe=function(t){if(t instanceof xxe)return t;if(t&&Ut(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=on(n,_Ye);return se(se({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},m_=(function(e){dl(n,e);var t=Wl(n);function n(r){return Sa(this,n),t.call(this,xYe(r))}return _a(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),i=F4(a.s*100),o=F4(a.b*100),s=F4(a.h),l=a.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var a=this.toHsv(),i=a.v,o=on(a,EYe);return se(se({},o),{},{b:i,a:this.a})}}]),n})(xxe),TYe=function(t){return t instanceof m_?t:new m_(t)};TYe("#1677ff");const wYe=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",CYe=(e,t)=>e?wYe(e,t):"";let Y7=(function(){function e(t){Sa(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:i})=>({color:new e(a),percent:i})),this.metaColor=new m_(this.colors[0].color.metaColor)):this.metaColor=new m_(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return _a(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return CYe(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 i=n.colors[a];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])})();var $Ye={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"},RYe=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:$Ye}))},Bp=p.forwardRef(RYe);const uk=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},_)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},_),{padding:0,textAlign:"start"})}]},cYe=e=>({zIndexPopup:e.zIndexPopupBase+Lj+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Fxe=Er("Message",e=>{const t=nr(e,{height:150});return lYe(t)},cYe);var uYe=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);ap.createElement("div",{className:le(`${e}-custom-content`,`${e}-${t}`)},n||dYe[t],p.createElement("span",null,r)),fYe=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:i}=e,o=uYe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=p.useContext(pn),l=t||s("message"),c=Ua(l),[u,d,f]=Fxe(l,c);return u(p.createElement(Ij,Object.assign({},o,{prefixCls:l,className:le(n,d,`${l}-notice-pure-panel`,f,c),eventKey:"pure",duration:null,content:p.createElement(Uxe,{prefixCls:l,type:r,icon:a},i)})))};function pYe(e,t){return{motionName:t??`${e}-move-up`}}function Qj(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,i)=>n.then(a,i),r.promise=n,r}var mYe=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=Ua(t),[r,a,i]=Fxe(t,n);return r(p.createElement(Dxe,{classNames:{list:le(a,i,n)}},e))},bYe=(e,{prefixCls:t,key:n})=>p.createElement(OYe,{prefixCls:t,key:n},e),vYe=p.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:i,duration:o=gYe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:f,direction:m}=p.useContext(pn),h=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??hYe}),O=()=>le({[`${h}-rtl`]:s??m==="rtl"}),v=()=>pYe(h,l),y=p.createElement("span",{className:`${h}-close-x`},p.createElement(Gl,{className:`${h}-close-icon`})),[S,C]=Lxe({prefixCls:h,style:g,className:O,motion:v,closable:!1,closeIcon:y,duration:o,getContainer:()=>(a==null?void 0:a())||(d==null?void 0:d())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:bYe});return p.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:h,message:f})),C});let Tre=0;function jxe(e){const t=p.useRef(null);return $d(),[p.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},a=l=>{if(!t.current){const w=()=>{};return w.then=()=>{},w}const{open:c,prefixCls:u,message:d}=t.current,f=`${u}-notice`,{content:m,icon:h,type:g,key:O,className:v,style:y,onClose:S}=l,C=mYe(l,["content","icon","type","key","className","style","onClose"]);let _=O;return _==null&&(Tre+=1,_=`antd-message-${Tre}`),Qj(w=>(c(Object.assign(Object.assign({},C),{key:_,content:p.createElement(Uxe,{prefixCls:u,type:g,icon:h},m),placement:"top",className:le(g&&`${f}-${g}`,v,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),y),onClose:()=>{S==null||S(),w()}})),()=>{r(_)}))},o={open:a,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,d,f)=>{let m;u&&typeof u=="object"&&"content"in u?m=u:m={content:u};let h,g;typeof d=="function"?g=d:(h=d,g=f);const O=Object.assign(Object.assign({onClose:g,duration:h},m),{type:l});return a(O)};o[l]=c}),o},[]),p.createElement(vYe,Object.assign({key:"message-holder"},e,{ref:t}))]}function Xxe(e){return jxe(e)}function Yxe(e,t){this.v=e,this.k=t}function es(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}es=function(o,s,l,c){function u(d,f){es(o,d,function(m){return this._invoke(d,f,m)})}s?a?a(o,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):o[s]=l:(u("next",0),u("throw",1),u("return",2))},es(e,t,n,r)}function zj(){/*! 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 i(m,h,g,O){var v=h&&h.prototype instanceof s?h:s,y=Object.create(v.prototype);return es(y,"_invoke",(function(S,C,_){var w,T,k,A=0,I=_||[],M=!1,Q={p:0,n:0,v:e,a:B,f:B.bind(e,4),d:function(U,R){return w=U,T=0,k=e,Q.n=R,o}};function B(D,U){for(T=D,k=U,t=0;!M&&A&&!R&&t3?(R=z===U)&&(k=$[(T=$[4])?5:(T=3,3)],$[4]=$[5]=e):$[0]<=P&&((R=D<2&&P<$[1])?(T=0,Q.v=U,Q.n=$[1]):PU||U>z)&&($[4]=D,$[5]=U,Q.n=z,T=0))}if(R||D>1)return o;throw M=!0,U}return function(D,U,R){if(A>1)throw TypeError("Generator is already running");for(M&&U===1&&B(U,R),T=U,k=R;(t=T<2?e:k)||!M;){w||(T?T<3?(T>1&&(Q.n=-1),B(T,k)):Q.n=k:Q.v=k);try{if(A=2,w){if(T||(D="next"),t=w[D]){if(!(t=t.call(w,k)))throw TypeError("iterator result is not an object");if(!t.done)return t;k=t.value,T<2&&(T=0)}else T===1&&(t=w.return)&&t.call(w),T<2&&(k=TypeError("The iterator does not provide a '"+D+"' method"),T=1);w=e}else if((t=(M=Q.n<0)?k:S.call(C,Q))!==o)break}catch($){w=e,T=1,k=$}finally{A=1}}return{value:t,done:M}}})(m,g,O),!0),y}var o={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(es(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,c):(m.__proto__=c,es(m,a,"GeneratorFunction")),m.prototype=Object.create(d),m}return l.prototype=c,es(d,"constructor",c),es(c,"constructor",l),l.displayName="GeneratorFunction",es(c,a,"GeneratorFunction"),es(d),es(d,a,"Generator"),es(d,r,function(){return this}),es(d,"toString",function(){return"[object Generator]"}),(zj=function(){return{w:i,m:f}})()}function z$(e,t){function n(a,i,o,s){try{var l=e[a](i),c=l.value;return c instanceof Yxe?t.resolve(c.v).then(function(u){n("next",u,o,s)},function(u){n("throw",u,o,s)}):t.resolve(c).then(function(u){l.value=u,o(l)},function(u){return n("throw",u,o,s)})}catch(u){s(u)}}var r;this.next||(es(z$.prototype),es(z$.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),es(this,"_invoke",function(a,i,o){function s(){return new t(function(l,c){n(a,o,l,c)})}return r=r?r.then(s,s):s()},!0)}function Vxe(e,t,n,r,a){return new z$(zj().w(e,t,n,r),a||Promise)}function yYe(e,t,n,r,a){var i=Vxe(e,t,n,r,a);return i.next().then(function(o){return o.done?o.value:i.next()})}function SYe(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 wre(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(Xt(e)+" is not iterable")}function fa(){var e=zj(),t=e.m(fa),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(o){var s=typeof o=="function"&&o.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function i(o){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return l(c.a,a[d],f)},delegateYield:function(d,f,m){return s.resultName=f,l(c.d,wre(d),m)},finish:function(d){return l(c.f,d)}},l=function(d,f,m){c.p=s.prev,c.n=s.next;try{return d(f,m)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return o.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(fa=function(){return{wrap:function(l,c,u,d){return e.w(i(l),c,u,d&&d.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(l,c){return new Yxe(l,c)},AsyncIterator:z$,async:function(l,c,u,d,f){return(r(c)?Vxe:yYe)(i(l),c,u,d,f)},keys:SYe,values:wre}})()}function Cre(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,a)}function Cs(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var i=e.apply(t,n);function o(l){Cre(i,r,a,o,s,"next",l)}function s(l){Cre(i,r,a,o,s,"throw",l)}o(void 0)})}}var YE=oe({},GFe),_Ye=YE.version,Y4=YE.render,EYe=YE.unmountComponentAtNode,bk;try{var xYe=Number((_Ye||"").split(".")[0]);xYe>=18&&(bk=YE.createRoot)}catch{}function $re(e){var t=YE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Xt(t)==="object"&&(t.usingClientEntryPoint=e)}var B$="__rc_react_root__";function TYe(e,t){$re(!0);var n=t[B$]||bk(t);$re(!1),n.render(e),t[B$]=n}function wYe(e,t){Y4==null||Y4(e,t)}function CYe(e,t){if(bk){TYe(e,t);return}wYe(e,t)}function $Ye(e){return l9.apply(this,arguments)}function l9(){return l9=Cs(fa().mark(function e(t){return fa().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[B$])===null||a===void 0||a.unmount(),delete t[B$]}));case 1:case"end":return r.stop()}},e)})),l9.apply(this,arguments)}function RYe(e){EYe(e)}function PYe(e){return c9.apply(this,arguments)}function c9(){return c9=Cs(fa().mark(function e(t){return fa().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(bk===void 0){r.next=2;break}return r.abrupt("return",$Ye(t));case 2:RYe(t);case 3:case"end":return r.stop()}},e)})),c9.apply(this,arguments)}const kYe=(e,t)=>(CYe(e,t),()=>PYe(t));let AYe=kYe;function vk(e){return AYe}const V4=()=>({height:0,opacity:0}),Rre=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},NYe=e=>({height:e?e.offsetHeight:0}),q4=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",v_=(e=b_)=>({motionName:`${e}-motion-collapse`,onAppearStart:V4,onEnterStart:V4,onAppearActive:Rre,onEnterActive:Rre,onLeaveStart:NYe,onLeaveActive:V4,onAppearEnd:q4,onEnterEnd:q4,onLeaveEnd:q4,motionDeadline:500}),cl=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Oa(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const Pb=(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(),i=a.width,o=a.height;if(i||o)return!0}}return!1}),IYe=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(",")}}}}},MYe=gje("Wave",IYe),yk=`${b_}-wave-target`;function DYe(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 LYe(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:a}=getComputedStyle(e);return(t=[n,r,a].find(DYe))!==null&&t!==void 0?t:null}function W4(e){return Number.isNaN(e)?0:e}const QYe=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,i=p.useRef(null),o=p.useRef(null);p.useEffect(()=>{o.current=a()},[]);const[s,l]=p.useState(null),[c,u]=p.useState([]),[d,f]=p.useState(0),[m,h]=p.useState(0),[g,O]=p.useState(0),[v,y]=p.useState(0),[S,C]=p.useState(!1),_={left:d,top:m,width:g,height:v,borderRadius:c.map(k=>`${k}px`).join(" ")};s&&(_["--wave-color"]=s);function w(){const k=getComputedStyle(n);l(LYe(n));const A=k.position==="static",{borderLeftWidth:I,borderTopWidth:M}=k;f(A?n.offsetLeft:W4(-Number.parseFloat(I))),h(A?n.offsetTop:W4(-Number.parseFloat(M))),O(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:Q,borderTopRightRadius:B,borderBottomLeftRadius:D,borderBottomRightRadius:U}=k;u([Q,B,U,D].map(R=>W4(Number.parseFloat(R))))}if(p.useEffect(()=>{if(n){const k=ur(()=>{w(),C(!0)});let A;return typeof ResizeObserver<"u"&&(A=new ResizeObserver(w),A.observe(n)),()=>{ur.cancel(k),A==null||A.disconnect()}}},[n]),!S)return null;const T=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(yk));return p.createElement(ro,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(k,A)=>{var I,M;if(A.deadline||A.propertyName==="opacity"){const Q=(I=i.current)===null||I===void 0?void 0:I.parentElement;(M=o.current)===null||M===void 0||M.call(o).then(()=>{Q==null||Q.remove()})}return!1}},({className:k},A)=>p.createElement("div",{ref:Ci(i,A),className:le(t,k,{"wave-quick":T}),style:_}))},zYe=(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 i=vk();let o=null;function s(){return o}o=i(p.createElement(QYe,Object.assign({},t,{target:e,registerUnmount:s})),a)},BYe=(e,t,n)=>{const{wave:r}=p.useContext(pn),[,a,i]=co(),o=ar(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${yk}`)||u,{showEffect:f}=r||{};(f||zYe)(d,{className:t,token:a,component:n,event:c,hashId:i})}),s=p.useRef(null);return c=>{ur.cancel(s.current),s.current=ur(()=>{o(c)})}},VE=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=p.useContext(pn),i=p.useRef(null),o=a("wave"),[,s]=MYe(o),l=BYe(i,le(o,s),r);if(Z.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==window.Node.ELEMENT_NODE||n)return;const d=f=>{!Pb(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")&&!u.className.includes("disabled:")||u.getAttribute("aria-disabled")==="true"||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!Z.isValidElement(t))return t??null;const c=Ou(t)?Ci(bm(t),i):i;return To(t,{ref:c})},Xi=e=>{const t=Z.useContext(Wh);return Z.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},FYe=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},UYe=Er(["Space","Compact"],e=>[FYe(e)],()=>({}),{resetStyle:!1});var qxe=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=p.useContext(Sk),r=p.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:i,isLastItem:o}=n,s=a==="vertical"?"-vertical-":"-";return le(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},jYe=e=>{const{children:t}=e;return p.createElement(Sk.Provider,{value:null},t)},XYe=e=>{const{children:t}=e,n=qxe(e,["children"]);return p.createElement(Sk.Provider,{value:p.useMemo(()=>n,[n])},t)},YYe=e=>{const{getPrefixCls:t,direction:n}=p.useContext(pn),{size:r,direction:a,block:i,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=qxe(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Xi(S=>r??S),f=t("space-compact",o),[m,h]=UYe(f),g=le(f,h,{[`${f}-rtl`]:n==="rtl",[`${f}-block`]:i,[`${f}-vertical`]:a==="vertical"},s,l),O=p.useContext(Sk),v=xo(c),y=p.useMemo(()=>v.map((S,C)=>{const _=(S==null?void 0:S.key)||`${f}-item-${C}`;return p.createElement(XYe,{key:_,compactSize:d,compactDirection:a,isFirstItem:C===0&&(!O||(O==null?void 0:O.isFirstItem)),isLastItem:C===v.length-1&&(!O||(O==null?void 0:O.isLastItem))},S)}),[v,O,a,d,f]);return v.length===0?null:m(p.createElement("div",Object.assign({className:g},u),y))};var VYe=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}=p.useContext(pn),{prefixCls:r,size:a,className:i}=e,o=VYe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=co(),c=p.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),u=le(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return p.createElement(Wxe.Provider,{value:a},p.createElement("div",Object.assign({},o,{className:u})))},Pre=/^[\u4E00-\u9FA5]{2}$/,u9=Pre.test.bind(Pre);function Gxe(e){return e==="danger"?{danger:!0}:{type:e}}function kre(e){return typeof e=="string"}function G4(e){return e==="text"||e==="link"}function WYe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&kre(e.type)&&u9(e.props.children)?To(e,{children:e.props.children.split("").join(n)}):kre(e)?u9(e)?Z.createElement("span",null,e.split("").join(n)):Z.createElement("span",null,e):Nxe(e)?Z.createElement("span",null,e):e}function GYe(e,t){let n=!1;const r=[];return Z.Children.forEach(e,a=>{const i=typeof a,o=i==="string"||i==="number";if(n&&o){const s=r.length-1,l=r[s];r[s]=`${l}${a}`}else r.push(a);n=o}),Z.Children.map(r,a=>WYe(a,t))}["default","primary","danger"].concat(et(Vp));const Hxe=p.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:i}=e,o=le(`${i}-icon`,n);return Z.createElement("span",{ref:t,className:o,style:r},a)}),Are=p.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:i}=e,o=le(`${n}-loading-icon`,r);return Z.createElement(Hxe,{prefixCls:n,className:o,style:a,ref:t},Z.createElement(vu,{className:i}))}),H4=()=>({width:0,opacity:0,transform:"scale(0)"}),Z4=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),HYe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:i,mount:o}=e,s=!!n;return r?Z.createElement(Are,{prefixCls:t,className:a,style:i}):Z.createElement(ro,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:H4,onAppearActive:Z4,onEnterStart:H4,onEnterActive:Z4,onLeaveStart:Z4,onLeaveActive:H4},({className:l,style:c},u)=>{const d=Object.assign(Object.assign({},i),c);return Z.createElement(Are,{prefixCls:t,className:le(a,l),style:d,ref:u})})},Nre=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),ZYe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(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}},Nre(`${t}-primary`,a),Nre(`${t}-danger`,i)]}},Oo=Math.round;function K4(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 Ire=(e,t,n)=>n===0?e:e/100;function Hv(e,t){const n=t||255;return e>n?n:e<0?0:e}let Zxe=class Kxe{constructor(t){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof Kxe)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=Hv(t.r),this.g=Hv(t.g),this.b=Hv(t.b),this.a=typeof t.a=="number"?Hv(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(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.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=Oo(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,i=s=>(r[s]-this[s])*a+this[s],o={r:Oo(i("r")),g:Oo(i("g")),b:Oo(i("b")),a:Oo(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>Oo((this[i]*this.a+n[i]*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 i=Oo(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Oo(this.getSaturation()*100),r=Oo(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]=Hv(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,i){return parseInt(n[a]+n[i||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 f=Oo(r*255);this.r=f,this.g=f,this.b=f}let i=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,o=u):l>=1&&l<2?(i=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const d=r-c/2;this.r=Oo((i+d)*255),this.g=Oo((o+d)*255),this.b=Oo((s+d)*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 i=Oo(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=Oo(r*(1-n)*255),u=Oo(r*(1-n*l)*255),d=Oo(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=K4(t,Ire);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=K4(t,Ire);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=K4(t,(r,a)=>a.includes("%")?Oo(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var KYe=["b"],JYe=["v"],J4=function(t){return Math.round(Number(t||0))},eVe=function(t){if(t instanceof Zxe)return t;if(t&&Xt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=ln(n,KYe);return oe(oe({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},y_=(function(e){dl(n,e);var t=Wl(n);function n(r){return _a(this,n),t.call(this,eVe(r))}return Ea(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),i=J4(a.s*100),o=J4(a.b*100),s=J4(a.h),l=a.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var a=this.toHsv(),i=a.v,o=ln(a,JYe);return oe(oe({},o),{},{b:i,a:this.a})}}]),n})(Zxe),tVe=function(t){return t instanceof y_?t:new y_(t)};tVe("#1677ff");const nVe=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",rVe=(e,t)=>e?nVe(e,t):"";let d9=(function(){function e(t){_a(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:i})=>({color:new e(a),percent:i})),this.metaColor=new y_(this.colors[0].color.metaColor)):this.metaColor=new y_(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Ea(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return rVe(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 i=n.colors[a];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])})();var aVe={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"},iVe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:aVe}))},qp=p.forwardRef(iVe);const _k=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`}}}),PYe=e=>({animationDuration:e,animationFillMode:"both"}),kYe=e=>({animationDuration:e,animationFillMode:"both"}),dk=(e,t,n,r,a=!1)=>{const i=a?"&":"";return{[` + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),oVe=e=>({animationDuration:e,animationFillMode:"both"}),sVe=e=>({animationDuration:e,animationFillMode:"both"}),Ek=(e,t,n,r,a=!1)=>{const i=a?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear - `]:Object.assign(Object.assign({},PYe(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},kYe(r)),{animationPlayState:"paused"}),[` + `]:Object.assign(Object.assign({},oVe(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},sVe(r)),{animationPlayState:"paused"}),[` ${i}${e}-enter${e}-enter-active, ${i}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},AYe=new kr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),NYe=new kr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),gj=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[dk(r,AYe,NYe,e.motionDurationMid,t),{[` + `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},lVe=new kr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),cVe=new kr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Bj=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[Ek(r,lVe,cVe,e.motionDurationMid,t),{[` ${a}${r}-enter, ${a}${r}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},IYe=new kr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),MYe=new kr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),DYe=new kr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),LYe=new kr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),QYe=new kr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zYe=new kr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),BYe=new kr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),FYe=new kr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),UYe={"move-up":{inKeyframes:BYe,outKeyframes:FYe},"move-down":{inKeyframes:IYe,outKeyframes:MYe},"move-left":{inKeyframes:DYe,outKeyframes:LYe},"move-right":{inKeyframes:QYe,outKeyframes:zYe}},X0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=UYe[t];return[dk(r,a,i,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},uVe=new kr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dVe=new kr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),fVe=new kr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pVe=new kr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mVe=new kr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hVe=new kr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),gVe=new kr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),OVe=new kr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),bVe={"move-up":{inKeyframes:gVe,outKeyframes:OVe},"move-down":{inKeyframes:uVe,outKeyframes:dVe},"move-left":{inKeyframes:fVe,outKeyframes:pVe},"move-right":{inKeyframes:mVe,outKeyframes:hVe}},G0=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=bVe[t];return[Ek(r,a,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},fk=new kr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),pk=new kr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),mk=new kr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),hk=new kr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),jYe=new kr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),XYe=new kr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),YYe=new kr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),VYe=new kr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),qYe={"slide-up":{inKeyframes:fk,outKeyframes:pk},"slide-down":{inKeyframes:mk,outKeyframes:hk},"slide-left":{inKeyframes:jYe,outKeyframes:XYe},"slide-right":{inKeyframes:YYe,outKeyframes:VYe}},fd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=qYe[t];return[dk(r,a,i,e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},xk=new kr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Tk=new kr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),wk=new kr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ck=new kr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vVe=new kr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),yVe=new kr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),SVe=new kr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),_Ve=new kr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),EVe={"slide-up":{inKeyframes:xk,outKeyframes:Tk},"slide-down":{inKeyframes:wk,outKeyframes:Ck},"slide-left":{inKeyframes:vVe,outKeyframes:yVe},"slide-right":{inKeyframes:SVe,outKeyframes:_Ve}},bd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=EVe[t];return[Ek(r,a,i,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}}]},Oj=new kr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),WYe=new kr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),dre=new kr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),fre=new kr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),GYe=new kr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),HYe=new kr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ZYe=new kr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),KYe=new kr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),JYe=new kr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),eVe=new kr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),tVe=new kr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),nVe=new kr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),rVe={zoom:{inKeyframes:Oj,outKeyframes:WYe},"zoom-big":{inKeyframes:dre,outKeyframes:fre},"zoom-big-fast":{inKeyframes:dre,outKeyframes:fre},"zoom-left":{inKeyframes:ZYe,outKeyframes:KYe},"zoom-right":{inKeyframes:JYe,outKeyframes:eVe},"zoom-up":{inKeyframes:GYe,outKeyframes:HYe},"zoom-down":{inKeyframes:tVe,outKeyframes:nVe}},wb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=rVe[t];return[dk(r,a,i,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}}]},Fj=new kr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xVe=new kr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Mre=new kr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Dre=new kr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),TVe=new kr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),wVe=new kr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),CVe=new kr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$Ve=new kr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),RVe=new kr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),PVe=new kr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),kVe=new kr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),AVe=new kr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),NVe={zoom:{inKeyframes:Fj,outKeyframes:xVe},"zoom-big":{inKeyframes:Mre,outKeyframes:Dre},"zoom-big-fast":{inKeyframes:Mre,outKeyframes:Dre},"zoom-left":{inKeyframes:CVe,outKeyframes:$Ve},"zoom-right":{inKeyframes:RVe,outKeyframes:PVe},"zoom-up":{inKeyframes:TVe,outKeyframes:wVe},"zoom-down":{inKeyframes:kVe,outKeyframes:AVe}},kb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:i}=NVe[t];return[Ek(r,a,i,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}}]},aVe=e=>e instanceof Y7?e:new Y7(e),iVe=(e,t)=>{const{r:n,g:r,b:a,a:i}=e.toRgb(),o=new m_(e.toRgbString()).onBackground(t).toHsv();return i<=.5?o.v>.5:n*.299+r*.587+a*.114>192},wxe=e=>{const{paddingInline:t,onlyIconSize:n}=e;return nr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Cxe=e=>{var t,n,r,a,i,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(a=e.contentLineHeight)!==null&&a!==void 0?a:f2(s),d=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:f2(l),f=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:f2(c),m=iVe(new Y7(e.colorBgSolid),"#fff")?"#000":"#fff",h=zp.reduce((g,O)=>Object.assign(Object.assign({},g),{[`${O}ShadowColor`]:`0 ${de(e.controlOutlineWidth)} 0 ${Xy(e[`${O}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:m,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)})},oVe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:i,motionEaseInOut:o,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${de(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`]:_b(),"> a":{color:"currentColor"},"&:not(:disabled)":Ul(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(c=>`${c} ${i} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},$xe=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),sVe=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),lVe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),gk=(e,t,n,r,a,i,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},$xe(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:i||void 0}})}),cVe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},lVe(e))}),uVe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ok=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?uVe:cVe;return Object.assign(Object.assign({},i(e)),$xe(e.componentCls,t,n))},bk=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Ok(e,r,a))}),vk=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Ok(e,r,a))}),yk=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Sk=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Ok(e,n,r))}),pd=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Ok(e,r,a,n))}),dVe=e=>{const{componentCls:t}=e;return zp.reduce((n,r)=>{const a=e[`${r}6`],i=e[`${r}1`],o=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=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`]},bk(e,e.colorTextLightSolid,a,{background:o},{background:c})),vk(e,a,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),yk(e)),Sk(e,i,{color:a,background:s},{color:a,background:l})),pd(e,a,"link",{color:o},{color:c})),pd(e,a,"text",{color:o,background:i},{color:c,background:l}))})},{})},fVe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},bk(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),yk(e)),Sk(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),gk(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),pd(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),pVe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},vk(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),yk(e)),Sk(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),pd(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),pd(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),gk(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),mVe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},bk(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),vk(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),yk(e)),Sk(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),pd(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),pd(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),gk(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hVe=e=>Object.assign(Object.assign({},pd(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),gk(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),gVe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:fVe(e),[`${t}-color-primary`]:pVe(e),[`${t}-color-dangerous`]:mVe(e),[`${t}-color-link`]:hVe(e)},dVe(e))},OVe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},vk(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),pd(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),bk(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),pd(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bj=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:i,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:a,height:r,padding:`${de(l)} ${de(o)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:sVe(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},bVe=e=>{const t=nr(e,{fontSize:e.contentFontSize});return bj(t,e.componentCls)},vVe=e=>{const t=nr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return bj(t,`${e.componentCls}-sm`)},yVe=e=>{const t=nr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return bj(t,`${e.componentCls}-lg`)},SVe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},_Ve=Er("Button",e=>{const t=wxe(e);return[oVe(t),bVe(t),vVe(t),yVe(t),SVe(t),gVe(t),OVe(t),SYe(t)]},Cxe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function EVe(e,t,n,r){const{focusElCls:a,focus:i,borderElCls:o}=n,s=o?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function xVe(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 Cb(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,i=`${a}-compact`;return{[i]:Object.assign(Object.assign({},EVe(e,i,t,a)),xVe(a,i,t))}}function TVe(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 wVe(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 CVe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},TVe(e,t,e.componentCls)),wVe(e.componentCls,t))}}const $Ve=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,i=a(r).mul(-1).equal(),o=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},o()),o(!0))},RVe=mg(["Button","compact"],e=>{const t=wxe(e);return[Cb(t),CVe(t),$Ve(t)]},Cxe);var PVe=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:i,color:o,variant:s,type:l,danger:c=!1,shape:u,size:d,styles:f,disabled:m,className:h,rootClassName:g,children:O,icon:v,iconPosition:y="start",ghost:S=!1,block:C=!1,htmlType:_="button",classNames:w,style:T={},autoInsertSpace:A,autoFocus:k}=e,I=PVe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=l||"default",{button:Q}=Z.useContext(fn),F=u||(Q==null?void 0:Q.shape)||"default",[L,U]=p.useMemo(()=>{if(o&&s)return[o,s];if(l||c){const Te=AVe[M]||[];return c?["danger",Te[1]]:Te}return Q!=null&&Q.color&&(Q!=null&&Q.variant)?[Q.color,Q.variant]:["default","outlined"]},[o,s,l,c,Q==null?void 0:Q.color,Q==null?void 0:Q.variant,M]),$=L==="danger"?"dangerous":L,{getPrefixCls:P,direction:z,autoInsertSpace:B,className:D,style:X,classNames:Y,styles:q}=$i("button"),H=(n=A??B)!==null&&n!==void 0?n:!0,J=P("btn",i),[te,ne,ie]=_Ve(J),le=p.useContext(Xo),ue=m??le,oe=p.useContext(Sxe),ge=p.useMemo(()=>kVe(a),[a]),[ve,he]=p.useState(ge.loading),[me,xe]=p.useState(!1),we=p.useRef(null),Qe=Sd(t,we),Ie=p.Children.count(O)===1&&!v&&!L4(U),Ee=p.useRef(!0);Z.useEffect(()=>(Ee.current=!1,()=>{Ee.current=!0}),[]),tr(()=>{let Te=null;ge.delay>0?Te=setTimeout(()=>{Te=null,he(!0)},ge.delay):he(ge.loading);function Ue(){Te&&(clearTimeout(Te),Te=null)}return Ue},[ge.delay,ge.loading]),p.useEffect(()=>{if(!we.current||!H)return;const Te=we.current.textContent||"";Ie&&X7(Te)?me||xe(!0):me&&xe(!1)}),p.useEffect(()=>{k&&we.current&&we.current.focus()},[]);const De=Z.useCallback(Te=>{var Ue;if(ve||ue){Te.preventDefault();return}(Ue=e.onClick)===null||Ue===void 0||Ue.call(e,("href"in e,Te))},[e.onClick,ve,ue]),{compactSize:Le,compactItemClassnames:Ne}=xd(J,z),et={large:"lg",small:"sm",middle:void 0},He=Yi(Te=>{var Ue,rt;return(rt=(Ue=d??Le)!==null&&Ue!==void 0?Ue:oe)!==null&&rt!==void 0?rt:Te}),pt=He&&(r=et[He])!==null&&r!==void 0?r:"",lt=ve?"loading":v,it=ga(I,["navigate"]),ut=ce(J,ne,ie,{[`${J}-${F}`]:F!=="default"&&F,[`${J}-${M}`]:M,[`${J}-dangerous`]:c,[`${J}-color-${$}`]:$,[`${J}-variant-${U}`]:U,[`${J}-${pt}`]:pt,[`${J}-icon-only`]:!O&&O!==0&&!!lt,[`${J}-background-ghost`]:S&&!L4(U),[`${J}-loading`]:ve,[`${J}-two-chinese-chars`]:me&&H&&!ve,[`${J}-block`]:C,[`${J}-rtl`]:z==="rtl",[`${J}-icon-end`]:y==="end"},Ne,h,g,D),We=Object.assign(Object.assign({},X),T),Me=ce(w==null?void 0:w.icon,Y.icon),Ge=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),q.icon||{}),ze=Te=>Z.createElement(Exe,{prefixCls:J,className:Me,style:Ge},Te),qe=()=>Z.createElement(yYe,{existIcon:!!v,prefixCls:J,loading:ve,mount:Ee.current});let Pe;v&&!ve?Pe=ze(v):a&&typeof a=="object"&&a.icon?Pe=ze(a.icon):Pe=qe();const Ae=O||O===0?vYe(O,Ie&&H):null;if(it.href!==void 0)return te(Z.createElement("a",Object.assign({},it,{className:ce(ut,{[`${J}-disabled`]:ue}),href:ue?void 0:it.href,style:We,onClick:De,ref:Qe,tabIndex:ue?-1:0,"aria-disabled":ue}),Pe,Ae));let Oe=Z.createElement("button",Object.assign({},I,{type:_,className:ut,style:We,onClick:De,disabled:ue,ref:Qe}),Pe,Ae,Ne&&Z.createElement(RVe,{prefixCls:J}));return L4(U)||(Oe=Z.createElement(BE,{component:"Button",disabled:ve},Oe)),te(Oe)}),Ur=NVe;Ur.Group=OYe;Ur.__ANT_BUTTON=!0;const U4=e=>typeof(e==null?void 0:e.then)=="function",Rxe=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:i,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=p.useRef(!1),f=p.useRef(null),[m,h]=Uh(!1),g=(...y)=>{i==null||i.apply(void 0,y)};p.useEffect(()=>{let y=null;return o&&(y=setTimeout(()=>{var S;(S=f.current)===null||S===void 0||S.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[o]);const O=y=>{U4(y)&&(h(!0),y.then((...S)=>{h(!1,!0),g.apply(void 0,S),d.current=!1},S=>{if(h(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(S)}))},v=y=>{if(d.current)return;if(d.current=!0,!u){g();return}let S;if(s){if(S=u(y),c&&!U4(S)){d.current=!1,g(y);return}}else if(u.length)S=u(i),d.current=!1;else if(S=u(),!U4(S)){g();return}O(S)};return p.createElement(Ur,Object.assign({},_xe(t),{onClick:v,loading:m,prefixCls:r},a,{ref:f}),n)},FE=Z.createContext({}),{Provider:Pxe}=FE,pre=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:i,close:o,onCancel:s,onConfirm:l}=p.useContext(FE);return a?Z.createElement(Rxe,{isSilent:r,actionFn:s,close:(...c)=>{o==null||o.apply(void 0,c),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},mre=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:i,okType:o,onConfirm:s,onOk:l}=p.useContext(FE);return Z.createElement(Rxe,{isSilent:n,type:o||"primary",actionFn:l,close:(...c)=>{t==null||t.apply(void 0,c),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},i)};var kxe=p.createContext(null),hre=[];function IVe(e,t){var n=p.useState(function(){if(!xo())return null;var h=document.createElement("div");return h}),r=be(n,1),a=r[0],i=p.useRef(!1),o=p.useContext(kxe),s=p.useState(hre),l=be(s,2),c=l[0],u=l[1],d=o||(i.current?void 0:function(h){u(function(g){var O=[h].concat(Ke(g));return O})});function f(){a.parentElement||document.body.appendChild(a),i.current=!0}function m(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),i.current=!1}return tr(function(){return e?o?o(f):f():m(),m},[e]),tr(function(){c.length&&(c.forEach(function(h){return h()}),u(hre))},[c]),[a,d]}var j4;function Axe(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,i;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";ff(` + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},IVe=e=>e instanceof d9?e:new d9(e),MVe=(e,t)=>{const{r:n,g:r,b:a,a:i}=e.toRgb(),o=new y_(e.toRgbString()).onBackground(t).toHsv();return i<=.5?o.v>.5:n*.299+r*.587+a*.114>192},Jxe=e=>{const{paddingInline:t,onlyIconSize:n}=e;return nr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},eTe=e=>{var t,n,r,a,i,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(a=e.contentLineHeight)!==null&&a!==void 0?a:y2(s),d=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:y2(l),f=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:y2(c),m=MVe(new d9(e.colorBgSolid),"#fff")?"#000":"#fff",h=Vp.reduce((g,O)=>Object.assign(Object.assign({},g),{[`${O}ShadowColor`]:`0 ${de(e.controlOutlineWidth)} 0 ${Zy(e[`${O}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:m,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)})},DVe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:i,motionEaseInOut:o,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${de(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`]:Cb(),"> a":{color:"currentColor"},"&:not(:disabled)":Ul(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(c=>`${c} ${i} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},tTe=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),LVe=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),QVe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),$k=(e,t,n,r,a,i,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},tTe(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:i||void 0}})}),zVe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},QVe(e))}),BVe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Rk=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?BVe:zVe;return Object.assign(Object.assign({},i(e)),tTe(e.componentCls,t,n))},Pk=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Rk(e,r,a))}),kk=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Rk(e,r,a))}),Ak=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Nk=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Rk(e,n,r))}),vd=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Rk(e,r,a,n))}),FVe=e=>{const{componentCls:t}=e;return Vp.reduce((n,r)=>{const a=e[`${r}6`],i=e[`${r}1`],o=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=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`]},Pk(e,e.colorTextLightSolid,a,{background:o},{background:c})),kk(e,a,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),Ak(e)),Nk(e,i,{color:a,background:s},{color:a,background:l})),vd(e,a,"link",{color:o},{color:c})),vd(e,a,"text",{color:o,background:i},{color:c,background:l}))})},{})},UVe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Pk(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Ak(e)),Nk(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),$k(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),vd(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),jVe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},kk(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Ak(e)),Nk(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),vd(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),vd(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),$k(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),XVe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Pk(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),kk(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ak(e)),Nk(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),vd(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),vd(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),$k(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),YVe=e=>Object.assign(Object.assign({},vd(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),$k(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),VVe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:UVe(e),[`${t}-color-primary`]:jVe(e),[`${t}-color-dangerous`]:XVe(e),[`${t}-color-link`]:YVe(e)},FVe(e))},qVe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},kk(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),vd(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Pk(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),vd(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Uj=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:i,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:a,height:r,padding:`${de(l)} ${de(o)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:LVe(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},WVe=e=>{const t=nr(e,{fontSize:e.contentFontSize});return Uj(t,e.componentCls)},GVe=e=>{const t=nr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Uj(t,`${e.componentCls}-sm`)},HVe=e=>{const t=nr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Uj(t,`${e.componentCls}-lg`)},ZVe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},KVe=Er("Button",e=>{const t=Jxe(e);return[DVe(t),WVe(t),GVe(t),HVe(t),ZVe(t),VVe(t),qVe(t),ZYe(t)]},eTe,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function JVe(e,t,n,r){const{focusElCls:a,focus:i,borderElCls:o}=n,s=o?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function eqe(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 Ab(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,a=r||n,i=`${a}-compact`;return{[i]:Object.assign(Object.assign({},JVe(e,i,t,a)),eqe(a,i,t))}}function tqe(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 nqe(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 rqe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},tqe(e,t,e.componentCls)),nqe(e.componentCls,t))}}const aqe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,i=a(r).mul(-1).equal(),o=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},o()),o(!0))},iqe=_g(["Button","compact"],e=>{const t=Jxe(e);return[Ab(t),rqe(t),aqe(t)]},eTe);var oqe=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:i,color:o,variant:s,type:l,danger:c=!1,shape:u,size:d,styles:f,disabled:m,className:h,rootClassName:g,children:O,icon:v,iconPosition:y="start",ghost:S=!1,block:C=!1,htmlType:_="button",classNames:w,style:T={},autoInsertSpace:k,autoFocus:A}=e,I=oqe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=l||"default",{button:Q}=Z.useContext(pn),B=u||(Q==null?void 0:Q.shape)||"default",[D,U]=p.useMemo(()=>{if(o&&s)return[o,s];if(l||c){const we=lqe[M]||[];return c?["danger",we[1]]:we}return Q!=null&&Q.color&&(Q!=null&&Q.variant)?[Q.color,Q.variant]:["default","outlined"]},[o,s,l,c,Q==null?void 0:Q.color,Q==null?void 0:Q.variant,M]),$=D==="danger"?"dangerous":D,{getPrefixCls:P,direction:z,autoInsertSpace:F,className:L,style:X,classNames:Y,styles:q}=$i("button"),G=(n=k??F)!==null&&n!==void 0?n:!0,ee=P("btn",i),[K,ne,ie]=KVe(ee),se=p.useContext(jo),ue=m??se,ce=p.useContext(Wxe),be=p.useMemo(()=>sqe(a),[a]),[ge,Oe]=p.useState(be.loading),[me,Te]=p.useState(!1),Ce=p.useRef(null),Fe=Cd(t,Ce),Me=p.Children.count(O)===1&&!v&&!G4(U),Ee=p.useRef(!0);Z.useEffect(()=>(Ee.current=!1,()=>{Ee.current=!0}),[]),tr(()=>{let we=null;be.delay>0?we=setTimeout(()=>{we=null,Oe(!0)},be.delay):Oe(be.loading);function Xe(){we&&(clearTimeout(we),we=null)}return Xe},[be.delay,be.loading]),p.useEffect(()=>{if(!Ce.current||!G)return;const we=Ce.current.textContent||"";Me&&u9(we)?me||Te(!0):me&&Te(!1)}),p.useEffect(()=>{A&&Ce.current&&Ce.current.focus()},[]);const Le=Z.useCallback(we=>{var Xe;if(ge||ue){we.preventDefault();return}(Xe=e.onClick)===null||Xe===void 0||Xe.call(e,("href"in e,we))},[e.onClick,ge,ue]),{compactSize:ze,compactItemClassnames:Qe}=Pd(ee,z),Je={large:"lg",small:"sm",middle:void 0},He=Xi(we=>{var Xe,rt;return(rt=(Xe=d??ze)!==null&&Xe!==void 0?Xe:ce)!==null&&rt!==void 0?rt:we}),gt=He&&(r=Je[He])!==null&&r!==void 0?r:"",st=ge?"loading":v,lt=Oa(I,["navigate"]),pt=le(ee,ne,ie,{[`${ee}-${B}`]:B!=="default"&&B,[`${ee}-${M}`]:M,[`${ee}-dangerous`]:c,[`${ee}-color-${$}`]:$,[`${ee}-variant-${U}`]:U,[`${ee}-${gt}`]:gt,[`${ee}-icon-only`]:!O&&O!==0&&!!st,[`${ee}-background-ghost`]:S&&!G4(U),[`${ee}-loading`]:ge,[`${ee}-two-chinese-chars`]:me&&G&&!ge,[`${ee}-block`]:C,[`${ee}-rtl`]:z==="rtl",[`${ee}-icon-end`]:y==="end"},Qe,h,g,L),Ze=Object.assign(Object.assign({},X),T),De=le(w==null?void 0:w.icon,Y.icon),Ke=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),q.icon||{}),Be=we=>Z.createElement(Hxe,{prefixCls:ee,className:De,style:Ke},we),We=()=>Z.createElement(HYe,{existIcon:!!v,prefixCls:ee,loading:ge,mount:Ee.current});let Re;v&&!ge?Re=Be(v):a&&typeof a=="object"&&a.icon?Re=Be(a.icon):Re=We();const Ie=O||O===0?GYe(O,Me&&G):null;if(lt.href!==void 0)return K(Z.createElement("a",Object.assign({},lt,{className:le(pt,{[`${ee}-disabled`]:ue}),href:ue?void 0:lt.href,style:Ze,onClick:Le,ref:Fe,tabIndex:ue?-1:0,"aria-disabled":ue}),Re,Ie));let ve=Z.createElement("button",Object.assign({},I,{type:_,className:pt,style:Ze,onClick:Le,disabled:ue,ref:Fe}),Re,Ie,Qe&&Z.createElement(iqe,{prefixCls:ee}));return G4(U)||(ve=Z.createElement(VE,{component:"Button",disabled:ge},ve)),K(ve)}),Ur=cqe;Ur.Group=qYe;Ur.__ANT_BUTTON=!0;const e5=e=>typeof(e==null?void 0:e.then)=="function",nTe=e=>{const{type:t,children:n,prefixCls:r,buttonProps:a,close:i,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=p.useRef(!1),f=p.useRef(null),[m,h]=Gh(!1),g=(...y)=>{i==null||i.apply(void 0,y)};p.useEffect(()=>{let y=null;return o&&(y=setTimeout(()=>{var S;(S=f.current)===null||S===void 0||S.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[o]);const O=y=>{e5(y)&&(h(!0),y.then((...S)=>{h(!1,!0),g.apply(void 0,S),d.current=!1},S=>{if(h(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(S)}))},v=y=>{if(d.current)return;if(d.current=!0,!u){g();return}let S;if(s){if(S=u(y),c&&!e5(S)){d.current=!1,g(y);return}}else if(u.length)S=u(i),d.current=!1;else if(S=u(),!e5(S)){g();return}O(S)};return p.createElement(Ur,Object.assign({},Gxe(t),{onClick:v,loading:m,prefixCls:r},a,{ref:f}),n)},qE=Z.createContext({}),{Provider:rTe}=qE,Lre=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:a,rootPrefixCls:i,close:o,onCancel:s,onConfirm:l}=p.useContext(qE);return a?Z.createElement(nTe,{isSilent:r,actionFn:s,close:(...c)=>{o==null||o.apply(void 0,c),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},Qre=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:a,okTextLocale:i,okType:o,onConfirm:s,onOk:l}=p.useContext(qE);return Z.createElement(nTe,{isSilent:n,type:o||"primary",actionFn:l,close:(...c)=>{t==null||t.apply(void 0,c),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${a}-btn`},i)};var aTe=p.createContext(null),zre=[];function uqe(e,t){var n=p.useState(function(){if(!Eo())return null;var h=document.createElement("div");return h}),r=ye(n,1),a=r[0],i=p.useRef(!1),o=p.useContext(aTe),s=p.useState(zre),l=ye(s,2),c=l[0],u=l[1],d=o||(i.current?void 0:function(h){u(function(g){var O=[h].concat(et(g));return O})});function f(){a.parentElement||document.body.appendChild(a),i.current=!0}function m(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),i.current=!1}return tr(function(){return e?o?o(f):f():m(),m},[e]),tr(function(){c.length&&(c.forEach(function(h){return h()}),u(zre))},[c]),[a,d]}var t5;function iTe(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,i;if(e){var o=getComputedStyle(e);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";bf(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(d,` -}`),t)}catch(h){console.error(h),a=l,i=c}}document.body.appendChild(n);var f=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,m=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),o_(t),{width:f,height:m}}function gre(e){return typeof document>"u"?0:(j4===void 0&&(j4=Axe()),j4.width)}function V7(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Axe(e)}function MVe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var DVe="rc-util-locker-".concat(Date.now()),Ore=0;function LVe(e){var t=!!e,n=p.useState(function(){return Ore+=1,"".concat(DVe,"_").concat(Ore)}),r=be(n,1),a=r[0];tr(function(){if(t){var i=V7(document.body).width,o=MVe();ff(` +}`),t)}catch(h){console.error(h),a=l,i=c}}document.body.appendChild(n);var f=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,m=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),f_(t),{width:f,height:m}}function Bre(e){return typeof document>"u"?0:(t5===void 0&&(t5=iTe()),t5.width)}function f9(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:iTe(e)}function dqe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var fqe="rc-util-locker-".concat(Date.now()),Fre=0;function pqe(e){var t=!!e,n=p.useState(function(){return Fre+=1,"".concat(fqe,"_").concat(Fre)}),r=ye(n,1),a=r[0];tr(function(){if(t){var i=f9(document.body).width,o=dqe();bf(` html body { overflow-y: hidden; `.concat(o?"width: calc(100% - ".concat(i,"px);"):"",` -}`),a)}else o_(a);return function(){o_(a)}},[t,a])}var QVe=!1;function zVe(e){return QVe}var bre=function(t){return t===!1?!1:!xo()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},UE=p.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var i=e.autoDestroy,o=i===void 0?!0:i,s=e.children,l=p.useState(n),c=be(l,2),u=c[0],d=c[1],f=u||n;p.useEffect(function(){(o||n)&&d(n)},[n,o]);var m=p.useState(function(){return bre(a)}),h=be(m,2),g=h[0],O=h[1];p.useEffect(function(){var M=bre(a);O(M??null)});var v=IVe(f&&!g),y=be(v,2),S=y[0],C=y[1],_=g??S;LVe(r&&n&&xo()&&(_===S||_===document.body));var w=null;if(s&&fu(s)&&t){var T=s;w=T.ref}var A=Sd(w,t);if(!f||!xo()||g===void 0)return null;var k=_===!1||zVe(),I=s;return t&&(I=p.cloneElement(s,{ref:A})),p.createElement(kxe.Provider,{value:C},k?I:Fl.createPortal(I,_))}),Nxe=p.createContext({});function BVe(){var e=se({},D0);return e.useId}var vre=0,yre=BVe();const $b=yre?(function(t){var n=yre();return t||n}):(function(t){var n=p.useState("ssr-id"),r=be(n,2),a=r[0],i=r[1];return p.useEffect(function(){var o=vre;vre+=1,i("rc_unique_".concat(o))},[]),t||a});function Sre(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function _re(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 FVe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=_re(a),n.top+=_re(a,!0),n}const UVe=p.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var jVe={width:0,height:0,overflow:"hidden",outline:"none"},XVe={outline:"none"},Ixe=Z.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,m=e.bodyProps,h=e.modalRender,g=e.onMouseDown,O=e.onMouseUp,v=e.holderRef,y=e.visible,S=e.forceRender,C=e.width,_=e.height,w=e.classNames,T=e.styles,A=Z.useContext(Nxe),k=A.panel,I=Sd(v,k),M=p.useRef(),Q=p.useRef();Z.useImperativeHandle(t,function(){return{focus:function(){var X;(X=M.current)===null||X===void 0||X.focus({preventScroll:!0})},changeActive:function(X){var Y=document,q=Y.activeElement;X&&q===Q.current?M.current.focus({preventScroll:!0}):!X&&q===M.current&&Q.current.focus({preventScroll:!0})}}});var F={};C!==void 0&&(F.width=C),_!==void 0&&(F.height=_);var L=s?Z.createElement("div",{className:ce("".concat(n,"-footer"),w==null?void 0:w.footer),style:se({},T==null?void 0:T.footer)},s):null,U=i?Z.createElement("div",{className:ce("".concat(n,"-header"),w==null?void 0:w.header),style:se({},T==null?void 0:T.header)},Z.createElement("div",{className:"".concat(n,"-title"),id:o},i)):null,R=p.useMemo(function(){return Ut(l)==="object"&&l!==null?l:l?{closeIcon:c??Z.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),$=bi(R,!0),P=Ut(l)==="object"&&l.disabled,z=l?Z.createElement("button",Re({type:"button",onClick:u,"aria-label":"Close"},$,{className:"".concat(n,"-close"),disabled:P}),R.closeIcon):null,B=Z.createElement("div",{className:ce("".concat(n,"-content"),w==null?void 0:w.content),style:T==null?void 0:T.content},z,U,Z.createElement("div",Re({className:ce("".concat(n,"-body"),w==null?void 0:w.body),style:se(se({},f),T==null?void 0:T.body)},m),d),L);return Z.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?o:null,"aria-modal":"true",ref:I,style:se(se({},a),F),className:ce(n,r),onMouseDown:g,onMouseUp:O},Z.createElement("div",{ref:M,tabIndex:0,style:XVe},Z.createElement(UVe,{shouldUpdate:y||S},h?h(B):B)),Z.createElement("div",{tabIndex:0,ref:Q,style:jVe}))}),Mxe=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,i=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,m=p.useRef(),h=p.useState(),g=be(h,2),O=g[0],v=g[1],y={};O&&(y.transformOrigin=O);function S(){var C=FVe(m.current);v(f&&(f.x||f.y)?"".concat(f.x-C.left,"px ").concat(f.y-C.top,"px"):"")}return p.createElement(ao,{visible:o,onVisibleChanged:d,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:c,removeOnLeave:l,ref:m},function(C,_){var w=C.className,T=C.style;return p.createElement(Ixe,Re({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:_,style:se(se(se({},T),a),y),className:ce(i,w)}))})});Mxe.displayName="Content";var YVe=function(t){var n=t.prefixCls,r=t.style,a=t.visible,i=t.maskProps,o=t.motionName,s=t.className;return p.createElement(ao,{key:"mask",visible:a,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,d=l.style;return p.createElement("div",Re({ref:c,style:se(se({},d),r),className:ce("".concat(n,"-mask"),u,s)},i))})},VVe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,i=t.visible,o=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,d=t.wrapStyle,f=t.wrapClassName,m=t.wrapProps,h=t.onClose,g=t.afterOpenChange,O=t.afterClose,v=t.transitionName,y=t.animation,S=t.closable,C=S===void 0?!0:S,_=t.mask,w=_===void 0?!0:_,T=t.maskTransitionName,A=t.maskAnimation,k=t.maskClosable,I=k===void 0?!0:k,M=t.maskStyle,Q=t.maskProps,F=t.rootClassName,L=t.classNames,U=t.styles,R=p.useRef(),$=p.useRef(),P=p.useRef(),z=p.useState(o),B=be(z,2),D=B[0],X=B[1],Y=$b();function q(){f7($.current,document.activeElement)||(R.current=document.activeElement)}function H(){if(!f7($.current,document.activeElement)){var he;(he=P.current)===null||he===void 0||he.focus()}}function J(he){if(he)H();else{if(X(!1),w&&R.current&&u){try{R.current.focus({preventScroll:!0})}catch{}R.current=null}D&&(O==null||O())}g==null||g(he)}function te(he){h==null||h(he)}var ne=p.useRef(!1),ie=p.useRef(),le=function(){clearTimeout(ie.current),ne.current=!0},ue=function(){ie.current=setTimeout(function(){ne.current=!1})},oe=null;I&&(oe=function(me){ne.current?ne.current=!1:$.current===me.target&&te(me)});function ge(he){if(l&&he.keyCode===Vt.ESC){he.stopPropagation(),te(he);return}o&&he.keyCode===Vt.TAB&&P.current.changeActive(!he.shiftKey)}p.useEffect(function(){o&&(X(!0),q())},[o]),p.useEffect(function(){return function(){clearTimeout(ie.current)}},[]);var ve=se(se(se({zIndex:a},d),U==null?void 0:U.wrapper),{},{display:D?null:"none"});return p.createElement("div",Re({className:ce("".concat(r,"-root"),F)},bi(t,{data:!0})),p.createElement(YVe,{prefixCls:r,visible:w&&o,motionName:Sre(r,T,A),style:se(se({zIndex:a},M),U==null?void 0:U.mask),maskProps:Q,className:L==null?void 0:L.mask}),p.createElement("div",Re({tabIndex:-1,onKeyDown:ge,className:ce("".concat(r,"-wrap"),f,L==null?void 0:L.wrapper),ref:$,onClick:oe,style:ve},m),p.createElement(Mxe,Re({},t,{onMouseDown:le,onMouseUp:ue,ref:P,closable:C,ariaId:Y,prefixCls:r,visible:o&&D,onClose:te,onVisibleChanged:J,motionName:Sre(r,v,y)}))))},vj=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,i=t.destroyOnClose,o=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=p.useState(n),u=be(c,2),d=u[0],f=u[1],m=p.useMemo(function(){return{panel:l}},[l]);return p.useEffect(function(){n&&f(!0)},[n]),!a&&o&&!d?null:p.createElement(Nxe.Provider,{value:m},p.createElement(UE,{open:n||a||d,autoDestroy:!1,getContainer:r,autoLock:n||d},p.createElement(VVe,Re({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),f(!1)}}))))};vj.displayName="Dialog";var ph="RC_FORM_INTERNAL_HOOKS",Aa=function(){Ma(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},jh=p.createContext({getFieldValue:Aa,getFieldsValue:Aa,getFieldError:Aa,getFieldWarning:Aa,getFieldsError:Aa,isFieldsTouched:Aa,isFieldTouched:Aa,isFieldValidating:Aa,isFieldsValidating:Aa,resetFields:Aa,setFields:Aa,setFieldValue:Aa,setFieldsValue:Aa,validateFields:Aa,submit:Aa,getInternalHooks:function(){return Aa(),{dispatch:Aa,initEntityValue:Aa,registerField:Aa,useSubscribe:Aa,setInitialValues:Aa,destroyForm:Aa,setCallbacks:Aa,registerWatch:Aa,getFields:Aa,setValidateMessages:Aa,setPreserve:Aa,getInitialValue:Aa}}}),h_=p.createContext(null);function q7(e){return e==null?[]:Array.isArray(e)?e:[e]}function qVe(e){return e&&!!e._init}function W7(){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 G7=W7();function WVe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function GVe(e,t,n){if(ZP())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&Q0(a,n.prototype),a}function H7(e){var t=typeof Map=="function"?new Map:void 0;return H7=function(r){if(r===null||!WVe(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 GVe(r,arguments,Qh(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Q0(a,r)},H7(e)}var HVe=/%[sdj%]/g,ZVe=function(){};function Z7(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 Nl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return s;switch(s){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 s}});return o}return e}function KVe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function io(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||KVe(t)&&typeof e=="string"&&!e)}function JVe(e,t,n){var r=[],a=0,i=e.length;function o(s){r.push.apply(r,Ke(s||[])),a++,a===i&&n(r)}e.forEach(function(s){t(s,o)})}function Ere(e,t,n){var r=0,a=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,st.max?a.push(Nl(i.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&a.push(Nl(i.messages[d].range,t.fullField,t.min,t.max))},Dxe=function(t,n,r,a,i,o){t.required&&(!r.hasOwnProperty(t.field)||io(n,o||t.type))&&a.push(Nl(i.messages.required,t.fullField))},nw;const sqe=(function(){if(nw)return nw;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(a.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(o).concat(t(w),")"),"g")};u.v4=function(_){return _&&_.exact?l:new RegExp("".concat(t(_)).concat(n).concat(t(_)),"g")},u.v6=function(_){return _&&_.exact?c:new RegExp("".concat(t(_)).concat(o).concat(t(_)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",O="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',C="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(m,"|").concat(h,"|").concat(g).concat(O).concat(v,")").concat(y).concat(S);return nw=new RegExp("(?:^".concat(C,"$)"),"i"),nw});var X4={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},Yy={integer:function(t){return Yy.number(t)&&parseInt(t,10)===t},float:function(t){return Yy.number(t)&&!Yy.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 Ut(t)==="object"&&!Yy.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(X4.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(X4.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(sqe())},hex:function(t){return typeof t=="string"&&!!t.match(X4.hex)}},lqe=function(t,n,r,a,i){if(t.required&&n===void 0){Dxe(t,n,r,a,i);return}var o=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?Yy[s](n)||a.push(Nl(i.messages.types[s],t.fullField,t.type)):s&&Ut(n)!==t.type&&a.push(Nl(i.messages.types[s],t.fullField,t.type))},cqe=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(Nl(i.messages.whitespace,t.fullField))};const ea={required:Dxe,whitespace:cqe,type:lqe,range:oqe,enum:aqe,pattern:iqe};var uqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n)&&!t.required)return r();ea.required(t,n,a,o,i)}r(o)},dqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();ea.required(t,n,a,o,i,"array"),n!=null&&(ea.type(t,n,a,o,i),ea.range(t,n,a,o,i))}r(o)},fqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n)&&!t.required)return r();ea.required(t,n,a,o,i),n!==void 0&&ea.type(t,n,a,o,i)}r(o)},pqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n,"date")&&!t.required)return r();if(ea.required(t,n,a,o,i),!io(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),ea.type(t,l,a,o,i),l&&ea.range(t,l.getTime(),a,o,i)}}r(o)},mqe="enum",hqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n)&&!t.required)return r();ea.required(t,n,a,o,i),n!==void 0&&ea[mqe](t,n,a,o,i)}r(o)},gqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n)&&!t.required)return r();ea.required(t,n,a,o,i),n!==void 0&&(ea.type(t,n,a,o,i),ea.range(t,n,a,o,i))}r(o)},Oqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n)&&!t.required)return r();ea.required(t,n,a,o,i),n!==void 0&&(ea.type(t,n,a,o,i),ea.range(t,n,a,o,i))}r(o)},bqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n)&&!t.required)return r();ea.required(t,n,a,o,i),n!==void 0&&ea.type(t,n,a,o,i)}r(o)},vqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),io(n)&&!t.required)return r();ea.required(t,n,a,o,i),n!==void 0&&(ea.type(t,n,a,o,i),ea.range(t,n,a,o,i))}r(o)},yqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n)&&!t.required)return r();ea.required(t,n,a,o,i),n!==void 0&&ea.type(t,n,a,o,i)}r(o)},Sqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n,"string")&&!t.required)return r();ea.required(t,n,a,o,i),io(n,"string")||ea.pattern(t,n,a,o,i)}r(o)},_qe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n)&&!t.required)return r();ea.required(t,n,a,o,i),io(n)||ea.type(t,n,a,o,i)}r(o)},Eqe=function(t,n,r,a,i){var o=[],s=Array.isArray(n)?"array":Ut(n);ea.required(t,n,a,o,i,s),r(o)},xqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(io(n,"string")&&!t.required)return r();ea.required(t,n,a,o,i,"string"),io(n,"string")||(ea.type(t,n,a,o,i),ea.range(t,n,a,o,i),ea.pattern(t,n,a,o,i),t.whitespace===!0&&ea.whitespace(t,n,a,o,i))}r(o)},rw=function(t,n,r,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(io(n,o)&&!t.required)return r();ea.required(t,n,a,s,i,o),io(n,o)||ea.type(t,n,a,s,i)}r(s)};const ES={string:xqe,method:bqe,number:vqe,boolean:fqe,regexp:_qe,integer:Oqe,float:gqe,array:dqe,object:yqe,enum:hqe,pattern:Sqe,date:pqe,url:rw,hex:rw,email:rw,tel:rw,required:Eqe,any:uqe};var jE=(function(){function e(t){Sa(this,e),ae(this,"rules",null),ae(this,"_messages",G7),this.define(t)}return _a(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ut(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var i=n[a];r.rules[a]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=wre(W7(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=a,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(h){var g=[],O={};function v(S){if(Array.isArray(S)){var C;g=(C=g).concat.apply(C,Ke(S))}else g.push(S)}for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:[],A=Array.isArray(T)?T:[T];!s.suppressWarning&&A.length&&e.warning("async-validator:",A),A.length&&O.message!==void 0&&O.message!==null&&(A=[].concat(O.message));var k=A.map(Tre(O,o));if(s.first&&k.length)return m[O.field]=1,g(k);if(!v)g(k);else{if(O.required&&!h.value)return O.message!==void 0?k=[].concat(O.message).map(Tre(O,o)):s.error&&(k=[s.error(O,Nl(s.messages.required,O.field))]),g(k);var I={};O.defaultField&&Object.keys(h.value).map(function(F){I[F]=O.defaultField}),I=se(se({},I),h.rule.fields);var M={};Object.keys(I).forEach(function(F){var L=I[F],U=Array.isArray(L)?L:[L];M[F]=U.map(y.bind(null,F))});var Q=new e(M);Q.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),Q.validate(h.value,h.rule.options||s,function(F){var L=[];k&&k.length&&L.push.apply(L,Ke(k)),F&&F.length&&L.push.apply(L,Ke(F)),g(L.length?L:null)})}}var C;if(O.asyncValidator)C=O.asyncValidator(O,h.value,S,h.source,s);else if(O.validator){try{C=O.validator(O,h.value,S,h.source,s)}catch(T){var _,w;(_=(w=console).error)===null||_===void 0||_.call(w,T),s.suppressValidatorError||setTimeout(function(){throw T},0),S(T.message)}C===!0?S():C===!1?S(typeof O.message=="function"?O.message(O.fullField||O.field):O.message||"".concat(O.fullField||O.field," fails")):C instanceof Array?S(C):C instanceof Error&&S(C.message)}C&&C.then&&C.then(function(){return S()},function(T){return S(T)})},function(h){c(h)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ES.hasOwnProperty(n.type))throw new Error(Nl("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"?ES.required:ES[this.getType(n)]||void 0}}]),e})();ae(jE,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ES[t]=n});ae(jE,"warning",ZVe);ae(jE,"messages",G7);ae(jE,"validators",ES);var yl="'${name}' is not a valid ${type}",Lxe={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:yl,method:yl,array:yl,object:yl,number:yl,date:yl,boolean:yl,integer:yl,float:yl,regexp:yl,email:yl,url:yl,hex:yl},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}"}},Cre=jE;function Tqe(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 $re="CODE_LOGIC_ERROR";function K7(e,t,n,r,a){return J7.apply(this,arguments)}function J7(){return J7=$s(da().mark(function e(t,n,r,a,i){var o,s,l,c,u,d,f,m,h;return da().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return o=se({},r),delete o.ruleIndex,Cre.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(v){return console.error(v),Promise.reject($re)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new Cre(ae({},t,[o])),u=qO(Lxe,a.validateMessages),c.messages(u),d=[],O.prev=10,O.next=13,Promise.resolve(c.validate(ae({},t,n),se({},a)));case 13:O.next=18;break;case 15:O.prev=15,O.t0=O.catch(10),O.t0.errors&&(d=O.t0.errors.map(function(v,y){var S=v.message,C=S===$re?u.default:S;return p.isValidElement(C)?p.cloneElement(C,{key:"error_".concat(y)}):C}));case 18:if(!(!d.length&&l&&Array.isArray(n)&&n.length>0)){O.next=23;break}return O.next=21,Promise.all(n.map(function(v,y){return K7("".concat(t,".").concat(y),v,l,a,i)}));case 21:return f=O.sent,O.abrupt("return",f.reduce(function(v,y){return[].concat(Ke(v),Ke(y))},[]));case 23:return m=se(se({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=d.map(function(v){return typeof v=="string"?Tqe(v,m):v}),O.abrupt("return",h);case 26:case"end":return O.stop()}},e,null,[[10,15]])})),J7.apply(this,arguments)}function wqe(e,t,n,r,a,i){var o=e.join("."),s=n.map(function(u,d){var f=u.validator,m=se(se({},u),{},{ruleIndex:d});return f&&(m.validator=function(h,g,O){var v=!1,y=function(){for(var _=arguments.length,w=new Array(_),T=0;T<_;T++)w[T]=arguments[T];Promise.resolve().then(function(){Ma(!v,"Your validator function has already return a promise. `callback` will be ignored."),v||O.apply(void 0,w)})},S=f(h,g,y);v=S&&typeof S.then=="function"&&typeof S.catch=="function",Ma(v,"`callback` is deprecated. Please return a promise instead."),v&&S.then(function(){O()}).catch(function(C){O(C||" ")})}),m}).sort(function(u,d){var f=u.warningOnly,m=u.ruleIndex,h=d.warningOnly,g=d.ruleIndex;return!!f==!!h?m-g:f?1:-1}),l;if(a===!0)l=new Promise((function(){var u=$s(da().mark(function d(f,m){var h,g,O;return da().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Qxe(t,r,n)})}function Qxe(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 Rqe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ut(e)!=="object"||Ut(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Ke(a).every(function(i){var o=e[i],s=t[i];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function Pqe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ut(t.target)==="object"&&e in t.target?t.target[e]:t}function Pre(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],i=t-n;return i>0?[].concat(Ke(e.slice(0,n)),[a],Ke(e.slice(n,t)),Ke(e.slice(t+1,r))):i<0?[].concat(Ke(e.slice(0,t)),Ke(e.slice(t+1,n+1)),[a],Ke(e.slice(n+1,r))):e}var kqe=["name"],lc=[];function Y4(e,t,n,r,a,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==a}var yj=(function(e){dl(n,e);var t=Wl(n);function n(r){var a;if(Sa(this,n),a=t.call(this,r),ae(Yt(a),"state",{resetCount:0}),ae(Yt(a),"cancelRegisterFunc",null),ae(Yt(a),"mounted",!1),ae(Yt(a),"touched",!1),ae(Yt(a),"dirty",!1),ae(Yt(a),"validatePromise",void 0),ae(Yt(a),"prevValidating",void 0),ae(Yt(a),"errors",lc),ae(Yt(a),"warnings",lc),ae(Yt(a),"cancelRegister",function(){var l=a.props,c=l.preserve,u=l.isListField,d=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(u,c,Pi(d)),a.cancelRegisterFunc=null}),ae(Yt(a),"getNamePath",function(){var l=a.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(Ke(f),Ke(c)):[]}),ae(Yt(a),"getRules",function(){var l=a.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),ae(Yt(a),"refresh",function(){a.mounted&&a.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ae(Yt(a),"metaCache",null),ae(Yt(a),"triggerMetaEvent",function(l){var c=a.props.onMetaChange;if(c){var u=se(se({},a.getMeta()),{},{destroy:l});Bl(a.metaCache,u)||c(u),a.metaCache=u}else a.metaCache=null}),ae(Yt(a),"onStoreChange",function(l,c,u){var d=a.props,f=d.shouldUpdate,m=d.dependencies,h=m===void 0?[]:m,g=d.onReset,O=u.store,v=a.getNamePath(),y=a.getValue(l),S=a.getValue(O),C=c&&c0(c,v);switch(u.type==="valueUpdate"&&u.source==="external"&&!Bl(y,S)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=lc,a.warnings=lc,a.triggerMetaEvent()),u.type){case"reset":if(!c||C){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=lc,a.warnings=lc,a.triggerMetaEvent(),g==null||g(),a.refresh();return}break;case"remove":{if(f&&Y4(f,l,O,y,S,u)){a.reRender();return}break}case"setField":{var _=u.data;if(C){"touched"in _&&(a.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(a.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(a.errors=_.errors||lc),"warnings"in _&&(a.warnings=_.warnings||lc),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in _&&c0(c,v,!0)){a.reRender();return}if(f&&!v.length&&Y4(f,l,O,y,S,u)){a.reRender();return}break}case"dependenciesUpdate":{var w=h.map(Pi);if(w.some(function(T){return c0(u.relatedFields,T)})){a.reRender();return}break}default:if(C||(!h.length||v.length||f)&&Y4(f,l,O,y,S,u)){a.reRender();return}break}f===!0&&a.reRender()}),ae(Yt(a),"validateRules",function(l){var c=a.getNamePath(),u=a.getValue(),d=l||{},f=d.triggerName,m=d.validateOnly,h=m===void 0?!1:m,g=Promise.resolve().then($s(da().mark(function O(){var v,y,S,C,_,w,T;return da().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(a.mounted){k.next=2;break}return k.abrupt("return",[]);case 2:if(v=a.props,y=v.validateFirst,S=y===void 0?!1:y,C=v.messageVariables,_=v.validateDebounce,w=a.getRules(),f&&(w=w.filter(function(I){return I}).filter(function(I){var M=I.validateTrigger;if(!M)return!0;var Q=q7(M);return Q.includes(f)})),!(_&&f)){k.next=10;break}return k.next=8,new Promise(function(I){setTimeout(I,_)});case 8:if(a.validatePromise===g){k.next=10;break}return k.abrupt("return",[]);case 10:return T=wqe(c,u,w,l,S,C),T.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lc;if(a.validatePromise===g){var M;a.validatePromise=null;var Q=[],F=[];(M=I.forEach)===null||M===void 0||M.call(I,function(L){var U=L.rule.warningOnly,R=L.errors,$=R===void 0?lc:R;U?F.push.apply(F,Ke($)):Q.push.apply(Q,Ke($))}),a.errors=Q,a.warnings=F,a.triggerMetaEvent(),a.reRender()}}),k.abrupt("return",T);case 13:case"end":return k.stop()}},O)})));return h||(a.validatePromise=g,a.dirty=!0,a.errors=lc,a.warnings=lc,a.triggerMetaEvent(),a.reRender()),g}),ae(Yt(a),"isFieldValidating",function(){return!!a.validatePromise}),ae(Yt(a),"isFieldTouched",function(){return a.touched}),ae(Yt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,c=l.getInternalHooks(ph),u=c.getInitialValue;return u(a.getNamePath())!==void 0}),ae(Yt(a),"getErrors",function(){return a.errors}),ae(Yt(a),"getWarnings",function(){return a.warnings}),ae(Yt(a),"isListField",function(){return a.props.isListField}),ae(Yt(a),"isList",function(){return a.props.isList}),ae(Yt(a),"isPreserve",function(){return a.props.preserve}),ae(Yt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),ae(Yt(a),"getOnlyChild",function(l){if(typeof l=="function"){var c=a.getMeta();return se(se({},a.getOnlyChild(l(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var u=To(l);return u.length!==1||!p.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ae(Yt(a),"getValue",function(l){var c=a.props.fieldContext.getFieldsValue,u=a.getNamePath();return Cs(l||c(!0),u)}),ae(Yt(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,u=c.name,d=c.trigger,f=c.validateTrigger,m=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,O=c.getValueProps,v=c.fieldContext,y=f!==void 0?f:v.validateTrigger,S=a.getNamePath(),C=v.getInternalHooks,_=v.getFieldsValue,w=C(ph),T=w.dispatch,A=a.getValue(),k=O||function(L){return ae({},g,L)},I=l[d],M=u!==void 0?k(A):{},Q=se(se({},l),M);Q[d]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var L,U=arguments.length,R=new Array(U),$=0;$=0&&I<=M.length?(u.keys=[].concat(Ke(u.keys.slice(0,I)),[u.id],Ke(u.keys.slice(I))),S([].concat(Ke(M.slice(0,I)),[k],Ke(M.slice(I))))):(u.keys=[].concat(Ke(u.keys),[u.id]),S([].concat(Ke(M),[k]))),u.id+=1},remove:function(k){var I=_(),M=new Set(Array.isArray(k)?k:[k]);M.size<=0||(u.keys=u.keys.filter(function(Q,F){return!M.has(F)}),S(I.filter(function(Q,F){return!M.has(F)})))},move:function(k,I){if(k!==I){var M=_();k<0||k>=M.length||I<0||I>=M.length||(u.keys=Pre(u.keys,k,I),S(Pre(M,k,I)))}}},T=y||[];return Array.isArray(T)||(T=[]),r(T.map(function(A,k){var I=u.keys[k];return I===void 0&&(u.keys[k]=u.id,I=u.keys[k],u.id+=1),{name:k,key:I,isListField:!0}}),w,O)})))}function Aqe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,i){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),a(r))})})}):Promise.resolve([])}var Bxe="__@field_split__";function V4(e){return e.map(function(t){return"".concat(Ut(t),":").concat(t)}).join(Bxe)}var sO=(function(){function e(){Sa(this,e),ae(this,"kvs",new Map)}return _a(e,[{key:"set",value:function(n,r){this.kvs.set(V4(n),r)}},{key:"get",value:function(n){return this.kvs.get(V4(n))}},{key:"update",value:function(n,r){var a=this.get(n),i=r(a);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(V4(n))}},{key:"map",value:function(n){return Ke(this.kvs.entries()).map(function(r){var a=be(r,2),i=a[0],o=a[1],s=i.split(Bxe);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=be(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,i=r.value;return n[a.join(".")]=i,null}),n}}]),e})(),Nqe=["name"],Iqe=_a(function e(t){var n=this;Sa(this,e),ae(this,"formHooked",!1),ae(this,"forceRootUpdate",void 0),ae(this,"subscribable",!0),ae(this,"store",{}),ae(this,"fieldEntities",[]),ae(this,"initialValues",{}),ae(this,"callbacks",{}),ae(this,"validateMessages",null),ae(this,"preserve",null),ae(this,"lastValidatePromise",null),ae(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}}),ae(this,"getInternalHooks",function(r){return r===ph?(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}):(Ma(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ae(this,"useSubscribe",function(r){n.subscribable=r}),ae(this,"prevWithoutPreserves",null),ae(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var i,o=qO(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;o=hc(o,l,Cs(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),ae(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new sO;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||a.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),ae(this,"getInitialValue",function(r){var a=Cs(n.initialValues,r);return r.length?qO(a):a}),ae(this,"setCallbacks",function(r){n.callbacks=r}),ae(this,"setValidateMessages",function(r){n.validateMessages=r}),ae(this,"setPreserve",function(r){n.preserve=r}),ae(this,"watchList",[]),ae(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),ae(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(a,i,r)})}}),ae(this,"timeoutId",null),ae(this,"warningUnhooked",function(){}),ae(this,"updateStore",function(r){n.store=r}),ae(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}),ae(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new sO;return n.getFieldEntities(r).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),ae(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(i){var o=Pi(i);return a.get(o)||{INVALIDATE_NAME_PATH:Pi(i)}})}),ae(this,"getFieldsValue",function(r,a){n.warningUnhooked();var i,o,s;if(r===!0||Array.isArray(r)?(i=r,o=a):r&&Ut(r)==="object"&&(s=r.strict,o=r.filter),i===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var d,f,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,g;if((h=(g=u).isList)!==null&&h!==void 0&&h.call(g))return}else if(!i&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!o)c.push(m);else{var O="getMeta"in u?u.getMeta():null;o(O)&&c.push(m)}}),Rre(n.store,c.map(Pi))}),ae(this,"getFieldValue",function(r){n.warningUnhooked();var a=Pi(r);return Cs(n.store,a)}),ae(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(i,o){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Pi(r[o]),errors:[],warnings:[]}})}),ae(this,"getFieldError",function(r){n.warningUnhooked();var a=Pi(r),i=n.getFieldsError([a])[0];return i.errors}),ae(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Pi(r),i=n.getFieldsError([a])[0];return i.warnings}),ae(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},a=new sO,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=a.get(u)||new Set;d.add({entity:l,value:c}),a.set(u,d)}});var o=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),m=n.getInitialValue(f);if(m!==void 0)Ma(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=a.get(f);if(h&&h.size>1)Ma(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var g=n.getFieldValue(f),O=u.isListField();!O&&(!r.skipExist||g===void 0)&&n.updateStore(hc(n.store,f,Ke(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=a.get(l);if(c){var u;(u=s).push.apply(u,Ke(Ke(c).map(function(d){return d.entity})))}})):s=i,o(s)}),ae(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(qO(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Pi);i.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(hc(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(a,i,{type:"reset"}),n.notifyWatch(i)}),ae(this,"setFields",function(r){n.warningUnhooked();var a=n.store,i=[];r.forEach(function(o){var s=o.name,l=on(o,Nqe),c=Pi(s);i.push(c),"value"in l&&n.updateStore(hc(n.store,c,l.value)),n.notifyObservers(a,[c],{type:"setField",data:o})}),n.notifyWatch(i)}),ae(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(i){var o=i.getNamePath(),s=i.getMeta(),l=se(se({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),ae(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var i=r.getNamePath(),o=Cs(n.store,i);o===void 0&&n.updateStore(hc(n.store,i,a))}}),ae(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),ae(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==c&&n.fieldEntities.every(function(d){return!Qxe(d.getNamePath(),a)})){var u=n.store;n.updateStore(hc(u,a,c,!0)),n.notifyObservers(u,[a],{type:"remove"}),n.triggerDependenciesUpdate(u,a)}}n.notifyWatch([a])}}),ae(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,i=r.value;n.updateValue(a,i);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),ae(this,"notifyObservers",function(r,a,i){if(n.subscribable){var o=se(se({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,a,o)})}else n.forceRootUpdate()}),ae(this,"triggerDependenciesUpdate",function(r,a){var i=n.getDependencyChildrenFields(a);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[a].concat(Ke(i))}),i}),ae(this,"updateValue",function(r,a){var i=Pi(r),o=n.store;n.updateStore(hc(n.store,i,a)),n.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(o,i),l=n.callbacks.onValuesChange;if(l){var c=Rre(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ke(s)))}),ae(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var i=qO(n.store,r);n.updateStore(i)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ae(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),ae(this,"getDependencyChildrenFields",function(r){var a=new Set,i=[],o=new sO;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Pi(u);o.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(d){if(!a.has(d)){a.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(i.push(f),l(f))}})};return s(r),i}),ae(this,"triggerOnFieldsChange",function(r,a){var i=n.callbacks.onFieldsChange;if(i){var o=n.getFields();if(a){var s=new sO;a.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return c0(r,u)});l.length&&i(l,o)}}),ae(this,"validateFields",function(r,a){n.warningUnhooked();var i,o;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(i=r,o=a):o=r;var s=!!i,l=s?i.map(Pi):[],c=[],u=String(Date.now()),d=new Set,f=o||{},m=f.recursive,h=f.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var S=y.getNamePath();if(d.add(S.join(u)),!s||c0(l,S,m)){var C=y.validateRules(se({validateMessages:se(se({},Lxe),n.validateMessages)},o));c.push(C.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(_){var w,T=[],A=[];return(w=_.forEach)===null||w===void 0||w.call(_,function(k){var I=k.rule.warningOnly,M=k.errors;I?A.push.apply(A,Ke(M)):T.push.apply(T,Ke(M))}),T.length?Promise.reject({name:S,errors:T,warnings:A}):{name:S,errors:T,warnings:A}}))}}});var g=Aqe(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var S=y.map(function(C){var _=C.name;return _});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,y)});var O=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var S=y.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:S,outOfDate:n.lastValidatePromise!==g})});O.catch(function(y){return y});var v=l.filter(function(y){return d.has(y.join(u))});return n.triggerOnFieldsChange(v),O}),ae(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(i){console.error(i)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function _j(e){var t=p.useRef(),n=p.useState({}),r=be(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){a({})},o=new Iqe(i);t.current=o.getForm()}return[t.current]}var n9=p.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Fxe=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,i=t.children,o=p.useContext(n9),s=p.useRef({});return p.createElement(n9.Provider,{value:se(se({},o),{},{validateMessages:se(se({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){a&&a(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=se(se({},s.current),{},ae({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=se({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},i)},Mqe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Dqe=function(t,n){var r=t.name,a=t.initialValues,i=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,m=f===void 0?"onChange":f,h=t.onValuesChange,g=t.onFieldsChange,O=t.onFinish,v=t.onFinishFailed,y=t.clearOnDestroy,S=on(t,Mqe),C=p.useRef(null),_=p.useContext(n9),w=_j(o),T=be(w,1),A=T[0],k=A.getInternalHooks(ph),I=k.useSubscribe,M=k.setInitialValues,Q=k.setCallbacks,F=k.setValidateMessages,L=k.setPreserve,U=k.destroyForm;p.useImperativeHandle(n,function(){return se(se({},A),{},{nativeElement:C.current})}),p.useEffect(function(){return _.registerForm(r,A),function(){_.unregisterForm(r)}},[_,A,r]),F(se(se({},_.validateMessages),d)),Q({onValuesChange:h,onFieldsChange:function(q){if(_.triggerFormChange(r,q),g){for(var H=arguments.length,J=new Array(H>1?H-1:0),te=1;te{}}),jxe=p.createContext(null),Xxe=e=>{const t=ga(e,["prefixCls"]);return p.createElement(Fxe,Object.assign({},t))},Ej=p.createContext({prefixCls:""}),oo=p.createContext({}),Yxe=({children:e,status:t,override:n})=>{const r=p.useContext(oo),a=p.useMemo(()=>{const i=Object.assign({},r);return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,r]);return p.createElement(oo.Provider,{value:a},e)},Vxe=p.createContext(void 0),hu=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=Z.createElement(Yxe,{override:!0,status:!0},a)),t&&(a=Z.createElement(pYe,null,a)),a};var qxe=function(t){if(xo()&&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},Qqe=function(t,n){if(!qxe(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function r9(e,t){return!Array.isArray(e)&&t!==void 0?Qqe(e,t):qxe(e)}const zqe=()=>xo()&&window.document.documentElement,_k=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:i}=e,o=ce({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=ce({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=p.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return p.createElement("span",{className:ce(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},Bqe=new kr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ek=e=>({height:e,lineHeight:de(e)}),u0=e=>Object.assign({width:e},Ek(e)),Fqe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Bqe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),q4=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Ek(e)),Uqe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},u0(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},u0(a)),[`${t}${t}-sm`]:Object.assign({},u0(i))}},jqe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},q4(t,s)),[`${r}-lg`]:Object.assign({},q4(a,s)),[`${r}-sm`]:Object.assign({},q4(i,s))}},Are=e=>Object.assign({width:e},Ek(e)),Xqe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},Are(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Are(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},W4=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},G4=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Ek(e)),Yqe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},G4(r,s))},W4(e,r,n)),{[`${n}-lg`]:Object.assign({},G4(a,s))}),W4(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},G4(i,s))}),W4(e,i,`${n}-sm`))},Vqe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:O,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},u0(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},u0(c)),[`${n}-sm`]:Object.assign({},u0(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:O,[`+ ${a}`]:{marginBlockStart:u}},[a]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:O,"+ li":{marginBlockStart:y}}},[`${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:m,[`+ ${a}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Yqe(e)),Uqe(e)),jqe(e)),Xqe(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` +}`),a)}else f_(a);return function(){f_(a)}},[t,a])}var mqe=!1;function hqe(e){return mqe}var Ure=function(t){return t===!1?!1:!Eo()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},WE=p.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var i=e.autoDestroy,o=i===void 0?!0:i,s=e.children,l=p.useState(n),c=ye(l,2),u=c[0],d=c[1],f=u||n;p.useEffect(function(){(o||n)&&d(n)},[n,o]);var m=p.useState(function(){return Ure(a)}),h=ye(m,2),g=h[0],O=h[1];p.useEffect(function(){var M=Ure(a);O(M??null)});var v=uqe(f&&!g),y=ye(v,2),S=y[0],C=y[1],_=g??S;pqe(r&&n&&Eo()&&(_===S||_===document.body));var w=null;if(s&&Ou(s)&&t){var T=s;w=T.ref}var k=Cd(w,t);if(!f||!Eo()||g===void 0)return null;var A=_===!1||hqe(),I=s;return t&&(I=p.cloneElement(s,{ref:k})),p.createElement(aTe.Provider,{value:C},A?I:Fl.createPortal(I,_))}),oTe=p.createContext({});function gqe(){var e=oe({},F0);return e.useId}var jre=0,Xre=gqe();const Nb=Xre?(function(t){var n=Xre();return t||n}):(function(t){var n=p.useState("ssr-id"),r=ye(n,2),a=r[0],i=r[1];return p.useEffect(function(){var o=jre;jre+=1,i("rc_unique_".concat(o))},[]),t||a});function Yre(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Vre(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 Oqe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,a=r.defaultView||r.parentWindow;return n.left+=Vre(a),n.top+=Vre(a,!0),n}const bqe=p.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var vqe={width:0,height:0,overflow:"hidden",outline:"none"},yqe={outline:"none"},sTe=Z.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,f=e.bodyStyle,m=e.bodyProps,h=e.modalRender,g=e.onMouseDown,O=e.onMouseUp,v=e.holderRef,y=e.visible,S=e.forceRender,C=e.width,_=e.height,w=e.classNames,T=e.styles,k=Z.useContext(oTe),A=k.panel,I=Cd(v,A),M=p.useRef(),Q=p.useRef();Z.useImperativeHandle(t,function(){return{focus:function(){var X;(X=M.current)===null||X===void 0||X.focus({preventScroll:!0})},changeActive:function(X){var Y=document,q=Y.activeElement;X&&q===Q.current?M.current.focus({preventScroll:!0}):!X&&q===M.current&&Q.current.focus({preventScroll:!0})}}});var B={};C!==void 0&&(B.width=C),_!==void 0&&(B.height=_);var D=s?Z.createElement("div",{className:le("".concat(n,"-footer"),w==null?void 0:w.footer),style:oe({},T==null?void 0:T.footer)},s):null,U=i?Z.createElement("div",{className:le("".concat(n,"-header"),w==null?void 0:w.header),style:oe({},T==null?void 0:T.header)},Z.createElement("div",{className:"".concat(n,"-title"),id:o},i)):null,R=p.useMemo(function(){return Xt(l)==="object"&&l!==null?l:l?{closeIcon:c??Z.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),$=vi(R,!0),P=Xt(l)==="object"&&l.disabled,z=l?Z.createElement("button",Ae({type:"button",onClick:u,"aria-label":"Close"},$,{className:"".concat(n,"-close"),disabled:P}),R.closeIcon):null,F=Z.createElement("div",{className:le("".concat(n,"-content"),w==null?void 0:w.content),style:T==null?void 0:T.content},z,U,Z.createElement("div",Ae({className:le("".concat(n,"-body"),w==null?void 0:w.body),style:oe(oe({},f),T==null?void 0:T.body)},m),d),D);return Z.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?o:null,"aria-modal":"true",ref:I,style:oe(oe({},a),B),className:le(n,r),onMouseDown:g,onMouseUp:O},Z.createElement("div",{ref:M,tabIndex:0,style:yqe},Z.createElement(bqe,{shouldUpdate:y||S},h?h(F):F)),Z.createElement("div",{tabIndex:0,ref:Q,style:vqe}))}),lTe=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,a=e.style,i=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,f=e.mousePosition,m=p.useRef(),h=p.useState(),g=ye(h,2),O=g[0],v=g[1],y={};O&&(y.transformOrigin=O);function S(){var C=Oqe(m.current);v(f&&(f.x||f.y)?"".concat(f.x-C.left,"px ").concat(f.y-C.top,"px"):"")}return p.createElement(ro,{visible:o,onVisibleChanged:d,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:c,removeOnLeave:l,ref:m},function(C,_){var w=C.className,T=C.style;return p.createElement(sTe,Ae({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:_,style:oe(oe(oe({},T),a),y),className:le(i,w)}))})});lTe.displayName="Content";var Sqe=function(t){var n=t.prefixCls,r=t.style,a=t.visible,i=t.maskProps,o=t.motionName,s=t.className;return p.createElement(ro,{key:"mask",visible:a,motionName:o,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,d=l.style;return p.createElement("div",Ae({ref:c,style:oe(oe({},d),r),className:le("".concat(n,"-mask"),u,s)},i))})},_qe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,a=t.zIndex,i=t.visible,o=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,d=t.wrapStyle,f=t.wrapClassName,m=t.wrapProps,h=t.onClose,g=t.afterOpenChange,O=t.afterClose,v=t.transitionName,y=t.animation,S=t.closable,C=S===void 0?!0:S,_=t.mask,w=_===void 0?!0:_,T=t.maskTransitionName,k=t.maskAnimation,A=t.maskClosable,I=A===void 0?!0:A,M=t.maskStyle,Q=t.maskProps,B=t.rootClassName,D=t.classNames,U=t.styles,R=p.useRef(),$=p.useRef(),P=p.useRef(),z=p.useState(o),F=ye(z,2),L=F[0],X=F[1],Y=Nb();function q(){A7($.current,document.activeElement)||(R.current=document.activeElement)}function G(){if(!A7($.current,document.activeElement)){var Oe;(Oe=P.current)===null||Oe===void 0||Oe.focus()}}function ee(Oe){if(Oe)G();else{if(X(!1),w&&R.current&&u){try{R.current.focus({preventScroll:!0})}catch{}R.current=null}L&&(O==null||O())}g==null||g(Oe)}function K(Oe){h==null||h(Oe)}var ne=p.useRef(!1),ie=p.useRef(),se=function(){clearTimeout(ie.current),ne.current=!0},ue=function(){ie.current=setTimeout(function(){ne.current=!1})},ce=null;I&&(ce=function(me){ne.current?ne.current=!1:$.current===me.target&&K(me)});function be(Oe){if(l&&Oe.keyCode===Ht.ESC){Oe.stopPropagation(),K(Oe);return}o&&Oe.keyCode===Ht.TAB&&P.current.changeActive(!Oe.shiftKey)}p.useEffect(function(){o&&(X(!0),q())},[o]),p.useEffect(function(){return function(){clearTimeout(ie.current)}},[]);var ge=oe(oe(oe({zIndex:a},d),U==null?void 0:U.wrapper),{},{display:L?null:"none"});return p.createElement("div",Ae({className:le("".concat(r,"-root"),B)},vi(t,{data:!0})),p.createElement(Sqe,{prefixCls:r,visible:w&&o,motionName:Yre(r,T,k),style:oe(oe({zIndex:a},M),U==null?void 0:U.mask),maskProps:Q,className:D==null?void 0:D.mask}),p.createElement("div",Ae({tabIndex:-1,onKeyDown:be,className:le("".concat(r,"-wrap"),f,D==null?void 0:D.wrapper),ref:$,onClick:ce,style:ge},m),p.createElement(lTe,Ae({},t,{onMouseDown:se,onMouseUp:ue,ref:P,closable:C,ariaId:Y,prefixCls:r,visible:o&&L,onClose:K,onVisibleChanged:ee,motionName:Yre(r,v,y)}))))},jj=function(t){var n=t.visible,r=t.getContainer,a=t.forceRender,i=t.destroyOnClose,o=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=p.useState(n),u=ye(c,2),d=u[0],f=u[1],m=p.useMemo(function(){return{panel:l}},[l]);return p.useEffect(function(){n&&f(!0)},[n]),!a&&o&&!d?null:p.createElement(oTe.Provider,{value:m},p.createElement(WE,{open:n||a||d,autoDestroy:!1,getContainer:r,autoLock:n||d},p.createElement(_qe,Ae({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),f(!1)}}))))};jj.displayName="Dialog";var yh="RC_FORM_INTERNAL_HOOKS",Na=function(){Da(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Hh=p.createContext({getFieldValue:Na,getFieldsValue:Na,getFieldError:Na,getFieldWarning:Na,getFieldsError:Na,isFieldsTouched:Na,isFieldTouched:Na,isFieldValidating:Na,isFieldsValidating:Na,resetFields:Na,setFields:Na,setFieldValue:Na,setFieldsValue:Na,validateFields:Na,submit:Na,getInternalHooks:function(){return Na(),{dispatch:Na,initEntityValue:Na,registerField:Na,useSubscribe:Na,setInitialValues:Na,destroyForm:Na,setCallbacks:Na,registerWatch:Na,getFields:Na,setValidateMessages:Na,setPreserve:Na,getInitialValue:Na}}}),S_=p.createContext(null);function p9(e){return e==null?[]:Array.isArray(e)?e:[e]}function Eqe(e){return e&&!!e._init}function m9(){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 h9=m9();function xqe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Tqe(e,t,n){if(ck())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&j0(a,n.prototype),a}function g9(e){var t=typeof Map=="function"?new Map:void 0;return g9=function(r){if(r===null||!xqe(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 Tqe(r,arguments,Yh(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),j0(a,r)},g9(e)}var wqe=/%[sdj%]/g,Cqe=function(){};function O9(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 Nl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return s;switch(s){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 s}});return o}return e}function $qe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function ao(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||$qe(t)&&typeof e=="string"&&!e)}function Rqe(e,t,n){var r=[],a=0,i=e.length;function o(s){r.push.apply(r,et(s||[])),a++,a===i&&n(r)}e.forEach(function(s){t(s,o)})}function qre(e,t,n){var r=0,a=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,st.max?a.push(Nl(i.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&a.push(Nl(i.messages[d].range,t.fullField,t.min,t.max))},cTe=function(t,n,r,a,i,o){t.required&&(!r.hasOwnProperty(t.field)||ao(n,o||t.type))&&a.push(Nl(i.messages.required,t.fullField))},lw;const Lqe=(function(){if(lw)return lw;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(a.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(o,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(o).concat(t(w),")"),"g")};u.v4=function(_){return _&&_.exact?l:new RegExp("".concat(t(_)).concat(n).concat(t(_)),"g")},u.v6=function(_){return _&&_.exact?c:new RegExp("".concat(t(_)).concat(o).concat(t(_)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,h=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",O="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',C="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(m,"|").concat(h,"|").concat(g).concat(O).concat(v,")").concat(y).concat(S);return lw=new RegExp("(?:^".concat(C,"$)"),"i"),lw});var n5={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},Ky={integer:function(t){return Ky.number(t)&&parseInt(t,10)===t},float:function(t){return Ky.number(t)&&!Ky.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 Xt(t)==="object"&&!Ky.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(n5.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(n5.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Lqe())},hex:function(t){return typeof t=="string"&&!!t.match(n5.hex)}},Qqe=function(t,n,r,a,i){if(t.required&&n===void 0){cTe(t,n,r,a,i);return}var o=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?Ky[s](n)||a.push(Nl(i.messages.types[s],t.fullField,t.type)):s&&Xt(n)!==t.type&&a.push(Nl(i.messages.types[s],t.fullField,t.type))},zqe=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(Nl(i.messages.whitespace,t.fullField))};const ta={required:cTe,whitespace:zqe,type:Qqe,range:Dqe,enum:Iqe,pattern:Mqe};var Bqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n)&&!t.required)return r();ta.required(t,n,a,o,i)}r(o)},Fqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();ta.required(t,n,a,o,i,"array"),n!=null&&(ta.type(t,n,a,o,i),ta.range(t,n,a,o,i))}r(o)},Uqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n)&&!t.required)return r();ta.required(t,n,a,o,i),n!==void 0&&ta.type(t,n,a,o,i)}r(o)},jqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n,"date")&&!t.required)return r();if(ta.required(t,n,a,o,i),!ao(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),ta.type(t,l,a,o,i),l&&ta.range(t,l.getTime(),a,o,i)}}r(o)},Xqe="enum",Yqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n)&&!t.required)return r();ta.required(t,n,a,o,i),n!==void 0&&ta[Xqe](t,n,a,o,i)}r(o)},Vqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n)&&!t.required)return r();ta.required(t,n,a,o,i),n!==void 0&&(ta.type(t,n,a,o,i),ta.range(t,n,a,o,i))}r(o)},qqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n)&&!t.required)return r();ta.required(t,n,a,o,i),n!==void 0&&(ta.type(t,n,a,o,i),ta.range(t,n,a,o,i))}r(o)},Wqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n)&&!t.required)return r();ta.required(t,n,a,o,i),n!==void 0&&ta.type(t,n,a,o,i)}r(o)},Gqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),ao(n)&&!t.required)return r();ta.required(t,n,a,o,i),n!==void 0&&(ta.type(t,n,a,o,i),ta.range(t,n,a,o,i))}r(o)},Hqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n)&&!t.required)return r();ta.required(t,n,a,o,i),n!==void 0&&ta.type(t,n,a,o,i)}r(o)},Zqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n,"string")&&!t.required)return r();ta.required(t,n,a,o,i),ao(n,"string")||ta.pattern(t,n,a,o,i)}r(o)},Kqe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n)&&!t.required)return r();ta.required(t,n,a,o,i),ao(n)||ta.type(t,n,a,o,i)}r(o)},Jqe=function(t,n,r,a,i){var o=[],s=Array.isArray(n)?"array":Xt(n);ta.required(t,n,a,o,i,s),r(o)},eWe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ao(n,"string")&&!t.required)return r();ta.required(t,n,a,o,i,"string"),ao(n,"string")||(ta.type(t,n,a,o,i),ta.range(t,n,a,o,i),ta.pattern(t,n,a,o,i),t.whitespace===!0&&ta.whitespace(t,n,a,o,i))}r(o)},cw=function(t,n,r,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(ao(n,o)&&!t.required)return r();ta.required(t,n,a,s,i,o),ao(n,o)||ta.type(t,n,a,s,i)}r(s)};const RS={string:eWe,method:Wqe,number:Gqe,boolean:Uqe,regexp:Kqe,integer:qqe,float:Vqe,array:Fqe,object:Hqe,enum:Yqe,pattern:Zqe,date:jqe,url:cw,hex:cw,email:cw,tel:cw,required:Jqe,any:Bqe};var GE=(function(){function e(t){_a(this,e),ae(this,"rules",null),ae(this,"_messages",h9),this.define(t)}return Ea(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Xt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var i=n[a];r.rules[a]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=Hre(m9(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=n,s=a,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(h){var g=[],O={};function v(S){if(Array.isArray(S)){var C;g=(C=g).concat.apply(C,et(S))}else g.push(S)}for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(T)?T:[T];!s.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&O.message!==void 0&&O.message!==null&&(k=[].concat(O.message));var A=k.map(Gre(O,o));if(s.first&&A.length)return m[O.field]=1,g(A);if(!v)g(A);else{if(O.required&&!h.value)return O.message!==void 0?A=[].concat(O.message).map(Gre(O,o)):s.error&&(A=[s.error(O,Nl(s.messages.required,O.field))]),g(A);var I={};O.defaultField&&Object.keys(h.value).map(function(B){I[B]=O.defaultField}),I=oe(oe({},I),h.rule.fields);var M={};Object.keys(I).forEach(function(B){var D=I[B],U=Array.isArray(D)?D:[D];M[B]=U.map(y.bind(null,B))});var Q=new e(M);Q.messages(s.messages),h.rule.options&&(h.rule.options.messages=s.messages,h.rule.options.error=s.error),Q.validate(h.value,h.rule.options||s,function(B){var D=[];A&&A.length&&D.push.apply(D,et(A)),B&&B.length&&D.push.apply(D,et(B)),g(D.length?D:null)})}}var C;if(O.asyncValidator)C=O.asyncValidator(O,h.value,S,h.source,s);else if(O.validator){try{C=O.validator(O,h.value,S,h.source,s)}catch(T){var _,w;(_=(w=console).error)===null||_===void 0||_.call(w,T),s.suppressValidatorError||setTimeout(function(){throw T},0),S(T.message)}C===!0?S():C===!1?S(typeof O.message=="function"?O.message(O.fullField||O.field):O.message||"".concat(O.fullField||O.field," fails")):C instanceof Array?S(C):C instanceof Error&&S(C.message)}C&&C.then&&C.then(function(){return S()},function(T){return S(T)})},function(h){c(h)},o)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!RS.hasOwnProperty(n.type))throw new Error(Nl("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"?RS.required:RS[this.getType(n)]||void 0}}]),e})();ae(GE,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");RS[t]=n});ae(GE,"warning",Cqe);ae(GE,"messages",h9);ae(GE,"validators",RS);var yl="'${name}' is not a valid ${type}",uTe={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:yl,method:yl,array:yl,object:yl,number:yl,date:yl,boolean:yl,integer:yl,float:yl,regexp:yl,email:yl,url:yl,hex:yl},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}"}},Zre=GE;function tWe(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 Kre="CODE_LOGIC_ERROR";function b9(e,t,n,r,a){return v9.apply(this,arguments)}function v9(){return v9=Cs(fa().mark(function e(t,n,r,a,i){var o,s,l,c,u,d,f,m,h;return fa().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return o=oe({},r),delete o.ruleIndex,Zre.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(v){return console.error(v),Promise.reject(Kre)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new Zre(ae({},t,[o])),u=KO(uTe,a.validateMessages),c.messages(u),d=[],O.prev=10,O.next=13,Promise.resolve(c.validate(ae({},t,n),oe({},a)));case 13:O.next=18;break;case 15:O.prev=15,O.t0=O.catch(10),O.t0.errors&&(d=O.t0.errors.map(function(v,y){var S=v.message,C=S===Kre?u.default:S;return p.isValidElement(C)?p.cloneElement(C,{key:"error_".concat(y)}):C}));case 18:if(!(!d.length&&l&&Array.isArray(n)&&n.length>0)){O.next=23;break}return O.next=21,Promise.all(n.map(function(v,y){return b9("".concat(t,".").concat(y),v,l,a,i)}));case 21:return f=O.sent,O.abrupt("return",f.reduce(function(v,y){return[].concat(et(v),et(y))},[]));case 23:return m=oe(oe({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=d.map(function(v){return typeof v=="string"?tWe(v,m):v}),O.abrupt("return",h);case 26:case"end":return O.stop()}},e,null,[[10,15]])})),v9.apply(this,arguments)}function nWe(e,t,n,r,a,i){var o=e.join("."),s=n.map(function(u,d){var f=u.validator,m=oe(oe({},u),{},{ruleIndex:d});return f&&(m.validator=function(h,g,O){var v=!1,y=function(){for(var _=arguments.length,w=new Array(_),T=0;T<_;T++)w[T]=arguments[T];Promise.resolve().then(function(){Da(!v,"Your validator function has already return a promise. `callback` will be ignored."),v||O.apply(void 0,w)})},S=f(h,g,y);v=S&&typeof S.then=="function"&&typeof S.catch=="function",Da(v,"`callback` is deprecated. Please return a promise instead."),v&&S.then(function(){O()}).catch(function(C){O(C||" ")})}),m}).sort(function(u,d){var f=u.warningOnly,m=u.ruleIndex,h=d.warningOnly,g=d.ruleIndex;return!!f==!!h?m-g:f?1:-1}),l;if(a===!0)l=new Promise((function(){var u=Cs(fa().mark(function d(f,m){var h,g,O;return fa().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return dTe(t,r,n)})}function dTe(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 iWe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Xt(e)!=="object"||Xt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return et(a).every(function(i){var o=e[i],s=t[i];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function oWe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Xt(t.target)==="object"&&e in t.target?t.target[e]:t}function eae(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],i=t-n;return i>0?[].concat(et(e.slice(0,n)),[a],et(e.slice(n,t)),et(e.slice(t+1,r))):i<0?[].concat(et(e.slice(0,t)),et(e.slice(t+1,n+1)),[a],et(e.slice(n+1,r))):e}var sWe=["name"],lc=[];function r5(e,t,n,r,a,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==a}var Xj=(function(e){dl(n,e);var t=Wl(n);function n(r){var a;if(_a(this,n),a=t.call(this,r),ae(Wt(a),"state",{resetCount:0}),ae(Wt(a),"cancelRegisterFunc",null),ae(Wt(a),"mounted",!1),ae(Wt(a),"touched",!1),ae(Wt(a),"dirty",!1),ae(Wt(a),"validatePromise",void 0),ae(Wt(a),"prevValidating",void 0),ae(Wt(a),"errors",lc),ae(Wt(a),"warnings",lc),ae(Wt(a),"cancelRegister",function(){var l=a.props,c=l.preserve,u=l.isListField,d=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(u,c,Pi(d)),a.cancelRegisterFunc=null}),ae(Wt(a),"getNamePath",function(){var l=a.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(et(f),et(c)):[]}),ae(Wt(a),"getRules",function(){var l=a.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),ae(Wt(a),"refresh",function(){a.mounted&&a.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ae(Wt(a),"metaCache",null),ae(Wt(a),"triggerMetaEvent",function(l){var c=a.props.onMetaChange;if(c){var u=oe(oe({},a.getMeta()),{},{destroy:l});Bl(a.metaCache,u)||c(u),a.metaCache=u}else a.metaCache=null}),ae(Wt(a),"onStoreChange",function(l,c,u){var d=a.props,f=d.shouldUpdate,m=d.dependencies,h=m===void 0?[]:m,g=d.onReset,O=u.store,v=a.getNamePath(),y=a.getValue(l),S=a.getValue(O),C=c&&m0(c,v);switch(u.type==="valueUpdate"&&u.source==="external"&&!Bl(y,S)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=lc,a.warnings=lc,a.triggerMetaEvent()),u.type){case"reset":if(!c||C){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=lc,a.warnings=lc,a.triggerMetaEvent(),g==null||g(),a.refresh();return}break;case"remove":{if(f&&r5(f,l,O,y,S,u)){a.reRender();return}break}case"setField":{var _=u.data;if(C){"touched"in _&&(a.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(a.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(a.errors=_.errors||lc),"warnings"in _&&(a.warnings=_.warnings||lc),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in _&&m0(c,v,!0)){a.reRender();return}if(f&&!v.length&&r5(f,l,O,y,S,u)){a.reRender();return}break}case"dependenciesUpdate":{var w=h.map(Pi);if(w.some(function(T){return m0(u.relatedFields,T)})){a.reRender();return}break}default:if(C||(!h.length||v.length||f)&&r5(f,l,O,y,S,u)){a.reRender();return}break}f===!0&&a.reRender()}),ae(Wt(a),"validateRules",function(l){var c=a.getNamePath(),u=a.getValue(),d=l||{},f=d.triggerName,m=d.validateOnly,h=m===void 0?!1:m,g=Promise.resolve().then(Cs(fa().mark(function O(){var v,y,S,C,_,w,T;return fa().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(a.mounted){A.next=2;break}return A.abrupt("return",[]);case 2:if(v=a.props,y=v.validateFirst,S=y===void 0?!1:y,C=v.messageVariables,_=v.validateDebounce,w=a.getRules(),f&&(w=w.filter(function(I){return I}).filter(function(I){var M=I.validateTrigger;if(!M)return!0;var Q=p9(M);return Q.includes(f)})),!(_&&f)){A.next=10;break}return A.next=8,new Promise(function(I){setTimeout(I,_)});case 8:if(a.validatePromise===g){A.next=10;break}return A.abrupt("return",[]);case 10:return T=nWe(c,u,w,l,S,C),T.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lc;if(a.validatePromise===g){var M;a.validatePromise=null;var Q=[],B=[];(M=I.forEach)===null||M===void 0||M.call(I,function(D){var U=D.rule.warningOnly,R=D.errors,$=R===void 0?lc:R;U?B.push.apply(B,et($)):Q.push.apply(Q,et($))}),a.errors=Q,a.warnings=B,a.triggerMetaEvent(),a.reRender()}}),A.abrupt("return",T);case 13:case"end":return A.stop()}},O)})));return h||(a.validatePromise=g,a.dirty=!0,a.errors=lc,a.warnings=lc,a.triggerMetaEvent(),a.reRender()),g}),ae(Wt(a),"isFieldValidating",function(){return!!a.validatePromise}),ae(Wt(a),"isFieldTouched",function(){return a.touched}),ae(Wt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,c=l.getInternalHooks(yh),u=c.getInitialValue;return u(a.getNamePath())!==void 0}),ae(Wt(a),"getErrors",function(){return a.errors}),ae(Wt(a),"getWarnings",function(){return a.warnings}),ae(Wt(a),"isListField",function(){return a.props.isListField}),ae(Wt(a),"isList",function(){return a.props.isList}),ae(Wt(a),"isPreserve",function(){return a.props.preserve}),ae(Wt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),ae(Wt(a),"getOnlyChild",function(l){if(typeof l=="function"){var c=a.getMeta();return oe(oe({},a.getOnlyChild(l(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var u=xo(l);return u.length!==1||!p.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ae(Wt(a),"getValue",function(l){var c=a.props.fieldContext.getFieldsValue,u=a.getNamePath();return ws(l||c(!0),u)}),ae(Wt(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,u=c.name,d=c.trigger,f=c.validateTrigger,m=c.getValueFromEvent,h=c.normalize,g=c.valuePropName,O=c.getValueProps,v=c.fieldContext,y=f!==void 0?f:v.validateTrigger,S=a.getNamePath(),C=v.getInternalHooks,_=v.getFieldsValue,w=C(yh),T=w.dispatch,k=a.getValue(),A=O||function(D){return ae({},g,D)},I=l[d],M=u!==void 0?A(k):{},Q=oe(oe({},l),M);Q[d]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var D,U=arguments.length,R=new Array(U),$=0;$=0&&I<=M.length?(u.keys=[].concat(et(u.keys.slice(0,I)),[u.id],et(u.keys.slice(I))),S([].concat(et(M.slice(0,I)),[A],et(M.slice(I))))):(u.keys=[].concat(et(u.keys),[u.id]),S([].concat(et(M),[A]))),u.id+=1},remove:function(A){var I=_(),M=new Set(Array.isArray(A)?A:[A]);M.size<=0||(u.keys=u.keys.filter(function(Q,B){return!M.has(B)}),S(I.filter(function(Q,B){return!M.has(B)})))},move:function(A,I){if(A!==I){var M=_();A<0||A>=M.length||I<0||I>=M.length||(u.keys=eae(u.keys,A,I),S(eae(M,A,I)))}}},T=y||[];return Array.isArray(T)||(T=[]),r(T.map(function(k,A){var I=u.keys[A];return I===void 0&&(u.keys[A]=u.id,I=u.keys[A],u.id+=1),{name:A,key:I,isListField:!0}}),w,O)})))}function lWe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,i){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),a(r))})})}):Promise.resolve([])}var pTe="__@field_split__";function a5(e){return e.map(function(t){return"".concat(Xt(t),":").concat(t)}).join(pTe)}var hO=(function(){function e(){_a(this,e),ae(this,"kvs",new Map)}return Ea(e,[{key:"set",value:function(n,r){this.kvs.set(a5(n),r)}},{key:"get",value:function(n){return this.kvs.get(a5(n))}},{key:"update",value:function(n,r){var a=this.get(n),i=r(a);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(a5(n))}},{key:"map",value:function(n){return et(this.kvs.entries()).map(function(r){var a=ye(r,2),i=a[0],o=a[1],s=i.split(pTe);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=ye(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:o})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,i=r.value;return n[a.join(".")]=i,null}),n}}]),e})(),cWe=["name"],uWe=Ea(function e(t){var n=this;_a(this,e),ae(this,"formHooked",!1),ae(this,"forceRootUpdate",void 0),ae(this,"subscribable",!0),ae(this,"store",{}),ae(this,"fieldEntities",[]),ae(this,"initialValues",{}),ae(this,"callbacks",{}),ae(this,"validateMessages",null),ae(this,"preserve",null),ae(this,"lastValidatePromise",null),ae(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}}),ae(this,"getInternalHooks",function(r){return r===yh?(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}):(Da(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ae(this,"useSubscribe",function(r){n.subscribable=r}),ae(this,"prevWithoutPreserves",null),ae(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var i,o=KO(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;o=hc(o,l,ws(r,l))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),ae(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new hO;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||a.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),ae(this,"getInitialValue",function(r){var a=ws(n.initialValues,r);return r.length?KO(a):a}),ae(this,"setCallbacks",function(r){n.callbacks=r}),ae(this,"setValidateMessages",function(r){n.validateMessages=r}),ae(this,"setPreserve",function(r){n.preserve=r}),ae(this,"watchList",[]),ae(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),ae(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(o){o(a,i,r)})}}),ae(this,"timeoutId",null),ae(this,"warningUnhooked",function(){}),ae(this,"updateStore",function(r){n.store=r}),ae(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}),ae(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new hO;return n.getFieldEntities(r).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),ae(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(i){var o=Pi(i);return a.get(o)||{INVALIDATE_NAME_PATH:Pi(i)}})}),ae(this,"getFieldsValue",function(r,a){n.warningUnhooked();var i,o,s;if(r===!0||Array.isArray(r)?(i=r,o=a):r&&Xt(r)==="object"&&(s=r.strict,o=r.filter),i===!0&&!o)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var d,f,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var h,g;if((h=(g=u).isList)!==null&&h!==void 0&&h.call(g))return}else if(!i&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!o)c.push(m);else{var O="getMeta"in u?u.getMeta():null;o(O)&&c.push(m)}}),Jre(n.store,c.map(Pi))}),ae(this,"getFieldValue",function(r){n.warningUnhooked();var a=Pi(r);return ws(n.store,a)}),ae(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(i,o){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Pi(r[o]),errors:[],warnings:[]}})}),ae(this,"getFieldError",function(r){n.warningUnhooked();var a=Pi(r),i=n.getFieldsError([a])[0];return i.errors}),ae(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Pi(r),i=n.getFieldsError([a])[0];return i.warnings}),ae(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},a=new hO,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=a.get(u)||new Set;d.add({entity:l,value:c}),a.set(u,d)}});var o=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),m=n.getInitialValue(f);if(m!==void 0)Da(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var h=a.get(f);if(h&&h.size>1)Da(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var g=n.getFieldValue(f),O=u.isListField();!O&&(!r.skipExist||g===void 0)&&n.updateStore(hc(n.store,f,et(h)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=a.get(l);if(c){var u;(u=s).push.apply(u,et(et(c).map(function(d){return d.entity})))}})):s=i,o(s)}),ae(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(KO(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Pi);i.forEach(function(o){var s=n.getInitialValue(o);n.updateStore(hc(n.store,o,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(a,i,{type:"reset"}),n.notifyWatch(i)}),ae(this,"setFields",function(r){n.warningUnhooked();var a=n.store,i=[];r.forEach(function(o){var s=o.name,l=ln(o,cWe),c=Pi(s);i.push(c),"value"in l&&n.updateStore(hc(n.store,c,l.value)),n.notifyObservers(a,[c],{type:"setField",data:o})}),n.notifyWatch(i)}),ae(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(i){var o=i.getNamePath(),s=i.getMeta(),l=oe(oe({},s),{},{name:o,value:n.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),ae(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var i=r.getNamePath(),o=ws(n.store,i);o===void 0&&n.updateStore(hc(n.store,i,a))}}),ae(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),ae(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==c&&n.fieldEntities.every(function(d){return!dTe(d.getNamePath(),a)})){var u=n.store;n.updateStore(hc(u,a,c,!0)),n.notifyObservers(u,[a],{type:"remove"}),n.triggerDependenciesUpdate(u,a)}}n.notifyWatch([a])}}),ae(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,i=r.value;n.updateValue(a,i);break}case"validateField":{var o=r.namePath,s=r.triggerName;n.validateFields([o],{triggerName:s});break}}}),ae(this,"notifyObservers",function(r,a,i){if(n.subscribable){var o=oe(oe({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,a,o)})}else n.forceRootUpdate()}),ae(this,"triggerDependenciesUpdate",function(r,a){var i=n.getDependencyChildrenFields(a);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[a].concat(et(i))}),i}),ae(this,"updateValue",function(r,a){var i=Pi(r),o=n.store;n.updateStore(hc(n.store,i,a)),n.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(o,i),l=n.callbacks.onValuesChange;if(l){var c=Jre(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(et(s)))}),ae(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var i=KO(n.store,r);n.updateStore(i)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ae(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),ae(this,"getDependencyChildrenFields",function(r){var a=new Set,i=[],o=new hO;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Pi(u);o.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(d){if(!a.has(d)){a.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(i.push(f),l(f))}})};return s(r),i}),ae(this,"triggerOnFieldsChange",function(r,a){var i=n.callbacks.onFieldsChange;if(i){var o=n.getFields();if(a){var s=new hO;a.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return m0(r,u)});l.length&&i(l,o)}}),ae(this,"validateFields",function(r,a){n.warningUnhooked();var i,o;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(i=r,o=a):o=r;var s=!!i,l=s?i.map(Pi):[],c=[],u=String(Date.now()),d=new Set,f=o||{},m=f.recursive,h=f.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(h&&!y.isFieldDirty())){var S=y.getNamePath();if(d.add(S.join(u)),!s||m0(l,S,m)){var C=y.validateRules(oe({validateMessages:oe(oe({},uTe),n.validateMessages)},o));c.push(C.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(_){var w,T=[],k=[];return(w=_.forEach)===null||w===void 0||w.call(_,function(A){var I=A.rule.warningOnly,M=A.errors;I?k.push.apply(k,et(M)):T.push.apply(T,et(M))}),T.length?Promise.reject({name:S,errors:T,warnings:k}):{name:S,errors:T,warnings:k}}))}}});var g=lWe(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var S=y.map(function(C){var _=C.name;return _});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,y)});var O=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var S=y.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:S,outOfDate:n.lastValidatePromise!==g})});O.catch(function(y){return y});var v=l.filter(function(y){return d.has(y.join(u))});return n.triggerOnFieldsChange(v),O}),ae(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(i){console.error(i)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function Vj(e){var t=p.useRef(),n=p.useState({}),r=ye(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){a({})},o=new uWe(i);t.current=o.getForm()}return[t.current]}var _9=p.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),mTe=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,i=t.children,o=p.useContext(_9),s=p.useRef({});return p.createElement(_9.Provider,{value:oe(oe({},o),{},{validateMessages:oe(oe({},o.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){a&&a(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=oe(oe({},s.current),{},ae({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=oe({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},i)},dWe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],fWe=function(t,n){var r=t.name,a=t.initialValues,i=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,m=f===void 0?"onChange":f,h=t.onValuesChange,g=t.onFieldsChange,O=t.onFinish,v=t.onFinishFailed,y=t.clearOnDestroy,S=ln(t,dWe),C=p.useRef(null),_=p.useContext(_9),w=Vj(o),T=ye(w,1),k=T[0],A=k.getInternalHooks(yh),I=A.useSubscribe,M=A.setInitialValues,Q=A.setCallbacks,B=A.setValidateMessages,D=A.setPreserve,U=A.destroyForm;p.useImperativeHandle(n,function(){return oe(oe({},k),{},{nativeElement:C.current})}),p.useEffect(function(){return _.registerForm(r,k),function(){_.unregisterForm(r)}},[_,k,r]),B(oe(oe({},_.validateMessages),d)),Q({onValuesChange:h,onFieldsChange:function(q){if(_.triggerFormChange(r,q),g){for(var G=arguments.length,ee=new Array(G>1?G-1:0),K=1;K{}}),gTe=p.createContext(null),OTe=e=>{const t=Oa(e,["prefixCls"]);return p.createElement(mTe,Object.assign({},t))},qj=p.createContext({prefixCls:""}),io=p.createContext({}),bTe=({children:e,status:t,override:n})=>{const r=p.useContext(io),a=p.useMemo(()=>{const i=Object.assign({},r);return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,r]);return p.createElement(io.Provider,{value:a},e)},vTe=p.createContext(void 0),yu=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=Z.createElement(bTe,{override:!0,status:!0},a)),t&&(a=Z.createElement(jYe,null,a)),a};var yTe=function(t){if(Eo()&&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},mWe=function(t,n){if(!yTe(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function E9(e,t){return!Array.isArray(e)&&t!==void 0?mWe(e,t):yTe(e)}const hWe=()=>Eo()&&window.document.documentElement,Ik=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:i}=e,o=le({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=le({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=p.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return p.createElement("span",{className:le(t,o,s,n),style:Object.assign(Object.assign({},l),r)})},gWe=new kr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Mk=e=>({height:e,lineHeight:de(e)}),h0=e=>Object.assign({width:e},Mk(e)),OWe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:gWe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),i5=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Mk(e)),bWe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},h0(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},h0(a)),[`${t}${t}-sm`]:Object.assign({},h0(i))}},vWe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:n},i5(t,s)),[`${r}-lg`]:Object.assign({},i5(a,s)),[`${r}-sm`]:Object.assign({},i5(i,s))}},nae=e=>Object.assign({width:e},Mk(e)),yWe=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},nae(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},nae(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},o5=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},s5=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Mk(e)),SWe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},s5(r,s))},o5(e,r,n)),{[`${n}-lg`]:Object.assign({},s5(a,s))}),o5(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},s5(i,s))}),o5(e,i,`${n}-sm`))},_We=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:O,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},h0(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},h0(c)),[`${n}-sm`]:Object.assign({},h0(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:O,[`+ ${a}`]:{marginBlockStart:u}},[a]:{padding:0,"> li":{width:"100%",height:v,listStyle:"none",background:d,borderRadius:O,"+ li":{marginBlockStart:y}}},[`${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:m,[`+ ${a}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},SWe(e)),bWe(e)),vWe(e)),yWe(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${a} > li, ${n}, ${i}, ${o}, ${s} - `]:Object.assign({},Fqe(e))}}},qqe=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}},Pb=Er("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=nr(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 Vqe(r)},qqe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Wqe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:i="circle",size:o="default"}=e,{getPrefixCls:s}=p.useContext(fn),l=s("skeleton",t),[c,u,d]=Pb(l),f=ga(e,["prefixCls","className"]),m=ce(l,`${l}-element`,{[`${l}-active`]:a},n,r,u,d);return c(p.createElement("div",{className:m},p.createElement(_k,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:o},f))))},Gqe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:i=!1,size:o="default"}=e,{getPrefixCls:s}=p.useContext(fn),l=s("skeleton",t),[c,u,d]=Pb(l),f=ga(e,["prefixCls"]),m=ce(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:i},n,r,u,d);return c(p.createElement("div",{className:m},p.createElement(_k,Object.assign({prefixCls:`${l}-button`,size:o},f))))},Hqe="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",Zqe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:i}=e,{getPrefixCls:o}=p.useContext(fn),s=o("skeleton",t),[l,c,u]=Pb(s),d=ce(s,`${s}-element`,{[`${s}-active`]:i},n,r,c,u);return l(p.createElement("div",{className:d},p.createElement("div",{className:ce(`${s}-image`,n),style:a},p.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},p.createElement("title",null,"Image placeholder"),p.createElement("path",{d:Hqe,className:`${s}-image-path`})))))},Kqe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:i,size:o="default"}=e,{getPrefixCls:s}=p.useContext(fn),l=s("skeleton",t),[c,u,d]=Pb(l),f=ga(e,["prefixCls"]),m=ce(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:i},n,r,u,d);return c(p.createElement("div",{className:m},p.createElement(_k,Object.assign({prefixCls:`${l}-input`,size:o},f))))},Jqe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:i,children:o}=e,{getPrefixCls:s}=p.useContext(fn),l=s("skeleton",t),[c,u,d]=Pb(l),f=ce(l,`${l}-element`,{[`${l}-active`]:i},u,n,r,d);return c(p.createElement("div",{className:f},p.createElement("div",{className:ce(`${l}-image`,n),style:a},o)))},eWe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},tWe=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,i=Array.from({length:a}).map((o,s)=>p.createElement("li",{key:s,style:{width:eWe(s,e)}}));return p.createElement("ul",{className:ce(t,n),style:r},i)},nWe=({prefixCls:e,className:t,width:n,style:r})=>p.createElement("h3",{className:ce(e,t),style:Object.assign({width:n},r)});function H4(e){return e&&typeof e=="object"?e:{}}function rWe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function aWe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function iWe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const pm=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:i,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:m,className:h,style:g}=$i("skeleton"),O=f("skeleton",t),[v,y,S]=Pb(O);if(n||!("loading"in e)){const C=!!s,_=!!l,w=!!c;let T;if(C){const I=Object.assign(Object.assign({prefixCls:`${O}-avatar`},rWe(_,w)),H4(s));T=p.createElement("div",{className:`${O}-header`},p.createElement(_k,Object.assign({},I)))}let A;if(_||w){let I;if(_){const Q=Object.assign(Object.assign({prefixCls:`${O}-title`},aWe(C,w)),H4(l));I=p.createElement(nWe,Object.assign({},Q))}let M;if(w){const Q=Object.assign(Object.assign({prefixCls:`${O}-paragraph`},iWe(C,_)),H4(c));M=p.createElement(tWe,Object.assign({},Q))}A=p.createElement("div",{className:`${O}-content`},I,M)}const k=ce(O,{[`${O}-with-avatar`]:C,[`${O}-active`]:u,[`${O}-rtl`]:m==="rtl",[`${O}-round`]:d},h,r,a,y,S);return v(p.createElement("div",{className:k,style:Object.assign(Object.assign({},g),i)},T,A))}return o??null};pm.Button=Gqe;pm.Avatar=Wqe;pm.Input=Kqe;pm.Image=Zqe;pm.Node=Jqe;function Nre(){}const oWe=p.createContext({add:Nre,remove:Nre});function Wxe(e){const t=p.useContext(oWe),n=p.useRef(null);return ar(a=>{if(a){const i=e?a.querySelector(e):a;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}const Ire=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=p.useContext(FE);return Z.createElement(Ur,Object.assign({onClick:n},e),t)},Mre=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=p.useContext(FE);return Z.createElement(Ur,Object.assign({},_xe(n),{loading:e,onClick:a},t),r)};function Gxe(e,t){return Z.createElement("span",{className:`${e}-close-x`},t||Z.createElement(Gl,{className:`${e}-close-icon`}))}const Hxe=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:i,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=fl("Modal",TEe()),d=t||(u==null?void 0:u.okText),f=r||(u==null?void 0:u.cancelText),m=Z.useMemo(()=>({confirmLoading:a,okButtonProps:s,cancelButtonProps:l,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:i,onCancel:o}),[a,s,l,d,f,n,i,o]);let h;return typeof c=="function"||typeof c>"u"?(h=Z.createElement(Z.Fragment,null,Z.createElement(Ire,null),Z.createElement(Mre,null)),typeof c=="function"&&(h=c(h,{OkBtn:Mre,CancelBtn:Ire})),h=Z.createElement(Pxe,{value:m},h)):h=c,Z.createElement(aj,{disabled:!1},h)},sWe=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"}}}},lWe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},cWe=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,i={};for(let o=a;o>=0;o--)o===0?(i[`${r}${t}-${o}`]={display:"none"},i[`${r}-push-${o}`]={insetInlineStart:"auto"},i[`${r}-pull-${o}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${o}`]={marginInlineStart:0},i[`${r}${t}-order-${o}`]={order:0}):(i[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/a*100}%`,maxWidth:`${o/a*100}%`}],i[`${r}${t}-push-${o}`]={insetInlineStart:`${o/a*100}%`},i[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/a*100}%`},i[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/a*100}%`},i[`${r}${t}-order-${o}`]={order:o});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},a9=(e,t)=>cWe(e,t),uWe=(e,t,n)=>({[`@media (min-width: ${de(t)})`]:Object.assign({},a9(e,n))}),dWe=()=>({}),fWe=()=>({}),pWe=Er("Grid",sWe,dWe),Zxe=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),mWe=Er("Grid",e=>{const t=nr(e,{gridColumns:24}),n=Zxe(t);return delete n.xs,[lWe(t),a9(t,""),a9(t,"-xs"),Object.keys(n).map(r=>uWe(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},fWe);function Dre(e){return{position:e,inset:0}}const Kxe=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({},Dre("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Dre("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:gj(e)}]},hWe=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:`${de(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},zr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${de(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:de(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ul(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${de(e.borderRadiusLG)} ${de(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:`${de(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({},OWe(e))}}},EWe=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}},Mb=Er("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=nr(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 _We(r)},EWe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),xWe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:i="circle",size:o="default"}=e,{getPrefixCls:s}=p.useContext(pn),l=s("skeleton",t),[c,u,d]=Mb(l),f=Oa(e,["prefixCls","className"]),m=le(l,`${l}-element`,{[`${l}-active`]:a},n,r,u,d);return c(p.createElement("div",{className:m},p.createElement(Ik,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:o},f))))},TWe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:i=!1,size:o="default"}=e,{getPrefixCls:s}=p.useContext(pn),l=s("skeleton",t),[c,u,d]=Mb(l),f=Oa(e,["prefixCls"]),m=le(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:i},n,r,u,d);return c(p.createElement("div",{className:m},p.createElement(Ik,Object.assign({prefixCls:`${l}-button`,size:o},f))))},wWe="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",CWe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:i}=e,{getPrefixCls:o}=p.useContext(pn),s=o("skeleton",t),[l,c,u]=Mb(s),d=le(s,`${s}-element`,{[`${s}-active`]:i},n,r,c,u);return l(p.createElement("div",{className:d},p.createElement("div",{className:le(`${s}-image`,n),style:a},p.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},p.createElement("title",null,"Image placeholder"),p.createElement("path",{d:wWe,className:`${s}-image-path`})))))},$We=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:i,size:o="default"}=e,{getPrefixCls:s}=p.useContext(pn),l=s("skeleton",t),[c,u,d]=Mb(l),f=Oa(e,["prefixCls"]),m=le(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:i},n,r,u,d);return c(p.createElement("div",{className:m},p.createElement(Ik,Object.assign({prefixCls:`${l}-input`,size:o},f))))},RWe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:i,children:o}=e,{getPrefixCls:s}=p.useContext(pn),l=s("skeleton",t),[c,u,d]=Mb(l),f=le(l,`${l}-element`,{[`${l}-active`]:i},u,n,r,d);return c(p.createElement("div",{className:f},p.createElement("div",{className:le(`${l}-image`,n),style:a},o)))},PWe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},kWe=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,i=Array.from({length:a}).map((o,s)=>p.createElement("li",{key:s,style:{width:PWe(s,e)}}));return p.createElement("ul",{className:le(t,n),style:r},i)},AWe=({prefixCls:e,className:t,width:n,style:r})=>p.createElement("h3",{className:le(e,t),style:Object.assign({width:n},r)});function l5(e){return e&&typeof e=="object"?e:{}}function NWe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function IWe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function MWe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const vm=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:i,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:f,direction:m,className:h,style:g}=$i("skeleton"),O=f("skeleton",t),[v,y,S]=Mb(O);if(n||!("loading"in e)){const C=!!s,_=!!l,w=!!c;let T;if(C){const I=Object.assign(Object.assign({prefixCls:`${O}-avatar`},NWe(_,w)),l5(s));T=p.createElement("div",{className:`${O}-header`},p.createElement(Ik,Object.assign({},I)))}let k;if(_||w){let I;if(_){const Q=Object.assign(Object.assign({prefixCls:`${O}-title`},IWe(C,w)),l5(l));I=p.createElement(AWe,Object.assign({},Q))}let M;if(w){const Q=Object.assign(Object.assign({prefixCls:`${O}-paragraph`},MWe(C,_)),l5(c));M=p.createElement(kWe,Object.assign({},Q))}k=p.createElement("div",{className:`${O}-content`},I,M)}const A=le(O,{[`${O}-with-avatar`]:C,[`${O}-active`]:u,[`${O}-rtl`]:m==="rtl",[`${O}-round`]:d},h,r,a,y,S);return v(p.createElement("div",{className:A,style:Object.assign(Object.assign({},g),i)},T,k))}return o??null};vm.Button=TWe;vm.Avatar=xWe;vm.Input=$We;vm.Image=CWe;vm.Node=RWe;function rae(){}const DWe=p.createContext({add:rae,remove:rae});function STe(e){const t=p.useContext(DWe),n=p.useRef(null);return ar(a=>{if(a){const i=e?a.querySelector(e):a;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}const aae=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=p.useContext(qE);return Z.createElement(Ur,Object.assign({onClick:n},e),t)},iae=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:a}=p.useContext(qE);return Z.createElement(Ur,Object.assign({},Gxe(n),{loading:e,onClick:a},t),r)};function _Te(e,t){return Z.createElement("span",{className:`${e}-close-x`},t||Z.createElement(Gl,{className:`${e}-close-icon`}))}const ETe=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:a,onOk:i,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=fl("Modal",KEe()),d=t||(u==null?void 0:u.okText),f=r||(u==null?void 0:u.cancelText),m=Z.useMemo(()=>({confirmLoading:a,okButtonProps:s,cancelButtonProps:l,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:i,onCancel:o}),[a,s,l,d,f,n,i,o]);let h;return typeof c=="function"||typeof c>"u"?(h=Z.createElement(Z.Fragment,null,Z.createElement(aae,null),Z.createElement(iae,null)),typeof c=="function"&&(h=c(h,{OkBtn:iae,CancelBtn:aae})),h=Z.createElement(rTe,{value:m},h)):h=c,Z.createElement($j,{disabled:!1},h)},LWe=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"}}}},QWe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},zWe=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,i={};for(let o=a;o>=0;o--)o===0?(i[`${r}${t}-${o}`]={display:"none"},i[`${r}-push-${o}`]={insetInlineStart:"auto"},i[`${r}-pull-${o}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${o}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${o}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${o}`]={marginInlineStart:0},i[`${r}${t}-order-${o}`]={order:0}):(i[`${r}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/a*100}%`,maxWidth:`${o/a*100}%`}],i[`${r}${t}-push-${o}`]={insetInlineStart:`${o/a*100}%`},i[`${r}${t}-pull-${o}`]={insetInlineEnd:`${o/a*100}%`},i[`${r}${t}-offset-${o}`]={marginInlineStart:`${o/a*100}%`},i[`${r}${t}-order-${o}`]={order:o});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},x9=(e,t)=>zWe(e,t),BWe=(e,t,n)=>({[`@media (min-width: ${de(t)})`]:Object.assign({},x9(e,n))}),FWe=()=>({}),UWe=()=>({}),jWe=Er("Grid",LWe,FWe),xTe=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),XWe=Er("Grid",e=>{const t=nr(e,{gridColumns:24}),n=xTe(t);return delete n.xs,[QWe(t),x9(t,""),x9(t,"-xs"),Object.keys(n).map(r=>BWe(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},UWe);function oae(e){return{position:e,inset:0}}const TTe=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({},oae("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},oae("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Bj(e)}]},YWe=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:`${de(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Qr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${de(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:de(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ul(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${de(e.borderRadiusLG)} ${de(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:`${de(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"}}}]},gWe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},OWe=e=>{const{componentCls:t}=e,n=Zxe(e),r=Object.assign({},n);delete r.xs;const a=`--${t.replace(".","")}-`,i=Object.keys(r).map(o=>({[`@media (min-width: ${de(r[o])})`]:{width:`var(${a}${o}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Ke(Object.keys(n).map((o,s)=>{const l=Object.keys(n)[s-1];return l?{[`${a}${o}-width`]:`var(${a}${l}-width)`}:null})),[{width:`var(${a}xs-width)`}],Ke(i))}}},Jxe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return nr(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()})},eTe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${de(e.paddingMD)} ${de(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${de(e.padding)} ${de(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${de(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${de(e.paddingXS)} ${de(e.padding)}`:0,footerBorderTop:e.wireframe?`${de(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${de(e.padding*2)} ${de(e.padding*2)} ${de(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),tTe=Er("Modal",e=>{const t=Jxe(e);return[hWe(t),gWe(t),Kxe(t),wb(t,"zoom"),OWe(t)]},eTe,{unitless:{titleLineHeight:!0}});var bWe=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{i9={x:e.pageX,y:e.pageY},setTimeout(()=>{i9=null},100)};zqe()&&document.documentElement.addEventListener("click",vWe,!0);const nTe=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:i,centered:o,getContainer:s,focusTriggerAfterClose:l=!0,style:c,visible:u,width:d=520,footer:f,classNames:m,styles:h,children:g,loading:O,confirmLoading:v,zIndex:y,mousePosition:S,onOk:C,onCancel:_,destroyOnHidden:w,destroyOnClose:T,panelRef:A=null,modalRender:k}=e,I=bWe(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:M,getPrefixCls:Q,direction:F,modal:L}=p.useContext(fn),U=we=>{v||_==null||_(we)},R=we=>{C==null||C(we)},$=Q("modal",t),P=Q(),z=Fa($),[B,D,X]=tTe($,z),Y=ce(i,{[`${$}-centered`]:o??(L==null?void 0:L.centered),[`${$}-wrap-rtl`]:F==="rtl"}),q=f!==null&&!O?p.createElement(Hxe,Object.assign({},e,{onOk:R,onCancel:U})):null,[H,J,te,ne]=dj(j0(e),j0(L),{closable:!0,closeIcon:p.createElement(Gl,{className:`${$}-close-icon`}),closeIconRender:we=>Gxe($,we)}),ie=k?we=>p.createElement("div",{className:`${$}-render`},k(we)):void 0,le=`.${$}-${k?"render":"content"}`,ue=Wxe(le),oe=Ci(A,ue),[ge,ve]=Ed("Modal",y),[he,me]=p.useMemo(()=>d&&typeof d=="object"?[void 0,d]:[d,void 0],[d]),xe=p.useMemo(()=>{const we={};return me&&Object.keys(me).forEach(Qe=>{const Ie=me[Qe];Ie!==void 0&&(we[`--${$}-${Qe}-width`]=typeof Ie=="number"?`${Ie}px`:Ie)}),we},[$,me]);return B(p.createElement(hu,{form:!0,space:!0},p.createElement(QE.Provider,{value:ve},p.createElement(vj,Object.assign({width:he},I,{zIndex:ge,getContainer:s===void 0?M:s,prefixCls:$,rootClassName:ce(D,r,X,z),footer:q,visible:a??u,mousePosition:S??i9,onClose:U,closable:H&&Object.assign({disabled:te,closeIcon:J},ne),closeIcon:J,focusTriggerAfterClose:l,transitionName:cl(P,"zoom",e.transitionName),maskTransitionName:cl(P,"fade",e.maskTransitionName),className:ce(D,n,L==null?void 0:L.className),style:Object.assign(Object.assign(Object.assign({},L==null?void 0:L.style),c),xe),classNames:Object.assign(Object.assign(Object.assign({},L==null?void 0:L.classNames),m),{wrapper:ce(Y,m==null?void 0:m.wrapper)}),styles:Object.assign(Object.assign({},L==null?void 0:L.styles),h),panelRef:oe,destroyOnClose:w??T,modalRender:ie}),O?p.createElement(pm,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):g))))},yWe=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:i,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},dd()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${de(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${de(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, - ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},SWe=mg(["Modal","confirm"],e=>{const t=Jxe(e);return yWe(t)},eTe,{order:-1e3});var _We=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(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:i,type:o,okCancel:s,footer:l,locale:c}=e,u=_We(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&n!==null)switch(o){case"info":d=p.createElement(ik,null);break;case"success":d=p.createElement(hg,null);break;case"error":d=p.createElement(Pf,null);break;default:d=p.createElement(xb,null)}const f=s??o==="confirm",m=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=fl("Modal"),g=c||h,O=r||(f?g==null?void 0:g.okText:g==null?void 0:g.justOkText),v=a||(g==null?void 0:g.cancelText),y=p.useMemo(()=>Object.assign({autoFocusButton:m,cancelTextLocale:v,okTextLocale:O,mergedOkCancel:f},u),[m,v,O,f,u]),S=p.createElement(p.Fragment,null,p.createElement(pre,null),p.createElement(mre,null)),C=e.title!==void 0&&e.title!==null,_=`${i}-body`;return p.createElement("div",{className:`${i}-body-wrapper`},p.createElement("div",{className:ce(_,{[`${_}-has-title`]:C})},d,p.createElement("div",{className:`${i}-paragraph`},C&&p.createElement("span",{className:`${i}-title`},e.title),p.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?p.createElement(Pxe,{value:y},p.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(S,{OkBtn:mre,CancelBtn:pre}):S)):l,p.createElement(SWe,{prefixCls:t}))},EWe=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:i,wrapClassName:o,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:d,title:f}=e,m=`${i}-confirm`,h=e.width||416,g=e.style||{},O=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=ce(m,`${m}-${e.type}`,{[`${m}-rtl`]:a==="rtl"},e.className),[,S]=uo(),C=p.useMemo(()=>n!==void 0?n:S.zIndexPopupBase+pj,[n,S]);return p.createElement(nTe,Object.assign({},e,{className:y,wrapClassName:ce({[`${m}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:f,footer:null,transitionName:cl(s||"","zoom",e.transitionName),maskTransitionName:cl(s||"","fade",e.maskTransitionName),mask:O,maskClosable:v,style:g,styles:Object.assign({body:l,mask:r},d),width:h,zIndex:C,closable:c}),p.createElement(rTe,Object.assign({},e,{confirmPrefixCls:m})))},aTe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return p.createElement(ci,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},p.createElement(EWe,Object.assign({},e)))},mh=[];let iTe="";function oTe(){return iTe}const xWe=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:i}=e,o=TEe(),s=p.useContext(fn),l=oTe()||s.getPrefixCls(),c=r||`${l}-modal`;let u=a;return u===!1&&(u=void 0),Z.createElement(aTe,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:u}))};function XE(e){const t=lj(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),a,i;function o(...u){var d;if(u.some(h=>h==null?void 0:h.triggerCancel)){var m;(d=e.onCancel)===null||d===void 0||(m=d).call.apply(m,[e,()=>{}].concat(Ke(u.slice(1))))}for(let h=0;h{clearTimeout(a),a=setTimeout(()=>{const d=t.getPrefixCls(void 0,oTe()),f=t.getIconPrefixCls(),m=t.getTheme(),h=Z.createElement(xWe,Object.assign({},u));i=sk()(Z.createElement(ci,{prefixCls:d,iconPrefixCls:f,theme:m},typeof t.holderRender=="function"?t.holderRender(h):h),n)})};function l(...u){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,u)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),mh.push(l),{destroy:l,update:c}}function sTe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function lTe(e){return Object.assign(Object.assign({},e),{type:"info"})}function cTe(e){return Object.assign(Object.assign({},e),{type:"success"})}function uTe(e){return Object.assign(Object.assign({},e),{type:"error"})}function dTe(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function TWe({rootPrefixCls:e}){iTe=e}var wWe=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,i=wWe(e,["afterClose","config"]);const[o,s]=p.useState(!0),[l,c]=p.useState(a),{direction:u,getPrefixCls:d}=p.useContext(fn),f=d("modal"),m=d(),h=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},g=(...y)=>{var S;if(s(!1),y.some(w=>w==null?void 0:w.triggerCancel)){var _;(S=l.onCancel)===null||S===void 0||(_=S).call.apply(_,[l,()=>{}].concat(Ke(y.slice(1))))}};p.useImperativeHandle(t,()=>({destroy:g,update:y=>{c(S=>{const C=typeof y=="function"?y(S):y;return Object.assign(Object.assign({},S),C)})}}));const O=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[v]=fl("Modal",pu.Modal);return p.createElement(aTe,Object.assign({prefixCls:f,rootPrefixCls:m},l,{close:g,open:o,afterClose:h,okText:l.okText||(O?v==null?void 0:v.okText:v==null?void 0:v.justOkText),direction:l.direction||u,cancelText:l.cancelText||(v==null?void 0:v.cancelText)},i))},$We=p.forwardRef(CWe);let Lre=0;const RWe=p.memo(p.forwardRef((e,t)=>{const[n,r]=TXe();return p.useImperativeHandle(t,()=>({patchElement:r}),[r]),p.createElement(p.Fragment,null,n)}));function fTe(){const e=p.useRef(null),[t,n]=p.useState([]);p.useEffect(()=>{t.length&&(Ke(t).forEach(o=>{o()}),n([]))},[t]);const r=p.useCallback(i=>function(s){var l;Lre+=1;const c=p.createRef();let u;const d=new Promise(O=>{u=O});let f=!1,m;const h=p.createElement($We,{key:`modal-${Lre}`,config:i(s),ref:c,afterClose:()=>{m==null||m()},isSilent:()=>f,onConfirm:O=>{u(O)}});return m=(l=e.current)===null||l===void 0?void 0:l.patchElement(h),m&&mh.push(m),{destroy:()=>{function O(){var v;(v=c.current)===null||v===void 0||v.destroy()}c.current?O():n(v=>[].concat(Ke(v),[O]))},update:O=>{function v(){var y;(y=c.current)===null||y===void 0||y.update(O)}c.current?v():n(y=>[].concat(Ke(y),[v]))},then:O=>(f=!0,d.then(O))}},[]);return[p.useMemo(()=>({info:r(lTe),success:r(cTe),error:r(uTe),warning:r(sTe),confirm:r(dTe)}),[r]),p.createElement(RWe,{key:"modal-holder",ref:e})]}const PWe=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,i=new kr("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),o=new kr("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new kr("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new kr("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:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!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:l}}}}},kWe=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],AWe={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},NWe=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[AWe[t]]:{value:0,_skip_check_:!0}}}}},IWe=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)},MWe=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"},IWe(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},MWe(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"}}}},kWe.map(n=>NWe(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},pTe=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:i,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:m,notificationMarginEdge:h,notificationProgressBg:g,notificationProgressHeight:O,fontSize:v,lineHeight:y,width:S,notificationIconSize:C,colorText:_,colorSuccessBg:w,colorErrorBg:T,colorInfoBg:A,colorWarningBg:k}=e,I=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:o,boxShadow:r,[I]:{padding:m,width:S,maxWidth:`calc(100vw - ${de(e.calc(h).mul(2).equal())})`,lineHeight:y,wordWrap:"break-word",borderRadius:o,overflow:"hidden","&-success":w?{background:w}:{},"&-error":T?{background:T}:{},"&-info":A?{background:A}:{},"&-warning":k?{background:k}:{}},[`${I}-message`]:{color:d,fontSize:a,lineHeight:e.lineHeightLG},[`${I}-description`]:{fontSize:v,color:_,marginTop:e.marginXS},[`${I}-closable ${I}-message`]:{paddingInlineEnd:e.paddingLG},[`${I}-with-icon ${I}-message`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:a},[`${I}-with-icon ${I}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:v},[`${I}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${I}-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}},Ul(e)),[`${I}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${de(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:O,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:o,background:g}},[`${I}-actions`]:{float:"right",marginTop:e.marginSM}}},LWe=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:i}=e,o=`${t}-notice`,s=new kr("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},zr(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:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,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:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${o}-actions`]:{float:"left"}}})},{[t]:{[`${o}-wrapper`]:pTe(e)}}]},mTe=e=>({zIndexPopup:e.zIndexPopupBase+pj+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),hTe=e=>{const t=e.paddingMD,n=e.paddingLG;return nr(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:`${de(e.paddingMD)} ${de(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},gTe=Er("Notification",e=>{const t=hTe(e);return[LWe(t),PWe(t),DWe(t)]},mTe),QWe=mg(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=hTe(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},pTe(n)),{width:n.width,maxWidth:`calc(100vw - ${de(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},mTe);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{prefixCls:t,icon:n,type:r,message:a,description:i,actions:o,role:s="alert"}=e;let l=null;return n?l=p.createElement("span",{className:`${t}-icon`},n):r&&(l=p.createElement(BWe[r]||null,{className:ce(`${t}-icon`,`${t}-icon-${r}`)})),p.createElement("div",{className:ce({[`${t}-with-icon`]:l}),role:s},l,p.createElement("div",{className:`${t}-message`},a),i&&p.createElement("div",{className:`${t}-description`},i),o&&p.createElement("div",{className:`${t}-actions`},o))},FWe=e=>{const{prefixCls:t,className:n,icon:r,type:a,message:i,description:o,btn:s,actions:l,closable:c=!0,closeIcon:u,className:d}=e,f=zWe(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:m}=p.useContext(fn),h=l??s,g=t||m("notification"),O=`${g}-notice`,v=Fa(g),[y,S,C]=gTe(g,v);return y(p.createElement("div",{className:ce(`${O}-pure-panel`,S,n,C,v)},p.createElement(QWe,{prefixCls:g}),p.createElement(uj,Object.assign({},f,{prefixCls:g,eventKey:"pure",duration:null,closable:c,className:ce({notificationClassName:d}),closeIcon:xj(g,u),content:p.createElement(OTe,{prefixCls:O,icon:r,type:a,message:i,description:o,actions:h})}))))};function UWe(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 jWe(e){return{motionName:`${e}-fade`}}function XWe(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 YWe=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=Fa(t),[r,a,i]=gTe(t,n);return r(Z.createElement(cxe,{classNames:{list:ce(a,i,n)}},e))},GWe=(e,{prefixCls:t,key:n})=>Z.createElement(WWe,{prefixCls:t,key:n},e),HWe=Z.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:i,maxCount:o,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:m,getPopupContainer:h,notification:g,direction:O}=p.useContext(fn),[,v]=uo(),y=a||m("notification"),S=A=>UWe(A,n??Qre,r??Qre),C=()=>ce({[`${y}-rtl`]:s??O==="rtl"}),_=()=>jWe(y),[w,T]=uxe({prefixCls:y,style:S,className:C,motion:_,closable:!0,closeIcon:xj(y),duration:u??VWe,getContainer:()=>(i==null?void 0:i())||(h==null?void 0:h())||document.body,maxCount:o,pauseOnHover:d,showProgress:f,onAllRemoved:l,renderNotifications:GWe,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:v.margin}});return Z.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:y,notification:g})),T});function bTe(e){const t=Z.useRef(null);return _d(),[Z.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:d}=t.current,f=`${u}-notice`,{message:m,description:h,icon:g,type:O,btn:v,actions:y,className:S,style:C,role:_="alert",closeIcon:w,closable:T}=s,A=YWe(s,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),k=y??v,I=xj(f,XWe(w,e,d));return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:qWe},A),{content:Z.createElement(OTe,{prefixCls:f,icon:g,type:O,message:m,description:h,actions:k,role:_}),className:ce(O&&`${f}-${O}`,S,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),C),closeIcon:I,closable:T??!!I}))},i={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{i[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),i},[]),Z.createElement(HWe,Object.assign({key:"notification-holder"},e,{ref:t}))]}function vTe(e){return bTe(e)}const P$=Z.createContext({}),yTe=Z.createContext({message:{},notification:{},modal:{}}),ZWe=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:a,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:a,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},KWe=()=>({}),JWe=Er("App",ZWe,KWe),eGe=e=>{const{prefixCls:t,children:n,className:r,rootClassName:a,message:i,notification:o,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=p.useContext(fn),d=u("app",t),[f,m,h]=JWe(d),g=ce(m,d,r,a,h,{[`${d}-rtl`]:c==="rtl"}),O=p.useContext(P$),v=Z.useMemo(()=>({message:Object.assign(Object.assign({},O.message),i),notification:Object.assign(Object.assign({},O.notification),o)}),[i,o,O.message,O.notification]),[y,S]=Oxe(v.message),[C,_]=vTe(v.notification),[w,T]=fTe(),A=Z.useMemo(()=>({message:y,notification:C,modal:w}),[y,C,w]);_d()(!(h&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const k=l===!1?Z.Fragment:l,I={className:g,style:s};return f(Z.createElement(yTe.Provider,{value:A},Z.createElement(P$.Provider,{value:v},Z.createElement(k,Object.assign({},l===!1?void 0:I),T,S,_,n))))},tGe=()=>Z.useContext(yTe),o9=eGe;o9.useApp=tGe;function STe(e){return t=>p.createElement(ci,{theme:{token:{motion:!1,zIndexPopupBase:0}}},p.createElement(e,Object.assign({},t)))}const YE=(e,t,n,r,a)=>STe(o=>{const{prefixCls:s,style:l}=o,c=p.useRef(null),[u,d]=p.useState(0),[f,m]=p.useState(0),[h,g]=Ir(!1,{value:o.open}),{getPrefixCls:O}=p.useContext(fn),v=O(r||"select",s);p.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver(w=>{const T=w[0].target;d(T.offsetHeight+8),m(T.offsetWidth)}),_=setInterval(()=>{var w;const T=a?`.${a(v)}`:`.${v}-dropdown`,A=(w=c.current)===null||w===void 0?void 0:w.querySelector(T);A&&(clearInterval(_),C.observe(A))},10);return()=>{clearInterval(_),C.disconnect()}}},[v]);let y=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const S={paddingBottom:u,position:"relative",minWidth:f};return p.createElement("div",{ref:c,style:S},p.createElement(e,Object.assign({},y)))}),xk=(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 Tk=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,i=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(a):r;return p.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:p.createElement("span",{className:ce(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},nGe=function(t,n,r,a,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=Z.useMemo(function(){if(Ut(a)==="object")return a.clearIcon;if(i)return i},[a,i]),u=Z.useMemo(function(){return!!(!o&&a&&(r.length||s)&&!(l==="combobox"&&s===""))},[a,o,r.length,s,l]);return{allowClear:u,clearIcon:Z.createElement(Tk,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},_Te=p.createContext(null);function rGe(){return p.useContext(_Te)}function aGe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=p.useState(!1),n=be(t,2),r=n[0],a=n[1],i=p.useRef(null),o=function(){window.clearTimeout(i.current)};p.useEffect(function(){return o},[]);var s=function(c,u){o(),i.current=window.setTimeout(function(){a(c),u&&u()},e)};return[r,s,o]}function ETe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=p.useRef(null),n=p.useRef(null);p.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 iGe(e,t,n,r){var a=p.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},p.useEffect(function(){function i(o){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),a.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function oGe(e){return e&&![Vt.ESC,Vt.SHIFT,Vt.BACKSPACE,Vt.TAB,Vt.WIN_KEY,Vt.ALT,Vt.META,Vt.WIN_KEY_RIGHT,Vt.CTRL,Vt.SEMICOLON,Vt.EQUALS,Vt.CAPS_LOCK,Vt.CONTEXT_MENU,Vt.F1,Vt.F2,Vt.F3,Vt.F4,Vt.F5,Vt.F6,Vt.F7,Vt.F8,Vt.F9,Vt.F10,Vt.F11,Vt.F12].includes(e)}var sGe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],lO=void 0;function lGe(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,i=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,m=e.display,h=e.order,g=e.component,O=g===void 0?"div":g,v=on(e,sGe),y=o&&!m;function S(A){l(c,A)}p.useEffect(function(){return function(){S(null)}},[]);var C=i&&a!==lO?i(a,{index:h}):f,_;r||(_={opacity:y?0:1,height:y?0:lO,overflowY:y?"hidden":lO,order:o?h:lO,pointerEvents:y?"none":lO,position:y?"absolute":lO});var w={};y&&(w["aria-hidden"]=!0);var T=p.createElement(O,Re({className:ce(!r&&n,u),style:se(se({},_),d)},w,v,{ref:t}),C);return o&&(T=p.createElement(Eo,{onResize:function(k){var I=k.offsetWidth;S(I)},disabled:s},T)),T}var HO=p.forwardRef(lGe);HO.displayName="Item";function cGe(e){if(typeof MessageChannel>"u")ur(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function uGe(){var e=p.useRef(null),t=function(r){e.current||(e.current=[],cGe(function(){Fl.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function cO(e,t){var n=p.useState(t),r=be(n,2),a=r[0],i=r[1],o=ar(function(s){e(function(){i(s)})});return[a,o]}var k$=Z.createContext(null),dGe=["component"],fGe=["className"],pGe=["className"],mGe=function(t,n){var r=p.useContext(k$);if(!r){var a=t.component,i=a===void 0?"div":a,o=on(t,dGe);return p.createElement(i,Re({},o,{ref:n}))}var s=r.className,l=on(r,fGe),c=t.className,u=on(t,pGe);return p.createElement(k$.Provider,{value:null},p.createElement(HO,Re({ref:n,className:ce(s,c)},l,u)))},xTe=p.forwardRef(mGe);xTe.displayName="RawItem";var hGe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],TTe="responsive",wTe="invalidate";function gGe(e){return"+ ".concat(e.length," ...")}function OGe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,i=a===void 0?[]:a,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,f=e.style,m=e.className,h=e.maxCount,g=e.renderRest,O=e.renderRawRest,v=e.prefix,y=e.suffix,S=e.component,C=S===void 0?"div":S,_=e.itemComponent,w=e.onVisibleChange,T=on(e,hGe),A=d==="full",k=uGe(),I=cO(k,null),M=be(I,2),Q=M[0],F=M[1],L=Q||0,U=cO(k,new Map),R=be(U,2),$=R[0],P=R[1],z=cO(k,0),B=be(z,2),D=B[0],X=B[1],Y=cO(k,0),q=be(Y,2),H=q[0],J=q[1],te=cO(k,0),ne=be(te,2),ie=ne[0],le=ne[1],ue=cO(k,0),oe=be(ue,2),ge=oe[0],ve=oe[1],he=p.useState(null),me=be(he,2),xe=me[0],we=me[1],Qe=p.useState(null),Ie=be(Qe,2),Ee=Ie[0],De=Ie[1],Le=p.useMemo(function(){return Ee===null&&A?Number.MAX_SAFE_INTEGER:Ee||0},[Ee,Q]),Ne=p.useState(!1),et=be(Ne,2),He=et[0],pt=et[1],lt="".concat(r,"-item"),it=Math.max(D,H),ut=h===TTe,We=i.length&&ut,Me=h===wTe,Ge=We||typeof h=="number"&&i.length>h,ze=p.useMemo(function(){var ft=i;return We?Q===null&&A?ft=i:ft=i.slice(0,Math.min(i.length,L/u)):typeof h=="number"&&(ft=i.slice(0,h)),ft},[i,u,Q,h,We]),qe=p.useMemo(function(){return We?i.slice(Le+1):i.slice(ze.length)},[i,ze,We,Le]),Pe=p.useCallback(function(ft,st){var Et;return typeof l=="function"?l(ft):(Et=l&&(ft==null?void 0:ft[l]))!==null&&Et!==void 0?Et:st},[l]),Ae=p.useCallback(o||function(ft){return ft},[o]);function Oe(ft,st,Et){Ee===ft&&(st===void 0||st===xe)||(De(ft),Et||(pt(ftL){Oe(Jt-1,ft-en-ge+H);break}}y&&St(0)+ge>L&&we(null)}},[L,$,H,ie,ge,Pe,ze]);var Xe=He&&!!qe.length,je={};xe!==null&&We&&(je={position:"absolute",left:xe,top:0});var bt={prefixCls:lt,responsive:We,component:_,invalidate:Me},xt=s?function(ft,st){var Et=Pe(ft,st);return p.createElement(k$.Provider,{key:Et,value:se(se({},bt),{},{order:st,item:ft,itemKey:Et,registerSize:Ue,display:st<=Le})},s(ft,st))}:function(ft,st){var Et=Pe(ft,st);return p.createElement(HO,Re({},bt,{order:st,key:Et,item:ft,renderItem:Ae,itemKey:Et,registerSize:Ue,display:st<=Le}))},vt={order:Xe?Le:Number.MAX_SAFE_INTEGER,className:"".concat(lt,"-rest"),registerSize:rt,display:Xe},Nt=g||gGe,Mt=O?p.createElement(k$.Provider,{value:se(se({},bt),vt)},O(qe)):p.createElement(HO,Re({},bt,vt),typeof Nt=="function"?Nt(qe):Nt),Ot=p.createElement(C,Re({className:ce(!Me&&r,m),style:f,ref:t},T),v&&p.createElement(HO,Re({},bt,{responsive:ut,responsiveDisabled:!We,order:-1,className:"".concat(lt,"-prefix"),registerSize:tt,display:!0}),v),ze.map(xt),Ge?Mt:null,y&&p.createElement(HO,Re({},bt,{responsive:ut,responsiveDisabled:!We,order:Le,className:"".concat(lt,"-suffix"),registerSize:ot,display:!0,style:je}),y));return ut?p.createElement(Eo,{onResize:Te,disabled:!We},Ot):Ot}var cu=p.forwardRef(OGe);cu.displayName="Overflow";cu.Item=xTe;cu.RESPONSIVE=TTe;cu.INVALIDATE=wTe;function bGe(e,t,n){var r=se(se({},e),t);return Object.keys(t).forEach(function(a){var i=t[a];typeof i=="function"&&(r[a]=function(){for(var o,s=arguments.length,l=new Array(s),c=0;cS&&(Ie="".concat(Ee.slice(0,S),"..."))}var De=function(Ne){Ne&&Ne.stopPropagation(),A(he)};return typeof w=="function"?ie(we,Ie,me,Qe,De):ne(he,Ie,me,Qe,De)},ue=function(he){if(!a.length)return null;var me=typeof _=="function"?_(he):_;return typeof w=="function"?ie(void 0,me,!1,!1,void 0,!0):ne({title:me},me,!1)},oe=p.createElement("div",{className:"".concat(H,"-search"),style:{width:z},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},p.createElement(CTe,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:m,autoComplete:h,editable:te,activeDescendantId:g,value:J,onKeyDown:M,onMouseDown:Q,onChange:k,onPaste:I,onCompositionStart:F,onCompositionEnd:L,onBlur:U,tabIndex:O,attrs:bi(t,!0)}),p.createElement("span",{ref:R,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},J," ")),ge=p.createElement(cu,{prefixCls:"".concat(H,"-overflow"),data:a,renderItem:le,renderRest:ue,suffix:oe,itemKey:wGe,maxCount:y});return p.createElement("span",{className:"".concat(H,"-wrap")},ge,!a.length&&!J&&p.createElement("span",{className:"".concat(H,"-placeholder")},c))},$Ge=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,i=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,m=t.placeholder,h=t.tabIndex,g=t.showSearch,O=t.searchValue,v=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,C=t.onInputMouseDown,_=t.onInputChange,w=t.onInputPaste,T=t.onInputCompositionStart,A=t.onInputCompositionEnd,k=t.onInputBlur,I=t.title,M=p.useState(!1),Q=be(M,2),F=Q[0],L=Q[1],U=u==="combobox",R=U||g,$=f[0],P=O||"";U&&v&&!F&&(P=v),p.useEffect(function(){U&&L(!1)},[U,v]);var z=u!=="combobox"&&!d&&!g?!1:!!P,B=I===void 0?RTe($):I,D=p.useMemo(function(){return $?null:p.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},m)},[$,z,m,r]);return p.createElement("span",{className:"".concat(r,"-selection-wrap")},p.createElement("span",{className:"".concat(r,"-selection-search")},p.createElement(CTe,{ref:i,prefixCls:r,id:a,open:d,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:R,activeDescendantId:c,value:P,onKeyDown:S,onMouseDown:C,onChange:function(Y){L(!0),_(Y)},onPaste:w,onCompositionStart:T,onCompositionEnd:A,onBlur:k,tabIndex:h,attrs:bi(t,!0),maxLength:U?y:void 0})),!U&&$?p.createElement("span",{className:"".concat(r,"-selection-item"),title:B,style:z?{visibility:"hidden"}:void 0},$.label):null,D)},RGe=function(t,n){var r=p.useRef(null),a=p.useRef(!1),i=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.prefix,f=t.autoClearSearchValue,m=t.onSearch,h=t.onSearchSubmit,g=t.onToggleOpen,O=t.onInputKeyDown,v=t.onInputBlur,y=t.domRef;p.useImperativeHandle(n,function(){return{focus:function(B){r.current.focus(B)},blur:function(){r.current.blur()}}});var S=ETe(0),C=be(S,2),_=C[0],w=C[1],T=function(B){var D=B.which,X=r.current instanceof HTMLTextAreaElement;!X&&o&&(D===Vt.UP||D===Vt.DOWN)&&B.preventDefault(),O&&O(B),D===Vt.ENTER&&s==="tags"&&!a.current&&!o&&(h==null||h(B.target.value)),!(X&&!o&&~[Vt.UP,Vt.DOWN,Vt.LEFT,Vt.RIGHT].indexOf(D))&&oGe(D)&&g(!0)},A=function(){w(!0)},k=p.useRef(null),I=function(B){m(B,!0,a.current)!==!1&&g(!0)},M=function(){a.current=!0},Q=function(B){a.current=!1,s!=="combobox"&&I(B.target.value)},F=function(B){var D=B.target.value;if(c&&k.current&&/[\r\n]/.test(k.current)){var X=k.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");D=D.replace(X,k.current)}k.current=null,I(D)},L=function(B){var D=B.clipboardData,X=D==null?void 0:D.getData("text");k.current=X||""},U=function(B){var D=B.target;if(D!==r.current){var X=document.body.style.msTouchAction!==void 0;X?setTimeout(function(){r.current.focus()}):r.current.focus()}},R=function(B){var D=_();B.target!==r.current&&!D&&!(s==="combobox"&&u)&&B.preventDefault(),(s!=="combobox"&&(!l||!D)||!o)&&(o&&f!==!1&&m("",!0,!1),g())},$={inputRef:r,onInputKeyDown:T,onInputMouseDown:A,onInputChange:F,onInputPaste:L,onInputCompositionStart:M,onInputCompositionEnd:Q,onInputBlur:v},P=s==="multiple"||s==="tags"?p.createElement(CGe,Re({},t,$)):p.createElement($Ge,Re({},t,$));return p.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:U,onMouseDown:R},d&&p.createElement("div",{className:"".concat(i,"-prefix")},d),P)},PGe=p.forwardRef(RGe);function kGe(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,i=r||{},o=i.className,s=i.content,l=a.x,c=l===void 0?0:l,u=a.y,d=u===void 0?0:u,f=p.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],g=n.points[1],O=h[0],v=h[1],y=g[0],S=g[1];O===y||!["t","b"].includes(O)?m.top=d:O==="t"?m.top=0:m.bottom=0,v===S||!["l","r"].includes(v)?m.left=c:v==="l"?m.left=0:m.right=0}return p.createElement("div",{ref:f,className:ce("".concat(t,"-arrow"),o),style:m},s)}function AGe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,i=e.motion;return a?p.createElement(ao,Re({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return p.createElement("div",{style:{zIndex:r},className:ce("".concat(t,"-mask"),s)})}):null}var NGe=p.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),IGe=p.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,i=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,O=e.motion,v=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,C=e.autoDestroy,_=e.portal,w=e.zIndex,T=e.onMouseEnter,A=e.onMouseLeave,k=e.onPointerEnter,I=e.onPointerDownCapture,M=e.ready,Q=e.offsetX,F=e.offsetY,L=e.offsetR,U=e.offsetB,R=e.onAlign,$=e.onPrepare,P=e.stretch,z=e.targetWidth,B=e.targetHeight,D=typeof n=="function"?n():n,X=l||c,Y=(S==null?void 0:S.length)>0,q=p.useState(!S||!Y),H=be(q,2),J=H[0],te=H[1];if(tr(function(){!J&&Y&&o&&te(!0)},[J,Y,o]),!J)return null;var ne="auto",ie={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(M||!l){var le,ue=g.points,oe=g.dynamicInset||((le=g._experimental)===null||le===void 0?void 0:le.dynamicInset),ge=oe&&ue[0][1]==="r",ve=oe&&ue[0][0]==="b";ge?(ie.right=L,ie.left=ne):(ie.left=Q,ie.right=ne),ve?(ie.bottom=U,ie.top=ne):(ie.top=F,ie.bottom=ne)}var he={};return P&&(P.includes("height")&&B?he.height=B:P.includes("minHeight")&&B&&(he.minHeight=B),P.includes("width")&&z?he.width=z:P.includes("minWidth")&&z&&(he.minWidth=z)),l||(he.pointerEvents="none"),p.createElement(_,{open:y||X,getContainer:S&&function(){return S(o)},autoDestroy:C},p.createElement(AGe,{prefixCls:a,open:l,zIndex:w,mask:f,motion:v}),p.createElement(Eo,{onResize:R,disabled:!l},function(me){return p.createElement(ao,Re({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(a,"-hidden")},O,{onAppearPrepare:$,onEnterPrepare:$,visible:l,onVisibleChanged:function(we){var Qe;O==null||(Qe=O.onVisibleChanged)===null||Qe===void 0||Qe.call(O,we),s(we)}}),function(xe,we){var Qe=xe.className,Ie=xe.style,Ee=ce(a,Qe,r);return p.createElement("div",{ref:Ci(me,t,we),className:Ee,style:se(se(se(se({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},ie),he),Ie),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:T,onMouseLeave:A,onPointerEnter:k,onClick:d,onPointerDownCapture:I},m&&p.createElement(kGe,{prefixCls:a,arrow:m,arrowPos:h,align:g}),p.createElement(NGe,{cache:!l&&!u},D))})}))}),MGe=p.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=fu(n),i=p.useCallback(function(s){c_(t,r?r(s):s)},[r]),o=Sd(i,fm(n));return a?p.cloneElement(n,{ref:o}):n}),Fre=p.createContext(null);function Ure(e){return e?Array.isArray(e)?e:[e]:[]}function DGe(e,t,n,r){return p.useMemo(function(){var a=Ure(n??t),i=Ure(r??t),o=new Set(a),s=new Set(i);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function LGe(){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 QGe(e,t,n,r){for(var a=n.points,i=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Vv(e){return g_(parseFloat(e),0)}function Xre(e,t){var n=se({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=VE(r).getComputedStyle(r),i=a.overflow,o=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,c=a.borderLeftWidth,u=a.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,m=r.clientHeight,h=r.offsetWidth,g=r.clientWidth,O=Vv(s),v=Vv(l),y=Vv(c),S=Vv(u),C=g_(Math.round(d.width/h*1e3)/1e3),_=g_(Math.round(d.height/f*1e3)/1e3),w=(h-g-y-S)*C,T=(f-m-O-v)*_,A=O*_,k=v*_,I=y*C,M=S*C,Q=0,F=0;if(i==="clip"){var L=Vv(o);Q=L*C,F=L*_}var U=d.x+I-Q,R=d.y+A-F,$=U+d.width+2*Q-I-M-w,P=R+d.height+2*F-A-k-T;n.left=Math.max(n.left,U),n.top=Math.max(n.top,R),n.right=Math.min(n.right,$),n.bottom=Math.min(n.bottom,P)}}),n}function Yre(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 Vre(e,t){var n=t||[],r=be(n,2),a=r[0],i=r[1];return[Yre(e.width,a),Yre(e.height,i)]}function qre(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function uO(e,t){var n=t[0],r=t[1],a,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=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:i}}function ap(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 zGe(e,t,n,r,a,i,o){var s=p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),l=be(s,2),c=l[0],u=l[1],d=p.useRef(0),f=p.useMemo(function(){return t?s9(t):[]},[t]),m=p.useRef({}),h=function(){m.current={}};e||h();var g=ar(function(){if(t&&n&&e){let kt=function(Ln,Un){var Pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:et,Wa=X.x+Ln,qi=X.y+Un,vs=Wa+ve,Mg=qi+ge,xm=Math.max(Wa,Pr.left),_n=Math.max(qi,Pr.top),pr=Math.min(vs,Pr.right),La=Math.min(Mg,Pr.bottom);return Math.max(0,(pr-xm)*(La-_n))},ln=function(){Gn=X.y+Nt,Xn=Gn+ge,gr=X.x+vt,Fn=gr+ve};var y,S,C,_,w=t,T=w.ownerDocument,A=VE(w),k=A.getComputedStyle(w),I=k.position,M=w.style.left,Q=w.style.top,F=w.style.right,L=w.style.bottom,U=w.style.overflow,R=se(se({},a[r]),i),$=T.createElement("div");(y=w.parentElement)===null||y===void 0||y.appendChild($),$.style.left="".concat(w.offsetLeft,"px"),$.style.top="".concat(w.offsetTop,"px"),$.style.position=I,$.style.height="".concat(w.offsetHeight,"px"),$.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else{var z,B,D=n.getBoundingClientRect();D.x=(z=D.x)!==null&&z!==void 0?z:D.left,D.y=(B=D.y)!==null&&B!==void 0?B:D.top,P={x:D.x,y:D.y,width:D.width,height:D.height}}var X=w.getBoundingClientRect(),Y=A.getComputedStyle(w),q=Y.height,H=Y.width;X.x=(S=X.x)!==null&&S!==void 0?S:X.left,X.y=(C=X.y)!==null&&C!==void 0?C:X.top;var J=T.documentElement,te=J.clientWidth,ne=J.clientHeight,ie=J.scrollWidth,le=J.scrollHeight,ue=J.scrollTop,oe=J.scrollLeft,ge=X.height,ve=X.width,he=P.height,me=P.width,xe={left:0,top:0,right:te,bottom:ne},we={left:-oe,top:-ue,right:ie-oe,bottom:le-ue},Qe=R.htmlRegion,Ie="visible",Ee="visibleFirst";Qe!=="scroll"&&Qe!==Ee&&(Qe=Ie);var De=Qe===Ee,Le=Xre(we,f),Ne=Xre(xe,f),et=Qe===Ie?Ne:Le,He=De?Ne:et;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var pt=w.getBoundingClientRect();w.style.left=M,w.style.top=Q,w.style.right=F,w.style.bottom=L,w.style.overflow=U,(_=w.parentElement)===null||_===void 0||_.removeChild($);var lt=g_(Math.round(ve/parseFloat(H)*1e3)/1e3),it=g_(Math.round(ge/parseFloat(q)*1e3)/1e3);if(lt===0||it===0||l_(n)&&!Tb(n))return;var ut=R.offset,We=R.targetOffset,Me=Vre(X,ut),Ge=be(Me,2),ze=Ge[0],qe=Ge[1],Pe=Vre(P,We),Ae=be(Pe,2),Oe=Ae[0],Te=Ae[1];P.x-=Oe,P.y-=Te;var Ue=R.points||[],rt=be(Ue,2),tt=rt[0],ot=rt[1],St=qre(ot),Xe=qre(tt),je=uO(P,St),bt=uO(X,Xe),xt=se({},R),vt=je.x-bt.x+ze,Nt=je.y-bt.y+qe,Mt=kt(vt,Nt),Ot=kt(vt,Nt,Ne),ft=uO(P,["t","l"]),st=uO(X,["t","l"]),Et=uO(P,["b","r"]),Jt=uO(X,["b","r"]),en=R.overflow||{},Rn=en.adjustX,jt=en.adjustY,wt=en.shiftX,an=en.shiftY,$n=function(Un){return typeof Un=="boolean"?Un:Un>=0},Gn,Xn,gr,Fn;ln();var Bt=$n(jt),Se=Xe[0]===St[0];if(Bt&&Xe[0]==="t"&&(Xn>He.bottom||m.current.bt)){var Fe=Nt;Se?Fe-=ge-he:Fe=ft.y-Jt.y-qe;var mt=kt(vt,Fe),yt=kt(vt,Fe,Ne);mt>Mt||mt===Mt&&(!De||yt>=Ot)?(m.current.bt=!0,Nt=Fe,qe=-qe,xt.points=[ap(Xe,0),ap(St,0)]):m.current.bt=!1}if(Bt&&Xe[0]==="b"&&(GnMt||$t===Mt&&(!De||sn>=Ot)?(m.current.tb=!0,Nt=Qt,qe=-qe,xt.points=[ap(Xe,0),ap(St,0)]):m.current.tb=!1}var Cn=$n(Rn),It=Xe[1]===St[1];if(Cn&&Xe[1]==="l"&&(Fn>He.right||m.current.rl)){var Ze=vt;It?Ze-=ve-me:Ze=ft.x-Jt.x-ze;var dt=kt(Ze,Nt),hn=kt(Ze,Nt,Ne);dt>Mt||dt===Mt&&(!De||hn>=Ot)?(m.current.rl=!0,vt=Ze,ze=-ze,xt.points=[ap(Xe,1),ap(St,1)]):m.current.rl=!1}if(Cn&&Xe[1]==="r"&&(grMt||rr===Mt&&(!De||ca>=Ot)?(m.current.lr=!0,vt=Vn,ze=-ze,xt.points=[ap(Xe,1),ap(St,1)]):m.current.lr=!1}ln();var Wr=wt===!0?0:wt;typeof Wr=="number"&&(grNe.right&&(vt-=Fn-Ne.right-ze,P.x>Ne.right-Wr&&(vt+=P.x-Ne.right+Wr)));var na=an===!0?0:an;typeof na=="number"&&(GnNe.bottom&&(Nt-=Xn-Ne.bottom-qe,P.y>Ne.bottom-na&&(Nt+=P.y-Ne.bottom+na)));var Gr=X.x+vt,ra=Gr+ve,Ra=X.y+Nt,xr=Ra+ge,pn=P.x,cn=pn+me,fr=P.y,rn=fr+he,Zt=Math.max(Gr,pn),or=Math.min(ra,cn),Hr=(Zt+or)/2,Sn=Hr-Gr,Kn=Math.max(Ra,fr),Ar=Math.min(xr,rn),Tr=(Kn+Ar)/2,qn=Tr-Ra;o==null||o(t,xt);var Tt=pt.right-X.x-(vt+X.width),Ht=pt.bottom-X.y-(Nt+X.height);lt===1&&(vt=Math.floor(vt),Tt=Math.floor(Tt)),it===1&&(Nt=Math.floor(Nt),Ht=Math.floor(Ht));var Jn={ready:!0,offsetX:vt/lt,offsetY:Nt/it,offsetR:Tt/lt,offsetB:Ht/it,arrowX:Sn/lt,arrowY:qn/it,scaleX:lt,scaleY:it,align:xt};u(Jn)}}),O=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&g()})},v=function(){u(function(S){return se(se({},S),{},{ready:!1})})};return tr(v,[r]),tr(function(){e||v()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,O]}function BGe(e,t,n,r,a){tr(function(){if(e&&t&&n){let d=function(){r(),a()};var i=t,o=n,s=s9(i),l=s9(o),c=VE(o),u=new Set([c].concat(Ke(s),Ke(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function FGe(e,t,n,r,a,i,o,s){var l=p.useRef(e);l.current=e;var c=p.useRef(!1);p.useEffect(function(){if(t&&r&&(!a||i)){var d=function(){c.current=!1},f=function(O){var v;l.current&&!o(((v=O.composedPath)===null||v===void 0||(v=v.call(O))===null||v===void 0?void 0:v[0])||O.target)&&!c.current&&s(!1)},m=VE(r);m.addEventListener("pointerdown",d,!0),m.addEventListener("mousedown",f,!0),m.addEventListener("contextmenu",f,!0);var h=w$(n);return h&&(h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0)),function(){m.removeEventListener("pointerdown",d,!0),m.removeEventListener("mousedown",f,!0),m.removeEventListener("contextmenu",f,!0),h&&(h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0))}}},[t,n,r,a,i]);function u(){c.current=!0}return u}var UGe=["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 jGe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:UE,t=p.forwardRef(function(n,r){var a=n.prefixCls,i=a===void 0?"rc-trigger-popup":a,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,m=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,O=n.mouseLeaveDelay,v=O===void 0?.1:O,y=n.focusDelay,S=n.blurDelay,C=n.mask,_=n.maskClosable,w=_===void 0?!0:_,T=n.getPopupContainer,A=n.forceRender,k=n.autoDestroy,I=n.destroyPopupOnHide,M=n.popup,Q=n.popupClassName,F=n.popupStyle,L=n.popupPlacement,U=n.builtinPlacements,R=U===void 0?{}:U,$=n.popupAlign,P=n.zIndex,z=n.stretch,B=n.getPopupClassNameFromAlign,D=n.fresh,X=n.alignPoint,Y=n.onPopupClick,q=n.onPopupAlign,H=n.arrow,J=n.popupMotion,te=n.maskMotion,ne=n.popupTransitionName,ie=n.popupAnimation,le=n.maskTransitionName,ue=n.maskAnimation,oe=n.className,ge=n.getTriggerDOMNode,ve=on(n,UGe),he=k||I||!1,me=p.useState(!1),xe=be(me,2),we=xe[0],Qe=xe[1];tr(function(){Qe(xk())},[]);var Ie=p.useRef({}),Ee=p.useContext(Fre),De=p.useMemo(function(){return{registerSubPopup:function(pr,La){Ie.current[pr]=La,Ee==null||Ee.registerSubPopup(pr,La)}}},[Ee]),Le=$b(),Ne=p.useState(null),et=be(Ne,2),He=et[0],pt=et[1],lt=p.useRef(null),it=ar(function(_n){lt.current=_n,l_(_n)&&He!==_n&&pt(_n),Ee==null||Ee.registerSubPopup(Le,_n)}),ut=p.useState(null),We=be(ut,2),Me=We[0],Ge=We[1],ze=p.useRef(null),qe=ar(function(_n){l_(_n)&&Me!==_n&&(Ge(_n),ze.current=_n)}),Pe=p.Children.only(o),Ae=(Pe==null?void 0:Pe.props)||{},Oe={},Te=ar(function(_n){var pr,La,ei=Me;return(ei==null?void 0:ei.contains(_n))||((pr=w$(ei))===null||pr===void 0?void 0:pr.host)===_n||_n===ei||(He==null?void 0:He.contains(_n))||((La=w$(He))===null||La===void 0?void 0:La.host)===_n||_n===He||Object.values(Ie.current).some(function(Ga){return(Ga==null?void 0:Ga.contains(_n))||_n===Ga})}),Ue=jre(i,J,ie,ne),rt=jre(i,te,ue,le),tt=p.useState(f||!1),ot=be(tt,2),St=ot[0],Xe=ot[1],je=d??St,bt=ar(function(_n){d===void 0&&Xe(_n)});tr(function(){Xe(d||!1)},[d]);var xt=p.useRef(je);xt.current=je;var vt=p.useRef([]);vt.current=[];var Nt=ar(function(_n){var pr;bt(_n),((pr=vt.current[vt.current.length-1])!==null&&pr!==void 0?pr:je)!==_n&&(vt.current.push(_n),m==null||m(_n))}),Mt=p.useRef(),Ot=function(){clearTimeout(Mt.current)},ft=function(pr){var La=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ot(),La===0?Nt(pr):Mt.current=setTimeout(function(){Nt(pr)},La*1e3)};p.useEffect(function(){return Ot},[]);var st=p.useState(!1),Et=be(st,2),Jt=Et[0],en=Et[1];tr(function(_n){(!_n||je)&&en(!0)},[je]);var Rn=p.useState(null),jt=be(Rn,2),wt=jt[0],an=jt[1],$n=p.useState(null),Gn=be($n,2),Xn=Gn[0],gr=Gn[1],Fn=function(pr){gr([pr.clientX,pr.clientY])},Bt=zGe(je,He,X&&Xn!==null?Xn:Me,L,R,$,q),Se=be(Bt,11),Fe=Se[0],mt=Se[1],yt=Se[2],Qt=Se[3],$t=Se[4],sn=Se[5],Cn=Se[6],It=Se[7],Ze=Se[8],dt=Se[9],hn=Se[10],Vn=DGe(we,l,c,u),rr=be(Vn,2),ca=rr[0],Wr=rr[1],na=ca.has("click"),Gr=Wr.has("click")||Wr.has("contextMenu"),ra=ar(function(){Jt||hn()}),Ra=function(){xt.current&&X&&Gr&&ft(!1)};BGe(je,Me,He,ra,Ra),tr(function(){ra()},[Xn,L]),tr(function(){je&&!(R!=null&&R[L])&&ra()},[JSON.stringify($)]);var xr=p.useMemo(function(){var _n=QGe(R,i,dt,X);return ce(_n,B==null?void 0:B(dt))},[dt,B,R,i,X]);p.useImperativeHandle(r,function(){return{nativeElement:ze.current,popupElement:lt.current,forceAlign:ra}});var pn=p.useState(0),cn=be(pn,2),fr=cn[0],rn=cn[1],Zt=p.useState(0),or=be(Zt,2),Hr=or[0],Sn=or[1],Kn=function(){if(z&&Me){var pr=Me.getBoundingClientRect();rn(pr.width),Sn(pr.height)}},Ar=function(){Kn(),ra()},Tr=function(pr){en(!1),hn(),h==null||h(pr)},qn=function(){return new Promise(function(pr){Kn(),an(function(){return pr})})};tr(function(){wt&&(hn(),wt(),an(null))},[wt]);function Tt(_n,pr,La,ei){Oe[_n]=function(Ga){var Dg;ei==null||ei(Ga),ft(pr,La);for(var Nd=arguments.length,Uf=new Array(Nd>1?Nd-1:0),Qc=1;Qc1?La-1:0),Ga=1;Ga1?La-1:0),Ga=1;Ga1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],i=PTe(n,!1),o=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,f){Array.isArray(d)&&d.forEach(function(m){if(f||!(l in m)){var h=m[s];a.push({key:Wre(m,a.length),groupOption:f,data:m,label:m[o],value:h})}else{var g=m[c];g===void 0&&r&&(g=m.label),a.push({key:Wre(m,a.length),group:!0,data:m,label:g}),u(m[l],!0)}})}return u(e,!1),a}function c9(e){var t=se({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ma(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var GGe=function(t,n,r){if(!n||!n.length)return null;var a=!1,i=function s(l,c){var u=yEe(c),d=u[0],f=u.slice(1);if(!d)return[l];var m=l.split(d);return a=a||m.length>1,m.reduce(function(h,g){return[].concat(Ke(h),Ke(s(g,f)))},[]).filter(Boolean)},o=i(t,n);return a?typeof r<"u"?o.slice(0,r):o:null},Tj=p.createContext(null);function HGe(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return p.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 i=a.label,o=a.value;return["number","string"].includes(Ut(i))?i:o}).join(", ")),n.length>r?", ...":null)}var ZGe=["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"],KGe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],u9=function(t){return t==="tags"||t==="multiple"},JGe=p.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,i=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,m=e.notFoundContent,h=m===void 0?"Not Found":m,g=e.onClear,O=e.mode,v=e.disabled,y=e.loading,S=e.getInputElement,C=e.getRawInputElement,_=e.open,w=e.defaultOpen,T=e.onDropdownVisibleChange,A=e.activeValue,k=e.onActiveValueChange,I=e.activeDescendantId,M=e.searchValue,Q=e.autoClearSearchValue,F=e.onSearch,L=e.onSearchSplit,U=e.tokenSeparators,R=e.allowClear,$=e.prefix,P=e.suffixIcon,z=e.clearIcon,B=e.OptionList,D=e.animation,X=e.transitionName,Y=e.dropdownStyle,q=e.dropdownClassName,H=e.dropdownMatchSelectWidth,J=e.dropdownRender,te=e.dropdownAlign,ne=e.placement,ie=e.builtinPlacements,le=e.getPopupContainer,ue=e.showAction,oe=ue===void 0?[]:ue,ge=e.onFocus,ve=e.onBlur,he=e.onKeyUp,me=e.onKeyDown,xe=e.onMouseDown,we=on(e,ZGe),Qe=u9(O),Ie=(o!==void 0?o:Qe)||O==="combobox",Ee=se({},we);KGe.forEach(function(pn){delete Ee[pn]}),c==null||c.forEach(function(pn){delete Ee[pn]});var De=p.useState(!1),Le=be(De,2),Ne=Le[0],et=Le[1];p.useEffect(function(){et(xk())},[]);var He=p.useRef(null),pt=p.useRef(null),lt=p.useRef(null),it=p.useRef(null),ut=p.useRef(null),We=p.useRef(!1),Me=aGe(),Ge=be(Me,3),ze=Ge[0],qe=Ge[1],Pe=Ge[2];p.useImperativeHandle(t,function(){var pn,cn;return{focus:(pn=it.current)===null||pn===void 0?void 0:pn.focus,blur:(cn=it.current)===null||cn===void 0?void 0:cn.blur,scrollTo:function(rn){var Zt;return(Zt=ut.current)===null||Zt===void 0?void 0:Zt.scrollTo(rn)},nativeElement:He.current||pt.current}});var Ae=p.useMemo(function(){var pn;if(O!=="combobox")return M;var cn=(pn=u[0])===null||pn===void 0?void 0:pn.value;return typeof cn=="string"||typeof cn=="number"?String(cn):""},[M,O,u]),Oe=O==="combobox"&&typeof S=="function"&&S()||null,Te=typeof C=="function"&&C(),Ue=Sd(pt,Te==null||(n=Te.props)===null||n===void 0?void 0:n.ref),rt=p.useState(!1),tt=be(rt,2),ot=tt[0],St=tt[1];tr(function(){St(!0)},[]);var Xe=Ir(!1,{defaultValue:w,value:_}),je=be(Xe,2),bt=je[0],xt=je[1],vt=ot?bt:!1,Nt=!h&&f;(v||Nt&&vt&&O==="combobox")&&(vt=!1);var Mt=Nt?!1:vt,Ot=p.useCallback(function(pn){var cn=pn!==void 0?pn:!vt;v||(xt(cn),vt!==cn&&(T==null||T(cn)))},[v,vt,xt,T]),ft=p.useMemo(function(){return(U||[]).some(function(pn){return[` + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},VWe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},qWe=e=>{const{componentCls:t}=e,n=xTe(e),r=Object.assign({},n);delete r.xs;const a=`--${t.replace(".","")}-`,i=Object.keys(r).map(o=>({[`@media (min-width: ${de(r[o])})`]:{width:`var(${a}${o}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(et(Object.keys(n).map((o,s)=>{const l=Object.keys(n)[s-1];return l?{[`${a}${o}-width`]:`var(${a}${l}-width)`}:null})),[{width:`var(${a}xs-width)`}],et(i))}}},wTe=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return nr(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()})},CTe=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${de(e.paddingMD)} ${de(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${de(e.padding)} ${de(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${de(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${de(e.paddingXS)} ${de(e.padding)}`:0,footerBorderTop:e.wireframe?`${de(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${de(e.padding*2)} ${de(e.padding*2)} ${de(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),$Te=Er("Modal",e=>{const t=wTe(e);return[YWe(t),VWe(t),TTe(t),kb(t,"zoom"),qWe(t)]},CTe,{unitless:{titleLineHeight:!0}});var WWe=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{T9={x:e.pageX,y:e.pageY},setTimeout(()=>{T9=null},100)};hWe()&&document.documentElement.addEventListener("click",GWe,!0);const RTe=e=>{const{prefixCls:t,className:n,rootClassName:r,open:a,wrapClassName:i,centered:o,getContainer:s,focusTriggerAfterClose:l=!0,style:c,visible:u,width:d=520,footer:f,classNames:m,styles:h,children:g,loading:O,confirmLoading:v,zIndex:y,mousePosition:S,onOk:C,onCancel:_,destroyOnHidden:w,destroyOnClose:T,panelRef:k=null,modalRender:A}=e,I=WWe(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:M,getPrefixCls:Q,direction:B,modal:D}=p.useContext(pn),U=Ce=>{v||_==null||_(Ce)},R=Ce=>{C==null||C(Ce)},$=Q("modal",t),P=Q(),z=Ua($),[F,L,X]=$Te($,z),Y=le(i,{[`${$}-centered`]:o??(D==null?void 0:D.centered),[`${$}-wrap-rtl`]:B==="rtl"}),q=f!==null&&!O?p.createElement(ETe,Object.assign({},e,{onOk:R,onCancel:U})):null,[G,ee,K,ne]=Mj(W0(e),W0(D),{closable:!0,closeIcon:p.createElement(Gl,{className:`${$}-close-icon`}),closeIconRender:Ce=>_Te($,Ce)}),ie=A?Ce=>p.createElement("div",{className:`${$}-render`},A(Ce)):void 0,se=`.${$}-${A?"render":"content"}`,ue=STe(se),ce=Ci(k,ue),[be,ge]=Rd("Modal",y),[Oe,me]=p.useMemo(()=>d&&typeof d=="object"?[void 0,d]:[d,void 0],[d]),Te=p.useMemo(()=>{const Ce={};return me&&Object.keys(me).forEach(Fe=>{const Me=me[Fe];Me!==void 0&&(Ce[`--${$}-${Fe}-width`]=typeof Me=="number"?`${Me}px`:Me)}),Ce},[$,me]);return F(p.createElement(yu,{form:!0,space:!0},p.createElement(XE.Provider,{value:ge},p.createElement(jj,Object.assign({width:Oe},I,{zIndex:be,getContainer:s===void 0?M:s,prefixCls:$,rootClassName:le(L,r,X,z),footer:q,visible:a??u,mousePosition:S??T9,onClose:U,closable:G&&Object.assign({disabled:K,closeIcon:ee},ne),closeIcon:ee,focusTriggerAfterClose:l,transitionName:cl(P,"zoom",e.transitionName),maskTransitionName:cl(P,"fade",e.maskTransitionName),className:le(L,n,D==null?void 0:D.className),style:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),c),Te),classNames:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.classNames),m),{wrapper:le(Y,m==null?void 0:m.wrapper)}),styles:Object.assign(Object.assign({},D==null?void 0:D.styles),h),panelRef:ce,destroyOnClose:w??T,modalRender:ie}),O?p.createElement(vm,{active:!0,title:!1,paragraph:{rows:4},className:`${$}-body-skeleton`}):g))))},HWe=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:a,fontSize:i,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},Od()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${de(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${de(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, + ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},ZWe=_g(["Modal","confirm"],e=>{const t=wTe(e);return HWe(t)},CTe,{order:-1e3});var KWe=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:i,type:o,okCancel:s,footer:l,locale:c}=e,u=KWe(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&n!==null)switch(o){case"info":d=p.createElement(Ok,null);break;case"success":d=p.createElement(Eg,null);break;case"error":d=p.createElement(Df,null);break;default:d=p.createElement(Rb,null)}const f=s??o==="confirm",m=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=fl("Modal"),g=c||h,O=r||(f?g==null?void 0:g.okText:g==null?void 0:g.justOkText),v=a||(g==null?void 0:g.cancelText),y=p.useMemo(()=>Object.assign({autoFocusButton:m,cancelTextLocale:v,okTextLocale:O,mergedOkCancel:f},u),[m,v,O,f,u]),S=p.createElement(p.Fragment,null,p.createElement(Lre,null),p.createElement(Qre,null)),C=e.title!==void 0&&e.title!==null,_=`${i}-body`;return p.createElement("div",{className:`${i}-body-wrapper`},p.createElement("div",{className:le(_,{[`${_}-has-title`]:C})},d,p.createElement("div",{className:`${i}-paragraph`},C&&p.createElement("span",{className:`${i}-title`},e.title),p.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?p.createElement(rTe,{value:y},p.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(S,{OkBtn:Qre,CancelBtn:Lre}):S)):l,p.createElement(ZWe,{prefixCls:t}))},JWe=e=>{const{close:t,zIndex:n,maskStyle:r,direction:a,prefixCls:i,wrapClassName:o,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:d,title:f}=e,m=`${i}-confirm`,h=e.width||416,g=e.style||{},O=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=le(m,`${m}-${e.type}`,{[`${m}-rtl`]:a==="rtl"},e.className),[,S]=co(),C=p.useMemo(()=>n!==void 0?n:S.zIndexPopupBase+Lj,[n,S]);return p.createElement(RTe,Object.assign({},e,{className:y,wrapClassName:le({[`${m}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:f,footer:null,transitionName:cl(s||"","zoom",e.transitionName),maskTransitionName:cl(s||"","fade",e.maskTransitionName),mask:O,maskClosable:v,style:g,styles:Object.assign({body:l,mask:r},d),width:h,zIndex:C,closable:c}),p.createElement(PTe,Object.assign({},e,{confirmPrefixCls:m})))},kTe=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:a}=e;return p.createElement(ui,{prefixCls:t,iconPrefixCls:n,direction:r,theme:a},p.createElement(JWe,Object.assign({},e)))},Sh=[];let ATe="";function NTe(){return ATe}const eGe=e=>{var t,n;const{prefixCls:r,getContainer:a,direction:i}=e,o=KEe(),s=p.useContext(pn),l=NTe()||s.getPrefixCls(),c=r||`${l}-modal`;let u=a;return u===!1&&(u=void 0),Z.createElement(kTe,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:o,getContainer:u}))};function HE(e){const t=Aj(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),a,i;function o(...u){var d;if(u.some(h=>h==null?void 0:h.triggerCancel)){var m;(d=e.onCancel)===null||d===void 0||(m=d).call.apply(m,[e,()=>{}].concat(et(u.slice(1))))}for(let h=0;h{clearTimeout(a),a=setTimeout(()=>{const d=t.getPrefixCls(void 0,NTe()),f=t.getIconPrefixCls(),m=t.getTheme(),h=Z.createElement(eGe,Object.assign({},u));i=vk()(Z.createElement(ui,{prefixCls:d,iconPrefixCls:f,theme:m},typeof t.holderRender=="function"?t.holderRender(h):h),n)})};function l(...u){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,u)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),Sh.push(l),{destroy:l,update:c}}function ITe(e){return Object.assign(Object.assign({},e),{type:"warning"})}function MTe(e){return Object.assign(Object.assign({},e),{type:"info"})}function DTe(e){return Object.assign(Object.assign({},e),{type:"success"})}function LTe(e){return Object.assign(Object.assign({},e),{type:"error"})}function QTe(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function tGe({rootPrefixCls:e}){ATe=e}var nGe=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,i=nGe(e,["afterClose","config"]);const[o,s]=p.useState(!0),[l,c]=p.useState(a),{direction:u,getPrefixCls:d}=p.useContext(pn),f=d("modal"),m=d(),h=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},g=(...y)=>{var S;if(s(!1),y.some(w=>w==null?void 0:w.triggerCancel)){var _;(S=l.onCancel)===null||S===void 0||(_=S).call.apply(_,[l,()=>{}].concat(et(y.slice(1))))}};p.useImperativeHandle(t,()=>({destroy:g,update:y=>{c(S=>{const C=typeof y=="function"?y(S):y;return Object.assign(Object.assign({},S),C)})}}));const O=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[v]=fl("Modal",bu.Modal);return p.createElement(kTe,Object.assign({prefixCls:f,rootPrefixCls:m},l,{close:g,open:o,afterClose:h,okText:l.okText||(O?v==null?void 0:v.okText:v==null?void 0:v.justOkText),direction:l.direction||u,cancelText:l.cancelText||(v==null?void 0:v.cancelText)},i))},aGe=p.forwardRef(rGe);let sae=0;const iGe=p.memo(p.forwardRef((e,t)=>{const[n,r]=tYe();return p.useImperativeHandle(t,()=>({patchElement:r}),[r]),p.createElement(p.Fragment,null,n)}));function zTe(){const e=p.useRef(null),[t,n]=p.useState([]);p.useEffect(()=>{t.length&&(et(t).forEach(o=>{o()}),n([]))},[t]);const r=p.useCallback(i=>function(s){var l;sae+=1;const c=p.createRef();let u;const d=new Promise(O=>{u=O});let f=!1,m;const h=p.createElement(aGe,{key:`modal-${sae}`,config:i(s),ref:c,afterClose:()=>{m==null||m()},isSilent:()=>f,onConfirm:O=>{u(O)}});return m=(l=e.current)===null||l===void 0?void 0:l.patchElement(h),m&&Sh.push(m),{destroy:()=>{function O(){var v;(v=c.current)===null||v===void 0||v.destroy()}c.current?O():n(v=>[].concat(et(v),[O]))},update:O=>{function v(){var y;(y=c.current)===null||y===void 0||y.update(O)}c.current?v():n(y=>[].concat(et(y),[v]))},then:O=>(f=!0,d.then(O))}},[]);return[p.useMemo(()=>({info:r(MTe),success:r(DTe),error:r(LTe),warning:r(ITe),confirm:r(QTe)}),[r]),p.createElement(iGe,{key:"modal-holder",ref:e})]}const oGe=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,a=`${t}-notice`,i=new kr("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),o=new kr("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new kr("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new kr("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:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!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:l}}}}},sGe=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],lGe={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},cGe=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[lGe[t]]:{value:0,_skip_check_:!0}}}}},uGe=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)},dGe=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"},uGe(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},dGe(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"}}}},sGe.map(n=>cGe(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},BTe=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:a,notificationMarginBottom:i,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:m,notificationMarginEdge:h,notificationProgressBg:g,notificationProgressHeight:O,fontSize:v,lineHeight:y,width:S,notificationIconSize:C,colorText:_,colorSuccessBg:w,colorErrorBg:T,colorInfoBg:k,colorWarningBg:A}=e,I=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:o,boxShadow:r,[I]:{padding:m,width:S,maxWidth:`calc(100vw - ${de(e.calc(h).mul(2).equal())})`,lineHeight:y,wordWrap:"break-word",borderRadius:o,overflow:"hidden","&-success":w?{background:w}:{},"&-error":T?{background:T}:{},"&-info":k?{background:k}:{},"&-warning":A?{background:A}:{}},[`${I}-message`]:{color:d,fontSize:a,lineHeight:e.lineHeightLG},[`${I}-description`]:{fontSize:v,color:_,marginTop:e.marginXS},[`${I}-closable ${I}-message`]:{paddingInlineEnd:e.paddingLG},[`${I}-with-icon ${I}-message`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:a},[`${I}-with-icon ${I}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:v},[`${I}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${I}-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}},Ul(e)),[`${I}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${de(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:O,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:o,background:g}},[`${I}-actions`]:{float:"right",marginTop:e.marginSM}}},pGe=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:a,motionEaseInOut:i}=e,o=`${t}-notice`,s=new kr("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Qr(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:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,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:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${o}-actions`]:{float:"left"}}})},{[t]:{[`${o}-wrapper`]:BTe(e)}}]},FTe=e=>({zIndexPopup:e.zIndexPopupBase+Lj+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),UTe=e=>{const t=e.paddingMD,n=e.paddingLG;return nr(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:`${de(e.paddingMD)} ${de(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},jTe=Er("Notification",e=>{const t=UTe(e);return[pGe(t),oGe(t),fGe(t)]},FTe),mGe=_g(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=UTe(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},BTe(n)),{width:n.width,maxWidth:`calc(100vw - ${de(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},FTe);var hGe=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,type:r,message:a,description:i,actions:o,role:s="alert"}=e;let l=null;return n?l=p.createElement("span",{className:`${t}-icon`},n):r&&(l=p.createElement(gGe[r]||null,{className:le(`${t}-icon`,`${t}-icon-${r}`)})),p.createElement("div",{className:le({[`${t}-with-icon`]:l}),role:s},l,p.createElement("div",{className:`${t}-message`},a),i&&p.createElement("div",{className:`${t}-description`},i),o&&p.createElement("div",{className:`${t}-actions`},o))},OGe=e=>{const{prefixCls:t,className:n,icon:r,type:a,message:i,description:o,btn:s,actions:l,closable:c=!0,closeIcon:u,className:d}=e,f=hGe(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:m}=p.useContext(pn),h=l??s,g=t||m("notification"),O=`${g}-notice`,v=Ua(g),[y,S,C]=jTe(g,v);return y(p.createElement("div",{className:le(`${O}-pure-panel`,S,n,C,v)},p.createElement(mGe,{prefixCls:g}),p.createElement(Ij,Object.assign({},f,{prefixCls:g,eventKey:"pure",duration:null,closable:c,className:le({notificationClassName:d}),closeIcon:Wj(g,u),content:p.createElement(XTe,{prefixCls:O,icon:r,type:a,message:i,description:o,actions:h})}))))};function bGe(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 vGe(e){return{motionName:`${e}-fade`}}function yGe(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 SGe=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=Ua(t),[r,a,i]=jTe(t,n);return r(Z.createElement(Dxe,{classNames:{list:le(a,i,n)}},e))},TGe=(e,{prefixCls:t,key:n})=>Z.createElement(xGe,{prefixCls:t,key:n},e),wGe=Z.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:a,getContainer:i,maxCount:o,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:m,getPopupContainer:h,notification:g,direction:O}=p.useContext(pn),[,v]=co(),y=a||m("notification"),S=k=>bGe(k,n??lae,r??lae),C=()=>le({[`${y}-rtl`]:s??O==="rtl"}),_=()=>vGe(y),[w,T]=Lxe({prefixCls:y,style:S,className:C,motion:_,closable:!0,closeIcon:Wj(y),duration:u??_Ge,getContainer:()=>(i==null?void 0:i())||(h==null?void 0:h())||document.body,maxCount:o,pauseOnHover:d,showProgress:f,onAllRemoved:l,renderNotifications:TGe,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:v.margin}});return Z.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:y,notification:g})),T});function YTe(e){const t=Z.useRef(null);return $d(),[Z.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:d}=t.current,f=`${u}-notice`,{message:m,description:h,icon:g,type:O,btn:v,actions:y,className:S,style:C,role:_="alert",closeIcon:w,closable:T}=s,k=SGe(s,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),A=y??v,I=Wj(f,yGe(w,e,d));return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:EGe},k),{content:Z.createElement(XTe,{prefixCls:f,icon:g,type:O,message:m,description:h,actions:A,role:_}),className:le(O&&`${f}-${O}`,S,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),C),closeIcon:I,closable:T??!!I}))},i={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{i[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),i},[]),Z.createElement(wGe,Object.assign({key:"notification-holder"},e,{ref:t}))]}function VTe(e){return YTe(e)}const F$=Z.createContext({}),qTe=Z.createContext({message:{},notification:{},modal:{}}),CGe=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:a,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:a,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},$Ge=()=>({}),RGe=Er("App",CGe,$Ge),PGe=e=>{const{prefixCls:t,children:n,className:r,rootClassName:a,message:i,notification:o,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=p.useContext(pn),d=u("app",t),[f,m,h]=RGe(d),g=le(m,d,r,a,h,{[`${d}-rtl`]:c==="rtl"}),O=p.useContext(F$),v=Z.useMemo(()=>({message:Object.assign(Object.assign({},O.message),i),notification:Object.assign(Object.assign({},O.notification),o)}),[i,o,O.message,O.notification]),[y,S]=Xxe(v.message),[C,_]=VTe(v.notification),[w,T]=zTe(),k=Z.useMemo(()=>({message:y,notification:C,modal:w}),[y,C,w]);$d()(!(h&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const A=l===!1?Z.Fragment:l,I={className:g,style:s};return f(Z.createElement(qTe.Provider,{value:k},Z.createElement(F$.Provider,{value:v},Z.createElement(A,Object.assign({},l===!1?void 0:I),T,S,_,n))))},kGe=()=>Z.useContext(qTe),w9=PGe;w9.useApp=kGe;function WTe(e){return t=>p.createElement(ui,{theme:{token:{motion:!1,zIndexPopupBase:0}}},p.createElement(e,Object.assign({},t)))}const ZE=(e,t,n,r,a)=>WTe(o=>{const{prefixCls:s,style:l}=o,c=p.useRef(null),[u,d]=p.useState(0),[f,m]=p.useState(0),[h,g]=Ir(!1,{value:o.open}),{getPrefixCls:O}=p.useContext(pn),v=O(r||"select",s);p.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver(w=>{const T=w[0].target;d(T.offsetHeight+8),m(T.offsetWidth)}),_=setInterval(()=>{var w;const T=a?`.${a(v)}`:`.${v}-dropdown`,k=(w=c.current)===null||w===void 0?void 0:w.querySelector(T);k&&(clearInterval(_),C.observe(k))},10);return()=>{clearInterval(_),C.disconnect()}}},[v]);let y=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:h,visible:h,getPopupContainer:()=>c.current});t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const S={paddingBottom:u,position:"relative",minWidth:f};return p.createElement("div",{ref:c,style:S},p.createElement(e,Object.assign({},y)))}),Dk=(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 Lk=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,i=t.children,o=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(a):r;return p.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:p.createElement("span",{className:le(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},AGe=function(t,n,r,a,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=Z.useMemo(function(){if(Xt(a)==="object")return a.clearIcon;if(i)return i},[a,i]),u=Z.useMemo(function(){return!!(!o&&a&&(r.length||s)&&!(l==="combobox"&&s===""))},[a,o,r.length,s,l]);return{allowClear:u,clearIcon:Z.createElement(Lk,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},GTe=p.createContext(null);function NGe(){return p.useContext(GTe)}function IGe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=p.useState(!1),n=ye(t,2),r=n[0],a=n[1],i=p.useRef(null),o=function(){window.clearTimeout(i.current)};p.useEffect(function(){return o},[]);var s=function(c,u){o(),i.current=window.setTimeout(function(){a(c),u&&u()},e)};return[r,s,o]}function HTe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=p.useRef(null),n=p.useRef(null);p.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 MGe(e,t,n,r){var a=p.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},p.useEffect(function(){function i(o){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),a.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function DGe(e){return e&&![Ht.ESC,Ht.SHIFT,Ht.BACKSPACE,Ht.TAB,Ht.WIN_KEY,Ht.ALT,Ht.META,Ht.WIN_KEY_RIGHT,Ht.CTRL,Ht.SEMICOLON,Ht.EQUALS,Ht.CAPS_LOCK,Ht.CONTEXT_MENU,Ht.F1,Ht.F2,Ht.F3,Ht.F4,Ht.F5,Ht.F6,Ht.F7,Ht.F8,Ht.F9,Ht.F10,Ht.F11,Ht.F12].includes(e)}var LGe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],gO=void 0;function QGe(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,i=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,f=e.children,m=e.display,h=e.order,g=e.component,O=g===void 0?"div":g,v=ln(e,LGe),y=o&&!m;function S(k){l(c,k)}p.useEffect(function(){return function(){S(null)}},[]);var C=i&&a!==gO?i(a,{index:h}):f,_;r||(_={opacity:y?0:1,height:y?0:gO,overflowY:y?"hidden":gO,order:o?h:gO,pointerEvents:y?"none":gO,position:y?"absolute":gO});var w={};y&&(w["aria-hidden"]=!0);var T=p.createElement(O,Ae({className:le(!r&&n,u),style:oe(oe({},_),d)},w,v,{ref:t}),C);return o&&(T=p.createElement(_o,{onResize:function(A){var I=A.offsetWidth;S(I)},disabled:s},T)),T}var t0=p.forwardRef(QGe);t0.displayName="Item";function zGe(e){if(typeof MessageChannel>"u")ur(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function BGe(){var e=p.useRef(null),t=function(r){e.current||(e.current=[],zGe(function(){Fl.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function OO(e,t){var n=p.useState(t),r=ye(n,2),a=r[0],i=r[1],o=ar(function(s){e(function(){i(s)})});return[a,o]}var U$=Z.createContext(null),FGe=["component"],UGe=["className"],jGe=["className"],XGe=function(t,n){var r=p.useContext(U$);if(!r){var a=t.component,i=a===void 0?"div":a,o=ln(t,FGe);return p.createElement(i,Ae({},o,{ref:n}))}var s=r.className,l=ln(r,UGe),c=t.className,u=ln(t,jGe);return p.createElement(U$.Provider,{value:null},p.createElement(t0,Ae({ref:n,className:le(s,c)},l,u)))},ZTe=p.forwardRef(XGe);ZTe.displayName="RawItem";var YGe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],KTe="responsive",JTe="invalidate";function VGe(e){return"+ ".concat(e.length," ...")}function qGe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,i=a===void 0?[]:a,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,f=e.style,m=e.className,h=e.maxCount,g=e.renderRest,O=e.renderRawRest,v=e.prefix,y=e.suffix,S=e.component,C=S===void 0?"div":S,_=e.itemComponent,w=e.onVisibleChange,T=ln(e,YGe),k=d==="full",A=BGe(),I=OO(A,null),M=ye(I,2),Q=M[0],B=M[1],D=Q||0,U=OO(A,new Map),R=ye(U,2),$=R[0],P=R[1],z=OO(A,0),F=ye(z,2),L=F[0],X=F[1],Y=OO(A,0),q=ye(Y,2),G=q[0],ee=q[1],K=OO(A,0),ne=ye(K,2),ie=ne[0],se=ne[1],ue=OO(A,0),ce=ye(ue,2),be=ce[0],ge=ce[1],Oe=p.useState(null),me=ye(Oe,2),Te=me[0],Ce=me[1],Fe=p.useState(null),Me=ye(Fe,2),Ee=Me[0],Le=Me[1],ze=p.useMemo(function(){return Ee===null&&k?Number.MAX_SAFE_INTEGER:Ee||0},[Ee,Q]),Qe=p.useState(!1),Je=ye(Qe,2),He=Je[0],gt=Je[1],st="".concat(r,"-item"),lt=Math.max(L,G),pt=h===KTe,Ze=i.length&&pt,De=h===JTe,Ke=Ze||typeof h=="number"&&i.length>h,Be=p.useMemo(function(){var ht=i;return Ze?Q===null&&k?ht=i:ht=i.slice(0,Math.min(i.length,D/u)):typeof h=="number"&&(ht=i.slice(0,h)),ht},[i,u,Q,h,Ze]),We=p.useMemo(function(){return Ze?i.slice(ze+1):i.slice(Be.length)},[i,Be,Ze,ze]),Re=p.useCallback(function(ht,ut){var vt;return typeof l=="function"?l(ht):(vt=l&&(ht==null?void 0:ht[l]))!==null&&vt!==void 0?vt:ut},[l]),Ie=p.useCallback(o||function(ht){return ht},[o]);function ve(ht,ut,vt){Ee===ht&&(ut===void 0||ut===Te)||(Le(ht),vt||(gt(htD){ve(Gt-1,ht-en-be+G);break}}y&&mt(0)+be>D&&Ce(null)}},[D,$,G,ie,be,Re,Be]);var je=He&&!!We.length,Ye={};Te!==null&&Ze&&(Ye={position:"absolute",left:Te,top:0});var yt={prefixCls:st,responsive:Ze,component:_,invalidate:De},$t=s?function(ht,ut){var vt=Re(ht,ut);return p.createElement(U$.Provider,{key:vt,value:oe(oe({},yt),{},{order:ut,item:ht,itemKey:vt,registerSize:Xe,display:ut<=ze})},s(ht,ut))}:function(ht,ut){var vt=Re(ht,ut);return p.createElement(t0,Ae({},yt,{order:ut,key:vt,item:ht,renderItem:Ie,itemKey:vt,registerSize:Xe,display:ut<=ze}))},St={order:je?ze:Number.MAX_SAFE_INTEGER,className:"".concat(st,"-rest"),registerSize:rt,display:je},Mt=g||VGe,Qt=O?p.createElement(U$.Provider,{value:oe(oe({},yt),St)},O(We)):p.createElement(t0,Ae({},yt,St),typeof Mt=="function"?Mt(We):Mt),Ot=p.createElement(C,Ae({className:le(!De&&r,m),style:f,ref:t},T),v&&p.createElement(t0,Ae({},yt,{responsive:pt,responsiveDisabled:!Ze,order:-1,className:"".concat(st,"-prefix"),registerSize:at,display:!0}),v),Be.map($t),Ke?Qt:null,y&&p.createElement(t0,Ae({},yt,{responsive:pt,responsiveDisabled:!Ze,order:ze,className:"".concat(st,"-suffix"),registerSize:ct,display:!0,style:Ye}),y));return pt?p.createElement(_o,{onResize:we,disabled:!Ze},Ot):Ot}var mu=p.forwardRef(qGe);mu.displayName="Overflow";mu.Item=ZTe;mu.RESPONSIVE=KTe;mu.INVALIDATE=JTe;function WGe(e,t,n){var r=oe(oe({},e),t);return Object.keys(t).forEach(function(a){var i=t[a];typeof i=="function"&&(r[a]=function(){for(var o,s=arguments.length,l=new Array(s),c=0;cS&&(Me="".concat(Ee.slice(0,S),"..."))}var Le=function(Qe){Qe&&Qe.stopPropagation(),k(Oe)};return typeof w=="function"?ie(Ce,Me,me,Fe,Le):ne(Oe,Me,me,Fe,Le)},ue=function(Oe){if(!a.length)return null;var me=typeof _=="function"?_(Oe):_;return typeof w=="function"?ie(void 0,me,!1,!1,void 0,!0):ne({title:me},me,!1)},ce=p.createElement("div",{className:"".concat(G,"-search"),style:{width:z},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},p.createElement(ewe,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:m,autoComplete:h,editable:K,activeDescendantId:g,value:ee,onKeyDown:M,onMouseDown:Q,onChange:A,onPaste:I,onCompositionStart:B,onCompositionEnd:D,onBlur:U,tabIndex:O,attrs:vi(t,!0)}),p.createElement("span",{ref:R,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},ee," ")),be=p.createElement(mu,{prefixCls:"".concat(G,"-overflow"),data:a,renderItem:se,renderRest:ue,suffix:ce,itemKey:nHe,maxCount:y});return p.createElement("span",{className:"".concat(G,"-wrap")},be,!a.length&&!ee&&p.createElement("span",{className:"".concat(G,"-placeholder")},c))},aHe=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,i=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,m=t.placeholder,h=t.tabIndex,g=t.showSearch,O=t.searchValue,v=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,C=t.onInputMouseDown,_=t.onInputChange,w=t.onInputPaste,T=t.onInputCompositionStart,k=t.onInputCompositionEnd,A=t.onInputBlur,I=t.title,M=p.useState(!1),Q=ye(M,2),B=Q[0],D=Q[1],U=u==="combobox",R=U||g,$=f[0],P=O||"";U&&v&&!B&&(P=v),p.useEffect(function(){U&&D(!1)},[U,v]);var z=u!=="combobox"&&!d&&!g?!1:!!P,F=I===void 0?nwe($):I,L=p.useMemo(function(){return $?null:p.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:z?{visibility:"hidden"}:void 0},m)},[$,z,m,r]);return p.createElement("span",{className:"".concat(r,"-selection-wrap")},p.createElement("span",{className:"".concat(r,"-selection-search")},p.createElement(ewe,{ref:i,prefixCls:r,id:a,open:d,inputElement:n,disabled:o,autoFocus:s,autoComplete:l,editable:R,activeDescendantId:c,value:P,onKeyDown:S,onMouseDown:C,onChange:function(Y){D(!0),_(Y)},onPaste:w,onCompositionStart:T,onCompositionEnd:k,onBlur:A,tabIndex:h,attrs:vi(t,!0),maxLength:U?y:void 0})),!U&&$?p.createElement("span",{className:"".concat(r,"-selection-item"),title:F,style:z?{visibility:"hidden"}:void 0},$.label):null,L)},iHe=function(t,n){var r=p.useRef(null),a=p.useRef(!1),i=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.prefix,f=t.autoClearSearchValue,m=t.onSearch,h=t.onSearchSubmit,g=t.onToggleOpen,O=t.onInputKeyDown,v=t.onInputBlur,y=t.domRef;p.useImperativeHandle(n,function(){return{focus:function(F){r.current.focus(F)},blur:function(){r.current.blur()}}});var S=HTe(0),C=ye(S,2),_=C[0],w=C[1],T=function(F){var L=F.which,X=r.current instanceof HTMLTextAreaElement;!X&&o&&(L===Ht.UP||L===Ht.DOWN)&&F.preventDefault(),O&&O(F),L===Ht.ENTER&&s==="tags"&&!a.current&&!o&&(h==null||h(F.target.value)),!(X&&!o&&~[Ht.UP,Ht.DOWN,Ht.LEFT,Ht.RIGHT].indexOf(L))&&DGe(L)&&g(!0)},k=function(){w(!0)},A=p.useRef(null),I=function(F){m(F,!0,a.current)!==!1&&g(!0)},M=function(){a.current=!0},Q=function(F){a.current=!1,s!=="combobox"&&I(F.target.value)},B=function(F){var L=F.target.value;if(c&&A.current&&/[\r\n]/.test(A.current)){var X=A.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(X,A.current)}A.current=null,I(L)},D=function(F){var L=F.clipboardData,X=L==null?void 0:L.getData("text");A.current=X||""},U=function(F){var L=F.target;if(L!==r.current){var X=document.body.style.msTouchAction!==void 0;X?setTimeout(function(){r.current.focus()}):r.current.focus()}},R=function(F){var L=_();F.target!==r.current&&!L&&!(s==="combobox"&&u)&&F.preventDefault(),(s!=="combobox"&&(!l||!L)||!o)&&(o&&f!==!1&&m("",!0,!1),g())},$={inputRef:r,onInputKeyDown:T,onInputMouseDown:k,onInputChange:B,onInputPaste:D,onInputCompositionStart:M,onInputCompositionEnd:Q,onInputBlur:v},P=s==="multiple"||s==="tags"?p.createElement(rHe,Ae({},t,$)):p.createElement(aHe,Ae({},t,$));return p.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:U,onMouseDown:R},d&&p.createElement("div",{className:"".concat(i,"-prefix")},d),P)},oHe=p.forwardRef(iHe);function sHe(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,i=r||{},o=i.className,s=i.content,l=a.x,c=l===void 0?0:l,u=a.y,d=u===void 0?0:u,f=p.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],g=n.points[1],O=h[0],v=h[1],y=g[0],S=g[1];O===y||!["t","b"].includes(O)?m.top=d:O==="t"?m.top=0:m.bottom=0,v===S||!["l","r"].includes(v)?m.left=c:v==="l"?m.left=0:m.right=0}return p.createElement("div",{ref:f,className:le("".concat(t,"-arrow"),o),style:m},s)}function lHe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,i=e.motion;return a?p.createElement(ro,Ae({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(o){var s=o.className;return p.createElement("div",{style:{zIndex:r},className:le("".concat(t,"-mask"),s)})}):null}var cHe=p.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),uHe=p.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,i=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,O=e.motion,v=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,C=e.autoDestroy,_=e.portal,w=e.zIndex,T=e.onMouseEnter,k=e.onMouseLeave,A=e.onPointerEnter,I=e.onPointerDownCapture,M=e.ready,Q=e.offsetX,B=e.offsetY,D=e.offsetR,U=e.offsetB,R=e.onAlign,$=e.onPrepare,P=e.stretch,z=e.targetWidth,F=e.targetHeight,L=typeof n=="function"?n():n,X=l||c,Y=(S==null?void 0:S.length)>0,q=p.useState(!S||!Y),G=ye(q,2),ee=G[0],K=G[1];if(tr(function(){!ee&&Y&&o&&K(!0)},[ee,Y,o]),!ee)return null;var ne="auto",ie={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(M||!l){var se,ue=g.points,ce=g.dynamicInset||((se=g._experimental)===null||se===void 0?void 0:se.dynamicInset),be=ce&&ue[0][1]==="r",ge=ce&&ue[0][0]==="b";be?(ie.right=D,ie.left=ne):(ie.left=Q,ie.right=ne),ge?(ie.bottom=U,ie.top=ne):(ie.top=B,ie.bottom=ne)}var Oe={};return P&&(P.includes("height")&&F?Oe.height=F:P.includes("minHeight")&&F&&(Oe.minHeight=F),P.includes("width")&&z?Oe.width=z:P.includes("minWidth")&&z&&(Oe.minWidth=z)),l||(Oe.pointerEvents="none"),p.createElement(_,{open:y||X,getContainer:S&&function(){return S(o)},autoDestroy:C},p.createElement(lHe,{prefixCls:a,open:l,zIndex:w,mask:f,motion:v}),p.createElement(_o,{onResize:R,disabled:!l},function(me){return p.createElement(ro,Ae({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(a,"-hidden")},O,{onAppearPrepare:$,onEnterPrepare:$,visible:l,onVisibleChanged:function(Ce){var Fe;O==null||(Fe=O.onVisibleChanged)===null||Fe===void 0||Fe.call(O,Ce),s(Ce)}}),function(Te,Ce){var Fe=Te.className,Me=Te.style,Ee=le(a,Fe,r);return p.createElement("div",{ref:Ci(me,t,Ce),className:Ee,style:oe(oe(oe(oe({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},ie),Oe),Me),{},{boxSizing:"border-box",zIndex:w},i),onMouseEnter:T,onMouseLeave:k,onPointerEnter:A,onClick:d,onPointerDownCapture:I},m&&p.createElement(sHe,{prefixCls:a,arrow:m,arrowPos:h,align:g}),p.createElement(cHe,{cache:!l&&!u},L))})}))}),dHe=p.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Ou(n),i=p.useCallback(function(s){h_(t,r?r(s):s)},[r]),o=Cd(i,bm(n));return a?p.cloneElement(n,{ref:o}):n}),dae=p.createContext(null);function fae(e){return e?Array.isArray(e)?e:[e]:[]}function fHe(e,t,n,r){return p.useMemo(function(){var a=fae(n??t),i=fae(r??t),o=new Set(a),s=new Set(i);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,n,r])}function pHe(){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 mHe(e,t,n,r){for(var a=n.points,i=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Zv(e){return __(parseFloat(e),0)}function mae(e,t){var n=oe({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=KE(r).getComputedStyle(r),i=a.overflow,o=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,c=a.borderLeftWidth,u=a.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,m=r.clientHeight,h=r.offsetWidth,g=r.clientWidth,O=Zv(s),v=Zv(l),y=Zv(c),S=Zv(u),C=__(Math.round(d.width/h*1e3)/1e3),_=__(Math.round(d.height/f*1e3)/1e3),w=(h-g-y-S)*C,T=(f-m-O-v)*_,k=O*_,A=v*_,I=y*C,M=S*C,Q=0,B=0;if(i==="clip"){var D=Zv(o);Q=D*C,B=D*_}var U=d.x+I-Q,R=d.y+k-B,$=U+d.width+2*Q-I-M-w,P=R+d.height+2*B-k-A-T;n.left=Math.max(n.left,U),n.top=Math.max(n.top,R),n.right=Math.min(n.right,$),n.bottom=Math.min(n.bottom,P)}}),n}function hae(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 gae(e,t){var n=t||[],r=ye(n,2),a=r[0],i=r[1];return[hae(e.width,a),hae(e.height,i)]}function Oae(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function bO(e,t){var n=t[0],r=t[1],a,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=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:i}}function up(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 hHe(e,t,n,r,a,i,o){var s=p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),l=ye(s,2),c=l[0],u=l[1],d=p.useRef(0),f=p.useMemo(function(){return t?C9(t):[]},[t]),m=p.useRef({}),h=function(){m.current={}};e||h();var g=ar(function(){if(t&&n&&e){let Dt=function(zn,Xn){var Pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Je,Ga=X.x+zn,Vi=X.y+Xn,bs=Ga+ge,jg=Vi+be,Pm=Math.max(Ga,Pr.left),Tn=Math.max(Vi,Pr.top),mr=Math.min(bs,Pr.right),Qa=Math.min(jg,Pr.bottom);return Math.max(0,(mr-Pm)*(Qa-Tn))},cn=function(){jn=X.y+Mt,Qn=jn+be,fr=X.x+St,Pt=fr+ge};var y,S,C,_,w=t,T=w.ownerDocument,k=KE(w),A=k.getComputedStyle(w),I=A.position,M=w.style.left,Q=w.style.top,B=w.style.right,D=w.style.bottom,U=w.style.overflow,R=oe(oe({},a[r]),i),$=T.createElement("div");(y=w.parentElement)===null||y===void 0||y.appendChild($),$.style.left="".concat(w.offsetLeft,"px"),$.style.top="".concat(w.offsetTop,"px"),$.style.position=I,$.style.height="".concat(w.offsetHeight,"px"),$.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var P;if(Array.isArray(n))P={x:n[0],y:n[1],width:0,height:0};else{var z,F,L=n.getBoundingClientRect();L.x=(z=L.x)!==null&&z!==void 0?z:L.left,L.y=(F=L.y)!==null&&F!==void 0?F:L.top,P={x:L.x,y:L.y,width:L.width,height:L.height}}var X=w.getBoundingClientRect(),Y=k.getComputedStyle(w),q=Y.height,G=Y.width;X.x=(S=X.x)!==null&&S!==void 0?S:X.left,X.y=(C=X.y)!==null&&C!==void 0?C:X.top;var ee=T.documentElement,K=ee.clientWidth,ne=ee.clientHeight,ie=ee.scrollWidth,se=ee.scrollHeight,ue=ee.scrollTop,ce=ee.scrollLeft,be=X.height,ge=X.width,Oe=P.height,me=P.width,Te={left:0,top:0,right:K,bottom:ne},Ce={left:-ce,top:-ue,right:ie-ce,bottom:se-ue},Fe=R.htmlRegion,Me="visible",Ee="visibleFirst";Fe!=="scroll"&&Fe!==Ee&&(Fe=Me);var Le=Fe===Ee,ze=mae(Ce,f),Qe=mae(Te,f),Je=Fe===Me?Qe:ze,He=Le?Qe:Je;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var gt=w.getBoundingClientRect();w.style.left=M,w.style.top=Q,w.style.right=B,w.style.bottom=D,w.style.overflow=U,(_=w.parentElement)===null||_===void 0||_.removeChild($);var st=__(Math.round(ge/parseFloat(G)*1e3)/1e3),lt=__(Math.round(be/parseFloat(q)*1e3)/1e3);if(st===0||lt===0||m_(n)&&!Pb(n))return;var pt=R.offset,Ze=R.targetOffset,De=gae(X,pt),Ke=ye(De,2),Be=Ke[0],We=Ke[1],Re=gae(P,Ze),Ie=ye(Re,2),ve=Ie[0],we=Ie[1];P.x-=ve,P.y-=we;var Xe=R.points||[],rt=ye(Xe,2),at=rt[0],ct=rt[1],mt=Oae(ct),je=Oae(at),Ye=bO(P,mt),yt=bO(X,je),$t=oe({},R),St=Ye.x-yt.x+Be,Mt=Ye.y-yt.y+We,Qt=Dt(St,Mt),Ot=Dt(St,Mt,Qe),ht=bO(P,["t","l"]),ut=bO(X,["t","l"]),vt=bO(P,["b","r"]),Gt=bO(X,["b","r"]),en=R.overflow||{},Rn=en.adjustX,Ut=en.adjustY,Ct=en.shiftX,Vt=en.shiftY,_n=function(Xn){return typeof Xn=="boolean"?Xn:Xn>=0},jn,Qn,fr,Pt;cn();var xe=_n(Ut),pe=je[0]===mt[0];if(xe&&je[0]==="t"&&(Qn>He.bottom||m.current.bt)){var $e=Mt;pe?$e-=be-Oe:$e=ht.y-Gt.y-We;var tt=Dt(St,$e),dt=Dt(St,$e,Qe);tt>Qt||tt===Qt&&(!Le||dt>=Ot)?(m.current.bt=!0,Mt=$e,We=-We,$t.points=[up(je,0),up(mt,0)]):m.current.bt=!1}if(xe&&je[0]==="b"&&(jnQt||Tt===Qt&&(!Le||Yt>=Ot)?(m.current.tb=!0,Mt=wt,We=-We,$t.points=[up(je,0),up(mt,0)]):m.current.tb=!1}var En=_n(Rn),Rt=je[1]===mt[1];if(En&&je[1]==="l"&&(Pt>He.right||m.current.rl)){var qe=St;Rt?qe-=ge-me:qe=ht.x-Gt.x-Be;var Et=Dt(qe,Mt),hn=Dt(qe,Mt,Qe);Et>Qt||Et===Qt&&(!Le||hn>=Ot)?(m.current.rl=!0,St=qe,Be=-Be,$t.points=[up(je,1),up(mt,1)]):m.current.rl=!1}if(En&&je[1]==="r"&&(frQt||rr===Qt&&(!Le||ua>=Ot)?(m.current.lr=!0,St=Zn,Be=-Be,$t.points=[up(je,1),up(mt,1)]):m.current.lr=!1}cn();var Gr=Ct===!0?0:Ct;typeof Gr=="number"&&(frQe.right&&(St-=Pt-Qe.right-Be,P.x>Qe.right-Gr&&(St+=P.x-Qe.right+Gr)));var ra=Vt===!0?0:Vt;typeof ra=="number"&&(jnQe.bottom&&(Mt-=Qn-Qe.bottom-We,P.y>Qe.bottom-ra&&(Mt+=P.y-Qe.bottom+ra)));var Hr=X.x+St,aa=Hr+ge,Pa=X.y+Mt,xr=Pa+be,mn=P.x,un=mn+me,pr=P.y,sn=pr+Oe,nn=Math.max(Hr,mn),or=Math.min(aa,un),Zr=(nn+or)/2,xn=Zr-Hr,Kn=Math.max(Pa,pr),Ar=Math.min(xr,sn),Tr=(Kn+Ar)/2,qn=Tr-Pa;o==null||o(t,$t);var kt=gt.right-X.x-(St+X.width),tn=gt.bottom-X.y-(Mt+X.height);st===1&&(St=Math.floor(St),kt=Math.floor(kt)),lt===1&&(Mt=Math.floor(Mt),tn=Math.floor(tn));var Jn={ready:!0,offsetX:St/st,offsetY:Mt/lt,offsetR:kt/st,offsetB:tn/lt,arrowX:xn/st,arrowY:qn/lt,scaleX:st,scaleY:lt,align:$t};u(Jn)}}),O=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&g()})},v=function(){u(function(S){return oe(oe({},S),{},{ready:!1})})};return tr(v,[r]),tr(function(){e||v()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,O]}function gHe(e,t,n,r,a){tr(function(){if(e&&t&&n){let d=function(){r(),a()};var i=t,o=n,s=C9(i),l=C9(o),c=KE(o),u=new Set([c].concat(et(s),et(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function OHe(e,t,n,r,a,i,o,s){var l=p.useRef(e);l.current=e;var c=p.useRef(!1);p.useEffect(function(){if(t&&r&&(!a||i)){var d=function(){c.current=!1},f=function(O){var v;l.current&&!o(((v=O.composedPath)===null||v===void 0||(v=v.call(O))===null||v===void 0?void 0:v[0])||O.target)&&!c.current&&s(!1)},m=KE(r);m.addEventListener("pointerdown",d,!0),m.addEventListener("mousedown",f,!0),m.addEventListener("contextmenu",f,!0);var h=L$(n);return h&&(h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0)),function(){m.removeEventListener("pointerdown",d,!0),m.removeEventListener("mousedown",f,!0),m.removeEventListener("contextmenu",f,!0),h&&(h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0))}}},[t,n,r,a,i]);function u(){c.current=!0}return u}var bHe=["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 vHe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:WE,t=p.forwardRef(function(n,r){var a=n.prefixCls,i=a===void 0?"rc-trigger-popup":a,o=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,m=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,g=n.mouseEnterDelay,O=n.mouseLeaveDelay,v=O===void 0?.1:O,y=n.focusDelay,S=n.blurDelay,C=n.mask,_=n.maskClosable,w=_===void 0?!0:_,T=n.getPopupContainer,k=n.forceRender,A=n.autoDestroy,I=n.destroyPopupOnHide,M=n.popup,Q=n.popupClassName,B=n.popupStyle,D=n.popupPlacement,U=n.builtinPlacements,R=U===void 0?{}:U,$=n.popupAlign,P=n.zIndex,z=n.stretch,F=n.getPopupClassNameFromAlign,L=n.fresh,X=n.alignPoint,Y=n.onPopupClick,q=n.onPopupAlign,G=n.arrow,ee=n.popupMotion,K=n.maskMotion,ne=n.popupTransitionName,ie=n.popupAnimation,se=n.maskTransitionName,ue=n.maskAnimation,ce=n.className,be=n.getTriggerDOMNode,ge=ln(n,bHe),Oe=A||I||!1,me=p.useState(!1),Te=ye(me,2),Ce=Te[0],Fe=Te[1];tr(function(){Fe(Dk())},[]);var Me=p.useRef({}),Ee=p.useContext(dae),Le=p.useMemo(function(){return{registerSubPopup:function(mr,Qa){Me.current[mr]=Qa,Ee==null||Ee.registerSubPopup(mr,Qa)}}},[Ee]),ze=Nb(),Qe=p.useState(null),Je=ye(Qe,2),He=Je[0],gt=Je[1],st=p.useRef(null),lt=ar(function(Tn){st.current=Tn,m_(Tn)&&He!==Tn&>(Tn),Ee==null||Ee.registerSubPopup(ze,Tn)}),pt=p.useState(null),Ze=ye(pt,2),De=Ze[0],Ke=Ze[1],Be=p.useRef(null),We=ar(function(Tn){m_(Tn)&&De!==Tn&&(Ke(Tn),Be.current=Tn)}),Re=p.Children.only(o),Ie=(Re==null?void 0:Re.props)||{},ve={},we=ar(function(Tn){var mr,Qa,ti=De;return(ti==null?void 0:ti.contains(Tn))||((mr=L$(ti))===null||mr===void 0?void 0:mr.host)===Tn||Tn===ti||(He==null?void 0:He.contains(Tn))||((Qa=L$(He))===null||Qa===void 0?void 0:Qa.host)===Tn||Tn===He||Object.values(Me.current).some(function(Ha){return(Ha==null?void 0:Ha.contains(Tn))||Tn===Ha})}),Xe=pae(i,ee,ie,ne),rt=pae(i,K,ue,se),at=p.useState(f||!1),ct=ye(at,2),mt=ct[0],je=ct[1],Ye=d??mt,yt=ar(function(Tn){d===void 0&&je(Tn)});tr(function(){je(d||!1)},[d]);var $t=p.useRef(Ye);$t.current=Ye;var St=p.useRef([]);St.current=[];var Mt=ar(function(Tn){var mr;yt(Tn),((mr=St.current[St.current.length-1])!==null&&mr!==void 0?mr:Ye)!==Tn&&(St.current.push(Tn),m==null||m(Tn))}),Qt=p.useRef(),Ot=function(){clearTimeout(Qt.current)},ht=function(mr){var Qa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ot(),Qa===0?Mt(mr):Qt.current=setTimeout(function(){Mt(mr)},Qa*1e3)};p.useEffect(function(){return Ot},[]);var ut=p.useState(!1),vt=ye(ut,2),Gt=vt[0],en=vt[1];tr(function(Tn){(!Tn||Ye)&&en(!0)},[Ye]);var Rn=p.useState(null),Ut=ye(Rn,2),Ct=Ut[0],Vt=Ut[1],_n=p.useState(null),jn=ye(_n,2),Qn=jn[0],fr=jn[1],Pt=function(mr){fr([mr.clientX,mr.clientY])},xe=hHe(Ye,He,X&&Qn!==null?Qn:De,D,R,$,q),pe=ye(xe,11),$e=pe[0],tt=pe[1],dt=pe[2],wt=pe[3],Tt=pe[4],Yt=pe[5],En=pe[6],Rt=pe[7],qe=pe[8],Et=pe[9],hn=pe[10],Zn=fHe(Ce,l,c,u),rr=ye(Zn,2),ua=rr[0],Gr=rr[1],ra=ua.has("click"),Hr=Gr.has("click")||Gr.has("contextMenu"),aa=ar(function(){Gt||hn()}),Pa=function(){$t.current&&X&&Hr&&ht(!1)};gHe(Ye,De,He,aa,Pa),tr(function(){aa()},[Qn,D]),tr(function(){Ye&&!(R!=null&&R[D])&&aa()},[JSON.stringify($)]);var xr=p.useMemo(function(){var Tn=mHe(R,i,Et,X);return le(Tn,F==null?void 0:F(Et))},[Et,F,R,i,X]);p.useImperativeHandle(r,function(){return{nativeElement:Be.current,popupElement:st.current,forceAlign:aa}});var mn=p.useState(0),un=ye(mn,2),pr=un[0],sn=un[1],nn=p.useState(0),or=ye(nn,2),Zr=or[0],xn=or[1],Kn=function(){if(z&&De){var mr=De.getBoundingClientRect();sn(mr.width),xn(mr.height)}},Ar=function(){Kn(),aa()},Tr=function(mr){en(!1),hn(),h==null||h(mr)},qn=function(){return new Promise(function(mr){Kn(),Vt(function(){return mr})})};tr(function(){Ct&&(hn(),Ct(),Vt(null))},[Ct]);function kt(Tn,mr,Qa,ti){ve[Tn]=function(Ha){var Xg;ti==null||ti(Ha),ht(mr,Qa);for(var zd=arguments.length,Wf=new Array(zd>1?zd-1:0),Bc=1;Bc1?Qa-1:0),Ha=1;Ha1?Qa-1:0),Ha=1;Ha1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],i=rwe(n,!1),o=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(d,f){Array.isArray(d)&&d.forEach(function(m){if(f||!(l in m)){var h=m[s];a.push({key:bae(m,a.length),groupOption:f,data:m,label:m[o],value:h})}else{var g=m[c];g===void 0&&r&&(g=m.label),a.push({key:bae(m,a.length),group:!0,data:m,label:g}),u(m[l],!0)}})}return u(e,!1),a}function R9(e){var t=oe({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Da(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var THe=function(t,n,r){if(!n||!n.length)return null;var a=!1,i=function s(l,c){var u=qEe(c),d=u[0],f=u.slice(1);if(!d)return[l];var m=l.split(d);return a=a||m.length>1,m.reduce(function(h,g){return[].concat(et(h),et(s(g,f)))},[]).filter(Boolean)},o=i(t,n);return a?typeof r<"u"?o.slice(0,r):o:null},Gj=p.createContext(null);function wHe(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return p.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 i=a.label,o=a.value;return["number","string"].includes(Xt(i))?i:o}).join(", ")),n.length>r?", ...":null)}var CHe=["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"],$He=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],P9=function(t){return t==="tags"||t==="multiple"},RHe=p.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,i=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,m=e.notFoundContent,h=m===void 0?"Not Found":m,g=e.onClear,O=e.mode,v=e.disabled,y=e.loading,S=e.getInputElement,C=e.getRawInputElement,_=e.open,w=e.defaultOpen,T=e.onDropdownVisibleChange,k=e.activeValue,A=e.onActiveValueChange,I=e.activeDescendantId,M=e.searchValue,Q=e.autoClearSearchValue,B=e.onSearch,D=e.onSearchSplit,U=e.tokenSeparators,R=e.allowClear,$=e.prefix,P=e.suffixIcon,z=e.clearIcon,F=e.OptionList,L=e.animation,X=e.transitionName,Y=e.dropdownStyle,q=e.dropdownClassName,G=e.dropdownMatchSelectWidth,ee=e.dropdownRender,K=e.dropdownAlign,ne=e.placement,ie=e.builtinPlacements,se=e.getPopupContainer,ue=e.showAction,ce=ue===void 0?[]:ue,be=e.onFocus,ge=e.onBlur,Oe=e.onKeyUp,me=e.onKeyDown,Te=e.onMouseDown,Ce=ln(e,CHe),Fe=P9(O),Me=(o!==void 0?o:Fe)||O==="combobox",Ee=oe({},Ce);$He.forEach(function(mn){delete Ee[mn]}),c==null||c.forEach(function(mn){delete Ee[mn]});var Le=p.useState(!1),ze=ye(Le,2),Qe=ze[0],Je=ze[1];p.useEffect(function(){Je(Dk())},[]);var He=p.useRef(null),gt=p.useRef(null),st=p.useRef(null),lt=p.useRef(null),pt=p.useRef(null),Ze=p.useRef(!1),De=IGe(),Ke=ye(De,3),Be=Ke[0],We=Ke[1],Re=Ke[2];p.useImperativeHandle(t,function(){var mn,un;return{focus:(mn=lt.current)===null||mn===void 0?void 0:mn.focus,blur:(un=lt.current)===null||un===void 0?void 0:un.blur,scrollTo:function(sn){var nn;return(nn=pt.current)===null||nn===void 0?void 0:nn.scrollTo(sn)},nativeElement:He.current||gt.current}});var Ie=p.useMemo(function(){var mn;if(O!=="combobox")return M;var un=(mn=u[0])===null||mn===void 0?void 0:mn.value;return typeof un=="string"||typeof un=="number"?String(un):""},[M,O,u]),ve=O==="combobox"&&typeof S=="function"&&S()||null,we=typeof C=="function"&&C(),Xe=Cd(gt,we==null||(n=we.props)===null||n===void 0?void 0:n.ref),rt=p.useState(!1),at=ye(rt,2),ct=at[0],mt=at[1];tr(function(){mt(!0)},[]);var je=Ir(!1,{defaultValue:w,value:_}),Ye=ye(je,2),yt=Ye[0],$t=Ye[1],St=ct?yt:!1,Mt=!h&&f;(v||Mt&&St&&O==="combobox")&&(St=!1);var Qt=Mt?!1:St,Ot=p.useCallback(function(mn){var un=mn!==void 0?mn:!St;v||($t(un),St!==un&&(T==null||T(un)))},[v,St,$t,T]),ht=p.useMemo(function(){return(U||[]).some(function(mn){return[` `,`\r -`].includes(pn)})},[U]),st=p.useContext(Tj)||{},Et=st.maxCount,Jt=st.rawValues,en=function(cn,fr,rn){if(!(Qe&&l9(Et)&&(Jt==null?void 0:Jt.size)>=Et)){var Zt=!0,or=cn;k==null||k(null);var Hr=GGe(cn,U,l9(Et)?Et-Jt.size:void 0),Sn=rn?null:Hr;return O!=="combobox"&&Sn&&(or="",L==null||L(Sn),Ot(!1),Zt=!1),F&&Ae!==or&&F(or,{source:fr?"typing":"effect"}),Zt}},Rn=function(cn){!cn||!cn.trim()||F(cn,{source:"submit"})};p.useEffect(function(){!vt&&!Qe&&O!=="combobox"&&en("",!1,!1)},[vt]),p.useEffect(function(){bt&&v&&xt(!1),v&&!We.current&&qe(!1)},[v]);var jt=ETe(),wt=be(jt,2),an=wt[0],$n=wt[1],Gn=p.useRef(!1),Xn=function(cn){var fr=an(),rn=cn.key,Zt=rn==="Enter";if(Zt&&(O!=="combobox"&&cn.preventDefault(),vt||Ot(!0)),$n(!!Ae),rn==="Backspace"&&!fr&&Qe&&!Ae&&u.length){for(var or=Ke(u),Hr=null,Sn=or.length-1;Sn>=0;Sn-=1){var Kn=or[Sn];if(!Kn.disabled){or.splice(Sn,1),Hr=Kn;break}}Hr&&d(or,{type:"remove",values:[Hr]})}for(var Ar=arguments.length,Tr=new Array(Ar>1?Ar-1:0),qn=1;qn1?fr-1:0),Zt=1;Zt1?Hr-1:0),Kn=1;Kn"u"?"undefined":Ut(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ATe=(function(e,t,n,r){var a=p.useRef(!1),i=p.useRef(null);function o(){clearTimeout(i.current),a.current=!0,i.current=setTimeout(function(){a.current=!1},50)}var s=p.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&d?(clearTimeout(i.current),a.current=!1):(!d||a.current)&&o(),!a.current&&d}});function aHe(e,t,n,r,a,i,o){var s=p.useRef(0),l=p.useRef(null),c=p.useRef(null),u=p.useRef(!1),d=ATe(t,n,r,a);function f(y,S){if(ur.cancel(l.current),!d(!1,S)){var C=y;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=S,c.current=S,Gre||C.preventDefault(),l.current=ur(function(){var _=u.current?10:1;o(s.current*_,!1),s.current=0})}}function m(y,S){o(S,!0),Gre||y.preventDefault()}var h=p.useRef(null),g=p.useRef(null);function O(y){if(e){ur.cancel(g.current),g.current=ur(function(){h.current=null},2);var S=y.deltaX,C=y.deltaY,_=y.shiftKey,w=S,T=C;(h.current==="sx"||!h.current&&_&&C&&!S)&&(w=C,T=0,h.current="sx");var A=Math.abs(w),k=Math.abs(T);h.current===null&&(h.current=i&&A>k?"x":"y"),h.current==="y"?f(y,T):m(y,w)}}function v(y){e&&(u.current=y.detail===c.current)}return[O,v]}function iHe(e,t,n,r){var a=p.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=be(a,2),o=i[0],s=i[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=o.get(u),m=o.get(d);if(f===void 0||m===void 0)for(var h=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var v=!1;s.current.forEach(function(y,S){if(y&&y.offsetParent){var C=y.offsetHeight,_=getComputedStyle(y),w=_.marginTop,T=_.marginBottom,A=Hre(w),k=Hre(T),I=C+A+k;l.current.get(S)!==I&&(l.current.set(S,I),v=!0)}}),v&&o(function(y){return y+1})};if(m)h();else{c.current+=1;var g=c.current;Promise.resolve().then(function(){g===c.current&&h()})}}function f(m,h){var g=e(m);s.current.get(g),h?(s.current.set(g,h),d()):s.current.delete(g)}return p.useEffect(function(){return u},[]),[f,d,l.current,i]}var Zre=14/15;function lHe(e,t,n){var r=p.useRef(!1),a=p.useRef(0),i=p.useRef(0),o=p.useRef(null),s=p.useRef(null),l,c=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageX),g=Math.ceil(m.touches[0].pageY),O=a.current-h,v=i.current-g,y=Math.abs(O)>Math.abs(v);y?a.current=h:i.current=g;var S=n(y,y?O:v,!1,m);S&&m.preventDefault(),clearInterval(s.current),S&&(s.current=setInterval(function(){y?O*=Zre:v*=Zre;var C=Math.floor(y?O:v);(!n(y,C,!0)||Math.abs(C)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},d=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),o.current=m.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},tr(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[e])}function Kre(e){return Math.floor(Math.pow(e,.5))}function d9(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function cHe(e,t,n){p.useEffect(function(){var r=t.current;if(e&&r){var a=!1,i,o,s=function(){ur.cancel(i)},l=function f(){s(),i=ur(function(){n(o),f()})},c=function(){a=!1,s()},u=function(m){if(!(m.target.draggable||m.button!==0)){var h=m;h._virtualHandled||(h._virtualHandled=!0,a=!0)}},d=function(m){if(a){var h=d9(m,!1),g=r.getBoundingClientRect(),O=g.top,v=g.bottom;if(h<=O){var y=O-h;o=-Kre(y),l()}else if(h>=v){var S=h-v;o=Kre(S),l()}else s()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",d),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",d),r.ownerDocument.removeEventListener("dragend",c),s()}}},[e])}var uHe=10;function dHe(e,t,n,r,a,i,o,s){var l=p.useRef(),c=p.useState(null),u=be(c,2),d=u[0],f=u[1];return tr(function(){if(d&&d.times=0;L-=1){var U=a(t[L]),R=n.get(U);if(R===void 0){y=!0;break}if(F-=R,F<=0)break}switch(_){case"top":C=T-O;break;case"bottom":C=A-v+O;break;default:{var $=e.current.scrollTop,P=$+v;T<$?S="top":A>P&&(S="bottom")}}C!==null&&o(C),C!==d.lastTop&&(y=!0)}y&&f(se(se({},d),{},{times:d.times+1,targetAlign:S,lastTop:C}))}},[d,e.current]),function(m){if(m==null){s();return}if(ur.cancel(l.current),typeof m=="number")o(m);else if(m&&Ut(m)==="object"){var h,g=m.align;"index"in m?h=m.index:h=t.findIndex(function(y){return a(y)===m.key});var O=m.offset,v=O===void 0?0:O;f({times:0,index:h,offset:v,originAlign:g})}}}var Jre=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,i=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,m=e.thumbStyle,h=e.showScrollBar,g=p.useState(!1),O=be(g,2),v=O[0],y=O[1],S=p.useState(null),C=be(S,2),_=C[0],w=C[1],T=p.useState(null),A=be(T,2),k=A[0],I=A[1],M=!r,Q=p.useRef(),F=p.useRef(),L=p.useState(h),U=be(L,2),R=U[0],$=U[1],P=p.useRef(),z=function(){h===!0||h===!1||(clearTimeout(P.current),$(!0),P.current=setTimeout(function(){$(!1)},3e3))},B=i-d||0,D=d-u||0,X=p.useMemo(function(){if(a===0||B===0)return 0;var ue=a/B;return ue*D},[a,B,D]),Y=function(oe){oe.stopPropagation(),oe.preventDefault()},q=p.useRef({top:X,dragging:v,pageY:_,startTop:k});q.current={top:X,dragging:v,pageY:_,startTop:k};var H=function(oe){y(!0),w(d9(oe,c)),I(q.current.top),o(),oe.stopPropagation(),oe.preventDefault()};p.useEffect(function(){var ue=function(he){he.preventDefault()},oe=Q.current,ge=F.current;return oe.addEventListener("touchstart",ue,{passive:!1}),ge.addEventListener("touchstart",H,{passive:!1}),function(){oe.removeEventListener("touchstart",ue),ge.removeEventListener("touchstart",H)}},[]);var J=p.useRef();J.current=B;var te=p.useRef();te.current=D,p.useEffect(function(){if(v){var ue,oe=function(he){var me=q.current,xe=me.dragging,we=me.pageY,Qe=me.startTop;ur.cancel(ue);var Ie=Q.current.getBoundingClientRect(),Ee=d/(c?Ie.width:Ie.height);if(xe){var De=(d9(he,c)-we)*Ee,Le=Qe;!M&&c?Le-=De:Le+=De;var Ne=J.current,et=te.current,He=et?Le/et:0,pt=Math.ceil(He*Ne);pt=Math.max(pt,0),pt=Math.min(pt,Ne),ue=ur(function(){l(pt,c)})}},ge=function(){y(!1),s()};return window.addEventListener("mousemove",oe,{passive:!0}),window.addEventListener("touchmove",oe,{passive:!0}),window.addEventListener("mouseup",ge,{passive:!0}),window.addEventListener("touchend",ge,{passive:!0}),function(){window.removeEventListener("mousemove",oe),window.removeEventListener("touchmove",oe),window.removeEventListener("mouseup",ge),window.removeEventListener("touchend",ge),ur.cancel(ue)}}},[v]),p.useEffect(function(){return z(),function(){clearTimeout(P.current)}},[a]),p.useImperativeHandle(t,function(){return{delayHidden:z}});var ne="".concat(n,"-scrollbar"),ie={position:"absolute",visibility:R?null:"hidden"},le={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(ie,{height:8,left:0,right:0,bottom:0}),Object.assign(le,ae({height:"100%",width:u},M?"left":"right",X))):(Object.assign(ie,ae({width:8,top:0,bottom:0},M?"right":"left",0)),Object.assign(le,{width:"100%",height:u,top:X})),p.createElement("div",{ref:Q,className:ce(ne,ae(ae(ae({},"".concat(ne,"-horizontal"),c),"".concat(ne,"-vertical"),!c),"".concat(ne,"-visible"),R)),style:se(se({},ie),f),onMouseDown:Y,onMouseMove:z},p.createElement("div",{ref:F,className:ce("".concat(ne,"-thumb"),ae({},"".concat(ne,"-thumb-moving"),v)),style:se(se({},le),m),onMouseDown:H}))}),fHe=20;function eae(){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,fHe),Math.floor(n)}var pHe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],mHe=[],hHe={overflowY:"auto",overflowAnchor:"none"};function gHe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,i=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,f=e.itemKey,m=e.virtual,h=e.direction,g=e.scrollWidth,O=e.component,v=O===void 0?"div":O,y=e.onScroll,S=e.onVirtualScroll,C=e.onVisibleChange,_=e.innerProps,w=e.extraRender,T=e.styles,A=e.showScrollBar,k=A===void 0?"optional":A,I=on(e,pHe),M=p.useCallback(function(Se){return typeof f=="function"?f(Se):Se==null?void 0:Se[f]},[f]),Q=sHe(M),F=be(Q,4),L=F[0],U=F[1],R=F[2],$=F[3],P=!!(m!==!1&&i&&o),z=p.useMemo(function(){return Object.values(R.maps).reduce(function(Se,Fe){return Se+Fe},0)},[R.id,R.maps]),B=P&&u&&(Math.max(o*u.length,z)>i||!!g),D=h==="rtl",X=ce(r,ae({},"".concat(r,"-rtl"),D),a),Y=u||mHe,q=p.useRef(),H=p.useRef(),J=p.useRef(),te=p.useState(0),ne=be(te,2),ie=ne[0],le=ne[1],ue=p.useState(0),oe=be(ue,2),ge=oe[0],ve=oe[1],he=p.useState(!1),me=be(he,2),xe=me[0],we=me[1],Qe=function(){we(!0)},Ie=function(){we(!1)},Ee={getKey:M};function De(Se){le(function(Fe){var mt;typeof Se=="function"?mt=Se(Fe):mt=Se;var yt=St(mt);return q.current.scrollTop=yt,yt})}var Le=p.useRef({start:0,end:Y.length}),Ne=p.useRef(),et=rHe(Y,M),He=be(et,1),pt=He[0];Ne.current=pt;var lt=p.useMemo(function(){if(!P)return{scrollHeight:void 0,start:0,end:Y.length-1,offset:void 0};if(!B){var Se;return{scrollHeight:((Se=H.current)===null||Se===void 0?void 0:Se.offsetHeight)||0,start:0,end:Y.length-1,offset:void 0}}for(var Fe=0,mt,yt,Qt,$t=Y.length,sn=0;sn<$t;sn+=1){var Cn=Y[sn],It=M(Cn),Ze=R.get(It),dt=Fe+(Ze===void 0?o:Ze);dt>=ie&&mt===void 0&&(mt=sn,yt=Fe),dt>ie+i&&Qt===void 0&&(Qt=sn),Fe=dt}return mt===void 0&&(mt=0,yt=0,Qt=Math.ceil(i/o)),Qt===void 0&&(Qt=Y.length-1),Qt=Math.min(Qt+1,Y.length-1),{scrollHeight:Fe,start:mt,end:Qt,offset:yt}},[B,P,ie,Y,$,i]),it=lt.scrollHeight,ut=lt.start,We=lt.end,Me=lt.offset;Le.current.start=ut,Le.current.end=We,p.useLayoutEffect(function(){var Se=R.getRecord();if(Se.size===1){var Fe=Array.from(Se.keys())[0],mt=Se.get(Fe),yt=Y[ut];if(yt&&mt===void 0){var Qt=M(yt);if(Qt===Fe){var $t=R.get(Fe),sn=$t-o;De(function(Cn){return Cn+sn})}}}R.resetRecord()},[it]);var Ge=p.useState({width:0,height:i}),ze=be(Ge,2),qe=ze[0],Pe=ze[1],Ae=function(Fe){Pe({width:Fe.offsetWidth,height:Fe.offsetHeight})},Oe=p.useRef(),Te=p.useRef(),Ue=p.useMemo(function(){return eae(qe.width,g)},[qe.width,g]),rt=p.useMemo(function(){return eae(qe.height,it)},[qe.height,it]),tt=it-i,ot=p.useRef(tt);ot.current=tt;function St(Se){var Fe=Se;return Number.isNaN(ot.current)||(Fe=Math.min(Fe,ot.current)),Fe=Math.max(Fe,0),Fe}var Xe=ie<=0,je=ie>=tt,bt=ge<=0,xt=ge>=g,vt=ATe(Xe,je,bt,xt),Nt=function(){return{x:D?-ge:ge,y:ie}},Mt=p.useRef(Nt()),Ot=ar(function(Se){if(S){var Fe=se(se({},Nt()),Se);(Mt.current.x!==Fe.x||Mt.current.y!==Fe.y)&&(S(Fe),Mt.current=Fe)}});function ft(Se,Fe){var mt=Se;Fe?(Fl.flushSync(function(){ve(mt)}),Ot()):De(mt)}function st(Se){var Fe=Se.currentTarget.scrollTop;Fe!==ie&&De(Fe),y==null||y(Se),Ot()}var Et=function(Fe){var mt=Fe,yt=g?g-qe.width:0;return mt=Math.max(mt,0),mt=Math.min(mt,yt),mt},Jt=ar(function(Se,Fe){Fe?(Fl.flushSync(function(){ve(function(mt){var yt=mt+(D?-Se:Se);return Et(yt)})}),Ot()):De(function(mt){var yt=mt+Se;return yt})}),en=aHe(P,Xe,je,bt,xt,!!g,Jt),Rn=be(en,2),jt=Rn[0],wt=Rn[1];lHe(P,q,function(Se,Fe,mt,yt){var Qt=yt;return vt(Se,Fe,mt)?!1:!Qt||!Qt._virtualHandled?(Qt&&(Qt._virtualHandled=!0),jt({preventDefault:function(){},deltaX:Se?Fe:0,deltaY:Se?0:Fe}),!0):!1}),cHe(B,q,function(Se){De(function(Fe){return Fe+Se})}),tr(function(){function Se(mt){var yt=Xe&&mt.detail<0,Qt=je&&mt.detail>0;P&&!yt&&!Qt&&mt.preventDefault()}var Fe=q.current;return Fe.addEventListener("wheel",jt,{passive:!1}),Fe.addEventListener("DOMMouseScroll",wt,{passive:!0}),Fe.addEventListener("MozMousePixelScroll",Se,{passive:!1}),function(){Fe.removeEventListener("wheel",jt),Fe.removeEventListener("DOMMouseScroll",wt),Fe.removeEventListener("MozMousePixelScroll",Se)}},[P,Xe,je]),tr(function(){if(g){var Se=Et(ge);ve(Se),Ot({x:Se})}},[qe.width,g]);var an=function(){var Fe,mt;(Fe=Oe.current)===null||Fe===void 0||Fe.delayHidden(),(mt=Te.current)===null||mt===void 0||mt.delayHidden()},$n=dHe(q,Y,R,o,M,function(){return U(!0)},De,an);p.useImperativeHandle(t,function(){return{nativeElement:J.current,getScrollInfo:Nt,scrollTo:function(Fe){function mt(yt){return yt&&Ut(yt)==="object"&&("left"in yt||"top"in yt)}mt(Fe)?(Fe.left!==void 0&&ve(Et(Fe.left)),$n(Fe.top)):$n(Fe)}}}),tr(function(){if(C){var Se=Y.slice(ut,We+1);C(Se,Y)}},[ut,We,Y]);var Gn=iHe(Y,M,R,o),Xn=w==null?void 0:w({start:ut,end:We,virtual:B,offsetX:ge,offsetY:Me,rtl:D,getSize:Gn}),gr=tHe(Y,ut,We,g,ge,L,d,Ee),Fn=null;i&&(Fn=se(ae({},l?"height":"maxHeight",i),hHe),P&&(Fn.overflowY="hidden",g&&(Fn.overflowX="hidden"),xe&&(Fn.pointerEvents="none")));var Bt={};return D&&(Bt.dir="rtl"),p.createElement("div",Re({ref:J,style:se(se({},c),{},{position:"relative"}),className:X},Bt,I),p.createElement(Eo,{onResize:Ae},p.createElement(v,{className:"".concat(r,"-holder"),style:Fn,ref:q,onScroll:st,onMouseEnter:an},p.createElement(kTe,{prefixCls:r,height:it,offsetX:ge,offsetY:Me,scrollWidth:g,onInnerResize:U,ref:H,innerProps:_,rtl:D,extra:Xn},gr))),B&&it>i&&p.createElement(Jre,{ref:Oe,prefixCls:r,scrollOffset:ie,scrollRange:it,rtl:D,onScroll:ft,onStartMove:Qe,onStopMove:Ie,spinSize:rt,containerSize:qe.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb,showScrollBar:k}),B&&g>qe.width&&p.createElement(Jre,{ref:Te,prefixCls:r,scrollOffset:ge,scrollRange:g,rtl:D,onScroll:ft,onStartMove:Qe,onStopMove:Ie,spinSize:Ue,containerSize:qe.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb,showScrollBar:k}))}var wk=p.forwardRef(gHe);wk.displayName="List";function OHe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var bHe=["disabled","title","children","style","className"];function tae(e){return typeof e=="string"||typeof e=="number"}var vHe=function(t,n){var r=rGe(),a=r.prefixCls,i=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,m=p.useContext(Tj),h=m.maxCount,g=m.flattenOptions,O=m.onActiveValue,v=m.defaultActiveFirstOption,y=m.onSelect,S=m.menuItemSelectedIcon,C=m.rawValues,_=m.fieldNames,w=m.virtual,T=m.direction,A=m.listHeight,k=m.listItemHeight,I=m.optionRender,M="".concat(a,"-item"),Q=dm(function(){return g},[o,g],function(ue,oe){return oe[0]&&ue[1]!==oe[1]}),F=p.useRef(null),L=p.useMemo(function(){return s&&l9(h)&&(C==null?void 0:C.size)>=h},[s,h,C==null?void 0:C.size]),U=function(oe){oe.preventDefault()},R=function(oe){var ge;(ge=F.current)===null||ge===void 0||ge.scrollTo(typeof oe=="number"?{index:oe}:oe)},$=p.useCallback(function(ue){return l==="combobox"?!1:C.has(ue)},[l,Ke(C).toString(),C.size]),P=function(oe){for(var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ve=Q.length,he=0;he1&&arguments[1]!==void 0?arguments[1]:!1;X(oe);var ve={source:ge?"keyboard":"mouse"},he=Q[oe];if(!he){O(null,-1,ve);return}O(he.value,oe,ve)};p.useEffect(function(){Y(v!==!1?P(0):-1)},[Q.length,c]);var q=p.useCallback(function(ue){return l==="combobox"?String(ue).toLowerCase()===c.toLowerCase():C.has(ue)},[l,c,Ke(C).toString(),C.size]);p.useEffect(function(){var ue=setTimeout(function(){if(!s&&o&&C.size===1){var ge=Array.from(C)[0],ve=Q.findIndex(function(he){var me=he.data;return c?String(me.value).startsWith(c):me.value===ge});ve!==-1&&(Y(ve),R(ve))}});if(o){var oe;(oe=F.current)===null||oe===void 0||oe.scrollTo(void 0)}return function(){return clearTimeout(ue)}},[o,c]);var H=function(oe){oe!==void 0&&y(oe,{selected:!C.has(oe)}),s||u(!1)};if(p.useImperativeHandle(n,function(){return{onKeyDown:function(oe){var ge=oe.which,ve=oe.ctrlKey;switch(ge){case Vt.N:case Vt.P:case Vt.UP:case Vt.DOWN:{var he=0;if(ge===Vt.UP?he=-1:ge===Vt.DOWN?he=1:OHe()&&ve&&(ge===Vt.N?he=1:ge===Vt.P&&(he=-1)),he!==0){var me=P(D+he,he);R(me),Y(me,!0)}break}case Vt.TAB:case Vt.ENTER:{var xe,we=Q[D];we&&!(we!=null&&(xe=we.data)!==null&&xe!==void 0&&xe.disabled)&&!L?H(we.value):H(void 0),o&&oe.preventDefault();break}case Vt.ESC:u(!1),o&&oe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(oe){R(oe)}}}),Q.length===0)return p.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:U},d);var J=Object.keys(_).map(function(ue){return _[ue]}),te=function(oe){return oe.label};function ne(ue,oe){var ge=ue.group;return{role:ge?"presentation":"option",id:"".concat(i,"_list_").concat(oe)}}var ie=function(oe){var ge=Q[oe];if(!ge)return null;var ve=ge.data||{},he=ve.value,me=ge.group,xe=bi(ve,!0),we=te(ge);return ge?p.createElement("div",Re({"aria-label":typeof we=="string"&&!me?we:null},xe,{key:oe},ne(ge,oe),{"aria-selected":q(he)}),he):null},le={role:"listbox",id:"".concat(i,"_list")};return p.createElement(p.Fragment,null,w&&p.createElement("div",Re({},le,{style:{height:0,width:0,overflow:"hidden"}}),ie(D-1),ie(D),ie(D+1)),p.createElement(wk,{itemKey:"key",ref:F,data:Q,height:A,itemHeight:k,fullHeight:!1,onMouseDown:U,onScroll:f,virtual:w,direction:T,innerProps:w?null:le},function(ue,oe){var ge=ue.group,ve=ue.groupOption,he=ue.data,me=ue.label,xe=ue.value,we=he.key;if(ge){var Qe,Ie=(Qe=he.title)!==null&&Qe!==void 0?Qe:tae(me)?me.toString():void 0;return p.createElement("div",{className:ce(M,"".concat(M,"-group"),he.className),title:Ie},me!==void 0?me:we)}var Ee=he.disabled,De=he.title;he.children;var Le=he.style,Ne=he.className,et=on(he,bHe),He=ga(et,J),pt=$(xe),lt=Ee||!pt&&L,it="".concat(M,"-option"),ut=ce(M,it,Ne,ae(ae(ae(ae({},"".concat(it,"-grouped"),ve),"".concat(it,"-active"),D===oe&&!lt),"".concat(it,"-disabled"),lt),"".concat(it,"-selected"),pt)),We=te(ue),Me=!S||typeof S=="function"||pt,Ge=typeof We=="number"?We:We||xe,ze=tae(Ge)?Ge.toString():void 0;return De!==void 0&&(ze=De),p.createElement("div",Re({},bi(He),w?{}:ne(ue,oe),{"aria-selected":q(xe),className:ut,title:ze,onMouseMove:function(){D===oe||lt||Y(oe)},onClick:function(){lt||H(xe)},style:Le}),p.createElement("div",{className:"".concat(it,"-content")},typeof I=="function"?I(ue,{index:oe}):Ge),p.isValidElement(S)||pt,Me&&p.createElement(Tk,{className:"".concat(M,"-option-state"),customizeIcon:S,customizeIconProps:{value:xe,disabled:lt,isSelected:pt}},pt?"✓":null))}))},yHe=p.forwardRef(vHe);const SHe=(function(e,t){var n=p.useRef({values:new Map,options:new Map}),r=p.useMemo(function(){var i=n.current,o=i.values,s=i.options,l=e.map(function(d){if(d.label===void 0){var f;return se(se({},d),{},{label:(f=o.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=u,l},[e,t]),a=p.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,a]});function Z4(e,t){return $Te(e).join("").toUpperCase().includes(t)}const _He=(function(e,t,n,r,a){return p.useMemo(function(){if(!n||r===!1)return e;var i=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(m,h){return a?Z4(h[a],u):h[i]?Z4(h[o!=="children"?o:"label"],u):Z4(h[s],u)},f=c?function(m){return c9(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var h=d(n,f(m));if(h)l.push(m);else{var g=m[i].filter(function(O){return d(n,f(O))});g.length&&l.push(se(se({},m),{},ae({},i,g)))}return}d(n,f(m))&&l.push(m)}),l},[e,r,a,n,t])});var nae=0,EHe=xo();function xHe(){var e;return EHe?(e=nae,nae+=1):e="TEST_OR_SSR",e}function THe(e){var t=p.useState(),n=be(t,2),r=n[0],a=n[1];return p.useEffect(function(){a("rc_select_".concat(xHe()))},[]),e||r}var wHe=["children","value"],CHe=["children"];function $He(e){var t=e,n=t.key,r=t.props,a=r.children,i=r.value,o=on(r,wHe);return se({key:n,value:i!==void 0?i:n,children:a},o)}function NTe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return To(e).map(function(n,r){if(!p.isValidElement(n)||!n.type)return null;var a=n,i=a.type.isSelectOptGroup,o=a.key,s=a.props,l=s.children,c=on(s,CHe);return t||!i?$He(n):se(se({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:NTe(l)})}).filter(function(n){return n})}var RHe=function(t,n,r,a,i){return p.useMemo(function(){var o=t,s=!t;s&&(o=NTe(n));var l=new Map,c=new Map,u=function(m,h,g){g&&typeof g=="string"&&m.set(h[g],h)},d=function f(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?Ot(Et.options):Et.options}):Et})},Ge=p.useMemo(function(){return y?Me(We):We},[We,y,le]),ze=p.useMemo(function(){return WGe(Ge,{fieldNames:te,childrenAsData:H})},[Ge,te,H]),qe=function(ft){var st=me(ft);if(Ie(st),B&&(st.length!==Ne.length||st.some(function(en,Rn){var jt;return((jt=Ne[Rn])===null||jt===void 0?void 0:jt.value)!==(en==null?void 0:en.value)}))){var Et=z?st:st.map(function(en){return en.value}),Jt=st.map(function(en){return c9(et(en.value))});B(q?Et:Et[0],q?Jt:Jt[0])}},Pe=p.useState(null),Ae=be(Pe,2),Oe=Ae[0],Te=Ae[1],Ue=p.useState(0),rt=be(Ue,2),tt=rt[0],ot=rt[1],St=A!==void 0?A:r!=="combobox",Xe=p.useCallback(function(Ot,ft){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Et=st.source,Jt=Et===void 0?"keyboard":Et;ot(ft),o&&r==="combobox"&&Ot!==null&&Jt==="keyboard"&&Te(String(Ot))},[o,r]),je=function(ft,st,Et){var Jt=function(){var Fn,Bt=et(ft);return[z?{label:Bt==null?void 0:Bt[te.label],value:ft,key:(Fn=Bt==null?void 0:Bt.key)!==null&&Fn!==void 0?Fn:ft}:ft,c9(Bt)]};if(st&&m){var en=Jt(),Rn=be(en,2),jt=Rn[0],wt=Rn[1];m(jt,wt)}else if(!st&&h&&Et!=="clear"){var an=Jt(),$n=be(an,2),Gn=$n[0],Xn=$n[1];h(Gn,Xn)}},bt=rae(function(Ot,ft){var st,Et=q?ft.selected:!0;Et?st=q?[].concat(Ke(Ne),[Ot]):[Ot]:st=Ne.filter(function(Jt){return Jt.value!==Ot}),qe(st),je(Ot,Et),r==="combobox"?Te(""):(!u9||f)&&(ue(""),Te(""))}),xt=function(ft,st){qe(ft);var Et=st.type,Jt=st.values;(Et==="remove"||Et==="clear")&&Jt.forEach(function(en){je(en.value,!1,Et)})},vt=function(ft,st){if(ue(ft),Te(null),st.source==="submit"){var Et=(ft||"").trim();if(Et){var Jt=Array.from(new Set([].concat(Ke(pt),[Et])));qe(Jt),je(Et,!0),ue("")}return}st.source!=="blur"&&(r==="combobox"&&qe(ft),u==null||u(ft))},Nt=function(ft){var st=ft;r!=="tags"&&(st=ft.map(function(Jt){var en=ve.get(Jt);return en==null?void 0:en.value}).filter(function(Jt){return Jt!==void 0}));var Et=Array.from(new Set([].concat(Ke(pt),Ke(st))));qe(Et),Et.forEach(function(Jt){je(Jt,!0)})},Mt=p.useMemo(function(){var Ot=I!==!1&&O!==!1;return se(se({},oe),{},{flattenOptions:ze,onActiveValue:Xe,defaultActiveFirstOption:St,onSelect:bt,menuItemSelectedIcon:k,rawValues:pt,fieldNames:te,virtual:Ot,direction:M,listHeight:F,listItemHeight:U,childrenAsData:H,maxCount:D,optionRender:w})},[D,oe,ze,Xe,St,bt,k,pt,te,I,O,M,F,U,H,w]);return p.createElement(Tj.Provider,{value:Mt},p.createElement(JGe,Re({},X,{id:Y,prefixCls:i,ref:t,omitDomProps:kHe,mode:r,displayValues:He,onDisplayValuesChange:xt,direction:M,searchValue:le,onSearch:vt,autoClearSearchValue:f,onSearchSplit:Nt,dropdownMatchSelectWidth:O,OptionList:yHe,emptyOptions:!ze.length,activeValue:Oe,activeDescendantId:"".concat(Y,"_list_").concat(tt)})))}),$j=NHe;$j.Option=Cj;$j.OptGroup=wj;function Fp(e,t,n){return ce({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const gg=(e,t)=>t||e,IHe=()=>{const[,e]=uo(),[t]=fl("Empty"),r=new Sr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return p.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},p.createElement("title",null,(t==null?void 0:t.description)||"Empty"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(24 31.67)"},p.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),p.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"}),p.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)"}),p.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"}),p.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"})),p.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"}),p.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},p.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),p.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},MHe=()=>{const[,e]=uo(),[t]=fl("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:o,shadowColor:s,contentColor:l}=p.useMemo(()=>({borderColor:new Sr(n).onBackground(i).toHexString(),shadowColor:new Sr(r).onBackground(i).toHexString(),contentColor:new Sr(a).onBackground(i).toHexString()}),[n,r,a,i]);return p.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},p.createElement("title",null,(t==null?void 0:t.description)||"Empty"),p.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},p.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),p.createElement("g",{fillRule:"nonzero",stroke:o},p.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"}),p.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},DHe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:i,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:o,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}}}}},LHe=Er("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=nr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return DHe(a)});var QHe=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:i,description:o,children:s,imageStyle:l,style:c,classNames:u,styles:d}=e,f=QHe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:m,direction:h,className:g,style:O,classNames:v,styles:y,image:S}=$i("empty"),C=m("empty",a),[_,w,T]=LHe(C),[A]=fl("Empty"),k=typeof o<"u"?o:A==null?void 0:A.description,I=typeof k=="string"?k:"empty",M=(t=i??S)!==null&&t!==void 0?t:ITe;let Q=null;return typeof M=="string"?Q=p.createElement("img",{draggable:!1,alt:I,src:M}):Q=M,_(p.createElement("div",Object.assign({className:ce(w,T,C,g,{[`${C}-normal`]:M===MTe,[`${C}-rtl`]:h==="rtl"},n,r,v.root,u==null?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),O),d==null?void 0:d.root),c)},f),p.createElement("div",{className:ce(`${C}-image`,v.image,u==null?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},l),y.image),d==null?void 0:d.image)},Q),k&&p.createElement("div",{className:ce(`${C}-description`,v.description,u==null?void 0:u.description),style:Object.assign(Object.assign({},y.description),d==null?void 0:d.description)},k),s&&p.createElement("div",{className:ce(`${C}-footer`,v.footer,u==null?void 0:u.footer),style:Object.assign(Object.assign({},y.footer),d==null?void 0:d.footer)},s)))};of.PRESENTED_IMAGE_DEFAULT=ITe;of.PRESENTED_IMAGE_SIMPLE=MTe;const DTe=e=>{const{componentName:t}=e,{getPrefixCls:n}=p.useContext(fn),r=n("empty");switch(t){case"Table":case"List":return Z.createElement(of,{image:of.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Z.createElement(of,{image:of.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Z.createElement(of,null)}},mm=(e,t,n)=>{var r,a;const{variant:i,[e]:o}=p.useContext(fn),s=p.useContext(Vxe),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(a=(r=s??l)!==null&&r!==void 0?r:i)!==null&&a!==void 0?a:"outlined";const u=hUe.includes(c);return[c,u]},zHe=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 BHe(e,t){return e||zHe(t)}const aae=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"}},FHe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},zr(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(mn)})},[U]),ut=p.useContext(Gj)||{},vt=ut.maxCount,Gt=ut.rawValues,en=function(un,pr,sn){if(!(Fe&&$9(vt)&&(Gt==null?void 0:Gt.size)>=vt)){var nn=!0,or=un;A==null||A(null);var Zr=THe(un,U,$9(vt)?vt-Gt.size:void 0),xn=sn?null:Zr;return O!=="combobox"&&xn&&(or="",D==null||D(xn),Ot(!1),nn=!1),B&&Ie!==or&&B(or,{source:pr?"typing":"effect"}),nn}},Rn=function(un){!un||!un.trim()||B(un,{source:"submit"})};p.useEffect(function(){!St&&!Fe&&O!=="combobox"&&en("",!1,!1)},[St]),p.useEffect(function(){yt&&v&&$t(!1),v&&!Ze.current&&We(!1)},[v]);var Ut=HTe(),Ct=ye(Ut,2),Vt=Ct[0],_n=Ct[1],jn=p.useRef(!1),Qn=function(un){var pr=Vt(),sn=un.key,nn=sn==="Enter";if(nn&&(O!=="combobox"&&un.preventDefault(),St||Ot(!0)),_n(!!Ie),sn==="Backspace"&&!pr&&Fe&&!Ie&&u.length){for(var or=et(u),Zr=null,xn=or.length-1;xn>=0;xn-=1){var Kn=or[xn];if(!Kn.disabled){or.splice(xn,1),Zr=Kn;break}}Zr&&d(or,{type:"remove",values:[Zr]})}for(var Ar=arguments.length,Tr=new Array(Ar>1?Ar-1:0),qn=1;qn1?pr-1:0),nn=1;nn1?Zr-1:0),Kn=1;Kn"u"?"undefined":Xt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const iwe=(function(e,t,n,r){var a=p.useRef(!1),i=p.useRef(null);function o(){clearTimeout(i.current),a.current=!0,i.current=setTimeout(function(){a.current=!1},50)}var s=p.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&d?(clearTimeout(i.current),a.current=!1):(!d||a.current)&&o(),!a.current&&d}});function IHe(e,t,n,r,a,i,o){var s=p.useRef(0),l=p.useRef(null),c=p.useRef(null),u=p.useRef(!1),d=iwe(t,n,r,a);function f(y,S){if(ur.cancel(l.current),!d(!1,S)){var C=y;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=S,c.current=S,vae||C.preventDefault(),l.current=ur(function(){var _=u.current?10:1;o(s.current*_,!1),s.current=0})}}function m(y,S){o(S,!0),vae||y.preventDefault()}var h=p.useRef(null),g=p.useRef(null);function O(y){if(e){ur.cancel(g.current),g.current=ur(function(){h.current=null},2);var S=y.deltaX,C=y.deltaY,_=y.shiftKey,w=S,T=C;(h.current==="sx"||!h.current&&_&&C&&!S)&&(w=C,T=0,h.current="sx");var k=Math.abs(w),A=Math.abs(T);h.current===null&&(h.current=i&&k>A?"x":"y"),h.current==="y"?f(y,T):m(y,w)}}function v(y){e&&(u.current=y.detail===c.current)}return[O,v]}function MHe(e,t,n,r){var a=p.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=ye(a,2),o=i[0],s=i[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,f=o.get(u),m=o.get(d);if(f===void 0||m===void 0)for(var h=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var h=function(){var v=!1;s.current.forEach(function(y,S){if(y&&y.offsetParent){var C=y.offsetHeight,_=getComputedStyle(y),w=_.marginTop,T=_.marginBottom,k=yae(w),A=yae(T),I=C+k+A;l.current.get(S)!==I&&(l.current.set(S,I),v=!0)}}),v&&o(function(y){return y+1})};if(m)h();else{c.current+=1;var g=c.current;Promise.resolve().then(function(){g===c.current&&h()})}}function f(m,h){var g=e(m);s.current.get(g),h?(s.current.set(g,h),d()):s.current.delete(g)}return p.useEffect(function(){return u},[]),[f,d,l.current,i]}var Sae=14/15;function QHe(e,t,n){var r=p.useRef(!1),a=p.useRef(0),i=p.useRef(0),o=p.useRef(null),s=p.useRef(null),l,c=function(m){if(r.current){var h=Math.ceil(m.touches[0].pageX),g=Math.ceil(m.touches[0].pageY),O=a.current-h,v=i.current-g,y=Math.abs(O)>Math.abs(v);y?a.current=h:i.current=g;var S=n(y,y?O:v,!1,m);S&&m.preventDefault(),clearInterval(s.current),S&&(s.current=setInterval(function(){y?O*=Sae:v*=Sae;var C=Math.floor(y?O:v);(!n(y,C,!0)||Math.abs(C)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},d=function(m){l(),m.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(m.touches[0].pageX),i.current=Math.ceil(m.touches[0].pageY),o.current=m.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},tr(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[e])}function _ae(e){return Math.floor(Math.pow(e,.5))}function k9(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function zHe(e,t,n){p.useEffect(function(){var r=t.current;if(e&&r){var a=!1,i,o,s=function(){ur.cancel(i)},l=function f(){s(),i=ur(function(){n(o),f()})},c=function(){a=!1,s()},u=function(m){if(!(m.target.draggable||m.button!==0)){var h=m;h._virtualHandled||(h._virtualHandled=!0,a=!0)}},d=function(m){if(a){var h=k9(m,!1),g=r.getBoundingClientRect(),O=g.top,v=g.bottom;if(h<=O){var y=O-h;o=-_ae(y),l()}else if(h>=v){var S=h-v;o=_ae(S),l()}else s()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",c),r.ownerDocument.addEventListener("mousemove",d),r.ownerDocument.addEventListener("dragend",c),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",c),r.ownerDocument.removeEventListener("mousemove",d),r.ownerDocument.removeEventListener("dragend",c),s()}}},[e])}var BHe=10;function FHe(e,t,n,r,a,i,o,s){var l=p.useRef(),c=p.useState(null),u=ye(c,2),d=u[0],f=u[1];return tr(function(){if(d&&d.times=0;D-=1){var U=a(t[D]),R=n.get(U);if(R===void 0){y=!0;break}if(B-=R,B<=0)break}switch(_){case"top":C=T-O;break;case"bottom":C=k-v+O;break;default:{var $=e.current.scrollTop,P=$+v;T<$?S="top":k>P&&(S="bottom")}}C!==null&&o(C),C!==d.lastTop&&(y=!0)}y&&f(oe(oe({},d),{},{times:d.times+1,targetAlign:S,lastTop:C}))}},[d,e.current]),function(m){if(m==null){s();return}if(ur.cancel(l.current),typeof m=="number")o(m);else if(m&&Xt(m)==="object"){var h,g=m.align;"index"in m?h=m.index:h=t.findIndex(function(y){return a(y)===m.key});var O=m.offset,v=O===void 0?0:O;f({times:0,index:h,offset:v,originAlign:g})}}}var Eae=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,i=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,f=e.style,m=e.thumbStyle,h=e.showScrollBar,g=p.useState(!1),O=ye(g,2),v=O[0],y=O[1],S=p.useState(null),C=ye(S,2),_=C[0],w=C[1],T=p.useState(null),k=ye(T,2),A=k[0],I=k[1],M=!r,Q=p.useRef(),B=p.useRef(),D=p.useState(h),U=ye(D,2),R=U[0],$=U[1],P=p.useRef(),z=function(){h===!0||h===!1||(clearTimeout(P.current),$(!0),P.current=setTimeout(function(){$(!1)},3e3))},F=i-d||0,L=d-u||0,X=p.useMemo(function(){if(a===0||F===0)return 0;var ue=a/F;return ue*L},[a,F,L]),Y=function(ce){ce.stopPropagation(),ce.preventDefault()},q=p.useRef({top:X,dragging:v,pageY:_,startTop:A});q.current={top:X,dragging:v,pageY:_,startTop:A};var G=function(ce){y(!0),w(k9(ce,c)),I(q.current.top),o(),ce.stopPropagation(),ce.preventDefault()};p.useEffect(function(){var ue=function(Oe){Oe.preventDefault()},ce=Q.current,be=B.current;return ce.addEventListener("touchstart",ue,{passive:!1}),be.addEventListener("touchstart",G,{passive:!1}),function(){ce.removeEventListener("touchstart",ue),be.removeEventListener("touchstart",G)}},[]);var ee=p.useRef();ee.current=F;var K=p.useRef();K.current=L,p.useEffect(function(){if(v){var ue,ce=function(Oe){var me=q.current,Te=me.dragging,Ce=me.pageY,Fe=me.startTop;ur.cancel(ue);var Me=Q.current.getBoundingClientRect(),Ee=d/(c?Me.width:Me.height);if(Te){var Le=(k9(Oe,c)-Ce)*Ee,ze=Fe;!M&&c?ze-=Le:ze+=Le;var Qe=ee.current,Je=K.current,He=Je?ze/Je:0,gt=Math.ceil(He*Qe);gt=Math.max(gt,0),gt=Math.min(gt,Qe),ue=ur(function(){l(gt,c)})}},be=function(){y(!1),s()};return window.addEventListener("mousemove",ce,{passive:!0}),window.addEventListener("touchmove",ce,{passive:!0}),window.addEventListener("mouseup",be,{passive:!0}),window.addEventListener("touchend",be,{passive:!0}),function(){window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce),window.removeEventListener("mouseup",be),window.removeEventListener("touchend",be),ur.cancel(ue)}}},[v]),p.useEffect(function(){return z(),function(){clearTimeout(P.current)}},[a]),p.useImperativeHandle(t,function(){return{delayHidden:z}});var ne="".concat(n,"-scrollbar"),ie={position:"absolute",visibility:R?null:"hidden"},se={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(ie,{height:8,left:0,right:0,bottom:0}),Object.assign(se,ae({height:"100%",width:u},M?"left":"right",X))):(Object.assign(ie,ae({width:8,top:0,bottom:0},M?"right":"left",0)),Object.assign(se,{width:"100%",height:u,top:X})),p.createElement("div",{ref:Q,className:le(ne,ae(ae(ae({},"".concat(ne,"-horizontal"),c),"".concat(ne,"-vertical"),!c),"".concat(ne,"-visible"),R)),style:oe(oe({},ie),f),onMouseDown:Y,onMouseMove:z},p.createElement("div",{ref:B,className:le("".concat(ne,"-thumb"),ae({},"".concat(ne,"-thumb-moving"),v)),style:oe(oe({},se),m),onMouseDown:G}))}),UHe=20;function xae(){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,UHe),Math.floor(n)}var jHe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],XHe=[],YHe={overflowY:"auto",overflowAnchor:"none"};function VHe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,i=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,f=e.itemKey,m=e.virtual,h=e.direction,g=e.scrollWidth,O=e.component,v=O===void 0?"div":O,y=e.onScroll,S=e.onVirtualScroll,C=e.onVisibleChange,_=e.innerProps,w=e.extraRender,T=e.styles,k=e.showScrollBar,A=k===void 0?"optional":k,I=ln(e,jHe),M=p.useCallback(function(pe){return typeof f=="function"?f(pe):pe==null?void 0:pe[f]},[f]),Q=LHe(M),B=ye(Q,4),D=B[0],U=B[1],R=B[2],$=B[3],P=!!(m!==!1&&i&&o),z=p.useMemo(function(){return Object.values(R.maps).reduce(function(pe,$e){return pe+$e},0)},[R.id,R.maps]),F=P&&u&&(Math.max(o*u.length,z)>i||!!g),L=h==="rtl",X=le(r,ae({},"".concat(r,"-rtl"),L),a),Y=u||XHe,q=p.useRef(),G=p.useRef(),ee=p.useRef(),K=p.useState(0),ne=ye(K,2),ie=ne[0],se=ne[1],ue=p.useState(0),ce=ye(ue,2),be=ce[0],ge=ce[1],Oe=p.useState(!1),me=ye(Oe,2),Te=me[0],Ce=me[1],Fe=function(){Ce(!0)},Me=function(){Ce(!1)},Ee={getKey:M};function Le(pe){se(function($e){var tt;typeof pe=="function"?tt=pe($e):tt=pe;var dt=mt(tt);return q.current.scrollTop=dt,dt})}var ze=p.useRef({start:0,end:Y.length}),Qe=p.useRef(),Je=NHe(Y,M),He=ye(Je,1),gt=He[0];Qe.current=gt;var st=p.useMemo(function(){if(!P)return{scrollHeight:void 0,start:0,end:Y.length-1,offset:void 0};if(!F){var pe;return{scrollHeight:((pe=G.current)===null||pe===void 0?void 0:pe.offsetHeight)||0,start:0,end:Y.length-1,offset:void 0}}for(var $e=0,tt,dt,wt,Tt=Y.length,Yt=0;Yt=ie&&tt===void 0&&(tt=Yt,dt=$e),Et>ie+i&&wt===void 0&&(wt=Yt),$e=Et}return tt===void 0&&(tt=0,dt=0,wt=Math.ceil(i/o)),wt===void 0&&(wt=Y.length-1),wt=Math.min(wt+1,Y.length-1),{scrollHeight:$e,start:tt,end:wt,offset:dt}},[F,P,ie,Y,$,i]),lt=st.scrollHeight,pt=st.start,Ze=st.end,De=st.offset;ze.current.start=pt,ze.current.end=Ze,p.useLayoutEffect(function(){var pe=R.getRecord();if(pe.size===1){var $e=Array.from(pe.keys())[0],tt=pe.get($e),dt=Y[pt];if(dt&&tt===void 0){var wt=M(dt);if(wt===$e){var Tt=R.get($e),Yt=Tt-o;Le(function(En){return En+Yt})}}}R.resetRecord()},[lt]);var Ke=p.useState({width:0,height:i}),Be=ye(Ke,2),We=Be[0],Re=Be[1],Ie=function($e){Re({width:$e.offsetWidth,height:$e.offsetHeight})},ve=p.useRef(),we=p.useRef(),Xe=p.useMemo(function(){return xae(We.width,g)},[We.width,g]),rt=p.useMemo(function(){return xae(We.height,lt)},[We.height,lt]),at=lt-i,ct=p.useRef(at);ct.current=at;function mt(pe){var $e=pe;return Number.isNaN(ct.current)||($e=Math.min($e,ct.current)),$e=Math.max($e,0),$e}var je=ie<=0,Ye=ie>=at,yt=be<=0,$t=be>=g,St=iwe(je,Ye,yt,$t),Mt=function(){return{x:L?-be:be,y:ie}},Qt=p.useRef(Mt()),Ot=ar(function(pe){if(S){var $e=oe(oe({},Mt()),pe);(Qt.current.x!==$e.x||Qt.current.y!==$e.y)&&(S($e),Qt.current=$e)}});function ht(pe,$e){var tt=pe;$e?(Fl.flushSync(function(){ge(tt)}),Ot()):Le(tt)}function ut(pe){var $e=pe.currentTarget.scrollTop;$e!==ie&&Le($e),y==null||y(pe),Ot()}var vt=function($e){var tt=$e,dt=g?g-We.width:0;return tt=Math.max(tt,0),tt=Math.min(tt,dt),tt},Gt=ar(function(pe,$e){$e?(Fl.flushSync(function(){ge(function(tt){var dt=tt+(L?-pe:pe);return vt(dt)})}),Ot()):Le(function(tt){var dt=tt+pe;return dt})}),en=IHe(P,je,Ye,yt,$t,!!g,Gt),Rn=ye(en,2),Ut=Rn[0],Ct=Rn[1];QHe(P,q,function(pe,$e,tt,dt){var wt=dt;return St(pe,$e,tt)?!1:!wt||!wt._virtualHandled?(wt&&(wt._virtualHandled=!0),Ut({preventDefault:function(){},deltaX:pe?$e:0,deltaY:pe?0:$e}),!0):!1}),zHe(F,q,function(pe){Le(function($e){return $e+pe})}),tr(function(){function pe(tt){var dt=je&&tt.detail<0,wt=Ye&&tt.detail>0;P&&!dt&&!wt&&tt.preventDefault()}var $e=q.current;return $e.addEventListener("wheel",Ut,{passive:!1}),$e.addEventListener("DOMMouseScroll",Ct,{passive:!0}),$e.addEventListener("MozMousePixelScroll",pe,{passive:!1}),function(){$e.removeEventListener("wheel",Ut),$e.removeEventListener("DOMMouseScroll",Ct),$e.removeEventListener("MozMousePixelScroll",pe)}},[P,je,Ye]),tr(function(){if(g){var pe=vt(be);ge(pe),Ot({x:pe})}},[We.width,g]);var Vt=function(){var $e,tt;($e=ve.current)===null||$e===void 0||$e.delayHidden(),(tt=we.current)===null||tt===void 0||tt.delayHidden()},_n=FHe(q,Y,R,o,M,function(){return U(!0)},Le,Vt);p.useImperativeHandle(t,function(){return{nativeElement:ee.current,getScrollInfo:Mt,scrollTo:function($e){function tt(dt){return dt&&Xt(dt)==="object"&&("left"in dt||"top"in dt)}tt($e)?($e.left!==void 0&&ge(vt($e.left)),_n($e.top)):_n($e)}}}),tr(function(){if(C){var pe=Y.slice(pt,Ze+1);C(pe,Y)}},[pt,Ze,Y]);var jn=MHe(Y,M,R,o),Qn=w==null?void 0:w({start:pt,end:Ze,virtual:F,offsetX:be,offsetY:De,rtl:L,getSize:jn}),fr=kHe(Y,pt,Ze,g,be,D,d,Ee),Pt=null;i&&(Pt=oe(ae({},l?"height":"maxHeight",i),YHe),P&&(Pt.overflowY="hidden",g&&(Pt.overflowX="hidden"),Te&&(Pt.pointerEvents="none")));var xe={};return L&&(xe.dir="rtl"),p.createElement("div",Ae({ref:ee,style:oe(oe({},c),{},{position:"relative"}),className:X},xe,I),p.createElement(_o,{onResize:Ie},p.createElement(v,{className:"".concat(r,"-holder"),style:Pt,ref:q,onScroll:ut,onMouseEnter:Vt},p.createElement(awe,{prefixCls:r,height:lt,offsetX:be,offsetY:De,scrollWidth:g,onInnerResize:U,ref:G,innerProps:_,rtl:L,extra:Qn},fr))),F&<>i&&p.createElement(Eae,{ref:ve,prefixCls:r,scrollOffset:ie,scrollRange:lt,rtl:L,onScroll:ht,onStartMove:Fe,onStopMove:Me,spinSize:rt,containerSize:We.height,style:T==null?void 0:T.verticalScrollBar,thumbStyle:T==null?void 0:T.verticalScrollBarThumb,showScrollBar:A}),F&&g>We.width&&p.createElement(Eae,{ref:we,prefixCls:r,scrollOffset:be,scrollRange:g,rtl:L,onScroll:ht,onStartMove:Fe,onStopMove:Me,spinSize:Xe,containerSize:We.width,horizontal:!0,style:T==null?void 0:T.horizontalScrollBar,thumbStyle:T==null?void 0:T.horizontalScrollBarThumb,showScrollBar:A}))}var Qk=p.forwardRef(VHe);Qk.displayName="List";function qHe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var WHe=["disabled","title","children","style","className"];function Tae(e){return typeof e=="string"||typeof e=="number"}var GHe=function(t,n){var r=NGe(),a=r.prefixCls,i=r.id,o=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,m=p.useContext(Gj),h=m.maxCount,g=m.flattenOptions,O=m.onActiveValue,v=m.defaultActiveFirstOption,y=m.onSelect,S=m.menuItemSelectedIcon,C=m.rawValues,_=m.fieldNames,w=m.virtual,T=m.direction,k=m.listHeight,A=m.listItemHeight,I=m.optionRender,M="".concat(a,"-item"),Q=Om(function(){return g},[o,g],function(ue,ce){return ce[0]&&ue[1]!==ce[1]}),B=p.useRef(null),D=p.useMemo(function(){return s&&$9(h)&&(C==null?void 0:C.size)>=h},[s,h,C==null?void 0:C.size]),U=function(ce){ce.preventDefault()},R=function(ce){var be;(be=B.current)===null||be===void 0||be.scrollTo(typeof ce=="number"?{index:ce}:ce)},$=p.useCallback(function(ue){return l==="combobox"?!1:C.has(ue)},[l,et(C).toString(),C.size]),P=function(ce){for(var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ge=Q.length,Oe=0;Oe1&&arguments[1]!==void 0?arguments[1]:!1;X(ce);var ge={source:be?"keyboard":"mouse"},Oe=Q[ce];if(!Oe){O(null,-1,ge);return}O(Oe.value,ce,ge)};p.useEffect(function(){Y(v!==!1?P(0):-1)},[Q.length,c]);var q=p.useCallback(function(ue){return l==="combobox"?String(ue).toLowerCase()===c.toLowerCase():C.has(ue)},[l,c,et(C).toString(),C.size]);p.useEffect(function(){var ue=setTimeout(function(){if(!s&&o&&C.size===1){var be=Array.from(C)[0],ge=Q.findIndex(function(Oe){var me=Oe.data;return c?String(me.value).startsWith(c):me.value===be});ge!==-1&&(Y(ge),R(ge))}});if(o){var ce;(ce=B.current)===null||ce===void 0||ce.scrollTo(void 0)}return function(){return clearTimeout(ue)}},[o,c]);var G=function(ce){ce!==void 0&&y(ce,{selected:!C.has(ce)}),s||u(!1)};if(p.useImperativeHandle(n,function(){return{onKeyDown:function(ce){var be=ce.which,ge=ce.ctrlKey;switch(be){case Ht.N:case Ht.P:case Ht.UP:case Ht.DOWN:{var Oe=0;if(be===Ht.UP?Oe=-1:be===Ht.DOWN?Oe=1:qHe()&&ge&&(be===Ht.N?Oe=1:be===Ht.P&&(Oe=-1)),Oe!==0){var me=P(L+Oe,Oe);R(me),Y(me,!0)}break}case Ht.TAB:case Ht.ENTER:{var Te,Ce=Q[L];Ce&&!(Ce!=null&&(Te=Ce.data)!==null&&Te!==void 0&&Te.disabled)&&!D?G(Ce.value):G(void 0),o&&ce.preventDefault();break}case Ht.ESC:u(!1),o&&ce.stopPropagation()}},onKeyUp:function(){},scrollTo:function(ce){R(ce)}}}),Q.length===0)return p.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(M,"-empty"),onMouseDown:U},d);var ee=Object.keys(_).map(function(ue){return _[ue]}),K=function(ce){return ce.label};function ne(ue,ce){var be=ue.group;return{role:be?"presentation":"option",id:"".concat(i,"_list_").concat(ce)}}var ie=function(ce){var be=Q[ce];if(!be)return null;var ge=be.data||{},Oe=ge.value,me=be.group,Te=vi(ge,!0),Ce=K(be);return be?p.createElement("div",Ae({"aria-label":typeof Ce=="string"&&!me?Ce:null},Te,{key:ce},ne(be,ce),{"aria-selected":q(Oe)}),Oe):null},se={role:"listbox",id:"".concat(i,"_list")};return p.createElement(p.Fragment,null,w&&p.createElement("div",Ae({},se,{style:{height:0,width:0,overflow:"hidden"}}),ie(L-1),ie(L),ie(L+1)),p.createElement(Qk,{itemKey:"key",ref:B,data:Q,height:k,itemHeight:A,fullHeight:!1,onMouseDown:U,onScroll:f,virtual:w,direction:T,innerProps:w?null:se},function(ue,ce){var be=ue.group,ge=ue.groupOption,Oe=ue.data,me=ue.label,Te=ue.value,Ce=Oe.key;if(be){var Fe,Me=(Fe=Oe.title)!==null&&Fe!==void 0?Fe:Tae(me)?me.toString():void 0;return p.createElement("div",{className:le(M,"".concat(M,"-group"),Oe.className),title:Me},me!==void 0?me:Ce)}var Ee=Oe.disabled,Le=Oe.title;Oe.children;var ze=Oe.style,Qe=Oe.className,Je=ln(Oe,WHe),He=Oa(Je,ee),gt=$(Te),st=Ee||!gt&&D,lt="".concat(M,"-option"),pt=le(M,lt,Qe,ae(ae(ae(ae({},"".concat(lt,"-grouped"),ge),"".concat(lt,"-active"),L===ce&&!st),"".concat(lt,"-disabled"),st),"".concat(lt,"-selected"),gt)),Ze=K(ue),De=!S||typeof S=="function"||gt,Ke=typeof Ze=="number"?Ze:Ze||Te,Be=Tae(Ke)?Ke.toString():void 0;return Le!==void 0&&(Be=Le),p.createElement("div",Ae({},vi(He),w?{}:ne(ue,ce),{"aria-selected":q(Te),className:pt,title:Be,onMouseMove:function(){L===ce||st||Y(ce)},onClick:function(){st||G(Te)},style:ze}),p.createElement("div",{className:"".concat(lt,"-content")},typeof I=="function"?I(ue,{index:ce}):Ke),p.isValidElement(S)||gt,De&&p.createElement(Lk,{className:"".concat(M,"-option-state"),customizeIcon:S,customizeIconProps:{value:Te,disabled:st,isSelected:gt}},gt?"✓":null))}))},HHe=p.forwardRef(GHe);const ZHe=(function(e,t){var n=p.useRef({values:new Map,options:new Map}),r=p.useMemo(function(){var i=n.current,o=i.values,s=i.options,l=e.map(function(d){if(d.label===void 0){var f;return oe(oe({},d),{},{label:(f=o.get(d.value))===null||f===void 0?void 0:f.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=u,l},[e,t]),a=p.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,a]});function c5(e,t){return twe(e).join("").toUpperCase().includes(t)}const KHe=(function(e,t,n,r,a){return p.useMemo(function(){if(!n||r===!1)return e;var i=t.options,o=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(m,h){return a?c5(h[a],u):h[i]?c5(h[o!=="children"?o:"label"],u):c5(h[s],u)},f=c?function(m){return R9(m)}:function(m){return m};return e.forEach(function(m){if(m[i]){var h=d(n,f(m));if(h)l.push(m);else{var g=m[i].filter(function(O){return d(n,f(O))});g.length&&l.push(oe(oe({},m),{},ae({},i,g)))}return}d(n,f(m))&&l.push(m)}),l},[e,r,a,n,t])});var wae=0,JHe=Eo();function eZe(){var e;return JHe?(e=wae,wae+=1):e="TEST_OR_SSR",e}function tZe(e){var t=p.useState(),n=ye(t,2),r=n[0],a=n[1];return p.useEffect(function(){a("rc_select_".concat(eZe()))},[]),e||r}var nZe=["children","value"],rZe=["children"];function aZe(e){var t=e,n=t.key,r=t.props,a=r.children,i=r.value,o=ln(r,nZe);return oe({key:n,value:i!==void 0?i:n,children:a},o)}function owe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return xo(e).map(function(n,r){if(!p.isValidElement(n)||!n.type)return null;var a=n,i=a.type.isSelectOptGroup,o=a.key,s=a.props,l=s.children,c=ln(s,rZe);return t||!i?aZe(n):oe(oe({key:"__RC_SELECT_GRP__".concat(o===null?r:o,"__"),label:o},c),{},{options:owe(l)})}).filter(function(n){return n})}var iZe=function(t,n,r,a,i){return p.useMemo(function(){var o=t,s=!t;s&&(o=owe(n));var l=new Map,c=new Map,u=function(m,h,g){g&&typeof g=="string"&&m.set(h[g],h)},d=function f(m){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?Ot(vt.options):vt.options}):vt})},Ke=p.useMemo(function(){return y?De(Ze):Ze},[Ze,y,se]),Be=p.useMemo(function(){return xHe(Ke,{fieldNames:K,childrenAsData:G})},[Ke,K,G]),We=function(ht){var ut=me(ht);if(Me(ut),F&&(ut.length!==Qe.length||ut.some(function(en,Rn){var Ut;return((Ut=Qe[Rn])===null||Ut===void 0?void 0:Ut.value)!==(en==null?void 0:en.value)}))){var vt=z?ut:ut.map(function(en){return en.value}),Gt=ut.map(function(en){return R9(Je(en.value))});F(q?vt:vt[0],q?Gt:Gt[0])}},Re=p.useState(null),Ie=ye(Re,2),ve=Ie[0],we=Ie[1],Xe=p.useState(0),rt=ye(Xe,2),at=rt[0],ct=rt[1],mt=k!==void 0?k:r!=="combobox",je=p.useCallback(function(Ot,ht){var ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vt=ut.source,Gt=vt===void 0?"keyboard":vt;ct(ht),o&&r==="combobox"&&Ot!==null&&Gt==="keyboard"&&we(String(Ot))},[o,r]),Ye=function(ht,ut,vt){var Gt=function(){var Pt,xe=Je(ht);return[z?{label:xe==null?void 0:xe[K.label],value:ht,key:(Pt=xe==null?void 0:xe.key)!==null&&Pt!==void 0?Pt:ht}:ht,R9(xe)]};if(ut&&m){var en=Gt(),Rn=ye(en,2),Ut=Rn[0],Ct=Rn[1];m(Ut,Ct)}else if(!ut&&h&&vt!=="clear"){var Vt=Gt(),_n=ye(Vt,2),jn=_n[0],Qn=_n[1];h(jn,Qn)}},yt=Cae(function(Ot,ht){var ut,vt=q?ht.selected:!0;vt?ut=q?[].concat(et(Qe),[Ot]):[Ot]:ut=Qe.filter(function(Gt){return Gt.value!==Ot}),We(ut),Ye(Ot,vt),r==="combobox"?we(""):(!P9||f)&&(ue(""),we(""))}),$t=function(ht,ut){We(ht);var vt=ut.type,Gt=ut.values;(vt==="remove"||vt==="clear")&&Gt.forEach(function(en){Ye(en.value,!1,vt)})},St=function(ht,ut){if(ue(ht),we(null),ut.source==="submit"){var vt=(ht||"").trim();if(vt){var Gt=Array.from(new Set([].concat(et(gt),[vt])));We(Gt),Ye(vt,!0),ue("")}return}ut.source!=="blur"&&(r==="combobox"&&We(ht),u==null||u(ht))},Mt=function(ht){var ut=ht;r!=="tags"&&(ut=ht.map(function(Gt){var en=ge.get(Gt);return en==null?void 0:en.value}).filter(function(Gt){return Gt!==void 0}));var vt=Array.from(new Set([].concat(et(gt),et(ut))));We(vt),vt.forEach(function(Gt){Ye(Gt,!0)})},Qt=p.useMemo(function(){var Ot=I!==!1&&O!==!1;return oe(oe({},ce),{},{flattenOptions:Be,onActiveValue:je,defaultActiveFirstOption:mt,onSelect:yt,menuItemSelectedIcon:A,rawValues:gt,fieldNames:K,virtual:Ot,direction:M,listHeight:B,listItemHeight:U,childrenAsData:G,maxCount:L,optionRender:w})},[L,ce,Be,je,mt,yt,A,gt,K,I,O,M,B,U,G,w]);return p.createElement(Gj.Provider,{value:Qt},p.createElement(RHe,Ae({},X,{id:Y,prefixCls:i,ref:t,omitDomProps:sZe,mode:r,displayValues:He,onDisplayValuesChange:$t,direction:M,searchValue:se,onSearch:St,autoClearSearchValue:f,onSearchSplit:Mt,dropdownMatchSelectWidth:O,OptionList:HHe,emptyOptions:!Be.length,activeValue:ve,activeDescendantId:"".concat(Y,"_list_").concat(at)})))}),Kj=cZe;Kj.Option=Zj;Kj.OptGroup=Hj;function Wp(e,t,n){return le({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const xg=(e,t)=>t||e,uZe=()=>{const[,e]=co(),[t]=fl("Empty"),r=new Sr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return p.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},p.createElement("title",null,(t==null?void 0:t.description)||"Empty"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(24 31.67)"},p.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),p.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"}),p.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)"}),p.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"}),p.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"})),p.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"}),p.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},p.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),p.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},dZe=()=>{const[,e]=co(),[t]=fl("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:o,shadowColor:s,contentColor:l}=p.useMemo(()=>({borderColor:new Sr(n).onBackground(i).toHexString(),shadowColor:new Sr(r).onBackground(i).toHexString(),contentColor:new Sr(a).onBackground(i).toHexString()}),[n,r,a,i]);return p.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},p.createElement("title",null,(t==null?void 0:t.description)||"Empty"),p.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},p.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),p.createElement("g",{fillRule:"nonzero",stroke:o},p.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"}),p.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},fZe=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:i,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:o,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}}}}},pZe=Er("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=nr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return fZe(a)});var mZe=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:i,description:o,children:s,imageStyle:l,style:c,classNames:u,styles:d}=e,f=mZe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:m,direction:h,className:g,style:O,classNames:v,styles:y,image:S}=$i("empty"),C=m("empty",a),[_,w,T]=pZe(C),[k]=fl("Empty"),A=typeof o<"u"?o:k==null?void 0:k.description,I=typeof A=="string"?A:"empty",M=(t=i??S)!==null&&t!==void 0?t:swe;let Q=null;return typeof M=="string"?Q=p.createElement("img",{draggable:!1,alt:I,src:M}):Q=M,_(p.createElement("div",Object.assign({className:le(w,T,C,g,{[`${C}-normal`]:M===lwe,[`${C}-rtl`]:h==="rtl"},n,r,v.root,u==null?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),O),d==null?void 0:d.root),c)},f),p.createElement("div",{className:le(`${C}-image`,v.image,u==null?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},l),y.image),d==null?void 0:d.image)},Q),A&&p.createElement("div",{className:le(`${C}-description`,v.description,u==null?void 0:u.description),style:Object.assign(Object.assign({},y.description),d==null?void 0:d.description)},A),s&&p.createElement("div",{className:le(`${C}-footer`,v.footer,u==null?void 0:u.footer),style:Object.assign(Object.assign({},y.footer),d==null?void 0:d.footer)},s)))};ff.PRESENTED_IMAGE_DEFAULT=swe;ff.PRESENTED_IMAGE_SIMPLE=lwe;const cwe=e=>{const{componentName:t}=e,{getPrefixCls:n}=p.useContext(pn),r=n("empty");switch(t){case"Table":case"List":return Z.createElement(ff,{image:ff.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Z.createElement(ff,{image:ff.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return Z.createElement(ff,null)}},ym=(e,t,n)=>{var r,a;const{variant:i,[e]:o}=p.useContext(pn),s=p.useContext(vTe),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(a=(r=s??l)!==null&&r!==void 0?r:i)!==null&&a!==void 0?a:"outlined";const u=YUe.includes(c);return[c,u]},hZe=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 gZe(e,t){return e||hZe(t)}const $ae=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"}},OZe=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Qr(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` ${a}${s}bottomLeft, ${i}${s}bottomLeft - `]:{animationName:fk},[` + `]:{animationName:xk},[` ${a}${s}topLeft, ${i}${s}topLeft, ${a}${s}topRight, ${i}${s}topRight - `]:{animationName:mk},[`${o}${s}bottomLeft`]:{animationName:pk},[` + `]:{animationName:wk},[`${o}${s}bottomLeft`]:{animationName:Tk},[` ${o}${s}topLeft, ${o}${s}topRight - `]:{animationName:hk},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},aae(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"},ll),"&-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({},aae(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},fd(e,"slide-up"),fd(e,"slide-down"),X0(e,"move-up"),X0(e,"move-down")]},LTe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,i=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(i).sub(a).equal(),0);return{basePadding:i,containerPadding:o,itemHeight:de(t),itemLineHeight:de(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},UHe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},QTe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:i,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},_b()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},jHe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,o=UHe(e),s=t?`${n}-${t}`:"",l=LTe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},QTe(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${de(r)} 0`,lineHeight:de(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:de(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:de(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${a}-item + ${a}-item, + `]:{animationName:Ck},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},$ae(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"},ll),"&-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({},$ae(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},bd(e,"slide-up"),bd(e,"slide-down"),G0(e,"move-up"),G0(e,"move-down")]},uwe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,i=e.max(e.calc(n).sub(r).equal(),0),o=e.max(e.calc(i).sub(a).equal(),0);return{basePadding:i,containerPadding:o,itemHeight:de(t),itemLineHeight:de(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},bZe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},dwe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:i,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Cb()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},vZe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,o=bZe(e),s=t?`${n}-${t}`:"",l=uwe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},dwe(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${de(r)} 0`,lineHeight:de(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:de(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:de(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.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:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:de(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function K4(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:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:de(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function u5(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[jHe(e,t),a]}const XHe=e=>{const{componentCls:t}=e,n=nr(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=nr(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[K4(e),K4(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},K4(r,"lg")]};function J4(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},zr(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:de(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[vZe(e,t),a]}const yZe=e=>{const{componentCls:t}=e,n=nr(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=nr(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[u5(e),u5(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},u5(r,"lg")]};function d5(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${n}-${t}`:"";return{[`${n}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Qr(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:de(i)},[`${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:de(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${n}-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 ${de(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:de(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${de(r)}`,"&:after":{display:"none"}}}}}}}function YHe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[J4(e),J4(nr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${de(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 ${de(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:de(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${de(r)}`,"&:after":{display:"none"}}}}}}}function SZe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[d5(e),d5(nr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${de(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()}}}},J4(nr(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const VHe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:i,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:O,colorTextDisabled:v,colorPrimaryHover:y,colorPrimary:S,controlOutline:C}=e,_=s*2,w=r*2,T=Math.min(a-_,a-w),A=Math.min(i-_,i-w),k=Math.min(o-_,o-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:m,optionPadding:`${(a-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:o,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:A,multipleItemHeightLG:k,multipleSelectorBgDisabled:O,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:S,activeOutlineColor:C,selectAffixPadding:s}},zTe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${de(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 ${de(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},iae=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},zTe(e,t))}),qHe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},zTe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),iae(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),iae(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:`${de(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),BTe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${de(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}}}},oae=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},BTe(e,t))}),WHe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},BTe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),oae(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),oae(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:`${de(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),GHe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${de(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:`${de(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}}}}),FTe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${de(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}}}},sae=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},FTe(e,t))}),HHe=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},FTe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),sae(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),sae(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:`${de(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ZHe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},qHe(e)),WHe(e)),GHe(e)),HHe(e))}),KHe=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"}}}},JHe=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"}}}},eZe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},zr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},KHe(e)),JHe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ll),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ll),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},_b()),{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)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},tZe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},eZe(e),YHe(e),XHe(e),FHe(e),{[`${t}-rtl`]:{direction:"rtl"}},Cb(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},nZe=Er("Select",(e,{rootPrefixCls:t})=>{const n=nr(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[tZe(n),ZHe(n)]},VHe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var rZe={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"},aZe=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:rZe}))},Ck=p.forwardRef(aZe),iZe={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"},oZe=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:iZe}))},$k=p.forwardRef(oZe),sZe={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"},lZe=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:sZe}))},Rj=p.forwardRef(lZe);function UTe({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:i,hasFeedback:o,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:d}){const f=t??p.createElement(Pf,null),m=v=>e===null&&!o&&!u?null:p.createElement(p.Fragment,null,l!==!1&&v,o&&c);let h=null;if(e!==void 0)h=m(e);else if(a)h=m(p.createElement(mu,{spin:!0}));else{const v=`${s}-suffix`;h=({open:y,showSearch:S})=>m(y&&S?p.createElement(Rj,{className:v}):p.createElement($k,{className:v}))}let g=null;n!==void 0?g=n:i?g=p.createElement(Ck,null):g=null;let O=null;return r!==void 0?O=r:O=p.createElement(Gl,null),{clearIcon:f,suffixIcon:h,itemIcon:g,removeIcon:O}}function cZe(e){return Z.useMemo(()=>{if(e)return(...t)=>Z.createElement(hu,{space:!0},e.apply(void 0,t))},[e])}function uZe(e,t){return t!==void 0?t:e!==null}var dZe=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,i,o;const{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:d,popupClassName:f,dropdownClassName:m,listHeight:h=256,placement:g,listItemHeight:O,size:v,disabled:y,notFoundContent:S,status:C,builtinPlacements:_,dropdownMatchSelectWidth:w,popupMatchSelectWidth:T,direction:A,style:k,allowClear:I,variant:M,dropdownStyle:Q,transitionName:F,tagRender:L,maxCount:U,prefix:R,dropdownRender:$,popupRender:P,onDropdownVisibleChange:z,onOpenChange:B,styles:D,classNames:X}=e,Y=dZe(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:q,getPrefixCls:H,renderEmpty:J,direction:te,virtual:ne,popupMatchSelectWidth:ie,popupOverflow:le}=p.useContext(fn),{showSearch:ue,style:oe,styles:ge,className:ve,classNames:he}=$i("select"),[,me]=uo(),xe=O??(me==null?void 0:me.controlHeight),we=H("select",s),Qe=H(),Ie=A??te,{compactSize:Ee,compactItemClassnames:De}=xd(we,Ie),[Le,Ne]=mm("select",M,l),et=Fa(we),[He,pt,lt]=nZe(we,et),it=p.useMemo(()=>{const{mode:Et}=e;if(Et!=="combobox")return Et===jTe?"combobox":Et},[e.mode]),ut=it==="multiple"||it==="tags",We=uZe(e.suffixIcon,e.showArrow),Me=(n=T??w)!==null&&n!==void 0?n:ie,Ge=((r=D==null?void 0:D.popup)===null||r===void 0?void 0:r.root)||((a=ge.popup)===null||a===void 0?void 0:a.root)||Q,ze=cZe(P||$),qe=B||z,{status:Pe,hasFeedback:Ae,isFormItemInput:Oe,feedbackIcon:Te}=p.useContext(oo),Ue=gg(Pe,C);let rt;S!==void 0?rt=S:it==="combobox"?rt=null:rt=(J==null?void 0:J("Select"))||p.createElement(DTe,{componentName:"Select"});const{suffixIcon:tt,itemIcon:ot,removeIcon:St,clearIcon:Xe}=UTe(Object.assign(Object.assign({},Y),{multiple:ut,hasFeedback:Ae,feedbackIcon:Te,showSuffixIcon:We,prefixCls:we,componentName:"Select"})),je=I===!0?{clearIcon:Xe}:I,bt=ga(Y,["suffixIcon","itemIcon"]),xt=ce(((i=X==null?void 0:X.popup)===null||i===void 0?void 0:i.root)||((o=he==null?void 0:he.popup)===null||o===void 0?void 0:o.root)||f||m,{[`${we}-dropdown-${Ie}`]:Ie==="rtl"},u,he.root,X==null?void 0:X.root,lt,et,pt),vt=Yi(Et=>{var Jt;return(Jt=v??Ee)!==null&&Jt!==void 0?Jt:Et}),Nt=p.useContext(Xo),Mt=y??Nt,Ot=ce({[`${we}-lg`]:vt==="large",[`${we}-sm`]:vt==="small",[`${we}-rtl`]:Ie==="rtl",[`${we}-${Le}`]:Ne,[`${we}-in-form-item`]:Oe},Fp(we,Ue,Ae),De,ve,c,he.root,X==null?void 0:X.root,u,lt,et,pt),ft=p.useMemo(()=>g!==void 0?g:Ie==="rtl"?"bottomRight":"bottomLeft",[g,Ie]),[st]=Ed("SelectLike",Ge==null?void 0:Ge.zIndex);return He(p.createElement($j,Object.assign({ref:t,virtual:ne,showSearch:ue},bt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ge.root),D==null?void 0:D.root),oe),k),dropdownMatchSelectWidth:Me,transitionName:cl(Qe,"slide-up",F),builtinPlacements:BHe(_,le),listHeight:h,listItemHeight:xe,mode:it,prefixCls:we,placement:ft,direction:Ie,prefix:R,suffixIcon:tt,menuItemSelectedIcon:ot,removeIcon:St,allowClear:je,notFoundContent:rt,className:Ot,getPopupContainer:d||q,dropdownClassName:xt,disabled:Mt,dropdownStyle:Object.assign(Object.assign({},Ge),{zIndex:st}),maxCount:ut?U:void 0,tagRender:ut?L:void 0,dropdownRender:ze,onDropdownVisibleChange:qe})))},Vr=p.forwardRef(fZe),pZe=YE(Vr,"dropdownAlign");Vr.SECRET_COMBOBOX_MODE_DO_NOT_USE=jTe;Vr.Option=Cj;Vr.OptGroup=wj;Vr._InternalPanelDoNotUseOrYouWillBeFired=pZe;const XTe=(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)},YTe=(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)},Y0=["xxl","xl","lg","md","sm","xs"],mZe=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)`}),hZe=e=>{const t=e,n=[].concat(Y0).reverse();return n.forEach((r,a)=>{const i=r.toUpperCase(),o=`screen${i}Min`,s=`screen${i}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(a{const[,e]=uo(),t=mZe(hZe(e));return Z.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return a=i,n.forEach(o=>o(a)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(a),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(([i,o])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},a),{[i]:c}))},l=window.matchMedia(o);XTe(l,s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(i=>{const o=this.matchHandlers[i];YTe(o==null?void 0:o.mql,o==null?void 0:o.listener)}),n.clear()}}},[t])};function WE(e=!0,t={}){const n=p.useRef(t),[,r]=fj(),a=gZe();return tr(()=>{const i=a.subscribe(o=>{n.current=o,e&&r()});return()=>a.unsubscribe(i)},[]),n.current}const f9=p.createContext({}),OZe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:a,avatarColor:i,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,iconFontSize:f,iconFontSizeLG:m,iconFontSizeSM:h,borderRadius:g,borderRadiusLG:O,borderRadiusSM:v,lineWidth:y,lineType:S}=e,C=(_,w,T,A)=>({width:_,height:_,borderRadius:"50%",fontSize:w,[`&${n}-square`]:{borderRadius:A},[`&${n}-icon`]:{fontSize:T,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},zr(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:a,border:`${de(y)} ${S} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),C(o,c,f,g)),{"&-lg":Object.assign({},C(s,u,m,O)),"&-sm":Object.assign({},C(l,d,h,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},bZe=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}}}},vZe=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:a,fontSizeLG:i,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:a,textFontSizeLG:a,textFontSizeSM:a,iconFontSize:Math.round((i+o)/2),iconFontSizeLG:s,iconFontSizeSM:a,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},VTe=Er("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=nr(e,{avatarBg:n,avatarColor:t});return[OZe(r),bZe(r)]},vZe);var yZe=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:i,srcSet:o,icon:s,className:l,rootClassName:c,style:u,alt:d,draggable:f,children:m,crossOrigin:h,gap:g=4,onError:O}=e,v=yZe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[y,S]=p.useState(1),[C,_]=p.useState(!1),[w,T]=p.useState(!0),A=p.useRef(null),k=p.useRef(null),I=Ci(t,A),{getPrefixCls:M,avatar:Q}=p.useContext(fn),F=p.useContext(f9),L=()=>{if(!k.current||!A.current)return;const ue=k.current.offsetWidth,oe=A.current.offsetWidth;ue!==0&&oe!==0&&g*2{_(!0)},[]),p.useEffect(()=>{T(!0),S(1)},[i]),p.useEffect(L,[g]);const U=()=>{(O==null?void 0:O())!==!1&&T(!1)},R=Yi(ue=>{var oe,ge;return(ge=(oe=a??(F==null?void 0:F.size))!==null&&oe!==void 0?oe:ue)!==null&&ge!==void 0?ge:"default"}),$=Object.keys(typeof R=="object"?R||{}:{}).some(ue=>["xs","sm","md","lg","xl","xxl"].includes(ue)),P=WE($),z=p.useMemo(()=>{if(typeof R!="object")return{};const ue=Y0.find(ge=>P[ge]),oe=R[ue];return oe?{width:oe,height:oe,fontSize:oe&&(s||m)?oe/2:18}:{}},[P,R,s,m]),B=M("avatar",n),D=Fa(B),[X,Y,q]=VTe(B,D),H=ce({[`${B}-lg`]:R==="large",[`${B}-sm`]:R==="small"}),J=p.isValidElement(i),te=r||(F==null?void 0:F.shape)||"circle",ne=ce(B,H,Q==null?void 0:Q.className,`${B}-${te}`,{[`${B}-image`]:J||i&&w,[`${B}-icon`]:!!s},q,D,l,c,Y),ie=typeof R=="number"?{width:R,height:R,fontSize:s?R/2:18}:{};let le;if(typeof i=="string"&&w)le=p.createElement("img",{src:i,draggable:f,srcSet:o,onError:U,alt:d,crossOrigin:h});else if(J)le=i;else if(s)le=s;else if(C||y!==1){const ue=`scale(${y})`,oe={msTransform:ue,WebkitTransform:ue,transform:ue};le=p.createElement(Eo,{onResize:L},p.createElement("span",{className:`${B}-string`,ref:k,style:oe},m))}else le=p.createElement("span",{className:`${B}-string`,style:{opacity:0},ref:k},m);return X(p.createElement("span",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie),z),Q==null?void 0:Q.style),u),className:ne,ref:I}),le))}),A$=e=>e?typeof e=="function"?e():e:null;function Pj(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,i=e.bodyClassName,o=e.className,s=e.style;return p.createElement("div",{className:ce("".concat(n,"-content"),o),style:s},p.createElement("div",{className:ce("".concat(n,"-inner"),i),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var dO={shiftX:64,adjustY:1},fO={adjustX:1,shiftY:!0},cc=[0,0],SZe={left:{points:["cr","cl"],overflow:fO,offset:[-4,0],targetOffset:cc},right:{points:["cl","cr"],overflow:fO,offset:[4,0],targetOffset:cc},top:{points:["bc","tc"],overflow:dO,offset:[0,-4],targetOffset:cc},bottom:{points:["tc","bc"],overflow:dO,offset:[0,4],targetOffset:cc},topLeft:{points:["bl","tl"],overflow:dO,offset:[0,-4],targetOffset:cc},leftTop:{points:["tr","tl"],overflow:fO,offset:[-4,0],targetOffset:cc},topRight:{points:["br","tr"],overflow:dO,offset:[0,-4],targetOffset:cc},rightTop:{points:["tl","tr"],overflow:fO,offset:[4,0],targetOffset:cc},bottomRight:{points:["tr","br"],overflow:dO,offset:[0,4],targetOffset:cc},rightBottom:{points:["bl","br"],overflow:fO,offset:[4,0],targetOffset:cc},bottomLeft:{points:["tl","bl"],overflow:dO,offset:[0,4],targetOffset:cc},leftBottom:{points:["br","bl"],overflow:fO,offset:[-4,0],targetOffset:cc}},_Ze=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],EZe=function(t,n){var r=t.overlayClassName,a=t.trigger,i=a===void 0?["hover"]:a,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,m=t.children,h=t.onVisibleChange,g=t.afterVisibleChange,O=t.transitionName,v=t.animation,y=t.motion,S=t.placement,C=S===void 0?"right":S,_=t.align,w=_===void 0?{}:_,T=t.destroyTooltipOnHide,A=T===void 0?!1:T,k=t.defaultVisible,I=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var Q=t.overlay,F=t.id,L=t.showArrow,U=L===void 0?!0:L,R=t.classNames,$=t.styles,P=on(t,_Ze),z=$b(F),B=p.useRef(null);p.useImperativeHandle(n,function(){return B.current});var D=se({},P);"visible"in t&&(D.popupVisible=t.visible);var X=function(){return p.createElement(Pj,{key:"content",prefixCls:f,id:z,bodyClassName:R==null?void 0:R.body,overlayInnerStyle:se(se({},M),$==null?void 0:$.body)},Q)},Y=function(){var H=p.Children.only(m),J=(H==null?void 0:H.props)||{},te=se(se({},J),{},{"aria-describedby":Q?z:null});return p.cloneElement(m,te)};return p.createElement(qE,Re({popupClassName:ce(r,R==null?void 0:R.root),prefixCls:f,popup:X,action:i,builtinPlacements:SZe,popupPlacement:C,ref:B,popupAlign:w,getPopupContainer:I,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:O,popupAnimation:v,popupMotion:y,defaultPopupVisible:k,autoDestroy:A,mouseLeaveDelay:c,popupStyle:se(se({},u),$==null?void 0:$.root),mouseEnterDelay:s,arrow:U},D),Y())};const xZe=p.forwardRef(EZe);function Rk(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,i=0,o=a,s=r*1/Math.sqrt(2),l=a-r*(1-1/Math.sqrt(2)),c=a-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*a-c,f=u,m=2*a-s,h=l,g=2*a-i,O=o,v=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),S=`polygon(${y}px 100%, 50% ${y}px, ${2*a-y}px 100%, ${y}px 100%)`,C=`path('M ${i} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${f} L ${m} ${h} A ${r} ${r} 0 0 0 ${g} ${O} Z')`;return{arrowShadowWidth:v,arrowPath:C,arrowPolygon:S}}const WTe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:i,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${de(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},GTe=8;function Pk(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?GTe:r}}function aw(e,t){return e?t:{}}function kj(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:i,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},WTe(e,t,a)),{"&:before":{background:t}})]},aw(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${de(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),aw(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${de(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),aw(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),aw(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function TZe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const o=Object.assign(Object.assign({},i),a);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const lae={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"]}},wZe={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"]}},CZe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function HTe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:i,visibleFirst:o}=e,s=t/2,l={},c=Pk({contentRadius:i,limitVerticalRadius:!0});return Object.keys(lae).forEach(u=>{const d=r&&wZe[u]||lae[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,CZe.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=c.arrowOffsetHorizontal*2-s;break}f.overflow=TZe(u,c,t,n),o&&(f.htmlRegion="visibleFirst")}),l}const $Ze=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:m}=e,h=t(o).add(m).add(f).equal(),g=t(o).mul(2).add(m).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},zr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${de(e.calc(u).div(2).equal())} ${de(d)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,GTe)}},[`${n}-content`]:{position:"relative"}}),QEe(e,(O,{darkColor:v})=>({[`&${n}-${O}`]:{[`${n}-inner`]:{backgroundColor:v},[`${n}-arrow`]:{"--antd-arrow-background-color":v}}}))),{"&-rtl":{direction:"rtl"}})},kj(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},RZe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Pk({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Rk(nr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ZTe=(e,t=!0)=>Er("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:i,colorBgSpotlight:o}=r,s=nr(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:a,tooltipBg:o});return[$Ze(s),wb(r,"zoom-big-fast")]},RZe,{resetStyle:!1,injectStyle:t})(e),PZe=zp.map(e=>`${e}-inverse`),kZe=["success","processing","error","default","warning"];function KTe(e,t=!0){return t?[].concat(Ke(PZe),Ke(zp)).includes(e):zp.includes(e)}function AZe(e){return kZe.includes(e)}function JTe(e,t){const n=KTe(t),r=ce({[`${e}-${t}`]:t&&n}),a={},i={},o=aVe(t).toRgb(),l=(.299*o.r+.587*o.g+.114*o.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:i}}const NZe=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:i,overlayInnerStyle:o}=e,{getPrefixCls:s}=p.useContext(fn),l=s("tooltip",t),[c,u,d]=ZTe(l),f=JTe(l,i),m=f.arrowStyle,h=Object.assign(Object.assign({},o),f.overlayStyle),g=ce(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(p.createElement("div",{className:g,style:m},p.createElement("div",{className:`${l}-arrow`}),p.createElement(Pj,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),a)))};var IZe=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:i,getTooltipContainer:o,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:m,arrow:h=!0,title:g,overlay:O,builtinPlacements:v,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0,motion:C,getPopupContainer:_,placement:w="top",mouseEnterDelay:T=.1,mouseLeaveDelay:A=.1,overlayStyle:k,rootClassName:I,overlayClassName:M,styles:Q,classNames:F}=e,L=IZe(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"]),U=!!h,[,R]=uo(),{getPopupContainer:$,getPrefixCls:P,direction:z,className:B,style:D,classNames:X,styles:Y}=$i("tooltip"),q=_d(),H=p.useRef(null),J=()=>{var We;(We=H.current)===null||We===void 0||We.forceAlign()};p.useImperativeHandle(t,()=>{var We,Me;return{forceAlign:J,forcePopupAlign:()=>{q.deprecated(!1,"forcePopupAlign","forceAlign"),J()},nativeElement:(We=H.current)===null||We===void 0?void 0:We.nativeElement,popupElement:(Me=H.current)===null||Me===void 0?void 0:Me.popupElement}});const[te,ne]=Ir(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ie=!g&&!O&&g!==0,le=We=>{var Me,Ge;ne(ie?!1:We),ie||((Me=e.onOpenChange)===null||Me===void 0||Me.call(e,We),(Ge=e.onVisibleChange)===null||Ge===void 0||Ge.call(e,We))},ue=p.useMemo(()=>{var We,Me;let Ge=y;return typeof h=="object"&&(Ge=(Me=(We=h.pointAtCenter)!==null&&We!==void 0?We:h.arrowPointAtCenter)!==null&&Me!==void 0?Me:y),v||HTe({arrowPointAtCenter:Ge,autoAdjustOverflow:S,arrowWidth:U?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[y,h,v,R]),oe=p.useMemo(()=>g===0?g:O||g||"",[O,g]),ge=p.createElement(hu,{space:!0},typeof oe=="function"?oe():oe),ve=P("tooltip",a),he=P(),me=e["data-popover-inject"];let xe=te;!("open"in e)&&!("visible"in e)&&ie&&(xe=!1);const we=p.isValidElement(c)&&!oxe(c)?c:p.createElement("span",null,c),Qe=we.props,Ie=!Qe.className||typeof Qe.className=="string"?ce(Qe.className,i||`${ve}-open`):Qe.className,[Ee,De,Le]=ZTe(ve,!me),Ne=JTe(ve,s),et=Ne.arrowStyle,He=ce(M,{[`${ve}-rtl`]:z==="rtl"},Ne.className,I,De,Le,B,X.root,F==null?void 0:F.root),pt=ce(X.body,F==null?void 0:F.body),[lt,it]=Ed("Tooltip",L.zIndex),ut=p.createElement(xZe,Object.assign({},L,{zIndex:lt,showArrow:U,placement:w,mouseEnterDelay:T,mouseLeaveDelay:A,prefixCls:ve,classNames:{root:He,body:pt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},et),Y.root),D),k),Q==null?void 0:Q.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Y.body),l),Q==null?void 0:Q.body),Ne.overlayStyle)},getTooltipContainer:_||o||$,ref:H,builtinPlacements:ue,overlay:ge,visible:xe,onVisibleChange:le,afterVisibleChange:u??d,arrowContent:p.createElement("span",{className:`${ve}-arrow-content`}),motion:{motionName:cl(he,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!f}),xe?wo(we,{className:Ie}):we);return Ee(p.createElement(QE.Provider,{value:it},ut))}),Co=MZe;Co._InternalPanelDoNotUseOrYouWillBeFired=NZe;const DZe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:i,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:m,innerContentPadding:h,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},zr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:a,borderBottom:m,padding:g},[`${t}-inner-content`]:{color:n,padding:h}})},kj(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},LZe=e=>{const{componentCls:t}=e;return{[t]:zp.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},QZe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:i,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,m=f/2,h=f/2-t,g=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},Rk(e)),Pk({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${m}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})},ewe=Er("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=nr(e,{popoverBg:t,popoverColor:n});return[DZe(r),LZe(r),wb(r,"zoom-big")]},QZe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var zZe=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:p.createElement(p.Fragment,null,e&&p.createElement("div",{className:`${n}-title`},e),t&&p.createElement("div",{className:`${n}-inner-content`},t)),BZe=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:i="top",title:o,content:s,children:l}=e,c=A$(o),u=A$(s),d=ce(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return p.createElement("div",{className:d,style:a},p.createElement("div",{className:`${n}-arrow`}),p.createElement(Pj,Object.assign({},e,{className:t,prefixCls:n}),l||p.createElement(twe,{prefixCls:n,title:c,content:u})))},FZe=e=>{const{prefixCls:t,className:n}=e,r=zZe(e,["prefixCls","className"]),{getPrefixCls:a}=p.useContext(fn),i=a("popover",t),[o,s,l]=ewe(i);return o(p.createElement(BZe,Object.assign({},r,{prefixCls:i,hashId:s,className:ce(n,l)})))};var UZe=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:i,content:o,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,onOpenChange:m,overlayStyle:h={},styles:g,classNames:O}=e,v=UZe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:S,style:C,classNames:_,styles:w}=$i("popover"),T=y("popover",a),[A,k,I]=ewe(T),M=y(),Q=ce(s,k,I,S,_.root,O==null?void 0:O.root),F=ce(_.body,O==null?void 0:O.body),[L,U]=Ir(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=(D,X)=>{U(D,!0),m==null||m(D,X)},$=D=>{D.keyCode===Vt.ESC&&R(!1,D)},P=D=>{R(D)},z=A$(i),B=A$(o);return A(p.createElement(Co,Object.assign({placement:l,trigger:c,mouseEnterDelay:d,mouseLeaveDelay:f},v,{prefixCls:T,classNames:{root:Q,body:F},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),C),h),g==null?void 0:g.root),body:Object.assign(Object.assign({},w.body),g==null?void 0:g.body)},ref:t,open:L,onOpenChange:P,overlay:z||B?p.createElement(twe,{prefixCls:T,title:z,content:B}):null,transitionName:cl(M,"zoom-big",v.transitionName),"data-popover-inject":!0}),wo(u,{onKeyDown:D=>{var X,Y;p.isValidElement(u)&&((Y=u==null?void 0:(X=u.props).onKeyDown)===null||Y===void 0||Y.call(X,D)),$(D)}})))}),kk=jZe;kk._InternalPanelDoNotUseOrYouWillBeFired=FZe;const cae=e=>{const{size:t,shape:n}=p.useContext(f9),r=p.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return p.createElement(f9.Provider,{value:r},e.children)},XZe=e=>{var t,n,r,a;const{getPrefixCls:i,direction:o}=p.useContext(fn),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:f,size:m,shape:h,maxPopoverPlacement:g,maxPopoverTrigger:O,children:v,max:y}=e,S=i("avatar",s),C=`${S}-group`,_=Fa(S),[w,T,A]=VTe(S,_),k=ce(C,{[`${C}-rtl`]:o==="rtl"},A,_,l,c,T),I=To(v).map((F,L)=>wo(F,{key:`avatar-key-${L}`})),M=(y==null?void 0:y.count)||d,Q=I.length;if(M&&Mtypeof e!="object"&&typeof e!="function"||e===null;var rwe=p.createContext(null);function awe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function iwe(e){var t=p.useContext(rwe);return awe(t,e)}var tKe=["children","locked"],gu=p.createContext(null);function nKe(e,t){var n=se({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function O_(e){var t=e.children,n=e.locked,r=on(e,tKe),a=p.useContext(gu),i=dm(function(){return nKe(a,r)},[a,r],function(o,s){return!n&&(o[0]!==s[0]||!Bl(o[1],s[1],!0))});return p.createElement(gu.Provider,{value:i},t)}var rKe=[],owe=p.createContext(null);function Ak(){return p.useContext(owe)}var swe=p.createContext(rKe);function kb(e){var t=p.useContext(swe);return p.useMemo(function(){return e!==void 0?[].concat(Ke(t),[e]):t},[t,e])}var lwe=p.createContext(null),Nj=p.createContext({});function uae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Tb(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),i=Number(a),o=null;return a&&!Number.isNaN(i)?o=i:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function aKe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ke(e.querySelectorAll("*")).filter(function(r){return uae(r,t)});return uae(e,t)&&n.unshift(e),n}var p9=Vt.LEFT,m9=Vt.RIGHT,h9=Vt.UP,m2=Vt.DOWN,h2=Vt.ENTER,cwe=Vt.ESC,qv=Vt.HOME,Wv=Vt.END,dae=[h9,m2,p9,m9];function iKe(e,t,n,r){var a,i="prev",o="next",s="children",l="parent";if(e==="inline"&&r===h2)return{inlineTrigger:!0};var c=ae(ae({},h9,i),m2,o),u=ae(ae(ae(ae({},p9,n?o:i),m9,n?i:o),m2,s),h2,s),d=ae(ae(ae(ae(ae(ae({},h9,i),m2,o),h2,s),cwe,l),p9,n?s:l),m9,n?l:s),f={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d},m=(a=f["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(m){case i:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function oKe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function sKe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Ij(e,t){var n=aKe(e,!0);return n.filter(function(r){return t.has(r)})}function fae(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=Ij(e,t),i=a.length,o=a.findIndex(function(s){return n===s});return r<0?o===-1?o=i-1:o-=1:r>0&&(o+=1),o=(o+i)%i,a[o]}var g9=function(t,n){var r=new Set,a=new Map,i=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(awe(n,o),"']"));s&&(r.add(s),i.set(s,o),a.set(o,s))}),{elements:r,key2element:a,element2key:i}};function lKe(e,t,n,r,a,i,o,s,l,c){var u=p.useRef(),d=p.useRef();d.current=t;var f=function(){ur.cancel(u.current)};return p.useEffect(function(){return function(){f()}},[]),function(m){var h=m.which;if([].concat(dae,[h2,cwe,qv,Wv]).includes(h)){var g=i(),O=g9(g,r),v=O,y=v.elements,S=v.key2element,C=v.element2key,_=S.get(t),w=sKe(_,y),T=C.get(w),A=iKe(e,o(T,!0).length===1,n,h);if(!A&&h!==qv&&h!==Wv)return;(dae.includes(h)||[qv,Wv].includes(h))&&m.preventDefault();var k=function($){if($){var P=$,z=$.querySelector("a");z!=null&&z.getAttribute("href")&&(P=z);var B=C.get($);s(B),f(),u.current=ur(function(){d.current===B&&P.focus()})}};if([qv,Wv].includes(h)||A.sibling||!w){var I;!w||e==="inline"?I=a.current:I=oKe(w);var M,Q=Ij(I,y);h===qv?M=Q[0]:h===Wv?M=Q[Q.length-1]:M=fae(I,y,w,A.offset),k(M)}else if(A.inlineTrigger)l(T);else if(A.offset>0)l(T,!0),f(),u.current=ur(function(){O=g9(g,r);var R=w.getAttribute("aria-controls"),$=document.getElementById(R),P=fae($,O.elements);k(P)},5);else if(A.offset<0){var F=o(T,!0),L=F[F.length-2],U=S.get(L);l(L,!1),k(U)}}c==null||c(m)}}function cKe(e){Promise.resolve().then(e)}var Mj="__RC_UTIL_PATH_SPLIT__",pae=function(t){return t.join(Mj)},uKe=function(t){return t.split(Mj)},O9="rc-menu-more";function dKe(){var e=p.useState({}),t=be(e,2),n=t[1],r=p.useRef(new Map),a=p.useRef(new Map),i=p.useState([]),o=be(i,2),s=o[0],l=o[1],c=p.useRef(0),u=p.useRef(!1),d=function(){u.current||n({})},f=p.useCallback(function(S,C){var _=pae(C);a.current.set(_,S),r.current.set(S,_),c.current+=1;var w=c.current;cKe(function(){w===c.current&&d()})},[]),m=p.useCallback(function(S,C){var _=pae(C);a.current.delete(_),r.current.delete(S)},[]),h=p.useCallback(function(S){l(S)},[]),g=p.useCallback(function(S,C){var _=r.current.get(S)||"",w=uKe(_);return C&&s.includes(w[0])&&w.unshift(O9),w},[s]),O=p.useCallback(function(S,C){return S.filter(function(_){return _!==void 0}).some(function(_){var w=g(_,!0);return w.includes(C)})},[g]),v=function(){var C=Ke(r.current.keys());return s.length&&C.push(O9),C},y=p.useCallback(function(S){var C="".concat(r.current.get(S)).concat(Mj),_=new Set;return Ke(a.current.keys()).forEach(function(w){w.startsWith(C)&&_.add(a.current.get(w))}),_},[]);return p.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:f,unregisterPath:m,refreshOverflowKeys:h,isSubPathKey:O,getKeyPath:g,getKeys:v,getSubPathKeys:y}}function Vy(e){var t=p.useRef(e);t.current=e;var n=p.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),o=0;o1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(C){return!f.current&&!C&&O(!0),S==null?void 0:S(C)},g?null:p.createElement(O_,{mode:i,locked:!f.current},p.createElement(ao,Re({visible:v},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var _=C.className,w=C.style;return p.createElement(Dj,{id:t,className:_,style:w},a)}))}var $Ke=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],RKe=["active"],PKe=p.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,i=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,m=e.popupStyle,h=e.onClick,g=e.onMouseEnter,O=e.onMouseLeave,v=e.onTitleClick,y=e.onTitleMouseEnter,S=e.onTitleMouseLeave,C=on(e,$Ke),_=iwe(i),w=p.useContext(gu),T=w.prefixCls,A=w.mode,k=w.openKeys,I=w.disabled,M=w.overflowDisabled,Q=w.activeKey,F=w.selectedKeys,L=w.itemIcon,U=w.expandIcon,R=w.onItemClick,$=w.onOpenChange,P=w.onActive,z=p.useContext(Nj),B=z._internalRenderSubMenuItem,D=p.useContext(lwe),X=D.isSubPathKey,Y=kb(),q="".concat(T,"-submenu"),H=I||o,J=p.useRef(),te=p.useRef(),ne=c??L,ie=u??U,le=k.includes(i),ue=!M&&le,oe=X(F,i),ge=uwe(i,H,y,S),ve=ge.active,he=on(ge,RKe),me=p.useState(!1),xe=be(me,2),we=xe[0],Qe=xe[1],Ie=function(Pe){H||Qe(Pe)},Ee=function(Pe){Ie(!0),g==null||g({key:i,domEvent:Pe})},De=function(Pe){Ie(!1),O==null||O({key:i,domEvent:Pe})},Le=p.useMemo(function(){return ve||(A!=="inline"?we||X([Q],i):!1)},[A,ve,Q,we,i,X]),Ne=dwe(Y.length),et=function(Pe){H||(v==null||v({key:i,domEvent:Pe}),A==="inline"&&$(i,!le))},He=Vy(function(qe){h==null||h(N$(qe)),R(qe)}),pt=function(Pe){A!=="inline"&&$(i,Pe)},lt=function(){P(i)},it=_&&"".concat(_,"-popup"),ut=p.useMemo(function(){return p.createElement(fwe,{icon:A!=="horizontal"?ie:void 0,props:se(se({},e),{},{isOpen:ue,isSubMenu:!0})},p.createElement("i",{className:"".concat(q,"-arrow")}))},[A,ie,e,ue,q]),We=p.createElement("div",Re({role:"menuitem",style:Ne,className:"".concat(q,"-title"),tabIndex:H?null:-1,ref:J,title:typeof a=="string"?a:null,"data-menu-id":M&&_?null:_,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":it,"aria-disabled":H,onClick:et,onFocus:lt},he),a,ut),Me=p.useRef(A);if(A!=="inline"&&Y.length>1?Me.current="vertical":Me.current=A,!M){var Ge=Me.current;We=p.createElement(wKe,{mode:Ge,prefixCls:q,visible:!s&&ue&&A!=="inline",popupClassName:d,popupOffset:f,popupStyle:m,popup:p.createElement(O_,{mode:Ge==="horizontal"?"vertical":Ge},p.createElement(Dj,{id:it,ref:te},l)),disabled:H,onVisibleChange:pt},We)}var ze=p.createElement(cu.Item,Re({ref:t,role:"none"},C,{component:"li",style:n,className:ce(q,"".concat(q,"-").concat(A),r,ae(ae(ae(ae({},"".concat(q,"-open"),ue),"".concat(q,"-active"),Le),"".concat(q,"-selected"),oe),"".concat(q,"-disabled"),H)),onMouseEnter:Ee,onMouseLeave:De}),We,!M&&p.createElement(CKe,{id:it,open:ue,keyPath:Y},l));return B&&(ze=B(ze,e,{selected:oe,active:Le,open:ue,disabled:H})),p.createElement(O_,{onItemClick:He,mode:A==="horizontal"?"vertical":A,itemIcon:ne,expandIcon:ie},ze)}),Nk=p.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=kb(n),i=Lj(r,a),o=Ak();p.useEffect(function(){if(o)return o.registerPath(n,a),function(){o.unregisterPath(n,a)}},[a]);var s;return o?s=i:s=p.createElement(PKe,Re({ref:t},e),i),p.createElement(swe.Provider,{value:a},s)});function Qj(e){var t=e.className,n=e.style,r=p.useContext(gu),a=r.prefixCls,i=Ak();return i?null:p.createElement("li",{role:"separator",className:ce("".concat(a,"-item-divider"),t),style:n})}var kKe=["className","title","eventKey","children"],AKe=p.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,i=on(e,kKe),o=p.useContext(gu),s=o.prefixCls,l="".concat(s,"-item-group");return p.createElement("li",Re({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:ce(l,n)}),p.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),p.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),zj=p.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=kb(n),i=Lj(r,a),o=Ak();return o?i:p.createElement(AKe,Re({ref:t},ga(e,["warnKey"])),i)}),NKe=["label","children","key","type","extra"];function b9(e,t,n){var r=t.item,a=t.group,i=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&Ut(s)==="object"){var c=s,u=c.label,d=c.children,f=c.key,m=c.type,h=c.extra,g=on(c,NKe),O=f??"tmp-".concat(l);return d||m==="group"?m==="group"?p.createElement(a,Re({key:O},g,{title:u}),b9(d,t,n)):p.createElement(i,Re({key:O},g,{title:u}),b9(d,t,n)):m==="divider"?p.createElement(o,Re({key:O},g)):p.createElement(r,Re({key:O},g,{extra:h}),u,(!!h||h===0)&&p.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(s){return s})}function hae(e,t,n,r,a){var i=e,o=se({divider:Qj,item:GE,group:zj,submenu:Nk},r);return t&&(i=b9(t,o,a)),Lj(i,n)}var IKe=["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"],Lm=[],MKe=p.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,i=a===void 0?"rc-menu":a,o=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,d=r.items,f=r.children,m=r.direction,h=r.id,g=r.mode,O=g===void 0?"vertical":g,v=r.inlineCollapsed,y=r.disabled,S=r.disabledOverflow,C=r.subMenuOpenDelay,_=C===void 0?.1:C,w=r.subMenuCloseDelay,T=w===void 0?.1:w,A=r.forceSubMenuRender,k=r.defaultOpenKeys,I=r.openKeys,M=r.activeKey,Q=r.defaultActiveFirst,F=r.selectable,L=F===void 0?!0:F,U=r.multiple,R=U===void 0?!1:U,$=r.defaultSelectedKeys,P=r.selectedKeys,z=r.onSelect,B=r.onDeselect,D=r.inlineIndent,X=D===void 0?24:D,Y=r.motion,q=r.defaultMotions,H=r.triggerSubMenuAction,J=H===void 0?"hover":H,te=r.builtinPlacements,ne=r.itemIcon,ie=r.expandIcon,le=r.overflowedIndicator,ue=le===void 0?"...":le,oe=r.overflowedIndicatorPopupClassName,ge=r.getPopupContainer,ve=r.onClick,he=r.onOpenChange,me=r.onKeyDown;r.openAnimation,r.openTransitionName;var xe=r._internalRenderMenuItem,we=r._internalRenderSubMenuItem,Qe=r._internalComponents,Ie=on(r,IKe),Ee=p.useMemo(function(){return[hae(f,d,Lm,Qe,i),hae(f,d,Lm,{},i)]},[f,d,Qe]),De=be(Ee,2),Le=De[0],Ne=De[1],et=p.useState(!1),He=be(et,2),pt=He[0],lt=He[1],it=p.useRef(),ut=pKe(h),We=m==="rtl",Me=Ir(k,{value:I,postState:function(pn){return pn||Lm}}),Ge=be(Me,2),ze=Ge[0],qe=Ge[1],Pe=function(pn){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function fr(){qe(pn),he==null||he(pn)}cn?Fl.flushSync(fr):fr()},Ae=p.useState(ze),Oe=be(Ae,2),Te=Oe[0],Ue=Oe[1],rt=p.useRef(!1),tt=p.useMemo(function(){return(O==="inline"||O==="vertical")&&v?["vertical",v]:[O,!1]},[O,v]),ot=be(tt,2),St=ot[0],Xe=ot[1],je=St==="inline",bt=p.useState(St),xt=be(bt,2),vt=xt[0],Nt=xt[1],Mt=p.useState(Xe),Ot=be(Mt,2),ft=Ot[0],st=Ot[1];p.useEffect(function(){Nt(St),st(Xe),rt.current&&(je?qe(Te):Pe(Lm))},[St,Xe]);var Et=p.useState(0),Jt=be(Et,2),en=Jt[0],Rn=Jt[1],jt=en>=Le.length-1||vt!=="horizontal"||S;p.useEffect(function(){je&&Ue(ze)},[ze]),p.useEffect(function(){return rt.current=!0,function(){rt.current=!1}},[]);var wt=dKe(),an=wt.registerPath,$n=wt.unregisterPath,Gn=wt.refreshOverflowKeys,Xn=wt.isSubPathKey,gr=wt.getKeyPath,Fn=wt.getKeys,Bt=wt.getSubPathKeys,Se=p.useMemo(function(){return{registerPath:an,unregisterPath:$n}},[an,$n]),Fe=p.useMemo(function(){return{isSubPathKey:Xn}},[Xn]);p.useEffect(function(){Gn(jt?Lm:Le.slice(en+1).map(function(xr){return xr.key}))},[en,jt]);var mt=Ir(M||Q&&((n=Le[0])===null||n===void 0?void 0:n.key),{value:M}),yt=be(mt,2),Qt=yt[0],$t=yt[1],sn=Vy(function(xr){$t(xr)}),Cn=Vy(function(){$t(void 0)});p.useImperativeHandle(t,function(){return{list:it.current,focus:function(pn){var cn,fr=Fn(),rn=g9(fr,ut),Zt=rn.elements,or=rn.key2element,Hr=rn.element2key,Sn=Ij(it.current,Zt),Kn=Qt??(Sn[0]?Hr.get(Sn[0]):(cn=Le.find(function(qn){return!qn.props.disabled}))===null||cn===void 0?void 0:cn.key),Ar=or.get(Kn);if(Kn&&Ar){var Tr;Ar==null||(Tr=Ar.focus)===null||Tr===void 0||Tr.call(Ar,pn)}}}});var It=Ir($||[],{value:P,postState:function(pn){return Array.isArray(pn)?pn:pn==null?Lm:[pn]}}),Ze=be(It,2),dt=Ze[0],hn=Ze[1],Vn=function(pn){if(L){var cn=pn.key,fr=dt.includes(cn),rn;R?fr?rn=dt.filter(function(or){return or!==cn}):rn=[].concat(Ke(dt),[cn]):rn=[cn],hn(rn);var Zt=se(se({},pn),{},{selectedKeys:rn});fr?B==null||B(Zt):z==null||z(Zt)}!R&&ze.length&&vt!=="inline"&&Pe(Lm)},rr=Vy(function(xr){ve==null||ve(N$(xr)),Vn(xr)}),ca=Vy(function(xr,pn){var cn=ze.filter(function(rn){return rn!==xr});if(pn)cn.push(xr);else if(vt!=="inline"){var fr=Bt(xr);cn=cn.filter(function(rn){return!fr.has(rn)})}Bl(ze,cn,!0)||Pe(cn,!0)}),Wr=function(pn,cn){var fr=cn??!ze.includes(pn);ca(pn,fr)},na=lKe(vt,Qt,We,ut,it,Fn,gr,$t,Wr,me);p.useEffect(function(){lt(!0)},[]);var Gr=p.useMemo(function(){return{_internalRenderMenuItem:xe,_internalRenderSubMenuItem:we}},[xe,we]),ra=vt!=="horizontal"||S?Le:Le.map(function(xr,pn){return p.createElement(O_,{key:xr.key,overflowDisabled:pn>en},xr)}),Ra=p.createElement(cu,Re({id:h,ref:it,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:GE,className:ce(i,"".concat(i,"-root"),"".concat(i,"-").concat(vt),l,ae(ae({},"".concat(i,"-inline-collapsed"),ft),"".concat(i,"-rtl"),We),o),dir:m,style:s,role:"menu",tabIndex:u,data:ra,renderRawItem:function(pn){return pn},renderRawRest:function(pn){var cn=pn.length,fr=cn?Le.slice(-cn):null;return p.createElement(Nk,{eventKey:O9,title:ue,disabled:jt,internalPopupClose:cn===0,popupClassName:oe},fr)},maxCount:vt!=="horizontal"||S?cu.INVALIDATE:cu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(pn){Rn(pn)},onKeyDown:na},Ie));return p.createElement(Nj.Provider,{value:Gr},p.createElement(rwe.Provider,{value:ut},p.createElement(O_,{prefixCls:i,rootClassName:o,mode:vt,openKeys:ze,rtl:We,disabled:y,motion:pt?Y:null,defaultMotions:pt?q:null,activeKey:Qt,onActive:sn,onInactive:Cn,selectedKeys:dt,inlineIndent:X,subMenuOpenDelay:_,subMenuCloseDelay:T,forceSubMenuRender:A,builtinPlacements:te,triggerSubMenuAction:J,getPopupContainer:ge,itemIcon:ne,expandIcon:ie,onItemClick:rr,onOpenChange:ca},p.createElement(lwe.Provider,{value:Fe},Ra),p.createElement("div",{style:{display:"none"},"aria-hidden":!0},p.createElement(owe.Provider,{value:Se},Ne)))))}),Ab=MKe;Ab.Item=GE;Ab.SubMenu=Nk;Ab.ItemGroup=zj;Ab.Divider=Qj;var DKe={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"},LKe=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:DKe}))},QKe=p.forwardRef(LKe);const mwe=p.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),zKe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:i,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{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:i,padding:o,color:s,lineHeight:de(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},hwe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:i,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:a,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:a}},gwe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Owe=Er("Layout",zKe,hwe,{deprecatedTokens:gwe}),BKe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:i,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:m,lightTriggerColor:h,lightTriggerBg:g,bodyBg:O}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:de(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${de(f)} ${de(f)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${de(f)} 0 0 ${de(f)}`}},"&-light":{background:m,[`${t}-trigger`]:{color:h,background:g},[`${t}-zero-width-trigger`]:{color:h,background:g,border:`1px solid ${O}`,borderInlineStart:0}}}}},FKe=Er(["Layout","Sider"],BKe,hwe,{deprecatedTokens:gwe});var UKe=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)),Ik=p.createContext({}),XKe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),bwe=p.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:i,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:m,breakpoint:h,onCollapse:g,onBreakpoint:O}=e,v=UKe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=p.useContext(mwe),[S,C]=p.useState("collapsed"in e?e.collapsed:o),[_,w]=p.useState(!1);p.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const T=(ne,ie)=>{"collapsed"in e||C(ne),g==null||g(ne,ie)},{getPrefixCls:A,direction:k}=p.useContext(fn),I=A("layout-sider",n),[M,Q,F]=FKe(I),L=p.useRef(null);L.current=ne=>{w(ne.matches),O==null||O(ne.matches),S!==ne.matches&&T(ne.matches,"responsive")},p.useEffect(()=>{function ne(le){var ue;return(ue=L.current)===null||ue===void 0?void 0:ue.call(L,le)}let ie;return typeof(window==null?void 0:window.matchMedia)<"u"&&h&&h in gae&&(ie=window.matchMedia(`screen and (max-width: ${gae[h]})`),XTe(ie,ne),ne(ie)),()=>{YTe(ie,ne)}},[h]),p.useEffect(()=>{const ne=XKe("ant-sider-");return y.addSider(ne),()=>y.removeSider(ne)},[]);const U=()=>{T(!S,"clickTrigger")},R=ga(v,["collapsed"]),$=S?f:d,P=jKe($)?`${$}px`:String($),z=Number.parseFloat(String(f||0))===0?p.createElement("span",{onClick:U,className:ce(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${u?"right":"left"}`),style:m},a||p.createElement(QKe,null)):null,B=k==="rtl"==!u,Y={expanded:B?p.createElement(Bp,null):p.createElement(Up,null),collapsed:B?p.createElement(Up,null):p.createElement(Bp,null)}[S?"collapsed":"expanded"],q=a!==null?z||p.createElement("div",{className:`${I}-trigger`,onClick:U,style:{width:P}},a||Y):null,H=Object.assign(Object.assign({},l),{flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P}),J=ce(I,`${I}-${s}`,{[`${I}-collapsed`]:!!S,[`${I}-has-trigger`]:c&&a!==null&&!z,[`${I}-below`]:!!_,[`${I}-zero-width`]:Number.parseFloat(P)===0},r,Q,F),te=p.useMemo(()=>({siderCollapsed:S}),[S]);return M(p.createElement(Ik.Provider,{value:te},p.createElement("aside",Object.assign({className:J},R,{style:H,ref:t}),p.createElement("div",{className:`${I}-children`},i),c||_&&z?q:null)))});var vwe={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"},YKe=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:vwe}))},Bj=p.forwardRef(YKe);const I$=p.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var VKe=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=VKe(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=p.useContext(fn),o=i("menu",t),s=ce({[`${o}-item-divider-dashed`]:!!r},n);return p.createElement(Qj,Object.assign({className:s},a))},Swe=e=>{var t;const{className:n,children:r,icon:a,title:i,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=p.useContext(I$),m=S=>{const C=r==null?void 0:r[0],_=p.createElement("span",{className:ce(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!a||p.isValidElement(r)&&r.type==="span")&&r&&S&&c&&typeof C=="string"?p.createElement("div",{className:`${l}-inline-collapsed-noicon`},C.charAt(0)):_},{siderCollapsed:h}=p.useContext(Ik);let g=i;typeof i>"u"?g=c?r:"":i===!1&&(g="");const O={title:g};!h&&!f&&(O.title=null,O.open=!1);const v=To(r).length;let y=p.createElement(GE,Object.assign({},ga(e,["title","icon","danger"]),{className:ce({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(a?v+1:v)===1},n),title:typeof i=="string"?i:void 0}),wo(a,{className:ce(p.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${l}-item-icon`)}),m(f));return d||(y=p.createElement(Co,Object.assign({},O,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y};var qKe=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=qKe(e,["children"]),a=p.useContext(M$),i=p.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=_Fe(n),s=Sd(t,o?fm(n):null);return p.createElement(M$.Provider,{value:i},p.createElement(hu,{space:!0},o?p.cloneElement(n,{ref:s}):n))}),WKe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:i,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${de(i)} ${o} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},d5(nr(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const _Ze=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:i,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:m,colorBgContainer:h,colorFillSecondary:g,colorBgContainerDisabled:O,colorTextDisabled:v,colorPrimaryHover:y,colorPrimary:S,controlOutline:C}=e,_=s*2,w=r*2,T=Math.min(a-_,a-w),k=Math.min(i-_,i-w),A=Math.min(o-_,o-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:m,optionPadding:`${(a-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:h,clearBg:h,singleItemHeightLG:o,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:k,multipleItemHeightLG:A,multipleSelectorBgDisabled:O,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:S,activeOutlineColor:C,selectAffixPadding:s}},fwe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${de(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 ${de(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Rae=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},fwe(e,t))}),EZe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},fwe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Rae(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Rae(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:`${de(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),pwe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${de(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}}}},Pae=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},pwe(e,t))}),xZe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},pwe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Pae(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Pae(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:`${de(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),TZe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${de(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:`${de(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}}}}),mwe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${de(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}}}},kae=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},mwe(e,t))}),wZe=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},mwe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),kae(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),kae(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:`${de(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),CZe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},EZe(e)),xZe(e)),TZe(e)),wZe(e))}),$Ze=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"}}}},RZe=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"}}}},PZe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Qr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},$Ze(e)),RZe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ll),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},ll),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Cb()),{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)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},kZe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},PZe(e),SZe(e),yZe(e),OZe(e),{[`${t}-rtl`]:{direction:"rtl"}},Ab(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},AZe=Er("Select",(e,{rootPrefixCls:t})=>{const n=nr(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[kZe(n),CZe(n)]},_Ze,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var NZe={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"},IZe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:NZe}))},zk=p.forwardRef(IZe),MZe={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"},DZe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:MZe}))},Bk=p.forwardRef(DZe),LZe={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"},QZe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:LZe}))},Jj=p.forwardRef(QZe);function hwe({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:a,multiple:i,hasFeedback:o,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:d}){const f=t??p.createElement(Df,null),m=v=>e===null&&!o&&!u?null:p.createElement(p.Fragment,null,l!==!1&&v,o&&c);let h=null;if(e!==void 0)h=m(e);else if(a)h=m(p.createElement(vu,{spin:!0}));else{const v=`${s}-suffix`;h=({open:y,showSearch:S})=>m(y&&S?p.createElement(Jj,{className:v}):p.createElement(Bk,{className:v}))}let g=null;n!==void 0?g=n:i?g=p.createElement(zk,null):g=null;let O=null;return r!==void 0?O=r:O=p.createElement(Gl,null),{clearIcon:f,suffixIcon:h,itemIcon:g,removeIcon:O}}function zZe(e){return Z.useMemo(()=>{if(e)return(...t)=>Z.createElement(yu,{space:!0},e.apply(void 0,t))},[e])}function BZe(e,t){return t!==void 0?t:e!==null}var FZe=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,i,o;const{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:d,popupClassName:f,dropdownClassName:m,listHeight:h=256,placement:g,listItemHeight:O,size:v,disabled:y,notFoundContent:S,status:C,builtinPlacements:_,dropdownMatchSelectWidth:w,popupMatchSelectWidth:T,direction:k,style:A,allowClear:I,variant:M,dropdownStyle:Q,transitionName:B,tagRender:D,maxCount:U,prefix:R,dropdownRender:$,popupRender:P,onDropdownVisibleChange:z,onOpenChange:F,styles:L,classNames:X}=e,Y=FZe(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:q,getPrefixCls:G,renderEmpty:ee,direction:K,virtual:ne,popupMatchSelectWidth:ie,popupOverflow:se}=p.useContext(pn),{showSearch:ue,style:ce,styles:be,className:ge,classNames:Oe}=$i("select"),[,me]=co(),Te=O??(me==null?void 0:me.controlHeight),Ce=G("select",s),Fe=G(),Me=k??K,{compactSize:Ee,compactItemClassnames:Le}=Pd(Ce,Me),[ze,Qe]=ym("select",M,l),Je=Ua(Ce),[He,gt,st]=AZe(Ce,Je),lt=p.useMemo(()=>{const{mode:vt}=e;if(vt!=="combobox")return vt===gwe?"combobox":vt},[e.mode]),pt=lt==="multiple"||lt==="tags",Ze=BZe(e.suffixIcon,e.showArrow),De=(n=T??w)!==null&&n!==void 0?n:ie,Ke=((r=L==null?void 0:L.popup)===null||r===void 0?void 0:r.root)||((a=be.popup)===null||a===void 0?void 0:a.root)||Q,Be=zZe(P||$),We=F||z,{status:Re,hasFeedback:Ie,isFormItemInput:ve,feedbackIcon:we}=p.useContext(io),Xe=xg(Re,C);let rt;S!==void 0?rt=S:lt==="combobox"?rt=null:rt=(ee==null?void 0:ee("Select"))||p.createElement(cwe,{componentName:"Select"});const{suffixIcon:at,itemIcon:ct,removeIcon:mt,clearIcon:je}=hwe(Object.assign(Object.assign({},Y),{multiple:pt,hasFeedback:Ie,feedbackIcon:we,showSuffixIcon:Ze,prefixCls:Ce,componentName:"Select"})),Ye=I===!0?{clearIcon:je}:I,yt=Oa(Y,["suffixIcon","itemIcon"]),$t=le(((i=X==null?void 0:X.popup)===null||i===void 0?void 0:i.root)||((o=Oe==null?void 0:Oe.popup)===null||o===void 0?void 0:o.root)||f||m,{[`${Ce}-dropdown-${Me}`]:Me==="rtl"},u,Oe.root,X==null?void 0:X.root,st,Je,gt),St=Xi(vt=>{var Gt;return(Gt=v??Ee)!==null&&Gt!==void 0?Gt:vt}),Mt=p.useContext(jo),Qt=y??Mt,Ot=le({[`${Ce}-lg`]:St==="large",[`${Ce}-sm`]:St==="small",[`${Ce}-rtl`]:Me==="rtl",[`${Ce}-${ze}`]:Qe,[`${Ce}-in-form-item`]:ve},Wp(Ce,Xe,Ie),Le,ge,c,Oe.root,X==null?void 0:X.root,u,st,Je,gt),ht=p.useMemo(()=>g!==void 0?g:Me==="rtl"?"bottomRight":"bottomLeft",[g,Me]),[ut]=Rd("SelectLike",Ke==null?void 0:Ke.zIndex);return He(p.createElement(Kj,Object.assign({ref:t,virtual:ne,showSearch:ue},yt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},be.root),L==null?void 0:L.root),ce),A),dropdownMatchSelectWidth:De,transitionName:cl(Fe,"slide-up",B),builtinPlacements:gZe(_,se),listHeight:h,listItemHeight:Te,mode:lt,prefixCls:Ce,placement:ht,direction:Me,prefix:R,suffixIcon:at,menuItemSelectedIcon:ct,removeIcon:mt,allowClear:Ye,notFoundContent:rt,className:Ot,getPopupContainer:d||q,dropdownClassName:$t,disabled:Qt,dropdownStyle:Object.assign(Object.assign({},Ke),{zIndex:ut}),maxCount:pt?U:void 0,tagRender:pt?D:void 0,dropdownRender:Be,onDropdownVisibleChange:We})))},qr=p.forwardRef(UZe),jZe=ZE(qr,"dropdownAlign");qr.SECRET_COMBOBOX_MODE_DO_NOT_USE=gwe;qr.Option=Zj;qr.OptGroup=Hj;qr._InternalPanelDoNotUseOrYouWillBeFired=jZe;const Owe=(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)},bwe=(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)},H0=["xxl","xl","lg","md","sm","xs"],XZe=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)`}),YZe=e=>{const t=e,n=[].concat(H0).reverse();return n.forEach((r,a)=>{const i=r.toUpperCase(),o=`screen${i}Min`,s=`screen${i}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(a{const[,e]=co(),t=XZe(YZe(e));return Z.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return a=i,n.forEach(o=>o(a)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(a),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(([i,o])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},a),{[i]:c}))},l=window.matchMedia(o);Owe(l,s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(i=>{const o=this.matchHandlers[i];bwe(o==null?void 0:o.mql,o==null?void 0:o.listener)}),n.clear()}}},[t])};function ex(e=!0,t={}){const n=p.useRef(t),[,r]=Dj(),a=VZe();return tr(()=>{const i=a.subscribe(o=>{n.current=o,e&&r()});return()=>a.unsubscribe(i)},[]),n.current}const A9=p.createContext({}),qZe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:a,avatarColor:i,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,iconFontSize:f,iconFontSizeLG:m,iconFontSizeSM:h,borderRadius:g,borderRadiusLG:O,borderRadiusSM:v,lineWidth:y,lineType:S}=e,C=(_,w,T,k)=>({width:_,height:_,borderRadius:"50%",fontSize:w,[`&${n}-square`]:{borderRadius:k},[`&${n}-icon`]:{fontSize:T,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Qr(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:a,border:`${de(y)} ${S} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),C(o,c,f,g)),{"&-lg":Object.assign({},C(s,u,m,O)),"&-sm":Object.assign({},C(l,d,h,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},WZe=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}}}},GZe=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:a,fontSizeLG:i,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:a,textFontSizeLG:a,textFontSizeSM:a,iconFontSize:Math.round((i+o)/2),iconFontSizeLG:s,iconFontSizeSM:a,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},vwe=Er("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=nr(e,{avatarBg:n,avatarColor:t});return[qZe(r),WZe(r)]},GZe);var HZe=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:i,srcSet:o,icon:s,className:l,rootClassName:c,style:u,alt:d,draggable:f,children:m,crossOrigin:h,gap:g=4,onError:O}=e,v=HZe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[y,S]=p.useState(1),[C,_]=p.useState(!1),[w,T]=p.useState(!0),k=p.useRef(null),A=p.useRef(null),I=Ci(t,k),{getPrefixCls:M,avatar:Q}=p.useContext(pn),B=p.useContext(A9),D=()=>{if(!A.current||!k.current)return;const ue=A.current.offsetWidth,ce=k.current.offsetWidth;ue!==0&&ce!==0&&g*2{_(!0)},[]),p.useEffect(()=>{T(!0),S(1)},[i]),p.useEffect(D,[g]);const U=()=>{(O==null?void 0:O())!==!1&&T(!1)},R=Xi(ue=>{var ce,be;return(be=(ce=a??(B==null?void 0:B.size))!==null&&ce!==void 0?ce:ue)!==null&&be!==void 0?be:"default"}),$=Object.keys(typeof R=="object"?R||{}:{}).some(ue=>["xs","sm","md","lg","xl","xxl"].includes(ue)),P=ex($),z=p.useMemo(()=>{if(typeof R!="object")return{};const ue=H0.find(be=>P[be]),ce=R[ue];return ce?{width:ce,height:ce,fontSize:ce&&(s||m)?ce/2:18}:{}},[P,R,s,m]),F=M("avatar",n),L=Ua(F),[X,Y,q]=vwe(F,L),G=le({[`${F}-lg`]:R==="large",[`${F}-sm`]:R==="small"}),ee=p.isValidElement(i),K=r||(B==null?void 0:B.shape)||"circle",ne=le(F,G,Q==null?void 0:Q.className,`${F}-${K}`,{[`${F}-image`]:ee||i&&w,[`${F}-icon`]:!!s},q,L,l,c,Y),ie=typeof R=="number"?{width:R,height:R,fontSize:s?R/2:18}:{};let se;if(typeof i=="string"&&w)se=p.createElement("img",{src:i,draggable:f,srcSet:o,onError:U,alt:d,crossOrigin:h});else if(ee)se=i;else if(s)se=s;else if(C||y!==1){const ue=`scale(${y})`,ce={msTransform:ue,WebkitTransform:ue,transform:ue};se=p.createElement(_o,{onResize:D},p.createElement("span",{className:`${F}-string`,ref:A,style:ce},m))}else se=p.createElement("span",{className:`${F}-string`,style:{opacity:0},ref:A},m);return X(p.createElement("span",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie),z),Q==null?void 0:Q.style),u),className:ne,ref:I}),se))}),j$=e=>e?typeof e=="function"?e():e:null;function eX(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,i=e.bodyClassName,o=e.className,s=e.style;return p.createElement("div",{className:le("".concat(n,"-content"),o),style:s},p.createElement("div",{className:le("".concat(n,"-inner"),i),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var vO={shiftX:64,adjustY:1},yO={adjustX:1,shiftY:!0},cc=[0,0],ZZe={left:{points:["cr","cl"],overflow:yO,offset:[-4,0],targetOffset:cc},right:{points:["cl","cr"],overflow:yO,offset:[4,0],targetOffset:cc},top:{points:["bc","tc"],overflow:vO,offset:[0,-4],targetOffset:cc},bottom:{points:["tc","bc"],overflow:vO,offset:[0,4],targetOffset:cc},topLeft:{points:["bl","tl"],overflow:vO,offset:[0,-4],targetOffset:cc},leftTop:{points:["tr","tl"],overflow:yO,offset:[-4,0],targetOffset:cc},topRight:{points:["br","tr"],overflow:vO,offset:[0,-4],targetOffset:cc},rightTop:{points:["tl","tr"],overflow:yO,offset:[4,0],targetOffset:cc},bottomRight:{points:["tr","br"],overflow:vO,offset:[0,4],targetOffset:cc},rightBottom:{points:["bl","br"],overflow:yO,offset:[4,0],targetOffset:cc},bottomLeft:{points:["tl","bl"],overflow:vO,offset:[0,4],targetOffset:cc},leftBottom:{points:["br","bl"],overflow:yO,offset:[-4,0],targetOffset:cc}},KZe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],JZe=function(t,n){var r=t.overlayClassName,a=t.trigger,i=a===void 0?["hover"]:a,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,m=t.children,h=t.onVisibleChange,g=t.afterVisibleChange,O=t.transitionName,v=t.animation,y=t.motion,S=t.placement,C=S===void 0?"right":S,_=t.align,w=_===void 0?{}:_,T=t.destroyTooltipOnHide,k=T===void 0?!1:T,A=t.defaultVisible,I=t.getTooltipContainer,M=t.overlayInnerStyle;t.arrowContent;var Q=t.overlay,B=t.id,D=t.showArrow,U=D===void 0?!0:D,R=t.classNames,$=t.styles,P=ln(t,KZe),z=Nb(B),F=p.useRef(null);p.useImperativeHandle(n,function(){return F.current});var L=oe({},P);"visible"in t&&(L.popupVisible=t.visible);var X=function(){return p.createElement(eX,{key:"content",prefixCls:f,id:z,bodyClassName:R==null?void 0:R.body,overlayInnerStyle:oe(oe({},M),$==null?void 0:$.body)},Q)},Y=function(){var G=p.Children.only(m),ee=(G==null?void 0:G.props)||{},K=oe(oe({},ee),{},{"aria-describedby":Q?z:null});return p.cloneElement(m,K)};return p.createElement(JE,Ae({popupClassName:le(r,R==null?void 0:R.root),prefixCls:f,popup:X,action:i,builtinPlacements:ZZe,popupPlacement:C,ref:F,popupAlign:w,getPopupContainer:I,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:O,popupAnimation:v,popupMotion:y,defaultPopupVisible:A,autoDestroy:k,mouseLeaveDelay:c,popupStyle:oe(oe({},u),$==null?void 0:$.root),mouseEnterDelay:s,arrow:U},L),Y())};const eKe=p.forwardRef(JZe);function Fk(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,i=0,o=a,s=r*1/Math.sqrt(2),l=a-r*(1-1/Math.sqrt(2)),c=a-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*a-c,f=u,m=2*a-s,h=l,g=2*a-i,O=o,v=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),S=`polygon(${y}px 100%, 50% ${y}px, ${2*a-y}px 100%, ${y}px 100%)`,C=`path('M ${i} ${o} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${f} L ${m} ${h} A ${r} ${r} 0 0 0 ${g} ${O} Z')`;return{arrowShadowWidth:v,arrowPath:C,arrowPolygon:S}}const Swe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:i,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${de(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},_we=8;function Uk(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?_we:r}}function uw(e,t){return e?t:{}}function tX(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:i,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Swe(e,t,a)),{"&:before":{background:t}})]},uw(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${de(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),uw(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${de(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),uw(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),uw(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function tKe(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const o=Object.assign(Object.assign({},i),a);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const Aae={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"]}},nKe={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"]}},rKe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ewe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:i,visibleFirst:o}=e,s=t/2,l={},c=Uk({contentRadius:i,limitVerticalRadius:!0});return Object.keys(Aae).forEach(u=>{const d=r&&nKe[u]||Aae[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(l[u]=f,rKe.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+a;break}if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=c.arrowOffsetHorizontal*2-s;break}f.overflow=tKe(u,c,t,n),o&&(f.htmlRegion="visibleFirst")}),l}const aKe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:m}=e,h=t(o).add(m).add(f).equal(),g=t(o).mul(2).add(m).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Qr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${de(e.calc(u).div(2).equal())} ${de(d)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(o,_we)}},[`${n}-content`]:{position:"relative"}}),dxe(e,(O,{darkColor:v})=>({[`&${n}-${O}`]:{[`${n}-inner`]:{backgroundColor:v},[`${n}-arrow`]:{"--antd-arrow-background-color":v}}}))),{"&-rtl":{direction:"rtl"}})},tX(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},iKe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Uk({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Fk(nr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),xwe=(e,t=!0)=>Er("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:i,colorBgSpotlight:o}=r,s=nr(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:a,tooltipBg:o});return[aKe(s),kb(r,"zoom-big-fast")]},iKe,{resetStyle:!1,injectStyle:t})(e),oKe=Vp.map(e=>`${e}-inverse`),sKe=["success","processing","error","default","warning"];function Twe(e,t=!0){return t?[].concat(et(oKe),et(Vp)).includes(e):Vp.includes(e)}function lKe(e){return sKe.includes(e)}function wwe(e,t){const n=Twe(t),r=le({[`${e}-${t}`]:t&&n}),a={},i={},o=IVe(t).toRgb(),l=(.299*o.r+.587*o.g+.114*o.b)/255<.5?"#FFF":"#000";return t&&!n&&(a.background=t,a["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:i}}const cKe=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:i,overlayInnerStyle:o}=e,{getPrefixCls:s}=p.useContext(pn),l=s("tooltip",t),[c,u,d]=xwe(l),f=wwe(l,i),m=f.arrowStyle,h=Object.assign(Object.assign({},o),f.overlayStyle),g=le(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(p.createElement("div",{className:g,style:m},p.createElement("div",{className:`${l}-arrow`}),p.createElement(eX,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:h}),a)))};var uKe=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:i,getTooltipContainer:o,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:m,arrow:h=!0,title:g,overlay:O,builtinPlacements:v,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0,motion:C,getPopupContainer:_,placement:w="top",mouseEnterDelay:T=.1,mouseLeaveDelay:k=.1,overlayStyle:A,rootClassName:I,overlayClassName:M,styles:Q,classNames:B}=e,D=uKe(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"]),U=!!h,[,R]=co(),{getPopupContainer:$,getPrefixCls:P,direction:z,className:F,style:L,classNames:X,styles:Y}=$i("tooltip"),q=$d(),G=p.useRef(null),ee=()=>{var Ze;(Ze=G.current)===null||Ze===void 0||Ze.forceAlign()};p.useImperativeHandle(t,()=>{var Ze,De;return{forceAlign:ee,forcePopupAlign:()=>{q.deprecated(!1,"forcePopupAlign","forceAlign"),ee()},nativeElement:(Ze=G.current)===null||Ze===void 0?void 0:Ze.nativeElement,popupElement:(De=G.current)===null||De===void 0?void 0:De.popupElement}});const[K,ne]=Ir(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),ie=!g&&!O&&g!==0,se=Ze=>{var De,Ke;ne(ie?!1:Ze),ie||((De=e.onOpenChange)===null||De===void 0||De.call(e,Ze),(Ke=e.onVisibleChange)===null||Ke===void 0||Ke.call(e,Ze))},ue=p.useMemo(()=>{var Ze,De;let Ke=y;return typeof h=="object"&&(Ke=(De=(Ze=h.pointAtCenter)!==null&&Ze!==void 0?Ze:h.arrowPointAtCenter)!==null&&De!==void 0?De:y),v||Ewe({arrowPointAtCenter:Ke,autoAdjustOverflow:S,arrowWidth:U?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[y,h,v,R]),ce=p.useMemo(()=>g===0?g:O||g||"",[O,g]),be=p.createElement(yu,{space:!0},typeof ce=="function"?ce():ce),ge=P("tooltip",a),Oe=P(),me=e["data-popover-inject"];let Te=K;!("open"in e)&&!("visible"in e)&&ie&&(Te=!1);const Ce=p.isValidElement(c)&&!Nxe(c)?c:p.createElement("span",null,c),Fe=Ce.props,Me=!Fe.className||typeof Fe.className=="string"?le(Fe.className,i||`${ge}-open`):Fe.className,[Ee,Le,ze]=xwe(ge,!me),Qe=wwe(ge,s),Je=Qe.arrowStyle,He=le(M,{[`${ge}-rtl`]:z==="rtl"},Qe.className,I,Le,ze,F,X.root,B==null?void 0:B.root),gt=le(X.body,B==null?void 0:B.body),[st,lt]=Rd("Tooltip",D.zIndex),pt=p.createElement(eKe,Object.assign({},D,{zIndex:st,showArrow:U,placement:w,mouseEnterDelay:T,mouseLeaveDelay:k,prefixCls:ge,classNames:{root:He,body:gt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Je),Y.root),L),A),Q==null?void 0:Q.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},Y.body),l),Q==null?void 0:Q.body),Qe.overlayStyle)},getTooltipContainer:_||o||$,ref:G,builtinPlacements:ue,overlay:be,visible:Te,onVisibleChange:se,afterVisibleChange:u??d,arrowContent:p.createElement("span",{className:`${ge}-arrow-content`}),motion:{motionName:cl(Oe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!f}),Te?To(Ce,{className:Me}):Ce);return Ee(p.createElement(XE.Provider,{value:lt},pt))}),wo=dKe;wo._InternalPanelDoNotUseOrYouWillBeFired=cKe;const fKe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:a,innerPadding:i,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:m,innerContentPadding:h,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},Qr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:a,borderBottom:m,padding:g},[`${t}-inner-content`]:{color:n,padding:h}})},tX(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},pKe=e=>{const{componentCls:t}=e;return{[t]:Vp.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},mKe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:a,wireframe:i,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,m=f/2,h=f/2-t,g=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},Fk(e)),Uk({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${m}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})},Cwe=Er("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=nr(e,{popoverBg:t,popoverColor:n});return[fKe(r),pKe(r),kb(r,"zoom-big")]},mKe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var hKe=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:p.createElement(p.Fragment,null,e&&p.createElement("div",{className:`${n}-title`},e),t&&p.createElement("div",{className:`${n}-inner-content`},t)),gKe=e=>{const{hashId:t,prefixCls:n,className:r,style:a,placement:i="top",title:o,content:s,children:l}=e,c=j$(o),u=j$(s),d=le(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return p.createElement("div",{className:d,style:a},p.createElement("div",{className:`${n}-arrow`}),p.createElement(eX,Object.assign({},e,{className:t,prefixCls:n}),l||p.createElement($we,{prefixCls:n,title:c,content:u})))},OKe=e=>{const{prefixCls:t,className:n}=e,r=hKe(e,["prefixCls","className"]),{getPrefixCls:a}=p.useContext(pn),i=a("popover",t),[o,s,l]=Cwe(i);return o(p.createElement(gKe,Object.assign({},r,{prefixCls:i,hashId:s,className:le(n,l)})))};var bKe=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:i,content:o,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,onOpenChange:m,overlayStyle:h={},styles:g,classNames:O}=e,v=bKe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:S,style:C,classNames:_,styles:w}=$i("popover"),T=y("popover",a),[k,A,I]=Cwe(T),M=y(),Q=le(s,A,I,S,_.root,O==null?void 0:O.root),B=le(_.body,O==null?void 0:O.body),[D,U]=Ir(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),R=(L,X)=>{U(L,!0),m==null||m(L,X)},$=L=>{L.keyCode===Ht.ESC&&R(!1,L)},P=L=>{R(L)},z=j$(i),F=j$(o);return k(p.createElement(wo,Object.assign({placement:l,trigger:c,mouseEnterDelay:d,mouseLeaveDelay:f},v,{prefixCls:T,classNames:{root:Q,body:B},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),C),h),g==null?void 0:g.root),body:Object.assign(Object.assign({},w.body),g==null?void 0:g.body)},ref:t,open:D,onOpenChange:P,overlay:z||F?p.createElement($we,{prefixCls:T,title:z,content:F}):null,transitionName:cl(M,"zoom-big",v.transitionName),"data-popover-inject":!0}),To(u,{onKeyDown:L=>{var X,Y;p.isValidElement(u)&&((Y=u==null?void 0:(X=u.props).onKeyDown)===null||Y===void 0||Y.call(X,L)),$(L)}})))}),jk=vKe;jk._InternalPanelDoNotUseOrYouWillBeFired=OKe;const Nae=e=>{const{size:t,shape:n}=p.useContext(A9),r=p.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return p.createElement(A9.Provider,{value:r},e.children)},yKe=e=>{var t,n,r,a;const{getPrefixCls:i,direction:o}=p.useContext(pn),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:f,size:m,shape:h,maxPopoverPlacement:g,maxPopoverTrigger:O,children:v,max:y}=e,S=i("avatar",s),C=`${S}-group`,_=Ua(S),[w,T,k]=vwe(S,_),A=le(C,{[`${C}-rtl`]:o==="rtl"},k,_,l,c,T),I=xo(v).map((B,D)=>To(B,{key:`avatar-key-${D}`})),M=(y==null?void 0:y.count)||d,Q=I.length;if(M&&Mtypeof e!="object"&&typeof e!="function"||e===null;var Pwe=p.createContext(null);function kwe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Awe(e){var t=p.useContext(Pwe);return kwe(t,e)}var kKe=["children","locked"],Su=p.createContext(null);function AKe(e,t){var n=oe({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function E_(e){var t=e.children,n=e.locked,r=ln(e,kKe),a=p.useContext(Su),i=Om(function(){return AKe(a,r)},[a,r],function(o,s){return!n&&(o[0]!==s[0]||!Bl(o[1],s[1],!0))});return p.createElement(Su.Provider,{value:i},t)}var NKe=[],Nwe=p.createContext(null);function Xk(){return p.useContext(Nwe)}var Iwe=p.createContext(NKe);function Db(e){var t=p.useContext(Iwe);return p.useMemo(function(){return e!==void 0?[].concat(et(t),[e]):t},[t,e])}var Mwe=p.createContext(null),rX=p.createContext({});function Iae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Pb(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),i=Number(a),o=null;return a&&!Number.isNaN(i)?o=i:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function IKe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=et(e.querySelectorAll("*")).filter(function(r){return Iae(r,t)});return Iae(e,t)&&n.unshift(e),n}var N9=Ht.LEFT,I9=Ht.RIGHT,M9=Ht.UP,_2=Ht.DOWN,E2=Ht.ENTER,Dwe=Ht.ESC,Kv=Ht.HOME,Jv=Ht.END,Mae=[M9,_2,N9,I9];function MKe(e,t,n,r){var a,i="prev",o="next",s="children",l="parent";if(e==="inline"&&r===E2)return{inlineTrigger:!0};var c=ae(ae({},M9,i),_2,o),u=ae(ae(ae(ae({},N9,n?o:i),I9,n?i:o),_2,s),E2,s),d=ae(ae(ae(ae(ae(ae({},M9,i),_2,o),E2,s),Dwe,l),N9,n?s:l),I9,n?l:s),f={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d},m=(a=f["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(m){case i:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function DKe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function LKe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function aX(e,t){var n=IKe(e,!0);return n.filter(function(r){return t.has(r)})}function Dae(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=aX(e,t),i=a.length,o=a.findIndex(function(s){return n===s});return r<0?o===-1?o=i-1:o-=1:r>0&&(o+=1),o=(o+i)%i,a[o]}var D9=function(t,n){var r=new Set,a=new Map,i=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(kwe(n,o),"']"));s&&(r.add(s),i.set(s,o),a.set(o,s))}),{elements:r,key2element:a,element2key:i}};function QKe(e,t,n,r,a,i,o,s,l,c){var u=p.useRef(),d=p.useRef();d.current=t;var f=function(){ur.cancel(u.current)};return p.useEffect(function(){return function(){f()}},[]),function(m){var h=m.which;if([].concat(Mae,[E2,Dwe,Kv,Jv]).includes(h)){var g=i(),O=D9(g,r),v=O,y=v.elements,S=v.key2element,C=v.element2key,_=S.get(t),w=LKe(_,y),T=C.get(w),k=MKe(e,o(T,!0).length===1,n,h);if(!k&&h!==Kv&&h!==Jv)return;(Mae.includes(h)||[Kv,Jv].includes(h))&&m.preventDefault();var A=function($){if($){var P=$,z=$.querySelector("a");z!=null&&z.getAttribute("href")&&(P=z);var F=C.get($);s(F),f(),u.current=ur(function(){d.current===F&&P.focus()})}};if([Kv,Jv].includes(h)||k.sibling||!w){var I;!w||e==="inline"?I=a.current:I=DKe(w);var M,Q=aX(I,y);h===Kv?M=Q[0]:h===Jv?M=Q[Q.length-1]:M=Dae(I,y,w,k.offset),A(M)}else if(k.inlineTrigger)l(T);else if(k.offset>0)l(T,!0),f(),u.current=ur(function(){O=D9(g,r);var R=w.getAttribute("aria-controls"),$=document.getElementById(R),P=Dae($,O.elements);A(P)},5);else if(k.offset<0){var B=o(T,!0),D=B[B.length-2],U=S.get(D);l(D,!1),A(U)}}c==null||c(m)}}function zKe(e){Promise.resolve().then(e)}var iX="__RC_UTIL_PATH_SPLIT__",Lae=function(t){return t.join(iX)},BKe=function(t){return t.split(iX)},L9="rc-menu-more";function FKe(){var e=p.useState({}),t=ye(e,2),n=t[1],r=p.useRef(new Map),a=p.useRef(new Map),i=p.useState([]),o=ye(i,2),s=o[0],l=o[1],c=p.useRef(0),u=p.useRef(!1),d=function(){u.current||n({})},f=p.useCallback(function(S,C){var _=Lae(C);a.current.set(_,S),r.current.set(S,_),c.current+=1;var w=c.current;zKe(function(){w===c.current&&d()})},[]),m=p.useCallback(function(S,C){var _=Lae(C);a.current.delete(_),r.current.delete(S)},[]),h=p.useCallback(function(S){l(S)},[]),g=p.useCallback(function(S,C){var _=r.current.get(S)||"",w=BKe(_);return C&&s.includes(w[0])&&w.unshift(L9),w},[s]),O=p.useCallback(function(S,C){return S.filter(function(_){return _!==void 0}).some(function(_){var w=g(_,!0);return w.includes(C)})},[g]),v=function(){var C=et(r.current.keys());return s.length&&C.push(L9),C},y=p.useCallback(function(S){var C="".concat(r.current.get(S)).concat(iX),_=new Set;return et(a.current.keys()).forEach(function(w){w.startsWith(C)&&_.add(a.current.get(w))}),_},[]);return p.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:f,unregisterPath:m,refreshOverflowKeys:h,isSubPathKey:O,getKeyPath:g,getKeys:v,getSubPathKeys:y}}function Jy(e){var t=p.useRef(e);t.current=e;var n=p.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),o=0;o1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(C){return!f.current&&!C&&O(!0),S==null?void 0:S(C)},g?null:p.createElement(E_,{mode:i,locked:!f.current},p.createElement(ro,Ae({visible:v},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var _=C.className,w=C.style;return p.createElement(oX,{id:t,className:_,style:w},a)}))}var aJe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],iJe=["active"],oJe=p.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,i=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,f=e.popupOffset,m=e.popupStyle,h=e.onClick,g=e.onMouseEnter,O=e.onMouseLeave,v=e.onTitleClick,y=e.onTitleMouseEnter,S=e.onTitleMouseLeave,C=ln(e,aJe),_=Awe(i),w=p.useContext(Su),T=w.prefixCls,k=w.mode,A=w.openKeys,I=w.disabled,M=w.overflowDisabled,Q=w.activeKey,B=w.selectedKeys,D=w.itemIcon,U=w.expandIcon,R=w.onItemClick,$=w.onOpenChange,P=w.onActive,z=p.useContext(rX),F=z._internalRenderSubMenuItem,L=p.useContext(Mwe),X=L.isSubPathKey,Y=Db(),q="".concat(T,"-submenu"),G=I||o,ee=p.useRef(),K=p.useRef(),ne=c??D,ie=u??U,se=A.includes(i),ue=!M&&se,ce=X(B,i),be=Lwe(i,G,y,S),ge=be.active,Oe=ln(be,iJe),me=p.useState(!1),Te=ye(me,2),Ce=Te[0],Fe=Te[1],Me=function(Re){G||Fe(Re)},Ee=function(Re){Me(!0),g==null||g({key:i,domEvent:Re})},Le=function(Re){Me(!1),O==null||O({key:i,domEvent:Re})},ze=p.useMemo(function(){return ge||(k!=="inline"?Ce||X([Q],i):!1)},[k,ge,Q,Ce,i,X]),Qe=Qwe(Y.length),Je=function(Re){G||(v==null||v({key:i,domEvent:Re}),k==="inline"&&$(i,!se))},He=Jy(function(We){h==null||h(X$(We)),R(We)}),gt=function(Re){k!=="inline"&&$(i,Re)},st=function(){P(i)},lt=_&&"".concat(_,"-popup"),pt=p.useMemo(function(){return p.createElement(zwe,{icon:k!=="horizontal"?ie:void 0,props:oe(oe({},e),{},{isOpen:ue,isSubMenu:!0})},p.createElement("i",{className:"".concat(q,"-arrow")}))},[k,ie,e,ue,q]),Ze=p.createElement("div",Ae({role:"menuitem",style:Qe,className:"".concat(q,"-title"),tabIndex:G?null:-1,ref:ee,title:typeof a=="string"?a:null,"data-menu-id":M&&_?null:_,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":lt,"aria-disabled":G,onClick:Je,onFocus:st},Oe),a,pt),De=p.useRef(k);if(k!=="inline"&&Y.length>1?De.current="vertical":De.current=k,!M){var Ke=De.current;Ze=p.createElement(nJe,{mode:Ke,prefixCls:q,visible:!s&&ue&&k!=="inline",popupClassName:d,popupOffset:f,popupStyle:m,popup:p.createElement(E_,{mode:Ke==="horizontal"?"vertical":Ke},p.createElement(oX,{id:lt,ref:K},l)),disabled:G,onVisibleChange:gt},Ze)}var Be=p.createElement(mu.Item,Ae({ref:t,role:"none"},C,{component:"li",style:n,className:le(q,"".concat(q,"-").concat(k),r,ae(ae(ae(ae({},"".concat(q,"-open"),ue),"".concat(q,"-active"),ze),"".concat(q,"-selected"),ce),"".concat(q,"-disabled"),G)),onMouseEnter:Ee,onMouseLeave:Le}),Ze,!M&&p.createElement(rJe,{id:lt,open:ue,keyPath:Y},l));return F&&(Be=F(Be,e,{selected:ce,active:ze,open:ue,disabled:G})),p.createElement(E_,{onItemClick:He,mode:k==="horizontal"?"vertical":k,itemIcon:ne,expandIcon:ie},Be)}),Yk=p.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Db(n),i=sX(r,a),o=Xk();p.useEffect(function(){if(o)return o.registerPath(n,a),function(){o.unregisterPath(n,a)}},[a]);var s;return o?s=i:s=p.createElement(oJe,Ae({ref:t},e),i),p.createElement(Iwe.Provider,{value:a},s)});function lX(e){var t=e.className,n=e.style,r=p.useContext(Su),a=r.prefixCls,i=Xk();return i?null:p.createElement("li",{role:"separator",className:le("".concat(a,"-item-divider"),t),style:n})}var sJe=["className","title","eventKey","children"],lJe=p.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,i=ln(e,sJe),o=p.useContext(Su),s=o.prefixCls,l="".concat(s,"-item-group");return p.createElement("li",Ae({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:le(l,n)}),p.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),p.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),cX=p.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=Db(n),i=sX(r,a),o=Xk();return o?i:p.createElement(lJe,Ae({ref:t},Oa(e,["warnKey"])),i)}),cJe=["label","children","key","type","extra"];function Q9(e,t,n){var r=t.item,a=t.group,i=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&Xt(s)==="object"){var c=s,u=c.label,d=c.children,f=c.key,m=c.type,h=c.extra,g=ln(c,cJe),O=f??"tmp-".concat(l);return d||m==="group"?m==="group"?p.createElement(a,Ae({key:O},g,{title:u}),Q9(d,t,n)):p.createElement(i,Ae({key:O},g,{title:u}),Q9(d,t,n)):m==="divider"?p.createElement(o,Ae({key:O},g)):p.createElement(r,Ae({key:O},g,{extra:h}),u,(!!h||h===0)&&p.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(s){return s})}function zae(e,t,n,r,a){var i=e,o=oe({divider:lX,item:tx,group:cX,submenu:Yk},r);return t&&(i=Q9(t,o,a)),sX(i,n)}var uJe=["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"],jm=[],dJe=p.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,i=a===void 0?"rc-menu":a,o=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,d=r.items,f=r.children,m=r.direction,h=r.id,g=r.mode,O=g===void 0?"vertical":g,v=r.inlineCollapsed,y=r.disabled,S=r.disabledOverflow,C=r.subMenuOpenDelay,_=C===void 0?.1:C,w=r.subMenuCloseDelay,T=w===void 0?.1:w,k=r.forceSubMenuRender,A=r.defaultOpenKeys,I=r.openKeys,M=r.activeKey,Q=r.defaultActiveFirst,B=r.selectable,D=B===void 0?!0:B,U=r.multiple,R=U===void 0?!1:U,$=r.defaultSelectedKeys,P=r.selectedKeys,z=r.onSelect,F=r.onDeselect,L=r.inlineIndent,X=L===void 0?24:L,Y=r.motion,q=r.defaultMotions,G=r.triggerSubMenuAction,ee=G===void 0?"hover":G,K=r.builtinPlacements,ne=r.itemIcon,ie=r.expandIcon,se=r.overflowedIndicator,ue=se===void 0?"...":se,ce=r.overflowedIndicatorPopupClassName,be=r.getPopupContainer,ge=r.onClick,Oe=r.onOpenChange,me=r.onKeyDown;r.openAnimation,r.openTransitionName;var Te=r._internalRenderMenuItem,Ce=r._internalRenderSubMenuItem,Fe=r._internalComponents,Me=ln(r,uJe),Ee=p.useMemo(function(){return[zae(f,d,jm,Fe,i),zae(f,d,jm,{},i)]},[f,d,Fe]),Le=ye(Ee,2),ze=Le[0],Qe=Le[1],Je=p.useState(!1),He=ye(Je,2),gt=He[0],st=He[1],lt=p.useRef(),pt=jKe(h),Ze=m==="rtl",De=Ir(A,{value:I,postState:function(mn){return mn||jm}}),Ke=ye(De,2),Be=Ke[0],We=Ke[1],Re=function(mn){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function pr(){We(mn),Oe==null||Oe(mn)}un?Fl.flushSync(pr):pr()},Ie=p.useState(Be),ve=ye(Ie,2),we=ve[0],Xe=ve[1],rt=p.useRef(!1),at=p.useMemo(function(){return(O==="inline"||O==="vertical")&&v?["vertical",v]:[O,!1]},[O,v]),ct=ye(at,2),mt=ct[0],je=ct[1],Ye=mt==="inline",yt=p.useState(mt),$t=ye(yt,2),St=$t[0],Mt=$t[1],Qt=p.useState(je),Ot=ye(Qt,2),ht=Ot[0],ut=Ot[1];p.useEffect(function(){Mt(mt),ut(je),rt.current&&(Ye?We(we):Re(jm))},[mt,je]);var vt=p.useState(0),Gt=ye(vt,2),en=Gt[0],Rn=Gt[1],Ut=en>=ze.length-1||St!=="horizontal"||S;p.useEffect(function(){Ye&&Xe(Be)},[Be]),p.useEffect(function(){return rt.current=!0,function(){rt.current=!1}},[]);var Ct=FKe(),Vt=Ct.registerPath,_n=Ct.unregisterPath,jn=Ct.refreshOverflowKeys,Qn=Ct.isSubPathKey,fr=Ct.getKeyPath,Pt=Ct.getKeys,xe=Ct.getSubPathKeys,pe=p.useMemo(function(){return{registerPath:Vt,unregisterPath:_n}},[Vt,_n]),$e=p.useMemo(function(){return{isSubPathKey:Qn}},[Qn]);p.useEffect(function(){jn(Ut?jm:ze.slice(en+1).map(function(xr){return xr.key}))},[en,Ut]);var tt=Ir(M||Q&&((n=ze[0])===null||n===void 0?void 0:n.key),{value:M}),dt=ye(tt,2),wt=dt[0],Tt=dt[1],Yt=Jy(function(xr){Tt(xr)}),En=Jy(function(){Tt(void 0)});p.useImperativeHandle(t,function(){return{list:lt.current,focus:function(mn){var un,pr=Pt(),sn=D9(pr,pt),nn=sn.elements,or=sn.key2element,Zr=sn.element2key,xn=aX(lt.current,nn),Kn=wt??(xn[0]?Zr.get(xn[0]):(un=ze.find(function(qn){return!qn.props.disabled}))===null||un===void 0?void 0:un.key),Ar=or.get(Kn);if(Kn&&Ar){var Tr;Ar==null||(Tr=Ar.focus)===null||Tr===void 0||Tr.call(Ar,mn)}}}});var Rt=Ir($||[],{value:P,postState:function(mn){return Array.isArray(mn)?mn:mn==null?jm:[mn]}}),qe=ye(Rt,2),Et=qe[0],hn=qe[1],Zn=function(mn){if(D){var un=mn.key,pr=Et.includes(un),sn;R?pr?sn=Et.filter(function(or){return or!==un}):sn=[].concat(et(Et),[un]):sn=[un],hn(sn);var nn=oe(oe({},mn),{},{selectedKeys:sn});pr?F==null||F(nn):z==null||z(nn)}!R&&Be.length&&St!=="inline"&&Re(jm)},rr=Jy(function(xr){ge==null||ge(X$(xr)),Zn(xr)}),ua=Jy(function(xr,mn){var un=Be.filter(function(sn){return sn!==xr});if(mn)un.push(xr);else if(St!=="inline"){var pr=xe(xr);un=un.filter(function(sn){return!pr.has(sn)})}Bl(Be,un,!0)||Re(un,!0)}),Gr=function(mn,un){var pr=un??!Be.includes(mn);ua(mn,pr)},ra=QKe(St,wt,Ze,pt,lt,Pt,fr,Tt,Gr,me);p.useEffect(function(){st(!0)},[]);var Hr=p.useMemo(function(){return{_internalRenderMenuItem:Te,_internalRenderSubMenuItem:Ce}},[Te,Ce]),aa=St!=="horizontal"||S?ze:ze.map(function(xr,mn){return p.createElement(E_,{key:xr.key,overflowDisabled:mn>en},xr)}),Pa=p.createElement(mu,Ae({id:h,ref:lt,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:tx,className:le(i,"".concat(i,"-root"),"".concat(i,"-").concat(St),l,ae(ae({},"".concat(i,"-inline-collapsed"),ht),"".concat(i,"-rtl"),Ze),o),dir:m,style:s,role:"menu",tabIndex:u,data:aa,renderRawItem:function(mn){return mn},renderRawRest:function(mn){var un=mn.length,pr=un?ze.slice(-un):null;return p.createElement(Yk,{eventKey:L9,title:ue,disabled:Ut,internalPopupClose:un===0,popupClassName:ce},pr)},maxCount:St!=="horizontal"||S?mu.INVALIDATE:mu.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(mn){Rn(mn)},onKeyDown:ra},Me));return p.createElement(rX.Provider,{value:Hr},p.createElement(Pwe.Provider,{value:pt},p.createElement(E_,{prefixCls:i,rootClassName:o,mode:St,openKeys:Be,rtl:Ze,disabled:y,motion:gt?Y:null,defaultMotions:gt?q:null,activeKey:wt,onActive:Yt,onInactive:En,selectedKeys:Et,inlineIndent:X,subMenuOpenDelay:_,subMenuCloseDelay:T,forceSubMenuRender:k,builtinPlacements:K,triggerSubMenuAction:ee,getPopupContainer:be,itemIcon:ne,expandIcon:ie,onItemClick:rr,onOpenChange:ua},p.createElement(Mwe.Provider,{value:$e},Pa),p.createElement("div",{style:{display:"none"},"aria-hidden":!0},p.createElement(Nwe.Provider,{value:pe},Qe)))))}),Lb=dJe;Lb.Item=tx;Lb.SubMenu=Yk;Lb.ItemGroup=cX;Lb.Divider=lX;var fJe={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"},pJe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:fJe}))},mJe=p.forwardRef(pJe);const Fwe=p.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),hJe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:i,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{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:i,padding:o,color:s,lineHeight:de(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Uwe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:i,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:a,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:a}},jwe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Xwe=Er("Layout",hJe,Uwe,{deprecatedTokens:jwe}),gJe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:i,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:m,lightTriggerColor:h,lightTriggerBg:g,bodyBg:O}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:de(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${de(f)} ${de(f)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${de(f)} 0 0 ${de(f)}`}},"&-light":{background:m,[`${t}-trigger`]:{color:h,background:g},[`${t}-zero-width-trigger`]:{color:h,background:g,border:`1px solid ${O}`,borderInlineStart:0}}}}},OJe=Er(["Layout","Sider"],gJe,Uwe,{deprecatedTokens:jwe});var bJe=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)),Vk=p.createContext({}),yJe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Ywe=p.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:i,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:m,breakpoint:h,onCollapse:g,onBreakpoint:O}=e,v=bJe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=p.useContext(Fwe),[S,C]=p.useState("collapsed"in e?e.collapsed:o),[_,w]=p.useState(!1);p.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const T=(ne,ie)=>{"collapsed"in e||C(ne),g==null||g(ne,ie)},{getPrefixCls:k,direction:A}=p.useContext(pn),I=k("layout-sider",n),[M,Q,B]=OJe(I),D=p.useRef(null);D.current=ne=>{w(ne.matches),O==null||O(ne.matches),S!==ne.matches&&T(ne.matches,"responsive")},p.useEffect(()=>{function ne(se){var ue;return(ue=D.current)===null||ue===void 0?void 0:ue.call(D,se)}let ie;return typeof(window==null?void 0:window.matchMedia)<"u"&&h&&h in Bae&&(ie=window.matchMedia(`screen and (max-width: ${Bae[h]})`),Owe(ie,ne),ne(ie)),()=>{bwe(ie,ne)}},[h]),p.useEffect(()=>{const ne=yJe("ant-sider-");return y.addSider(ne),()=>y.removeSider(ne)},[]);const U=()=>{T(!S,"clickTrigger")},R=Oa(v,["collapsed"]),$=S?f:d,P=vJe($)?`${$}px`:String($),z=Number.parseFloat(String(f||0))===0?p.createElement("span",{onClick:U,className:le(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${u?"right":"left"}`),style:m},a||p.createElement(mJe,null)):null,F=A==="rtl"==!u,Y={expanded:F?p.createElement(qp,null):p.createElement(Gp,null),collapsed:F?p.createElement(Gp,null):p.createElement(qp,null)}[S?"collapsed":"expanded"],q=a!==null?z||p.createElement("div",{className:`${I}-trigger`,onClick:U,style:{width:P}},a||Y):null,G=Object.assign(Object.assign({},l),{flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P}),ee=le(I,`${I}-${s}`,{[`${I}-collapsed`]:!!S,[`${I}-has-trigger`]:c&&a!==null&&!z,[`${I}-below`]:!!_,[`${I}-zero-width`]:Number.parseFloat(P)===0},r,Q,B),K=p.useMemo(()=>({siderCollapsed:S}),[S]);return M(p.createElement(Vk.Provider,{value:K},p.createElement("aside",Object.assign({className:ee},R,{style:G,ref:t}),p.createElement("div",{className:`${I}-children`},i),c||_&&z?q:null)))});var Vwe={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"},SJe=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Vwe}))},uX=p.forwardRef(SJe);const Y$=p.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var _Je=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=_Je(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=p.useContext(pn),o=i("menu",t),s=le({[`${o}-item-divider-dashed`]:!!r},n);return p.createElement(lX,Object.assign({className:s},a))},Wwe=e=>{var t;const{className:n,children:r,icon:a,title:i,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:f}=p.useContext(Y$),m=S=>{const C=r==null?void 0:r[0],_=p.createElement("span",{className:le(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!a||p.isValidElement(r)&&r.type==="span")&&r&&S&&c&&typeof C=="string"?p.createElement("div",{className:`${l}-inline-collapsed-noicon`},C.charAt(0)):_},{siderCollapsed:h}=p.useContext(Vk);let g=i;typeof i>"u"?g=c?r:"":i===!1&&(g="");const O={title:g};!h&&!f&&(O.title=null,O.open=!1);const v=xo(r).length;let y=p.createElement(tx,Object.assign({},Oa(e,["title","icon","danger"]),{className:le({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(a?v+1:v)===1},n),title:typeof i=="string"?i:void 0}),To(a,{className:le(p.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${l}-item-icon`)}),m(f));return d||(y=p.createElement(wo,Object.assign({},O,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y};var EJe=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=EJe(e,["children"]),a=p.useContext(V$),i=p.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=KFe(n),s=Cd(t,o?bm(n):null);return p.createElement(V$.Provider,{value:i},p.createElement(yu,{space:!0},o?p.cloneElement(n,{ref:s}):n))}),xJe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:i,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${de(i)} ${o} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},GKe=({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(${de(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${de(t)})`}}}}),Oae=e=>wc(e),bae=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:i,groupTitleColor:o,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:O,motionDurationMid:v,itemHoverColor:y,lineType:S,colorSplit:C,itemDisabledColor:_,dangerItemColor:w,dangerItemHoverColor:T,dangerItemSelectedColor:A,dangerItemActiveBg:k,dangerItemSelectedBg:I,popupBg:M,itemHoverBg:Q,itemActiveBg:F,menuSubMenuBg:L,horizontalItemSelectedColor:U,horizontalItemSelectedBg:R,horizontalItemBorderRadius:$,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},Oae(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Oae(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:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:Q},"&:active":{backgroundColor:F}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:Q},"&:active":{backgroundColor:F}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:T}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:A},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:I}},[`&${n}-submenu > ${n}`]:{backgroundColor:L},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:$,"&::after":{position:"absolute",insetInline:O,bottom:0,borderBottom:`${de(u)} solid transparent`,transition:`border-color ${m} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:U}},"&-selected":{color:U,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:u,borderBottomColor:U}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${de(f)} ${S} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${de(d)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:A}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(",")}}}}}},vae=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:i,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(a).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:de(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${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"}}}},TJe=({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(${de(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${de(t)})`}}}}),Fae=e=>wc(e),Uae=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:i,groupTitleColor:o,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:m,motionEaseInOut:h,motionEaseOut:g,itemPaddingInline:O,motionDurationMid:v,itemHoverColor:y,lineType:S,colorSplit:C,itemDisabledColor:_,dangerItemColor:w,dangerItemHoverColor:T,dangerItemSelectedColor:k,dangerItemActiveBg:A,dangerItemSelectedBg:I,popupBg:M,itemHoverBg:Q,itemActiveBg:B,menuSubMenuBg:D,horizontalItemSelectedColor:U,horizontalItemSelectedBg:R,horizontalItemBorderRadius:$,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},Fae(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Fae(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:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:Q},"&:active":{backgroundColor:B}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:Q},"&:active":{backgroundColor:B}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:T}},[`&${n}-item:active`]:{background:A}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:I}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:M},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:M},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:$,"&::after":{position:"absolute",insetInline:O,bottom:0,borderBottom:`${de(u)} solid transparent`,transition:`border-color ${m} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:U}},"&-selected":{color:U,backgroundColor:R,"&:hover":{backgroundColor:R},"&::after":{borderBottomWidth:u,borderBottomColor:U}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${de(f)} ${S} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${de(d)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${h}`,`opacity ${v} ${h}`].join(",")}}}}}},jae=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:i,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(a).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:de(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:de(n)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},HKe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:i,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:m,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:O}=e,v={height:r,lineHeight:de(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},vae(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},vae(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${de(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},wJe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:i,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:m,boxShadowSecondary:h,collapsedWidth:g,collapsedIconSize:O}=e,v={height:r,lineHeight:de(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},jae(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},jae(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${de(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${d} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${de(e.calc(O).div(2).equal())} - ${de(c)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:O,lineHeight:de(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({},ll),{paddingInline:m})}}]},yae=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:i,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},_b()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Sae=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:i,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${de(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${de(o)})`}}}}},ZKe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:i,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:m,menuArrowSize:h,menuArrowOffset:g,lineType:O,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},dd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zr(e)),dd()),{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:`${de(s)} ${de(l)}`,fontSize:y,lineHeight:v,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${o}`,`background ${a} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${o}`,`background ${a} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${o}`,`padding ${a} ${o}`].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:c,borderStyle:O,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),yae(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${de(e.calc(r).mul(2).equal())} ${de(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,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:f},yae(e)),Sae(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Sae(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${de(g)})`},"&::after":{transform:`rotate(45deg) translateX(${de(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${de(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${de(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${de(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},KKe=e=>{var t,n,r;const{colorPrimary:a,colorError:i,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:m,lineWidthBold:h,controlItemBgActive:g,colorBgTextHover:O,controlHeightLG:v,lineHeight:y,colorBgElevated:S,marginXXS:C,padding:_,fontSize:w,controlHeightSM:T,fontSizeLG:A,colorTextLightSolid:k,colorErrorHover:I}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,Q=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:m,F=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,L=new Sr(k).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:u,itemBg:u,colorItemBgHover:O,itemHoverBg:O,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:m,activeBarBorderWidth:Q,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:F,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:y,collapsedWidth:v*2,popupBg:S,itemMarginBlock:C,itemPaddingInline:_,horizontalLineHeight:`${v*1.15}px`,iconSize:w,iconMarginInlineEnd:T-w,collapsedIconSize:A,groupTitleFontSize:w,darkItemDisabledColor:new Sr(k).setA(.25).toRgbString(),darkItemColor:L,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:a,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:L,darkItemHoverColor:k,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:M?`calc(100% + ${Q}px)`:`calc(100% - ${F*2}px)`}},JKe=(e,t=e,n=!0)=>Er("Menu",a=>{const{colorBgElevated:i,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:d,darkItemSelectedColor:f,darkItemSelectedBg:m,darkDangerItemSelectedBg:h,darkItemHoverBg:g,darkGroupTitleColor:O,darkItemHoverColor:v,darkItemDisabledColor:y,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:_,popupBg:w,darkPopupBg:T}=a,A=a.calc(s).div(7).mul(5).equal(),k=nr(a,{menuArrowSize:A,menuHorizontalHeight:a.calc(o).mul(1.15).equal(),menuArrowOffset:a.calc(A).mul(.25).equal(),menuSubMenuBg:i,calc:a.calc,popupBg:w}),I=nr(k,{itemColor:l,itemHoverColor:v,groupTitleColor:O,itemSelectedColor:f,subMenuItemSelectedColor:f,itemBg:u,popupBg:T,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:m,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:S,dangerItemSelectedColor:C,dangerItemActiveBg:_,dangerItemSelectedBg:h,menuSubMenuBg:d,horizontalItemSelectedColor:f,horizontalItemSelectedBg:m});return[ZKe(k),WKe(k),HKe(k),bae(k,"light"),bae(I,"dark"),GKe(k),uk(k),fd(k,"slide-up"),fd(k,"slide-down"),wb(k,"zoom-big")]},KKe,{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),Ewe=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:i}=e,o=p.useContext(I$),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=kb();let d;if(!r)d=l&&!u.length&&a&&typeof a=="string"?p.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):p.createElement("span",{className:`${s}-title-content`},a);else{const h=p.isValidElement(a)&&a.type==="span";d=p.createElement(p.Fragment,null,wo(r,{className:ce(p.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),h?a:p.createElement("span",{className:`${s}-title-content`},a))}const f=p.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[m]=Ed("Menu");return p.createElement(I$.Provider,{value:f},p.createElement(Nk,Object.assign({},ga(e,["icon"]),{title:d,popupClassName:ce(s,n,`${s}-${i||c}`),popupStyle:Object.assign({zIndex:m},e.popupStyle)})))};var eJe=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=p.useContext(M$),a=r||{},{getPrefixCls:i,getPopupContainer:o,direction:s,menu:l}=p.useContext(fn),c=i(),{prefixCls:u,className:d,style:f,theme:m="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:O,siderCollapsed:v,rootClassName:y,mode:S,selectable:C,onClick:_,overflowedIndicatorPopupClassName:w}=e,T=eJe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),A=ga(T,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:S});const k=ar((...X)=>{var Y;_==null||_.apply(void 0,X),(Y=a.onClick)===null||Y===void 0||Y.call(a)}),I=a.mode||S,M=C??a.selectable,Q=O??v,F={horizontal:{motionName:`${c}-slide-up`},inline:p_(c),other:{motionName:`${c}-zoom-big`}},L=i("menu",u||a.prefixCls),U=Fa(L),[R,$,P]=JKe(L,U,!r),z=ce(`${L}-${m}`,l==null?void 0:l.className,d),B=p.useMemo(()=>{var X,Y;if(typeof h=="function"||e5(h))return h||null;if(typeof a.expandIcon=="function"||e5(a.expandIcon))return a.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||e5(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const q=(X=h??(a==null?void 0:a.expandIcon))!==null&&X!==void 0?X:l==null?void 0:l.expandIcon;return wo(q,{className:ce(`${L}-submenu-expand-icon`,p.isValidElement(q)?(Y=q.props)===null||Y===void 0?void 0:Y.className:void 0)})},[h,a==null?void 0:a.expandIcon,l==null?void 0:l.expandIcon,L]),D=p.useMemo(()=>({prefixCls:L,inlineCollapsed:Q||!1,direction:s,firstLevel:!0,theme:m,mode:I,disableMenuItemTitleTooltip:g}),[L,Q,s,g,m]);return R(p.createElement(M$.Provider,{value:null},p.createElement(I$.Provider,{value:D},p.createElement(Ab,Object.assign({getPopupContainer:o,overflowedIndicator:p.createElement(Bj,null),overflowedIndicatorPopupClassName:ce(L,`${L}-${m}`,w),mode:I,selectable:M,onClick:k},A,{inlineCollapsed:Q,style:Object.assign(Object.assign({},l==null?void 0:l.style),f),className:z,prefixCls:L,direction:s,defaultMotions:F,expandIcon:B,ref:t,rootClassName:ce(y,$,a.rootClassName,P,U),_internalComponents:tJe})))))}),Og=p.forwardRef((e,t)=>{const n=p.useRef(null),r=p.useContext(Ik);return p.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var i;(i=n.current)===null||i===void 0||i.focus(a)}})),p.createElement(nJe,Object.assign({ref:n},e,r))});Og.Item=Swe;Og.SubMenu=Ewe;Og.Divider=ywe;Og.ItemGroup=zj;const rJe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},aJe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:i,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:m,controlPaddingHorizontal:h,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:m},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:O,lineHeight:de(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({},ll),{paddingInline:m})}}]},Xae=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:i,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Cb()),[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Yae=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:i,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${de(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${de(o)})`}}}}},CJe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:i,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:m,menuArrowSize:h,menuArrowOffset:g,lineType:O,groupTitleLineHeight:v,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},Od()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qr(e)),Od()),{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:`${de(s)} ${de(l)}`,fontSize:y,lineHeight:v,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${o}`,`background ${a} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${o}`,`background ${a} ${o}`,`padding ${i} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${o}`,`padding ${a} ${o}`].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:c,borderStyle:O,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xae(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${de(e.calc(r).mul(2).equal())} ${de(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,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:f},Xae(e)),Yae(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:m},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Yae(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${de(g)})`},"&::after":{transform:`rotate(45deg) translateX(${de(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${de(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${de(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${de(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},$Je=e=>{var t,n,r;const{colorPrimary:a,colorError:i,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:m,lineWidthBold:h,controlItemBgActive:g,colorBgTextHover:O,controlHeightLG:v,lineHeight:y,colorBgElevated:S,marginXXS:C,padding:_,fontSize:w,controlHeightSM:T,fontSizeLG:k,colorTextLightSolid:A,colorErrorHover:I}=e,M=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,Q=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:m,B=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new Sr(A).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:u,itemBg:u,colorItemBgHover:O,itemHoverBg:O,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:M,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:m,activeBarBorderWidth:Q,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:B,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:y,collapsedWidth:v*2,popupBg:S,itemMarginBlock:C,itemPaddingInline:_,horizontalLineHeight:`${v*1.15}px`,iconSize:w,iconMarginInlineEnd:T-w,collapsedIconSize:k,groupTitleFontSize:w,darkItemDisabledColor:new Sr(A).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:A,darkItemSelectedBg:a,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:A,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:A,darkDangerItemActiveBg:i,itemWidth:M?`calc(100% + ${Q}px)`:`calc(100% - ${B*2}px)`}},RJe=(e,t=e,n=!0)=>Er("Menu",a=>{const{colorBgElevated:i,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:d,darkItemSelectedColor:f,darkItemSelectedBg:m,darkDangerItemSelectedBg:h,darkItemHoverBg:g,darkGroupTitleColor:O,darkItemHoverColor:v,darkItemDisabledColor:y,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:_,popupBg:w,darkPopupBg:T}=a,k=a.calc(s).div(7).mul(5).equal(),A=nr(a,{menuArrowSize:k,menuHorizontalHeight:a.calc(o).mul(1.15).equal(),menuArrowOffset:a.calc(k).mul(.25).equal(),menuSubMenuBg:i,calc:a.calc,popupBg:w}),I=nr(A,{itemColor:l,itemHoverColor:v,groupTitleColor:O,itemSelectedColor:f,subMenuItemSelectedColor:f,itemBg:u,popupBg:T,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:m,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:S,dangerItemSelectedColor:C,dangerItemActiveBg:_,dangerItemSelectedBg:h,menuSubMenuBg:d,horizontalItemSelectedColor:f,horizontalItemSelectedBg:m});return[CJe(A),xJe(A),wJe(A),Uae(A,"light"),Uae(I,"dark"),TJe(A),_k(A),bd(A,"slide-up"),bd(A,"slide-down"),kb(A,"zoom-big")]},$Je,{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),Hwe=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:i}=e,o=p.useContext(Y$),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=Db();let d;if(!r)d=l&&!u.length&&a&&typeof a=="string"?p.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):p.createElement("span",{className:`${s}-title-content`},a);else{const h=p.isValidElement(a)&&a.type==="span";d=p.createElement(p.Fragment,null,To(r,{className:le(p.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),h?a:p.createElement("span",{className:`${s}-title-content`},a))}const f=p.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[m]=Rd("Menu");return p.createElement(Y$.Provider,{value:f},p.createElement(Yk,Object.assign({},Oa(e,["icon"]),{title:d,popupClassName:le(s,n,`${s}-${i||c}`),popupStyle:Object.assign({zIndex:m},e.popupStyle)})))};var PJe=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=p.useContext(V$),a=r||{},{getPrefixCls:i,getPopupContainer:o,direction:s,menu:l}=p.useContext(pn),c=i(),{prefixCls:u,className:d,style:f,theme:m="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:O,siderCollapsed:v,rootClassName:y,mode:S,selectable:C,onClick:_,overflowedIndicatorPopupClassName:w}=e,T=PJe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=Oa(T,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:S});const A=ar((...X)=>{var Y;_==null||_.apply(void 0,X),(Y=a.onClick)===null||Y===void 0||Y.call(a)}),I=a.mode||S,M=C??a.selectable,Q=O??v,B={horizontal:{motionName:`${c}-slide-up`},inline:v_(c),other:{motionName:`${c}-zoom-big`}},D=i("menu",u||a.prefixCls),U=Ua(D),[R,$,P]=RJe(D,U,!r),z=le(`${D}-${m}`,l==null?void 0:l.className,d),F=p.useMemo(()=>{var X,Y;if(typeof h=="function"||f5(h))return h||null;if(typeof a.expandIcon=="function"||f5(a.expandIcon))return a.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||f5(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const q=(X=h??(a==null?void 0:a.expandIcon))!==null&&X!==void 0?X:l==null?void 0:l.expandIcon;return To(q,{className:le(`${D}-submenu-expand-icon`,p.isValidElement(q)?(Y=q.props)===null||Y===void 0?void 0:Y.className:void 0)})},[h,a==null?void 0:a.expandIcon,l==null?void 0:l.expandIcon,D]),L=p.useMemo(()=>({prefixCls:D,inlineCollapsed:Q||!1,direction:s,firstLevel:!0,theme:m,mode:I,disableMenuItemTitleTooltip:g}),[D,Q,s,g,m]);return R(p.createElement(V$.Provider,{value:null},p.createElement(Y$.Provider,{value:L},p.createElement(Lb,Object.assign({getPopupContainer:o,overflowedIndicator:p.createElement(uX,null),overflowedIndicatorPopupClassName:le(D,`${D}-${m}`,w),mode:I,selectable:M,onClick:A},k,{inlineCollapsed:Q,style:Object.assign(Object.assign({},l==null?void 0:l.style),f),className:z,prefixCls:D,direction:s,defaultMotions:B,expandIcon:F,ref:t,rootClassName:le(y,$,a.rootClassName,P,U),_internalComponents:kJe})))))}),Tg=p.forwardRef((e,t)=>{const n=p.useRef(null),r=p.useContext(Vk);return p.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var i;(i=n.current)===null||i===void 0||i.focus(a)}})),p.createElement(AJe,Object.assign({ref:n},e,r))});Tg.Item=Wwe;Tg.SubMenu=Hwe;Tg.Divider=qwe;Tg.ItemGroup=cX;const NJe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},IJe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:i,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:m,controlPaddingHorizontal:h,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:m}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:m},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:fk},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:xk},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:mk},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:wk},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, - &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:pk},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Tk},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, - &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:hk}}},kj(e,g,{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({},zr(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ul(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${de(c)} ${de(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,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 ${l}`,"&: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:`${de(c)} ${de(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ul(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${de(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:m,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${de(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:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[fd(e,"slide-up"),fd(e,"slide-down"),X0(e,"move-up"),X0(e,"move-down"),wb(e,"zoom-big")]]},iJe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Pk({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Rk(e)),oJe=Er("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,i=nr(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[aJe(i),rJe(i)]},iJe,{resetStyle:!1}),Mk=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:i,trigger:o,disabled:s,dropdownRender:l,popupRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:m,open:h,onOpenChange:g,visible:O,onVisibleChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:C=!0,placement:_="",overlay:w,transitionName:T,destroyOnHidden:A,destroyPopupOnHide:k}=e,{getPopupContainer:I,getPrefixCls:M,direction:Q,dropdown:F}=p.useContext(fn),L=c||l;_d();const U=p.useMemo(()=>{const xe=M();return T!==void 0?T:_.includes("top")?`${xe}-slide-down`:`${xe}-slide-up`},[M,_,T]),R=p.useMemo(()=>_?_.includes("Center")?_.slice(0,_.indexOf("Center")):_:Q==="rtl"?"bottomRight":"bottomLeft",[_,Q]),$=M("dropdown",a),P=Fa($),[z,B,D]=oJe($,P),[,X]=uo(),Y=p.Children.only(eKe(i)?p.createElement("span",null,i):i),q=wo(Y,{className:ce(`${$}-trigger`,{[`${$}-rtl`]:Q==="rtl"},Y.props.className),disabled:(t=Y.props.disabled)!==null&&t!==void 0?t:s}),H=s?[]:o,J=!!(H!=null&&H.includes("contextMenu")),[te,ne]=Ir(!1,{value:h??O}),ie=ar(xe=>{g==null||g(xe,{source:"trigger"}),v==null||v(xe),ne(xe)}),le=ce(d,f,B,D,P,F==null?void 0:F.className,{[`${$}-rtl`]:Q==="rtl"}),ue=HTe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:C,offset:X.marginXXS,arrowWidth:r?X.sizePopupArrow:0,borderRadius:X.borderRadius}),oe=ar(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(g==null||g(!1,{source:"menu"}),ne(!1))}),ge=()=>{let xe;return n!=null&&n.items?xe=p.createElement(Og,Object.assign({},n)):typeof w=="function"?xe=w():xe=w,L&&(xe=L(xe)),xe=p.Children.only(typeof xe=="string"?p.createElement("span",null,xe):xe),p.createElement(_we,{prefixCls:`${$}-menu`,rootClassName:ce(D,P),expandIcon:p.createElement("span",{className:`${$}-menu-submenu-arrow`},Q==="rtl"?p.createElement(Up,{className:`${$}-menu-submenu-arrow-icon`}):p.createElement(Bp,{className:`${$}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:oe,validator:({mode:we})=>{}},xe)},[ve,he]=Ed("Dropdown",m==null?void 0:m.zIndex);let me=p.createElement(nwe,Object.assign({alignPoint:J},ga(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:S,visible:te,builtinPlacements:ue,arrow:!!r,overlayClassName:le,prefixCls:$,getPopupContainer:u||I,transitionName:U,trigger:H,overlay:ge,placement:R,onVisibleChange:ie,overlayStyle:Object.assign(Object.assign(Object.assign({},F==null?void 0:F.style),m),{zIndex:ve}),autoDestroy:A??k}),q);return ve&&(me=p.createElement(QE.Provider,{value:he},me)),z(me)},sJe=YE(Mk,"align",void 0,"dropdown",e=>e),lJe=e=>p.createElement(sJe,Object.assign({},e),p.createElement("span",null));Mk._InternalPanelDoNotUseOrYouWillBeFired=lJe;var g2={exports:{}},cJe=g2.exports,_ae;function uJe(){return _ae||(_ae=1,(function(e,t){(function(n,r){e.exports=r()})(cJe,(function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",m="year",h="date",g="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={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(L){var U=["th","st","nd","rd"],R=L%100;return"["+L+(U[(R-20)%10]||U[R]||U[0])+"]"}},S=function(L,U,R){var $=String(L);return!$||$.length>=U?L:""+Array(U+1-$.length).join(R)+L},C={s:S,z:function(L){var U=-L.utcOffset(),R=Math.abs(U),$=Math.floor(R/60),P=R%60;return(U<=0?"+":"-")+S($,2,"0")+":"+S(P,2,"0")},m:function L(U,R){if(U.date()1)return L(B[0])}else{var D=U.name;w[D]=U,P=D}return!$&&P&&(_=P),P||!$&&_},I=function(L,U){if(A(L))return L.clone();var R=typeof U=="object"?U:{};return R.date=L,R.args=arguments,new Q(R)},M=C;M.l=k,M.i=A,M.w=function(L,U){return I(L,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var Q=(function(){function L(R){this.$L=k(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[T]=!0}var U=L.prototype;return U.parse=function(R){this.$d=(function($){var P=$.date,z=$.utc;if(P===null)return new Date(NaN);if(M.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var B=P.match(O);if(B){var D=B[2]-1||0,X=(B[7]||"0").substring(0,3);return z?new Date(Date.UTC(B[1],D,B[3]||1,B[4]||0,B[5]||0,B[6]||0,X)):new Date(B[1],D,B[3]||1,B[4]||0,B[5]||0,B[6]||0,X)}}return new Date(P)})(R),this.init()},U.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},U.$utils=function(){return M},U.isValid=function(){return this.$d.toString()!==g},U.isSame=function(R,$){var P=I(R);return this.startOf($)<=P&&P<=this.endOf($)},U.isAfter=function(R,$){return I(R)25){var u=o(this).startOf(r).add(1,r).date(c),d=o(this).endOf(n);if(u.isBefore(d))return 1}var f=o(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(f,n,!0);return m<0?o(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(v2)),v2.exports}var _Je=SJe();const EJe=Ii(_Je);var y2={exports:{}},xJe=y2.exports,wae;function TJe(){return wae||(wae=1,(function(e,t){(function(n,r){e.exports=r()})(xJe,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}}))})(y2)),y2.exports}var wJe=TJe();const CJe=Ii(wJe);var S2={exports:{}},$Je=S2.exports,Cae;function RJe(){return Cae||(Cae=1,(function(e,t){(function(n,r){e.exports=r()})($Je,(function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var c=this.$utils(),u=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}}));return i.bind(this)(u)}}}))})(S2)),S2.exports}var PJe=RJe();const kJe=Ii(PJe);var _2={exports:{}},AJe=_2.exports,$ae;function NJe(){return $ae||($ae=1,(function(e,t){(function(n,r){e.exports=r()})(AJe,(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/,i=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(O){return(O=+O)+(O>68?1900:2e3)},u=function(O){return function(v){this[O]=+v}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(O){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var y=v.match(/([+-]|\d\d)/g),S=60*y[1]+(+y[2]||0);return S===0?0:y[0]==="+"?-S:S})(O)}],f=function(O){var v=l[O];return v&&(v.indexOf?v:v.s.concat(v.f))},m=function(O,v){var y,S=l.meridiem;if(S){for(var C=1;C<=24;C+=1)if(O.indexOf(S(C,0,v))>-1){y=C>12;break}}else y=O===(v?"pm":"PM");return y},h={A:[s,function(O){this.afternoon=m(O,!1)}],a:[s,function(O){this.afternoon=m(O,!0)}],Q:[a,function(O){this.month=3*(O-1)+1}],S:[a,function(O){this.milliseconds=100*+O}],SS:[i,function(O){this.milliseconds=10*+O}],SSS:[/\d{3}/,function(O){this.milliseconds=+O}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[i,u("day")],Do:[s,function(O){var v=l.ordinal,y=O.match(/\d+/);if(this.day=y[0],v)for(var S=1;S<=31;S+=1)v(S).replace(/\[|\]/g,"")===O&&(this.day=S)}],w:[o,u("week")],ww:[i,u("week")],M:[o,u("month")],MM:[i,u("month")],MMM:[s,function(O){var v=f("months"),y=(f("monthsShort")||v.map((function(S){return S.slice(0,3)}))).indexOf(O)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(O){var v=f("months").indexOf(O)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(O){this.year=c(O)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(O){var v,y;v=O,y=l&&l.formats;for(var S=(O=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,M,Q){var F=Q&&Q.toUpperCase();return M||y[Q]||n[Q]||y[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(L,U,R){return U||R.slice(1)}))}))).match(r),C=S.length,_=0;_-1)return new Date((P==="X"?1e3:1)*$);var D=g(P)($),X=D.year,Y=D.month,q=D.day,H=D.hours,J=D.minutes,te=D.seconds,ne=D.milliseconds,ie=D.zone,le=D.week,ue=new Date,oe=q||(X||Y?1:ue.getDate()),ge=X||ue.getFullYear(),ve=0;X&&!Y||(ve=Y>0?Y-1:ue.getMonth());var he,me=H||0,xe=J||0,we=te||0,Qe=ne||0;return ie?new Date(Date.UTC(ge,ve,oe,me,xe,we,Qe+60*ie.offset*1e3)):z?new Date(Date.UTC(ge,ve,oe,me,xe,we,Qe)):(he=new Date(ge,ve,oe,me,xe,we,Qe),le&&(he=B(he).week(le).toDate()),he)}catch{return new Date("")}})(w,k,T,y),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),Q&&w!=this.format(k)&&(this.$d=new Date("")),l={}}else if(k instanceof Array)for(var L=k.length,U=1;U<=L;U+=1){A[1]=k[U-1];var R=y.apply(this,A);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}U===L&&(this.$d=new Date(""))}else C.call(this,_)}}}))})(_2)),_2.exports}var IJe=NJe();const xwe=Ii(IJe);Ti.extend(xwe);Ti.extend(kJe);Ti.extend(hJe);Ti.extend(vJe);Ti.extend(EJe);Ti.extend(CJe);Ti.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(i){var o=(i||"").replace("Wo","wo");return r.bind(this)(o)}});var MJe={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"},Qm=function(t){var n=MJe[t];return n||t.split("_")[0]},DJe={getNow:function(){var t=Ti();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Ti(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 Ti().locale(Qm(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Qm(t)).weekday(0)},getWeek:function(t,n){return n.locale(Qm(t)).week()},getShortWeekDays:function(t){return Ti().locale(Qm(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Ti().locale(Qm(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Qm(t)).format(r)},parse:function(t,n,r){for(var a=Qm(t),i=0;i2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=p.useState([!1,!1]),a=be(r,2),i=a[0],o=a[1],s=function(u,d){o(function(f){return xS(f,d,u)})},l=p.useMemo(function(){return i.map(function(c,u){if(c)return!0;var d=e[u];return d?!!(!n[u]&&!d||d&&t(d,{activeIndex:u})):!1})},[e,i,t,n]);return[l,s]}function Pwe(e,t,n,r,a){var i="",o=[];return e&&o.push(a?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),i=o.join(":"),r&&(i+=".SSS"),a&&(i+=" A"),i}function zJe(e,t,n,r,a,i){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,m=e.yearFormat,h=e.cellYearFormat,g=e.cellQuarterFormat,O=e.dayFormat,v=e.cellDateFormat,y=Pwe(t,n,r,a,i);return se(se({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:v||O||"D"})}function kwe(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,i=t.showMillisecond,o=t.use12Hours;return Z.useMemo(function(){return zJe(e,n,r,a,i,o)},[e,n,r,a,i,o])}function Gv(e,t,n){return n??t.some(function(r){return e.includes(r)})}var BJe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function FJe(e){var t=Dk(e,BJe),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=Ut(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function UJe(e){return e&&typeof e=="string"}function Awe(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function Nwe(e,t,n,r,a){var i=t,o=n,s=r;if(!e&&!i&&!o&&!s&&!a)i=!0,o=!0,s=!0;else if(e){var l,c,u,d=[i,o,s].some(function(h){return h===!1}),f=[i,o,s].some(function(h){return h===!0}),m=d?!0:!f;i=(l=i)!==null&&l!==void 0?l:m,o=(c=o)!==null&&c!==void 0?c:m,s=(u=s)!==null&&u!==void 0?u:m}return[i,o,s,a]}function Iwe(e){var t=e.showTime,n=FJe(e),r=be(n,2),a=r[0],i=r[1],o=t&&Ut(t)==="object"?t:{},s=se(se({defaultOpenValue:o.defaultOpenValue||o.defaultValue},a),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,f=Awe(c,u,d,l),m=Nwe(f,c,u,d,l),h=be(m,3);return c=h[0],u=h[1],d=h[2],[s,se(se({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,i]}function Mwe(e,t,n,r,a){var i=e==="time";if(e==="datetime"||i){for(var o=r,s=wwe(e,a,null),l=s,c=[t,n],u=0;u1&&(o=t.addDate(o,-7)),o}function ro(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 D$(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(o,s){n?r=e[o](r,e[a[s]](n)):r=e[o](r,0)}),r}function VJe(e,t,n,r,a){var i=ar(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!as(e,t,r,o,s.type)||a&&e.isAfter(o,a)&&!as(e,t,a,o,s.type))});return i}function qJe(e,t,n){return p.useMemo(function(){var r=wwe(e,t,n),a=bg(r),i=a[0],o=Ut(i)==="object"&&i.type==="mask"?i.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function WJe(e,t,n){return typeof e[0]=="function"||n?!0:t}function GJe(e,t,n,r){var a=ar(function(i,o){var s=se({type:t},o);if(delete s.activeIndex,!e.isValidate(i)||n&&n(i,s))return!0;if((t==="date"||t==="time")&&r){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,i,c,{from:s.from}))||{},d=u.disabledHours,f=u.disabledMinutes,m=u.disabledSeconds,h=u.disabledMilliseconds,g=r.disabledHours,O=r.disabledMinutes,v=r.disabledSeconds,y=d||g,S=f||O,C=m||v,_=e.getHour(i),w=e.getMinute(i),T=e.getSecond(i),A=e.getMillisecond(i);if(y&&y().includes(_)||S&&S(_).includes(w)||C&&C(_,w).includes(T)||h&&h(_,w,T).includes(A))return!0}return!1});return a}function ow(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=p.useMemo(function(){var r=e&&bg(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Qwe(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,i=a===void 0?"date":a,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,d=u===void 0?{}:u,f=e.order,m=f===void 0?!0:f,h=e.components,g=h===void 0?{}:h,O=e.inputRender,v=e.allowClear,y=e.clearIcon,S=e.needConfirm,C=e.multiple,_=e.format,w=e.inputReadOnly,T=e.disabledDate,A=e.minDate,k=e.maxDate,I=e.showTime,M=e.value,Q=e.defaultValue,F=e.pickerValue,L=e.defaultPickerValue,U=ow(M),R=ow(Q),$=ow(F),P=ow(L),z=i==="date"&&I?"datetime":i,B=z==="time"||z==="datetime",D=B||C,X=S??B,Y=Iwe(e),q=be(Y,4),H=q[0],J=q[1],te=q[2],ne=q[3],ie=kwe(r,J),le=p.useMemo(function(){return Mwe(z,te,ne,H,ie)},[z,te,ne,H,ie]),ue=p.useMemo(function(){return se(se({},e),{},{prefixCls:s,locale:ie,picker:i,styles:c,classNames:d,order:m,components:se({input:O},g),clearIcon:jJe(s,v,y),showTime:le,value:U,defaultValue:R,pickerValue:$,defaultPickerValue:P},t==null?void 0:t())},[e]),oe=qJe(z,ie,_),ge=be(oe,2),ve=ge[0],he=ge[1],me=WJe(ve,w,C),xe=VJe(n,r,T,A,k),we=GJe(n,i,xe,le),Qe=p.useMemo(function(){return se(se({},ue),{},{needConfirm:X,inputReadOnly:me,disabledDate:xe})},[ue,X,me,xe]);return[Qe,z,D,ve,he,we]}function HJe(e,t,n){var r=Ir(t,{value:e}),a=be(r,2),i=a[0],o=a[1],s=Z.useRef(e),l=Z.useRef(),c=function(){ur.cancel(l.current)},u=ar(function(){o(s.current),n&&i!==s.current&&n(s.current)}),d=ar(function(f,m){c(),s.current=f,f||m?u():l.current=ur(u)});return Z.useEffect(function(){return c},[]),[i,d]}function zwe(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(u){return u})?!1:e,i=HJe(a,t||!1,r),o=be(i,2),s=o[0],l=o[1];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!d.inherit||s)&&l(u,d.force)}return[s,c]}function Bwe(e){var t=p.useRef();return p.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var i;(i=t.current)===null||i===void 0||i.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function Fwe(e,t){return p.useMemo(function(){return e||(t?(Ma(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=be(n,2),a=r[0],i=r[1];return{label:a,value:i}})):[])},[e,t])}function Yj(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=p.useRef(t);r.current=t,$h(function(){if(e)r.current(e);else{var a=ur(function(){r.current(e)},n);return function(){ur.cancel(a)}}},[e])}function Uwe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=p.useState(0),a=be(r,2),i=a[0],o=a[1],s=p.useState(!1),l=be(s,2),c=l[0],u=l[1],d=p.useRef([]),f=p.useRef(null),m=p.useRef(null),h=function(C){f.current=C},g=function(C){return f.current===C},O=function(C){u(C)},v=function(C){return C&&(m.current=C),m.current},y=function(C){var _=d.current,w=new Set(_.filter(function(A){return C[A]||t[A]})),T=_[_.length-1]===0?1:0;return w.size>=2||e[T]?null:T};return Yj(c||n,function(){c||(d.current=[],h(null))}),p.useEffect(function(){c&&d.current.push(i)},[c,i]),[c,O,v,i,o,y,d.current,h,g]}function ZJe(e,t,n,r,a,i){var o=n[n.length-1],s=function(c,u){var d=be(e,2),f=d[0],m=d[1],h=se(se({},u),{},{from:Cwe(e,n)});return o===1&&t[0]&&f&&!as(r,a,f,c,h.type)&&r.isAfter(f,c)||o===0&&t[1]&&m&&!as(r,a,m,c,h.type)&&r.isAfter(c,m)?!0:i==null?void 0:i(c,h)};return s}function Wy(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 n5=[];function jwe(e,t,n,r,a,i,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:n5,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:n5,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:n5,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,h=o==="time",g=i||0,O=function($){var P=e.getNow();return h&&(P=D$(e,P)),l[$]||n[$]||P},v=be(c,2),y=v[0],S=v[1],C=Ir(function(){return O(0)},{value:y}),_=be(C,2),w=_[0],T=_[1],A=Ir(function(){return O(1)},{value:S}),k=be(A,2),I=k[0],M=k[1],Q=p.useMemo(function(){var R=[w,I][g];return h?R:D$(e,R,u[g])},[h,w,I,g,e,u]),F=function($){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[T,M][g];z($);var B=[w,I];B[g]=$,d&&(!as(e,t,w,B[0],o)||!as(e,t,I,B[1],o))&&d(B,{source:P,range:g===1?"end":"start",mode:r})},L=function($,P){if(s){var z={date:"month",week:"month",month:"year",quarter:"year"},B=z[o];if(B&&!as(e,t,$,P,B))return Wy(e,o,P,-1);if(o==="year"&&$){var D=Math.floor(e.getYear($)/10),X=Math.floor(e.getYear(P)/10);if(D!==X)return Wy(e,o,P,-1)}}return P},U=p.useRef(null);return tr(function(){if(a&&!l[g]){var R=h?null:e.getNow();if(U.current!==null&&U.current!==g?R=[w,I][g^1]:n[g]?R=g===0?n[0]:L(n[0],n[1]):n[g^1]&&(R=n[g^1]),R){f&&e.isAfter(f,R)&&(R=f);var $=s?Wy(e,o,R,1):R;m&&e.isAfter($,m)&&(R=s?Wy(e,o,m,-1):m),F(R,"reset")}}},[a,g,n[g]]),p.useEffect(function(){a?U.current=g:U.current=null},[a,g]),tr(function(){a&&l&&l[g]&&F(l[g],"reset")},[a,g]),[Q,F]}function Xwe(e,t){var n=p.useRef(e),r=p.useState({}),a=be(r,2),i=a[1],o=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,i({})};return[o,s,o(!0)]}var KJe=[];function Ywe(e,t,n){var r=function(o){return o.map(function(s){return ro(s,{generateConfig:e,locale:t,format:n[0]})})},a=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=a.includes(l);(!c||!r)&&o.push({label:Fj(l,i),value:l,disabled:c})}return o}function Vj(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,i=r.hourStep,o=i===void 0?1:i,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,d=r.millisecondStep,f=d===void 0?100:d,m=r.hideDisabledOptions,h=r.disabledTime,g=r.disabledHours,O=r.disabledMinutes,v=r.disabledSeconds,y=p.useMemo(function(){return n||e.getNow()},[n,e]),S=p.useCallback(function(P){var z=(h==null?void 0:h(P))||{};return[z.disabledHours||g||sw,z.disabledMinutes||O||sw,z.disabledSeconds||v||sw,z.disabledMilliseconds||sw]},[h,g,O,v]),C=p.useMemo(function(){return S(y)},[y,S]),_=be(C,4),w=_[0],T=_[1],A=_[2],k=_[3],I=p.useCallback(function(P,z,B,D){var X=lw(0,23,o,m,P()),Y=a?X.map(function(te){return se(se({},te),{},{label:Fj(te.value%12||12,2)})}):X,q=function(ne){return lw(0,59,l,m,z(ne))},H=function(ne,ie){return lw(0,59,u,m,B(ne,ie))},J=function(ne,ie,le){return lw(0,999,f,m,D(ne,ie,le),3)};return[Y,q,H,J]},[m,o,a,f,l,u]),M=p.useMemo(function(){return I(w,T,A,k)},[I,w,T,A,k]),Q=be(M,4),F=Q[0],L=Q[1],U=Q[2],R=Q[3],$=function(z,B){var D=function(){return F},X=L,Y=U,q=R;if(B){var H=S(B),J=be(H,4),te=J[0],ne=J[1],ie=J[2],le=J[3],ue=I(te,ne,ie,le),oe=be(ue,4),ge=oe[0],ve=oe[1],he=oe[2],me=oe[3];D=function(){return ge},X=ve,Y=he,q=me}var xe=eet(z,D,X,Y,q,e);return xe};return[$,F,L,U,R]}function tet(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,i=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,d=e.disabledDate,f=p.useContext(yu),m=f.prefixCls,h=f.locale,g=f.button,O=g===void 0?"button":g,v=u.getNow(),y=Vj(u,i,v),S=be(y,1),C=S[0],_=r==null?void 0:r(t),w=d(v,{type:t}),T=function(){if(!w){var L=C(v);s(L)}},A="".concat(m,"-now"),k="".concat(A,"-btn"),I=a&&p.createElement("li",{className:A},p.createElement("a",{className:ce(k,w&&"".concat(k,"-disabled")),"aria-disabled":w,onClick:T},n==="date"?h.today:h.now)),M=c&&p.createElement("li",{className:"".concat(m,"-ok")},p.createElement(O,{disabled:l,onClick:o},h.ok)),Q=(I||M)&&p.createElement("ul",{className:"".concat(m,"-ranges")},I,M);return!_&&!Q?null:p.createElement("div",{className:"".concat(m,"-footer")},_&&p.createElement("div",{className:"".concat(m,"-footer-extra")},_),Q)}function Hwe(e,t,n){function r(a,i){var o=a.findIndex(function(l){return as(e,t,l,i,n)});if(o===-1)return[].concat(Ke(a),[i]);var s=Ke(a);return s.splice(o,1),s}return r}var vg=p.createContext(null);function Qk(){return p.useContext(vg)}function Nb(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,i=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,m=e.pickerValue,h=e.onSelect,g=e.prevIcon,O=e.nextIcon,v=e.superPrevIcon,y=e.superNextIcon,S=r.getNow(),C={now:S,values:f,pickerValue:m,prefixCls:n,disabledDate:i,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:g,nextIcon:O,superPrevIcon:v,superNextIcon:y};return[C,S]}var Mp=p.createContext({});function HE(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,i=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,d=e.cellSelection,f=d===void 0?!0:d,m=e.disabledDate,h=Qk(),g=h.prefixCls,O=h.panelType,v=h.now,y=h.disabledDate,S=h.cellRender,C=h.onHover,_=h.hoverValue,w=h.hoverRangeValue,T=h.generateConfig,A=h.values,k=h.locale,I=h.onSelect,M=m||y,Q="".concat(g,"-cell"),F=p.useContext(Mp),L=F.onCellDblClick,U=function(Y){return A.some(function(q){return q&&as(T,k,Y,q,O)})},R=[],$=0;$1&&arguments[1]!==void 0?arguments[1]:!1;De(qe),O==null||O(qe),Pe&&Le(qe)},et=function(qe,Pe){ie(qe),Pe&&Ne(Pe),Le(Pe,qe)},He=function(qe){if(we(qe),Ne(qe),ne!==C){var Pe=["decade","year"],Ae=[].concat(Pe,["month"]),Oe={quarter:[].concat(Pe,["quarter"]),week:[].concat(Ke(Ae),["week"]),date:[].concat(Ke(Ae),["date"])},Te=Oe[C]||Ae,Ue=Te.indexOf(ne),rt=Te[Ue+1];rt&&et(rt,qe)}},pt=p.useMemo(function(){var ze,qe;if(Array.isArray(T)){var Pe=be(T,2);ze=Pe[0],qe=Pe[1]}else ze=T;return!ze&&!qe?null:(ze=ze||qe,qe=qe||ze,a.isAfter(ze,qe)?[qe,ze]:[ze,qe])},[T,a]),lt=Uj(A,k,I),it=Q[le]||met[le]||zk,ut=p.useContext(Mp),We=p.useMemo(function(){return se(se({},ut),{},{hideHeader:F})},[ut,F]),Me="".concat(L,"-panel"),Ge=Dk(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return p.createElement(Mp.Provider,{value:We},p.createElement("div",{ref:U,tabIndex:l,className:ce(Me,ae({},"".concat(Me,"-rtl"),i==="rtl"))},p.createElement(it,Re({},Ge,{showTime:q,prefixCls:L,locale:X,generateConfig:a,onModeChange:et,pickerValue:Ee,onPickerValueChange:function(qe){Ne(qe,!0)},value:me[0],onSelect:He,values:me,cellRender:lt,hoverRangeValue:pt,hoverValue:w}))))}var r5=p.memo(p.forwardRef(het));function get(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,i=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=p.useContext(yu),u=c.prefixCls,d=c.generateConfig,f=p.useCallback(function(y,S){return Wy(d,t,y,S)},[d,t]),m=p.useMemo(function(){return f(r,1)},[r,f]),h=function(S){a(f(S,-1))},g={onCellDblClick:function(){i&&o()}},O=t==="time",v=se(se({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:O});return s?v.hoverRangeValue=l:v.hoverValue=l,n?p.createElement("div",{className:"".concat(u,"-panels")},p.createElement(Mp.Provider,{value:se(se({},g),{},{hideNext:!0})},p.createElement(r5,v)),p.createElement(Mp.Provider,{value:se(se({},g),{},{hidePrev:!0})},p.createElement(r5,Re({},v,{pickerValue:m,onPickerValueChange:h})))):p.createElement(Mp.Provider,{value:se({},g)},p.createElement(r5,v))}function Pae(e){return typeof e=="function"?e():e}function Oet(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?p.createElement("div",{className:"".concat(t,"-presets")},p.createElement("ul",null,n.map(function(i,o){var s=i.label,l=i.value;return p.createElement("li",{key:o,onClick:function(){r(Pae(l))},onMouseEnter:function(){a(Pae(l))},onMouseLeave:function(){a(null)}},s)}))):null}function Kwe(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,i=e.range,o=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,u=e.onPresetHover,d=e.onPresetSubmit,f=e.onFocus,m=e.onBlur,h=e.onPanelMouseDown,g=e.direction,O=e.value,v=e.onSelect,y=e.isInvalid,S=e.defaultOpenValue,C=e.onOk,_=e.onSubmit,w=p.useContext(yu),T=w.prefixCls,A="".concat(T,"-panel"),k=g==="rtl",I=p.useRef(null),M=p.useRef(null),Q=p.useState(0),F=be(Q,2),L=F[0],U=F[1],R=p.useState(0),$=be(R,2),P=$[0],z=$[1],B=p.useState(0),D=be(B,2),X=D[0],Y=D[1],q=function(He){He.width&&U(He.width)},H=be(l,3),J=H[0],te=H[1],ne=H[2],ie=p.useState(0),le=be(ie,2),ue=le[0],oe=le[1];p.useEffect(function(){oe(10)},[J]),p.useEffect(function(){if(i&&M.current){var et,He=((et=I.current)===null||et===void 0?void 0:et.offsetWidth)||0,pt=M.current.getBoundingClientRect();if(!pt.height||pt.right<0){oe(function(We){return Math.max(0,We-1)});return}var lt=(k?te-He:J)-pt.left;if(Y(lt),L&&L=s&&n<=l)return i;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?bt:xt));var Ot=Mt+St,ft=xt-bt+1;return String(bt+(ft+Ot-bt)%ft)};switch(qe){case"Backspace":case"Delete":Pe="",Ae=Te;break;case"ArrowLeft":Pe="",Ue(-1);break;case"ArrowRight":Pe="",Ue(1);break;case"ArrowUp":Pe="",Ae=rt(1);break;case"ArrowDown":Pe="",Ae=rt(-1);break;default:isNaN(Number(qe))||(Pe=D+qe,Ae=Pe);break}if(Pe!==null&&(X(Pe),Pe.length>=Oe&&(Ue(1),X(""))),Ae!==null){var tt=ue.slice(0,xe)+Fj(Ae,Oe)+ue.slice(we);Ie(tt.slice(0,o.length))}le({})},We=p.useRef();tr(function(){if(!(!F||!o||Le.current)){if(!ve.match(ue)){Ie(o);return}return ge.current.setSelectionRange(xe,we),We.current=ur(function(){ge.current.setSelectionRange(xe,we)}),function(){ur.cancel(We.current)}}},[ve,o,F,ue,H,xe,we,ie,Ie]);var Me=o?{onFocus:He,onBlur:lt,onKeyDown:ut,onMouseDown:Ne,onMouseUp:et,onPaste:De}:{};return p.createElement("div",{ref:oe,className:ce(I,ae(ae({},"".concat(I,"-active"),n&&a),"".concat(I,"-placeholder"),c))},p.createElement(k,Re({ref:ge,"aria-invalid":g,autoComplete:"off"},v,{onKeyDown:it,onBlur:pt},Me,{value:ue,onChange:Ee})),p.createElement(Bk,{type:"suffix",icon:i}),O)}),Tet=["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"],wet=["index"];function Cet(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,i=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,m=e.onClick,h=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var O=e.disabled,v=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var S=e.onActiveInfo;e.placement;var C=e.onMouseDown;e.required,e["aria-required"];var _=e.autoFocus,w=e.tabIndex,T=on(e,Tet),A=y==="rtl",k=p.useContext(yu),I=k.prefixCls,M=p.useMemo(function(){if(typeof n=="string")return[n];var ie=n||{};return[ie.start,ie.end]},[n]),Q=p.useRef(),F=p.useRef(),L=p.useRef(),U=function(le){var ue;return(ue=[F,L][le])===null||ue===void 0?void 0:ue.current};p.useImperativeHandle(t,function(){return{nativeElement:Q.current,focus:function(le){if(Ut(le)==="object"){var ue,oe=le||{},ge=oe.index,ve=ge===void 0?0:ge,he=on(oe,wet);(ue=U(ve))===null||ue===void 0||ue.focus(he)}else{var me;(me=U(le??0))===null||me===void 0||me.focus()}},blur:function(){var le,ue;(le=U(0))===null||le===void 0||le.blur(),(ue=U(1))===null||ue===void 0||ue.blur()}}});var R=eCe(T),$=p.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),P=Jwe(se(se({},e),{},{id:M,placeholder:$})),z=be(P,1),B=z[0],D=p.useState({position:"absolute",width:0}),X=be(D,2),Y=X[0],q=X[1],H=ar(function(){var ie=U(l);if(ie){var le=ie.nativeElement.getBoundingClientRect(),ue=Q.current.getBoundingClientRect(),oe=le.left-ue.left;q(function(ge){return se(se({},ge),{},{width:le.width,left:oe})}),S([le.left,le.right,ue.width])}});p.useEffect(function(){H()},[l]);var J=a&&(g[0]&&!O[0]||g[1]&&!O[1]),te=_&&!O[0],ne=_&&!te&&!O[1];return p.createElement(Eo,{onResize:H},p.createElement("div",Re({},R,{className:ce(I,"".concat(I,"-range"),ae(ae(ae(ae({},"".concat(I,"-focused"),c),"".concat(I,"-disabled"),O.every(function(ie){return ie})),"".concat(I,"-invalid"),v.some(function(ie){return ie})),"".concat(I,"-rtl"),A),d),style:f,ref:Q,onClick:m,onMouseDown:function(le){var ue=le.target;ue!==F.current.inputElement&&ue!==L.current.inputElement&&le.preventDefault(),C==null||C(le)}}),r&&p.createElement("div",{className:"".concat(I,"-prefix")},r),p.createElement(S9,Re({ref:F},B(0),{autoFocus:te,tabIndex:w,"date-range":"start"})),p.createElement("div",{className:"".concat(I,"-range-separator")},s),p.createElement(S9,Re({ref:L},B(1),{autoFocus:ne,tabIndex:w,"date-range":"end"})),p.createElement("div",{className:"".concat(I,"-active-bar"),style:Y}),p.createElement(Bk,{type:"suffix",icon:i}),J&&p.createElement(y9,{icon:a,onClear:h})))}var $et=p.forwardRef(Cet);function Aae(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function uw(e){return e===1?"end":"start"}function Ret(e,t){var n=Qwe(e,function(){var qn=e.disabled,Tt=e.allowEmpty,Ht=Aae(qn,!1),Jn=Aae(Tt,!1);return{disabled:Ht,allowEmpty:Jn}}),r=be(n,6),a=r[0],i=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=a.prefixCls,d=a.styles,f=a.classNames,m=a.defaultValue,h=a.value,g=a.needConfirm,O=a.onKeyDown,v=a.disabled,y=a.allowEmpty,S=a.disabledDate,C=a.minDate,_=a.maxDate,w=a.defaultOpen,T=a.open,A=a.onOpenChange,k=a.locale,I=a.generateConfig,M=a.picker,Q=a.showNow,F=a.showToday,L=a.showTime,U=a.mode,R=a.onPanelChange,$=a.onCalendarChange,P=a.onOk,z=a.defaultPickerValue,B=a.pickerValue,D=a.onPickerValueChange,X=a.inputReadOnly,Y=a.suffixIcon,q=a.onFocus,H=a.onBlur,J=a.presets,te=a.ranges,ne=a.components,ie=a.cellRender,le=a.dateRender,ue=a.monthCellRender,oe=a.onClick,ge=Bwe(t),ve=zwe(T,w,v,A),he=be(ve,2),me=he[0],xe=he[1],we=function(Tt,Ht){(v.some(function(Jn){return!Jn})||!Tt)&&xe(Tt,Ht)},Qe=qwe(I,k,s,!0,!1,m,h,$,P),Ie=be(Qe,5),Ee=Ie[0],De=Ie[1],Le=Ie[2],Ne=Ie[3],et=Ie[4],He=Le(),pt=Uwe(v,y,me),lt=be(pt,9),it=lt[0],ut=lt[1],We=lt[2],Me=lt[3],Ge=lt[4],ze=lt[5],qe=lt[6],Pe=lt[7],Ae=lt[8],Oe=function(Tt,Ht){ut(!0),q==null||q(Tt,{range:uw(Ht??Me)})},Te=function(Tt,Ht){ut(!1),H==null||H(Tt,{range:uw(Ht??Me)})},Ue=p.useMemo(function(){if(!L)return null;var qn=L.disabledTime,Tt=qn?function(Ht){var Jn=uw(Me),kt=Cwe(He,qe,Me);return qn(Ht,Jn,{from:kt})}:void 0;return se(se({},L),{},{disabledTime:Tt})},[L,Me,He,qe]),rt=Ir([M,M],{value:U}),tt=be(rt,2),ot=tt[0],St=tt[1],Xe=ot[Me]||M,je=Xe==="date"&&Ue?"datetime":Xe,bt=je===M&&je!=="time",xt=Gwe(M,Xe,Q,F,!0),vt=Wwe(a,Ee,De,Le,Ne,v,s,it,me,c),Nt=be(vt,2),Mt=Nt[0],Ot=Nt[1],ft=ZJe(He,v,qe,I,k,S),st=Rwe(He,c,y),Et=be(st,2),Jt=Et[0],en=Et[1],Rn=jwe(I,k,He,ot,me,Me,i,bt,z,B,Ue==null?void 0:Ue.defaultOpenValue,D,C,_),jt=be(Rn,2),wt=jt[0],an=jt[1],$n=ar(function(qn,Tt,Ht){var Jn=xS(ot,Me,Tt);if((Jn[0]!==ot[0]||Jn[1]!==ot[1])&&St(Jn),R&&Ht!==!1){var kt=Ke(He);qn&&(kt[Me]=qn),R(kt,Jn)}}),Gn=function(Tt,Ht){return xS(He,Ht,Tt)},Xn=function(Tt,Ht){var Jn=He;Tt&&(Jn=Gn(Tt,Me)),Pe(Me);var kt=ze(Jn);Ne(Jn),Mt(Me,kt===null),kt===null?we(!1,{force:!0}):Ht||ge.current.focus({index:kt})},gr=function(Tt){var Ht,Jn=Tt.target.getRootNode();if(!ge.current.nativeElement.contains((Ht=Jn.activeElement)!==null&&Ht!==void 0?Ht:document.activeElement)){var kt=v.findIndex(function(ln){return!ln});kt>=0&&ge.current.focus({index:kt})}we(!0),oe==null||oe(Tt)},Fn=function(){Ot(null),we(!1,{force:!0})},Bt=p.useState(null),Se=be(Bt,2),Fe=Se[0],mt=Se[1],yt=p.useState(null),Qt=be(yt,2),$t=Qt[0],sn=Qt[1],Cn=p.useMemo(function(){return $t||He},[He,$t]);p.useEffect(function(){me||sn(null)},[me]);var It=p.useState([0,0,0]),Ze=be(It,2),dt=Ze[0],hn=Ze[1],Vn=Fwe(J,te),rr=function(Tt){sn(Tt),mt("preset")},ca=function(Tt){var Ht=Ot(Tt);Ht&&we(!1,{force:!0})},Wr=function(Tt){Xn(Tt)},na=function(Tt){sn(Tt?Gn(Tt,Me):null),mt("cell")},Gr=function(Tt){we(!0),Oe(Tt)},ra=function(){We("panel")},Ra=function(Tt){var Ht=xS(He,Me,Tt);Ne(Ht),!g&&!o&&i===je&&Xn(Tt)},xr=function(){we(!1)},pn=Uj(ie,le,ue,uw(Me)),cn=He[Me]||null,fr=ar(function(qn){return c(qn,{activeIndex:Me})}),rn=p.useMemo(function(){var qn=bi(a,!1),Tt=ga(a,[].concat(Ke(Object.keys(qn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Tt},[a]),Zt=p.createElement(Kwe,Re({},rn,{showNow:xt,showTime:Ue,range:!0,multiplePanel:bt,activeInfo:dt,disabledDate:ft,onFocus:Gr,onBlur:Te,onPanelMouseDown:ra,picker:M,mode:Xe,internalMode:je,onPanelChange:$n,format:l,value:cn,isInvalid:fr,onChange:null,onSelect:Ra,pickerValue:wt,defaultOpenValue:bg(L==null?void 0:L.defaultOpenValue)[Me],onPickerValueChange:an,hoverValue:Cn,onHover:na,needConfirm:g,onSubmit:Xn,onOk:et,presets:Vn,onPresetHover:rr,onPresetSubmit:ca,onNow:Wr,cellRender:pn})),or=function(Tt,Ht){var Jn=Gn(Tt,Ht);Ne(Jn)},Hr=function(){We("input")},Sn=function(Tt,Ht){var Jn=qe.length,kt=qe[Jn-1];if(Jn&&kt!==Ht&&g&&!y[kt]&&!Ae(kt)&&He[kt]){ge.current.focus({index:kt});return}We("input"),we(!0,{inherit:!0}),Me!==Ht&&me&&!g&&o&&Xn(null,!0),Ge(Ht),Oe(Tt,Ht)},Kn=function(Tt,Ht){if(we(!1),!g&&We()==="input"){var Jn=ze(He);Mt(Me,Jn===null)}Te(Tt,Ht)},Ar=function(Tt,Ht){Tt.key==="Tab"&&Xn(null,!0),O==null||O(Tt,Ht)},Tr=p.useMemo(function(){return{prefixCls:u,locale:k,generateConfig:I,button:ne.button,input:ne.input}},[u,k,I,ne.button,ne.input]);return tr(function(){me&&Me!==void 0&&$n(null,M,!1)},[me,Me,M]),tr(function(){var qn=We();!me&&qn==="input"&&(we(!1),Xn(null,!0)),!me&&o&&!g&&qn==="panel"&&(we(!0),Xn())},[me]),p.createElement(yu.Provider,{value:Tr},p.createElement(Twe,Re({},$we(a),{popupElement:Zt,popupStyle:d.popup,popupClassName:f.popup,visible:me,onClose:xr,range:!0}),p.createElement($et,Re({},a,{ref:ge,suffixIcon:Y,activeIndex:it||me?Me:null,activeHelp:!!$t,allHelp:!!$t&&Fe==="preset",focused:it,onFocus:Sn,onBlur:Kn,onKeyDown:Ar,onSubmit:Xn,value:Cn,maskFormat:l,onChange:or,onInputChange:Hr,format:s,inputReadOnly:X,disabled:v,open:me,onOpenChange:we,onClick:gr,onClear:Fn,invalid:Jt,onInvalid:en,onActiveInfo:hn}))))}var Pet=p.forwardRef(Ret);function ket(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,i=a===void 0?"×":a,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),d="".concat(t,"-selection"),f="".concat(d,"-overflow");function m(O,v){return p.createElement("span",{className:ce("".concat(d,"-item")),title:typeof O=="string"?O:null},p.createElement("span",{className:"".concat(d,"-item-content")},O),!s&&v&&p.createElement("span",{onMouseDown:function(S){S.preventDefault()},onClick:v,className:"".concat(d,"-item-remove")},i))}function h(O){var v=o(O),y=function(C){C&&C.stopPropagation(),r(O)};return m(v,y)}function g(O){var v="+ ".concat(O.length," ...");return m(v)}return p.createElement("div",{className:u},p.createElement(cu,{prefixCls:f,data:n,renderItem:h,renderRest:g,itemKey:function(v){return o(v)},maxCount:l}),!n.length&&p.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var Aet=["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 Net(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,i=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,f=e.onClick,m=e.onClear,h=e.internalPicker,g=e.value,O=e.onChange,v=e.onSubmit;e.onInputChange;var y=e.multiple,S=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var C=e.disabled,_=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var T=e.onMouseDown;e.required,e["aria-required"];var A=e.autoFocus,k=e.tabIndex,I=e.removeIcon,M=on(e,Aet),Q=w==="rtl",F=p.useContext(yu),L=F.prefixCls,U=p.useRef(),R=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:U.current,focus:function(te){var ne;(ne=R.current)===null||ne===void 0||ne.focus(te)},blur:function(){var te;(te=R.current)===null||te===void 0||te.blur()}}});var $=eCe(M),P=function(te){O([te])},z=function(te){var ne=g.filter(function(ie){return ie&&!as(l,s,ie,te,h)});O(ne),n||v()},B=Jwe(se(se({},e),{},{onChange:P}),function(J){var te=J.valueTexts;return{value:te[0]||"",active:o}}),D=be(B,2),X=D[0],Y=D[1],q=!!(a&&g.length&&!C),H=y?p.createElement(p.Fragment,null,p.createElement(ket,{prefixCls:L,value:g,onRemove:z,formatDate:Y,maxTagCount:S,disabled:C,removeIcon:I,placeholder:c}),p.createElement("input",{className:"".concat(L,"-multiple-input"),value:g.map(Y).join(","),ref:R,readOnly:!0,autoFocus:A,tabIndex:k}),p.createElement(Bk,{type:"suffix",icon:i}),q&&p.createElement(y9,{icon:a,onClear:m})):p.createElement(S9,Re({ref:R},X(),{autoFocus:A,tabIndex:k,suffixIcon:i,clearIcon:q&&p.createElement(y9,{icon:a,onClear:m}),showActiveCls:!1}));return p.createElement("div",Re({},$,{className:ce(L,ae(ae(ae(ae(ae({},"".concat(L,"-multiple"),y),"".concat(L,"-focused"),o),"".concat(L,"-disabled"),C),"".concat(L,"-invalid"),_),"".concat(L,"-rtl"),Q),u),style:d,ref:U,onClick:f,onMouseDown:function(te){var ne,ie=te.target;ie!==((ne=R.current)===null||ne===void 0?void 0:ne.inputElement)&&te.preventDefault(),T==null||T(te)}}),r&&p.createElement("div",{className:"".concat(L,"-prefix")},r),H)}var Iet=p.forwardRef(Net);function Met(e,t){var n=Qwe(e),r=be(n,6),a=r[0],i=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=a,d=u.prefixCls,f=u.styles,m=u.classNames,h=u.order,g=u.defaultValue,O=u.value,v=u.needConfirm,y=u.onChange,S=u.onKeyDown,C=u.disabled,_=u.disabledDate,w=u.minDate,T=u.maxDate,A=u.defaultOpen,k=u.open,I=u.onOpenChange,M=u.locale,Q=u.generateConfig,F=u.picker,L=u.showNow,U=u.showToday,R=u.showTime,$=u.mode,P=u.onPanelChange,z=u.onCalendarChange,B=u.onOk,D=u.multiple,X=u.defaultPickerValue,Y=u.pickerValue,q=u.onPickerValueChange,H=u.inputReadOnly,J=u.suffixIcon,te=u.removeIcon,ne=u.onFocus,ie=u.onBlur,le=u.presets,ue=u.components,oe=u.cellRender,ge=u.dateRender,ve=u.monthCellRender,he=u.onClick,me=Bwe(t);function xe(rn){return rn===null?null:D?rn:rn[0]}var we=Hwe(Q,M,i),Qe=zwe(k,A,[C],I),Ie=be(Qe,2),Ee=Ie[0],De=Ie[1],Le=function(Zt,or,Hr){if(z){var Sn=se({},Hr);delete Sn.range,z(xe(Zt),xe(or),Sn)}},Ne=function(Zt){B==null||B(xe(Zt))},et=qwe(Q,M,s,!1,h,g,O,Le,Ne),He=be(et,5),pt=He[0],lt=He[1],it=He[2],ut=He[3],We=He[4],Me=it(),Ge=Uwe([C]),ze=be(Ge,4),qe=ze[0],Pe=ze[1],Ae=ze[2],Oe=ze[3],Te=function(Zt){Pe(!0),ne==null||ne(Zt,{})},Ue=function(Zt){Pe(!1),ie==null||ie(Zt,{})},rt=Ir(F,{value:$}),tt=be(rt,2),ot=tt[0],St=tt[1],Xe=ot==="date"&&R?"datetime":ot,je=Gwe(F,ot,L,U),bt=y&&function(rn,Zt){y(xe(rn),xe(Zt))},xt=Wwe(se(se({},a),{},{onChange:bt}),pt,lt,it,ut,[],s,qe,Ee,c),vt=be(xt,2),Nt=vt[1],Mt=Rwe(Me,c),Ot=be(Mt,2),ft=Ot[0],st=Ot[1],Et=p.useMemo(function(){return ft.some(function(rn){return rn})},[ft]),Jt=function(Zt,or){if(q){var Hr=se(se({},or),{},{mode:or.mode[0]});delete Hr.range,q(Zt[0],Hr)}},en=jwe(Q,M,Me,[ot],Ee,Oe,i,!1,X,Y,bg(R==null?void 0:R.defaultOpenValue),Jt,w,T),Rn=be(en,2),jt=Rn[0],wt=Rn[1],an=ar(function(rn,Zt,or){if(St(Zt),P&&or!==!1){var Hr=rn||Me[Me.length-1];P(Hr,Zt)}}),$n=function(){Nt(it()),De(!1,{force:!0})},Gn=function(Zt){!C&&!me.current.nativeElement.contains(document.activeElement)&&me.current.focus(),De(!0),he==null||he(Zt)},Xn=function(){Nt(null),De(!1,{force:!0})},gr=p.useState(null),Fn=be(gr,2),Bt=Fn[0],Se=Fn[1],Fe=p.useState(null),mt=be(Fe,2),yt=mt[0],Qt=mt[1],$t=p.useMemo(function(){var rn=[yt].concat(Ke(Me)).filter(function(Zt){return Zt});return D?rn:rn.slice(0,1)},[Me,yt,D]),sn=p.useMemo(function(){return!D&&yt?[yt]:Me.filter(function(rn){return rn})},[Me,yt,D]);p.useEffect(function(){Ee||Qt(null)},[Ee]);var Cn=Fwe(le),It=function(Zt){Qt(Zt),Se("preset")},Ze=function(Zt){var or=D?we(it(),Zt):[Zt],Hr=Nt(or);Hr&&!D&&De(!1,{force:!0})},dt=function(Zt){Ze(Zt)},hn=function(Zt){Qt(Zt),Se("cell")},Vn=function(Zt){De(!0),Te(Zt)},rr=function(Zt){if(Ae("panel"),!(D&&Xe!==F)){var or=D?we(it(),Zt):[Zt];ut(or),!v&&!o&&i===Xe&&$n()}},ca=function(){De(!1)},Wr=Uj(oe,ge,ve),na=p.useMemo(function(){var rn=bi(a,!1),Zt=ga(a,[].concat(Ke(Object.keys(rn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return se(se({},Zt),{},{multiple:a.multiple})},[a]),Gr=p.createElement(Kwe,Re({},na,{showNow:je,showTime:R,disabledDate:_,onFocus:Vn,onBlur:Ue,picker:F,mode:ot,internalMode:Xe,onPanelChange:an,format:l,value:Me,isInvalid:c,onChange:null,onSelect:rr,pickerValue:jt,defaultOpenValue:R==null?void 0:R.defaultOpenValue,onPickerValueChange:wt,hoverValue:$t,onHover:hn,needConfirm:v,onSubmit:$n,onOk:We,presets:Cn,onPresetHover:It,onPresetSubmit:Ze,onNow:dt,cellRender:Wr})),ra=function(Zt){ut(Zt)},Ra=function(){Ae("input")},xr=function(Zt){Ae("input"),De(!0,{inherit:!0}),Te(Zt)},pn=function(Zt){De(!1),Ue(Zt)},cn=function(Zt,or){Zt.key==="Tab"&&$n(),S==null||S(Zt,or)},fr=p.useMemo(function(){return{prefixCls:d,locale:M,generateConfig:Q,button:ue.button,input:ue.input}},[d,M,Q,ue.button,ue.input]);return tr(function(){Ee&&Oe!==void 0&&an(null,F,!1)},[Ee,Oe,F]),tr(function(){var rn=Ae();!Ee&&rn==="input"&&(De(!1),$n()),!Ee&&o&&!v&&rn==="panel"&&$n()},[Ee]),p.createElement(yu.Provider,{value:fr},p.createElement(Twe,Re({},$we(a),{popupElement:Gr,popupStyle:f.popup,popupClassName:m.popup,visible:Ee,onClose:ca}),p.createElement(Iet,Re({},a,{ref:me,suffixIcon:J,removeIcon:te,activeHelp:!!yt,allHelp:!!yt&&Bt==="preset",focused:qe,onFocus:xr,onBlur:pn,onKeyDown:cn,onSubmit:$n,value:sn,maskFormat:l,onChange:ra,onInputChange:Ra,internalPicker:i,format:s,inputReadOnly:H,disabled:C,open:Ee,onOpenChange:De,onClick:Gn,onClear:Xn,invalid:Et,onInvalid:function(Zt){st(Zt,0)}}))))}var Det=p.forwardRef(Met);const tCe=p.createContext(null),Let=tCe.Provider,nCe=p.createContext(null),Qet=nCe.Provider;var zet=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],rCe=p.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,i=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,f=e.title,m=e.onChange,h=on(e,zet),g=p.useRef(null),O=p.useRef(null),v=Ir(c,{value:o}),y=be(v,2),S=y[0],C=y[1];p.useImperativeHandle(t,function(){return{focus:function(A){var k;(k=g.current)===null||k===void 0||k.focus(A)},blur:function(){var A;(A=g.current)===null||A===void 0||A.blur()},input:g.current,nativeElement:O.current}});var _=ce(r,a,ae(ae({},"".concat(r,"-checked"),S),"".concat(r,"-disabled"),s)),w=function(A){s||("checked"in e||C(A.target.checked),m==null||m({target:se(se({},e),{},{type:d,checked:A.target.checked}),stopPropagation:function(){A.stopPropagation()},preventDefault:function(){A.preventDefault()},nativeEvent:A.nativeEvent}))};return p.createElement("span",{className:_,title:f,style:i,ref:O},p.createElement("input",Re({},h,{className:"".concat(r,"-input"),ref:g,onChange:w,disabled:s,checked:!!S,type:d})),p.createElement("span",{className:"".concat(r,"-inner")}))});function aCe(e){const t=Z.useRef(null),n=()=>{ur.cancel(t.current),t.current=null};return[()=>{n(),t.current=ur(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const Bet=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},zr(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"}})}},Fet=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:i,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:m,dotColorDisabled:h,lineType:g,radioColor:O,radioBgColor:v,calc:y}=e,S=`${t}-inner`,_=y(a).sub(y(4).mul(2)),w=y(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},zr(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:`${de(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},zr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${S}`]:{borderColor:r},[`${t}-input:focus-visible + ${S}`]:wc(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:w,height:w,marginBlockStart:y(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:O,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${y(_).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},Uet=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:i,colorBorder:o,motionDurationMid:s,buttonPaddingInline:l,fontSize:c,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:m,paddingXS:h,borderRadius:g,borderRadiusSM:O,borderRadiusLG:v,buttonCheckedBg:y,buttonSolidCheckedColor:S,colorTextDisabled:C,colorBgContainerDisabled:_,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:T,colorPrimary:A,colorPrimaryHover:k,colorPrimaryActive:I,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:Q,buttonSolidCheckedActiveBg:F,calc:L}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:c,lineHeight:de(L(n).sub(L(a).mul(2)).equal()),background:u,border:`${de(a)} ${i} ${o}`,borderBlockStartWidth:L(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:L(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${de(a)} ${i} ${o}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:de(L(f).sub(L(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:m,paddingInline:L(h).sub(a).equal(),paddingBlock:0,lineHeight:de(L(m).sub(L(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:O,borderEndStartRadius:O},"&:last-child":{borderStartEndRadius:O,borderEndEndRadius:O}},"&:hover":{position:"relative",color:A},"&:has(:focus-visible)":wc(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:A,background:y,borderColor:A,"&::before":{backgroundColor:A},"&:first-child":{borderColor:A},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:M,borderColor:M,"&:hover":{color:S,background:Q,borderColor:Q},"&:active":{color:S,background:F,borderColor:F}},"&-disabled":{color:C,backgroundColor:_,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:_,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:w,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},jet=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:i,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:m,colorWhite:h}=e,g=4,O=i,v=t?O-g*2:O-(g+a)*2;return{radioSize:O,dotSize:v,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:m,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?s:d}},iCe=Er("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${de(n)} ${t}`,i=nr(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Bet(i),Fet(i),Uet(i)]},jet,{unitless:{radioSize:!0,dotSize:!0}});var Xet=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=p.useContext(tCe),i=p.useContext(nCe),{getPrefixCls:o,direction:s,radio:l}=p.useContext(fn),c=p.useRef(null),u=Ci(t,c),{isFormItemInput:d}=p.useContext(oo),f=R=>{var $,P;($=e.onChange)===null||$===void 0||$.call(e,R),(P=a==null?void 0:a.onChange)===null||P===void 0||P.call(a,R)},{prefixCls:m,className:h,rootClassName:g,children:O,style:v,title:y}=e,S=Xet(e,["prefixCls","className","rootClassName","children","style","title"]),C=o("radio",m),_=((a==null?void 0:a.optionType)||i)==="button",w=_?`${C}-button`:C,T=Fa(C),[A,k,I]=iCe(C,T),M=Object.assign({},S),Q=p.useContext(Xo);a&&(M.name=a.name,M.onChange=f,M.checked=e.value===a.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:a.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:Q;const F=ce(`${w}-wrapper`,{[`${w}-wrapper-checked`]:M.checked,[`${w}-wrapper-disabled`]:M.disabled,[`${w}-wrapper-rtl`]:s==="rtl",[`${w}-wrapper-in-form-item`]:d,[`${w}-wrapper-block`]:!!(a!=null&&a.block)},l==null?void 0:l.className,h,g,k,I,T),[L,U]=aCe(M.onClick);return A(p.createElement(BE,{component:"Radio",disabled:M.disabled},p.createElement("label",{className:F,style:Object.assign(Object.assign({},l==null?void 0:l.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:L},p.createElement(rCe,Object.assign({},M,{className:ce(M.className,{[lk]:!_}),type:"radio",prefixCls:w,ref:u,onClick:U})),O!==void 0?p.createElement("span",{className:`${w}-label`},O):null)))},L$=p.forwardRef(Yet),Vet=["parentNode"],qet="form_item";function TS(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function oCe(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Vet.includes(n)?`${qet}_${n}`:n}function sCe(e,t,n,r,a,i){let o=r;return i!==void 0?o=i:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||a&&n.validated)&&(o="success"),o}var Wet=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=>i=>{const o=_9(a);i?n.current[o]=i:delete n.current[o]}},scrollToField:(a,i={})=>{const{focus:o}=i,s=Wet(i,["focus"]),l=Nae(a,r);l&&(lXe(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),o&&r.focusField(a))},focusField:a=>{var i,o;const s=r.getFieldInstance(a);typeof(s==null?void 0:s.focus)=="function"?s.focus():(o=(i=Nae(a,r))===null||i===void 0?void 0:i.focus)===null||o===void 0||o.call(i)},getFieldInstance:a=>{const i=_9(a);return n.current[i]}}),[e,t]);return[r]}const Get=p.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=p.useContext(fn),{name:a}=p.useContext(oo),i=$b(_9(a)),{prefixCls:o,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:d,children:f,size:m,style:h,id:g,optionType:O,name:v=i,defaultValue:y,value:S,block:C=!1,onChange:_,onMouseEnter:w,onMouseLeave:T,onFocus:A,onBlur:k}=e,[I,M]=Ir(y,{value:S}),Q=p.useCallback(Y=>{const q=I,H=Y.target.value;"value"in e||M(H),H!==q&&(_==null||_(Y))},[I,M,_]),F=n("radio",o),L=`${F}-group`,U=Fa(F),[R,$,P]=iCe(F,U);let z=f;c&&c.length>0&&(z=c.map(Y=>typeof Y=="string"||typeof Y=="number"?p.createElement(L$,{key:Y.toString(),prefixCls:F,disabled:d,value:Y,checked:I===Y},Y):p.createElement(L$,{key:`radio-group-value-options-${Y.value}`,prefixCls:F,disabled:Y.disabled||d,value:Y.value,checked:I===Y.value,title:Y.title,style:Y.style,className:Y.className,id:Y.id,required:Y.required},Y.label)));const B=Yi(m),D=ce(L,`${L}-${u}`,{[`${L}-${B}`]:B,[`${L}-rtl`]:r==="rtl",[`${L}-block`]:C},s,l,$,P,U),X=p.useMemo(()=>({onChange:Q,value:I,disabled:d,name:v,optionType:O,block:C}),[Q,I,d,v,O,C]);return R(p.createElement("div",Object.assign({},bi(e,{aria:!0,data:!0}),{className:D,style:h,onMouseEnter:w,onMouseLeave:T,onFocus:A,onBlur:k,id:g,ref:t}),p.createElement(Let,{value:X},z)))}),Het=p.memo(Get);var Zet=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}=p.useContext(fn),{prefixCls:r}=e,a=Zet(e,["prefixCls"]),i=n("radio",r);return p.createElement(Qet,{value:"button"},p.createElement(L$,Object.assign({prefixCls:i},a,{type:"radio",ref:t})))},Jet=p.forwardRef(Ket),Jc=L$;Jc.Button=Jet;Jc.Group=Het;Jc.__ANT_RADIO=!0;function yg(e){return nr(e,{inputAffixPadding:e.paddingXXS})}const Sg=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:i,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:g,controlOutline:O,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:S,inputFontSize:C,inputFontSizeLG:_,inputFontSizeSM:w}=e,T=C||n,A=w||T,k=_||s,I=Math.round((t-T*r)/2*10)/10-a,M=Math.round((i-A*r)/2*10)/10-a,Q=Math.ceil((o-k*l)/2*10)/10-a;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(M,0),paddingBlockLG:Math.max(Q,0),paddingInline:c-a,paddingInlineSM:u-a,paddingInlineLG:d-a,addonBg:f,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${g}px ${O}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:S,activeBg:S,inputFontSize:T,inputFontSizeLG:k,inputFontSizeSM:A}},ett=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Fk=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({},ett(nr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),qj=(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}}),Iae=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},qj(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Wj=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},qj(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Fk(e))}),Iae(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Iae(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Mae=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),cCe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Mae(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Mae(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Fk(e))}})}),Gj=(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)}},uCe=(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}}},Dae=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},uCe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Hj=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uCe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Fk(e))}),Dae(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Dae(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Lae=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),dCe=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Lae(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Lae(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:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),fCe=(e,t)=>({background:e.colorBgContainer,borderWidth:`${de(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}}),Qae=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},fCe(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`}}),Zj=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fCe(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"}}),Qae(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Qae(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Kj=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),pCe=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${de(t)} ${de(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Jj=e=>({padding:`${de(e.paddingBlockSM)} ${de(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ZE=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${de(e.paddingBlock)} ${de(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Kj(e.colorTextPlaceholder)),{"&-lg":Object.assign({},pCe(e)),"&-sm":Object.assign({},Jj(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),mCe=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({},pCe(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Jj(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 ${de(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${de(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${de(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:`${de(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${de(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"},dd()),{[`${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},[` + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Ck}}},tX(e,g,{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({},Qr(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ul(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${de(c)} ${de(h)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,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 ${l}`,"&: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:`${de(c)} ${de(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ul(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${de(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:m,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${de(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:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[bd(e,"slide-up"),bd(e,"slide-down"),G0(e,"move-up"),G0(e,"move-down"),kb(e,"zoom-big")]]},MJe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Uk({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Fk(e)),DJe=Er("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,i=nr(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[IJe(i),NJe(i)]},MJe,{resetStyle:!1}),qk=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:i,trigger:o,disabled:s,dropdownRender:l,popupRender:c,getPopupContainer:u,overlayClassName:d,rootClassName:f,overlayStyle:m,open:h,onOpenChange:g,visible:O,onVisibleChange:v,mouseEnterDelay:y=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:C=!0,placement:_="",overlay:w,transitionName:T,destroyOnHidden:k,destroyPopupOnHide:A}=e,{getPopupContainer:I,getPrefixCls:M,direction:Q,dropdown:B}=p.useContext(pn),D=c||l;$d();const U=p.useMemo(()=>{const Te=M();return T!==void 0?T:_.includes("top")?`${Te}-slide-down`:`${Te}-slide-up`},[M,_,T]),R=p.useMemo(()=>_?_.includes("Center")?_.slice(0,_.indexOf("Center")):_:Q==="rtl"?"bottomRight":"bottomLeft",[_,Q]),$=M("dropdown",a),P=Ua($),[z,F,L]=DJe($,P),[,X]=co(),Y=p.Children.only(PKe(i)?p.createElement("span",null,i):i),q=To(Y,{className:le(`${$}-trigger`,{[`${$}-rtl`]:Q==="rtl"},Y.props.className),disabled:(t=Y.props.disabled)!==null&&t!==void 0?t:s}),G=s?[]:o,ee=!!(G!=null&&G.includes("contextMenu")),[K,ne]=Ir(!1,{value:h??O}),ie=ar(Te=>{g==null||g(Te,{source:"trigger"}),v==null||v(Te),ne(Te)}),se=le(d,f,F,L,P,B==null?void 0:B.className,{[`${$}-rtl`]:Q==="rtl"}),ue=Ewe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:C,offset:X.marginXXS,arrowWidth:r?X.sizePopupArrow:0,borderRadius:X.borderRadius}),ce=ar(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(g==null||g(!1,{source:"menu"}),ne(!1))}),be=()=>{let Te;return n!=null&&n.items?Te=p.createElement(Tg,Object.assign({},n)):typeof w=="function"?Te=w():Te=w,D&&(Te=D(Te)),Te=p.Children.only(typeof Te=="string"?p.createElement("span",null,Te):Te),p.createElement(Gwe,{prefixCls:`${$}-menu`,rootClassName:le(L,P),expandIcon:p.createElement("span",{className:`${$}-menu-submenu-arrow`},Q==="rtl"?p.createElement(Gp,{className:`${$}-menu-submenu-arrow-icon`}):p.createElement(qp,{className:`${$}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ce,validator:({mode:Ce})=>{}},Te)},[ge,Oe]=Rd("Dropdown",m==null?void 0:m.zIndex);let me=p.createElement(Rwe,Object.assign({alignPoint:ee},Oa(e,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:S,visible:K,builtinPlacements:ue,arrow:!!r,overlayClassName:se,prefixCls:$,getPopupContainer:u||I,transitionName:U,trigger:G,overlay:be,placement:R,onVisibleChange:ie,overlayStyle:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),m),{zIndex:ge}),autoDestroy:k??A}),q);return ge&&(me=p.createElement(XE.Provider,{value:Oe},me)),z(me)},LJe=ZE(qk,"align",void 0,"dropdown",e=>e),QJe=e=>p.createElement(LJe,Object.assign({},e),p.createElement("span",null));qk._InternalPanelDoNotUseOrYouWillBeFired=QJe;var x2={exports:{}},zJe=x2.exports,Vae;function BJe(){return Vae||(Vae=1,(function(e,t){(function(n,r){e.exports=r()})(zJe,(function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",c="day",u="week",d="month",f="quarter",m="year",h="date",g="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={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(D){var U=["th","st","nd","rd"],R=D%100;return"["+D+(U[(R-20)%10]||U[R]||U[0])+"]"}},S=function(D,U,R){var $=String(D);return!$||$.length>=U?D:""+Array(U+1-$.length).join(R)+D},C={s:S,z:function(D){var U=-D.utcOffset(),R=Math.abs(U),$=Math.floor(R/60),P=R%60;return(U<=0?"+":"-")+S($,2,"0")+":"+S(P,2,"0")},m:function D(U,R){if(U.date()1)return D(F[0])}else{var L=U.name;w[L]=U,P=L}return!$&&P&&(_=P),P||!$&&_},I=function(D,U){if(k(D))return D.clone();var R=typeof U=="object"?U:{};return R.date=D,R.args=arguments,new Q(R)},M=C;M.l=A,M.i=k,M.w=function(D,U){return I(D,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var Q=(function(){function D(R){this.$L=A(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[T]=!0}var U=D.prototype;return U.parse=function(R){this.$d=(function($){var P=$.date,z=$.utc;if(P===null)return new Date(NaN);if(M.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var F=P.match(O);if(F){var L=F[2]-1||0,X=(F[7]||"0").substring(0,3);return z?new Date(Date.UTC(F[1],L,F[3]||1,F[4]||0,F[5]||0,F[6]||0,X)):new Date(F[1],L,F[3]||1,F[4]||0,F[5]||0,F[6]||0,X)}}return new Date(P)})(R),this.init()},U.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},U.$utils=function(){return M},U.isValid=function(){return this.$d.toString()!==g},U.isSame=function(R,$){var P=I(R);return this.startOf($)<=P&&P<=this.endOf($)},U.isAfter=function(R,$){return I(R)25){var u=o(this).startOf(r).add(1,r).date(c),d=o(this).endOf(n);if(u.isBefore(d))return 1}var f=o(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),m=this.diff(f,n,!0);return m<0?o(this).startOf("week").week():Math.ceil(m)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(C2)),C2.exports}var KJe=ZJe();const JJe=Ii(KJe);var $2={exports:{}},eet=$2.exports,Hae;function tet(){return Hae||(Hae=1,(function(e,t){(function(n,r){e.exports=r()})(eet,(function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}}))})($2)),$2.exports}var net=tet();const ret=Ii(net);var R2={exports:{}},aet=R2.exports,Zae;function iet(){return Zae||(Zae=1,(function(e,t){(function(n,r){e.exports=r()})(aet,(function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var c=this.$utils(),u=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}}));return i.bind(this)(u)}}}))})(R2)),R2.exports}var oet=iet();const set=Ii(oet);var P2={exports:{}},cet=P2.exports,Kae;function uet(){return Kae||(Kae=1,(function(e,t){(function(n,r){e.exports=r()})(cet,(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/,i=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(O){return(O=+O)+(O>68?1900:2e3)},u=function(O){return function(v){this[O]=+v}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(O){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var y=v.match(/([+-]|\d\d)/g),S=60*y[1]+(+y[2]||0);return S===0?0:y[0]==="+"?-S:S})(O)}],f=function(O){var v=l[O];return v&&(v.indexOf?v:v.s.concat(v.f))},m=function(O,v){var y,S=l.meridiem;if(S){for(var C=1;C<=24;C+=1)if(O.indexOf(S(C,0,v))>-1){y=C>12;break}}else y=O===(v?"pm":"PM");return y},h={A:[s,function(O){this.afternoon=m(O,!1)}],a:[s,function(O){this.afternoon=m(O,!0)}],Q:[a,function(O){this.month=3*(O-1)+1}],S:[a,function(O){this.milliseconds=100*+O}],SS:[i,function(O){this.milliseconds=10*+O}],SSS:[/\d{3}/,function(O){this.milliseconds=+O}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[i,u("day")],Do:[s,function(O){var v=l.ordinal,y=O.match(/\d+/);if(this.day=y[0],v)for(var S=1;S<=31;S+=1)v(S).replace(/\[|\]/g,"")===O&&(this.day=S)}],w:[o,u("week")],ww:[i,u("week")],M:[o,u("month")],MM:[i,u("month")],MMM:[s,function(O){var v=f("months"),y=(f("monthsShort")||v.map((function(S){return S.slice(0,3)}))).indexOf(O)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(O){var v=f("months").indexOf(O)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(O){this.year=c(O)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(O){var v,y;v=O,y=l&&l.formats;for(var S=(O=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,M,Q){var B=Q&&Q.toUpperCase();return M||y[Q]||n[Q]||y[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(D,U,R){return U||R.slice(1)}))}))).match(r),C=S.length,_=0;_-1)return new Date((P==="X"?1e3:1)*$);var L=g(P)($),X=L.year,Y=L.month,q=L.day,G=L.hours,ee=L.minutes,K=L.seconds,ne=L.milliseconds,ie=L.zone,se=L.week,ue=new Date,ce=q||(X||Y?1:ue.getDate()),be=X||ue.getFullYear(),ge=0;X&&!Y||(ge=Y>0?Y-1:ue.getMonth());var Oe,me=G||0,Te=ee||0,Ce=K||0,Fe=ne||0;return ie?new Date(Date.UTC(be,ge,ce,me,Te,Ce,Fe+60*ie.offset*1e3)):z?new Date(Date.UTC(be,ge,ce,me,Te,Ce,Fe)):(Oe=new Date(be,ge,ce,me,Te,Ce,Fe),se&&(Oe=F(Oe).week(se).toDate()),Oe)}catch{return new Date("")}})(w,A,T,y),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),Q&&w!=this.format(A)&&(this.$d=new Date("")),l={}}else if(A instanceof Array)for(var D=A.length,U=1;U<=D;U+=1){k[1]=A[U-1];var R=y.apply(this,k);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}U===D&&(this.$d=new Date(""))}else C.call(this,_)}}}))})(P2)),P2.exports}var det=uet();const Zwe=Ii(det);Ti.extend(Zwe);Ti.extend(set);Ti.extend(YJe);Ti.extend(GJe);Ti.extend(JJe);Ti.extend(ret);Ti.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(i){var o=(i||"").replace("Wo","wo");return r.bind(this)(o)}});var fet={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"},Xm=function(t){var n=fet[t];return n||t.split("_")[0]},pet={getNow:function(){var t=Ti();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Ti(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 Ti().locale(Xm(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Xm(t)).weekday(0)},getWeek:function(t,n){return n.locale(Xm(t)).week()},getShortWeekDays:function(t){return Ti().locale(Xm(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Ti().locale(Xm(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Xm(t)).format(r)},parse:function(t,n,r){for(var a=Xm(t),i=0;i2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=p.useState([!1,!1]),a=ye(r,2),i=a[0],o=a[1],s=function(u,d){o(function(f){return PS(f,d,u)})},l=p.useMemo(function(){return i.map(function(c,u){if(c)return!0;var d=e[u];return d?!!(!n[u]&&!d||d&&t(d,{activeIndex:u})):!1})},[e,i,t,n]);return[l,s]}function rCe(e,t,n,r,a){var i="",o=[];return e&&o.push(a?"hh":"HH"),t&&o.push("mm"),n&&o.push("ss"),i=o.join(":"),r&&(i+=".SSS"),a&&(i+=" A"),i}function get(e,t,n,r,a,i){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,f=e.fieldQuarterFormat,m=e.yearFormat,h=e.cellYearFormat,g=e.cellQuarterFormat,O=e.dayFormat,v=e.cellDateFormat,y=rCe(t,n,r,a,i);return oe(oe({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:v||O||"D"})}function aCe(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,i=t.showMillisecond,o=t.use12Hours;return Z.useMemo(function(){return get(e,n,r,a,i,o)},[e,n,r,a,i,o])}function ey(e,t,n){return n??t.some(function(r){return e.includes(r)})}var Oet=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function bet(e){var t=Wk(e,Oet),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=Xt(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function vet(e){return e&&typeof e=="string"}function iCe(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function oCe(e,t,n,r,a){var i=t,o=n,s=r;if(!e&&!i&&!o&&!s&&!a)i=!0,o=!0,s=!0;else if(e){var l,c,u,d=[i,o,s].some(function(h){return h===!1}),f=[i,o,s].some(function(h){return h===!0}),m=d?!0:!f;i=(l=i)!==null&&l!==void 0?l:m,o=(c=o)!==null&&c!==void 0?c:m,s=(u=s)!==null&&u!==void 0?u:m}return[i,o,s,a]}function sCe(e){var t=e.showTime,n=bet(e),r=ye(n,2),a=r[0],i=r[1],o=t&&Xt(t)==="object"?t:{},s=oe(oe({defaultOpenValue:o.defaultOpenValue||o.defaultValue},a),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,f=iCe(c,u,d,l),m=oCe(f,c,u,d,l),h=ye(m,3);return c=h[0],u=h[1],d=h[2],[s,oe(oe({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,i]}function lCe(e,t,n,r,a){var i=e==="time";if(e==="datetime"||i){for(var o=r,s=Jwe(e,a,null),l=s,c=[t,n],u=0;u1&&(o=t.addDate(o,-7)),o}function no(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 q$(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(o,s){n?r=e[o](r,e[a[s]](n)):r=e[o](r,0)}),r}function xet(e,t,n,r,a){var i=ar(function(o,s){return!!(n&&n(o,s)||r&&e.isAfter(r,o)&&!rs(e,t,r,o,s.type)||a&&e.isAfter(o,a)&&!rs(e,t,a,o,s.type))});return i}function Tet(e,t,n){return p.useMemo(function(){var r=Jwe(e,t,n),a=wg(r),i=a[0],o=Xt(i)==="object"&&i.type==="mask"?i.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,n])}function wet(e,t,n){return typeof e[0]=="function"||n?!0:t}function Cet(e,t,n,r){var a=ar(function(i,o){var s=oe({type:t},o);if(delete s.activeIndex,!e.isValidate(i)||n&&n(i,s))return!0;if((t==="date"||t==="time")&&r){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,i,c,{from:s.from}))||{},d=u.disabledHours,f=u.disabledMinutes,m=u.disabledSeconds,h=u.disabledMilliseconds,g=r.disabledHours,O=r.disabledMinutes,v=r.disabledSeconds,y=d||g,S=f||O,C=m||v,_=e.getHour(i),w=e.getMinute(i),T=e.getSecond(i),k=e.getMillisecond(i);if(y&&y().includes(_)||S&&S(_).includes(w)||C&&C(_,w).includes(T)||h&&h(_,w,T).includes(k))return!0}return!1});return a}function fw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=p.useMemo(function(){var r=e&&wg(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function dCe(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,i=a===void 0?"date":a,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,d=u===void 0?{}:u,f=e.order,m=f===void 0?!0:f,h=e.components,g=h===void 0?{}:h,O=e.inputRender,v=e.allowClear,y=e.clearIcon,S=e.needConfirm,C=e.multiple,_=e.format,w=e.inputReadOnly,T=e.disabledDate,k=e.minDate,A=e.maxDate,I=e.showTime,M=e.value,Q=e.defaultValue,B=e.pickerValue,D=e.defaultPickerValue,U=fw(M),R=fw(Q),$=fw(B),P=fw(D),z=i==="date"&&I?"datetime":i,F=z==="time"||z==="datetime",L=F||C,X=S??F,Y=sCe(e),q=ye(Y,4),G=q[0],ee=q[1],K=q[2],ne=q[3],ie=aCe(r,ee),se=p.useMemo(function(){return lCe(z,K,ne,G,ie)},[z,K,ne,G,ie]),ue=p.useMemo(function(){return oe(oe({},e),{},{prefixCls:s,locale:ie,picker:i,styles:c,classNames:d,order:m,components:oe({input:O},g),clearIcon:yet(s,v,y),showTime:se,value:U,defaultValue:R,pickerValue:$,defaultPickerValue:P},t==null?void 0:t())},[e]),ce=Tet(z,ie,_),be=ye(ce,2),ge=be[0],Oe=be[1],me=wet(ge,w,C),Te=xet(n,r,T,k,A),Ce=Cet(n,i,Te,se),Fe=p.useMemo(function(){return oe(oe({},ue),{},{needConfirm:X,inputReadOnly:me,disabledDate:Te})},[ue,X,me,Te]);return[Fe,z,L,ge,Oe,Ce]}function $et(e,t,n){var r=Ir(t,{value:e}),a=ye(r,2),i=a[0],o=a[1],s=Z.useRef(e),l=Z.useRef(),c=function(){ur.cancel(l.current)},u=ar(function(){o(s.current),n&&i!==s.current&&n(s.current)}),d=ar(function(f,m){c(),s.current=f,f||m?u():l.current=ur(u)});return Z.useEffect(function(){return c},[]),[i,d]}function fCe(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(u){return u})?!1:e,i=$et(a,t||!1,r),o=ye(i,2),s=o[0],l=o[1];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!d.inherit||s)&&l(u,d.force)}return[s,c]}function pCe(e){var t=p.useRef();return p.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var i;(i=t.current)===null||i===void 0||i.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function mCe(e,t){return p.useMemo(function(){return e||(t?(Da(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ye(n,2),a=r[0],i=r[1];return{label:a,value:i}})):[])},[e,t])}function hX(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=p.useRef(t);r.current=t,Mh(function(){if(e)r.current(e);else{var a=ur(function(){r.current(e)},n);return function(){ur.cancel(a)}}},[e])}function hCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=p.useState(0),a=ye(r,2),i=a[0],o=a[1],s=p.useState(!1),l=ye(s,2),c=l[0],u=l[1],d=p.useRef([]),f=p.useRef(null),m=p.useRef(null),h=function(C){f.current=C},g=function(C){return f.current===C},O=function(C){u(C)},v=function(C){return C&&(m.current=C),m.current},y=function(C){var _=d.current,w=new Set(_.filter(function(k){return C[k]||t[k]})),T=_[_.length-1]===0?1:0;return w.size>=2||e[T]?null:T};return hX(c||n,function(){c||(d.current=[],h(null))}),p.useEffect(function(){c&&d.current.push(i)},[c,i]),[c,O,v,i,o,y,d.current,h,g]}function Ret(e,t,n,r,a,i){var o=n[n.length-1],s=function(c,u){var d=ye(e,2),f=d[0],m=d[1],h=oe(oe({},u),{},{from:eCe(e,n)});return o===1&&t[0]&&f&&!rs(r,a,f,c,h.type)&&r.isAfter(f,c)||o===0&&t[1]&&m&&!rs(r,a,m,c,h.type)&&r.isAfter(c,m)?!0:i==null?void 0:i(c,h)};return s}function tS(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 m5=[];function gCe(e,t,n,r,a,i,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:m5,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:m5,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:m5,d=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,h=o==="time",g=i||0,O=function($){var P=e.getNow();return h&&(P=q$(e,P)),l[$]||n[$]||P},v=ye(c,2),y=v[0],S=v[1],C=Ir(function(){return O(0)},{value:y}),_=ye(C,2),w=_[0],T=_[1],k=Ir(function(){return O(1)},{value:S}),A=ye(k,2),I=A[0],M=A[1],Q=p.useMemo(function(){var R=[w,I][g];return h?R:q$(e,R,u[g])},[h,w,I,g,e,u]),B=function($){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[T,M][g];z($);var F=[w,I];F[g]=$,d&&(!rs(e,t,w,F[0],o)||!rs(e,t,I,F[1],o))&&d(F,{source:P,range:g===1?"end":"start",mode:r})},D=function($,P){if(s){var z={date:"month",week:"month",month:"year",quarter:"year"},F=z[o];if(F&&!rs(e,t,$,P,F))return tS(e,o,P,-1);if(o==="year"&&$){var L=Math.floor(e.getYear($)/10),X=Math.floor(e.getYear(P)/10);if(L!==X)return tS(e,o,P,-1)}}return P},U=p.useRef(null);return tr(function(){if(a&&!l[g]){var R=h?null:e.getNow();if(U.current!==null&&U.current!==g?R=[w,I][g^1]:n[g]?R=g===0?n[0]:D(n[0],n[1]):n[g^1]&&(R=n[g^1]),R){f&&e.isAfter(f,R)&&(R=f);var $=s?tS(e,o,R,1):R;m&&e.isAfter($,m)&&(R=s?tS(e,o,m,-1):m),B(R,"reset")}}},[a,g,n[g]]),p.useEffect(function(){a?U.current=g:U.current=null},[a,g]),tr(function(){a&&l&&l[g]&&B(l[g],"reset")},[a,g]),[Q,B]}function OCe(e,t){var n=p.useRef(e),r=p.useState({}),a=ye(r,2),i=a[1],o=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,i({})};return[o,s,o(!0)]}var Pet=[];function bCe(e,t,n){var r=function(o){return o.map(function(s){return no(s,{generateConfig:e,locale:t,format:n[0]})})},a=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=a.includes(l);(!c||!r)&&o.push({label:dX(l,i),value:l,disabled:c})}return o}function gX(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,i=r.hourStep,o=i===void 0?1:i,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,d=r.millisecondStep,f=d===void 0?100:d,m=r.hideDisabledOptions,h=r.disabledTime,g=r.disabledHours,O=r.disabledMinutes,v=r.disabledSeconds,y=p.useMemo(function(){return n||e.getNow()},[n,e]),S=p.useCallback(function(P){var z=(h==null?void 0:h(P))||{};return[z.disabledHours||g||pw,z.disabledMinutes||O||pw,z.disabledSeconds||v||pw,z.disabledMilliseconds||pw]},[h,g,O,v]),C=p.useMemo(function(){return S(y)},[y,S]),_=ye(C,4),w=_[0],T=_[1],k=_[2],A=_[3],I=p.useCallback(function(P,z,F,L){var X=mw(0,23,o,m,P()),Y=a?X.map(function(K){return oe(oe({},K),{},{label:dX(K.value%12||12,2)})}):X,q=function(ne){return mw(0,59,l,m,z(ne))},G=function(ne,ie){return mw(0,59,u,m,F(ne,ie))},ee=function(ne,ie,se){return mw(0,999,f,m,L(ne,ie,se),3)};return[Y,q,G,ee]},[m,o,a,f,l,u]),M=p.useMemo(function(){return I(w,T,k,A)},[I,w,T,k,A]),Q=ye(M,4),B=Q[0],D=Q[1],U=Q[2],R=Q[3],$=function(z,F){var L=function(){return B},X=D,Y=U,q=R;if(F){var G=S(F),ee=ye(G,4),K=ee[0],ne=ee[1],ie=ee[2],se=ee[3],ue=I(K,ne,ie,se),ce=ye(ue,4),be=ce[0],ge=ce[1],Oe=ce[2],me=ce[3];L=function(){return be},X=ge,Y=Oe,q=me}var Te=Aet(z,L,X,Y,q,e);return Te};return[$,B,D,U,R]}function Net(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,i=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,d=e.disabledDate,f=p.useContext(Tu),m=f.prefixCls,h=f.locale,g=f.button,O=g===void 0?"button":g,v=u.getNow(),y=gX(u,i,v),S=ye(y,1),C=S[0],_=r==null?void 0:r(t),w=d(v,{type:t}),T=function(){if(!w){var D=C(v);s(D)}},k="".concat(m,"-now"),A="".concat(k,"-btn"),I=a&&p.createElement("li",{className:k},p.createElement("a",{className:le(A,w&&"".concat(A,"-disabled")),"aria-disabled":w,onClick:T},n==="date"?h.today:h.now)),M=c&&p.createElement("li",{className:"".concat(m,"-ok")},p.createElement(O,{disabled:l,onClick:o},h.ok)),Q=(I||M)&&p.createElement("ul",{className:"".concat(m,"-ranges")},I,M);return!_&&!Q?null:p.createElement("div",{className:"".concat(m,"-footer")},_&&p.createElement("div",{className:"".concat(m,"-footer-extra")},_),Q)}function ECe(e,t,n){function r(a,i){var o=a.findIndex(function(l){return rs(e,t,l,i,n)});if(o===-1)return[].concat(et(a),[i]);var s=et(a);return s.splice(o,1),s}return r}var Cg=p.createContext(null);function Hk(){return p.useContext(Cg)}function Qb(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,i=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,f=e.values,m=e.pickerValue,h=e.onSelect,g=e.prevIcon,O=e.nextIcon,v=e.superPrevIcon,y=e.superNextIcon,S=r.getNow(),C={now:S,values:f,pickerValue:m,prefixCls:n,disabledDate:i,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:a,generateConfig:r,onSelect:h,panelType:t,prevIcon:g,nextIcon:O,superPrevIcon:v,superNextIcon:y};return[C,S]}var Up=p.createContext({});function nx(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,i=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,d=e.cellSelection,f=d===void 0?!0:d,m=e.disabledDate,h=Hk(),g=h.prefixCls,O=h.panelType,v=h.now,y=h.disabledDate,S=h.cellRender,C=h.onHover,_=h.hoverValue,w=h.hoverRangeValue,T=h.generateConfig,k=h.values,A=h.locale,I=h.onSelect,M=m||y,Q="".concat(g,"-cell"),B=p.useContext(Up),D=B.onCellDblClick,U=function(Y){return k.some(function(q){return q&&rs(T,A,Y,q,O)})},R=[],$=0;$1&&arguments[1]!==void 0?arguments[1]:!1;Le(We),O==null||O(We),Re&&ze(We)},Je=function(We,Re){ie(We),Re&&Qe(Re),ze(Re,We)},He=function(We){if(Ce(We),Qe(We),ne!==C){var Re=["decade","year"],Ie=[].concat(Re,["month"]),ve={quarter:[].concat(Re,["quarter"]),week:[].concat(et(Ie),["week"]),date:[].concat(et(Ie),["date"])},we=ve[C]||Ie,Xe=we.indexOf(ne),rt=we[Xe+1];rt&&Je(rt,We)}},gt=p.useMemo(function(){var Be,We;if(Array.isArray(T)){var Re=ye(T,2);Be=Re[0],We=Re[1]}else Be=T;return!Be&&!We?null:(Be=Be||We,We=We||Be,a.isAfter(Be,We)?[We,Be]:[Be,We])},[T,a]),st=fX(k,A,I),lt=Q[se]||Yet[se]||Zk,pt=p.useContext(Up),Ze=p.useMemo(function(){return oe(oe({},pt),{},{hideHeader:B})},[pt,B]),De="".concat(D,"-panel"),Ke=Wk(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return p.createElement(Up.Provider,{value:Ze},p.createElement("div",{ref:U,tabIndex:l,className:le(De,ae({},"".concat(De,"-rtl"),i==="rtl"))},p.createElement(lt,Ae({},Ke,{showTime:q,prefixCls:D,locale:X,generateConfig:a,onModeChange:Je,pickerValue:Ee,onPickerValueChange:function(We){Qe(We,!0)},value:me[0],onSelect:He,values:me,cellRender:st,hoverRangeValue:gt,hoverValue:w}))))}var h5=p.memo(p.forwardRef(Vet));function qet(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,i=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=p.useContext(Tu),u=c.prefixCls,d=c.generateConfig,f=p.useCallback(function(y,S){return tS(d,t,y,S)},[d,t]),m=p.useMemo(function(){return f(r,1)},[r,f]),h=function(S){a(f(S,-1))},g={onCellDblClick:function(){i&&o()}},O=t==="time",v=oe(oe({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:O});return s?v.hoverRangeValue=l:v.hoverValue=l,n?p.createElement("div",{className:"".concat(u,"-panels")},p.createElement(Up.Provider,{value:oe(oe({},g),{},{hideNext:!0})},p.createElement(h5,v)),p.createElement(Up.Provider,{value:oe(oe({},g),{},{hidePrev:!0})},p.createElement(h5,Ae({},v,{pickerValue:m,onPickerValueChange:h})))):p.createElement(Up.Provider,{value:oe({},g)},p.createElement(h5,v))}function eie(e){return typeof e=="function"?e():e}function Wet(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?p.createElement("div",{className:"".concat(t,"-presets")},p.createElement("ul",null,n.map(function(i,o){var s=i.label,l=i.value;return p.createElement("li",{key:o,onClick:function(){r(eie(l))},onMouseEnter:function(){a(eie(l))},onMouseLeave:function(){a(null)}},s)}))):null}function TCe(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,i=e.range,o=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,u=e.onPresetHover,d=e.onPresetSubmit,f=e.onFocus,m=e.onBlur,h=e.onPanelMouseDown,g=e.direction,O=e.value,v=e.onSelect,y=e.isInvalid,S=e.defaultOpenValue,C=e.onOk,_=e.onSubmit,w=p.useContext(Tu),T=w.prefixCls,k="".concat(T,"-panel"),A=g==="rtl",I=p.useRef(null),M=p.useRef(null),Q=p.useState(0),B=ye(Q,2),D=B[0],U=B[1],R=p.useState(0),$=ye(R,2),P=$[0],z=$[1],F=p.useState(0),L=ye(F,2),X=L[0],Y=L[1],q=function(He){He.width&&U(He.width)},G=ye(l,3),ee=G[0],K=G[1],ne=G[2],ie=p.useState(0),se=ye(ie,2),ue=se[0],ce=se[1];p.useEffect(function(){ce(10)},[ee]),p.useEffect(function(){if(i&&M.current){var Je,He=((Je=I.current)===null||Je===void 0?void 0:Je.offsetWidth)||0,gt=M.current.getBoundingClientRect();if(!gt.height||gt.right<0){ce(function(Ze){return Math.max(0,Ze-1)});return}var st=(A?K-He:ee)-gt.left;if(Y(st),D&&D=s&&n<=l)return i;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?yt:$t));var Ot=Qt+mt,ht=$t-yt+1;return String(yt+(ht+Ot-yt)%ht)};switch(We){case"Backspace":case"Delete":Re="",Ie=we;break;case"ArrowLeft":Re="",Xe(-1);break;case"ArrowRight":Re="",Xe(1);break;case"ArrowUp":Re="",Ie=rt(1);break;case"ArrowDown":Re="",Ie=rt(-1);break;default:isNaN(Number(We))||(Re=L+We,Ie=Re);break}if(Re!==null&&(X(Re),Re.length>=ve&&(Xe(1),X(""))),Ie!==null){var at=ue.slice(0,Te)+dX(Ie,ve)+ue.slice(Ce);Me(at.slice(0,o.length))}se({})},Ze=p.useRef();tr(function(){if(!(!B||!o||ze.current)){if(!ge.match(ue)){Me(o);return}return be.current.setSelectionRange(Te,Ce),Ze.current=ur(function(){be.current.setSelectionRange(Te,Ce)}),function(){ur.cancel(Ze.current)}}},[ge,o,B,ue,G,Te,Ce,ie,Me]);var De=o?{onFocus:He,onBlur:st,onKeyDown:pt,onMouseDown:Qe,onMouseUp:Je,onPaste:Le}:{};return p.createElement("div",{ref:ce,className:le(I,ae(ae({},"".concat(I,"-active"),n&&a),"".concat(I,"-placeholder"),c))},p.createElement(A,Ae({ref:be,"aria-invalid":g,autoComplete:"off"},v,{onKeyDown:lt,onBlur:gt},De,{value:ue,onChange:Ee})),p.createElement(Kk,{type:"suffix",icon:i}),O)}),ttt=["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"],ntt=["index"];function rtt(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,i=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,f=e.style,m=e.onClick,h=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var O=e.disabled,v=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var S=e.onActiveInfo;e.placement;var C=e.onMouseDown;e.required,e["aria-required"];var _=e.autoFocus,w=e.tabIndex,T=ln(e,ttt),k=y==="rtl",A=p.useContext(Tu),I=A.prefixCls,M=p.useMemo(function(){if(typeof n=="string")return[n];var ie=n||{};return[ie.start,ie.end]},[n]),Q=p.useRef(),B=p.useRef(),D=p.useRef(),U=function(se){var ue;return(ue=[B,D][se])===null||ue===void 0?void 0:ue.current};p.useImperativeHandle(t,function(){return{nativeElement:Q.current,focus:function(se){if(Xt(se)==="object"){var ue,ce=se||{},be=ce.index,ge=be===void 0?0:be,Oe=ln(ce,ntt);(ue=U(ge))===null||ue===void 0||ue.focus(Oe)}else{var me;(me=U(se??0))===null||me===void 0||me.focus()}},blur:function(){var se,ue;(se=U(0))===null||se===void 0||se.blur(),(ue=U(1))===null||ue===void 0||ue.blur()}}});var R=CCe(T),$=p.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),P=wCe(oe(oe({},e),{},{id:M,placeholder:$})),z=ye(P,1),F=z[0],L=p.useState({position:"absolute",width:0}),X=ye(L,2),Y=X[0],q=X[1],G=ar(function(){var ie=U(l);if(ie){var se=ie.nativeElement.getBoundingClientRect(),ue=Q.current.getBoundingClientRect(),ce=se.left-ue.left;q(function(be){return oe(oe({},be),{},{width:se.width,left:ce})}),S([se.left,se.right,ue.width])}});p.useEffect(function(){G()},[l]);var ee=a&&(g[0]&&!O[0]||g[1]&&!O[1]),K=_&&!O[0],ne=_&&!K&&!O[1];return p.createElement(_o,{onResize:G},p.createElement("div",Ae({},R,{className:le(I,"".concat(I,"-range"),ae(ae(ae(ae({},"".concat(I,"-focused"),c),"".concat(I,"-disabled"),O.every(function(ie){return ie})),"".concat(I,"-invalid"),v.some(function(ie){return ie})),"".concat(I,"-rtl"),k),d),style:f,ref:Q,onClick:m,onMouseDown:function(se){var ue=se.target;ue!==B.current.inputElement&&ue!==D.current.inputElement&&se.preventDefault(),C==null||C(se)}}),r&&p.createElement("div",{className:"".concat(I,"-prefix")},r),p.createElement(F9,Ae({ref:B},F(0),{autoFocus:K,tabIndex:w,"date-range":"start"})),p.createElement("div",{className:"".concat(I,"-range-separator")},s),p.createElement(F9,Ae({ref:D},F(1),{autoFocus:ne,tabIndex:w,"date-range":"end"})),p.createElement("div",{className:"".concat(I,"-active-bar"),style:Y}),p.createElement(Kk,{type:"suffix",icon:i}),ee&&p.createElement(B9,{icon:a,onClear:h})))}var att=p.forwardRef(rtt);function nie(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function gw(e){return e===1?"end":"start"}function itt(e,t){var n=dCe(e,function(){var qn=e.disabled,kt=e.allowEmpty,tn=nie(qn,!1),Jn=nie(kt,!1);return{disabled:tn,allowEmpty:Jn}}),r=ye(n,6),a=r[0],i=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=a.prefixCls,d=a.styles,f=a.classNames,m=a.defaultValue,h=a.value,g=a.needConfirm,O=a.onKeyDown,v=a.disabled,y=a.allowEmpty,S=a.disabledDate,C=a.minDate,_=a.maxDate,w=a.defaultOpen,T=a.open,k=a.onOpenChange,A=a.locale,I=a.generateConfig,M=a.picker,Q=a.showNow,B=a.showToday,D=a.showTime,U=a.mode,R=a.onPanelChange,$=a.onCalendarChange,P=a.onOk,z=a.defaultPickerValue,F=a.pickerValue,L=a.onPickerValueChange,X=a.inputReadOnly,Y=a.suffixIcon,q=a.onFocus,G=a.onBlur,ee=a.presets,K=a.ranges,ne=a.components,ie=a.cellRender,se=a.dateRender,ue=a.monthCellRender,ce=a.onClick,be=pCe(t),ge=fCe(T,w,v,k),Oe=ye(ge,2),me=Oe[0],Te=Oe[1],Ce=function(kt,tn){(v.some(function(Jn){return!Jn})||!kt)&&Te(kt,tn)},Fe=yCe(I,A,s,!0,!1,m,h,$,P),Me=ye(Fe,5),Ee=Me[0],Le=Me[1],ze=Me[2],Qe=Me[3],Je=Me[4],He=ze(),gt=hCe(v,y,me),st=ye(gt,9),lt=st[0],pt=st[1],Ze=st[2],De=st[3],Ke=st[4],Be=st[5],We=st[6],Re=st[7],Ie=st[8],ve=function(kt,tn){pt(!0),q==null||q(kt,{range:gw(tn??De)})},we=function(kt,tn){pt(!1),G==null||G(kt,{range:gw(tn??De)})},Xe=p.useMemo(function(){if(!D)return null;var qn=D.disabledTime,kt=qn?function(tn){var Jn=gw(De),Dt=eCe(He,We,De);return qn(tn,Jn,{from:Dt})}:void 0;return oe(oe({},D),{},{disabledTime:kt})},[D,De,He,We]),rt=Ir([M,M],{value:U}),at=ye(rt,2),ct=at[0],mt=at[1],je=ct[De]||M,Ye=je==="date"&&Xe?"datetime":je,yt=Ye===M&&Ye!=="time",$t=_Ce(M,je,Q,B,!0),St=SCe(a,Ee,Le,ze,Qe,v,s,lt,me,c),Mt=ye(St,2),Qt=Mt[0],Ot=Mt[1],ht=Ret(He,v,We,I,A,S),ut=nCe(He,c,y),vt=ye(ut,2),Gt=vt[0],en=vt[1],Rn=gCe(I,A,He,ct,me,De,i,yt,z,F,Xe==null?void 0:Xe.defaultOpenValue,L,C,_),Ut=ye(Rn,2),Ct=Ut[0],Vt=Ut[1],_n=ar(function(qn,kt,tn){var Jn=PS(ct,De,kt);if((Jn[0]!==ct[0]||Jn[1]!==ct[1])&&mt(Jn),R&&tn!==!1){var Dt=et(He);qn&&(Dt[De]=qn),R(Dt,Jn)}}),jn=function(kt,tn){return PS(He,tn,kt)},Qn=function(kt,tn){var Jn=He;kt&&(Jn=jn(kt,De)),Re(De);var Dt=Be(Jn);Qe(Jn),Qt(De,Dt===null),Dt===null?Ce(!1,{force:!0}):tn||be.current.focus({index:Dt})},fr=function(kt){var tn,Jn=kt.target.getRootNode();if(!be.current.nativeElement.contains((tn=Jn.activeElement)!==null&&tn!==void 0?tn:document.activeElement)){var Dt=v.findIndex(function(cn){return!cn});Dt>=0&&be.current.focus({index:Dt})}Ce(!0),ce==null||ce(kt)},Pt=function(){Ot(null),Ce(!1,{force:!0})},xe=p.useState(null),pe=ye(xe,2),$e=pe[0],tt=pe[1],dt=p.useState(null),wt=ye(dt,2),Tt=wt[0],Yt=wt[1],En=p.useMemo(function(){return Tt||He},[He,Tt]);p.useEffect(function(){me||Yt(null)},[me]);var Rt=p.useState([0,0,0]),qe=ye(Rt,2),Et=qe[0],hn=qe[1],Zn=mCe(ee,K),rr=function(kt){Yt(kt),tt("preset")},ua=function(kt){var tn=Ot(kt);tn&&Ce(!1,{force:!0})},Gr=function(kt){Qn(kt)},ra=function(kt){Yt(kt?jn(kt,De):null),tt("cell")},Hr=function(kt){Ce(!0),ve(kt)},aa=function(){Ze("panel")},Pa=function(kt){var tn=PS(He,De,kt);Qe(tn),!g&&!o&&i===Ye&&Qn(kt)},xr=function(){Ce(!1)},mn=fX(ie,se,ue,gw(De)),un=He[De]||null,pr=ar(function(qn){return c(qn,{activeIndex:De})}),sn=p.useMemo(function(){var qn=vi(a,!1),kt=Oa(a,[].concat(et(Object.keys(qn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return kt},[a]),nn=p.createElement(TCe,Ae({},sn,{showNow:$t,showTime:Xe,range:!0,multiplePanel:yt,activeInfo:Et,disabledDate:ht,onFocus:Hr,onBlur:we,onPanelMouseDown:aa,picker:M,mode:je,internalMode:Ye,onPanelChange:_n,format:l,value:un,isInvalid:pr,onChange:null,onSelect:Pa,pickerValue:Ct,defaultOpenValue:wg(D==null?void 0:D.defaultOpenValue)[De],onPickerValueChange:Vt,hoverValue:En,onHover:ra,needConfirm:g,onSubmit:Qn,onOk:Je,presets:Zn,onPresetHover:rr,onPresetSubmit:ua,onNow:Gr,cellRender:mn})),or=function(kt,tn){var Jn=jn(kt,tn);Qe(Jn)},Zr=function(){Ze("input")},xn=function(kt,tn){var Jn=We.length,Dt=We[Jn-1];if(Jn&&Dt!==tn&&g&&!y[Dt]&&!Ie(Dt)&&He[Dt]){be.current.focus({index:Dt});return}Ze("input"),Ce(!0,{inherit:!0}),De!==tn&&me&&!g&&o&&Qn(null,!0),Ke(tn),ve(kt,tn)},Kn=function(kt,tn){if(Ce(!1),!g&&Ze()==="input"){var Jn=Be(He);Qt(De,Jn===null)}we(kt,tn)},Ar=function(kt,tn){kt.key==="Tab"&&Qn(null,!0),O==null||O(kt,tn)},Tr=p.useMemo(function(){return{prefixCls:u,locale:A,generateConfig:I,button:ne.button,input:ne.input}},[u,A,I,ne.button,ne.input]);return tr(function(){me&&De!==void 0&&_n(null,M,!1)},[me,De,M]),tr(function(){var qn=Ze();!me&&qn==="input"&&(Ce(!1),Qn(null,!0)),!me&&o&&!g&&qn==="panel"&&(Ce(!0),Qn())},[me]),p.createElement(Tu.Provider,{value:Tr},p.createElement(Kwe,Ae({},tCe(a),{popupElement:nn,popupStyle:d.popup,popupClassName:f.popup,visible:me,onClose:xr,range:!0}),p.createElement(att,Ae({},a,{ref:be,suffixIcon:Y,activeIndex:lt||me?De:null,activeHelp:!!Tt,allHelp:!!Tt&&$e==="preset",focused:lt,onFocus:xn,onBlur:Kn,onKeyDown:Ar,onSubmit:Qn,value:En,maskFormat:l,onChange:or,onInputChange:Zr,format:s,inputReadOnly:X,disabled:v,open:me,onOpenChange:Ce,onClick:fr,onClear:Pt,invalid:Gt,onInvalid:en,onActiveInfo:hn}))))}var ott=p.forwardRef(itt);function stt(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,i=a===void 0?"×":a,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),d="".concat(t,"-selection"),f="".concat(d,"-overflow");function m(O,v){return p.createElement("span",{className:le("".concat(d,"-item")),title:typeof O=="string"?O:null},p.createElement("span",{className:"".concat(d,"-item-content")},O),!s&&v&&p.createElement("span",{onMouseDown:function(S){S.preventDefault()},onClick:v,className:"".concat(d,"-item-remove")},i))}function h(O){var v=o(O),y=function(C){C&&C.stopPropagation(),r(O)};return m(v,y)}function g(O){var v="+ ".concat(O.length," ...");return m(v)}return p.createElement("div",{className:u},p.createElement(mu,{prefixCls:f,data:n,renderItem:h,renderRest:g,itemKey:function(v){return o(v)},maxCount:l}),!n.length&&p.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var ltt=["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 ctt(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,i=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,f=e.onClick,m=e.onClear,h=e.internalPicker,g=e.value,O=e.onChange,v=e.onSubmit;e.onInputChange;var y=e.multiple,S=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var C=e.disabled,_=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var T=e.onMouseDown;e.required,e["aria-required"];var k=e.autoFocus,A=e.tabIndex,I=e.removeIcon,M=ln(e,ltt),Q=w==="rtl",B=p.useContext(Tu),D=B.prefixCls,U=p.useRef(),R=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:U.current,focus:function(K){var ne;(ne=R.current)===null||ne===void 0||ne.focus(K)},blur:function(){var K;(K=R.current)===null||K===void 0||K.blur()}}});var $=CCe(M),P=function(K){O([K])},z=function(K){var ne=g.filter(function(ie){return ie&&!rs(l,s,ie,K,h)});O(ne),n||v()},F=wCe(oe(oe({},e),{},{onChange:P}),function(ee){var K=ee.valueTexts;return{value:K[0]||"",active:o}}),L=ye(F,2),X=L[0],Y=L[1],q=!!(a&&g.length&&!C),G=y?p.createElement(p.Fragment,null,p.createElement(stt,{prefixCls:D,value:g,onRemove:z,formatDate:Y,maxTagCount:S,disabled:C,removeIcon:I,placeholder:c}),p.createElement("input",{className:"".concat(D,"-multiple-input"),value:g.map(Y).join(","),ref:R,readOnly:!0,autoFocus:k,tabIndex:A}),p.createElement(Kk,{type:"suffix",icon:i}),q&&p.createElement(B9,{icon:a,onClear:m})):p.createElement(F9,Ae({ref:R},X(),{autoFocus:k,tabIndex:A,suffixIcon:i,clearIcon:q&&p.createElement(B9,{icon:a,onClear:m}),showActiveCls:!1}));return p.createElement("div",Ae({},$,{className:le(D,ae(ae(ae(ae(ae({},"".concat(D,"-multiple"),y),"".concat(D,"-focused"),o),"".concat(D,"-disabled"),C),"".concat(D,"-invalid"),_),"".concat(D,"-rtl"),Q),u),style:d,ref:U,onClick:f,onMouseDown:function(K){var ne,ie=K.target;ie!==((ne=R.current)===null||ne===void 0?void 0:ne.inputElement)&&K.preventDefault(),T==null||T(K)}}),r&&p.createElement("div",{className:"".concat(D,"-prefix")},r),G)}var utt=p.forwardRef(ctt);function dtt(e,t){var n=dCe(e),r=ye(n,6),a=r[0],i=r[1],o=r[2],s=r[3],l=r[4],c=r[5],u=a,d=u.prefixCls,f=u.styles,m=u.classNames,h=u.order,g=u.defaultValue,O=u.value,v=u.needConfirm,y=u.onChange,S=u.onKeyDown,C=u.disabled,_=u.disabledDate,w=u.minDate,T=u.maxDate,k=u.defaultOpen,A=u.open,I=u.onOpenChange,M=u.locale,Q=u.generateConfig,B=u.picker,D=u.showNow,U=u.showToday,R=u.showTime,$=u.mode,P=u.onPanelChange,z=u.onCalendarChange,F=u.onOk,L=u.multiple,X=u.defaultPickerValue,Y=u.pickerValue,q=u.onPickerValueChange,G=u.inputReadOnly,ee=u.suffixIcon,K=u.removeIcon,ne=u.onFocus,ie=u.onBlur,se=u.presets,ue=u.components,ce=u.cellRender,be=u.dateRender,ge=u.monthCellRender,Oe=u.onClick,me=pCe(t);function Te(sn){return sn===null?null:L?sn:sn[0]}var Ce=ECe(Q,M,i),Fe=fCe(A,k,[C],I),Me=ye(Fe,2),Ee=Me[0],Le=Me[1],ze=function(nn,or,Zr){if(z){var xn=oe({},Zr);delete xn.range,z(Te(nn),Te(or),xn)}},Qe=function(nn){F==null||F(Te(nn))},Je=yCe(Q,M,s,!1,h,g,O,ze,Qe),He=ye(Je,5),gt=He[0],st=He[1],lt=He[2],pt=He[3],Ze=He[4],De=lt(),Ke=hCe([C]),Be=ye(Ke,4),We=Be[0],Re=Be[1],Ie=Be[2],ve=Be[3],we=function(nn){Re(!0),ne==null||ne(nn,{})},Xe=function(nn){Re(!1),ie==null||ie(nn,{})},rt=Ir(B,{value:$}),at=ye(rt,2),ct=at[0],mt=at[1],je=ct==="date"&&R?"datetime":ct,Ye=_Ce(B,ct,D,U),yt=y&&function(sn,nn){y(Te(sn),Te(nn))},$t=SCe(oe(oe({},a),{},{onChange:yt}),gt,st,lt,pt,[],s,We,Ee,c),St=ye($t,2),Mt=St[1],Qt=nCe(De,c),Ot=ye(Qt,2),ht=Ot[0],ut=Ot[1],vt=p.useMemo(function(){return ht.some(function(sn){return sn})},[ht]),Gt=function(nn,or){if(q){var Zr=oe(oe({},or),{},{mode:or.mode[0]});delete Zr.range,q(nn[0],Zr)}},en=gCe(Q,M,De,[ct],Ee,ve,i,!1,X,Y,wg(R==null?void 0:R.defaultOpenValue),Gt,w,T),Rn=ye(en,2),Ut=Rn[0],Ct=Rn[1],Vt=ar(function(sn,nn,or){if(mt(nn),P&&or!==!1){var Zr=sn||De[De.length-1];P(Zr,nn)}}),_n=function(){Mt(lt()),Le(!1,{force:!0})},jn=function(nn){!C&&!me.current.nativeElement.contains(document.activeElement)&&me.current.focus(),Le(!0),Oe==null||Oe(nn)},Qn=function(){Mt(null),Le(!1,{force:!0})},fr=p.useState(null),Pt=ye(fr,2),xe=Pt[0],pe=Pt[1],$e=p.useState(null),tt=ye($e,2),dt=tt[0],wt=tt[1],Tt=p.useMemo(function(){var sn=[dt].concat(et(De)).filter(function(nn){return nn});return L?sn:sn.slice(0,1)},[De,dt,L]),Yt=p.useMemo(function(){return!L&&dt?[dt]:De.filter(function(sn){return sn})},[De,dt,L]);p.useEffect(function(){Ee||wt(null)},[Ee]);var En=mCe(se),Rt=function(nn){wt(nn),pe("preset")},qe=function(nn){var or=L?Ce(lt(),nn):[nn],Zr=Mt(or);Zr&&!L&&Le(!1,{force:!0})},Et=function(nn){qe(nn)},hn=function(nn){wt(nn),pe("cell")},Zn=function(nn){Le(!0),we(nn)},rr=function(nn){if(Ie("panel"),!(L&&je!==B)){var or=L?Ce(lt(),nn):[nn];pt(or),!v&&!o&&i===je&&_n()}},ua=function(){Le(!1)},Gr=fX(ce,be,ge),ra=p.useMemo(function(){var sn=vi(a,!1),nn=Oa(a,[].concat(et(Object.keys(sn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return oe(oe({},nn),{},{multiple:a.multiple})},[a]),Hr=p.createElement(TCe,Ae({},ra,{showNow:Ye,showTime:R,disabledDate:_,onFocus:Zn,onBlur:Xe,picker:B,mode:ct,internalMode:je,onPanelChange:Vt,format:l,value:De,isInvalid:c,onChange:null,onSelect:rr,pickerValue:Ut,defaultOpenValue:R==null?void 0:R.defaultOpenValue,onPickerValueChange:Ct,hoverValue:Tt,onHover:hn,needConfirm:v,onSubmit:_n,onOk:Ze,presets:En,onPresetHover:Rt,onPresetSubmit:qe,onNow:Et,cellRender:Gr})),aa=function(nn){pt(nn)},Pa=function(){Ie("input")},xr=function(nn){Ie("input"),Le(!0,{inherit:!0}),we(nn)},mn=function(nn){Le(!1),Xe(nn)},un=function(nn,or){nn.key==="Tab"&&_n(),S==null||S(nn,or)},pr=p.useMemo(function(){return{prefixCls:d,locale:M,generateConfig:Q,button:ue.button,input:ue.input}},[d,M,Q,ue.button,ue.input]);return tr(function(){Ee&&ve!==void 0&&Vt(null,B,!1)},[Ee,ve,B]),tr(function(){var sn=Ie();!Ee&&sn==="input"&&(Le(!1),_n()),!Ee&&o&&!v&&sn==="panel"&&_n()},[Ee]),p.createElement(Tu.Provider,{value:pr},p.createElement(Kwe,Ae({},tCe(a),{popupElement:Hr,popupStyle:f.popup,popupClassName:m.popup,visible:Ee,onClose:ua}),p.createElement(utt,Ae({},a,{ref:me,suffixIcon:ee,removeIcon:K,activeHelp:!!dt,allHelp:!!dt&&xe==="preset",focused:We,onFocus:xr,onBlur:mn,onKeyDown:un,onSubmit:_n,value:Yt,maskFormat:l,onChange:aa,onInputChange:Pa,internalPicker:i,format:s,inputReadOnly:G,disabled:C,open:Ee,onOpenChange:Le,onClick:jn,onClear:Qn,invalid:vt,onInvalid:function(nn){ut(nn,0)}}))))}var ftt=p.forwardRef(dtt);const $Ce=p.createContext(null),ptt=$Ce.Provider,RCe=p.createContext(null),mtt=RCe.Provider;var htt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],PCe=p.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,i=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,f=e.title,m=e.onChange,h=ln(e,htt),g=p.useRef(null),O=p.useRef(null),v=Ir(c,{value:o}),y=ye(v,2),S=y[0],C=y[1];p.useImperativeHandle(t,function(){return{focus:function(k){var A;(A=g.current)===null||A===void 0||A.focus(k)},blur:function(){var k;(k=g.current)===null||k===void 0||k.blur()},input:g.current,nativeElement:O.current}});var _=le(r,a,ae(ae({},"".concat(r,"-checked"),S),"".concat(r,"-disabled"),s)),w=function(k){s||("checked"in e||C(k.target.checked),m==null||m({target:oe(oe({},e),{},{type:d,checked:k.target.checked}),stopPropagation:function(){k.stopPropagation()},preventDefault:function(){k.preventDefault()},nativeEvent:k.nativeEvent}))};return p.createElement("span",{className:_,title:f,style:i,ref:O},p.createElement("input",Ae({},h,{className:"".concat(r,"-input"),ref:g,onChange:w,disabled:s,checked:!!S,type:d})),p.createElement("span",{className:"".concat(r,"-inner")}))});function kCe(e){const t=Z.useRef(null),n=()=>{ur.cancel(t.current),t.current=null};return[()=>{n(),t.current=ur(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const gtt=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Qr(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"}})}},Ott=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:i,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:f,paddingXS:m,dotColorDisabled:h,lineType:g,radioColor:O,radioBgColor:v,calc:y}=e,S=`${t}-inner`,_=y(a).sub(y(4).mul(2)),w=y(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qr(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:`${de(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Qr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${S}`]:{borderColor:r},[`${t}-input:focus-visible + ${S}`]:wc(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:w,height:w,marginBlockStart:y(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:O,borderBlockStart:0,borderInlineStart:0,borderRadius:w,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:w,height:w,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:r,backgroundColor:v,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${y(_).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},btt=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:i,colorBorder:o,motionDurationMid:s,buttonPaddingInline:l,fontSize:c,buttonBg:u,fontSizeLG:d,controlHeightLG:f,controlHeightSM:m,paddingXS:h,borderRadius:g,borderRadiusSM:O,borderRadiusLG:v,buttonCheckedBg:y,buttonSolidCheckedColor:S,colorTextDisabled:C,colorBgContainerDisabled:_,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:T,colorPrimary:k,colorPrimaryHover:A,colorPrimaryActive:I,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:Q,buttonSolidCheckedActiveBg:B,calc:D}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:c,lineHeight:de(D(n).sub(D(a).mul(2)).equal()),background:u,border:`${de(a)} ${i} ${o}`,borderBlockStartWidth:D(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:D(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${de(a)} ${i} ${o}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:de(D(f).sub(D(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},[`${r}-group-small &`]:{height:m,paddingInline:D(h).sub(a).equal(),paddingBlock:0,lineHeight:de(D(m).sub(D(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:O,borderEndStartRadius:O},"&:last-child":{borderStartEndRadius:O,borderEndEndRadius:O}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":wc(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:k,background:y,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:A,borderColor:A,"&::before":{backgroundColor:A}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:M,borderColor:M,"&:hover":{color:S,background:Q,borderColor:Q},"&:active":{color:S,background:B,borderColor:B}},"&-disabled":{color:C,backgroundColor:_,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:_,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:T,backgroundColor:w,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},vtt=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:i,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:f,colorPrimaryActive:m,colorWhite:h}=e,g=4,O=i,v=t?O-g*2:O-(g+a)*2;return{radioSize:O,dotSize:v,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:f,buttonSolidCheckedActiveBg:m,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?d:h,radioBgColor:t?s:d}},ACe=Er("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${de(n)} ${t}`,i=nr(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[gtt(i),Ott(i),btt(i)]},vtt,{unitless:{radioSize:!0,dotSize:!0}});var ytt=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=p.useContext($Ce),i=p.useContext(RCe),{getPrefixCls:o,direction:s,radio:l}=p.useContext(pn),c=p.useRef(null),u=Ci(t,c),{isFormItemInput:d}=p.useContext(io),f=R=>{var $,P;($=e.onChange)===null||$===void 0||$.call(e,R),(P=a==null?void 0:a.onChange)===null||P===void 0||P.call(a,R)},{prefixCls:m,className:h,rootClassName:g,children:O,style:v,title:y}=e,S=ytt(e,["prefixCls","className","rootClassName","children","style","title"]),C=o("radio",m),_=((a==null?void 0:a.optionType)||i)==="button",w=_?`${C}-button`:C,T=Ua(C),[k,A,I]=ACe(C,T),M=Object.assign({},S),Q=p.useContext(jo);a&&(M.name=a.name,M.onChange=f,M.checked=e.value===a.value,M.disabled=(n=M.disabled)!==null&&n!==void 0?n:a.disabled),M.disabled=(r=M.disabled)!==null&&r!==void 0?r:Q;const B=le(`${w}-wrapper`,{[`${w}-wrapper-checked`]:M.checked,[`${w}-wrapper-disabled`]:M.disabled,[`${w}-wrapper-rtl`]:s==="rtl",[`${w}-wrapper-in-form-item`]:d,[`${w}-wrapper-block`]:!!(a!=null&&a.block)},l==null?void 0:l.className,h,g,A,I,T),[D,U]=kCe(M.onClick);return k(p.createElement(VE,{component:"Radio",disabled:M.disabled},p.createElement("label",{className:B,style:Object.assign(Object.assign({},l==null?void 0:l.style),v),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:D},p.createElement(PCe,Object.assign({},M,{className:le(M.className,{[yk]:!_}),type:"radio",prefixCls:w,ref:u,onClick:U})),O!==void 0?p.createElement("span",{className:`${w}-label`},O):null)))},W$=p.forwardRef(Stt),_tt=["parentNode"],Ett="form_item";function kS(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function NCe(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:_tt.includes(n)?`${Ett}_${n}`:n}function ICe(e,t,n,r,a,i){let o=r;return i!==void 0?o=i:n.validating?o="validating":e.length?o="error":t.length?o="warning":(n.touched||a&&n.validated)&&(o="success"),o}var xtt=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=>i=>{const o=U9(a);i?n.current[o]=i:delete n.current[o]}},scrollToField:(a,i={})=>{const{focus:o}=i,s=xtt(i,["focus"]),l=rie(a,r);l&&(QXe(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),o&&r.focusField(a))},focusField:a=>{var i,o;const s=r.getFieldInstance(a);typeof(s==null?void 0:s.focus)=="function"?s.focus():(o=(i=rie(a,r))===null||i===void 0?void 0:i.focus)===null||o===void 0||o.call(i)},getFieldInstance:a=>{const i=U9(a);return n.current[i]}}),[e,t]);return[r]}const Ttt=p.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=p.useContext(pn),{name:a}=p.useContext(io),i=Nb(U9(a)),{prefixCls:o,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:d,children:f,size:m,style:h,id:g,optionType:O,name:v=i,defaultValue:y,value:S,block:C=!1,onChange:_,onMouseEnter:w,onMouseLeave:T,onFocus:k,onBlur:A}=e,[I,M]=Ir(y,{value:S}),Q=p.useCallback(Y=>{const q=I,G=Y.target.value;"value"in e||M(G),G!==q&&(_==null||_(Y))},[I,M,_]),B=n("radio",o),D=`${B}-group`,U=Ua(B),[R,$,P]=ACe(B,U);let z=f;c&&c.length>0&&(z=c.map(Y=>typeof Y=="string"||typeof Y=="number"?p.createElement(W$,{key:Y.toString(),prefixCls:B,disabled:d,value:Y,checked:I===Y},Y):p.createElement(W$,{key:`radio-group-value-options-${Y.value}`,prefixCls:B,disabled:Y.disabled||d,value:Y.value,checked:I===Y.value,title:Y.title,style:Y.style,className:Y.className,id:Y.id,required:Y.required},Y.label)));const F=Xi(m),L=le(D,`${D}-${u}`,{[`${D}-${F}`]:F,[`${D}-rtl`]:r==="rtl",[`${D}-block`]:C},s,l,$,P,U),X=p.useMemo(()=>({onChange:Q,value:I,disabled:d,name:v,optionType:O,block:C}),[Q,I,d,v,O,C]);return R(p.createElement("div",Object.assign({},vi(e,{aria:!0,data:!0}),{className:L,style:h,onMouseEnter:w,onMouseLeave:T,onFocus:k,onBlur:A,id:g,ref:t}),p.createElement(ptt,{value:X},z)))}),wtt=p.memo(Ttt);var Ctt=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}=p.useContext(pn),{prefixCls:r}=e,a=Ctt(e,["prefixCls"]),i=n("radio",r);return p.createElement(mtt,{value:"button"},p.createElement(W$,Object.assign({prefixCls:i},a,{type:"radio",ref:t})))},Rtt=p.forwardRef($tt),au=W$;au.Button=Rtt;au.Group=wtt;au.__ANT_RADIO=!0;function $g(e){return nr(e,{inputAffixPadding:e.paddingXXS})}const Rg=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:i,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:m,colorPrimary:h,controlOutlineWidth:g,controlOutline:O,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:S,inputFontSize:C,inputFontSizeLG:_,inputFontSizeSM:w}=e,T=C||n,k=w||T,A=_||s,I=Math.round((t-T*r)/2*10)/10-a,M=Math.round((i-k*r)/2*10)/10-a,Q=Math.ceil((o-A*l)/2*10)/10-a;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(M,0),paddingBlockLG:Math.max(Q,0),paddingInline:c-a,paddingInlineSM:u-a,paddingInlineLG:d-a,addonBg:f,activeBorderColor:h,hoverBorderColor:m,activeShadow:`0 0 0 ${g}px ${O}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:S,activeBg:S,inputFontSize:T,inputFontSizeLG:A,inputFontSizeSM:k}},Ptt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Jk=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({},Ptt(nr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),OX=(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}}),aie=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},OX(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),bX=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},OX(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Jk(e))}),aie(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),aie(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),iie=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),DCe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},iie(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),iie(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Jk(e))}})}),vX=(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)}},LCe=(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}}},oie=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},LCe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),yX=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},LCe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Jk(e))}),oie(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),oie(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),sie=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),QCe=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},sie(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),sie(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:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),zCe=(e,t)=>({background:e.colorBgContainer,borderWidth:`${de(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}}),lie=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},zCe(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`}}),SX=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zCe(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"}}),lie(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),lie(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),_X=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),BCe=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${de(t)} ${de(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},EX=e=>({padding:`${de(e.paddingBlockSM)} ${de(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),rx=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${de(e.paddingBlock)} ${de(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},_X(e.colorTextPlaceholder)),{"&-lg":Object.assign({},BCe(e)),"&-sm":Object.assign({},EX(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),FCe=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({},BCe(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},EX(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 ${de(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${de(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${de(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:`${de(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${de(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"},Od()),{[`${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 @@ -289,64 +289,64 @@ 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}}}})}},ttt=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,o=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({},zr(e)),ZE(e)),Wj(e)),Hj(e)),Gj(e)),Zj(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},ntt=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 ${de(e.inputAffixPadding)}`}}}},rtt=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:i,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},ZE(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}}}),ntt(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:o}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},att=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},zr(e)),mCe(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}}},cCe(e)),dCe(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}}})})}},itt=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}}}})}},ktt=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,o=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({},Qr(e)),rx(e)),bX(e)),yX(e)),vX(e)),SX(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Att=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 ${de(e.inputAffixPadding)}`}}}},Ntt=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:i,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},rx(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}}}),Att(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:o}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},Itt=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Qr(e)),FCe(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}}},DCe(e)),QCe(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}}})})}},Mtt=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}}}}},ott=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},hCe=Er(["Input","Shared"],e=>{const t=nr(e,yg(e));return[ttt(t),rtt(t)]},Sg,{resetFont:!1}),gCe=Er(["Input","Component"],e=>{const t=nr(e,yg(e));return[att(t),itt(t),ott(t),Cb(t)]},Sg,{resetFont:!1}),i5=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",i=LTe(e);return[{[`${n}-multiple${a}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:de(i.itemLineHeight)}}}]},stt=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=nr(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=nr(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[i5(a,"small"),i5(e),i5(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},QTe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},ltt=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:i,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:m,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:de(r),borderRadius:a,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Dtt=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},UCe=Er(["Input","Shared"],e=>{const t=nr(e,$g(e));return[ktt(t),Ntt(t)]},Rg,{resetFont:!1}),jCe=Er(["Input","Component"],e=>{const t=nr(e,$g(e));return[Itt(t),Mtt(t),Dtt(t),Ab(t)]},Rg,{resetFont:!1}),O5=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",i=uwe(e);return[{[`${n}-multiple${a}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:de(i.itemLineHeight)}}}]},Ltt=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=nr(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=nr(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[O5(a,"small"),O5(e),O5(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},dwe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Qtt=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:i,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:m,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:de(r),borderRadius:a,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${de(s)} ${l} ${c}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected, &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${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:f,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:m}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},ctt=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:i,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:m,colorPrimary:h,colorTextHeading:g,colorSplit:O,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:S,motionDurationMid:C,colorIconHover:_,fontWeightStrong:w,cellHeight:T,pickerCellPaddingVertical:A,colorTextDisabled:k,colorText:I,fontSize:M,motionDurationSlow:Q,withoutTimeCellHeight:F,pickerQuarterPanelContentHeight:L,borderRadiusSM:U,colorTextLightSolid:R,cellHoverBg:$,timeColumnHeight:P,timeColumnWidth:z,timeCellHeight:B,controlItemBgActive:D,marginXXS:X,pickerDatePanelPaddingHorizontal:Y,pickerControlIconMargin:q}=e,H=e.calc(o).mul(7).add(e.calc(Y).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:m,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${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:f,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:m}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},ztt=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:i,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:m,colorPrimary:h,colorTextHeading:g,colorSplit:O,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:S,motionDurationMid:C,colorIconHover:_,fontWeightStrong:w,cellHeight:T,pickerCellPaddingVertical:k,colorTextDisabled:A,colorText:I,fontSize:M,motionDurationSlow:Q,withoutTimeCellHeight:B,pickerQuarterPanelContentHeight:D,borderRadiusSM:U,colorTextLightSolid:R,cellHoverBg:$,timeColumnHeight:P,timeColumnWidth:z,timeCellHeight:F,controlItemBgActive:L,marginXXS:X,pickerDatePanelPaddingHorizontal:Y,pickerControlIconMargin:q}=e,G=e.calc(o).mul(7).add(e.calc(Y).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:m,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:H},"&-header":{display:"flex",padding:`0 ${de(l)}`,color:g,borderBottom:`${de(d)} ${f} ${O}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:de(S),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:_},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:de(S),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:q,insetInlineStart:q,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,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:T,fontWeight:"normal"},th:{height:e.calc(T).add(e.calc(A).mul(2)).equal(),color:I,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${de(A)} 0`,color:k,cursor:"pointer","&-in-view":{color:I}},ltt(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(F).mul(4).equal()},[r]:{padding:`0 ${de(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:L}},"&-decade-panel":{[r]:{padding:`0 ${de(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${de(l)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${de(l)} ${de(Y)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:U,borderEndStartRadius:U},"&:last-child:before":{borderStartEndRadius:U,borderEndEndRadius:U}},"&:hover td:before":{background:$},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Sr(R).setA(.5).toHexString()},[r]:{color:R}}},"&-range-hover td:before":{background:D}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${de(l)} ${de(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${de(d)} ${f} ${O}`},[`${t}-date-panel, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:G},"&-header":{display:"flex",padding:`0 ${de(l)}`,color:g,borderBottom:`${de(d)} ${f} ${O}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:de(S),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:_},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:de(S),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:q,insetInlineStart:q,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:v,borderInlineStartWidth:v,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:T,fontWeight:"normal"},th:{height:e.calc(T).add(e.calc(k).mul(2)).equal(),color:I,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${de(k)} 0`,color:A,cursor:"pointer","&-in-view":{color:I}},Qtt(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(B).mul(4).equal()},[r]:{padding:`0 ${de(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${de(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${de(l)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${de(l)} ${de(Y)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:U,borderEndStartRadius:U},"&:last-child:before":{borderStartEndRadius:U,borderEndEndRadius:U}},"&:hover td:before":{background:$},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new Sr(R).setA(.5).toHexString()},[r]:{color:R}}},"&-range-hover td:before":{background:L}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${de(l)} ${de(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${de(d)} ${f} ${O}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${Q}`},"&-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:P},"&-column":{flex:"1 0 auto",width:z,margin:`${de(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,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% - ${de(B)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${de(d)} ${f} ${O}`},"&-active":{background:new Sr(D).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:X,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(X).mul(2)).equal(),height:B,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(B).div(2).equal(),color:I,lineHeight:de(B),borderRadius:U,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:$}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:D}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:k,background:"transparent",cursor:"not-allowed"}}}}}}}}},utt=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:i,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${de(r)} ${c} ${u}`,"&-extra":{padding:`0 ${de(a)}`,lineHeight:de(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${de(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:de(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:de(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},dtt=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()}},ftt=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:i,lineWidth:o}=e,s=i*2,l=o*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),d=Math.min(a-s,a-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Sr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Sr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},ptt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Sg(e)),ftt(e)),Rk(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),mtt=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},Wj(e)),Zj(e)),Hj(e)),Gj(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${de(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${de(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${de(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${de(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},o5=(e,t)=>({padding:`${de(e)} ${de(t)}`}),htt=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}}}}},gtt=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:i,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,colorTextQuaternary:f,fontSizeLG:m,inputFontSizeLG:h,fontSizeSM:g,inputFontSizeSM:O,controlHeightSM:v,paddingInlineSM:y,paddingXS:S,marginXS:C,colorIcon:_,lineWidthBold:w,colorPrimary:T,motionDurationSlow:A,zIndexPopup:k,paddingXXS:I,sizePopupArrow:M,colorBgElevated:Q,borderRadiusLG:F,boxShadowSecondary:L,borderRadiusSM:U,colorSplit:R,cellHoverBg:$,presetsWidth:P,presetsMaxWidth:z,boxShadowPopoverArrow:B,fontHeight:D,lineHeightLG:X}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},zr(e)),o5(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${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 ${c}`},Kj(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},o5(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??m,lineHeight:X}}),"&-small":Object.assign(Object.assign({},o5(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:O??g}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(S).div(2).equal(),color:f,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:f,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{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:m,color:f,fontSize:m,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(i).mul(-1).equal(),height:w,background:T,opacity:0,transition:`all ${A} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${de(S)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:y}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},zr(e)),ctt(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:k,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:P},"&-column":{flex:"1 0 auto",width:z,margin:`${de(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,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% - ${de(F)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${de(d)} ${f} ${O}`},"&-active":{background:new Sr(L).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:X,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(X).mul(2)).equal(),height:F,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(F).div(2).equal(),color:I,lineHeight:de(F),borderRadius:U,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:$}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:A,background:"transparent",cursor:"not-allowed"}}}}}}}}},Btt=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:i,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${de(r)} ${c} ${u}`,"&-extra":{padding:`0 ${de(a)}`,lineHeight:de(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${de(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:de(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:de(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Ftt=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()}},Utt=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:i,lineWidth:o}=e,s=i*2,l=o*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),d=Math.min(a-s,a-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Sr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Sr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},jtt=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Rg(e)),Utt(e)),Fk(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Xtt=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},bX(e)),SX(e)),yX(e)),vX(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${de(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${de(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${de(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${de(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},b5=(e,t)=>({padding:`${de(e)} ${de(t)}`}),Ytt=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}}}}},Vtt=e=>{var t;const{componentCls:n,antCls:r,paddingInline:a,lineWidth:i,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,colorTextQuaternary:f,fontSizeLG:m,inputFontSizeLG:h,fontSizeSM:g,inputFontSizeSM:O,controlHeightSM:v,paddingInlineSM:y,paddingXS:S,marginXS:C,colorIcon:_,lineWidthBold:w,colorPrimary:T,motionDurationSlow:k,zIndexPopup:A,paddingXXS:I,sizePopupArrow:M,colorBgElevated:Q,borderRadiusLG:B,boxShadowSecondary:D,borderRadiusSM:U,colorSplit:R,cellHoverBg:$,presetsWidth:P,presetsMaxWidth:z,boxShadowPopoverArrow:F,fontHeight:L,lineHeightLG:X}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},Qr(e)),b5(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${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 ${c}`},_X(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},b5(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:h??m,lineHeight:X}}),"&-small":Object.assign(Object.assign({},b5(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:O??g}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(S).div(2).equal(),color:f,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:f,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{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:m,color:f,fontSize:m,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(i).mul(-1).equal(),height:w,background:T,opacity:0,transition:`all ${k} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${de(S)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:a},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:y}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Qr(e)),ztt(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:A,[`&${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:mk},[`&${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:wk},[`&${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:fk},[`&${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:hk},[`&${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:pk},[`${n}-panel > ${n}-time-panel`]:{paddingTop:I},[`${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 ${A} ease-out`},WTe(e,Q,B)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Q,borderRadius:F,boxShadow:L,transition:`margin ${A}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:P,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:S,borderInlineEnd:`${de(i)} ${o} ${R}`,li:Object.assign(Object.assign({},ll),{borderRadius:U,paddingInline:S,paddingBlock:e.calc(v).sub(D).div(2).equal(),cursor:"pointer",transition:`all ${A}`,"+ li":{marginTop:C},"&:hover":{background:$}})}},[`${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:s}}}}),"&-dropdown-range":{padding:`${de(e.calc(M).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},fd(e,"slide-up"),fd(e,"slide-down"),X0(e,"move-up"),X0(e,"move-down")]},OCe=Er("DatePicker",e=>{const t=nr(yg(e),dtt(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[utt(t),gtt(t),mtt(t),htt(t),stt(t),Cb(e,{focusElCls:`${e.componentCls}-focused`})]},ptt);var Ott={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"},btt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Ott}))},Mb=p.forwardRef(btt);const Uk=p.createContext(null);var vtt=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,i=t.indicator,o=i===void 0?{}:i,s=o.size,l=o.align,c=l===void 0?"center":l,u=p.useState(),d=be(u,2),f=d[0],m=d[1],h=p.useRef(),g=Z.useCallback(function(v){return typeof s=="function"?s(v):typeof s=="number"?s:v},[s]);function O(){ur.cancel(h.current)}return p.useEffect(function(){var v={};if(n)if(r){v.width=g(n.width);var y=a?"right":"left";c==="start"&&(v[y]=n[y]),c==="center"&&(v[y]=n[y]+n.width/2,v.transform=a?"translateX(50%)":"translateX(-50%)"),c==="end"&&(v[y]=n[y]+n.width,v.transform="translateX(-100%)")}else v.height=g(n.height),c==="start"&&(v.top=n.top),c==="center"&&(v.top=n.top+n.height/2,v.transform="translateY(-50%)"),c==="end"&&(v.top=n.top+n.height,v.transform="translateY(-100%)");return O(),h.current=ur(function(){var S=f&&v&&Object.keys(v).every(function(C){var _=v[C],w=f[C];return typeof _=="number"&&typeof w=="number"?Math.round(_)===Math.round(w):_===w});S||m(v)}),O},[JSON.stringify(n),r,a,c,g]),{style:f}},zae={width:0,height:0,left:0,top:0};function ytt(e,t,n){return p.useMemo(function(){for(var r,a=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||zae,o=i.left+i.width,s=0;sL?(Q=I,w.current="x"):(Q=M,w.current="y"),t(-Q,-Q)&&k.preventDefault()}var A=p.useRef(null);A.current={onTouchStart:S,onTouchMove:C,onTouchEnd:_,onWheel:T},p.useEffect(function(){function k(F){A.current.onTouchStart(F)}function I(F){A.current.onTouchMove(F)}function M(F){A.current.onTouchEnd(F)}function Q(F){A.current.onWheel(F)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",k,{passive:!0}),e.current.addEventListener("wheel",Q,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",M)}},[])}function bCe(e){var t=p.useState(0),n=be(t,2),r=n[0],a=n[1],i=p.useRef(0),o=p.useRef();return o.current=e,$h(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){i.current===r&&(i.current+=1,a(i.current))}}function Ett(e){var t=p.useRef([]),n=p.useState({}),r=be(n,2),a=r[1],i=p.useRef(typeof e=="function"?e():e),o=bCe(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,a({})});function s(l){t.current.push(l),o()}return[i.current,s]}var jae={width:0,height:0,left:0,top:0,right:0};function xtt(e,t,n,r,a,i,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,d,f;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),p.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,h=m,g=0;gMath.floor(f+t)){h=g-1;break}}for(var v=0,y=m-1;y>=0;y-=1){var S=e.get(s[y].key)||jae;if(S[d]h?[0,-1]:[v,h]},[e,t,r,a,i,f,l,s.map(function(m){return m.key}).join("_"),c])}function Xae(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var Ttt="TABS_DQ";function vCe(e){return String(e).replace(/"/g,Ttt)}function eX(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var yCe=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,i=e.style;return!r||r.showAdd===!1?null:p.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),Yae=p.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var i,o={};return Ut(a)==="object"&&!p.isValidElement(a)?o=a:o.right=a,n==="right"&&(i=o.right),n==="left"&&(i=o.left),i?p.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),wtt=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,i=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,d=e.editable,f=e.tabBarGutter,m=e.rtl,h=e.removeAriaLabel,g=e.onTabClick,O=e.getPopupContainer,v=e.popupClassName,y=p.useState(!1),S=be(y,2),C=S[0],_=S[1],w=p.useState(null),T=be(w,2),A=T[0],k=T[1],I=l.icon,M=I===void 0?"More":I,Q="".concat(r,"-more-popup"),F="".concat(n,"-dropdown"),L=A!==null?"".concat(Q,"-").concat(A):null,U=i==null?void 0:i.dropdownAriaLabel;function R(Y,q){Y.preventDefault(),Y.stopPropagation(),d.onEdit("remove",{key:q,event:Y})}var $=p.createElement(Ab,{onClick:function(q){var H=q.key,J=q.domEvent;g(H,J),_(!1)},prefixCls:"".concat(F,"-menu"),id:Q,tabIndex:-1,role:"listbox","aria-activedescendant":L,selectedKeys:[A],"aria-label":U!==void 0?U:"expanded dropdown"},a.map(function(Y){var q=Y.closable,H=Y.disabled,J=Y.closeIcon,te=Y.key,ne=Y.label,ie=eX(q,J,d,H);return p.createElement(GE,{key:te,id:"".concat(Q,"-").concat(te),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(te),disabled:H},p.createElement("span",null,ne),ie&&p.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(F,"-menu-item-remove"),onClick:function(ue){ue.stopPropagation(),R(ue,te)}},J||d.removeIcon||"×"))}));function P(Y){for(var q=a.filter(function(ie){return!ie.disabled}),H=q.findIndex(function(ie){return ie.key===A})||0,J=q.length,te=0;te$t?"left":"right"})}),F=be(Q,2),L=F[0],U=F[1],R=Bae(0,function(Qt,$t){!M&&g&&g({direction:Qt>$t?"top":"bottom"})}),$=be(R,2),P=$[0],z=$[1],B=p.useState([0,0]),D=be(B,2),X=D[0],Y=D[1],q=p.useState([0,0]),H=be(q,2),J=H[0],te=H[1],ne=p.useState([0,0]),ie=be(ne,2),le=ie[0],ue=ie[1],oe=p.useState([0,0]),ge=be(oe,2),ve=ge[0],he=ge[1],me=Ett(new Map),xe=be(me,2),we=xe[0],Qe=xe[1],Ie=ytt(S,we,J[0]),Ee=dw(X,M),De=dw(J,M),Le=dw(le,M),Ne=dw(ve,M),et=Math.floor(Ee)it?it:Qt}var We=p.useRef(null),Me=p.useState(),Ge=be(Me,2),ze=Ge[0],qe=Ge[1];function Pe(){qe(Date.now())}function Ae(){We.current&&clearTimeout(We.current)}_tt(T,function(Qt,$t){function sn(Cn,It){Cn(function(Ze){var dt=ut(Ze+It);return dt})}return et?(M?sn(U,Qt):sn(z,$t),Ae(),Pe(),!0):!1}),p.useEffect(function(){return Ae(),ze&&(We.current=setTimeout(function(){qe(0)},100)),Ae},[ze]);var Oe=xtt(Ie,He,M?L:P,De,Le,Ne,se(se({},e),{},{tabs:S})),Te=be(Oe,2),Ue=Te[0],rt=Te[1],tt=ar(function(){var Qt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,$t=Ie.get(Qt)||{width:0,height:0,left:0,right:0,top:0};if(M){var sn=L;s?$t.rightL+He&&(sn=$t.right+$t.width-He):$t.left<-L?sn=-$t.left:$t.left+$t.width>-L+He&&(sn=-($t.left+$t.width-He)),z(0),U(ut(sn))}else{var Cn=P;$t.top<-P?Cn=-$t.top:$t.top+$t.height>-P+He&&(Cn=-($t.top+$t.height-He)),U(0),z(ut(Cn))}}),ot=p.useState(),St=be(ot,2),Xe=St[0],je=St[1],bt=p.useState(!1),xt=be(bt,2),vt=xt[0],Nt=xt[1],Mt=S.filter(function(Qt){return!Qt.disabled}).map(function(Qt){return Qt.key}),Ot=function($t){var sn=Mt.indexOf(Xe||o),Cn=Mt.length,It=(sn+$t+Cn)%Cn,Ze=Mt[It];je(Ze)},ft=function($t,sn){var Cn=Mt.indexOf($t),It=S.find(function(dt){return dt.key===$t}),Ze=eX(It==null?void 0:It.closable,It==null?void 0:It.closeIcon,c,It==null?void 0:It.disabled);Ze&&(sn.preventDefault(),sn.stopPropagation(),c.onEdit("remove",{key:$t,event:sn}),Cn===Mt.length-1?Ot(-1):Ot(1))},st=function($t,sn){Nt(!0),sn.button===1&&ft($t,sn)},Et=function($t){var sn=$t.code,Cn=s&&M,It=Mt[0],Ze=Mt[Mt.length-1];switch(sn){case"ArrowLeft":{M&&Ot(Cn?1:-1);break}case"ArrowRight":{M&&Ot(Cn?-1:1);break}case"ArrowUp":{$t.preventDefault(),M||Ot(-1);break}case"ArrowDown":{$t.preventDefault(),M||Ot(1);break}case"Home":{$t.preventDefault(),je(It);break}case"End":{$t.preventDefault(),je(Ze);break}case"Enter":case"Space":{$t.preventDefault(),h(Xe??o,$t);break}case"Backspace":case"Delete":{ft(Xe,$t);break}}},Jt={};M?Jt[s?"marginRight":"marginLeft"]=f:Jt.marginTop=f;var en=S.map(function(Qt,$t){var sn=Qt.key;return p.createElement($tt,{id:a,prefixCls:y,key:sn,tab:Qt,style:$t===0?void 0:Jt,closable:Qt.closable,editable:c,active:sn===o,focus:sn===Xe,renderWrapper:m,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:Mt.length,currentPosition:$t+1,onClick:function(It){h(sn,It)},onKeyDown:Et,onFocus:function(){vt||je(sn),tt(sn),Pe(),T.current&&(s||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:function(){je(void 0)},onMouseDown:function(It){return st(sn,It)},onMouseUp:function(){Nt(!1)}})}),Rn=function(){return Qe(function(){var $t,sn=new Map,Cn=($t=A.current)===null||$t===void 0?void 0:$t.getBoundingClientRect();return S.forEach(function(It){var Ze,dt=It.key,hn=(Ze=A.current)===null||Ze===void 0?void 0:Ze.querySelector('[data-node-key="'.concat(vCe(dt),'"]'));if(hn){var Vn=Rtt(hn,Cn),rr=be(Vn,4),ca=rr[0],Wr=rr[1],na=rr[2],Gr=rr[3];sn.set(dt,{width:ca,height:Wr,left:na,top:Gr})}}),sn})};p.useEffect(function(){Rn()},[S.map(function(Qt){return Qt.key}).join("_")]);var jt=bCe(function(){var Qt=hO(C),$t=hO(_),sn=hO(w);Y([Qt[0]-$t[0]-sn[0],Qt[1]-$t[1]-sn[1]]);var Cn=hO(I);ue(Cn);var It=hO(k);he(It);var Ze=hO(A);te([Ze[0]-Cn[0],Ze[1]-Cn[1]]),Rn()}),wt=S.slice(0,Ue),an=S.slice(rt+1),$n=[].concat(Ke(wt),Ke(an)),Gn=Ie.get(o),Xn=vtt({activeTabOffset:Gn,horizontal:M,indicator:O,rtl:s}),gr=Xn.style;p.useEffect(function(){tt()},[o,lt,it,Xae(Gn),Xae(Ie),M]),p.useEffect(function(){jt()},[s]);var Fn=!!$n.length,Bt="".concat(y,"-nav-wrap"),Se,Fe,mt,yt;return M?s?(Fe=L>0,Se=L!==it):(Se=L<0,Fe=L!==lt):(mt=P<0,yt=P!==lt),p.createElement(Eo,{onResize:jt},p.createElement("div",{ref:Sd(t,C),role:"tablist","aria-orientation":M?"horizontal":"vertical",className:ce("".concat(y,"-nav"),n),style:r,onKeyDown:function(){Pe()}},p.createElement(Yae,{ref:_,position:"left",extra:l,prefixCls:y}),p.createElement(Eo,{onResize:jt},p.createElement("div",{className:ce(Bt,ae(ae(ae(ae({},"".concat(Bt,"-ping-left"),Se),"".concat(Bt,"-ping-right"),Fe),"".concat(Bt,"-ping-top"),mt),"".concat(Bt,"-ping-bottom"),yt)),ref:T},p.createElement(Eo,{onResize:jt},p.createElement("div",{ref:A,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(L,"px, ").concat(P,"px)"),transition:ze?"none":void 0}},en,p.createElement(yCe,{ref:I,prefixCls:y,locale:u,editable:c,style:se(se({},en.length===0?void 0:Jt),{},{visibility:Fn?"hidden":null})}),p.createElement("div",{className:ce("".concat(y,"-ink-bar"),ae({},"".concat(y,"-ink-bar-animated"),i.inkBar)),style:gr}))))),p.createElement(Ctt,Re({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:k,prefixCls:y,tabs:$n,className:!Fn&&pt,tabMoving:!!ze})),p.createElement(Yae,{ref:w,position:"right",extra:l,prefixCls:y})))}),SCe=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.id,o=e.active,s=e.tabKey,l=e.children;return p.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!o,style:a,className:ce(n,o&&"".concat(n,"-active"),r),ref:t},l)}),Ptt=["renderTabBar"],ktt=["label","key"],Att=function(t){var n=t.renderTabBar,r=on(t,Ptt),a=p.useContext(Uk),i=a.tabs;if(n){var o=se(se({},r),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=on(s,ktt);return p.createElement(SCe,Re({tab:l,key:c,tabKey:c},u))})});return n(o,Vae)}return p.createElement(Vae,r)},Ntt=["key","forceRender","style","className","destroyInactiveTabPane"],Itt=function(t){var n=t.id,r=t.activeKey,a=t.animated,i=t.tabPosition,o=t.destroyInactiveTabPane,s=p.useContext(Uk),l=s.prefixCls,c=s.tabs,u=a.tabPane,d="".concat(l,"-tabpane");return p.createElement("div",{className:ce("".concat(l,"-content-holder"))},p.createElement("div",{className:ce("".concat(l,"-content"),"".concat(l,"-content-").concat(i),ae({},"".concat(l,"-content-animated"),u))},c.map(function(f){var m=f.key,h=f.forceRender,g=f.style,O=f.className,v=f.destroyInactiveTabPane,y=on(f,Ntt),S=m===r;return p.createElement(ao,Re({key:m,visible:S,forceRender:h,removeOnLeave:!!(o||v),leavedClassName:"".concat(d,"-hidden")},a.tabPaneMotion),function(C,_){var w=C.style,T=C.className;return p.createElement(SCe,Re({},y,{prefixCls:d,id:n,tabKey:m,animated:u,active:S,style:se(se({},g),w),className:ce(O,T),ref:_}))})})))};function Mtt(){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=se({inkBar:!0},Ut(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Dtt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],qae=0,Ltt=p.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,i=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,m=f===void 0?"top":f,h=e.tabBarGutter,g=e.tabBarStyle,O=e.tabBarExtraContent,v=e.locale,y=e.more,S=e.destroyInactiveTabPane,C=e.renderTabBar,_=e.onChange,w=e.onTabClick,T=e.onTabScroll,A=e.getPopupContainer,k=e.popupClassName,I=e.indicator,M=on(e,Dtt),Q=p.useMemo(function(){return(o||[]).filter(function(ve){return ve&&Ut(ve)==="object"&&"key"in ve})},[o]),F=s==="rtl",L=Mtt(d),U=p.useState(!1),R=be(U,2),$=R[0],P=R[1];p.useEffect(function(){P(xk())},[]);var z=Ir(function(){var ve;return(ve=Q[0])===null||ve===void 0?void 0:ve.key},{value:l,defaultValue:c}),B=be(z,2),D=B[0],X=B[1],Y=p.useState(function(){return Q.findIndex(function(ve){return ve.key===D})}),q=be(Y,2),H=q[0],J=q[1];p.useEffect(function(){var ve=Q.findIndex(function(me){return me.key===D});if(ve===-1){var he;ve=Math.max(0,Math.min(H,Q.length-1)),X((he=Q[ve])===null||he===void 0?void 0:he.key)}J(ve)},[Q.map(function(ve){return ve.key}).join("_"),D,H]);var te=Ir(null,{value:n}),ne=be(te,2),ie=ne[0],le=ne[1];p.useEffect(function(){n||(le("rc-tabs-".concat(qae)),qae+=1)},[]);function ue(ve,he){w==null||w(ve,he);var me=ve!==D;X(ve),me&&(_==null||_(ve))}var oe={id:ie,activeKey:D,animated:L,tabPosition:m,rtl:F,mobile:$},ge=se(se({},oe),{},{editable:u,locale:v,more:y,tabBarGutter:h,onTabClick:ue,onTabScroll:T,extra:O,style:g,panes:null,getPopupContainer:A,popupClassName:k,indicator:I});return p.createElement(Uk.Provider,{value:{tabs:Q,prefixCls:a}},p.createElement("div",Re({ref:t,id:n,className:ce(a,"".concat(a,"-").concat(m),ae(ae(ae({},"".concat(a,"-mobile"),$),"".concat(a,"-editable"),u),"".concat(a,"-rtl"),F),i)},M),p.createElement(Att,Re({},ge,{renderTabBar:C})),p.createElement(Itt,Re({destroyInactiveTabPane:S},oe,{animated:L}))))});const Qtt={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ztt(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({},Qtt),{motionName:cl(e,"switch")})),n}var Btt=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 Utt(e,t){if(e)return e.map(r=>{var a;const i=(a=r.destroyOnHidden)!==null&&a!==void 0?a:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:i})});const n=To(t).map(r=>{if(p.isValidElement(r)){const{key:a,props:i}=r,o=i||{},{tab:s}=o,l=Btt(o,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return Ftt(n)}const jtt=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}`}}}}},[fd(e,"slide-up"),fd(e,"slide-down")]]},Xtt=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:i,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${de(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:wc(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:de(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:de(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${de(e.borderRadiusLG)} 0 0 ${de(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 ${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ytt=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},zr(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:`${de(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({},ll),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${de(e.paddingXXS)} ${de(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"}}})}})}},Vtt=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:i,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${de(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:xk},[`&${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:Ck},[`&${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:Tk},[`${n}-panel > ${n}-time-panel`]:{paddingTop:I},[`${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 ${k} ease-out`},Swe(e,Q,F)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Q,borderRadius:B,boxShadow:D,transition:`margin ${k}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:P,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:S,borderInlineEnd:`${de(i)} ${o} ${R}`,li:Object.assign(Object.assign({},ll),{borderRadius:U,paddingInline:S,paddingBlock:e.calc(v).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${k}`,"+ li":{marginTop:C},"&:hover":{background:$}})}},[`${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:s}}}}),"&-dropdown-range":{padding:`${de(e.calc(M).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},bd(e,"slide-up"),bd(e,"slide-down"),G0(e,"move-up"),G0(e,"move-down")]},XCe=Er("DatePicker",e=>{const t=nr($g(e),Ftt(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Btt(t),Vtt(t),Xtt(t),Ytt(t),Ltt(t),Ab(e,{focusElCls:`${e.componentCls}-focused`})]},jtt);var qtt={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"},Wtt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:qtt}))},Bb=p.forwardRef(Wtt);const eA=p.createContext(null);var Gtt=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,i=t.indicator,o=i===void 0?{}:i,s=o.size,l=o.align,c=l===void 0?"center":l,u=p.useState(),d=ye(u,2),f=d[0],m=d[1],h=p.useRef(),g=Z.useCallback(function(v){return typeof s=="function"?s(v):typeof s=="number"?s:v},[s]);function O(){ur.cancel(h.current)}return p.useEffect(function(){var v={};if(n)if(r){v.width=g(n.width);var y=a?"right":"left";c==="start"&&(v[y]=n[y]),c==="center"&&(v[y]=n[y]+n.width/2,v.transform=a?"translateX(50%)":"translateX(-50%)"),c==="end"&&(v[y]=n[y]+n.width,v.transform="translateX(-100%)")}else v.height=g(n.height),c==="start"&&(v.top=n.top),c==="center"&&(v.top=n.top+n.height/2,v.transform="translateY(-50%)"),c==="end"&&(v.top=n.top+n.height,v.transform="translateY(-100%)");return O(),h.current=ur(function(){var S=f&&v&&Object.keys(v).every(function(C){var _=v[C],w=f[C];return typeof _=="number"&&typeof w=="number"?Math.round(_)===Math.round(w):_===w});S||m(v)}),O},[JSON.stringify(n),r,a,c,g]),{style:f}},cie={width:0,height:0,left:0,top:0};function Htt(e,t,n){return p.useMemo(function(){for(var r,a=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||cie,o=i.left+i.width,s=0;sD?(Q=I,w.current="x"):(Q=M,w.current="y"),t(-Q,-Q)&&A.preventDefault()}var k=p.useRef(null);k.current={onTouchStart:S,onTouchMove:C,onTouchEnd:_,onWheel:T},p.useEffect(function(){function A(B){k.current.onTouchStart(B)}function I(B){k.current.onTouchMove(B)}function M(B){k.current.onTouchEnd(B)}function Q(B){k.current.onWheel(B)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",M,{passive:!0}),e.current.addEventListener("touchstart",A,{passive:!0}),e.current.addEventListener("wheel",Q,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",M)}},[])}function YCe(e){var t=p.useState(0),n=ye(t,2),r=n[0],a=n[1],i=p.useRef(0),o=p.useRef();return o.current=e,Mh(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[r]),function(){i.current===r&&(i.current+=1,a(i.current))}}function Jtt(e){var t=p.useRef([]),n=p.useState({}),r=ye(n,2),a=r[1],i=p.useRef(typeof e=="function"?e():e),o=YCe(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,a({})});function s(l){t.current.push(l),o()}return[i.current,s]}var pie={width:0,height:0,left:0,top:0,right:0};function ent(e,t,n,r,a,i,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,d,f;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",f=Math.abs(n)):(u="height",d="top",f=-n),p.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,h=m,g=0;gMath.floor(f+t)){h=g-1;break}}for(var v=0,y=m-1;y>=0;y-=1){var S=e.get(s[y].key)||pie;if(S[d]h?[0,-1]:[v,h]},[e,t,r,a,i,f,l,s.map(function(m){return m.key}).join("_"),c])}function mie(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var tnt="TABS_DQ";function VCe(e){return String(e).replace(/"/g,tnt)}function xX(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var qCe=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,i=e.style;return!r||r.showAdd===!1?null:p.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),hie=p.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var i,o={};return Xt(a)==="object"&&!p.isValidElement(a)?o=a:o.right=a,n==="right"&&(i=o.right),n==="left"&&(i=o.left),i?p.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),nnt=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,i=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,d=e.editable,f=e.tabBarGutter,m=e.rtl,h=e.removeAriaLabel,g=e.onTabClick,O=e.getPopupContainer,v=e.popupClassName,y=p.useState(!1),S=ye(y,2),C=S[0],_=S[1],w=p.useState(null),T=ye(w,2),k=T[0],A=T[1],I=l.icon,M=I===void 0?"More":I,Q="".concat(r,"-more-popup"),B="".concat(n,"-dropdown"),D=k!==null?"".concat(Q,"-").concat(k):null,U=i==null?void 0:i.dropdownAriaLabel;function R(Y,q){Y.preventDefault(),Y.stopPropagation(),d.onEdit("remove",{key:q,event:Y})}var $=p.createElement(Lb,{onClick:function(q){var G=q.key,ee=q.domEvent;g(G,ee),_(!1)},prefixCls:"".concat(B,"-menu"),id:Q,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[k],"aria-label":U!==void 0?U:"expanded dropdown"},a.map(function(Y){var q=Y.closable,G=Y.disabled,ee=Y.closeIcon,K=Y.key,ne=Y.label,ie=xX(q,ee,d,G);return p.createElement(tx,{key:K,id:"".concat(Q,"-").concat(K),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(K),disabled:G},p.createElement("span",null,ne),ie&&p.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(B,"-menu-item-remove"),onClick:function(ue){ue.stopPropagation(),R(ue,K)}},ee||d.removeIcon||"×"))}));function P(Y){for(var q=a.filter(function(ie){return!ie.disabled}),G=q.findIndex(function(ie){return ie.key===k})||0,ee=q.length,K=0;KTt?"left":"right"})}),B=ye(Q,2),D=B[0],U=B[1],R=uie(0,function(wt,Tt){!M&&g&&g({direction:wt>Tt?"top":"bottom"})}),$=ye(R,2),P=$[0],z=$[1],F=p.useState([0,0]),L=ye(F,2),X=L[0],Y=L[1],q=p.useState([0,0]),G=ye(q,2),ee=G[0],K=G[1],ne=p.useState([0,0]),ie=ye(ne,2),se=ie[0],ue=ie[1],ce=p.useState([0,0]),be=ye(ce,2),ge=be[0],Oe=be[1],me=Jtt(new Map),Te=ye(me,2),Ce=Te[0],Fe=Te[1],Me=Htt(S,Ce,ee[0]),Ee=Ow(X,M),Le=Ow(ee,M),ze=Ow(se,M),Qe=Ow(ge,M),Je=Math.floor(Ee)lt?lt:wt}var Ze=p.useRef(null),De=p.useState(),Ke=ye(De,2),Be=Ke[0],We=Ke[1];function Re(){We(Date.now())}function Ie(){Ze.current&&clearTimeout(Ze.current)}Ktt(T,function(wt,Tt){function Yt(En,Rt){En(function(qe){var Et=pt(qe+Rt);return Et})}return Je?(M?Yt(U,wt):Yt(z,Tt),Ie(),Re(),!0):!1}),p.useEffect(function(){return Ie(),Be&&(Ze.current=setTimeout(function(){We(0)},100)),Ie},[Be]);var ve=ent(Me,He,M?D:P,Le,ze,Qe,oe(oe({},e),{},{tabs:S})),we=ye(ve,2),Xe=we[0],rt=we[1],at=ar(function(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,Tt=Me.get(wt)||{width:0,height:0,left:0,right:0,top:0};if(M){var Yt=D;s?Tt.rightD+He&&(Yt=Tt.right+Tt.width-He):Tt.left<-D?Yt=-Tt.left:Tt.left+Tt.width>-D+He&&(Yt=-(Tt.left+Tt.width-He)),z(0),U(pt(Yt))}else{var En=P;Tt.top<-P?En=-Tt.top:Tt.top+Tt.height>-P+He&&(En=-(Tt.top+Tt.height-He)),U(0),z(pt(En))}}),ct=p.useState(),mt=ye(ct,2),je=mt[0],Ye=mt[1],yt=p.useState(!1),$t=ye(yt,2),St=$t[0],Mt=$t[1],Qt=S.filter(function(wt){return!wt.disabled}).map(function(wt){return wt.key}),Ot=function(Tt){var Yt=Qt.indexOf(je||o),En=Qt.length,Rt=(Yt+Tt+En)%En,qe=Qt[Rt];Ye(qe)},ht=function(Tt,Yt){var En=Qt.indexOf(Tt),Rt=S.find(function(Et){return Et.key===Tt}),qe=xX(Rt==null?void 0:Rt.closable,Rt==null?void 0:Rt.closeIcon,c,Rt==null?void 0:Rt.disabled);qe&&(Yt.preventDefault(),Yt.stopPropagation(),c.onEdit("remove",{key:Tt,event:Yt}),En===Qt.length-1?Ot(-1):Ot(1))},ut=function(Tt,Yt){Mt(!0),Yt.button===1&&ht(Tt,Yt)},vt=function(Tt){var Yt=Tt.code,En=s&&M,Rt=Qt[0],qe=Qt[Qt.length-1];switch(Yt){case"ArrowLeft":{M&&Ot(En?1:-1);break}case"ArrowRight":{M&&Ot(En?-1:1);break}case"ArrowUp":{Tt.preventDefault(),M||Ot(-1);break}case"ArrowDown":{Tt.preventDefault(),M||Ot(1);break}case"Home":{Tt.preventDefault(),Ye(Rt);break}case"End":{Tt.preventDefault(),Ye(qe);break}case"Enter":case"Space":{Tt.preventDefault(),h(je??o,Tt);break}case"Backspace":case"Delete":{ht(je,Tt);break}}},Gt={};M?Gt[s?"marginRight":"marginLeft"]=f:Gt.marginTop=f;var en=S.map(function(wt,Tt){var Yt=wt.key;return p.createElement(ant,{id:a,prefixCls:y,key:Yt,tab:wt,style:Tt===0?void 0:Gt,closable:wt.closable,editable:c,active:Yt===o,focus:Yt===je,renderWrapper:m,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:Qt.length,currentPosition:Tt+1,onClick:function(Rt){h(Yt,Rt)},onKeyDown:vt,onFocus:function(){St||Ye(Yt),at(Yt),Re(),T.current&&(s||(T.current.scrollLeft=0),T.current.scrollTop=0)},onBlur:function(){Ye(void 0)},onMouseDown:function(Rt){return ut(Yt,Rt)},onMouseUp:function(){Mt(!1)}})}),Rn=function(){return Fe(function(){var Tt,Yt=new Map,En=(Tt=k.current)===null||Tt===void 0?void 0:Tt.getBoundingClientRect();return S.forEach(function(Rt){var qe,Et=Rt.key,hn=(qe=k.current)===null||qe===void 0?void 0:qe.querySelector('[data-node-key="'.concat(VCe(Et),'"]'));if(hn){var Zn=int(hn,En),rr=ye(Zn,4),ua=rr[0],Gr=rr[1],ra=rr[2],Hr=rr[3];Yt.set(Et,{width:ua,height:Gr,left:ra,top:Hr})}}),Yt})};p.useEffect(function(){Rn()},[S.map(function(wt){return wt.key}).join("_")]);var Ut=YCe(function(){var wt=EO(C),Tt=EO(_),Yt=EO(w);Y([wt[0]-Tt[0]-Yt[0],wt[1]-Tt[1]-Yt[1]]);var En=EO(I);ue(En);var Rt=EO(A);Oe(Rt);var qe=EO(k);K([qe[0]-En[0],qe[1]-En[1]]),Rn()}),Ct=S.slice(0,Xe),Vt=S.slice(rt+1),_n=[].concat(et(Ct),et(Vt)),jn=Me.get(o),Qn=Gtt({activeTabOffset:jn,horizontal:M,indicator:O,rtl:s}),fr=Qn.style;p.useEffect(function(){at()},[o,st,lt,mie(jn),mie(Me),M]),p.useEffect(function(){Ut()},[s]);var Pt=!!_n.length,xe="".concat(y,"-nav-wrap"),pe,$e,tt,dt;return M?s?($e=D>0,pe=D!==lt):(pe=D<0,$e=D!==st):(tt=P<0,dt=P!==st),p.createElement(_o,{onResize:Ut},p.createElement("div",{ref:Cd(t,C),role:"tablist","aria-orientation":M?"horizontal":"vertical",className:le("".concat(y,"-nav"),n),style:r,onKeyDown:function(){Re()}},p.createElement(hie,{ref:_,position:"left",extra:l,prefixCls:y}),p.createElement(_o,{onResize:Ut},p.createElement("div",{className:le(xe,ae(ae(ae(ae({},"".concat(xe,"-ping-left"),pe),"".concat(xe,"-ping-right"),$e),"".concat(xe,"-ping-top"),tt),"".concat(xe,"-ping-bottom"),dt)),ref:T},p.createElement(_o,{onResize:Ut},p.createElement("div",{ref:k,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(P,"px)"),transition:Be?"none":void 0}},en,p.createElement(qCe,{ref:I,prefixCls:y,locale:u,editable:c,style:oe(oe({},en.length===0?void 0:Gt),{},{visibility:Pt?"hidden":null})}),p.createElement("div",{className:le("".concat(y,"-ink-bar"),ae({},"".concat(y,"-ink-bar-animated"),i.inkBar)),style:fr}))))),p.createElement(rnt,Ae({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:A,prefixCls:y,tabs:_n,className:!Pt&>,tabMoving:!!Be})),p.createElement(hie,{ref:w,position:"right",extra:l,prefixCls:y})))}),WCe=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.id,o=e.active,s=e.tabKey,l=e.children;return p.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!o,style:a,className:le(n,o&&"".concat(n,"-active"),r),ref:t},l)}),ont=["renderTabBar"],snt=["label","key"],lnt=function(t){var n=t.renderTabBar,r=ln(t,ont),a=p.useContext(eA),i=a.tabs;if(n){var o=oe(oe({},r),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=ln(s,snt);return p.createElement(WCe,Ae({tab:l,key:c,tabKey:c},u))})});return n(o,gie)}return p.createElement(gie,r)},cnt=["key","forceRender","style","className","destroyInactiveTabPane"],unt=function(t){var n=t.id,r=t.activeKey,a=t.animated,i=t.tabPosition,o=t.destroyInactiveTabPane,s=p.useContext(eA),l=s.prefixCls,c=s.tabs,u=a.tabPane,d="".concat(l,"-tabpane");return p.createElement("div",{className:le("".concat(l,"-content-holder"))},p.createElement("div",{className:le("".concat(l,"-content"),"".concat(l,"-content-").concat(i),ae({},"".concat(l,"-content-animated"),u))},c.map(function(f){var m=f.key,h=f.forceRender,g=f.style,O=f.className,v=f.destroyInactiveTabPane,y=ln(f,cnt),S=m===r;return p.createElement(ro,Ae({key:m,visible:S,forceRender:h,removeOnLeave:!!(o||v),leavedClassName:"".concat(d,"-hidden")},a.tabPaneMotion),function(C,_){var w=C.style,T=C.className;return p.createElement(WCe,Ae({},y,{prefixCls:d,id:n,tabKey:m,animated:u,active:S,style:oe(oe({},g),w),className:le(O,T),ref:_}))})})))};function dnt(){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=oe({inkBar:!0},Xt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var fnt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Oie=0,pnt=p.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,i=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,m=f===void 0?"top":f,h=e.tabBarGutter,g=e.tabBarStyle,O=e.tabBarExtraContent,v=e.locale,y=e.more,S=e.destroyInactiveTabPane,C=e.renderTabBar,_=e.onChange,w=e.onTabClick,T=e.onTabScroll,k=e.getPopupContainer,A=e.popupClassName,I=e.indicator,M=ln(e,fnt),Q=p.useMemo(function(){return(o||[]).filter(function(ge){return ge&&Xt(ge)==="object"&&"key"in ge})},[o]),B=s==="rtl",D=dnt(d),U=p.useState(!1),R=ye(U,2),$=R[0],P=R[1];p.useEffect(function(){P(Dk())},[]);var z=Ir(function(){var ge;return(ge=Q[0])===null||ge===void 0?void 0:ge.key},{value:l,defaultValue:c}),F=ye(z,2),L=F[0],X=F[1],Y=p.useState(function(){return Q.findIndex(function(ge){return ge.key===L})}),q=ye(Y,2),G=q[0],ee=q[1];p.useEffect(function(){var ge=Q.findIndex(function(me){return me.key===L});if(ge===-1){var Oe;ge=Math.max(0,Math.min(G,Q.length-1)),X((Oe=Q[ge])===null||Oe===void 0?void 0:Oe.key)}ee(ge)},[Q.map(function(ge){return ge.key}).join("_"),L,G]);var K=Ir(null,{value:n}),ne=ye(K,2),ie=ne[0],se=ne[1];p.useEffect(function(){n||(se("rc-tabs-".concat(Oie)),Oie+=1)},[]);function ue(ge,Oe){w==null||w(ge,Oe);var me=ge!==L;X(ge),me&&(_==null||_(ge))}var ce={id:ie,activeKey:L,animated:D,tabPosition:m,rtl:B,mobile:$},be=oe(oe({},ce),{},{editable:u,locale:v,more:y,tabBarGutter:h,onTabClick:ue,onTabScroll:T,extra:O,style:g,panes:null,getPopupContainer:k,popupClassName:A,indicator:I});return p.createElement(eA.Provider,{value:{tabs:Q,prefixCls:a}},p.createElement("div",Ae({ref:t,id:n,className:le(a,"".concat(a,"-").concat(m),ae(ae(ae({},"".concat(a,"-mobile"),$),"".concat(a,"-editable"),u),"".concat(a,"-rtl"),B),i)},M),p.createElement(lnt,Ae({},be,{renderTabBar:C})),p.createElement(unt,Ae({destroyInactiveTabPane:S},ce,{animated:D}))))});const mnt={motionAppear:!1,motionEnter:!0,motionLeave:!0};function hnt(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({},mnt),{motionName:cl(e,"switch")})),n}var gnt=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 bnt(e,t){if(e)return e.map(r=>{var a;const i=(a=r.destroyOnHidden)!==null&&a!==void 0?a:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:i})});const n=xo(t).map(r=>{if(p.isValidElement(r)){const{key:a,props:i}=r,o=i||{},{tab:s}=o,l=gnt(o,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return Ont(n)}const vnt=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}`}}}}},[bd(e,"slide-up"),bd(e,"slide-down")]]},ynt=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:i,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${de(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:wc(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:de(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:de(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${de(e.borderRadiusLG)} 0 0 ${de(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 ${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Snt=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Qr(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:`${de(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({},ll),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${de(e.paddingXXS)} ${de(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"}}})}})}},_nt=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:i,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${de(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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:de(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},qtt=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:i,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${de(e.borderRadius)} ${de(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${de(e.borderRadius)} ${de(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${de(e.borderRadius)} ${de(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${de(e.borderRadius)} 0 0 ${de(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},Wtt=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:i,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Ul(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:wc(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Gtt=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:de(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:de(e.marginXS)},marginLeft:{_skip_check_:!0,value:de(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Htt=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:i,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zr(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:`${de(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:o}},Ul(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Wtt(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ul(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"}}}}}},Ztt=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:i}=e,o=t||i,s=n||a,l=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Ktt=Er("Tabs",e=>{const t=nr(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${de(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${de(e.horizontalItemGutter)}`});return[qtt(t),Gtt(t),Vtt(t),Ytt(t),Xtt(t),Htt(t),jtt(t)]},Ztt),Jtt=()=>null;var ent=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,i,o,s,l,c,u,d,f;const{type:m,className:h,rootClassName:g,size:O,onEdit:v,hideAdd:y,centered:S,addIcon:C,removeIcon:_,moreIcon:w,more:T,popupClassName:A,children:k,items:I,animated:M,style:Q,indicatorSize:F,indicator:L,destroyInactiveTabPane:U,destroyOnHidden:R}=e,$=ent(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:P}=$,{direction:z,tabs:B,getPrefixCls:D,getPopupContainer:X}=p.useContext(fn),Y=D("tabs",P),q=Fa(Y),[H,J,te]=Ktt(Y,q),ne=p.useRef(null);p.useImperativeHandle(t,()=>({nativeElement:ne.current}));let ie;m==="editable-card"&&(ie={onEdit:(me,{key:xe,event:we})=>{v==null||v(me==="add"?we:xe,me)},removeIcon:(n=_??(B==null?void 0:B.removeIcon))!==null&&n!==void 0?n:p.createElement(Gl,null),addIcon:(C??(B==null?void 0:B.addIcon))||p.createElement(Mb,null),showAdd:y!==!0});const le=D(),ue=Yi(O),oe=Utt(I,k),ge=ztt(Y,M),ve=Object.assign(Object.assign({},B==null?void 0:B.style),Q),he={align:(r=L==null?void 0:L.align)!==null&&r!==void 0?r:(a=B==null?void 0:B.indicator)===null||a===void 0?void 0:a.align,size:(l=(o=(i=L==null?void 0:L.size)!==null&&i!==void 0?i:F)!==null&&o!==void 0?o:(s=B==null?void 0:B.indicator)===null||s===void 0?void 0:s.size)!==null&&l!==void 0?l:B==null?void 0:B.indicatorSize};return H(p.createElement(Ltt,Object.assign({ref:ne,direction:z,getPopupContainer:X},$,{items:oe,className:ce({[`${Y}-${ue}`]:ue,[`${Y}-card`]:["card","editable-card"].includes(m),[`${Y}-editable-card`]:m==="editable-card",[`${Y}-centered`]:S},B==null?void 0:B.className,h,g,J,te,q),popupClassName:ce(A,J,te,q),style:ve,editable:ie,more:Object.assign({icon:(f=(d=(u=(c=B==null?void 0:B.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:B==null?void 0:B.moreIcon)!==null&&d!==void 0?d:w)!==null&&f!==void 0?f:p.createElement(Bj,null),transitionName:`${le}-slide-up`},T),prefixCls:Y,animated:ge,indicator:he,destroyInactiveTabPane:R??U})))}),_Ce=tnt;_Ce.TabPane=Jtt;var nnt=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,hoverable:r=!0}=e,a=nnt(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=p.useContext(fn),o=i("card",t),s=ce(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return p.createElement("div",Object.assign({},a,{className:s}))},rnt=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${de(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0 0`},dd()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ll),{[` + > 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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:de(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ent=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:a,cardHeightLG:i,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${de(e.borderRadius)} ${de(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${de(e.borderRadius)} ${de(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${de(e.borderRadius)} ${de(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${de(e.borderRadius)} 0 0 ${de(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},xnt=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:i,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Ul(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:wc(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Tnt=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:de(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:de(e.marginXS)},marginLeft:{_skip_check_:!0,value:de(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},wnt=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:i,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qr(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:`${de(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:o}},Ul(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),xnt(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ul(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"}}}}}},Cnt=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:a,controlHeightLG:i}=e,o=t||i,s=n||a,l=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},$nt=Er("Tabs",e=>{const t=nr(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${de(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${de(e.horizontalItemGutter)}`});return[Ent(t),Tnt(t),_nt(t),Snt(t),ynt(t),wnt(t),vnt(t)]},Cnt),Rnt=()=>null;var Pnt=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,i,o,s,l,c,u,d,f;const{type:m,className:h,rootClassName:g,size:O,onEdit:v,hideAdd:y,centered:S,addIcon:C,removeIcon:_,moreIcon:w,more:T,popupClassName:k,children:A,items:I,animated:M,style:Q,indicatorSize:B,indicator:D,destroyInactiveTabPane:U,destroyOnHidden:R}=e,$=Pnt(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:P}=$,{direction:z,tabs:F,getPrefixCls:L,getPopupContainer:X}=p.useContext(pn),Y=L("tabs",P),q=Ua(Y),[G,ee,K]=$nt(Y,q),ne=p.useRef(null);p.useImperativeHandle(t,()=>({nativeElement:ne.current}));let ie;m==="editable-card"&&(ie={onEdit:(me,{key:Te,event:Ce})=>{v==null||v(me==="add"?Ce:Te,me)},removeIcon:(n=_??(F==null?void 0:F.removeIcon))!==null&&n!==void 0?n:p.createElement(Gl,null),addIcon:(C??(F==null?void 0:F.addIcon))||p.createElement(Bb,null),showAdd:y!==!0});const se=L(),ue=Xi(O),ce=bnt(I,A),be=hnt(Y,M),ge=Object.assign(Object.assign({},F==null?void 0:F.style),Q),Oe={align:(r=D==null?void 0:D.align)!==null&&r!==void 0?r:(a=F==null?void 0:F.indicator)===null||a===void 0?void 0:a.align,size:(l=(o=(i=D==null?void 0:D.size)!==null&&i!==void 0?i:B)!==null&&o!==void 0?o:(s=F==null?void 0:F.indicator)===null||s===void 0?void 0:s.size)!==null&&l!==void 0?l:F==null?void 0:F.indicatorSize};return G(p.createElement(pnt,Object.assign({ref:ne,direction:z,getPopupContainer:X},$,{items:ce,className:le({[`${Y}-${ue}`]:ue,[`${Y}-card`]:["card","editable-card"].includes(m),[`${Y}-editable-card`]:m==="editable-card",[`${Y}-centered`]:S},F==null?void 0:F.className,h,g,ee,K,q),popupClassName:le(k,ee,K,q),style:ge,editable:ie,more:Object.assign({icon:(f=(d=(u=(c=F==null?void 0:F.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:F==null?void 0:F.moreIcon)!==null&&d!==void 0?d:w)!==null&&f!==void 0?f:p.createElement(uX,null),transitionName:`${se}-slide-up`},T),prefixCls:Y,animated:be,indicator:Oe,destroyInactiveTabPane:R??U})))}),GCe=knt;GCe.TabPane=Rnt;var Ant=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,hoverable:r=!0}=e,a=Ant(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=p.useContext(pn),o=i("card",t),s=le(`${o}-grid`,n,{[`${o}-grid-hoverable`]:r});return p.createElement("div",Object.assign({},a,{className:s}))},Nnt=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${de(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0 0`},Od()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},ll),{[` > ${n}-typography, > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},ant=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Int=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${de(a)} 0 0 0 ${n}, 0 ${de(a)} 0 0 ${n}, ${de(a)} ${de(a)} 0 0 ${n}, ${de(a)} 0 0 0 ${n} inset, 0 ${de(a)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},int=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:i,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${de(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)}`},dd()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:de(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:de(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${de(e.lineWidth)} ${e.lineType} ${i}`}}})},ont=e=>Object.assign(Object.assign({margin:`${de(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},dd()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ll),"&-description":{color:e.colorTextDescription}}),snt=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${de(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${de(e.padding)} ${de(a)}`}}},lnt=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},cnt=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:i,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},zr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:rnt(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)}`},[`${t}-grid`]:ant(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:int(e),[`${t}-meta`]:ont(e)}),[`${t}-bordered`]:{border:`${de(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:snt(e),[`${t}-loading`]:lnt(e),[`${t}-rtl`]:{direction:"rtl"}}},unt=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${de(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},dnt=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},fnt=Er("Card",e=>{const t=nr(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[cnt(t),unt(t)]},dnt);var Wae=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{actionClasses:t,actions:n=[],actionStyle:r}=e;return p.createElement("ul",{className:t,style:r},n.map((a,i)=>{const o=`action-${i}`;return p.createElement("li",{style:{width:`${100/n.length}%`},key:o},p.createElement("span",null,a))}))},mnt=p.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:i,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:d,variant:f,size:m,type:h,cover:g,actions:O,tabList:v,children:y,activeTabKey:S,defaultActiveTabKey:C,tabBarExtraContent:_,hoverable:w,tabProps:T={},classNames:A,styles:k}=e,I=Wae(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:M,direction:Q,card:F}=p.useContext(fn),[L]=mm("card",f,d),U=Ie=>{var Ee;(Ee=e.onTabChange)===null||Ee===void 0||Ee.call(e,Ie)},R=Ie=>{var Ee;return ce((Ee=F==null?void 0:F.classNames)===null||Ee===void 0?void 0:Ee[Ie],A==null?void 0:A[Ie])},$=Ie=>{var Ee;return Object.assign(Object.assign({},(Ee=F==null?void 0:F.styles)===null||Ee===void 0?void 0:Ee[Ie]),k==null?void 0:k[Ie])},P=p.useMemo(()=>{let Ie=!1;return p.Children.forEach(y,Ee=>{(Ee==null?void 0:Ee.type)===ECe&&(Ie=!0)}),Ie},[y]),z=M("card",n),[B,D,X]=fnt(z),Y=p.createElement(pm,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),q=S!==void 0,H=Object.assign(Object.assign({},T),{[q?"activeKey":"defaultActiveKey"]:q?S:C,tabBarExtraContent:_});let J;const te=Yi(m),ne=!te||te==="default"?"large":te,ie=v?p.createElement(_Ce,Object.assign({size:ne},H,{className:`${z}-head-tabs`,onChange:U,items:v.map(Ie=>{var{tab:Ee}=Ie,De=Wae(Ie,["tab"]);return Object.assign({label:Ee},De)})})):null;if(c||o||ie){const Ie=ce(`${z}-head`,R("header")),Ee=ce(`${z}-head-title`,R("title")),De=ce(`${z}-extra`,R("extra")),Le=Object.assign(Object.assign({},s),$("header"));J=p.createElement("div",{className:Ie,style:Le},p.createElement("div",{className:`${z}-head-wrapper`},c&&p.createElement("div",{className:Ee,style:$("title")},c),o&&p.createElement("div",{className:De,style:$("extra")},o)),ie)}const le=ce(`${z}-cover`,R("cover")),ue=g?p.createElement("div",{className:le,style:$("cover")},g):null,oe=ce(`${z}-body`,R("body")),ge=Object.assign(Object.assign({},l),$("body")),ve=p.createElement("div",{className:oe,style:ge},u?Y:y),he=ce(`${z}-actions`,R("actions")),me=O!=null&&O.length?p.createElement(pnt,{actionClasses:he,actionStyle:$("actions"),actions:O}):null,xe=ga(I,["onTabChange"]),we=ce(z,F==null?void 0:F.className,{[`${z}-loading`]:u,[`${z}-bordered`]:L!=="borderless",[`${z}-hoverable`]:w,[`${z}-contain-grid`]:P,[`${z}-contain-tabs`]:v==null?void 0:v.length,[`${z}-${te}`]:te,[`${z}-type-${h}`]:!!h,[`${z}-rtl`]:Q==="rtl"},r,a,D,X),Qe=Object.assign(Object.assign({},F==null?void 0:F.style),i);return B(p.createElement("div",Object.assign({ref:t},xe,{className:we,style:Qe}),J,ue,ve,me))});var hnt=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,avatar:r,title:a,description:i}=e,o=hnt(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=p.useContext(fn),l=s("card",t),c=ce(`${l}-meta`,n),u=r?p.createElement("div",{className:`${l}-meta-avatar`},r):null,d=a?p.createElement("div",{className:`${l}-meta-title`},a):null,f=i?p.createElement("div",{className:`${l}-meta-description`},i):null,m=d||f?p.createElement("div",{className:`${l}-meta-detail`},d,f):null;return p.createElement("div",Object.assign({},o,{className:c}),u,m)},Hu=mnt;Hu.Grid=ECe;Hu.Meta=gnt;function Ont(e,t,n){var r=n||{},a=r.noTrailing,i=a===void 0?!1:a,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,c=l===void 0?void 0:l,u,d=!1,f=0;function m(){u&&clearTimeout(u)}function h(O){var v=O||{},y=v.upcomingOnly,S=y===void 0?!1:y;m(),d=!S}function g(){for(var O=arguments.length,v=new Array(O),y=0;ye?s?(f=Date.now(),i||(u=setTimeout(c?w:_,e))):_():i!==!0&&(u=setTimeout(c?w:_,c===void 0?e-C:e))}return g.cancel=h,g}function bnt(e,t,n){var r={},a=r.atBegin,i=a===void 0?!1:a;return Ont(e,t,{debounceMode:i!==!1})}function Zs(e,t){return e[t]}var vnt=["children"];function xCe(e,t){return"".concat(e,"-").concat(t)}function ynt(e){return e&&e.type&&e.type.isTreeNode}function KE(e,t){return e??t}function V0(e){var t=e||{},n=t.title,r=t._title,a=t.key,i=t.children,o=n||"title";return{title:o,_title:r||[o],key:a||"key",children:i||"children"}}function TCe(e){function t(n){var r=To(n);return r.map(function(a){if(!ynt(a))return Ma(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var i=a.key,o=a.props,s=o.children,l=on(o,vnt),c=se({key:i},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(a){return a})}return t(e)}function s5(e,t,n){var r=V0(n),a=r._title,i=r.key,o=r.children,s=new Set(t===!0?[]:t),l=[];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(f,m){for(var h=xCe(d?d.pos:"0",m),g=KE(f[i],h),O,v=0;v1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=i||l,u={},d={},f={posEntities:u,keyEntities:d};return n&&(f=n(f)||f),Snt(e,function(m){var h=m.node,g=m.index,O=m.pos,v=m.key,y=m.parentPos,S=m.level,C=m.nodes,_={node:h,nodes:C,index:g,key:v,pos:O,level:S},w=KE(v,O);u[O]=_,d[w]=_,_.parent=u[y],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),r&&r(_,f)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),a&&a(f),f}function wS(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,i=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,d=Zs(u,e),f={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(d?d.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return f}function Qi(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,i=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,m=e.eventKey,h=se(se({},t),{},{expanded:n,selected:r,checked:a,loaded:i,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,key:m});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Ma(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function wCe(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function _nt(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function Ent(e,t,n,r){for(var a=new Set(e),i=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(d){var f=d.key,m=d.node,h=d.children,g=h===void 0?[]:h;a.has(f)&&!r(m)&&g.filter(function(O){return!r(O.node)}).forEach(function(O){a.add(O.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(d){var f=d.parent,m=d.node;if(!(r(m)||!d.parent||l.has(d.parent.key))){if(r(d.parent.node)){l.add(f.key);return}var h=!0,g=!1;(f.children||[]).filter(function(O){return!r(O.node)}).forEach(function(O){var v=O.key,y=a.has(v);h&&!y&&(h=!1),!g&&(y||i.has(v))&&(g=!0)}),h&&a.add(f.key),g&&i.add(f.key),l.add(f.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(wCe(i,a))}}function xnt(e,t,n,r,a){for(var i=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(f){var m=f.key,h=f.node,g=f.children,O=g===void 0?[]:g;!i.has(m)&&!o.has(m)&&!a(h)&&O.filter(function(v){return!a(v.node)}).forEach(function(v){i.delete(v.key)})})}o=new Set;for(var c=new Set,u=r;u>=0;u-=1){var d=n.get(u)||new Set;d.forEach(function(f){var m=f.parent,h=f.node;if(!(a(h)||!f.parent||c.has(f.parent.key))){if(a(f.parent.node)){c.add(m.key);return}var g=!0,O=!1;(m.children||[]).filter(function(v){return!a(v.node)}).forEach(function(v){var y=v.key,S=i.has(y);g&&!S&&(g=!1),!O&&(S||o.has(y))&&(O=!0)}),g||i.delete(m.key),O&&o.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(wCe(o,i))}}function d0(e,t,n,r){var a=[],i;r?i=r:i=_nt;var o=new Set(e.filter(function(u){var d=!!Zs(n,u);return d||a.push(u),d})),s=new Map,l=0;Object.keys(n).forEach(function(u){var d=n[u],f=d.level,m=s.get(f);m||(m=new Set,s.set(f,m)),m.add(d),l=Math.max(l,f)}),Ma(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=Ent(o,s,l,i):c=xnt(o,t.halfCheckedKeys,s,l,i),c}const Tnt=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},zr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},zr(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({},zr(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`]:wc(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${de(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:`${de(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}})},{[` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Mnt=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:i,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${de(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)}`},Od()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:de(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:de(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${de(e.lineWidth)} ${e.lineType} ${i}`}}})},Dnt=e=>Object.assign(Object.assign({margin:`${de(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Od()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},ll),"&-description":{color:e.colorTextDescription}}),Lnt=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${de(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${de(e.padding)} ${de(a)}`}}},Qnt=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},znt=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:i,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Qr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:Nnt(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)}`},[`${t}-grid`]:Int(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Mnt(e),[`${t}-meta`]:Dnt(e)}),[`${t}-bordered`]:{border:`${de(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${de(e.borderRadiusLG)} ${de(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Lnt(e),[`${t}-loading`]:Qnt(e),[`${t}-rtl`]:{direction:"rtl"}}},Bnt=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${de(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Fnt=e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},Unt=Er("Card",e=>{const t=nr(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[znt(t),Bnt(t)]},Fnt);var bie=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{actionClasses:t,actions:n=[],actionStyle:r}=e;return p.createElement("ul",{className:t,style:r},n.map((a,i)=>{const o=`action-${i}`;return p.createElement("li",{style:{width:`${100/n.length}%`},key:o},p.createElement("span",null,a))}))},Xnt=p.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:i,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:d,variant:f,size:m,type:h,cover:g,actions:O,tabList:v,children:y,activeTabKey:S,defaultActiveTabKey:C,tabBarExtraContent:_,hoverable:w,tabProps:T={},classNames:k,styles:A}=e,I=bie(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:M,direction:Q,card:B}=p.useContext(pn),[D]=ym("card",f,d),U=Me=>{var Ee;(Ee=e.onTabChange)===null||Ee===void 0||Ee.call(e,Me)},R=Me=>{var Ee;return le((Ee=B==null?void 0:B.classNames)===null||Ee===void 0?void 0:Ee[Me],k==null?void 0:k[Me])},$=Me=>{var Ee;return Object.assign(Object.assign({},(Ee=B==null?void 0:B.styles)===null||Ee===void 0?void 0:Ee[Me]),A==null?void 0:A[Me])},P=p.useMemo(()=>{let Me=!1;return p.Children.forEach(y,Ee=>{(Ee==null?void 0:Ee.type)===HCe&&(Me=!0)}),Me},[y]),z=M("card",n),[F,L,X]=Unt(z),Y=p.createElement(vm,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),q=S!==void 0,G=Object.assign(Object.assign({},T),{[q?"activeKey":"defaultActiveKey"]:q?S:C,tabBarExtraContent:_});let ee;const K=Xi(m),ne=!K||K==="default"?"large":K,ie=v?p.createElement(GCe,Object.assign({size:ne},G,{className:`${z}-head-tabs`,onChange:U,items:v.map(Me=>{var{tab:Ee}=Me,Le=bie(Me,["tab"]);return Object.assign({label:Ee},Le)})})):null;if(c||o||ie){const Me=le(`${z}-head`,R("header")),Ee=le(`${z}-head-title`,R("title")),Le=le(`${z}-extra`,R("extra")),ze=Object.assign(Object.assign({},s),$("header"));ee=p.createElement("div",{className:Me,style:ze},p.createElement("div",{className:`${z}-head-wrapper`},c&&p.createElement("div",{className:Ee,style:$("title")},c),o&&p.createElement("div",{className:Le,style:$("extra")},o)),ie)}const se=le(`${z}-cover`,R("cover")),ue=g?p.createElement("div",{className:se,style:$("cover")},g):null,ce=le(`${z}-body`,R("body")),be=Object.assign(Object.assign({},l),$("body")),ge=p.createElement("div",{className:ce,style:be},u?Y:y),Oe=le(`${z}-actions`,R("actions")),me=O!=null&&O.length?p.createElement(jnt,{actionClasses:Oe,actionStyle:$("actions"),actions:O}):null,Te=Oa(I,["onTabChange"]),Ce=le(z,B==null?void 0:B.className,{[`${z}-loading`]:u,[`${z}-bordered`]:D!=="borderless",[`${z}-hoverable`]:w,[`${z}-contain-grid`]:P,[`${z}-contain-tabs`]:v==null?void 0:v.length,[`${z}-${K}`]:K,[`${z}-type-${h}`]:!!h,[`${z}-rtl`]:Q==="rtl"},r,a,L,X),Fe=Object.assign(Object.assign({},B==null?void 0:B.style),i);return F(p.createElement("div",Object.assign({ref:t},Te,{className:Ce,style:Fe}),ee,ue,ge,me))});var Ynt=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,avatar:r,title:a,description:i}=e,o=Ynt(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=p.useContext(pn),l=s("card",t),c=le(`${l}-meta`,n),u=r?p.createElement("div",{className:`${l}-meta-avatar`},r):null,d=a?p.createElement("div",{className:`${l}-meta-title`},a):null,f=i?p.createElement("div",{className:`${l}-meta-description`},i):null,m=d||f?p.createElement("div",{className:`${l}-meta-detail`},d,f):null;return p.createElement("div",Object.assign({},o,{className:c}),u,m)},nd=Xnt;nd.Grid=HCe;nd.Meta=Vnt;function qnt(e,t,n){var r=n||{},a=r.noTrailing,i=a===void 0?!1:a,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,c=l===void 0?void 0:l,u,d=!1,f=0;function m(){u&&clearTimeout(u)}function h(O){var v=O||{},y=v.upcomingOnly,S=y===void 0?!1:y;m(),d=!S}function g(){for(var O=arguments.length,v=new Array(O),y=0;ye?s?(f=Date.now(),i||(u=setTimeout(c?w:_,e))):_():i!==!0&&(u=setTimeout(c?w:_,c===void 0?e-C:e))}return g.cancel=h,g}function Wnt(e,t,n){var r={},a=r.atBegin,i=a===void 0?!1:a;return qnt(e,t,{debounceMode:i!==!1})}function Zs(e,t){return e[t]}var Gnt=["children"];function ZCe(e,t){return"".concat(e,"-").concat(t)}function Hnt(e){return e&&e.type&&e.type.isTreeNode}function ax(e,t){return e??t}function Z0(e){var t=e||{},n=t.title,r=t._title,a=t.key,i=t.children,o=n||"title";return{title:o,_title:r||[o],key:a||"key",children:i||"children"}}function KCe(e){function t(n){var r=xo(n);return r.map(function(a){if(!Hnt(a))return Da(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var i=a.key,o=a.props,s=o.children,l=ln(o,Gnt),c=oe({key:i},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(a){return a})}return t(e)}function v5(e,t,n){var r=Z0(n),a=r._title,i=r.key,o=r.children,s=new Set(t===!0?[]:t),l=[];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(f,m){for(var h=ZCe(d?d.pos:"0",m),g=ax(f[i],h),O,v=0;v1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=i||l,u={},d={},f={posEntities:u,keyEntities:d};return n&&(f=n(f)||f),Znt(e,function(m){var h=m.node,g=m.index,O=m.pos,v=m.key,y=m.parentPos,S=m.level,C=m.nodes,_={node:h,nodes:C,index:g,key:v,pos:O,level:S},w=ax(v,O);u[O]=_,d[w]=_,_.parent=u[y],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),r&&r(_,f)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),a&&a(f),f}function AS(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,i=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,d=Zs(u,e),f={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(d?d.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return f}function Qi(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,i=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,f=e.active,m=e.eventKey,h=oe(oe({},t),{},{expanded:n,selected:r,checked:a,loaded:i,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,key:m});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Da(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function JCe(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Knt(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function Jnt(e,t,n,r){for(var a=new Set(e),i=new Set,o=0;o<=n;o+=1){var s=t.get(o)||new Set;s.forEach(function(d){var f=d.key,m=d.node,h=d.children,g=h===void 0?[]:h;a.has(f)&&!r(m)&&g.filter(function(O){return!r(O.node)}).forEach(function(O){a.add(O.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(d){var f=d.parent,m=d.node;if(!(r(m)||!d.parent||l.has(d.parent.key))){if(r(d.parent.node)){l.add(f.key);return}var h=!0,g=!1;(f.children||[]).filter(function(O){return!r(O.node)}).forEach(function(O){var v=O.key,y=a.has(v);h&&!y&&(h=!1),!g&&(y||i.has(v))&&(g=!0)}),h&&a.add(f.key),g&&i.add(f.key),l.add(f.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(JCe(i,a))}}function ert(e,t,n,r,a){for(var i=new Set(e),o=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(f){var m=f.key,h=f.node,g=f.children,O=g===void 0?[]:g;!i.has(m)&&!o.has(m)&&!a(h)&&O.filter(function(v){return!a(v.node)}).forEach(function(v){i.delete(v.key)})})}o=new Set;for(var c=new Set,u=r;u>=0;u-=1){var d=n.get(u)||new Set;d.forEach(function(f){var m=f.parent,h=f.node;if(!(a(h)||!f.parent||c.has(f.parent.key))){if(a(f.parent.node)){c.add(m.key);return}var g=!0,O=!1;(m.children||[]).filter(function(v){return!a(v.node)}).forEach(function(v){var y=v.key,S=i.has(y);g&&!S&&(g=!1),!O&&(S||o.has(y))&&(O=!0)}),g||i.delete(m.key),O&&o.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(JCe(o,i))}}function g0(e,t,n,r){var a=[],i;r?i=r:i=Knt;var o=new Set(e.filter(function(u){var d=!!Zs(n,u);return d||a.push(u),d})),s=new Map,l=0;Object.keys(n).forEach(function(u){var d=n[u],f=d.level,m=s.get(f);m||(m=new Set,s.set(f,m)),m.add(d),l=Math.max(l,f)}),Da(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=Jnt(o,s,l,i):c=ert(o,t.halfCheckedKeys,s,l,i),c}const trt=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Qr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Qr(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({},Qr(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`]:wc(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${de(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:`${de(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 CCe(e,t){const n=nr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return Tnt(n)}const $Ce=Er("Checkbox",(e,{prefixCls:t})=>[CCe(t,e)]),RCe=Z.createContext(null);var wnt=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:i,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,m=wnt(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:g,checkbox:O}=p.useContext(fn),v=p.useContext(RCe),{isFormItemInput:y}=p.useContext(oo),S=p.useContext(Xo),C=(n=(v==null?void 0:v.disabled)||f)!==null&&n!==void 0?n:S,_=p.useRef(m.value),w=p.useRef(null),T=Ci(t,w);p.useEffect(()=>{v==null||v.registerValue(m.value)},[]),p.useEffect(()=>{if(!d)return m.value!==_.current&&(v==null||v.cancelValue(_.current),v==null||v.registerValue(m.value),_.current=m.value),()=>v==null?void 0:v.cancelValue(m.value)},[m.value]),p.useEffect(()=>{var P;!((P=w.current)===null||P===void 0)&&P.input&&(w.current.input.indeterminate=s)},[s]);const A=h("checkbox",r),k=Fa(A),[I,M,Q]=$Ce(A,k),F=Object.assign({},m);v&&!d&&(F.onChange=(...P)=>{m.onChange&&m.onChange.apply(m,P),v.toggleOption&&v.toggleOption({label:o,value:m.value})},F.name=v.name,F.checked=v.value.includes(m.value));const L=ce(`${A}-wrapper`,{[`${A}-rtl`]:g==="rtl",[`${A}-wrapper-checked`]:F.checked,[`${A}-wrapper-disabled`]:C,[`${A}-wrapper-in-form-item`]:y},O==null?void 0:O.className,a,i,Q,k,M),U=ce({[`${A}-indeterminate`]:s},lk,M),[R,$]=aCe(F.onClick);return I(p.createElement(BE,{component:"Checkbox",disabled:C},p.createElement("label",{className:L,style:Object.assign(Object.assign({},O==null?void 0:O.style),l),onMouseEnter:c,onMouseLeave:u,onClick:R},p.createElement(rCe,Object.assign({},F,{onClick:$,prefixCls:A,className:U,disabled:C,ref:T})),o!=null&&p.createElement("span",{className:`${A}-label`},o))))},PCe=p.forwardRef(Cnt);var $nt=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:i,className:o,rootClassName:s,style:l,onChange:c}=e,u=$nt(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=p.useContext(fn),[m,h]=p.useState(u.value||n||[]),[g,O]=p.useState([]);p.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const v=p.useMemo(()=>a.map(U=>typeof U=="string"||typeof U=="number"?{label:U,value:U}:U),[a]),y=U=>{O(R=>R.filter($=>$!==U))},S=U=>{O(R=>[].concat(Ke(R),[U]))},C=U=>{const R=m.indexOf(U.value),$=Ke(m);R===-1?$.push(U.value):$.splice(R,1),"value"in u||h($),c==null||c($.filter(P=>g.includes(P)).sort((P,z)=>{const B=v.findIndex(X=>X.value===P),D=v.findIndex(X=>X.value===z);return B-D}))},_=d("checkbox",i),w=`${_}-group`,T=Fa(_),[A,k,I]=$Ce(_,T),M=ga(u,["value","disabled"]),Q=a.length?v.map(U=>p.createElement(PCe,{prefixCls:_,key:U.value.toString(),disabled:"disabled"in U?U.disabled:u.disabled,value:U.value,checked:m.includes(U.value),onChange:U.onChange,className:ce(`${w}-item`,U.className),style:U.style,title:U.title,id:U.id,required:U.required},U.label)):r,F=p.useMemo(()=>({toggleOption:C,value:m,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:y}),[C,m,u.disabled,u.name,S,y]),L=ce(w,{[`${w}-rtl`]:f==="rtl"},o,s,I,T,k);return A(p.createElement("div",Object.assign({className:L,style:l},M,{ref:t}),p.createElement(RCe.Provider,{value:F},Q)))}),jp=PCe;jp.Group=Rnt;jp.__ANT_CHECKBOX=!0;const kCe=p.createContext({});var Pnt=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}=p.useContext(fn),{gutter:a,wrap:i}=p.useContext(kCe),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:d,className:f,children:m,flex:h,style:g}=e,O=Pnt(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",o),[y,S,C]=mWe(v),_={};let w={};knt.forEach(k=>{let I={};const M=e[k];typeof M=="number"?I.span=M:typeof M=="object"&&(I=M||{}),delete O[k],w=Object.assign(Object.assign({},w),{[`${v}-${k}-${I.span}`]:I.span!==void 0,[`${v}-${k}-order-${I.order}`]:I.order||I.order===0,[`${v}-${k}-offset-${I.offset}`]:I.offset||I.offset===0,[`${v}-${k}-push-${I.push}`]:I.push||I.push===0,[`${v}-${k}-pull-${I.pull}`]:I.pull||I.pull===0,[`${v}-rtl`]:r==="rtl"}),I.flex&&(w[`${v}-${k}-flex`]=!0,_[`--${v}-${k}-flex`]=Gae(I.flex))});const T=ce(v,{[`${v}-${s}`]:s!==void 0,[`${v}-order-${l}`]:l,[`${v}-offset-${c}`]:c,[`${v}-push-${u}`]:u,[`${v}-pull-${d}`]:d},f,w,S,C),A={};if(a!=null&&a[0]){const k=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;A.paddingLeft=k,A.paddingRight=k}return h&&(A.flex=Gae(h),i===!1&&!A.minWidth&&(A.minWidth=0)),y(p.createElement("div",Object.assign({},O,{style:Object.assign(Object.assign(Object.assign({},A),g),_),className:T,ref:t}),m))});function Ant(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((i,o)=>{if(typeof i=="object"&&i!==null)for(let s=0;s{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i{a()},[JSON.stringify(e),t]),n}const Int=p.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:i,style:o,children:s,gutter:l=0,wrap:c}=e,u=Nnt(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=p.useContext(fn),m=WE(!0,null),h=Hae(a,m),g=Hae(r,m),O=d("row",n),[v,y,S]=pWe(O),C=Ant(l,m),_=ce(O,{[`${O}-no-wrap`]:c===!1,[`${O}-${g}`]:g,[`${O}-${h}`]:h,[`${O}-rtl`]:f==="rtl"},i,y,S),w={};if(C!=null&&C[0]){const I=typeof C[0]=="number"?`${C[0]/-2}px`:`calc(${C[0]} / -2)`;w.marginLeft=I,w.marginRight=I}const[T,A]=C;w.rowGap=A;const k=p.useMemo(()=>({gutter:[T,A],wrap:c}),[T,A,c]);return v(p.createElement(kCe.Provider,{value:k},p.createElement("div",Object.assign({},u,{className:_,style:Object.assign(Object.assign({},w),o),ref:t}),s)))});var Zae=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}},Pu=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Mnt(e){var t=e.prefixCls,n=e.containerRef,r=e.value,a=e.getValueIndex,i=e.motionName,o=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,d=p.useRef(null),f=p.useState(r),m=be(f,2),h=m[0],g=m[1],O=function(U){var R,$=a(U),P=(R=n.current)===null||R===void 0?void 0:R.querySelectorAll(".".concat(t,"-item"))[$];return(P==null?void 0:P.offsetParent)&&P},v=p.useState(null),y=be(v,2),S=y[0],C=y[1],_=p.useState(null),w=be(_,2),T=w[0],A=w[1];tr(function(){if(h!==r){var L=O(h),U=O(r),R=Zae(L,u),$=Zae(U,u);g(r),C(R),A($),L&&U?o():s()}},[r]);var k=p.useMemo(function(){if(u){var L;return Pu((L=S==null?void 0:S.top)!==null&&L!==void 0?L:0)}return Pu(l==="rtl"?-(S==null?void 0:S.right):S==null?void 0:S.left)},[u,l,S]),I=p.useMemo(function(){if(u){var L;return Pu((L=T==null?void 0:T.top)!==null&&L!==void 0?L:0)}return Pu(l==="rtl"?-(T==null?void 0:T.right):T==null?void 0:T.left)},[u,l,T]),M=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},Q=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},F=function(){C(null),A(null),s()};return!S||!T?null:p.createElement(ao,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:M,onAppearActive:Q,onVisibleChanged:F},function(L,U){var R=L.className,$=L.style,P=se(se({},$),{},{"--thumb-start-left":k,"--thumb-start-width":Pu(S==null?void 0:S.width),"--thumb-active-left":I,"--thumb-active-width":Pu(T==null?void 0:T.width),"--thumb-start-top":k,"--thumb-start-height":Pu(S==null?void 0:S.height),"--thumb-active-top":I,"--thumb-active-height":Pu(T==null?void 0:T.height)}),z={ref:Ci(d,U),style:P,className:ce("".concat(t,"-thumb"),R)};return p.createElement("div",z)})}var Dnt=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function Lnt(e){if(typeof e.title<"u")return e.title;if(Ut(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Qnt(e){return e.map(function(t){if(Ut(t)==="object"&&t!==null){var n=Lnt(t);return se(se({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var znt=function(t){var n=t.prefixCls,r=t.className,a=t.disabled,i=t.checked,o=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,d=t.onFocus,f=t.onBlur,m=t.onKeyDown,h=t.onKeyUp,g=t.onMouseDown,O=function(y){a||u(y,l)};return p.createElement("label",{className:ce(r,ae({},"".concat(n,"-item-disabled"),a)),onMouseDown:g},p.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:a,checked:i,onChange:O,onFocus:d,onBlur:f,onKeyDown:m,onKeyUp:h}),p.createElement("div",{className:"".concat(n,"-item-label"),title:s},o))},Bnt=p.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-segmented":r,i=e.direction,o=e.vertical,s=e.options,l=s===void 0?[]:s,c=e.disabled,u=e.defaultValue,d=e.value,f=e.name,m=e.onChange,h=e.className,g=h===void 0?"":h,O=e.motionName,v=O===void 0?"thumb-motion":O,y=on(e,Dnt),S=p.useRef(null),C=p.useMemo(function(){return Ci(S,t)},[S,t]),_=p.useMemo(function(){return Qnt(l)},[l]),w=Ir((n=_[0])===null||n===void 0?void 0:n.value,{value:d,defaultValue:u}),T=be(w,2),A=T[0],k=T[1],I=p.useState(!1),M=be(I,2),Q=M[0],F=M[1],L=function(ue,oe){k(oe),m==null||m(oe)},U=ga(y,["children"]),R=p.useState(!1),$=be(R,2),P=$[0],z=$[1],B=p.useState(!1),D=be(B,2),X=D[0],Y=D[1],q=function(){Y(!0)},H=function(){Y(!1)},J=function(){z(!1)},te=function(ue){ue.key==="Tab"&&z(!0)},ne=function(ue){var oe=_.findIndex(function(me){return me.value===A}),ge=_.length,ve=(oe+ue+ge)%ge,he=_[ve];he&&(k(he.value),m==null||m(he.value))},ie=function(ue){switch(ue.key){case"ArrowLeft":case"ArrowUp":ne(-1);break;case"ArrowRight":case"ArrowDown":ne(1);break}};return p.createElement("div",Re({role:"radiogroup","aria-label":"segmented control",tabIndex:c?void 0:0,"aria-orientation":o?"vertical":"horizontal"},U,{className:ce(a,ae(ae(ae({},"".concat(a,"-rtl"),i==="rtl"),"".concat(a,"-disabled"),c),"".concat(a,"-vertical"),o),g),ref:C}),p.createElement("div",{className:"".concat(a,"-group")},p.createElement(Mnt,{vertical:o,prefixCls:a,value:A,containerRef:S,motionName:"".concat(a,"-").concat(v),direction:i,getValueIndex:function(ue){return _.findIndex(function(oe){return oe.value===ue})},onMotionStart:function(){F(!0)},onMotionEnd:function(){F(!1)}}),_.map(function(le){return p.createElement(znt,Re({},le,{name:f,key:le.value,prefixCls:a,className:ce(le.className,"".concat(a,"-item"),ae(ae({},"".concat(a,"-item-selected"),le.value===A&&!Q),"".concat(a,"-item-focused"),X&&P&&le.value===A)),checked:le.value===A,onChange:L,onFocus:q,onBlur:H,onKeyDown:ie,onKeyUp:te,onMouseDown:J,disabled:!!c||!!le.disabled}))})))}),Fnt=Bnt;function Kae(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Jae(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Unt=Object.assign({overflow:"hidden"},ll),jnt=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({},zr(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),Ul(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 ${de(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({},Jae(e)),{color:e.itemSelectedColor}),"&-focused":wc(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:de(n),padding:`0 ${de(e.segmentedPaddingHorizontal)}`},Unt),"&-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({},Jae(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${de(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:de(r),padding:`0 ${de(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:de(a),padding:`0 ${de(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Kae(`&-disabled ${t}-item`,e)),Kae(`${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}}})}},Xnt=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:a,colorFill:i,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:a,itemActiveBg:i,itemSelectedColor:n}},Ynt=Er("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=nr(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return jnt(r)},Xnt);var eie=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=$b(),{prefixCls:r,className:a,rootClassName:i,block:o,options:s=[],size:l="middle",style:c,vertical:u,shape:d="default",name:f=n}=e,m=eie(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:h,direction:g,className:O,style:v}=$i("segmented"),y=h("segmented",r),[S,C,_]=Ynt(y),w=Yi(l),T=p.useMemo(()=>s.map(I=>{if(Vnt(I)){const{icon:M,label:Q}=I,F=eie(I,["icon","label"]);return Object.assign(Object.assign({},F),{label:p.createElement(p.Fragment,null,p.createElement("span",{className:`${y}-item-icon`},M),Q&&p.createElement("span",null,Q))})}return I}),[s,y]),A=ce(a,i,O,{[`${y}-block`]:o,[`${y}-sm`]:w==="small",[`${y}-lg`]:w==="large",[`${y}-vertical`]:u,[`${y}-shape-${d}`]:d==="round"},C,_),k=Object.assign(Object.assign({},v),c);return S(p.createElement(Fnt,Object.assign({},m,{name:f,className:A,style:k,options:T,ref:t,prefixCls:y,direction:g,vertical:u})))}),Wnt=qnt;var Gnt={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"},Hnt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Gnt}))},Znt=p.forwardRef(Hnt);function E9(){return typeof BigInt=="function"}function NCe(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ph(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("."),i=a[0]||"0",o=a[1]||"0";i==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:o,fullStr:"".concat(s).concat(r)}}function nX(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function hh(e){var t=String(e);if(nX(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&rX(t)?t.length-t.indexOf(".")-1:0}function jk(e){var t=String(e);if(nX(e)){if(e>Number.MAX_SAFE_INTEGER)return String(E9()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Ph("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),Jnt=(function(){function e(t){if(Sa(this,e),ae(this,"origin",""),ae(this,"number",void 0),ae(this,"empty",void 0),NCe(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return _a(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()?"":jk(this.number):this.origin}}]),e})();function qc(e){return E9()?new Knt(e):new Jnt(e)}function x2(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Ph(e),i=a.negativeStr,o=a.integerStr,s=a.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(o);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=qc(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return x2(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function ert(e){return!!(e.addonBefore||e.addonAfter)}function trt(e){return!!(e.prefix||e.suffix||e.allowClear)}function tie(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 Q$(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=tie(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=tie(t,e,r),n(a);return}n(a)}}function aX(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 iX=Z.forwardRef(function(e,t){var n,r,a,i=e.inputElement,o=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.style,h=e.disabled,g=e.readOnly,O=e.focused,v=e.triggerFocus,y=e.allowClear,S=e.value,C=e.handleReset,_=e.hidden,w=e.classes,T=e.classNames,A=e.dataAttrs,k=e.styles,I=e.components,M=e.onClear,Q=o??i,F=(I==null?void 0:I.affixWrapper)||"span",L=(I==null?void 0:I.groupWrapper)||"span",U=(I==null?void 0:I.wrapper)||"span",R=(I==null?void 0:I.groupAddon)||"span",$=p.useRef(null),P=function(he){var me;(me=$.current)!==null&&me!==void 0&&me.contains(he.target)&&(v==null||v())},z=trt(e),B=p.cloneElement(Q,{value:S,className:ce((n=Q.props)===null||n===void 0?void 0:n.className,!z&&(T==null?void 0:T.variant))||null}),D=p.useRef(null);if(Z.useImperativeHandle(t,function(){return{nativeElement:D.current||$.current}}),z){var X=null;if(y){var Y=!h&&!g&&S,q="".concat(s,"-clear-icon"),H=Ut(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";X=Z.createElement("button",{type:"button",tabIndex:-1,onClick:function(he){C==null||C(he),M==null||M()},onMouseDown:function(he){return he.preventDefault()},className:ce(q,ae(ae({},"".concat(q,"-hidden"),!Y),"".concat(q,"-has-suffix"),!!c))},H)}var J="".concat(s,"-affix-wrapper"),te=ce(J,ae(ae(ae(ae(ae({},"".concat(s,"-disabled"),h),"".concat(J,"-disabled"),h),"".concat(J,"-focused"),O),"".concat(J,"-readonly"),g),"".concat(J,"-input-with-clear-btn"),c&&y&&S),w==null?void 0:w.affixWrapper,T==null?void 0:T.affixWrapper,T==null?void 0:T.variant),ne=(c||y)&&Z.createElement("span",{className:ce("".concat(s,"-suffix"),T==null?void 0:T.suffix),style:k==null?void 0:k.suffix},X,c);B=Z.createElement(F,Re({className:te,style:k==null?void 0:k.affixWrapper,onClick:P},A==null?void 0:A.affixWrapper,{ref:$}),l&&Z.createElement("span",{className:ce("".concat(s,"-prefix"),T==null?void 0:T.prefix),style:k==null?void 0:k.prefix},l),B,ne)}if(ert(e)){var ie="".concat(s,"-group"),le="".concat(ie,"-addon"),ue="".concat(ie,"-wrapper"),oe=ce("".concat(s,"-wrapper"),ie,w==null?void 0:w.wrapper,T==null?void 0:T.wrapper),ge=ce(ue,ae({},"".concat(ue,"-disabled"),h),w==null?void 0:w.group,T==null?void 0:T.groupWrapper);B=Z.createElement(L,{className:ge,ref:D},Z.createElement(U,{className:oe},u&&Z.createElement(R,{className:le},u),B,d&&Z.createElement(R,{className:le},d)))}return Z.cloneElement(B,{className:ce((r=B.props)===null||r===void 0?void 0:r.className,f)||null,style:se(se({},(a=B.props)===null||a===void 0?void 0:a.style),m),hidden:_})}),nrt=["show"];function ICe(e,t){return p.useMemo(function(){var n={};t&&(n.show=Ut(t)==="object"&&t.formatter?t.formatter:!!t),n=se(se({},n),e);var r=n,a=r.show,i=on(r,nrt);return se(se({},i),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:i.strategy||function(o){return o.length}})},[e,t])}var rrt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],art=p.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,i=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,m=e.className,h=e.maxLength,g=e.suffix,O=e.showCount,v=e.count,y=e.type,S=y===void 0?"text":y,C=e.classes,_=e.classNames,w=e.styles,T=e.onCompositionStart,A=e.onCompositionEnd,k=on(e,rrt),I=p.useState(!1),M=be(I,2),Q=M[0],F=M[1],L=p.useRef(!1),U=p.useRef(!1),R=p.useRef(null),$=p.useRef(null),P=function(Ne){R.current&&aX(R.current,Ne)},z=Ir(e.defaultValue,{value:e.value}),B=be(z,2),D=B[0],X=B[1],Y=D==null?"":String(D),q=p.useState(null),H=be(q,2),J=H[0],te=H[1],ne=ICe(v,O),ie=ne.max||h,le=ne.strategy(Y),ue=!!ie&&le>ie;p.useImperativeHandle(t,function(){var Le;return{focus:P,blur:function(){var et;(et=R.current)===null||et===void 0||et.blur()},setSelectionRange:function(et,He,pt){var lt;(lt=R.current)===null||lt===void 0||lt.setSelectionRange(et,He,pt)},select:function(){var et;(et=R.current)===null||et===void 0||et.select()},input:R.current,nativeElement:((Le=$.current)===null||Le===void 0?void 0:Le.nativeElement)||R.current}}),p.useEffect(function(){U.current&&(U.current=!1),F(function(Le){return Le&&d?!1:Le})},[d]);var oe=function(Ne,et,He){var pt=et;if(!L.current&&ne.exceedFormatter&&ne.max&&ne.strategy(et)>ne.max){if(pt=ne.exceedFormatter(et,{max:ne.max}),et!==pt){var lt,it;te([((lt=R.current)===null||lt===void 0?void 0:lt.selectionStart)||0,((it=R.current)===null||it===void 0?void 0:it.selectionEnd)||0])}}else if(He.source==="compositionEnd")return;X(pt),R.current&&Q$(R.current,Ne,r,pt)};p.useEffect(function(){if(J){var Le;(Le=R.current)===null||Le===void 0||Le.setSelectionRange.apply(Le,Ke(J))}},[J]);var ge=function(Ne){oe(Ne,Ne.target.value,{source:"change"})},ve=function(Ne){L.current=!1,oe(Ne,Ne.currentTarget.value,{source:"compositionEnd"}),A==null||A(Ne)},he=function(Ne){o&&Ne.key==="Enter"&&!U.current&&(U.current=!0,o(Ne)),s==null||s(Ne)},me=function(Ne){Ne.key==="Enter"&&(U.current=!1),l==null||l(Ne)},xe=function(Ne){F(!0),a==null||a(Ne)},we=function(Ne){U.current&&(U.current=!1),F(!1),i==null||i(Ne)},Qe=function(Ne){X(""),P(),R.current&&Q$(R.current,Ne,r)},Ie=ue&&"".concat(u,"-out-of-range"),Ee=function(){var Ne=ga(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Z.createElement("input",Re({autoComplete:n},Ne,{onChange:ge,onFocus:xe,onBlur:we,onKeyDown:he,onKeyUp:me,className:ce(u,ae({},"".concat(u,"-disabled"),d),_==null?void 0:_.input),style:w==null?void 0:w.input,ref:R,size:f,type:S,onCompositionStart:function(He){L.current=!0,T==null||T(He)},onCompositionEnd:ve}))},De=function(){var Ne=Number(ie)>0;if(g||ne.show){var et=ne.showFormatter?ne.showFormatter({value:Y,count:le,maxLength:ie}):"".concat(le).concat(Ne?" / ".concat(ie):"");return Z.createElement(Z.Fragment,null,ne.show&&Z.createElement("span",{className:ce("".concat(u,"-show-count-suffix"),ae({},"".concat(u,"-show-count-has-suffix"),!!g),_==null?void 0:_.count),style:se({},w==null?void 0:w.count)},et),g)}return null};return Z.createElement(iX,Re({},k,{prefixCls:u,className:ce(m,Ie),handleReset:Qe,value:Y,focused:Q,triggerFocus:P,suffix:De(),disabled:d,classes:C,classNames:_,styles:w,ref:$}),Ee())});function irt(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var i=r[a];return typeof i=="function"?i.bind(r):i}}):e}function ort(e,t){var n=p.useRef(null);function r(){try{var i=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(o);n.current={start:i,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function a(){if(e&&n.current&&t)try{var i=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else{var d=s[c-1],f=i.indexOf(d,c-1);f!==-1&&(u=f+1)}e.setSelectionRange(u,u)}catch(m){Ma(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[r,a]}var srt=function(){var t=p.useState(!1),n=be(t,2),r=n[0],a=n[1];return tr(function(){a(xk())},[]),r},lrt=200,crt=600;function urt(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,i=e.downDisabled,o=e.onStep,s=p.useRef(),l=p.useRef([]),c=p.useRef();c.current=o;var u=function(){clearTimeout(s.current)},d=function(S,C){S.preventDefault(),u(),c.current(C);function _(){c.current(C),s.current=setTimeout(_,lrt)}s.current=setTimeout(_,crt)};p.useEffect(function(){return function(){u(),l.current.forEach(function(y){return ur.cancel(y)})}},[]);var f=srt();if(f)return null;var m="".concat(t,"-handler"),h=ce(m,"".concat(m,"-up"),ae({},"".concat(m,"-up-disabled"),a)),g=ce(m,"".concat(m,"-down"),ae({},"".concat(m,"-down-disabled"),i)),O=function(){return l.current.push(ur(u))},v={unselectable:"on",role:"button",onMouseUp:O,onMouseLeave:O};return p.createElement("div",{className:"".concat(m,"-wrap")},p.createElement("span",Re({},v,{onMouseDown:function(S){d(S,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||p.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),p.createElement("span",Re({},v,{onMouseDown:function(S){d(S,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:g}),r||p.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function nie(e){var t=typeof e=="number"?jk(e):Ph(e).fullStr,n=t.includes(".");return n?Ph(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const drt=(function(){var e=p.useRef(0),t=function(){ur.cancel(e.current)};return p.useEffect(function(){return t},[]),function(n){t(),e.current=ur(function(){n()})}});var frt=["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"],prt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],rie=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},aie=function(t){var n=qc(t);return n.isInvalidate()?null:n},mrt=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,d=e.disabled,f=e.readOnly,m=e.upHandler,h=e.downHandler,g=e.keyboard,O=e.changeOnWheel,v=O===void 0?!1:O,y=e.controls,S=y===void 0?!0:y;e.classNames;var C=e.stringMode,_=e.parser,w=e.formatter,T=e.precision,A=e.decimalSeparator,k=e.onChange,I=e.onInput,M=e.onPressEnter,Q=e.onStep,F=e.changeOnBlur,L=F===void 0?!0:F,U=e.domRef,R=on(e,frt),$="".concat(n,"-input"),P=p.useRef(null),z=p.useState(!1),B=be(z,2),D=B[0],X=B[1],Y=p.useRef(!1),q=p.useRef(!1),H=p.useRef(!1),J=p.useState(function(){return qc(u??c)}),te=be(J,2),ne=te[0],ie=te[1];function le(tt){u===void 0&&ie(tt)}var ue=p.useCallback(function(tt,ot){if(!ot)return T>=0?T:Math.max(hh(tt),hh(l))},[T,l]),oe=p.useCallback(function(tt){var ot=String(tt);if(_)return _(ot);var St=ot;return A&&(St=St.replace(A,".")),St.replace(/[^\w.-]+/g,"")},[_,A]),ge=p.useRef(""),ve=p.useCallback(function(tt,ot){if(w)return w(tt,{userTyping:ot,input:String(ge.current)});var St=typeof tt=="number"?jk(tt):tt;if(!ot){var Xe=ue(St,ot);if(rX(St)&&(A||Xe>=0)){var je=A||".";St=x2(St,je,Xe)}}return St},[w,ue,A]),he=p.useState(function(){var tt=c??u;return ne.isInvalidate()&&["string","number"].includes(Ut(tt))?Number.isNaN(tt)?"":tt:ve(ne.toString(),!1)}),me=be(he,2),xe=me[0],we=me[1];ge.current=xe;function Qe(tt,ot){we(ve(tt.isInvalidate()?tt.toString(!1):tt.toString(!ot),ot))}var Ie=p.useMemo(function(){return aie(o)},[o,T]),Ee=p.useMemo(function(){return aie(i)},[i,T]),De=p.useMemo(function(){return!Ie||!ne||ne.isInvalidate()?!1:Ie.lessEquals(ne)},[Ie,ne]),Le=p.useMemo(function(){return!Ee||!ne||ne.isInvalidate()?!1:ne.lessEquals(Ee)},[Ee,ne]),Ne=ort(P.current,D),et=be(Ne,2),He=et[0],pt=et[1],lt=function(ot){return Ie&&!ot.lessEquals(Ie)?Ie:Ee&&!Ee.lessEquals(ot)?Ee:null},it=function(ot){return!lt(ot)},ut=function(ot,St){var Xe=ot,je=it(Xe)||Xe.isEmpty();if(!Xe.isEmpty()&&!St&&(Xe=lt(Xe)||Xe,je=!0),!f&&!d&&je){var bt=Xe.toString(),xt=ue(bt,St);return xt>=0&&(Xe=qc(x2(bt,".",xt)),it(Xe)||(Xe=qc(x2(bt,".",xt,!0)))),Xe.equals(ne)||(le(Xe),k==null||k(Xe.isEmpty()?null:rie(C,Xe)),u===void 0&&Qe(Xe,St)),Xe}return ne},We=drt(),Me=function tt(ot){if(He(),ge.current=ot,we(ot),!q.current){var St=oe(ot),Xe=qc(St);Xe.isNaN()||ut(Xe,!0)}I==null||I(ot),We(function(){var je=ot;_||(je=ot.replace(/。/g,".")),je!==ot&&tt(je)})},Ge=function(){q.current=!0},ze=function(){q.current=!1,Me(P.current.value)},qe=function(ot){Me(ot.target.value)},Pe=function(ot){var St;if(!(ot&&De||!ot&&Le)){Y.current=!1;var Xe=qc(H.current?nie(l):l);ot||(Xe=Xe.negate());var je=(ne||qc(0)).add(Xe.toString()),bt=ut(je,!1);Q==null||Q(rie(C,bt),{offset:H.current?nie(l):l,type:ot?"up":"down"}),(St=P.current)===null||St===void 0||St.focus()}},Ae=function(ot){var St=qc(oe(xe)),Xe;St.isNaN()?Xe=ut(ne,ot):Xe=ut(St,ot),u!==void 0?Qe(ne,!1):Xe.isNaN()||Qe(Xe,!1)},Oe=function(){Y.current=!0},Te=function(ot){var St=ot.key,Xe=ot.shiftKey;Y.current=!0,H.current=Xe,St==="Enter"&&(q.current||(Y.current=!1),Ae(!1),M==null||M(ot)),g!==!1&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(St)&&(Pe(St==="Up"||St==="ArrowUp"),ot.preventDefault())},Ue=function(){Y.current=!1,H.current=!1};p.useEffect(function(){if(v&&D){var tt=function(Xe){Pe(Xe.deltaY<0),Xe.preventDefault()},ot=P.current;if(ot)return ot.addEventListener("wheel",tt,{passive:!1}),function(){return ot.removeEventListener("wheel",tt)}}});var rt=function(){L&&Ae(!1),X(!1),Y.current=!1};return $h(function(){ne.isInvalidate()||Qe(ne,!1)},[T,w]),$h(function(){var tt=qc(u);ie(tt);var ot=qc(oe(xe));(!tt.equals(ot)||!Y.current||w)&&Qe(tt,Y.current)},[u]),$h(function(){w&&pt()},[xe]),p.createElement("div",{ref:U,className:ce(n,r,ae(ae(ae(ae(ae({},"".concat(n,"-focused"),D),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),f),"".concat(n,"-not-a-number"),ne.isNaN()),"".concat(n,"-out-of-range"),!ne.isInvalidate()&&!it(ne))),style:a,onFocus:function(){X(!0)},onBlur:rt,onKeyDown:Te,onKeyUp:Ue,onCompositionStart:Ge,onCompositionEnd:ze,onBeforeInput:Oe},S&&p.createElement(urt,{prefixCls:n,upNode:m,downNode:h,upDisabled:De,downDisabled:Le,onStep:Pe}),p.createElement("div",{className:"".concat($,"-wrap")},p.createElement("input",Re({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":ne.isInvalidate()?null:ne.toString(),step:l},R,{ref:Ci(P,t),className:$,value:xe,onChange:qe,disabled:d,readOnly:f}))))}),hrt=p.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,i=a===void 0?"rc-input-number":a,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.classNames,m=on(e,prt),h=p.useRef(null),g=p.useRef(null),O=p.useRef(null),v=function(S){O.current&&aX(O.current,S)};return p.useImperativeHandle(t,function(){return irt(O.current,{focus:v,nativeElement:h.current.nativeElement||g.current})}),p.createElement(iX,{className:d,triggerFocus:v,prefixCls:i,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},p.createElement(mrt,Re({prefixCls:i,disabled:n,ref:O,domRef:g,className:f==null?void 0:f.input},m)))});const grt=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({},Sg(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Sr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},iie=({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}}}},Ort=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:i,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:m,colorIcon:h,motionDurationMid:g,handleHoverColor:O,handleOpacity:v,paddingInline:y,paddingBlock:S,handleBg:C,handleActiveBg:_,colorTextDisabled:w,borderRadiusSM:T,borderRadiusLG:A,controlWidth:k,handleBorderColor:I,filledHandleBg:M,lineHeightLG:Q,calc:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zr(e)),ZE(e)),{display:"inline-block",width:k,margin:0,padding:0,borderRadius:a}),Wj(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${de(n)} ${r} ${I}`}}})),Hj(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${de(n)} ${r} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),Zj(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${de(n)} ${r} ${I}`}}})),Gj(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:Q,borderRadius:A,[`input${t}-input`]:{height:F(s).sub(F(n).mul(2)).equal(),padding:`${de(f)} ${de(m)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:T,[`input${t}-input`]:{height:F(l).sub(F(n).mul(2)).equal(),padding:`${de(d)} ${de(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},zr(e)),mCe(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:A,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:T}}},cCe(e)),dCe(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({},zr(e)),{width:"100%",padding:`${de(S)} ${de(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),Kj(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:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + `]:{[`&: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 e2e(e,t){const n=nr(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return trt(n)}const t2e=Er("Checkbox",(e,{prefixCls:t})=>[e2e(t,e)]),n2e=Z.createContext(null);var nrt=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:i,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:f}=e,m=nrt(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:g,checkbox:O}=p.useContext(pn),v=p.useContext(n2e),{isFormItemInput:y}=p.useContext(io),S=p.useContext(jo),C=(n=(v==null?void 0:v.disabled)||f)!==null&&n!==void 0?n:S,_=p.useRef(m.value),w=p.useRef(null),T=Ci(t,w);p.useEffect(()=>{v==null||v.registerValue(m.value)},[]),p.useEffect(()=>{if(!d)return m.value!==_.current&&(v==null||v.cancelValue(_.current),v==null||v.registerValue(m.value),_.current=m.value),()=>v==null?void 0:v.cancelValue(m.value)},[m.value]),p.useEffect(()=>{var P;!((P=w.current)===null||P===void 0)&&P.input&&(w.current.input.indeterminate=s)},[s]);const k=h("checkbox",r),A=Ua(k),[I,M,Q]=t2e(k,A),B=Object.assign({},m);v&&!d&&(B.onChange=(...P)=>{m.onChange&&m.onChange.apply(m,P),v.toggleOption&&v.toggleOption({label:o,value:m.value})},B.name=v.name,B.checked=v.value.includes(m.value));const D=le(`${k}-wrapper`,{[`${k}-rtl`]:g==="rtl",[`${k}-wrapper-checked`]:B.checked,[`${k}-wrapper-disabled`]:C,[`${k}-wrapper-in-form-item`]:y},O==null?void 0:O.className,a,i,Q,A,M),U=le({[`${k}-indeterminate`]:s},yk,M),[R,$]=kCe(B.onClick);return I(p.createElement(VE,{component:"Checkbox",disabled:C},p.createElement("label",{className:D,style:Object.assign(Object.assign({},O==null?void 0:O.style),l),onMouseEnter:c,onMouseLeave:u,onClick:R},p.createElement(PCe,Object.assign({},B,{onClick:$,prefixCls:k,className:U,disabled:C,ref:T})),o!=null&&p.createElement("span",{className:`${k}-label`},o))))},r2e=p.forwardRef(rrt);var art=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:i,className:o,rootClassName:s,style:l,onChange:c}=e,u=art(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:f}=p.useContext(pn),[m,h]=p.useState(u.value||n||[]),[g,O]=p.useState([]);p.useEffect(()=>{"value"in u&&h(u.value||[])},[u.value]);const v=p.useMemo(()=>a.map(U=>typeof U=="string"||typeof U=="number"?{label:U,value:U}:U),[a]),y=U=>{O(R=>R.filter($=>$!==U))},S=U=>{O(R=>[].concat(et(R),[U]))},C=U=>{const R=m.indexOf(U.value),$=et(m);R===-1?$.push(U.value):$.splice(R,1),"value"in u||h($),c==null||c($.filter(P=>g.includes(P)).sort((P,z)=>{const F=v.findIndex(X=>X.value===P),L=v.findIndex(X=>X.value===z);return F-L}))},_=d("checkbox",i),w=`${_}-group`,T=Ua(_),[k,A,I]=t2e(_,T),M=Oa(u,["value","disabled"]),Q=a.length?v.map(U=>p.createElement(r2e,{prefixCls:_,key:U.value.toString(),disabled:"disabled"in U?U.disabled:u.disabled,value:U.value,checked:m.includes(U.value),onChange:U.onChange,className:le(`${w}-item`,U.className),style:U.style,title:U.title,id:U.id,required:U.required},U.label)):r,B=p.useMemo(()=>({toggleOption:C,value:m,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:y}),[C,m,u.disabled,u.name,S,y]),D=le(w,{[`${w}-rtl`]:f==="rtl"},o,s,I,T,A);return k(p.createElement("div",Object.assign({className:D,style:l},M,{ref:t}),p.createElement(n2e.Provider,{value:B},Q)))}),Hp=r2e;Hp.Group=irt;Hp.__ANT_CHECKBOX=!0;const a2e=p.createContext({});var ort=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}=p.useContext(pn),{gutter:a,wrap:i}=p.useContext(a2e),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:d,className:f,children:m,flex:h,style:g}=e,O=ort(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),v=n("col",o),[y,S,C]=XWe(v),_={};let w={};srt.forEach(A=>{let I={};const M=e[A];typeof M=="number"?I.span=M:typeof M=="object"&&(I=M||{}),delete O[A],w=Object.assign(Object.assign({},w),{[`${v}-${A}-${I.span}`]:I.span!==void 0,[`${v}-${A}-order-${I.order}`]:I.order||I.order===0,[`${v}-${A}-offset-${I.offset}`]:I.offset||I.offset===0,[`${v}-${A}-push-${I.push}`]:I.push||I.push===0,[`${v}-${A}-pull-${I.pull}`]:I.pull||I.pull===0,[`${v}-rtl`]:r==="rtl"}),I.flex&&(w[`${v}-${A}-flex`]=!0,_[`--${v}-${A}-flex`]=vie(I.flex))});const T=le(v,{[`${v}-${s}`]:s!==void 0,[`${v}-order-${l}`]:l,[`${v}-offset-${c}`]:c,[`${v}-push-${u}`]:u,[`${v}-pull-${d}`]:d},f,w,S,C),k={};if(a!=null&&a[0]){const A=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;k.paddingLeft=A,k.paddingRight=A}return h&&(k.flex=vie(h),i===!1&&!k.minWidth&&(k.minWidth=0)),y(p.createElement("div",Object.assign({},O,{style:Object.assign(Object.assign(Object.assign({},k),g),_),className:T,ref:t}),m))});function lrt(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((i,o)=>{if(typeof i=="object"&&i!==null)for(let s=0;s{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i{a()},[JSON.stringify(e),t]),n}const urt=p.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:i,style:o,children:s,gutter:l=0,wrap:c}=e,u=crt(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=p.useContext(pn),m=ex(!0,null),h=yie(a,m),g=yie(r,m),O=d("row",n),[v,y,S]=jWe(O),C=lrt(l,m),_=le(O,{[`${O}-no-wrap`]:c===!1,[`${O}-${g}`]:g,[`${O}-${h}`]:h,[`${O}-rtl`]:f==="rtl"},i,y,S),w={};if(C!=null&&C[0]){const I=typeof C[0]=="number"?`${C[0]/-2}px`:`calc(${C[0]} / -2)`;w.marginLeft=I,w.marginRight=I}const[T,k]=C;w.rowGap=k;const A=p.useMemo(()=>({gutter:[T,k],wrap:c}),[T,k,c]);return v(p.createElement(a2e.Provider,{value:A},p.createElement("div",Object.assign({},u,{className:_,style:Object.assign(Object.assign({},w),o),ref:t}),s)))});var Sie=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}},Mu=function(t){return t!==void 0?"".concat(t,"px"):void 0};function drt(e){var t=e.prefixCls,n=e.containerRef,r=e.value,a=e.getValueIndex,i=e.motionName,o=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,d=p.useRef(null),f=p.useState(r),m=ye(f,2),h=m[0],g=m[1],O=function(U){var R,$=a(U),P=(R=n.current)===null||R===void 0?void 0:R.querySelectorAll(".".concat(t,"-item"))[$];return(P==null?void 0:P.offsetParent)&&P},v=p.useState(null),y=ye(v,2),S=y[0],C=y[1],_=p.useState(null),w=ye(_,2),T=w[0],k=w[1];tr(function(){if(h!==r){var D=O(h),U=O(r),R=Sie(D,u),$=Sie(U,u);g(r),C(R),k($),D&&U?o():s()}},[r]);var A=p.useMemo(function(){if(u){var D;return Mu((D=S==null?void 0:S.top)!==null&&D!==void 0?D:0)}return Mu(l==="rtl"?-(S==null?void 0:S.right):S==null?void 0:S.left)},[u,l,S]),I=p.useMemo(function(){if(u){var D;return Mu((D=T==null?void 0:T.top)!==null&&D!==void 0?D:0)}return Mu(l==="rtl"?-(T==null?void 0:T.right):T==null?void 0:T.left)},[u,l,T]),M=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},Q=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},B=function(){C(null),k(null),s()};return!S||!T?null:p.createElement(ro,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:M,onAppearActive:Q,onVisibleChanged:B},function(D,U){var R=D.className,$=D.style,P=oe(oe({},$),{},{"--thumb-start-left":A,"--thumb-start-width":Mu(S==null?void 0:S.width),"--thumb-active-left":I,"--thumb-active-width":Mu(T==null?void 0:T.width),"--thumb-start-top":A,"--thumb-start-height":Mu(S==null?void 0:S.height),"--thumb-active-top":I,"--thumb-active-height":Mu(T==null?void 0:T.height)}),z={ref:Ci(d,U),style:P,className:le("".concat(t,"-thumb"),R)};return p.createElement("div",z)})}var frt=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function prt(e){if(typeof e.title<"u")return e.title;if(Xt(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function mrt(e){return e.map(function(t){if(Xt(t)==="object"&&t!==null){var n=prt(t);return oe(oe({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var hrt=function(t){var n=t.prefixCls,r=t.className,a=t.disabled,i=t.checked,o=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,d=t.onFocus,f=t.onBlur,m=t.onKeyDown,h=t.onKeyUp,g=t.onMouseDown,O=function(y){a||u(y,l)};return p.createElement("label",{className:le(r,ae({},"".concat(n,"-item-disabled"),a)),onMouseDown:g},p.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:a,checked:i,onChange:O,onFocus:d,onBlur:f,onKeyDown:m,onKeyUp:h}),p.createElement("div",{className:"".concat(n,"-item-label"),title:s},o))},grt=p.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-segmented":r,i=e.direction,o=e.vertical,s=e.options,l=s===void 0?[]:s,c=e.disabled,u=e.defaultValue,d=e.value,f=e.name,m=e.onChange,h=e.className,g=h===void 0?"":h,O=e.motionName,v=O===void 0?"thumb-motion":O,y=ln(e,frt),S=p.useRef(null),C=p.useMemo(function(){return Ci(S,t)},[S,t]),_=p.useMemo(function(){return mrt(l)},[l]),w=Ir((n=_[0])===null||n===void 0?void 0:n.value,{value:d,defaultValue:u}),T=ye(w,2),k=T[0],A=T[1],I=p.useState(!1),M=ye(I,2),Q=M[0],B=M[1],D=function(ue,ce){A(ce),m==null||m(ce)},U=Oa(y,["children"]),R=p.useState(!1),$=ye(R,2),P=$[0],z=$[1],F=p.useState(!1),L=ye(F,2),X=L[0],Y=L[1],q=function(){Y(!0)},G=function(){Y(!1)},ee=function(){z(!1)},K=function(ue){ue.key==="Tab"&&z(!0)},ne=function(ue){var ce=_.findIndex(function(me){return me.value===k}),be=_.length,ge=(ce+ue+be)%be,Oe=_[ge];Oe&&(A(Oe.value),m==null||m(Oe.value))},ie=function(ue){switch(ue.key){case"ArrowLeft":case"ArrowUp":ne(-1);break;case"ArrowRight":case"ArrowDown":ne(1);break}};return p.createElement("div",Ae({role:"radiogroup","aria-label":"segmented control",tabIndex:c?void 0:0,"aria-orientation":o?"vertical":"horizontal"},U,{className:le(a,ae(ae(ae({},"".concat(a,"-rtl"),i==="rtl"),"".concat(a,"-disabled"),c),"".concat(a,"-vertical"),o),g),ref:C}),p.createElement("div",{className:"".concat(a,"-group")},p.createElement(drt,{vertical:o,prefixCls:a,value:k,containerRef:S,motionName:"".concat(a,"-").concat(v),direction:i,getValueIndex:function(ue){return _.findIndex(function(ce){return ce.value===ue})},onMotionStart:function(){B(!0)},onMotionEnd:function(){B(!1)}}),_.map(function(se){return p.createElement(hrt,Ae({},se,{name:f,key:se.value,prefixCls:a,className:le(se.className,"".concat(a,"-item"),ae(ae({},"".concat(a,"-item-selected"),se.value===k&&!Q),"".concat(a,"-item-focused"),X&&P&&se.value===k)),checked:se.value===k,onChange:D,onFocus:q,onBlur:G,onKeyDown:ie,onKeyUp:K,onMouseDown:ee,disabled:!!c||!!se.disabled}))})))}),Ort=grt;function _ie(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Eie(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const brt=Object.assign({overflow:"hidden"},ll),vrt=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({},Qr(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`}),Ul(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 ${de(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({},Eie(e)),{color:e.itemSelectedColor}),"&-focused":wc(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:de(n),padding:`0 ${de(e.segmentedPaddingHorizontal)}`},brt),"&-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({},Eie(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${de(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:de(r),padding:`0 ${de(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:a,lineHeight:de(a),padding:`0 ${de(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),_ie(`&-disabled ${t}-item`,e)),_ie(`${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}}})}},yrt=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:a,colorFill:i,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:a,itemActiveBg:i,itemSelectedColor:n}},Srt=Er("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=nr(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return vrt(r)},yrt);var xie=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=Nb(),{prefixCls:r,className:a,rootClassName:i,block:o,options:s=[],size:l="middle",style:c,vertical:u,shape:d="default",name:f=n}=e,m=xie(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:h,direction:g,className:O,style:v}=$i("segmented"),y=h("segmented",r),[S,C,_]=Srt(y),w=Xi(l),T=p.useMemo(()=>s.map(I=>{if(_rt(I)){const{icon:M,label:Q}=I,B=xie(I,["icon","label"]);return Object.assign(Object.assign({},B),{label:p.createElement(p.Fragment,null,p.createElement("span",{className:`${y}-item-icon`},M),Q&&p.createElement("span",null,Q))})}return I}),[s,y]),k=le(a,i,O,{[`${y}-block`]:o,[`${y}-sm`]:w==="small",[`${y}-lg`]:w==="large",[`${y}-vertical`]:u,[`${y}-shape-${d}`]:d==="round"},C,_),A=Object.assign(Object.assign({},v),c);return S(p.createElement(Ort,Object.assign({},m,{name:f,className:k,style:A,options:T,ref:t,prefixCls:y,direction:g,vertical:u})))}),xrt=Ert;var Trt={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"},wrt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Trt}))},Crt=p.forwardRef(wrt);function j9(){return typeof BigInt=="function"}function o2e(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Lh(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("."),i=a[0]||"0",o=a[1]||"0";i==="0"&&o==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:o,fullStr:"".concat(s).concat(r)}}function wX(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function _h(e){var t=String(e);if(wX(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&CX(t)?t.length-t.indexOf(".")-1:0}function tA(e){var t=String(e);if(wX(e)){if(e>Number.MAX_SAFE_INTEGER)return String(j9()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Lh("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})(),Rrt=(function(){function e(t){if(_a(this,e),ae(this,"origin",""),ae(this,"number",void 0),ae(this,"empty",void 0),o2e(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Ea(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()?"":tA(this.number):this.origin}}]),e})();function Zc(e){return j9()?new $rt(e):new Rrt(e)}function A2(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Lh(e),i=a.negativeStr,o=a.integerStr,s=a.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(o);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Zc(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return A2(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function Prt(e){return!!(e.addonBefore||e.addonAfter)}function krt(e){return!!(e.prefix||e.suffix||e.allowClear)}function Tie(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 G$(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=Tie(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=Tie(t,e,r),n(a);return}n(a)}}function $X(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 RX=Z.forwardRef(function(e,t){var n,r,a,i=e.inputElement,o=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.style,h=e.disabled,g=e.readOnly,O=e.focused,v=e.triggerFocus,y=e.allowClear,S=e.value,C=e.handleReset,_=e.hidden,w=e.classes,T=e.classNames,k=e.dataAttrs,A=e.styles,I=e.components,M=e.onClear,Q=o??i,B=(I==null?void 0:I.affixWrapper)||"span",D=(I==null?void 0:I.groupWrapper)||"span",U=(I==null?void 0:I.wrapper)||"span",R=(I==null?void 0:I.groupAddon)||"span",$=p.useRef(null),P=function(Oe){var me;(me=$.current)!==null&&me!==void 0&&me.contains(Oe.target)&&(v==null||v())},z=krt(e),F=p.cloneElement(Q,{value:S,className:le((n=Q.props)===null||n===void 0?void 0:n.className,!z&&(T==null?void 0:T.variant))||null}),L=p.useRef(null);if(Z.useImperativeHandle(t,function(){return{nativeElement:L.current||$.current}}),z){var X=null;if(y){var Y=!h&&!g&&S,q="".concat(s,"-clear-icon"),G=Xt(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";X=Z.createElement("button",{type:"button",tabIndex:-1,onClick:function(Oe){C==null||C(Oe),M==null||M()},onMouseDown:function(Oe){return Oe.preventDefault()},className:le(q,ae(ae({},"".concat(q,"-hidden"),!Y),"".concat(q,"-has-suffix"),!!c))},G)}var ee="".concat(s,"-affix-wrapper"),K=le(ee,ae(ae(ae(ae(ae({},"".concat(s,"-disabled"),h),"".concat(ee,"-disabled"),h),"".concat(ee,"-focused"),O),"".concat(ee,"-readonly"),g),"".concat(ee,"-input-with-clear-btn"),c&&y&&S),w==null?void 0:w.affixWrapper,T==null?void 0:T.affixWrapper,T==null?void 0:T.variant),ne=(c||y)&&Z.createElement("span",{className:le("".concat(s,"-suffix"),T==null?void 0:T.suffix),style:A==null?void 0:A.suffix},X,c);F=Z.createElement(B,Ae({className:K,style:A==null?void 0:A.affixWrapper,onClick:P},k==null?void 0:k.affixWrapper,{ref:$}),l&&Z.createElement("span",{className:le("".concat(s,"-prefix"),T==null?void 0:T.prefix),style:A==null?void 0:A.prefix},l),F,ne)}if(Prt(e)){var ie="".concat(s,"-group"),se="".concat(ie,"-addon"),ue="".concat(ie,"-wrapper"),ce=le("".concat(s,"-wrapper"),ie,w==null?void 0:w.wrapper,T==null?void 0:T.wrapper),be=le(ue,ae({},"".concat(ue,"-disabled"),h),w==null?void 0:w.group,T==null?void 0:T.groupWrapper);F=Z.createElement(D,{className:be,ref:L},Z.createElement(U,{className:ce},u&&Z.createElement(R,{className:se},u),F,d&&Z.createElement(R,{className:se},d)))}return Z.cloneElement(F,{className:le((r=F.props)===null||r===void 0?void 0:r.className,f)||null,style:oe(oe({},(a=F.props)===null||a===void 0?void 0:a.style),m),hidden:_})}),Art=["show"];function s2e(e,t){return p.useMemo(function(){var n={};t&&(n.show=Xt(t)==="object"&&t.formatter?t.formatter:!!t),n=oe(oe({},n),e);var r=n,a=r.show,i=ln(r,Art);return oe(oe({},i),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:i.strategy||function(o){return o.length}})},[e,t])}var Nrt=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Irt=p.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,i=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,m=e.className,h=e.maxLength,g=e.suffix,O=e.showCount,v=e.count,y=e.type,S=y===void 0?"text":y,C=e.classes,_=e.classNames,w=e.styles,T=e.onCompositionStart,k=e.onCompositionEnd,A=ln(e,Nrt),I=p.useState(!1),M=ye(I,2),Q=M[0],B=M[1],D=p.useRef(!1),U=p.useRef(!1),R=p.useRef(null),$=p.useRef(null),P=function(Qe){R.current&&$X(R.current,Qe)},z=Ir(e.defaultValue,{value:e.value}),F=ye(z,2),L=F[0],X=F[1],Y=L==null?"":String(L),q=p.useState(null),G=ye(q,2),ee=G[0],K=G[1],ne=s2e(v,O),ie=ne.max||h,se=ne.strategy(Y),ue=!!ie&&se>ie;p.useImperativeHandle(t,function(){var ze;return{focus:P,blur:function(){var Je;(Je=R.current)===null||Je===void 0||Je.blur()},setSelectionRange:function(Je,He,gt){var st;(st=R.current)===null||st===void 0||st.setSelectionRange(Je,He,gt)},select:function(){var Je;(Je=R.current)===null||Je===void 0||Je.select()},input:R.current,nativeElement:((ze=$.current)===null||ze===void 0?void 0:ze.nativeElement)||R.current}}),p.useEffect(function(){U.current&&(U.current=!1),B(function(ze){return ze&&d?!1:ze})},[d]);var ce=function(Qe,Je,He){var gt=Je;if(!D.current&&ne.exceedFormatter&&ne.max&&ne.strategy(Je)>ne.max){if(gt=ne.exceedFormatter(Je,{max:ne.max}),Je!==gt){var st,lt;K([((st=R.current)===null||st===void 0?void 0:st.selectionStart)||0,((lt=R.current)===null||lt===void 0?void 0:lt.selectionEnd)||0])}}else if(He.source==="compositionEnd")return;X(gt),R.current&&G$(R.current,Qe,r,gt)};p.useEffect(function(){if(ee){var ze;(ze=R.current)===null||ze===void 0||ze.setSelectionRange.apply(ze,et(ee))}},[ee]);var be=function(Qe){ce(Qe,Qe.target.value,{source:"change"})},ge=function(Qe){D.current=!1,ce(Qe,Qe.currentTarget.value,{source:"compositionEnd"}),k==null||k(Qe)},Oe=function(Qe){o&&Qe.key==="Enter"&&!U.current&&(U.current=!0,o(Qe)),s==null||s(Qe)},me=function(Qe){Qe.key==="Enter"&&(U.current=!1),l==null||l(Qe)},Te=function(Qe){B(!0),a==null||a(Qe)},Ce=function(Qe){U.current&&(U.current=!1),B(!1),i==null||i(Qe)},Fe=function(Qe){X(""),P(),R.current&&G$(R.current,Qe,r)},Me=ue&&"".concat(u,"-out-of-range"),Ee=function(){var Qe=Oa(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return Z.createElement("input",Ae({autoComplete:n},Qe,{onChange:be,onFocus:Te,onBlur:Ce,onKeyDown:Oe,onKeyUp:me,className:le(u,ae({},"".concat(u,"-disabled"),d),_==null?void 0:_.input),style:w==null?void 0:w.input,ref:R,size:f,type:S,onCompositionStart:function(He){D.current=!0,T==null||T(He)},onCompositionEnd:ge}))},Le=function(){var Qe=Number(ie)>0;if(g||ne.show){var Je=ne.showFormatter?ne.showFormatter({value:Y,count:se,maxLength:ie}):"".concat(se).concat(Qe?" / ".concat(ie):"");return Z.createElement(Z.Fragment,null,ne.show&&Z.createElement("span",{className:le("".concat(u,"-show-count-suffix"),ae({},"".concat(u,"-show-count-has-suffix"),!!g),_==null?void 0:_.count),style:oe({},w==null?void 0:w.count)},Je),g)}return null};return Z.createElement(RX,Ae({},A,{prefixCls:u,className:le(m,Me),handleReset:Fe,value:Y,focused:Q,triggerFocus:P,suffix:Le(),disabled:d,classes:C,classNames:_,styles:w,ref:$}),Ee())});function Mrt(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var i=r[a];return typeof i=="function"?i.bind(r):i}}):e}function Drt(e,t){var n=p.useRef(null);function r(){try{var i=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(o);n.current={start:i,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function a(){if(e&&n.current&&t)try{var i=e.value,o=n.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else{var d=s[c-1],f=i.indexOf(d,c-1);f!==-1&&(u=f+1)}e.setSelectionRange(u,u)}catch(m){Da(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[r,a]}var Lrt=function(){var t=p.useState(!1),n=ye(t,2),r=n[0],a=n[1];return tr(function(){a(Dk())},[]),r},Qrt=200,zrt=600;function Brt(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,i=e.downDisabled,o=e.onStep,s=p.useRef(),l=p.useRef([]),c=p.useRef();c.current=o;var u=function(){clearTimeout(s.current)},d=function(S,C){S.preventDefault(),u(),c.current(C);function _(){c.current(C),s.current=setTimeout(_,Qrt)}s.current=setTimeout(_,zrt)};p.useEffect(function(){return function(){u(),l.current.forEach(function(y){return ur.cancel(y)})}},[]);var f=Lrt();if(f)return null;var m="".concat(t,"-handler"),h=le(m,"".concat(m,"-up"),ae({},"".concat(m,"-up-disabled"),a)),g=le(m,"".concat(m,"-down"),ae({},"".concat(m,"-down-disabled"),i)),O=function(){return l.current.push(ur(u))},v={unselectable:"on",role:"button",onMouseUp:O,onMouseLeave:O};return p.createElement("div",{className:"".concat(m,"-wrap")},p.createElement("span",Ae({},v,{onMouseDown:function(S){d(S,!0)},"aria-label":"Increase Value","aria-disabled":a,className:h}),n||p.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),p.createElement("span",Ae({},v,{onMouseDown:function(S){d(S,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:g}),r||p.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function wie(e){var t=typeof e=="number"?tA(e):Lh(e).fullStr,n=t.includes(".");return n?Lh(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Frt=(function(){var e=p.useRef(0),t=function(){ur.cancel(e.current)};return p.useEffect(function(){return t},[]),function(n){t(),e.current=ur(function(){n()})}});var Urt=["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"],jrt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Cie=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},$ie=function(t){var n=Zc(t);return n.isInvalidate()?null:n},Xrt=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,i=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,d=e.disabled,f=e.readOnly,m=e.upHandler,h=e.downHandler,g=e.keyboard,O=e.changeOnWheel,v=O===void 0?!1:O,y=e.controls,S=y===void 0?!0:y;e.classNames;var C=e.stringMode,_=e.parser,w=e.formatter,T=e.precision,k=e.decimalSeparator,A=e.onChange,I=e.onInput,M=e.onPressEnter,Q=e.onStep,B=e.changeOnBlur,D=B===void 0?!0:B,U=e.domRef,R=ln(e,Urt),$="".concat(n,"-input"),P=p.useRef(null),z=p.useState(!1),F=ye(z,2),L=F[0],X=F[1],Y=p.useRef(!1),q=p.useRef(!1),G=p.useRef(!1),ee=p.useState(function(){return Zc(u??c)}),K=ye(ee,2),ne=K[0],ie=K[1];function se(at){u===void 0&&ie(at)}var ue=p.useCallback(function(at,ct){if(!ct)return T>=0?T:Math.max(_h(at),_h(l))},[T,l]),ce=p.useCallback(function(at){var ct=String(at);if(_)return _(ct);var mt=ct;return k&&(mt=mt.replace(k,".")),mt.replace(/[^\w.-]+/g,"")},[_,k]),be=p.useRef(""),ge=p.useCallback(function(at,ct){if(w)return w(at,{userTyping:ct,input:String(be.current)});var mt=typeof at=="number"?tA(at):at;if(!ct){var je=ue(mt,ct);if(CX(mt)&&(k||je>=0)){var Ye=k||".";mt=A2(mt,Ye,je)}}return mt},[w,ue,k]),Oe=p.useState(function(){var at=c??u;return ne.isInvalidate()&&["string","number"].includes(Xt(at))?Number.isNaN(at)?"":at:ge(ne.toString(),!1)}),me=ye(Oe,2),Te=me[0],Ce=me[1];be.current=Te;function Fe(at,ct){Ce(ge(at.isInvalidate()?at.toString(!1):at.toString(!ct),ct))}var Me=p.useMemo(function(){return $ie(o)},[o,T]),Ee=p.useMemo(function(){return $ie(i)},[i,T]),Le=p.useMemo(function(){return!Me||!ne||ne.isInvalidate()?!1:Me.lessEquals(ne)},[Me,ne]),ze=p.useMemo(function(){return!Ee||!ne||ne.isInvalidate()?!1:ne.lessEquals(Ee)},[Ee,ne]),Qe=Drt(P.current,L),Je=ye(Qe,2),He=Je[0],gt=Je[1],st=function(ct){return Me&&!ct.lessEquals(Me)?Me:Ee&&!Ee.lessEquals(ct)?Ee:null},lt=function(ct){return!st(ct)},pt=function(ct,mt){var je=ct,Ye=lt(je)||je.isEmpty();if(!je.isEmpty()&&!mt&&(je=st(je)||je,Ye=!0),!f&&!d&&Ye){var yt=je.toString(),$t=ue(yt,mt);return $t>=0&&(je=Zc(A2(yt,".",$t)),lt(je)||(je=Zc(A2(yt,".",$t,!0)))),je.equals(ne)||(se(je),A==null||A(je.isEmpty()?null:Cie(C,je)),u===void 0&&Fe(je,mt)),je}return ne},Ze=Frt(),De=function at(ct){if(He(),be.current=ct,Ce(ct),!q.current){var mt=ce(ct),je=Zc(mt);je.isNaN()||pt(je,!0)}I==null||I(ct),Ze(function(){var Ye=ct;_||(Ye=ct.replace(/。/g,".")),Ye!==ct&&at(Ye)})},Ke=function(){q.current=!0},Be=function(){q.current=!1,De(P.current.value)},We=function(ct){De(ct.target.value)},Re=function(ct){var mt;if(!(ct&&Le||!ct&&ze)){Y.current=!1;var je=Zc(G.current?wie(l):l);ct||(je=je.negate());var Ye=(ne||Zc(0)).add(je.toString()),yt=pt(Ye,!1);Q==null||Q(Cie(C,yt),{offset:G.current?wie(l):l,type:ct?"up":"down"}),(mt=P.current)===null||mt===void 0||mt.focus()}},Ie=function(ct){var mt=Zc(ce(Te)),je;mt.isNaN()?je=pt(ne,ct):je=pt(mt,ct),u!==void 0?Fe(ne,!1):je.isNaN()||Fe(je,!1)},ve=function(){Y.current=!0},we=function(ct){var mt=ct.key,je=ct.shiftKey;Y.current=!0,G.current=je,mt==="Enter"&&(q.current||(Y.current=!1),Ie(!1),M==null||M(ct)),g!==!1&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(mt)&&(Re(mt==="Up"||mt==="ArrowUp"),ct.preventDefault())},Xe=function(){Y.current=!1,G.current=!1};p.useEffect(function(){if(v&&L){var at=function(je){Re(je.deltaY<0),je.preventDefault()},ct=P.current;if(ct)return ct.addEventListener("wheel",at,{passive:!1}),function(){return ct.removeEventListener("wheel",at)}}});var rt=function(){D&&Ie(!1),X(!1),Y.current=!1};return Mh(function(){ne.isInvalidate()||Fe(ne,!1)},[T,w]),Mh(function(){var at=Zc(u);ie(at);var ct=Zc(ce(Te));(!at.equals(ct)||!Y.current||w)&&Fe(at,Y.current)},[u]),Mh(function(){w&>()},[Te]),p.createElement("div",{ref:U,className:le(n,r,ae(ae(ae(ae(ae({},"".concat(n,"-focused"),L),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),f),"".concat(n,"-not-a-number"),ne.isNaN()),"".concat(n,"-out-of-range"),!ne.isInvalidate()&&!lt(ne))),style:a,onFocus:function(){X(!0)},onBlur:rt,onKeyDown:we,onKeyUp:Xe,onCompositionStart:Ke,onCompositionEnd:Be,onBeforeInput:ve},S&&p.createElement(Brt,{prefixCls:n,upNode:m,downNode:h,upDisabled:Le,downDisabled:ze,onStep:Re}),p.createElement("div",{className:"".concat($,"-wrap")},p.createElement("input",Ae({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":ne.isInvalidate()?null:ne.toString(),step:l},R,{ref:Ci(P,t),className:$,value:Te,onChange:We,disabled:d,readOnly:f}))))}),Yrt=p.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,i=a===void 0?"rc-input-number":a,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.classNames,m=ln(e,jrt),h=p.useRef(null),g=p.useRef(null),O=p.useRef(null),v=function(S){O.current&&$X(O.current,S)};return p.useImperativeHandle(t,function(){return Mrt(O.current,{focus:v,nativeElement:h.current.nativeElement||g.current})}),p.createElement(RX,{className:d,triggerFocus:v,prefixCls:i,value:o,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:h},p.createElement(Xrt,Ae({prefixCls:i,disabled:n,ref:O,domRef:g,className:f==null?void 0:f.input},m)))});const Vrt=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({},Rg(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Sr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Rie=({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}}}},qrt=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:i,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:m,colorIcon:h,motionDurationMid:g,handleHoverColor:O,handleOpacity:v,paddingInline:y,paddingBlock:S,handleBg:C,handleActiveBg:_,colorTextDisabled:w,borderRadiusSM:T,borderRadiusLG:k,controlWidth:A,handleBorderColor:I,filledHandleBg:M,lineHeightLG:Q,calc:B}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qr(e)),rx(e)),{display:"inline-block",width:A,margin:0,padding:0,borderRadius:a}),bX(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${de(n)} ${r} ${I}`}}})),yX(e,{[`${t}-handler-wrap`]:{background:M,[`${t}-handler-down`]:{borderBlockStart:`${de(n)} ${r} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),SX(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${de(n)} ${r} ${I}`}}})),vX(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:Q,borderRadius:k,[`input${t}-input`]:{height:B(s).sub(B(n).mul(2)).equal(),padding:`${de(f)} ${de(m)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:T,[`input${t}-input`]:{height:B(l).sub(B(n).mul(2)).equal(),padding:`${de(d)} ${de(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Qr(e)),FCe(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:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:T}}},DCe(e)),QCe(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({},Qr(e)),{width:"100%",padding:`${de(S)} ${de(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),_X(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:v,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:h,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${de(n)} ${r} ${I}`,transition:`all ${g} linear`,"&:active":{background:_},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner - `]:{color:O}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},_b()),{color:h,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},iie(e,"lg")),iie(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + `]:{color:O}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Cb()),{color:h,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},Rie(e,"lg")),Rie(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:w}})}]},brt=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:i,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${de(n)} 0`}},ZE(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${de(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${de(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${f}`}},[`&: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}}},vrt=Er("InputNumber",e=>{const t=nr(e,yg(e));return[Ort(t),brt(t),Cb(t)]},grt,{unitless:{handleOpacity:!0},resetFont:!1});var yrt=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}=p.useContext(fn),a=p.useRef(null);p.useImperativeHandle(t,()=>a.current);const{className:i,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,suffix:m,bordered:h,readOnly:g,status:O,controls:v,variant:y}=e,S=yrt(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",c),_=Fa(C),[w,T,A]=vrt(C,_),{compactSize:k,compactItemClassnames:I}=xd(C,r);let M=p.createElement(Znt,{className:`${C}-handler-up-inner`}),Q=p.createElement($k,{className:`${C}-handler-down-inner`});const F=typeof v=="boolean"?v:void 0;typeof v=="object"&&(M=typeof v.upIcon>"u"?M:p.createElement("span",{className:`${C}-handler-up-inner`},v.upIcon),Q=typeof v.downIcon>"u"?Q:p.createElement("span",{className:`${C}-handler-down-inner`},v.downIcon));const{hasFeedback:L,status:U,isFormItemInput:R,feedbackIcon:$}=p.useContext(oo),P=gg(U,O),z=Yi(ne=>{var ie;return(ie=s??k)!==null&&ie!==void 0?ie:ne}),B=p.useContext(Xo),D=l??B,[X,Y]=mm("inputNumber",y,h),q=L&&p.createElement(p.Fragment,null,$),H=ce({[`${C}-lg`]:z==="large",[`${C}-sm`]:z==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:R},T),J=`${C}-group`,te=p.createElement(hrt,Object.assign({ref:a,disabled:D,className:ce(A,_,i,o,I),upHandler:M,downHandler:Q,prefixCls:C,readOnly:g,controls:F,prefix:f,suffix:q||m,addonBefore:u&&p.createElement(hu,{form:!0,space:!0},u),addonAfter:d&&p.createElement(hu,{form:!0,space:!0},d),classNames:{input:H,variant:ce({[`${C}-${X}`]:Y},Fp(C,P,L)),affixWrapper:ce({[`${C}-affix-wrapper-sm`]:z==="small",[`${C}-affix-wrapper-lg`]:z==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl",[`${C}-affix-wrapper-without-controls`]:v===!1||D||g},T),wrapper:ce({[`${J}-rtl`]:r==="rtl"},T),groupWrapper:ce({[`${C}-group-wrapper-sm`]:z==="small",[`${C}-group-wrapper-lg`]:z==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${X}`]:Y},Fp(`${C}-group-wrapper`,P,L),T)}},S));return w(te)}),pf=MCe,Srt=e=>p.createElement(ci,{theme:{components:{InputNumber:{handleVisible:!0}}}},p.createElement(MCe,Object.assign({},e)));pf._InternalPanelDoNotUseOrYouWillBeFired=Srt;const DCe=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Z.createElement(Pf,null)}),t};function LCe(e,t){const n=p.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,i,o,s;!((a=e.current)===null||a===void 0)&&a.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return p.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function _rt(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Ert=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:i,disabled:o,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:f,className:m,style:h,styles:g,rootClassName:O,onChange:v,classNames:y,variant:S,_skipAddonWarning:C}=e,_=Ert(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:w,direction:T,allowClear:A,autoComplete:k,className:I,style:M,classNames:Q,styles:F}=$i("input"),L=w("input",n),U=p.useRef(null),R=Fa(L),[$,P,z]=hCe(L,O),[B]=gCe(L,R),{compactSize:D,compactItemClassnames:X}=xd(L,T),Y=Yi(Qe=>{var Ie;return(Ie=i??D)!==null&&Ie!==void 0?Ie:Qe}),q=Z.useContext(Xo),H=o??q,{status:J,hasFeedback:te,feedbackIcon:ne}=p.useContext(oo),ie=gg(J,a),le=_rt(e)||!!te;p.useRef(le);const ue=LCe(U,!0),oe=Qe=>{ue(),s==null||s(Qe)},ge=Qe=>{ue(),l==null||l(Qe)},ve=Qe=>{ue(),v==null||v(Qe)},he=(te||c)&&Z.createElement(Z.Fragment,null,c,te&&ne),me=DCe(u??A),[xe,we]=mm("input",S,r);return $(B(Z.createElement(art,Object.assign({ref:Ci(t,U),prefixCls:L,autoComplete:k},_,{disabled:H,onBlur:oe,onFocus:ge,style:Object.assign(Object.assign({},M),h),styles:Object.assign(Object.assign({},F),g),suffix:he,allowClear:me,className:ce(m,O,z,R,X,I),onChange:ve,addonBefore:f&&Z.createElement(hu,{form:!0,space:!0},f),addonAfter:d&&Z.createElement(hu,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},y),Q),{input:ce({[`${L}-sm`]:Y==="small",[`${L}-lg`]:Y==="large",[`${L}-rtl`]:T==="rtl"},y==null?void 0:y.input,Q.input,P),variant:ce({[`${L}-${xe}`]:we},Fp(L,ie)),affixWrapper:ce({[`${L}-affix-wrapper-sm`]:Y==="small",[`${L}-affix-wrapper-lg`]:Y==="large",[`${L}-affix-wrapper-rtl`]:T==="rtl"},P),wrapper:ce({[`${L}-group-rtl`]:T==="rtl"},P),groupWrapper:ce({[`${L}-group-wrapper-sm`]:Y==="small",[`${L}-group-wrapper-lg`]:Y==="large",[`${L}-group-wrapper-rtl`]:T==="rtl",[`${L}-group-wrapper-${xe}`]:we},Fp(`${L}-group-wrapper`,ie,te),P)})}))))});var xrt={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"},Trt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:xrt}))},wrt=p.forwardRef(Trt);const QCe=(e,t,n,r,a)=>{const{classNames:i,styles:o}=$i(e),[s,l]=EXe([i,t],[o,n],{popup:{_default:"root"}});return p.useMemo(()=>{var c,u;const d=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:ce((c=s.popup)===null||c===void 0?void 0:c.root,r)})}),f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(u=l.popup)===null||u===void 0?void 0:u.root),a)})});return[d,f]},[s,l,r,a])};function Crt(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 $rt(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 zCe(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=UTe(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[p.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[Rrt,Prt]=["week","WeekPicker"],[krt,Art]=["month","MonthPicker"],[Nrt,Irt]=["year","YearPicker"],[Mrt,Drt]=["quarter","QuarterPicker"],[oX,oie]=["time","TimePicker"];var Lrt={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"},Qrt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Lrt}))},zrt=p.forwardRef(Qrt),Brt={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"},Frt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Brt}))},Urt=p.forwardRef(Frt);const BCe=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?Z.createElement(Z.Fragment,null,e===oX?Z.createElement(Urt,null):Z.createElement(zrt,null),t&&n):r,jrt=e=>p.createElement(Ur,Object.assign({size:"small",type:"primary"},e));function FCe(e){return p.useMemo(()=>Object.assign({button:jrt},e),[e])}var Xrt=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);ap.forwardRef((n,r)=>{var a;const{prefixCls:i,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:d,disabled:f,bordered:m=!0,placeholder:h,popupStyle:g,popupClassName:O,dropdownClassName:v,status:y,rootClassName:S,variant:C,picker:_,styles:w,classNames:T,suffixIcon:A}=n,k=Xrt(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),I=_===oX?"timePicker":"datePicker",M=p.useRef(null),{getPrefixCls:Q,direction:F,getPopupContainer:L,rangePicker:U}=p.useContext(fn),R=Q("picker",i),{compactSize:$,compactItemClassnames:P}=xd(R,F),z=Q(),[B,D]=mm("rangePicker",C,m),X=Fa(R),[Y,q,H]=OCe(R,X),[J,te]=QCe(I,T,w,O||v,g),[ne]=zCe(n,R),ie=FCe(s),le=Yi(Ee=>{var De;return(De=d??$)!==null&&De!==void 0?De:Ee}),ue=p.useContext(Xo),oe=f??ue,ge=p.useContext(oo),{hasFeedback:ve,status:he,feedbackIcon:me}=ge,xe=p.createElement(BCe,{picker:_,hasFeedback:ve,feedbackIcon:me,suffixIcon:A});p.useImperativeHandle(r,()=>M.current);const[we]=fl("Calendar",E$),Qe=Object.assign(Object.assign({},we),n.locale),[Ie]=Ed("DatePicker",(a=te.popup.root)===null||a===void 0?void 0:a.zIndex);return Y(p.createElement(hu,{space:!0},p.createElement(Pet,Object.assign({separator:p.createElement("span",{"aria-label":"to",className:`${R}-separator`},p.createElement(wrt,null)),disabled:oe,ref:M,placement:u,placeholder:$rt(Qe,_,h),suffixIcon:xe,prevIcon:p.createElement("span",{className:`${R}-prev-icon`}),nextIcon:p.createElement("span",{className:`${R}-next-icon`}),superPrevIcon:p.createElement("span",{className:`${R}-super-prev-icon`}),superNextIcon:p.createElement("span",{className:`${R}-super-next-icon`}),transitionName:`${z}-slide-up`,picker:_},k,{className:ce({[`${R}-${le}`]:le,[`${R}-${B}`]:D},Fp(R,gg(he,y),ve),q,P,l,U==null?void 0:U.className,H,X,S,J.root),style:Object.assign(Object.assign(Object.assign({},U==null?void 0:U.style),c),te.root),locale:Qe.lang,prefixCls:R,getPopupContainer:o||L,generateConfig:e,components:ie,direction:F,classNames:{popup:ce(q,H,X,S,J.popup.root)},styles:{popup:Object.assign(Object.assign({},te.popup.root),{zIndex:Ie})},allowClear:ne}))))});var Vrt=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=(l,c)=>{const u=c===oie?"timePicker":"datePicker";return p.forwardRef((f,m)=>{var h;const{prefixCls:g,getPopupContainer:O,components:v,style:y,className:S,rootClassName:C,size:_,bordered:w,placement:T,placeholder:A,popupStyle:k,popupClassName:I,dropdownClassName:M,disabled:Q,status:F,variant:L,onCalendarChange:U,styles:R,classNames:$,suffixIcon:P}=f,z=Vrt(f,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:B,direction:D,getPopupContainer:X,[u]:Y}=p.useContext(fn),q=B("picker",g),{compactSize:H,compactItemClassnames:J}=xd(q,D),te=p.useRef(null),[ne,ie]=mm("datePicker",L,w),le=Fa(q),[ue,oe,ge]=OCe(q,le);p.useImperativeHandle(m,()=>te.current);const ve={showToday:!0},he=l||f.picker,me=B(),{onSelect:xe,multiple:we}=z,Qe=xe&&l==="time"&&!we,Ie=(Ae,Oe,Te)=>{U==null||U(Ae,Oe,Te),Qe&&xe(Ae)},[Ee,De]=QCe(u,$,R,I||M,k),[Le,Ne]=zCe(f,q),et=FCe(v),He=Yi(Ae=>{var Oe;return(Oe=_??H)!==null&&Oe!==void 0?Oe:Ae}),pt=p.useContext(Xo),lt=Q??pt,it=p.useContext(oo),{hasFeedback:ut,status:We,feedbackIcon:Me}=it,Ge=p.createElement(BCe,{picker:he,hasFeedback:ut,feedbackIcon:Me,suffixIcon:P}),[ze]=fl("DatePicker",E$),qe=Object.assign(Object.assign({},ze),f.locale),[Pe]=Ed("DatePicker",(h=De.popup.root)===null||h===void 0?void 0:h.zIndex);return ue(p.createElement(hu,{space:!0},p.createElement(Det,Object.assign({ref:te,placeholder:Crt(qe,he,A),suffixIcon:Ge,placement:T,prevIcon:p.createElement("span",{className:`${q}-prev-icon`}),nextIcon:p.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:p.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:p.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${me}-slide-up`,picker:l,onCalendarChange:Ie},ve,z,{locale:qe.lang,className:ce({[`${q}-${He}`]:He,[`${q}-${ne}`]:ie},Fp(q,gg(We,F),ut),oe,J,Y==null?void 0:Y.className,S,ge,le,C,Ee.root),style:Object.assign(Object.assign(Object.assign({},Y==null?void 0:Y.style),y),De.root),prefixCls:q,getPopupContainer:O||X,generateConfig:e,components:et,direction:D,disabled:lt,classNames:{popup:ce(oe,ge,le,C,Ee.popup.root)},styles:{popup:Object.assign(Object.assign({},De.popup.root),{zIndex:Pe})},allowClear:Le,removeIcon:Ne}))))})},n=t(),r=t(Rrt,Prt),a=t(krt,Art),i=t(Nrt,Irt),o=t(Mrt,Drt),s=t(oX,oie);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:i,TimePicker:s,QuarterPicker:o}},UCe=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:i,QuarterPicker:o}=qrt(e),s=Yrt(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=a,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=o,l},Db=UCe(DJe),Wrt=YE(Db,"popupAlign",void 0,"picker");Db._InternalPanelDoNotUseOrYouWillBeFired=Wrt;const Grt=YE(Db.RangePicker,"popupAlign",void 0,"picker");Db._InternalRangePanelDoNotUseOrYouWillBeFired=Grt;Db.generatePicker=UCe;var sie=p.createContext(null),jCe=p.createContext({}),Hrt=["prefixCls","className","containerRef"],Zrt=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,i=on(t,Hrt),o=p.useContext(jCe),s=o.panel,l=Sd(s,a);return p.createElement("div",Re({className:ce("".concat(n,"-content"),r),role:"dialog",ref:l},bi(t,{aria:!0}),{"aria-modal":"true"},i))};function lie(e){return typeof e=="string"&&String(Number(e))===e?(Ma(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var cie={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Krt(e,t){var n,r,a,i=e.prefixCls,o=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,d=e.autoFocus,f=e.keyboard,m=e.classNames,h=e.rootClassName,g=e.rootStyle,O=e.zIndex,v=e.className,y=e.id,S=e.style,C=e.motion,_=e.width,w=e.height,T=e.children,A=e.mask,k=e.maskClosable,I=e.maskMotion,M=e.maskClassName,Q=e.maskStyle,F=e.afterOpenChange,L=e.onClose,U=e.onMouseEnter,R=e.onMouseOver,$=e.onMouseLeave,P=e.onClick,z=e.onKeyDown,B=e.onKeyUp,D=e.styles,X=e.drawerRender,Y=p.useRef(),q=p.useRef(),H=p.useRef();p.useImperativeHandle(t,function(){return Y.current});var J=function(De){var Le=De.keyCode,Ne=De.shiftKey;switch(Le){case Vt.TAB:{if(Le===Vt.TAB){if(!Ne&&document.activeElement===H.current){var et;(et=q.current)===null||et===void 0||et.focus({preventScroll:!0})}else if(Ne&&document.activeElement===q.current){var He;(He=H.current)===null||He===void 0||He.focus({preventScroll:!0})}}break}case Vt.ESC:{L&&f&&(De.stopPropagation(),L(De));break}}};p.useEffect(function(){if(o&&d){var Ee;(Ee=Y.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}},[o]);var te=p.useState(!1),ne=be(te,2),ie=ne[0],le=ne[1],ue=p.useContext(sie),oe;typeof c=="boolean"?oe=c?{}:{distance:0}:oe=c||{};var ge=(n=(r=(a=oe)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:ue==null?void 0:ue.pushDistance)!==null&&n!==void 0?n:180,ve=p.useMemo(function(){return{pushDistance:ge,push:function(){le(!0)},pull:function(){le(!1)}}},[ge]);p.useEffect(function(){if(o){var Ee;ue==null||(Ee=ue.push)===null||Ee===void 0||Ee.call(ue)}else{var De;ue==null||(De=ue.pull)===null||De===void 0||De.call(ue)}},[o]),p.useEffect(function(){return function(){var Ee;ue==null||(Ee=ue.pull)===null||Ee===void 0||Ee.call(ue)}},[]);var he=p.createElement(ao,Re({key:"mask"},I,{visible:A&&o}),function(Ee,De){var Le=Ee.className,Ne=Ee.style;return p.createElement("div",{className:ce("".concat(i,"-mask"),Le,m==null?void 0:m.mask,M),style:se(se(se({},Ne),Q),D==null?void 0:D.mask),onClick:k&&o?L:void 0,ref:De})}),me=typeof C=="function"?C(s):C,xe={};if(ie&&ge)switch(s){case"top":xe.transform="translateY(".concat(ge,"px)");break;case"bottom":xe.transform="translateY(".concat(-ge,"px)");break;case"left":xe.transform="translateX(".concat(ge,"px)");break;default:xe.transform="translateX(".concat(-ge,"px)");break}s==="left"||s==="right"?xe.width=lie(_):xe.height=lie(w);var we={onMouseEnter:U,onMouseOver:R,onMouseLeave:$,onClick:P,onKeyDown:z,onKeyUp:B},Qe=p.createElement(ao,Re({key:"panel"},me,{visible:o,forceRender:u,onVisibleChanged:function(De){F==null||F(De)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(Ee,De){var Le=Ee.className,Ne=Ee.style,et=p.createElement(Zrt,Re({id:y,containerRef:De,prefixCls:i,className:ce(v,m==null?void 0:m.content),style:se(se({},S),D==null?void 0:D.content)},bi(e,{aria:!0}),we),T);return p.createElement("div",Re({className:ce("".concat(i,"-content-wrapper"),m==null?void 0:m.wrapper,Le),style:se(se(se({},xe),Ne),D==null?void 0:D.wrapper)},bi(e,{data:!0})),X?X(et):et)}),Ie=se({},g);return O&&(Ie.zIndex=O),p.createElement(sie.Provider,{value:ve},p.createElement("div",{className:ce(i,"".concat(i,"-").concat(s),h,ae(ae({},"".concat(i,"-open"),o),"".concat(i,"-inline"),l)),style:Ie,tabIndex:-1,ref:Y,onKeyDown:J},he,p.createElement("div",{tabIndex:0,ref:q,style:cie,"aria-hidden":"true","data-sentinel":"start"}),Qe,p.createElement("div",{tabIndex:0,ref:H,style:cie,"aria-hidden":"true","data-sentinel":"end"})))}var Jrt=p.forwardRef(Krt),eat=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,i=a===void 0?"rc-drawer":a,o=t.placement,s=o===void 0?"right":o,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,d=u===void 0?!0:u,f=t.width,m=f===void 0?378:f,h=t.mask,g=h===void 0?!0:h,O=t.maskClosable,v=O===void 0?!0:O,y=t.getContainer,S=t.forceRender,C=t.afterOpenChange,_=t.destroyOnClose,w=t.onMouseEnter,T=t.onMouseOver,A=t.onMouseLeave,k=t.onClick,I=t.onKeyDown,M=t.onKeyUp,Q=t.panelRef,F=p.useState(!1),L=be(F,2),U=L[0],R=L[1],$=p.useState(!1),P=be($,2),z=P[0],B=P[1];tr(function(){B(!0)},[]);var D=z?r:!1,X=p.useRef(),Y=p.useRef();tr(function(){D&&(Y.current=document.activeElement)},[D]);var q=function(ie){var le;if(R(ie),C==null||C(ie),!ie&&Y.current&&!((le=X.current)!==null&&le!==void 0&&le.contains(Y.current))){var ue;(ue=Y.current)===null||ue===void 0||ue.focus({preventScroll:!0})}},H=p.useMemo(function(){return{panel:Q}},[Q]);if(!S&&!U&&!D&&_)return null;var J={onMouseEnter:w,onMouseOver:T,onMouseLeave:A,onClick:k,onKeyDown:I,onKeyUp:M},te=se(se({},t),{},{open:D,prefixCls:i,placement:s,autoFocus:c,keyboard:d,width:m,mask:g,maskClosable:v,inline:y===!1,afterOpenChange:q,ref:X},J);return p.createElement(jCe.Provider,{value:H},p.createElement(UE,{open:D||S||U,autoDestroy:!1,getContainer:y,autoLock:g&&(D||U)},p.createElement(Jrt,te)))};const XCe=e=>{var t,n;const{prefixCls:r,ariaId:a,title:i,footer:o,extra:s,closable:l,loading:c,onClose:u,headerStyle:d,bodyStyle:f,footerStyle:m,children:h,classNames:g,styles:O}=e,v=$i("drawer");let y;l===!1?y=void 0:l===void 0||l===!0?y="start":y=(l==null?void 0:l.placement)==="end"?"end":"start";const S=p.useCallback(A=>p.createElement("button",{type:"button",onClick:u,className:ce(`${r}-close`,{[`${r}-close-${y}`]:y==="end"})},A),[u,r,y]),[C,_]=dj(j0(e),j0(v),{closable:!0,closeIconRender:S}),w=()=>{var A,k;return!i&&!C?null:p.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(A=v.styles)===null||A===void 0?void 0:A.header),d),O==null?void 0:O.header),className:ce(`${r}-header`,{[`${r}-header-close-only`]:C&&!i&&!s},(k=v.classNames)===null||k===void 0?void 0:k.header,g==null?void 0:g.header)},p.createElement("div",{className:`${r}-header-title`},y==="start"&&_,i&&p.createElement("div",{className:`${r}-title`,id:a},i)),s&&p.createElement("div",{className:`${r}-extra`},s),y==="end"&&_)},T=()=>{var A,k;if(!o)return null;const I=`${r}-footer`;return p.createElement("div",{className:ce(I,(A=v.classNames)===null||A===void 0?void 0:A.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(k=v.styles)===null||k===void 0?void 0:k.footer),m),O==null?void 0:O.footer)},o)};return p.createElement(p.Fragment,null,w(),p.createElement("div",{className:ce(`${r}-body`,g==null?void 0:g.body,(t=v.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=v.styles)===null||n===void 0?void 0:n.body),f),O==null?void 0:O.body)},c?p.createElement(pm,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),T())},tat=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},YCe=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),VCe=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},YCe({opacity:e},{opacity:1})),nat=(e,t)=>[VCe(.7,t),YCe({transform:tat(e)},{transform:"none"})],rat=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:VCe(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:nat(a,n)}),{})}}},aat=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:i,motionDurationSlow:o,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:m,lineType:h,colorSplit:g,marginXS:O,colorIcon:v,colorIconHover:y,colorBgTextHover:S,colorBgTextActive:C,colorText:_,fontWeightStrong:w,footerPaddingBlock:T,footerPaddingInline:A,calc:k}=e,I=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:_,"&-pure":{position:"relative",background:i,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"},[I]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${I}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${I}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${I}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${I}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${de(c)} ${de(u)}`,fontSize:d,lineHeight:f,borderBottom:`${de(m)} ${h} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:k(d).add(l).equal(),height:k(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:v,fontWeight:w,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:O},[`&:not(${n}-close-end)`]:{marginInlineEnd:O},"&:hover":{color:y,backgroundColor:S,textDecoration:"none"},"&:active":{backgroundColor:C}},Ul(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${de(T)} ${de(A)}`,borderTop:`${de(m)} ${h} ${g}`},"&-rtl":{direction:"rtl"}}}},iat=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),qCe=Er("Drawer",e=>{const t=nr(e,{});return[aat(t),rat(t)]},iat);var WCe=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:i=!0,push:o=oat,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,panelRef:f=null,style:m,className:h,"aria-labelledby":g,visible:O,afterVisibleChange:v,maskStyle:y,drawerStyle:S,contentWrapperStyle:C,destroyOnClose:_,destroyOnHidden:w}=e,T=WCe(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),A=$b(),k=T.title?A:void 0,{getPopupContainer:I,getPrefixCls:M,direction:Q,className:F,style:L,classNames:U,styles:R}=$i("drawer"),$=M("drawer",u),[P,z,B]=qCe($),D=d===void 0&&I?()=>I(document.body):d,X=ce({"no-mask":!i,[`${$}-rtl`]:Q==="rtl"},t,z,B),Y=p.useMemo(()=>n??(a==="large"?736:378),[n,a]),q=p.useMemo(()=>r??(a==="large"?736:378),[r,a]),H={motionName:cl($,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},J=ge=>({motionName:cl($,`panel-motion-${ge}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),te=Wxe(),ne=Ci(f,te),[ie,le]=Ed("Drawer",T.zIndex),{classNames:ue={},styles:oe={}}=T;return P(p.createElement(hu,{form:!0,space:!0},p.createElement(QE.Provider,{value:le},p.createElement(eat,Object.assign({prefixCls:$,onClose:c,maskMotion:H,motion:J},T,{classNames:{mask:ce(ue.mask,U.mask),content:ce(ue.content,U.content),wrapper:ce(ue.wrapper,U.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},oe.mask),y),R.mask),content:Object.assign(Object.assign(Object.assign({},oe.content),S),R.content),wrapper:Object.assign(Object.assign(Object.assign({},oe.wrapper),C),R.wrapper)},open:s??O,mask:i,push:o,width:Y,height:q,style:Object.assign(Object.assign({},L),m),className:ce(F,h),rootClassName:X,getContainer:D,afterOpenChange:l??v,panelRef:ne,zIndex:ie,"aria-labelledby":g??k,destroyOnClose:w??_}),p.createElement(XCe,Object.assign({prefixCls:$},T,{ariaId:k,onClose:c}))))))},sat=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,i=WCe(e,["prefixCls","style","className","placement"]),{getPrefixCls:o}=p.useContext(fn),s=o("drawer",t),[l,c,u]=qCe(s),d=ce(s,`${s}-pure`,`${s}-${a}`,c,u,r);return l(p.createElement("div",{className:d,style:n},p.createElement(XCe,Object.assign({prefixCls:s},i))))};sX._InternalPanelDoNotUseOrYouWillBeFired=sat;function z$(e){return["small","middle","large"].includes(e)}function uie(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const lat=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:i,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:l,borderRadiusSM:c,colorBgContainerDisabled:u,lineWidth:d}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:u,borderWidth:d,borderStyle:"solid",borderColor:a,borderRadius:n,"&-large":{fontSize:o,borderRadius:l},"&-small":{paddingInline:i,borderRadius:c,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Cb(e,{focus:!1})]}},cat=Er(["Space","Addon"],e=>[lat(e)]);var uat=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:i}=e,o=uat(e,["className","children","style","prefixCls"]),{getPrefixCls:s,direction:l}=Z.useContext(fn),c=s("space-addon",i),[u,d,f]=cat(c),{compactItemClassnames:m,compactSize:h}=xd(c,l),g=ce(c,d,m,f,{[`${c}-${h}`]:h},n);return u(Z.createElement("div",Object.assign({ref:t,className:g,style:a},o),r))}),GCe=Z.createContext({latestIndex:0}),fat=GCe.Provider,pat=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:i}=p.useContext(GCe);return n==null?null:p.createElement(p.Fragment,null,p.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"}}}},hat=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}}}},gat=Er("Space",e=>{const t=nr(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[mat(t),hat(t)]},()=>({}),{resetStyle:!1});var Oat=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:i,className:o,style:s,classNames:l,styles:c}=$i("space"),{size:u=i??"small",align:d,className:f,rootClassName:m,children:h,direction:g="horizontal",prefixCls:O,split:v,style:y,wrap:S=!1,classNames:C,styles:_}=e,w=Oat(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,A]=Array.isArray(u)?u:[u,u],k=z$(A),I=z$(T),M=uie(A),Q=uie(T),F=To(h,{keepEmpty:!0}),L=d===void 0&&g==="horizontal"?"center":d,U=r("space",O),[R,$,P]=gat(U),z=ce(U,o,$,`${U}-${g}`,{[`${U}-rtl`]:a==="rtl",[`${U}-align-${L}`]:L,[`${U}-gap-row-${A}`]:k,[`${U}-gap-col-${T}`]:I},f,m,P),B=ce(`${U}-item`,(n=C==null?void 0:C.item)!==null&&n!==void 0?n:l.item),D=Object.assign(Object.assign({},c.item),_==null?void 0:_.item),X=F.map((H,J)=>{const te=(H==null?void 0:H.key)||`${B}-${J}`;return p.createElement(pat,{className:B,key:te,index:J,split:v,style:D},H)}),Y=p.useMemo(()=>({latestIndex:F.reduce((J,te,ne)=>te!=null?ne:J,0)}),[F]);if(F.length===0)return null;const q={};return S&&(q.flexWrap="wrap"),!I&&Q&&(q.columnGap=T),!k&&M&&(q.rowGap=A),R(p.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},q),s),y)},w),p.createElement(fat,{value:Y},X)))}),gc=bat;gc.Compact=hYe;gc.Addon=dat;var vat=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}=p.useContext(fn),{prefixCls:a,type:i="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:m,arrow:h,autoFocus:g,overlay:O,trigger:v,align:y,open:S,onOpenChange:C,placement:_,getPopupContainer:w,href:T,icon:A=p.createElement(Bj,null),title:k,buttonsRender:I=ue=>ue,mouseEnterDelay:M,mouseLeaveDelay:Q,overlayClassName:F,overlayStyle:L,destroyOnHidden:U,destroyPopupOnHide:R,dropdownRender:$,popupRender:P}=e,z=vat(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"]),B=n("dropdown",a),D=`${B}-button`,Y={menu:m,arrow:h,autoFocus:g,align:y,disabled:s,trigger:s?[]:v,onOpenChange:C,getPopupContainer:w||t,mouseEnterDelay:M,mouseLeaveDelay:Q,overlayClassName:F,overlayStyle:L,destroyOnHidden:U,popupRender:P||$},{compactSize:q,compactItemClassnames:H}=xd(B,r),J=ce(D,H,f);"destroyPopupOnHide"in e&&(Y.destroyPopupOnHide=R),"overlay"in e&&(Y.overlay=O),"open"in e&&(Y.open=S),"placement"in e?Y.placement=_:Y.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=p.createElement(Ur,{type:i,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:T,title:k},d),ne=p.createElement(Ur,{type:i,danger:o,icon:A}),[ie,le]=I([te,ne]);return p.createElement(gc.Compact,Object.assign({className:J,size:q,block:!0},z),ie,p.createElement(Mk,Object.assign({},Y),le))};HCe.__ANT_BUTTON=!0;const ex=Mk;ex.Button=HCe;const ZCe=["wrap","nowrap","wrap-reverse"],KCe=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],JCe=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],yat=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&ZCe.includes(n)}},Sat=(e,t)=>{const n={};return JCe.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},_at=(e,t)=>{const n={};return KCe.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function Eat(e,t){return ce(Object.assign(Object.assign(Object.assign({},yat(e,t)),Sat(e,t)),_at(e,t)))}const xat=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Tat=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},wat=e=>{const{componentCls:t}=e,n={};return ZCe.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},Cat=e=>{const{componentCls:t}=e,n={};return JCe.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},$at=e=>{const{componentCls:t}=e,n={};return KCe.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},Rat=()=>({}),Pat=Er("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=nr(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[xat(a),Tat(a),wat(a),Cat(a),$at(a)]},Rat,{resetStyle:!1});var kat=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,rootClassName:r,className:a,style:i,flex:o,gap:s,vertical:l=!1,component:c="div",children:u}=e,d=kat(e,["prefixCls","rootClassName","className","style","flex","gap","vertical","component","children"]),{flex:f,direction:m,getPrefixCls:h}=Z.useContext(fn),g=h("flex",n),[O,v,y]=Pat(g),S=l??(f==null?void 0:f.vertical),C=ce(a,r,f==null?void 0:f.className,g,v,y,Eat(g,e),{[`${g}-rtl`]:m==="rtl",[`${g}-gap-${s}`]:z$(s),[`${g}-vertical`]:S}),_=Object.assign(Object.assign({},f==null?void 0:f.style),i);return o&&(_.flex=o),s&&!z$(s)&&(_.gap=s),O(Z.createElement(c,Object.assign({ref:t,className:C,style:_},ga(d,["justify","wrap","align"])),u))});function Aat(e){return e==null?null:typeof e=="object"&&!p.isValidElement(e)?e:{title:e}}function B$(e){const[t,n]=p.useState(e);return p.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Nat=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}, + `]:{color:w}})}]},Wrt=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:i,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${de(n)} 0`}},rx(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${de(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${de(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${f}`}},[`&: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}}},Grt=Er("InputNumber",e=>{const t=nr(e,$g(e));return[qrt(t),Wrt(t),Ab(t)]},Vrt,{unitless:{handleOpacity:!0},resetFont:!1});var Hrt=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}=p.useContext(pn),a=p.useRef(null);p.useImperativeHandle(t,()=>a.current);const{className:i,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,suffix:m,bordered:h,readOnly:g,status:O,controls:v,variant:y}=e,S=Hrt(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",c),_=Ua(C),[w,T,k]=Grt(C,_),{compactSize:A,compactItemClassnames:I}=Pd(C,r);let M=p.createElement(Crt,{className:`${C}-handler-up-inner`}),Q=p.createElement(Bk,{className:`${C}-handler-down-inner`});const B=typeof v=="boolean"?v:void 0;typeof v=="object"&&(M=typeof v.upIcon>"u"?M:p.createElement("span",{className:`${C}-handler-up-inner`},v.upIcon),Q=typeof v.downIcon>"u"?Q:p.createElement("span",{className:`${C}-handler-down-inner`},v.downIcon));const{hasFeedback:D,status:U,isFormItemInput:R,feedbackIcon:$}=p.useContext(io),P=xg(U,O),z=Xi(ne=>{var ie;return(ie=s??A)!==null&&ie!==void 0?ie:ne}),F=p.useContext(jo),L=l??F,[X,Y]=ym("inputNumber",y,h),q=D&&p.createElement(p.Fragment,null,$),G=le({[`${C}-lg`]:z==="large",[`${C}-sm`]:z==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:R},T),ee=`${C}-group`,K=p.createElement(Yrt,Object.assign({ref:a,disabled:L,className:le(k,_,i,o,I),upHandler:M,downHandler:Q,prefixCls:C,readOnly:g,controls:B,prefix:f,suffix:q||m,addonBefore:u&&p.createElement(yu,{form:!0,space:!0},u),addonAfter:d&&p.createElement(yu,{form:!0,space:!0},d),classNames:{input:G,variant:le({[`${C}-${X}`]:Y},Wp(C,P,D)),affixWrapper:le({[`${C}-affix-wrapper-sm`]:z==="small",[`${C}-affix-wrapper-lg`]:z==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl",[`${C}-affix-wrapper-without-controls`]:v===!1||L||g},T),wrapper:le({[`${ee}-rtl`]:r==="rtl"},T),groupWrapper:le({[`${C}-group-wrapper-sm`]:z==="small",[`${C}-group-wrapper-lg`]:z==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${X}`]:Y},Wp(`${C}-group-wrapper`,P,D),T)}},S));return w(K)}),vf=l2e,Zrt=e=>p.createElement(ui,{theme:{components:{InputNumber:{handleVisible:!0}}}},p.createElement(l2e,Object.assign({},e)));vf._InternalPanelDoNotUseOrYouWillBeFired=Zrt;const c2e=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:Z.createElement(Df,null)}),t};function u2e(e,t){const n=p.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,i,o,s;!((a=e.current)===null||a===void 0)&&a.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return p.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function Krt(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Jrt=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:i,disabled:o,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:f,className:m,style:h,styles:g,rootClassName:O,onChange:v,classNames:y,variant:S,_skipAddonWarning:C}=e,_=Jrt(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:w,direction:T,allowClear:k,autoComplete:A,className:I,style:M,classNames:Q,styles:B}=$i("input"),D=w("input",n),U=p.useRef(null),R=Ua(D),[$,P,z]=UCe(D,O),[F]=jCe(D,R),{compactSize:L,compactItemClassnames:X}=Pd(D,T),Y=Xi(Fe=>{var Me;return(Me=i??L)!==null&&Me!==void 0?Me:Fe}),q=Z.useContext(jo),G=o??q,{status:ee,hasFeedback:K,feedbackIcon:ne}=p.useContext(io),ie=xg(ee,a),se=Krt(e)||!!K;p.useRef(se);const ue=u2e(U,!0),ce=Fe=>{ue(),s==null||s(Fe)},be=Fe=>{ue(),l==null||l(Fe)},ge=Fe=>{ue(),v==null||v(Fe)},Oe=(K||c)&&Z.createElement(Z.Fragment,null,c,K&&ne),me=c2e(u??k),[Te,Ce]=ym("input",S,r);return $(F(Z.createElement(Irt,Object.assign({ref:Ci(t,U),prefixCls:D,autoComplete:A},_,{disabled:G,onBlur:ce,onFocus:be,style:Object.assign(Object.assign({},M),h),styles:Object.assign(Object.assign({},B),g),suffix:Oe,allowClear:me,className:le(m,O,z,R,X,I),onChange:ge,addonBefore:f&&Z.createElement(yu,{form:!0,space:!0},f),addonAfter:d&&Z.createElement(yu,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},y),Q),{input:le({[`${D}-sm`]:Y==="small",[`${D}-lg`]:Y==="large",[`${D}-rtl`]:T==="rtl"},y==null?void 0:y.input,Q.input,P),variant:le({[`${D}-${Te}`]:Ce},Wp(D,ie)),affixWrapper:le({[`${D}-affix-wrapper-sm`]:Y==="small",[`${D}-affix-wrapper-lg`]:Y==="large",[`${D}-affix-wrapper-rtl`]:T==="rtl"},P),wrapper:le({[`${D}-group-rtl`]:T==="rtl"},P),groupWrapper:le({[`${D}-group-wrapper-sm`]:Y==="small",[`${D}-group-wrapper-lg`]:Y==="large",[`${D}-group-wrapper-rtl`]:T==="rtl",[`${D}-group-wrapper-${Te}`]:Ce},Wp(`${D}-group-wrapper`,ie,K),P)})}))))});var eat={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"},tat=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:eat}))},nat=p.forwardRef(tat);const d2e=(e,t,n,r,a)=>{const{classNames:i,styles:o}=$i(e),[s,l]=JXe([i,t],[o,n],{popup:{_default:"root"}});return p.useMemo(()=>{var c,u;const d=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:le((c=s.popup)===null||c===void 0?void 0:c.root,r)})}),f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(u=l.popup)===null||u===void 0?void 0:u.root),a)})});return[d,f]},[s,l,r,a])};function rat(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 aat(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 f2e(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=hwe(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[p.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[iat,oat]=["week","WeekPicker"],[sat,lat]=["month","MonthPicker"],[cat,uat]=["year","YearPicker"],[dat,fat]=["quarter","QuarterPicker"],[PX,Pie]=["time","TimePicker"];var pat={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"},mat=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:pat}))},hat=p.forwardRef(mat),gat={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"},Oat=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:gat}))},bat=p.forwardRef(Oat);const p2e=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?Z.createElement(Z.Fragment,null,e===PX?Z.createElement(bat,null):Z.createElement(hat,null),t&&n):r,vat=e=>p.createElement(Ur,Object.assign({size:"small",type:"primary"},e));function m2e(e){return p.useMemo(()=>Object.assign({button:vat},e),[e])}var yat=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);ap.forwardRef((n,r)=>{var a;const{prefixCls:i,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:d,disabled:f,bordered:m=!0,placeholder:h,popupStyle:g,popupClassName:O,dropdownClassName:v,status:y,rootClassName:S,variant:C,picker:_,styles:w,classNames:T,suffixIcon:k}=n,A=yat(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),I=_===PX?"timePicker":"datePicker",M=p.useRef(null),{getPrefixCls:Q,direction:B,getPopupContainer:D,rangePicker:U}=p.useContext(pn),R=Q("picker",i),{compactSize:$,compactItemClassnames:P}=Pd(R,B),z=Q(),[F,L]=ym("rangePicker",C,m),X=Ua(R),[Y,q,G]=XCe(R,X),[ee,K]=d2e(I,T,w,O||v,g),[ne]=f2e(n,R),ie=m2e(s),se=Xi(Ee=>{var Le;return(Le=d??$)!==null&&Le!==void 0?Le:Ee}),ue=p.useContext(jo),ce=f??ue,be=p.useContext(io),{hasFeedback:ge,status:Oe,feedbackIcon:me}=be,Te=p.createElement(p2e,{picker:_,hasFeedback:ge,feedbackIcon:me,suffixIcon:k});p.useImperativeHandle(r,()=>M.current);const[Ce]=fl("Calendar",I$),Fe=Object.assign(Object.assign({},Ce),n.locale),[Me]=Rd("DatePicker",(a=K.popup.root)===null||a===void 0?void 0:a.zIndex);return Y(p.createElement(yu,{space:!0},p.createElement(ott,Object.assign({separator:p.createElement("span",{"aria-label":"to",className:`${R}-separator`},p.createElement(nat,null)),disabled:ce,ref:M,placement:u,placeholder:aat(Fe,_,h),suffixIcon:Te,prevIcon:p.createElement("span",{className:`${R}-prev-icon`}),nextIcon:p.createElement("span",{className:`${R}-next-icon`}),superPrevIcon:p.createElement("span",{className:`${R}-super-prev-icon`}),superNextIcon:p.createElement("span",{className:`${R}-super-next-icon`}),transitionName:`${z}-slide-up`,picker:_},A,{className:le({[`${R}-${se}`]:se,[`${R}-${F}`]:L},Wp(R,xg(Oe,y),ge),q,P,l,U==null?void 0:U.className,G,X,S,ee.root),style:Object.assign(Object.assign(Object.assign({},U==null?void 0:U.style),c),K.root),locale:Fe.lang,prefixCls:R,getPopupContainer:o||D,generateConfig:e,components:ie,direction:B,classNames:{popup:le(q,G,X,S,ee.popup.root)},styles:{popup:Object.assign(Object.assign({},K.popup.root),{zIndex:Me})},allowClear:ne}))))});var _at=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=(l,c)=>{const u=c===Pie?"timePicker":"datePicker";return p.forwardRef((f,m)=>{var h;const{prefixCls:g,getPopupContainer:O,components:v,style:y,className:S,rootClassName:C,size:_,bordered:w,placement:T,placeholder:k,popupStyle:A,popupClassName:I,dropdownClassName:M,disabled:Q,status:B,variant:D,onCalendarChange:U,styles:R,classNames:$,suffixIcon:P}=f,z=_at(f,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:F,direction:L,getPopupContainer:X,[u]:Y}=p.useContext(pn),q=F("picker",g),{compactSize:G,compactItemClassnames:ee}=Pd(q,L),K=p.useRef(null),[ne,ie]=ym("datePicker",D,w),se=Ua(q),[ue,ce,be]=XCe(q,se);p.useImperativeHandle(m,()=>K.current);const ge={showToday:!0},Oe=l||f.picker,me=F(),{onSelect:Te,multiple:Ce}=z,Fe=Te&&l==="time"&&!Ce,Me=(Ie,ve,we)=>{U==null||U(Ie,ve,we),Fe&&Te(Ie)},[Ee,Le]=d2e(u,$,R,I||M,A),[ze,Qe]=f2e(f,q),Je=m2e(v),He=Xi(Ie=>{var ve;return(ve=_??G)!==null&&ve!==void 0?ve:Ie}),gt=p.useContext(jo),st=Q??gt,lt=p.useContext(io),{hasFeedback:pt,status:Ze,feedbackIcon:De}=lt,Ke=p.createElement(p2e,{picker:Oe,hasFeedback:pt,feedbackIcon:De,suffixIcon:P}),[Be]=fl("DatePicker",I$),We=Object.assign(Object.assign({},Be),f.locale),[Re]=Rd("DatePicker",(h=Le.popup.root)===null||h===void 0?void 0:h.zIndex);return ue(p.createElement(yu,{space:!0},p.createElement(ftt,Object.assign({ref:K,placeholder:rat(We,Oe,k),suffixIcon:Ke,placement:T,prevIcon:p.createElement("span",{className:`${q}-prev-icon`}),nextIcon:p.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:p.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:p.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${me}-slide-up`,picker:l,onCalendarChange:Me},ge,z,{locale:We.lang,className:le({[`${q}-${He}`]:He,[`${q}-${ne}`]:ie},Wp(q,xg(Ze,B),pt),ce,ee,Y==null?void 0:Y.className,S,be,se,C,Ee.root),style:Object.assign(Object.assign(Object.assign({},Y==null?void 0:Y.style),y),Le.root),prefixCls:q,getPopupContainer:O||X,generateConfig:e,components:Je,direction:L,disabled:st,classNames:{popup:le(ce,be,se,C,Ee.popup.root)},styles:{popup:Object.assign(Object.assign({},Le.popup.root),{zIndex:Re})},allowClear:ze,removeIcon:Qe}))))})},n=t(),r=t(iat,oat),a=t(sat,lat),i=t(cat,uat),o=t(dat,fat),s=t(PX,Pie);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:i,TimePicker:s,QuarterPicker:o}},h2e=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:i,QuarterPicker:o}=Eat(e),s=Sat(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=a,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=o,l},Fb=h2e(pet),xat=ZE(Fb,"popupAlign",void 0,"picker");Fb._InternalPanelDoNotUseOrYouWillBeFired=xat;const Tat=ZE(Fb.RangePicker,"popupAlign",void 0,"picker");Fb._InternalRangePanelDoNotUseOrYouWillBeFired=Tat;Fb.generatePicker=h2e;var kie=p.createContext(null),g2e=p.createContext({}),wat=["prefixCls","className","containerRef"],Cat=function(t){var n=t.prefixCls,r=t.className,a=t.containerRef,i=ln(t,wat),o=p.useContext(g2e),s=o.panel,l=Cd(s,a);return p.createElement("div",Ae({className:le("".concat(n,"-content"),r),role:"dialog",ref:l},vi(t,{aria:!0}),{"aria-modal":"true"},i))};function Aie(e){return typeof e=="string"&&String(Number(e))===e?(Da(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var Nie={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function $at(e,t){var n,r,a,i=e.prefixCls,o=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,d=e.autoFocus,f=e.keyboard,m=e.classNames,h=e.rootClassName,g=e.rootStyle,O=e.zIndex,v=e.className,y=e.id,S=e.style,C=e.motion,_=e.width,w=e.height,T=e.children,k=e.mask,A=e.maskClosable,I=e.maskMotion,M=e.maskClassName,Q=e.maskStyle,B=e.afterOpenChange,D=e.onClose,U=e.onMouseEnter,R=e.onMouseOver,$=e.onMouseLeave,P=e.onClick,z=e.onKeyDown,F=e.onKeyUp,L=e.styles,X=e.drawerRender,Y=p.useRef(),q=p.useRef(),G=p.useRef();p.useImperativeHandle(t,function(){return Y.current});var ee=function(Le){var ze=Le.keyCode,Qe=Le.shiftKey;switch(ze){case Ht.TAB:{if(ze===Ht.TAB){if(!Qe&&document.activeElement===G.current){var Je;(Je=q.current)===null||Je===void 0||Je.focus({preventScroll:!0})}else if(Qe&&document.activeElement===q.current){var He;(He=G.current)===null||He===void 0||He.focus({preventScroll:!0})}}break}case Ht.ESC:{D&&f&&(Le.stopPropagation(),D(Le));break}}};p.useEffect(function(){if(o&&d){var Ee;(Ee=Y.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}},[o]);var K=p.useState(!1),ne=ye(K,2),ie=ne[0],se=ne[1],ue=p.useContext(kie),ce;typeof c=="boolean"?ce=c?{}:{distance:0}:ce=c||{};var be=(n=(r=(a=ce)===null||a===void 0?void 0:a.distance)!==null&&r!==void 0?r:ue==null?void 0:ue.pushDistance)!==null&&n!==void 0?n:180,ge=p.useMemo(function(){return{pushDistance:be,push:function(){se(!0)},pull:function(){se(!1)}}},[be]);p.useEffect(function(){if(o){var Ee;ue==null||(Ee=ue.push)===null||Ee===void 0||Ee.call(ue)}else{var Le;ue==null||(Le=ue.pull)===null||Le===void 0||Le.call(ue)}},[o]),p.useEffect(function(){return function(){var Ee;ue==null||(Ee=ue.pull)===null||Ee===void 0||Ee.call(ue)}},[]);var Oe=p.createElement(ro,Ae({key:"mask"},I,{visible:k&&o}),function(Ee,Le){var ze=Ee.className,Qe=Ee.style;return p.createElement("div",{className:le("".concat(i,"-mask"),ze,m==null?void 0:m.mask,M),style:oe(oe(oe({},Qe),Q),L==null?void 0:L.mask),onClick:A&&o?D:void 0,ref:Le})}),me=typeof C=="function"?C(s):C,Te={};if(ie&&be)switch(s){case"top":Te.transform="translateY(".concat(be,"px)");break;case"bottom":Te.transform="translateY(".concat(-be,"px)");break;case"left":Te.transform="translateX(".concat(be,"px)");break;default:Te.transform="translateX(".concat(-be,"px)");break}s==="left"||s==="right"?Te.width=Aie(_):Te.height=Aie(w);var Ce={onMouseEnter:U,onMouseOver:R,onMouseLeave:$,onClick:P,onKeyDown:z,onKeyUp:F},Fe=p.createElement(ro,Ae({key:"panel"},me,{visible:o,forceRender:u,onVisibleChanged:function(Le){B==null||B(Le)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(Ee,Le){var ze=Ee.className,Qe=Ee.style,Je=p.createElement(Cat,Ae({id:y,containerRef:Le,prefixCls:i,className:le(v,m==null?void 0:m.content),style:oe(oe({},S),L==null?void 0:L.content)},vi(e,{aria:!0}),Ce),T);return p.createElement("div",Ae({className:le("".concat(i,"-content-wrapper"),m==null?void 0:m.wrapper,ze),style:oe(oe(oe({},Te),Qe),L==null?void 0:L.wrapper)},vi(e,{data:!0})),X?X(Je):Je)}),Me=oe({},g);return O&&(Me.zIndex=O),p.createElement(kie.Provider,{value:ge},p.createElement("div",{className:le(i,"".concat(i,"-").concat(s),h,ae(ae({},"".concat(i,"-open"),o),"".concat(i,"-inline"),l)),style:Me,tabIndex:-1,ref:Y,onKeyDown:ee},Oe,p.createElement("div",{tabIndex:0,ref:q,style:Nie,"aria-hidden":"true","data-sentinel":"start"}),Fe,p.createElement("div",{tabIndex:0,ref:G,style:Nie,"aria-hidden":"true","data-sentinel":"end"})))}var Rat=p.forwardRef($at),Pat=function(t){var n=t.open,r=n===void 0?!1:n,a=t.prefixCls,i=a===void 0?"rc-drawer":a,o=t.placement,s=o===void 0?"right":o,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,d=u===void 0?!0:u,f=t.width,m=f===void 0?378:f,h=t.mask,g=h===void 0?!0:h,O=t.maskClosable,v=O===void 0?!0:O,y=t.getContainer,S=t.forceRender,C=t.afterOpenChange,_=t.destroyOnClose,w=t.onMouseEnter,T=t.onMouseOver,k=t.onMouseLeave,A=t.onClick,I=t.onKeyDown,M=t.onKeyUp,Q=t.panelRef,B=p.useState(!1),D=ye(B,2),U=D[0],R=D[1],$=p.useState(!1),P=ye($,2),z=P[0],F=P[1];tr(function(){F(!0)},[]);var L=z?r:!1,X=p.useRef(),Y=p.useRef();tr(function(){L&&(Y.current=document.activeElement)},[L]);var q=function(ie){var se;if(R(ie),C==null||C(ie),!ie&&Y.current&&!((se=X.current)!==null&&se!==void 0&&se.contains(Y.current))){var ue;(ue=Y.current)===null||ue===void 0||ue.focus({preventScroll:!0})}},G=p.useMemo(function(){return{panel:Q}},[Q]);if(!S&&!U&&!L&&_)return null;var ee={onMouseEnter:w,onMouseOver:T,onMouseLeave:k,onClick:A,onKeyDown:I,onKeyUp:M},K=oe(oe({},t),{},{open:L,prefixCls:i,placement:s,autoFocus:c,keyboard:d,width:m,mask:g,maskClosable:v,inline:y===!1,afterOpenChange:q,ref:X},ee);return p.createElement(g2e.Provider,{value:G},p.createElement(WE,{open:L||S||U,autoDestroy:!1,getContainer:y,autoLock:g&&(L||U)},p.createElement(Rat,K)))};const O2e=e=>{var t,n;const{prefixCls:r,ariaId:a,title:i,footer:o,extra:s,closable:l,loading:c,onClose:u,headerStyle:d,bodyStyle:f,footerStyle:m,children:h,classNames:g,styles:O}=e,v=$i("drawer");let y;l===!1?y=void 0:l===void 0||l===!0?y="start":y=(l==null?void 0:l.placement)==="end"?"end":"start";const S=p.useCallback(k=>p.createElement("button",{type:"button",onClick:u,className:le(`${r}-close`,{[`${r}-close-${y}`]:y==="end"})},k),[u,r,y]),[C,_]=Mj(W0(e),W0(v),{closable:!0,closeIconRender:S}),w=()=>{var k,A;return!i&&!C?null:p.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(k=v.styles)===null||k===void 0?void 0:k.header),d),O==null?void 0:O.header),className:le(`${r}-header`,{[`${r}-header-close-only`]:C&&!i&&!s},(A=v.classNames)===null||A===void 0?void 0:A.header,g==null?void 0:g.header)},p.createElement("div",{className:`${r}-header-title`},y==="start"&&_,i&&p.createElement("div",{className:`${r}-title`,id:a},i)),s&&p.createElement("div",{className:`${r}-extra`},s),y==="end"&&_)},T=()=>{var k,A;if(!o)return null;const I=`${r}-footer`;return p.createElement("div",{className:le(I,(k=v.classNames)===null||k===void 0?void 0:k.footer,g==null?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},(A=v.styles)===null||A===void 0?void 0:A.footer),m),O==null?void 0:O.footer)},o)};return p.createElement(p.Fragment,null,w(),p.createElement("div",{className:le(`${r}-body`,g==null?void 0:g.body,(t=v.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=v.styles)===null||n===void 0?void 0:n.body),f),O==null?void 0:O.body)},c?p.createElement(vm,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),T())},kat=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},b2e=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),v2e=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},b2e({opacity:e},{opacity:1})),Aat=(e,t)=>[v2e(.7,t),b2e({transform:kat(e)},{transform:"none"})],Nat=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:v2e(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,a)=>Object.assign(Object.assign({},r),{[`&-${a}`]:Aat(a,n)}),{})}}},Iat=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:a,colorBgElevated:i,motionDurationSlow:o,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:f,lineWidth:m,lineType:h,colorSplit:g,marginXS:O,colorIcon:v,colorIconHover:y,colorBgTextHover:S,colorBgTextActive:C,colorText:_,fontWeightStrong:w,footerPaddingBlock:T,footerPaddingInline:k,calc:A}=e,I=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:_,"&-pure":{position:"relative",background:i,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"},[I]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${I}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${I}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${I}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${I}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${de(c)} ${de(u)}`,fontSize:d,lineHeight:f,borderBottom:`${de(m)} ${h} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:A(d).add(l).equal(),height:A(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:v,fontWeight:w,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:O},[`&:not(${n}-close-end)`]:{marginInlineEnd:O},"&:hover":{color:y,backgroundColor:S,textDecoration:"none"},"&:active":{backgroundColor:C}},Ul(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:f},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${de(T)} ${de(k)}`,borderTop:`${de(m)} ${h} ${g}`},"&-rtl":{direction:"rtl"}}}},Mat=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),y2e=Er("Drawer",e=>{const t=nr(e,{});return[Iat(t),Nat(t)]},Mat);var S2e=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:i=!0,push:o=Dat,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,panelRef:f=null,style:m,className:h,"aria-labelledby":g,visible:O,afterVisibleChange:v,maskStyle:y,drawerStyle:S,contentWrapperStyle:C,destroyOnClose:_,destroyOnHidden:w}=e,T=S2e(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","aria-labelledby","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),k=Nb(),A=T.title?k:void 0,{getPopupContainer:I,getPrefixCls:M,direction:Q,className:B,style:D,classNames:U,styles:R}=$i("drawer"),$=M("drawer",u),[P,z,F]=y2e($),L=d===void 0&&I?()=>I(document.body):d,X=le({"no-mask":!i,[`${$}-rtl`]:Q==="rtl"},t,z,F),Y=p.useMemo(()=>n??(a==="large"?736:378),[n,a]),q=p.useMemo(()=>r??(a==="large"?736:378),[r,a]),G={motionName:cl($,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ee=be=>({motionName:cl($,`panel-motion-${be}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),K=STe(),ne=Ci(f,K),[ie,se]=Rd("Drawer",T.zIndex),{classNames:ue={},styles:ce={}}=T;return P(p.createElement(yu,{form:!0,space:!0},p.createElement(XE.Provider,{value:se},p.createElement(Pat,Object.assign({prefixCls:$,onClose:c,maskMotion:G,motion:ee},T,{classNames:{mask:le(ue.mask,U.mask),content:le(ue.content,U.content),wrapper:le(ue.wrapper,U.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ce.mask),y),R.mask),content:Object.assign(Object.assign(Object.assign({},ce.content),S),R.content),wrapper:Object.assign(Object.assign(Object.assign({},ce.wrapper),C),R.wrapper)},open:s??O,mask:i,push:o,width:Y,height:q,style:Object.assign(Object.assign({},D),m),className:le(B,h),rootClassName:X,getContainer:L,afterOpenChange:l??v,panelRef:ne,zIndex:ie,"aria-labelledby":g??A,destroyOnClose:w??_}),p.createElement(O2e,Object.assign({prefixCls:$},T,{ariaId:A,onClose:c}))))))},Lat=e=>{const{prefixCls:t,style:n,className:r,placement:a="right"}=e,i=S2e(e,["prefixCls","style","className","placement"]),{getPrefixCls:o}=p.useContext(pn),s=o("drawer",t),[l,c,u]=y2e(s),d=le(s,`${s}-pure`,`${s}-${a}`,c,u,r);return l(p.createElement("div",{className:d,style:n},p.createElement(O2e,Object.assign({prefixCls:s},i))))};kX._InternalPanelDoNotUseOrYouWillBeFired=Lat;function H$(e){return["small","middle","large"].includes(e)}function Iie(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Qat=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:a,paddingXS:i,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:l,borderRadiusSM:c,colorBgContainerDisabled:u,lineWidth:d}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:u,borderWidth:d,borderStyle:"solid",borderColor:a,borderRadius:n,"&-large":{fontSize:o,borderRadius:l},"&-small":{paddingInline:i,borderRadius:c,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Ab(e,{focus:!1})]}},zat=Er(["Space","Addon"],e=>[Qat(e)]);var Bat=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:i}=e,o=Bat(e,["className","children","style","prefixCls"]),{getPrefixCls:s,direction:l}=Z.useContext(pn),c=s("space-addon",i),[u,d,f]=zat(c),{compactItemClassnames:m,compactSize:h}=Pd(c,l),g=le(c,d,m,f,{[`${c}-${h}`]:h},n);return u(Z.createElement("div",Object.assign({ref:t,className:g,style:a},o),r))}),_2e=Z.createContext({latestIndex:0}),Uat=_2e.Provider,jat=({className:e,index:t,children:n,split:r,style:a})=>{const{latestIndex:i}=p.useContext(_2e);return n==null?null:p.createElement(p.Fragment,null,p.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"}}}},Yat=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}}}},Vat=Er("Space",e=>{const t=nr(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[Xat(t),Yat(t)]},()=>({}),{resetStyle:!1});var qat=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:i,className:o,style:s,classNames:l,styles:c}=$i("space"),{size:u=i??"small",align:d,className:f,rootClassName:m,children:h,direction:g="horizontal",prefixCls:O,split:v,style:y,wrap:S=!1,classNames:C,styles:_}=e,w=qat(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,k]=Array.isArray(u)?u:[u,u],A=H$(k),I=H$(T),M=Iie(k),Q=Iie(T),B=xo(h,{keepEmpty:!0}),D=d===void 0&&g==="horizontal"?"center":d,U=r("space",O),[R,$,P]=Vat(U),z=le(U,o,$,`${U}-${g}`,{[`${U}-rtl`]:a==="rtl",[`${U}-align-${D}`]:D,[`${U}-gap-row-${k}`]:A,[`${U}-gap-col-${T}`]:I},f,m,P),F=le(`${U}-item`,(n=C==null?void 0:C.item)!==null&&n!==void 0?n:l.item),L=Object.assign(Object.assign({},c.item),_==null?void 0:_.item),X=B.map((G,ee)=>{const K=(G==null?void 0:G.key)||`${F}-${ee}`;return p.createElement(jat,{className:F,key:K,index:ee,split:v,style:L},G)}),Y=p.useMemo(()=>({latestIndex:B.reduce((ee,K,ne)=>K!=null?ne:ee,0)}),[B]);if(B.length===0)return null;const q={};return S&&(q.flexWrap="wrap"),!I&&Q&&(q.columnGap=T),!A&&M&&(q.rowGap=k),R(p.createElement("div",Object.assign({ref:t,className:z,style:Object.assign(Object.assign(Object.assign({},q),s),y)},w),p.createElement(Uat,{value:Y},X)))}),gc=Wat;gc.Compact=YYe;gc.Addon=Fat;var Gat=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}=p.useContext(pn),{prefixCls:a,type:i="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:f,menu:m,arrow:h,autoFocus:g,overlay:O,trigger:v,align:y,open:S,onOpenChange:C,placement:_,getPopupContainer:w,href:T,icon:k=p.createElement(uX,null),title:A,buttonsRender:I=ue=>ue,mouseEnterDelay:M,mouseLeaveDelay:Q,overlayClassName:B,overlayStyle:D,destroyOnHidden:U,destroyPopupOnHide:R,dropdownRender:$,popupRender:P}=e,z=Gat(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"]),F=n("dropdown",a),L=`${F}-button`,Y={menu:m,arrow:h,autoFocus:g,align:y,disabled:s,trigger:s?[]:v,onOpenChange:C,getPopupContainer:w||t,mouseEnterDelay:M,mouseLeaveDelay:Q,overlayClassName:B,overlayStyle:D,destroyOnHidden:U,popupRender:P||$},{compactSize:q,compactItemClassnames:G}=Pd(F,r),ee=le(L,G,f);"destroyPopupOnHide"in e&&(Y.destroyPopupOnHide=R),"overlay"in e&&(Y.overlay=O),"open"in e&&(Y.open=S),"placement"in e?Y.placement=_:Y.placement=r==="rtl"?"bottomLeft":"bottomRight";const K=p.createElement(Ur,{type:i,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:T,title:A},d),ne=p.createElement(Ur,{type:i,danger:o,icon:k}),[ie,se]=I([K,ne]);return p.createElement(gc.Compact,Object.assign({className:ee,size:q,block:!0},z),ie,p.createElement(qk,Object.assign({},Y),se))};E2e.__ANT_BUTTON=!0;const ox=qk;ox.Button=E2e;const x2e=["wrap","nowrap","wrap-reverse"],T2e=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],w2e=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],Hat=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&x2e.includes(n)}},Zat=(e,t)=>{const n={};return w2e.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Kat=(e,t)=>{const n={};return T2e.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function Jat(e,t){return le(Object.assign(Object.assign(Object.assign({},Hat(e,t)),Zat(e,t)),Kat(e,t)))}const eit=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},tit=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},nit=e=>{const{componentCls:t}=e,n={};return x2e.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},rit=e=>{const{componentCls:t}=e,n={};return w2e.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},ait=e=>{const{componentCls:t}=e,n={};return T2e.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},iit=()=>({}),oit=Er("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,a=nr(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[eit(a),tit(a),nit(a),rit(a),ait(a)]},iit,{resetStyle:!1});var sit=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,rootClassName:r,className:a,style:i,flex:o,gap:s,vertical:l=!1,component:c="div",children:u}=e,d=sit(e,["prefixCls","rootClassName","className","style","flex","gap","vertical","component","children"]),{flex:f,direction:m,getPrefixCls:h}=Z.useContext(pn),g=h("flex",n),[O,v,y]=oit(g),S=l??(f==null?void 0:f.vertical),C=le(a,r,f==null?void 0:f.className,g,v,y,Jat(g,e),{[`${g}-rtl`]:m==="rtl",[`${g}-gap-${s}`]:H$(s),[`${g}-vertical`]:S}),_=Object.assign(Object.assign({},f==null?void 0:f.style),i);return o&&(_.flex=o),s&&!H$(s)&&(_.gap=s),O(Z.createElement(c,Object.assign({ref:t,className:C,style:_},Oa(d,["justify","wrap","align"])),u))});function lit(e){return e==null?null:typeof e=="object"&&!p.isValidElement(e)?e:{title:e}}function Z$(e){const[t,n]=p.useState(e);return p.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const cit=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)"}}}}},Iat=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${de(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 ${de(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),die=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Mat=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},zr(e)),Iat(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},die(e,e.controlHeightSM)),"&-large":Object.assign({},die(e,e.controlHeightLG))})}},Dat=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:i,labelColor:o,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},zr(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${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:Oj,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ah=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Lat=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`]:ah(e)}}},Qat=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"}}}}},zat=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ah(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Bat=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)"}}}}},uit=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${de(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 ${de(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Mie=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},dit=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Qr(e)),uit(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Mie(e,e.controlHeightSM)),"&-large":Object.assign({},Mie(e,e.controlHeightLG))})}},fit=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:i,labelColor:o,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},Qr(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:o,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${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:Fj,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},dh=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),pit=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`]:dh(e)}}},mit=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"}}}}},hit=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:dh(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},git=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`]:ah(e)},[`@media (max-width: ${de(e.screenXSMax)})`]:[zat(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ah(e)}}}],[`@media (max-width: ${de(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ah(e)}}},[`@media (max-width: ${de(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ah(e)}}},[`@media (max-width: ${de(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ah(e)}}}}},Fat=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}),e2e=(e,t)=>nr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),lX=Er("Form",(e,{rootPrefixCls:t})=>{const n=e2e(e,t);return[Mat(n),Dat(n),Nat(n),Lat(n),Qat(n),Bat(n),uk(n),Oj]},Fat,{order:-1e3}),fie=[];function l5(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const t2e=({help:e,helpStatus:t,errors:n=fie,warnings:r=fie,className:a,fieldId:i,onVisibleChanged:o})=>{const{prefixCls:s}=p.useContext(Ej),l=`${s}-item-explain`,c=Fa(s),[u,d,f]=lX(s,c),m=p.useMemo(()=>p_(s),[s]),h=B$(n),g=B$(r),O=p.useMemo(()=>e!=null?[l5(e,"help",t)]:[].concat(Ke(h.map((S,C)=>l5(S,"error","error",C))),Ke(g.map((S,C)=>l5(S,"warning","warning",C)))),[e,t,h,g]),v=p.useMemo(()=>{const S={};return O.forEach(({key:C})=>{S[C]=(S[C]||0)+1}),O.map((C,_)=>Object.assign(Object.assign({},C),{key:S[C.key]>1?`${C.key}-fallback-${_}`:C.key}))},[O]),y={};return i&&(y.id=`${i}_help`),u(p.createElement(ao,{motionDeadline:m.motionDeadline,motionName:`${s}-show-help`,visible:!!v.length,onVisibleChanged:o},S=>{const{className:C,style:_}=S;return p.createElement("div",Object.assign({},y,{className:ce(l,C,f,c,a,d),style:_}),p.createElement(ak,Object.assign({keys:v},p_(s),{motionName:`${s}-show-help-item`,component:!1}),w=>{const{key:T,error:A,errorStatus:k,className:I,style:M}=w;return p.createElement("div",{key:T,className:ce(I,{[`${l}-${k}`]:k}),style:M},A)}))}))};var Uat=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=p.useContext(Xo),{getPrefixCls:r,direction:a,requiredMark:i,colon:o,scrollToFirstError:s,className:l,style:c}=$i("form"),{prefixCls:u,className:d,rootClassName:f,size:m,disabled:h=n,form:g,colon:O,labelAlign:v,labelWrap:y,labelCol:S,wrapperCol:C,hideRequiredMark:_,layout:w="horizontal",scrollToFirstError:T,requiredMark:A,onFinishFailed:k,name:I,style:M,feedbackIcons:Q,variant:F}=e,L=Uat(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),U=Yi(m),R=p.useContext(_Ee),$=p.useMemo(()=>A!==void 0?A:_?!1:i!==void 0?i:!0,[_,A,i]),P=O??o,z=r("form",u),B=Fa(z),[D,X,Y]=lX(z,B),q=ce(z,`${z}-${w}`,{[`${z}-hide-required-mark`]:$===!1,[`${z}-rtl`]:a==="rtl",[`${z}-${U}`]:U},Y,B,X,l,d,f),[H]=lCe(g),{__INTERNAL__:J}=H;J.name=I;const te=p.useMemo(()=>({name:I,labelAlign:v,labelCol:S,labelWrap:y,wrapperCol:C,layout:w,colon:P,requiredMark:$,itemRef:J.itemRef,form:H,feedbackIcons:Q}),[I,v,S,C,w,P,$,H,Q]),ne=p.useRef(null);p.useImperativeHandle(t,()=>{var ue;return Object.assign(Object.assign({},H),{nativeElement:(ue=ne.current)===null||ue===void 0?void 0:ue.nativeElement})});const ie=(ue,oe)=>{if(ue){let ge={block:"nearest"};typeof ue=="object"&&(ge=Object.assign(Object.assign({},ge),ue)),H.scrollToField(oe,ge)}},le=ue=>{if(k==null||k(ue),ue.errorFields.length){const oe=ue.errorFields[0].name;if(T!==void 0){ie(T,oe);return}s!==void 0&&ie(s,oe)}};return D(p.createElement(Vxe.Provider,{value:F},p.createElement(aj,{disabled:h},p.createElement(Fh.Provider,{value:U},p.createElement(Xxe,{validateMessages:R},p.createElement(yf.Provider,{value:te},p.createElement(Yxe,{status:!0},p.createElement(Rb,Object.assign({id:I},L,{name:I,onFinishFailed:le,form:H,ref:ne,style:Object.assign(Object.assign({},c),M),className:q})))))))))},Xat=p.forwardRef(jat);function Yat(e){if(typeof e=="function")return e;const t=To(e);return t.length<=1?t[0]:t}const n2e=()=>{const{status:e,errors:t=[],warnings:n=[]}=p.useContext(oo);return{status:e,errors:t,warnings:n}};n2e.Context=oo;function Vat(e){const[t,n]=p.useState(e),r=p.useRef(null),a=p.useRef([]),i=p.useRef(!1);p.useEffect(()=>(i.current=!1,()=>{i.current=!0,ur.cancel(r.current),r.current=null}),[]);function o(s){i.current||(r.current===null&&(a.current=[],r.current=ur(()=>{r.current=null,n(l=>{let c=l;return a.current.forEach(u=>{c=u(c)}),c})})),a.current.push(s))}return[t,o]}function qat(){const{itemRef:e}=p.useContext(yf),t=p.useRef({});function n(r,a){const i=a&&typeof a=="object"&&fm(a),o=r.join("_");return(t.current.name!==o||t.current.originRef!==i)&&(t.current.name=o,t.current.originRef=i,t.current.ref=Ci(e(r),i)),t.current.ref}return n}const Wat=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Gat=mg(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=e2e(e,t);return Wat(n)});var Hat=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:i,errors:o,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m,label:h}=e,g=`${t}-item`,O=p.useContext(yf),v=p.useMemo(()=>{let L=Object.assign({},a||O.wrapperCol||{});return h===null&&!r&&!a&&O.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(R=>{const $=R?[R]:[],P=Cs(O.labelCol,$),z=typeof P=="object"?P:{},B=Cs(L,$),D=typeof B=="object"?B:{};"span"in z&&!("offset"in D)&&z.span{const{labelCol:L,wrapperCol:U}=O;return Hat(O,["labelCol","wrapperCol"])},[O]),C=p.useRef(null),[_,w]=p.useState(0);tr(()=>{c&&C.current?w(C.current.clientHeight):w(0)},[c]);const T=p.createElement("div",{className:`${g}-control-input`},p.createElement("div",{className:`${g}-control-input-content`},i)),A=p.useMemo(()=>({prefixCls:t,status:n}),[t,n]),k=f!==null||o.length||s.length?p.createElement(Ej.Provider,{value:A},p.createElement(t2e,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:m})):null,I={};d&&(I.id=`${d}_extra`);const M=c?p.createElement("div",Object.assign({},I,{className:`${g}-extra`,ref:C}),c):null,Q=k||M?p.createElement("div",{className:`${g}-additional`,style:f?{minHeight:f+_}:{}},k,M):null,F=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:T,errorList:k,extra:M}):p.createElement(p.Fragment,null,T,Q);return p.createElement(yf.Provider,{value:S},p.createElement(ACe,Object.assign({},v,{className:y}),F),p.createElement(Gat,{prefixCls:t}))};var Jat={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"},eit=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Jat}))},tit=p.forwardRef(eit),nit=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 u;const[d]=fl("Form"),{labelAlign:f,labelCol:m,labelWrap:h,colon:g}=p.useContext(yf);if(!t)return null;const O=r||m||{},v=a||f,y=`${e}-item-label`,S=ce(y,v==="left"&&`${y}-left`,O.className,{[`${y}-wrap`]:!!h});let C=t;const _=i===!0||g!==!1&&i!==!1;_&&!c&&typeof t=="string"&&t.trim()&&(C=t.replace(/[:|:]\s*$/,""));const T=Aat(l);if(T){const{icon:F=p.createElement(tit,null)}=T,L=nit(T,["icon"]),U=p.createElement(Co,Object.assign({},L),p.cloneElement(F,{className:`${e}-item-tooltip`,title:"",onClick:R=>{R.preventDefault()},tabIndex:null}));C=p.createElement(p.Fragment,null,C,U)}const A=s==="optional",k=typeof s=="function",I=s===!1;k?C=s(C,{required:!!o}):A&&!o&&(C=p.createElement(p.Fragment,null,C,p.createElement("span",{className:`${e}-item-optional`,title:""},(d==null?void 0:d.optional)||((u=pu.Form)===null||u===void 0?void 0:u.optional))));let M;I?M="hidden":(A||k)&&(M="optional");const Q=ce({[`${e}-item-required`]:o,[`${e}-item-required-mark-${M}`]:M,[`${e}-item-no-colon`]:!_});return p.createElement(ACe,Object.assign({},O,{className:S}),p.createElement("label",{htmlFor:n,className:Q,title:typeof t=="string"?t:""},C))},ait={success:hg,warning:xb,error:Pf,validating:mu};function r2e({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:i,meta:o,noStyle:s,name:l}){const c=`${i}-item`,{feedbackIcons:u}=p.useContext(yf),d=sCe(t,n,o,null,!!r,a),{isFormItemInput:f,status:m,hasFeedback:h,feedbackIcon:g,name:O}=p.useContext(oo),v=p.useMemo(()=>{var y;let S;if(r){const _=r!==!0&&r.icons||u,w=d&&((y=_==null?void 0:_({status:d,errors:t,warnings:n}))===null||y===void 0?void 0:y[d]),T=d?ait[d]:null;S=w!==!1&&T?p.createElement("span",{className:ce(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},w||p.createElement(T,null)):null}const C={status:d||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:S,isFormItemInput:!0,name:l};return s&&(C.status=(d??m)||"",C.isFormItemInput=f,C.hasFeedback=!!(r??h),C.feedbackIcon=r!==void 0?C.feedbackIcon:g,C.name=l??O),C},[d,r,s,f,m]);return p.createElement(oo.Provider,{value:v},e)}var iit=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(F&&k.current){const D=getComputedStyle(k.current);R(Number.parseInt(D.marginBottom,10))}},[F,L]);const $=D=>{D||R(null)},z=((D=!1)=>{const X=D?I:c.errors,Y=D?M:c.warnings;return sCe(X,Y,c,"",!!u,l)})(),B=ce(C,n,r,{[`${C}-with-help`]:Q||I.length||M.length,[`${C}-has-feedback`]:z&&u,[`${C}-has-success`]:z==="success",[`${C}-has-warning`]:z==="warning",[`${C}-has-error`]:z==="error",[`${C}-is-validating`]:z==="validating",[`${C}-hidden`]:d,[`${C}-${T}`]:T});return p.createElement("div",{className:B,style:a,ref:k},p.createElement(Int,Object.assign({className:`${C}-row`},ga(S,["_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"])),p.createElement(rit,Object.assign({htmlFor:m},e,{requiredMark:_,required:h??g,prefixCls:t,vertical:A})),p.createElement(Kat,Object.assign({},e,c,{errors:I,warnings:M,prefixCls:t,status:z,help:i,marginBottom:U,onErrorVisibleChanged:$}),p.createElement(jxe.Provider,{value:O},p.createElement(r2e,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:z,name:y},f)))),!!U&&p.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-U}}))}const sit="__SPLIT__";function lit(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const i=e[a],o=t[a];return i===o||typeof i=="function"||typeof o=="function"})}const cit=p.memo(({children:e})=>e,(e,t)=>lit(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function pie(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function uit(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:i,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:m,hidden:h,help:g,layout:O}=e,{getPrefixCls:v}=p.useContext(fn),{name:y}=p.useContext(yf),S=Yat(l),C=typeof S=="function",_=p.useContext(jxe),{validateTrigger:w}=p.useContext(jh),T=m!==void 0?m:w,A=t!=null,k=v("form",i),I=Fa(k),[M,Q,F]=lX(k,I);_d();const L=p.useContext(h_),U=p.useRef(null),[R,$]=Vat({}),[P,z]=Uh(()=>pie()),B=te=>{const ne=L==null?void 0:L.getKey(te.name);if(z(te.destroy?pie():te,!0),n&&g!==!1&&_){let ie=te.name;if(te.destroy)ie=U.current||ie;else if(ne!==void 0){const[le,ue]=ne;ie=[le].concat(Ke(ue)),U.current=ie}_(te,ie)}},D=(te,ne)=>{$(ie=>{const le=Object.assign({},ie),oe=[].concat(Ke(te.name.slice(0,-1)),Ke(ne)).join(sit);return te.destroy?delete le[oe]:le[oe]=te,le})},[X,Y]=p.useMemo(()=>{const te=Ke(P.errors),ne=Ke(P.warnings);return Object.values(R).forEach(ie=>{te.push.apply(te,Ke(ie.errors||[])),ne.push.apply(ne,Ke(ie.warnings||[]))}),[te,ne]},[R,P.errors,P.warnings]),q=qat();function H(te,ne,ie){return n&&!h?p.createElement(r2e,{prefixCls:k,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:X,warnings:Y,noStyle:!0,name:t},te):p.createElement(oit,Object.assign({key:"row"},e,{className:ce(r,F,I,Q),prefixCls:k,fieldId:ne,isRequired:ie,errors:X,warnings:Y,meta:P,onSubItemMetaChange:D,layout:O,name:t}),te)}if(!A&&!C&&!a)return M(H(S));let J={};return typeof u=="string"?J.label=u:t&&(J.label=String(t)),d&&(J=Object.assign(Object.assign({},J),d)),M(p.createElement(Sj,Object.assign({},e,{messageVariables:J,trigger:f,validateTrigger:T,onMetaChange:B}),(te,ne,ie)=>{const le=TS(t).length&&ne?ne.name:[],ue=oCe(le,y),oe=c!==void 0?c:!!(s!=null&&s.some(he=>{if(he&&typeof he=="object"&&he.required&&!he.warningOnly)return!0;if(typeof he=="function"){const me=he(ie);return(me==null?void 0:me.required)&&!(me!=null&&me.warningOnly)}return!1})),ge=Object.assign({},te);let ve=null;if(Array.isArray(S)&&A)ve=S;else if(!(C&&(!(o||a)||A))){if(!(a&&!C&&!A))if(p.isValidElement(S)){const he=Object.assign(Object.assign({},S.props),ge);if(he.id||(he.id=ue),g||X.length>0||Y.length>0||e.extra){const we=[];(g||X.length>0)&&we.push(`${ue}_help`),e.extra&&we.push(`${ue}_extra`),he["aria-describedby"]=we.join(" ")}X.length>0&&(he["aria-invalid"]="true"),oe&&(he["aria-required"]="true"),fu(S)&&(he.ref=q(le,S)),new Set([].concat(Ke(TS(f)),Ke(TS(T)))).forEach(we=>{he[we]=(...Qe)=>{var Ie,Ee,De,Le,Ne;(De=ge[we])===null||De===void 0||(Ie=De).call.apply(Ie,[ge].concat(Qe)),(Ne=(Le=S.props)[we])===null||Ne===void 0||(Ee=Ne).call.apply(Ee,[Le].concat(Qe))}});const xe=[he["aria-required"],he["aria-invalid"],he["aria-describedby"]];ve=p.createElement(cit,{control:ge,update:S,childProps:xe},wo(S,he))}else C&&(o||a)&&!A?ve=S(ie):ve=S}return H(ve,ue,oe)}))}const cX=uit;cX.useStatus=n2e;var dit=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=dit(e,["prefixCls","children"]);const{getPrefixCls:a}=p.useContext(fn),i=a("form",t),o=p.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return p.createElement(zxe,Object.assign({},r),(s,l,c)=>p.createElement(Ej.Provider,{value:o},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function pit(){const{form:e}=p.useContext(yf);return e}const ps=Xat;ps.Item=cX;ps.List=fit;ps.ErrorList=t2e;ps.useForm=lCe;ps.useFormInstance=pit;ps.useWatch=Uxe;ps.Provider=Xxe;ps.create=()=>{};var mit={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"},hit=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:mit}))},uX=p.forwardRef(hit);function a2e(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function git(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 Rp(e,t,n,r){var a=rl.unstable_batchedUpdates?function(o){rl.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var tx=p.createContext(null),Oit=function(t){var n=t.visible,r=t.maskTransitionName,a=t.getContainer,i=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,d=t.current,f=t.transform,m=t.count,h=t.scale,g=t.minScale,O=t.maxScale,v=t.closeIcon,y=t.onActive,S=t.onClose,C=t.onZoomIn,_=t.onZoomOut,w=t.onRotateRight,T=t.onRotateLeft,A=t.onFlipX,k=t.onFlipY,I=t.onReset,M=t.toolbarRender,Q=t.zIndex,F=t.image,L=p.useContext(tx),U=s.rotateLeft,R=s.rotateRight,$=s.zoomIn,P=s.zoomOut,z=s.close,B=s.left,D=s.right,X=s.flipX,Y=s.flipY,q="".concat(i,"-operations-operation");p.useEffect(function(){var me=function(we){we.keyCode===Vt.ESC&&S()};return n&&window.addEventListener("keydown",me),function(){window.removeEventListener("keydown",me)}},[n]);var H=function(xe,we){xe.preventDefault(),xe.stopPropagation(),y(we)},J=p.useCallback(function(me){var xe=me.type,we=me.disabled,Qe=me.onClick,Ie=me.icon;return p.createElement("div",{key:xe,className:ce(q,"".concat(i,"-operations-operation-").concat(xe),ae({},"".concat(i,"-operations-operation-disabled"),!!we)),onClick:Qe},Ie)},[q,i]),te=c?J({icon:B,onClick:function(xe){return H(xe,-1)},type:"prev",disabled:d===0}):void 0,ne=c?J({icon:D,onClick:function(xe){return H(xe,1)},type:"next",disabled:d===m-1}):void 0,ie=J({icon:Y,onClick:k,type:"flipY"}),le=J({icon:X,onClick:A,type:"flipX"}),ue=J({icon:U,onClick:T,type:"rotateLeft"}),oe=J({icon:R,onClick:w,type:"rotateRight"}),ge=J({icon:P,onClick:_,type:"zoomOut",disabled:h<=g}),ve=J({icon:$,onClick:C,type:"zoomIn",disabled:h===O}),he=p.createElement("div",{className:"".concat(i,"-operations")},ie,le,ue,oe,ge,ve);return p.createElement(ao,{visible:n,motionName:r},function(me){var xe=me.className,we=me.style;return p.createElement(UE,{open:!0,getContainer:a??document.body},p.createElement("div",{className:ce("".concat(i,"-operations-wrapper"),xe,o),style:se(se({},we),{},{zIndex:Q})},v===null?null:p.createElement("button",{className:"".concat(i,"-close"),onClick:S},v||z),c&&p.createElement(p.Fragment,null,p.createElement("div",{className:ce("".concat(i,"-switch-left"),ae({},"".concat(i,"-switch-left-disabled"),d===0)),onClick:function(Ie){return H(Ie,-1)}},B),p.createElement("div",{className:ce("".concat(i,"-switch-right"),ae({},"".concat(i,"-switch-right-disabled"),d===m-1)),onClick:function(Ie){return H(Ie,1)}},D)),p.createElement("div",{className:"".concat(i,"-footer")},u&&p.createElement("div",{className:"".concat(i,"-progress")},l?l(d+1,m):p.createElement("bdi",null,"".concat(d+1," / ").concat(m))),M?M(he,se(se({icons:{prevIcon:te,nextIcon:ne,flipYIcon:ie,flipXIcon:le,rotateLeftIcon:ue,rotateRightIcon:oe,zoomOutIcon:ge,zoomInIcon:ve},actions:{onActive:y,onFlipY:k,onFlipX:A,onRotateLeft:T,onRotateRight:w,onZoomOut:_,onZoomIn:C,onReset:I,onClose:S},transform:f},L?{current:d,total:m}:{}),{},{image:F})):he)))})},fw={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function bit(e,t,n,r){var a=p.useRef(null),i=p.useRef([]),o=p.useState(fw),s=be(o,2),l=s[0],c=s[1],u=function(h){c(fw),Bl(fw,l)||r==null||r({transform:fw,action:h})},d=function(h,g){a.current===null&&(i.current=[],a.current=ur(function(){c(function(O){var v=O;return i.current.forEach(function(y){v=se(se({},v),y)}),a.current=null,r==null||r({transform:v,action:g}),v})})),i.current.push(se(se({},l),h))},f=function(h,g,O,v,y){var S=e.current,C=S.width,_=S.height,w=S.offsetWidth,T=S.offsetHeight,A=S.offsetLeft,k=S.offsetTop,I=h,M=l.scale*h;M>n?(M=n,I=n/l.scale):Mr){if(t>0)return ae({},e,i);if(t<0&&ar)return ae({},e,t<0?i:-i);return{}}function i2e(e,t,n,r){var a=a2e(),i=a.width,o=a.height,s=null;return e<=i&&t<=o?s={x:0,y:0}:(e>i||t>o)&&(s=se(se({},mie("x",n,e,i)),mie("y",r,t,o))),s}var ZO=1,vit=1;function yit(e,t,n,r,a,i,o){var s=a.rotate,l=a.scale,c=a.x,u=a.y,d=p.useState(!1),f=be(d,2),m=f[0],h=f[1],g=p.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),O=function(_){!t||_.button!==0||(_.preventDefault(),_.stopPropagation(),g.current={diffX:_.pageX-c,diffY:_.pageY-u,transformX:c,transformY:u},h(!0))},v=function(_){n&&m&&i({x:_.pageX-g.current.diffX,y:_.pageY-g.current.diffY},"move")},y=function(){if(n&&m){h(!1);var _=g.current,w=_.transformX,T=_.transformY,A=c!==w&&u!==T;if(!A)return;var k=e.current.offsetWidth*l,I=e.current.offsetHeight*l,M=e.current.getBoundingClientRect(),Q=M.left,F=M.top,L=s%180!==0,U=i2e(L?I:k,L?k:I,Q,F);U&&i(se({},U),"dragRebound")}},S=function(_){if(!(!n||_.deltaY==0)){var w=Math.abs(_.deltaY/100),T=Math.min(w,vit),A=ZO+T*r;_.deltaY>0&&(A=ZO/A),o(A,"wheel",_.clientX,_.clientY)}};return p.useEffect(function(){var C,_,w,T;if(t){w=Rp(window,"mouseup",y,!1),T=Rp(window,"mousemove",v,!1);try{window.top!==window.self&&(C=Rp(window.top,"mouseup",y,!1),_=Rp(window.top,"mousemove",v,!1))}catch{}}return function(){var A,k,I,M;(A=w)===null||A===void 0||A.remove(),(k=T)===null||k===void 0||k.remove(),(I=C)===null||I===void 0||I.remove(),(M=_)===null||M===void 0||M.remove()}},[n,m,c,u,s,t]),{isMoving:m,onMouseDown:O,onMouseMove:v,onMouseUp:y,onWheel:S}}function Sit(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 o2e(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,a=p.useState(n?"loading":"normal"),i=be(a,2),o=i[0],s=i[1],l=p.useRef(!1),c=o==="error";p.useEffect(function(){var m=!0;return Sit(t).then(function(h){!h&&m&&s("error")}),function(){m=!1}},[t]),p.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},d=function(h){l.current=!1,o==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(l.current=!0,u())},f=c&&r?{src:r}:{onLoad:u,src:t};return[d,f,o]}function F$(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function _it(e,t,n,r){var a=F$(e,n),i=F$(t,r);if(a===0&&i===0)return[e.x,e.y];var o=a/(a+i),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function Eit(e,t,n,r,a,i,o){var s=a.rotate,l=a.scale,c=a.x,u=a.y,d=p.useState(!1),f=be(d,2),m=f[0],h=f[1],g=p.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),O=function(_){g.current=se(se({},g.current),_)},v=function(_){if(t){_.stopPropagation(),h(!0);var w=_.touches,T=w===void 0?[]:w;T.length>1?O({point1:{x:T[0].clientX,y:T[0].clientY},point2:{x:T[1].clientX,y:T[1].clientY},eventType:"touchZoom"}):O({point1:{x:T[0].clientX-c,y:T[0].clientY-u},eventType:"move"})}},y=function(_){var w=_.touches,T=w===void 0?[]:w,A=g.current,k=A.point1,I=A.point2,M=A.eventType;if(T.length>1&&M==="touchZoom"){var Q={x:T[0].clientX,y:T[0].clientY},F={x:T[1].clientX,y:T[1].clientY},L=_it(k,I,Q,F),U=be(L,2),R=U[0],$=U[1],P=F$(Q,F)/F$(k,I);o(P,"touchZoom",R,$,!0),O({point1:Q,point2:F,eventType:"touchZoom"})}else M==="move"&&(i({x:T[0].clientX-k.x,y:T[0].clientY-k.y},"move"),O({eventType:"move"}))},S=function(){if(n){if(m&&h(!1),O({eventType:"none"}),r>l)return i({x:0,y:0,scale:r},"touchZoom");var _=e.current.offsetWidth*l,w=e.current.offsetHeight*l,T=e.current.getBoundingClientRect(),A=T.left,k=T.top,I=s%180!==0,M=i2e(I?w:_,I?_:w,A,k);M&&i(se({},M),"dragRebound")}};return p.useEffect(function(){var C;return n&&t&&(C=Rp(window,"touchmove",function(_){return _.preventDefault()},{passive:!1})),function(){var _;(_=C)===null||_===void 0||_.remove()}},[n,t]),{isTouching:m,onTouchStart:v,onTouchMove:y,onTouchEnd:S}}var xit=["fallback","src","imgRef"],Tit=["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"],wit=function(t){var n=t.fallback,r=t.src,a=t.imgRef,i=on(t,xit),o=o2e({src:r,fallback:n}),s=be(o,2),l=s[0],c=s[1];return Z.createElement("img",Re({ref:function(d){a.current=d,l(d)}},i,c))},s2e=function(t){var n=t.prefixCls,r=t.src,a=t.alt,i=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,d=t.icons,f=d===void 0?{}:d,m=t.rootClassName,h=t.closeIcon,g=t.getContainer,O=t.current,v=O===void 0?0:O,y=t.count,S=y===void 0?1:y,C=t.countRender,_=t.scaleStep,w=_===void 0?.5:_,T=t.minScale,A=T===void 0?1:T,k=t.maxScale,I=k===void 0?50:k,M=t.transitionName,Q=M===void 0?"zoom":M,F=t.maskTransitionName,L=F===void 0?"fade":F,U=t.imageRender,R=t.imgCommonProps,$=t.toolbarRender,P=t.onTransform,z=t.onChange,B=on(t,Tit),D=p.useRef(),X=p.useContext(tx),Y=X&&S>1,q=X&&S>=1,H=p.useState(!0),J=be(H,2),te=J[0],ne=J[1],ie=bit(D,A,I,P),le=ie.transform,ue=ie.resetTransform,oe=ie.updateTransform,ge=ie.dispatchZoomChange,ve=yit(D,l,u,w,le,oe,ge),he=ve.isMoving,me=ve.onMouseDown,xe=ve.onWheel,we=Eit(D,l,u,A,le,oe,ge),Qe=we.isTouching,Ie=we.onTouchStart,Ee=we.onTouchMove,De=we.onTouchEnd,Le=le.rotate,Ne=le.scale,et=ce(ae({},"".concat(n,"-moving"),he));p.useEffect(function(){te||ne(!0)},[te]);var He=function(){ue("close")},pt=function(){ge(ZO+w,"zoomIn")},lt=function(){ge(ZO/(ZO+w),"zoomOut")},it=function(){oe({rotate:Le+90},"rotateRight")},ut=function(){oe({rotate:Le-90},"rotateLeft")},We=function(){oe({flipX:!le.flipX},"flipX")},Me=function(){oe({flipY:!le.flipY},"flipY")},Ge=function(){ue("reset")},ze=function(Ue){var rt=v+Ue;!Number.isInteger(rt)||rt<0||rt>S-1||(ne(!1),ue(Ue<0?"prev":"next"),z==null||z(rt,v))},qe=function(Ue){!u||!Y||(Ue.keyCode===Vt.LEFT?ze(-1):Ue.keyCode===Vt.RIGHT&&ze(1))},Pe=function(Ue){u&&(Ne!==1?oe({x:0,y:0,scale:1},"doubleClick"):ge(ZO+w,"doubleClick",Ue.clientX,Ue.clientY))};p.useEffect(function(){var Te=Rp(window,"keydown",qe,!1);return function(){Te.remove()}},[u,Y,v]);var Ae=Z.createElement(wit,Re({},R,{width:t.width,height:t.height,imgRef:D,className:"".concat(n,"-img"),alt:a,style:{transform:"translate3d(".concat(le.x,"px, ").concat(le.y,"px, 0) scale3d(").concat(le.flipX?"-":"").concat(Ne,", ").concat(le.flipY?"-":"").concat(Ne,", 1) rotate(").concat(Le,"deg)"),transitionDuration:(!te||Qe)&&"0s"},fallback:o,src:r,onWheel:xe,onMouseDown:me,onDoubleClick:Pe,onTouchStart:Ie,onTouchMove:Ee,onTouchEnd:De,onTouchCancel:De})),Oe=se({url:r,alt:a},i);return Z.createElement(Z.Fragment,null,Z.createElement(vj,Re({transitionName:Q,maskTransitionName:L,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:et},rootClassName:m,getContainer:g},B,{afterClose:He}),Z.createElement("div",{className:"".concat(n,"-img-wrapper")},U?U(Ae,se({transform:le,image:Oe},X?{current:v}:{})):Ae)),Z.createElement(Oit,{visible:u,transform:le,maskTransitionName:L,closeIcon:h,getContainer:g,prefixCls:n,rootClassName:m,icons:f,countRender:C,showSwitch:Y,showProgress:q,current:v,count:S,scale:Ne,minScale:A,maxScale:I,toolbarRender:$,onActive:ze,onZoomIn:pt,onZoomOut:lt,onRotateRight:it,onRotateLeft:ut,onFlipX:We,onFlipY:Me,onClose:c,onReset:Ge,zIndex:B.zIndex!==void 0?B.zIndex+1:void 0,image:Oe}))},x9=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Cit(e){var t=p.useState({}),n=be(t,2),r=n[0],a=n[1],i=p.useCallback(function(s,l){return a(function(c){return se(se({},c),{},ae({},s,l))}),function(){a(function(c){var u=se({},c);return delete u[s],u})}},[]),o=p.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(Ke(x9)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,d=c.data;return u&&s.push({data:d,id:l}),s},[])},[e,r]);return[o,i,!!e]}var $it=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Rit=["src"],Pit=function(t){var n,r=t.previewPrefixCls,a=r===void 0?"rc-image-preview":r,i=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,c=t.preview,u=t.fallback,d=Ut(c)==="object"?c:{},f=d.visible,m=d.onVisibleChange,h=d.getContainer,g=d.current,O=d.movable,v=d.minScale,y=d.maxScale,S=d.countRender,C=d.closeIcon,_=d.onChange,w=d.onTransform,T=d.toolbarRender,A=d.imageRender,k=on(d,$it),I=Cit(l),M=be(I,3),Q=M[0],F=M[1],L=M[2],U=Ir(0,{value:g}),R=be(U,2),$=R[0],P=R[1],z=p.useState(!1),B=be(z,2),D=B[0],X=B[1],Y=((n=Q[$])===null||n===void 0?void 0:n.data)||{},q=Y.src,H=on(Y,Rit),J=Ir(!!f,{value:f,onChange:function(Qe,Ie){m==null||m(Qe,Ie,$)}}),te=be(J,2),ne=te[0],ie=te[1],le=p.useState(null),ue=be(le,2),oe=ue[0],ge=ue[1],ve=p.useCallback(function(we,Qe,Ie,Ee){var De=L?Q.findIndex(function(Le){return Le.data.src===Qe}):Q.findIndex(function(Le){return Le.id===we});P(De<0?0:De),ie(!0),ge({x:Ie,y:Ee}),X(!0)},[Q,L]);p.useEffect(function(){ne?D||P(0):X(!1)},[ne]);var he=function(Qe,Ie){P(Qe),_==null||_(Qe,Ie)},me=function(){ie(!1),ge(null)},xe=p.useMemo(function(){return{register:F,onPreview:ve}},[F,ve]);return p.createElement(tx.Provider,{value:xe},i,p.createElement(s2e,Re({"aria-hidden":!ne,movable:O,visible:ne,prefixCls:a,closeIcon:C,onClose:me,mousePosition:oe,imgCommonProps:H,src:q,fallback:u,icons:s,minScale:v,maxScale:y,getContainer:h,current:$,count:Q.length,countRender:S,onTransform:w,toolbarRender:T,imageRender:A,onChange:he},k)))},hie=0;function kit(e,t){var n=p.useState(function(){return hie+=1,String(hie)}),r=be(n,1),a=r[0],i=p.useContext(tx),o={data:t,canPreview:e};return p.useEffect(function(){if(i)return i.register(a,o)},[]),p.useEffect(function(){i&&i.register(a,o)},[e,t]),a}var Ait=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Nit=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],dX=function(t){var n=t.src,r=t.alt,a=t.onPreviewClose,i=t.prefixCls,o=i===void 0?"rc-image":i,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,c=t.placeholder,u=t.fallback,d=t.width,f=t.height,m=t.style,h=t.preview,g=h===void 0?!0:h,O=t.className,v=t.onClick,y=t.onError,S=t.wrapperClassName,C=t.wrapperStyle,_=t.rootClassName,w=on(t,Ait),T=c&&c!==!0,A=Ut(g)==="object"?g:{},k=A.src,I=A.visible,M=I===void 0?void 0:I,Q=A.onVisibleChange,F=Q===void 0?a:Q,L=A.getContainer,U=L===void 0?void 0:L,R=A.mask,$=A.maskClassName,P=A.movable,z=A.icons,B=A.scaleStep,D=A.minScale,X=A.maxScale,Y=A.imageRender,q=A.toolbarRender,H=on(A,Nit),J=k??n,te=Ir(!!M,{value:M,onChange:F}),ne=be(te,2),ie=ne[0],le=ne[1],ue=o2e({src:n,isCustomPlaceholder:T,fallback:u}),oe=be(ue,3),ge=oe[0],ve=oe[1],he=oe[2],me=p.useState(null),xe=be(me,2),we=xe[0],Qe=xe[1],Ie=p.useContext(tx),Ee=!!g,De=function(){le(!1),Qe(null)},Le=ce(o,S,_,ae({},"".concat(o,"-error"),he==="error")),Ne=p.useMemo(function(){var lt={};return x9.forEach(function(it){t[it]!==void 0&&(lt[it]=t[it])}),lt},x9.map(function(lt){return t[lt]})),et=p.useMemo(function(){return se(se({},Ne),{},{src:J})},[J,Ne]),He=kit(Ee,et),pt=function(it){var ut=git(it.target),We=ut.left,Me=ut.top;Ie?Ie.onPreview(He,J,We,Me):(Qe({x:We,y:Me}),le(!0)),v==null||v(it)};return p.createElement(p.Fragment,null,p.createElement("div",Re({},w,{className:Le,onClick:Ee?pt:v,style:se({width:d,height:f},C)}),p.createElement("img",Re({},Ne,{className:ce("".concat(o,"-img"),ae({},"".concat(o,"-img-placeholder"),c===!0),O),style:se({height:f},m),ref:ge},ve,{width:d,height:f,onError:y})),he==="loading"&&p.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},c),R&&Ee&&p.createElement("div",{className:ce("".concat(o,"-mask"),$),style:{display:(m==null?void 0:m.display)==="none"?"none":void 0}},R)),!Ie&&Ee&&p.createElement(s2e,Re({"aria-hidden":!ie,visible:ie,prefixCls:l,onClose:De,mousePosition:we,src:J,alt:r,imageInfo:{width:d,height:f},fallback:u,getContainer:U,icons:z,movable:P,scaleStep:B,minScale:D,maxScale:X,rootClassName:_,imageRender:Y,imgCommonProps:Ne,toolbarRender:q},H)))};dX.PreviewGroup=Pit;var Iit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Mit=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Iit}))},Dit=p.forwardRef(Mit),Lit={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"},Qit=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Lit}))},zit=p.forwardRef(Qit),Bit={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"},Fit=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Bit}))},gie=p.forwardRef(Fit),l2e={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"},Uit=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:l2e}))},jit=p.forwardRef(Uit),c2e={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"},Xit=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:c2e}))},Yit=p.forwardRef(Xit);const T9=e=>({position:e||"absolute",inset:0}),Vit=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:i,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new Sr("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},ll),{padding:`0 ${de(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},qit=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:i,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,f=new Sr(n).setA(.1),m=f.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:i},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:m.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${de(o)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Wit=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:i,motionDurationSlow:o}=e,s=new Sr(t).setA(.1),l=s.clone().setA(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.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}}},Git=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({},T9()),{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({},T9()),{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()},"&":[qit(e),Wit(e)]}]},Hit=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({},Vit(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},T9())}}},Zit=e=>{const{previewCls:t}=e;return{[`${t}-root`]:wb(e,"zoom"),"&":gj(e,!0)}},Kit=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Sr(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Sr(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Sr(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),u2e=Er("Image",e=>{const t=`${e.componentCls}-preview`,n=nr(e,{previewCls:t,modalMaskBg:new Sr("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Hit(n),Git(n),Kxe(nr(n,{componentCls:t})),Zit(n)]},Kit);var Jit=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=Jit(e,["previewPrefixCls","preview"]);const{getPrefixCls:a,direction:i}=p.useContext(fn),o=a("image",t),s=`${o}-preview`,l=a(),c=Fa(o),[u,d,f]=u2e(o,c),[m]=Ed("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=p.useMemo(()=>Object.assign(Object.assign({},d2e),{left:i==="rtl"?p.createElement(Bp,null):p.createElement(Up,null),right:i==="rtl"?p.createElement(Up,null):p.createElement(Bp,null)}),[i]),g=p.useMemo(()=>{var O;if(n===!1)return n;const v=typeof n=="object"?n:{},y=ce(d,f,c,(O=v.rootClassName)!==null&&O!==void 0?O:"");return Object.assign(Object.assign({},v),{transitionName:cl(l,"zoom",v.transitionName),maskTransitionName:cl(l,"fade",v.maskTransitionName),rootClassName:y,zIndex:m})},[n,l,m,d,f,c]);return u(p.createElement(dX.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:h},r)))};var Oie=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:i,fallback:o}=e,s=Oie(e,["prefixCls","preview","className","rootClassName","style","fallback"]),{getPrefixCls:l,getPopupContainer:c,className:u,style:d,preview:f,fallback:m}=$i("image"),[h]=fl("Image"),g=l("image",t),O=l(),v=Fa(g),[y,S,C]=u2e(g,v),_=ce(a,S,C,v),w=ce(r,S,u),[T]=Ed("ImagePreview",typeof n=="object"?n.zIndex:void 0),A=p.useMemo(()=>{if(n===!1)return n;const M=typeof n=="object"?n:{},{getContainer:Q,closeIcon:F,rootClassName:L,destroyOnClose:U,destroyOnHidden:R}=M,$=Oie(M,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:p.createElement("div",{className:`${g}-mask-info`},p.createElement(uX,null),h==null?void 0:h.preview),icons:d2e},$),{destroyOnClose:R??U,rootClassName:ce(_,L),getContainer:Q??c,transitionName:cl(O,"zoom",M.transitionName),maskTransitionName:cl(O,"fade",M.maskTransitionName),zIndex:T,closeIcon:F??(f==null?void 0:f.closeIcon)})},[n,h,f==null?void 0:f.closeIcon]),k=Object.assign(Object.assign({},d),i),I=o??m;return y(p.createElement(dX,Object.assign({prefixCls:g,preview:A,rootClassName:_,className:w,style:k,fallback:I},s)))};fX.PreviewGroup=eot;const tot=e=>{const{getPrefixCls:t,direction:n}=p.useContext(fn),{prefixCls:r,className:a}=e,i=t("input-group",r),o=t("input"),[s,l,c]=gCe(o),u=ce(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,a),d=p.useContext(oo),f=p.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(p.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},p.createElement(oo.Provider,{value:f},e.children)))},not=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}}}},rot=Er(["Input","OTP"],e=>{const t=nr(e,yg(e));return not(t)},Sg);var aot=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:i,index:o,mask:s}=e,l=aot(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=p.useContext(fn),u=c("otp"),d=typeof s=="string"?s:r,f=p.useRef(null);p.useImperativeHandle(t,()=>f.current);const m=O=>{a(o,O.target.value)},h=()=>{ur(()=>{var O;const v=(O=f.current)===null||O===void 0?void 0:O.input;document.activeElement===v&&v&&v.select()})},g=O=>{const{key:v,ctrlKey:y,metaKey:S}=O;v==="ArrowLeft"?i(o-1):v==="ArrowRight"?i(o+1):v==="z"&&(y||S)?O.preventDefault():v==="Backspace"&&!r&&i(o-1),h()};return p.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&p.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},d),p.createElement(JE,Object.assign({"aria-label":`OTP Input ${o+1}`,type:s===!0?"password":"text"},l,{ref:f,value:r,onInput:m,onFocus:h,onKeyDown:g,onMouseDown:h,onMouseUp:h,className:ce(n,{[`${u}-mask-input`]:s})})))});var oot=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?p.createElement("span",{className:`${n}-separator`},a):null},lot=p.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:i,value:o,onChange:s,formatter:l,separator:c,variant:u,disabled:d,status:f,autoFocus:m,mask:h,type:g,onInput:O,inputMode:v}=e,y=oot(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:S,direction:C}=p.useContext(fn),_=S("otp",n),w=bi(y,{aria:!0,data:!0,attr:!0}),[T,A,k]=rot(_),I=Yi(q=>a??q),M=p.useContext(oo),Q=gg(M.status,f),F=p.useMemo(()=>Object.assign(Object.assign({},M),{status:Q,hasFeedback:!1,feedbackIcon:null}),[M,Q]),L=p.useRef(null),U=p.useRef({});p.useImperativeHandle(t,()=>({focus:()=>{var q;(q=U.current[0])===null||q===void 0||q.focus()},blur:()=>{var q;for(let H=0;Hl?l(q):q,[$,P]=p.useState(()=>pw(R(i||"")));p.useEffect(()=>{o!==void 0&&P(pw(o))},[o]);const z=ar(q=>{P(q),O&&O(q),s&&q.length===r&&q.every(H=>H)&&q.some((H,J)=>$[J]!==H)&&s(q.join(""))}),B=ar((q,H)=>{let J=Ke($);for(let ne=0;ne=0&&!J[ne];ne-=1)J.pop();const te=R(J.map(ne=>ne||" ").join(""));return J=pw(te).map((ne,ie)=>ne===" "&&!J[ie]?J[ie]:ne),J}),D=(q,H)=>{var J;const te=B(q,H),ne=Math.min(q+H.length,r-1);ne!==q&&te[q]!==void 0&&((J=U.current[ne])===null||J===void 0||J.focus()),z(te)},X=q=>{var H;(H=U.current[q])===null||H===void 0||H.focus()},Y={variant:u,disabled:d,status:Q,mask:h,type:g,inputMode:v};return T(p.createElement("div",Object.assign({},w,{ref:L,className:ce(_,{[`${_}-sm`]:I==="small",[`${_}-lg`]:I==="large",[`${_}-rtl`]:C==="rtl"},k,A),role:"group"}),p.createElement(oo.Provider,{value:F},Array.from({length:r}).map((q,H)=>{const J=`otp-${H}`,te=$[H]||"";return p.createElement(p.Fragment,{key:J},p.createElement(iot,Object.assign({ref:ne=>{U.current[H]=ne},index:H,size:I,htmlSize:1,className:`${_}-input`,onChange:D,value:te,onActiveChange:X,autoFocus:H===0&&m},Y)),He?p.createElement(uX,null):p.createElement(dot,null),mot={click:"onClick",hover:"onMouseOver"},hot=p.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:i=pot,suffix:o}=e,s=p.useContext(Xo),l=n??s,c=typeof a=="object"&&a.visible!==void 0,[u,d]=p.useState(()=>c?a.visible:!1),f=p.useRef(null);p.useEffect(()=>{c&&d(a.visible)},[c,a]);const m=LCe(f),h=()=>{var M;if(l)return;u&&m();const Q=!u;d(Q),typeof a=="object"&&((M=a.onVisibleChange)===null||M===void 0||M.call(a,Q))},g=M=>{const Q=mot[r]||"",F=i(u),L={[Q]:h,className:`${M}-icon`,key:"passwordIcon",onMouseDown:U=>{U.preventDefault()},onMouseUp:U=>{U.preventDefault()}};return p.cloneElement(p.isValidElement(F)?F:p.createElement("span",null,F),L)},{className:O,prefixCls:v,inputPrefixCls:y,size:S}=e,C=fot(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=p.useContext(fn),w=_("input",y),T=_("input-password",v),A=a&&g(T),k=ce(T,O,{[`${T}-${S}`]:!!S}),I=Object.assign(Object.assign({},ga(C,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:k,prefixCls:w,suffix:p.createElement(p.Fragment,null,A,o)});return S&&(I.size=S),p.createElement(JE,Object.assign({ref:Ci(t,f)},I))});var got=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:i,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:m,onCompositionEnd:h,variant:g,onPressEnter:O}=e,v=got(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:S}=p.useContext(fn),C=p.useRef(!1),_=y("input-search",n),w=y("input",r),{compactSize:T}=xd(_,S),A=Yi(Y=>{var q;return(q=i??T)!==null&&q!==void 0?q:Y}),k=p.useRef(null),I=Y=>{Y!=null&&Y.target&&Y.type==="click"&&d&&d(Y.target.value,Y,{source:"clear"}),f==null||f(Y)},M=Y=>{var q;document.activeElement===((q=k.current)===null||q===void 0?void 0:q.input)&&Y.preventDefault()},Q=Y=>{var q,H;d&&d((H=(q=k.current)===null||q===void 0?void 0:q.input)===null||H===void 0?void 0:H.value,Y,{source:"input"})},F=Y=>{C.current||c||(O==null||O(Y),Q(Y))},L=typeof s=="boolean"?p.createElement(Rj,null):null,U=`${_}-button`;let R;const $=s||{},P=$.type&&$.type.__ANT_BUTTON===!0;P||$.type==="button"?R=wo($,Object.assign({onMouseDown:M,onClick:Y=>{var q,H;(H=(q=$==null?void 0:$.props)===null||q===void 0?void 0:q.onClick)===null||H===void 0||H.call(q,Y),Q(Y)},key:"enterButton"},P?{className:U,size:A}:{})):R=p.createElement(Ur,{className:U,color:s?"primary":"default",size:A,disabled:u,key:"enterButton",onMouseDown:M,onClick:Q,loading:c,icon:L,variant:g==="borderless"||g==="filled"||g==="underlined"?"text":s?"solid":void 0},s),l&&(R=[R,wo(l,{key:"addonAfter"})]);const z=ce(_,{[`${_}-rtl`]:S==="rtl",[`${_}-${A}`]:!!A,[`${_}-with-button`]:!!s},a),B=Y=>{C.current=!0,m==null||m(Y)},D=Y=>{C.current=!1,h==null||h(Y)},X=Object.assign(Object.assign({},v),{className:z,prefixCls:w,type:"search",size:A,variant:g,onPressEnter:F,onCompositionStart:B,onCompositionEnd:D,addonAfter:R,suffix:o,onChange:I,disabled:u,_skipAddonWarning:!0});return p.createElement(JE,Object.assign({ref:Ci(k,t)},X))});var bot=` + ${r}-col-xl-24${n}-label`]:dh(e)},[`@media (max-width: ${de(e.screenXSMax)})`]:[hit(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:dh(e)}}}],[`@media (max-width: ${de(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:dh(e)}}},[`@media (max-width: ${de(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:dh(e)}}},[`@media (max-width: ${de(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:dh(e)}}}}},Oit=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}),C2e=(e,t)=>nr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),AX=Er("Form",(e,{rootPrefixCls:t})=>{const n=C2e(e,t);return[dit(n),fit(n),cit(n),pit(n),mit(n),git(n),_k(n),Fj]},Oit,{order:-1e3}),Die=[];function y5(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const $2e=({help:e,helpStatus:t,errors:n=Die,warnings:r=Die,className:a,fieldId:i,onVisibleChanged:o})=>{const{prefixCls:s}=p.useContext(qj),l=`${s}-item-explain`,c=Ua(s),[u,d,f]=AX(s,c),m=p.useMemo(()=>v_(s),[s]),h=Z$(n),g=Z$(r),O=p.useMemo(()=>e!=null?[y5(e,"help",t)]:[].concat(et(h.map((S,C)=>y5(S,"error","error",C))),et(g.map((S,C)=>y5(S,"warning","warning",C)))),[e,t,h,g]),v=p.useMemo(()=>{const S={};return O.forEach(({key:C})=>{S[C]=(S[C]||0)+1}),O.map((C,_)=>Object.assign(Object.assign({},C),{key:S[C.key]>1?`${C.key}-fallback-${_}`:C.key}))},[O]),y={};return i&&(y.id=`${i}_help`),u(p.createElement(ro,{motionDeadline:m.motionDeadline,motionName:`${s}-show-help`,visible:!!v.length,onVisibleChanged:o},S=>{const{className:C,style:_}=S;return p.createElement("div",Object.assign({},y,{className:le(l,C,f,c,a,d),style:_}),p.createElement(gk,Object.assign({keys:v},v_(s),{motionName:`${s}-show-help-item`,component:!1}),w=>{const{key:T,error:k,errorStatus:A,className:I,style:M}=w;return p.createElement("div",{key:T,className:le(I,{[`${l}-${A}`]:A}),style:M},k)}))}))};var bit=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=p.useContext(jo),{getPrefixCls:r,direction:a,requiredMark:i,colon:o,scrollToFirstError:s,className:l,style:c}=$i("form"),{prefixCls:u,className:d,rootClassName:f,size:m,disabled:h=n,form:g,colon:O,labelAlign:v,labelWrap:y,labelCol:S,wrapperCol:C,hideRequiredMark:_,layout:w="horizontal",scrollToFirstError:T,requiredMark:k,onFinishFailed:A,name:I,style:M,feedbackIcons:Q,variant:B}=e,D=bit(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),U=Xi(m),R=p.useContext(GEe),$=p.useMemo(()=>k!==void 0?k:_?!1:i!==void 0?i:!0,[_,k,i]),P=O??o,z=r("form",u),F=Ua(z),[L,X,Y]=AX(z,F),q=le(z,`${z}-${w}`,{[`${z}-hide-required-mark`]:$===!1,[`${z}-rtl`]:a==="rtl",[`${z}-${U}`]:U},Y,F,X,l,d,f),[G]=MCe(g),{__INTERNAL__:ee}=G;ee.name=I;const K=p.useMemo(()=>({name:I,labelAlign:v,labelCol:S,labelWrap:y,wrapperCol:C,layout:w,colon:P,requiredMark:$,itemRef:ee.itemRef,form:G,feedbackIcons:Q}),[I,v,S,C,w,P,$,G,Q]),ne=p.useRef(null);p.useImperativeHandle(t,()=>{var ue;return Object.assign(Object.assign({},G),{nativeElement:(ue=ne.current)===null||ue===void 0?void 0:ue.nativeElement})});const ie=(ue,ce)=>{if(ue){let be={block:"nearest"};typeof ue=="object"&&(be=Object.assign(Object.assign({},be),ue)),G.scrollToField(ce,be)}},se=ue=>{if(A==null||A(ue),ue.errorFields.length){const ce=ue.errorFields[0].name;if(T!==void 0){ie(T,ce);return}s!==void 0&&ie(s,ce)}};return L(p.createElement(vTe.Provider,{value:B},p.createElement($j,{disabled:h},p.createElement(Wh.Provider,{value:U},p.createElement(OTe,{validateMessages:R},p.createElement(wf.Provider,{value:K},p.createElement(bTe,{status:!0},p.createElement(Ib,Object.assign({id:I},D,{name:I,onFinishFailed:se,form:G,ref:ne,style:Object.assign(Object.assign({},c),M),className:q})))))))))},yit=p.forwardRef(vit);function Sit(e){if(typeof e=="function")return e;const t=xo(e);return t.length<=1?t[0]:t}const R2e=()=>{const{status:e,errors:t=[],warnings:n=[]}=p.useContext(io);return{status:e,errors:t,warnings:n}};R2e.Context=io;function _it(e){const[t,n]=p.useState(e),r=p.useRef(null),a=p.useRef([]),i=p.useRef(!1);p.useEffect(()=>(i.current=!1,()=>{i.current=!0,ur.cancel(r.current),r.current=null}),[]);function o(s){i.current||(r.current===null&&(a.current=[],r.current=ur(()=>{r.current=null,n(l=>{let c=l;return a.current.forEach(u=>{c=u(c)}),c})})),a.current.push(s))}return[t,o]}function Eit(){const{itemRef:e}=p.useContext(wf),t=p.useRef({});function n(r,a){const i=a&&typeof a=="object"&&bm(a),o=r.join("_");return(t.current.name!==o||t.current.originRef!==i)&&(t.current.name=o,t.current.originRef=i,t.current.ref=Ci(e(r),i)),t.current.ref}return n}const xit=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Tit=_g(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=C2e(e,t);return xit(n)});var wit=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:i,errors:o,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:f,onErrorVisibleChanged:m,label:h}=e,g=`${t}-item`,O=p.useContext(wf),v=p.useMemo(()=>{let D=Object.assign({},a||O.wrapperCol||{});return h===null&&!r&&!a&&O.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(R=>{const $=R?[R]:[],P=ws(O.labelCol,$),z=typeof P=="object"?P:{},F=ws(D,$),L=typeof F=="object"?F:{};"span"in z&&!("offset"in L)&&z.span{const{labelCol:D,wrapperCol:U}=O;return wit(O,["labelCol","wrapperCol"])},[O]),C=p.useRef(null),[_,w]=p.useState(0);tr(()=>{c&&C.current?w(C.current.clientHeight):w(0)},[c]);const T=p.createElement("div",{className:`${g}-control-input`},p.createElement("div",{className:`${g}-control-input-content`},i)),k=p.useMemo(()=>({prefixCls:t,status:n}),[t,n]),A=f!==null||o.length||s.length?p.createElement(qj.Provider,{value:k},p.createElement($2e,{fieldId:d,errors:o,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:m})):null,I={};d&&(I.id=`${d}_extra`);const M=c?p.createElement("div",Object.assign({},I,{className:`${g}-extra`,ref:C}),c):null,Q=A||M?p.createElement("div",{className:`${g}-additional`,style:f?{minHeight:f+_}:{}},A,M):null,B=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:T,errorList:A,extra:M}):p.createElement(p.Fragment,null,T,Q);return p.createElement(wf.Provider,{value:S},p.createElement(i2e,Object.assign({},v,{className:y}),B),p.createElement(Tit,{prefixCls:t}))};var Rit={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"},Pit=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Rit}))},kit=p.forwardRef(Pit),Ait=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 u;const[d]=fl("Form"),{labelAlign:f,labelCol:m,labelWrap:h,colon:g}=p.useContext(wf);if(!t)return null;const O=r||m||{},v=a||f,y=`${e}-item-label`,S=le(y,v==="left"&&`${y}-left`,O.className,{[`${y}-wrap`]:!!h});let C=t;const _=i===!0||g!==!1&&i!==!1;_&&!c&&typeof t=="string"&&t.trim()&&(C=t.replace(/[:|:]\s*$/,""));const T=lit(l);if(T){const{icon:B=p.createElement(kit,null)}=T,D=Ait(T,["icon"]),U=p.createElement(wo,Object.assign({},D),p.cloneElement(B,{className:`${e}-item-tooltip`,title:"",onClick:R=>{R.preventDefault()},tabIndex:null}));C=p.createElement(p.Fragment,null,C,U)}const k=s==="optional",A=typeof s=="function",I=s===!1;A?C=s(C,{required:!!o}):k&&!o&&(C=p.createElement(p.Fragment,null,C,p.createElement("span",{className:`${e}-item-optional`,title:""},(d==null?void 0:d.optional)||((u=bu.Form)===null||u===void 0?void 0:u.optional))));let M;I?M="hidden":(k||A)&&(M="optional");const Q=le({[`${e}-item-required`]:o,[`${e}-item-required-mark-${M}`]:M,[`${e}-item-no-colon`]:!_});return p.createElement(i2e,Object.assign({},O,{className:S}),p.createElement("label",{htmlFor:n,className:Q,title:typeof t=="string"?t:""},C))},Iit={success:Eg,warning:Rb,error:Df,validating:vu};function P2e({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:a,prefixCls:i,meta:o,noStyle:s,name:l}){const c=`${i}-item`,{feedbackIcons:u}=p.useContext(wf),d=ICe(t,n,o,null,!!r,a),{isFormItemInput:f,status:m,hasFeedback:h,feedbackIcon:g,name:O}=p.useContext(io),v=p.useMemo(()=>{var y;let S;if(r){const _=r!==!0&&r.icons||u,w=d&&((y=_==null?void 0:_({status:d,errors:t,warnings:n}))===null||y===void 0?void 0:y[d]),T=d?Iit[d]:null;S=w!==!1&&T?p.createElement("span",{className:le(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},w||p.createElement(T,null)):null}const C={status:d||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:S,isFormItemInput:!0,name:l};return s&&(C.status=(d??m)||"",C.isFormItemInput=f,C.hasFeedback=!!(r??h),C.feedbackIcon=r!==void 0?C.feedbackIcon:g,C.name=l??O),C},[d,r,s,f,m]);return p.createElement(io.Provider,{value:v},e)}var Mit=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(B&&A.current){const L=getComputedStyle(A.current);R(Number.parseInt(L.marginBottom,10))}},[B,D]);const $=L=>{L||R(null)},z=((L=!1)=>{const X=L?I:c.errors,Y=L?M:c.warnings;return ICe(X,Y,c,"",!!u,l)})(),F=le(C,n,r,{[`${C}-with-help`]:Q||I.length||M.length,[`${C}-has-feedback`]:z&&u,[`${C}-has-success`]:z==="success",[`${C}-has-warning`]:z==="warning",[`${C}-has-error`]:z==="error",[`${C}-is-validating`]:z==="validating",[`${C}-hidden`]:d,[`${C}-${T}`]:T});return p.createElement("div",{className:F,style:a,ref:A},p.createElement(urt,Object.assign({className:`${C}-row`},Oa(S,["_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"])),p.createElement(Nit,Object.assign({htmlFor:m},e,{requiredMark:_,required:h??g,prefixCls:t,vertical:k})),p.createElement($it,Object.assign({},e,c,{errors:I,warnings:M,prefixCls:t,status:z,help:i,marginBottom:U,onErrorVisibleChanged:$}),p.createElement(gTe.Provider,{value:O},p.createElement(P2e,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:z,name:y},f)))),!!U&&p.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-U}}))}const Lit="__SPLIT__";function Qit(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const i=e[a],o=t[a];return i===o||typeof i=="function"||typeof o=="function"})}const zit=p.memo(({children:e})=>e,(e,t)=>Qit(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Lie(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Bit(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:i,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:m,hidden:h,help:g,layout:O}=e,{getPrefixCls:v}=p.useContext(pn),{name:y}=p.useContext(wf),S=Sit(l),C=typeof S=="function",_=p.useContext(gTe),{validateTrigger:w}=p.useContext(Hh),T=m!==void 0?m:w,k=t!=null,A=v("form",i),I=Ua(A),[M,Q,B]=AX(A,I);$d();const D=p.useContext(S_),U=p.useRef(null),[R,$]=_it({}),[P,z]=Gh(()=>Lie()),F=K=>{const ne=D==null?void 0:D.getKey(K.name);if(z(K.destroy?Lie():K,!0),n&&g!==!1&&_){let ie=K.name;if(K.destroy)ie=U.current||ie;else if(ne!==void 0){const[se,ue]=ne;ie=[se].concat(et(ue)),U.current=ie}_(K,ie)}},L=(K,ne)=>{$(ie=>{const se=Object.assign({},ie),ce=[].concat(et(K.name.slice(0,-1)),et(ne)).join(Lit);return K.destroy?delete se[ce]:se[ce]=K,se})},[X,Y]=p.useMemo(()=>{const K=et(P.errors),ne=et(P.warnings);return Object.values(R).forEach(ie=>{K.push.apply(K,et(ie.errors||[])),ne.push.apply(ne,et(ie.warnings||[]))}),[K,ne]},[R,P.errors,P.warnings]),q=Eit();function G(K,ne,ie){return n&&!h?p.createElement(P2e,{prefixCls:A,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:P,errors:X,warnings:Y,noStyle:!0,name:t},K):p.createElement(Dit,Object.assign({key:"row"},e,{className:le(r,B,I,Q),prefixCls:A,fieldId:ne,isRequired:ie,errors:X,warnings:Y,meta:P,onSubItemMetaChange:L,layout:O,name:t}),K)}if(!k&&!C&&!a)return M(G(S));let ee={};return typeof u=="string"?ee.label=u:t&&(ee.label=String(t)),d&&(ee=Object.assign(Object.assign({},ee),d)),M(p.createElement(Yj,Object.assign({},e,{messageVariables:ee,trigger:f,validateTrigger:T,onMetaChange:F}),(K,ne,ie)=>{const se=kS(t).length&&ne?ne.name:[],ue=NCe(se,y),ce=c!==void 0?c:!!(s!=null&&s.some(Oe=>{if(Oe&&typeof Oe=="object"&&Oe.required&&!Oe.warningOnly)return!0;if(typeof Oe=="function"){const me=Oe(ie);return(me==null?void 0:me.required)&&!(me!=null&&me.warningOnly)}return!1})),be=Object.assign({},K);let ge=null;if(Array.isArray(S)&&k)ge=S;else if(!(C&&(!(o||a)||k))){if(!(a&&!C&&!k))if(p.isValidElement(S)){const Oe=Object.assign(Object.assign({},S.props),be);if(Oe.id||(Oe.id=ue),g||X.length>0||Y.length>0||e.extra){const Ce=[];(g||X.length>0)&&Ce.push(`${ue}_help`),e.extra&&Ce.push(`${ue}_extra`),Oe["aria-describedby"]=Ce.join(" ")}X.length>0&&(Oe["aria-invalid"]="true"),ce&&(Oe["aria-required"]="true"),Ou(S)&&(Oe.ref=q(se,S)),new Set([].concat(et(kS(f)),et(kS(T)))).forEach(Ce=>{Oe[Ce]=(...Fe)=>{var Me,Ee,Le,ze,Qe;(Le=be[Ce])===null||Le===void 0||(Me=Le).call.apply(Me,[be].concat(Fe)),(Qe=(ze=S.props)[Ce])===null||Qe===void 0||(Ee=Qe).call.apply(Ee,[ze].concat(Fe))}});const Te=[Oe["aria-required"],Oe["aria-invalid"],Oe["aria-describedby"]];ge=p.createElement(zit,{control:be,update:S,childProps:Te},To(S,Oe))}else C&&(o||a)&&!k?ge=S(ie):ge=S}return G(ge,ue,ce)}))}const NX=Bit;NX.useStatus=R2e;var Fit=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=Fit(e,["prefixCls","children"]);const{getPrefixCls:a}=p.useContext(pn),i=a("form",t),o=p.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return p.createElement(fTe,Object.assign({},r),(s,l,c)=>p.createElement(qj.Provider,{value:o},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function jit(){const{form:e}=p.useContext(wf);return e}const fs=yit;fs.Item=NX;fs.List=Uit;fs.ErrorList=$2e;fs.useForm=MCe;fs.useFormInstance=jit;fs.useWatch=hTe;fs.Provider=OTe;fs.create=()=>{};var Xit={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"},Yit=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Xit}))},IX=p.forwardRef(Yit);function k2e(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Vit(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 Dp(e,t,n,r){var a=rl.unstable_batchedUpdates?function(o){rl.unstable_batchedUpdates(n,o)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}var sx=p.createContext(null),qit=function(t){var n=t.visible,r=t.maskTransitionName,a=t.getContainer,i=t.prefixCls,o=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,d=t.current,f=t.transform,m=t.count,h=t.scale,g=t.minScale,O=t.maxScale,v=t.closeIcon,y=t.onActive,S=t.onClose,C=t.onZoomIn,_=t.onZoomOut,w=t.onRotateRight,T=t.onRotateLeft,k=t.onFlipX,A=t.onFlipY,I=t.onReset,M=t.toolbarRender,Q=t.zIndex,B=t.image,D=p.useContext(sx),U=s.rotateLeft,R=s.rotateRight,$=s.zoomIn,P=s.zoomOut,z=s.close,F=s.left,L=s.right,X=s.flipX,Y=s.flipY,q="".concat(i,"-operations-operation");p.useEffect(function(){var me=function(Ce){Ce.keyCode===Ht.ESC&&S()};return n&&window.addEventListener("keydown",me),function(){window.removeEventListener("keydown",me)}},[n]);var G=function(Te,Ce){Te.preventDefault(),Te.stopPropagation(),y(Ce)},ee=p.useCallback(function(me){var Te=me.type,Ce=me.disabled,Fe=me.onClick,Me=me.icon;return p.createElement("div",{key:Te,className:le(q,"".concat(i,"-operations-operation-").concat(Te),ae({},"".concat(i,"-operations-operation-disabled"),!!Ce)),onClick:Fe},Me)},[q,i]),K=c?ee({icon:F,onClick:function(Te){return G(Te,-1)},type:"prev",disabled:d===0}):void 0,ne=c?ee({icon:L,onClick:function(Te){return G(Te,1)},type:"next",disabled:d===m-1}):void 0,ie=ee({icon:Y,onClick:A,type:"flipY"}),se=ee({icon:X,onClick:k,type:"flipX"}),ue=ee({icon:U,onClick:T,type:"rotateLeft"}),ce=ee({icon:R,onClick:w,type:"rotateRight"}),be=ee({icon:P,onClick:_,type:"zoomOut",disabled:h<=g}),ge=ee({icon:$,onClick:C,type:"zoomIn",disabled:h===O}),Oe=p.createElement("div",{className:"".concat(i,"-operations")},ie,se,ue,ce,be,ge);return p.createElement(ro,{visible:n,motionName:r},function(me){var Te=me.className,Ce=me.style;return p.createElement(WE,{open:!0,getContainer:a??document.body},p.createElement("div",{className:le("".concat(i,"-operations-wrapper"),Te,o),style:oe(oe({},Ce),{},{zIndex:Q})},v===null?null:p.createElement("button",{className:"".concat(i,"-close"),onClick:S},v||z),c&&p.createElement(p.Fragment,null,p.createElement("div",{className:le("".concat(i,"-switch-left"),ae({},"".concat(i,"-switch-left-disabled"),d===0)),onClick:function(Me){return G(Me,-1)}},F),p.createElement("div",{className:le("".concat(i,"-switch-right"),ae({},"".concat(i,"-switch-right-disabled"),d===m-1)),onClick:function(Me){return G(Me,1)}},L)),p.createElement("div",{className:"".concat(i,"-footer")},u&&p.createElement("div",{className:"".concat(i,"-progress")},l?l(d+1,m):p.createElement("bdi",null,"".concat(d+1," / ").concat(m))),M?M(Oe,oe(oe({icons:{prevIcon:K,nextIcon:ne,flipYIcon:ie,flipXIcon:se,rotateLeftIcon:ue,rotateRightIcon:ce,zoomOutIcon:be,zoomInIcon:ge},actions:{onActive:y,onFlipY:A,onFlipX:k,onRotateLeft:T,onRotateRight:w,onZoomOut:_,onZoomIn:C,onReset:I,onClose:S},transform:f},D?{current:d,total:m}:{}),{},{image:B})):Oe)))})},bw={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Wit(e,t,n,r){var a=p.useRef(null),i=p.useRef([]),o=p.useState(bw),s=ye(o,2),l=s[0],c=s[1],u=function(h){c(bw),Bl(bw,l)||r==null||r({transform:bw,action:h})},d=function(h,g){a.current===null&&(i.current=[],a.current=ur(function(){c(function(O){var v=O;return i.current.forEach(function(y){v=oe(oe({},v),y)}),a.current=null,r==null||r({transform:v,action:g}),v})})),i.current.push(oe(oe({},l),h))},f=function(h,g,O,v,y){var S=e.current,C=S.width,_=S.height,w=S.offsetWidth,T=S.offsetHeight,k=S.offsetLeft,A=S.offsetTop,I=h,M=l.scale*h;M>n?(M=n,I=n/l.scale):Mr){if(t>0)return ae({},e,i);if(t<0&&ar)return ae({},e,t<0?i:-i);return{}}function A2e(e,t,n,r){var a=k2e(),i=a.width,o=a.height,s=null;return e<=i&&t<=o?s={x:0,y:0}:(e>i||t>o)&&(s=oe(oe({},Qie("x",n,e,i)),Qie("y",r,t,o))),s}var n0=1,Git=1;function Hit(e,t,n,r,a,i,o){var s=a.rotate,l=a.scale,c=a.x,u=a.y,d=p.useState(!1),f=ye(d,2),m=f[0],h=f[1],g=p.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),O=function(_){!t||_.button!==0||(_.preventDefault(),_.stopPropagation(),g.current={diffX:_.pageX-c,diffY:_.pageY-u,transformX:c,transformY:u},h(!0))},v=function(_){n&&m&&i({x:_.pageX-g.current.diffX,y:_.pageY-g.current.diffY},"move")},y=function(){if(n&&m){h(!1);var _=g.current,w=_.transformX,T=_.transformY,k=c!==w&&u!==T;if(!k)return;var A=e.current.offsetWidth*l,I=e.current.offsetHeight*l,M=e.current.getBoundingClientRect(),Q=M.left,B=M.top,D=s%180!==0,U=A2e(D?I:A,D?A:I,Q,B);U&&i(oe({},U),"dragRebound")}},S=function(_){if(!(!n||_.deltaY==0)){var w=Math.abs(_.deltaY/100),T=Math.min(w,Git),k=n0+T*r;_.deltaY>0&&(k=n0/k),o(k,"wheel",_.clientX,_.clientY)}};return p.useEffect(function(){var C,_,w,T;if(t){w=Dp(window,"mouseup",y,!1),T=Dp(window,"mousemove",v,!1);try{window.top!==window.self&&(C=Dp(window.top,"mouseup",y,!1),_=Dp(window.top,"mousemove",v,!1))}catch{}}return function(){var k,A,I,M;(k=w)===null||k===void 0||k.remove(),(A=T)===null||A===void 0||A.remove(),(I=C)===null||I===void 0||I.remove(),(M=_)===null||M===void 0||M.remove()}},[n,m,c,u,s,t]),{isMoving:m,onMouseDown:O,onMouseMove:v,onMouseUp:y,onWheel:S}}function Zit(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 N2e(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,a=p.useState(n?"loading":"normal"),i=ye(a,2),o=i[0],s=i[1],l=p.useRef(!1),c=o==="error";p.useEffect(function(){var m=!0;return Zit(t).then(function(h){!h&&m&&s("error")}),function(){m=!1}},[t]),p.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},d=function(h){l.current=!1,o==="loading"&&h!==null&&h!==void 0&&h.complete&&(h.naturalWidth||h.naturalHeight)&&(l.current=!0,u())},f=c&&r?{src:r}:{onLoad:u,src:t};return[d,f,o]}function K$(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function Kit(e,t,n,r){var a=K$(e,n),i=K$(t,r);if(a===0&&i===0)return[e.x,e.y];var o=a/(a+i),s=e.x+o*(t.x-e.x),l=e.y+o*(t.y-e.y);return[s,l]}function Jit(e,t,n,r,a,i,o){var s=a.rotate,l=a.scale,c=a.x,u=a.y,d=p.useState(!1),f=ye(d,2),m=f[0],h=f[1],g=p.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),O=function(_){g.current=oe(oe({},g.current),_)},v=function(_){if(t){_.stopPropagation(),h(!0);var w=_.touches,T=w===void 0?[]:w;T.length>1?O({point1:{x:T[0].clientX,y:T[0].clientY},point2:{x:T[1].clientX,y:T[1].clientY},eventType:"touchZoom"}):O({point1:{x:T[0].clientX-c,y:T[0].clientY-u},eventType:"move"})}},y=function(_){var w=_.touches,T=w===void 0?[]:w,k=g.current,A=k.point1,I=k.point2,M=k.eventType;if(T.length>1&&M==="touchZoom"){var Q={x:T[0].clientX,y:T[0].clientY},B={x:T[1].clientX,y:T[1].clientY},D=Kit(A,I,Q,B),U=ye(D,2),R=U[0],$=U[1],P=K$(Q,B)/K$(A,I);o(P,"touchZoom",R,$,!0),O({point1:Q,point2:B,eventType:"touchZoom"})}else M==="move"&&(i({x:T[0].clientX-A.x,y:T[0].clientY-A.y},"move"),O({eventType:"move"}))},S=function(){if(n){if(m&&h(!1),O({eventType:"none"}),r>l)return i({x:0,y:0,scale:r},"touchZoom");var _=e.current.offsetWidth*l,w=e.current.offsetHeight*l,T=e.current.getBoundingClientRect(),k=T.left,A=T.top,I=s%180!==0,M=A2e(I?w:_,I?_:w,k,A);M&&i(oe({},M),"dragRebound")}};return p.useEffect(function(){var C;return n&&t&&(C=Dp(window,"touchmove",function(_){return _.preventDefault()},{passive:!1})),function(){var _;(_=C)===null||_===void 0||_.remove()}},[n,t]),{isTouching:m,onTouchStart:v,onTouchMove:y,onTouchEnd:S}}var eot=["fallback","src","imgRef"],tot=["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"],not=function(t){var n=t.fallback,r=t.src,a=t.imgRef,i=ln(t,eot),o=N2e({src:r,fallback:n}),s=ye(o,2),l=s[0],c=s[1];return Z.createElement("img",Ae({ref:function(d){a.current=d,l(d)}},i,c))},I2e=function(t){var n=t.prefixCls,r=t.src,a=t.alt,i=t.imageInfo,o=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,d=t.icons,f=d===void 0?{}:d,m=t.rootClassName,h=t.closeIcon,g=t.getContainer,O=t.current,v=O===void 0?0:O,y=t.count,S=y===void 0?1:y,C=t.countRender,_=t.scaleStep,w=_===void 0?.5:_,T=t.minScale,k=T===void 0?1:T,A=t.maxScale,I=A===void 0?50:A,M=t.transitionName,Q=M===void 0?"zoom":M,B=t.maskTransitionName,D=B===void 0?"fade":B,U=t.imageRender,R=t.imgCommonProps,$=t.toolbarRender,P=t.onTransform,z=t.onChange,F=ln(t,tot),L=p.useRef(),X=p.useContext(sx),Y=X&&S>1,q=X&&S>=1,G=p.useState(!0),ee=ye(G,2),K=ee[0],ne=ee[1],ie=Wit(L,k,I,P),se=ie.transform,ue=ie.resetTransform,ce=ie.updateTransform,be=ie.dispatchZoomChange,ge=Hit(L,l,u,w,se,ce,be),Oe=ge.isMoving,me=ge.onMouseDown,Te=ge.onWheel,Ce=Jit(L,l,u,k,se,ce,be),Fe=Ce.isTouching,Me=Ce.onTouchStart,Ee=Ce.onTouchMove,Le=Ce.onTouchEnd,ze=se.rotate,Qe=se.scale,Je=le(ae({},"".concat(n,"-moving"),Oe));p.useEffect(function(){K||ne(!0)},[K]);var He=function(){ue("close")},gt=function(){be(n0+w,"zoomIn")},st=function(){be(n0/(n0+w),"zoomOut")},lt=function(){ce({rotate:ze+90},"rotateRight")},pt=function(){ce({rotate:ze-90},"rotateLeft")},Ze=function(){ce({flipX:!se.flipX},"flipX")},De=function(){ce({flipY:!se.flipY},"flipY")},Ke=function(){ue("reset")},Be=function(Xe){var rt=v+Xe;!Number.isInteger(rt)||rt<0||rt>S-1||(ne(!1),ue(Xe<0?"prev":"next"),z==null||z(rt,v))},We=function(Xe){!u||!Y||(Xe.keyCode===Ht.LEFT?Be(-1):Xe.keyCode===Ht.RIGHT&&Be(1))},Re=function(Xe){u&&(Qe!==1?ce({x:0,y:0,scale:1},"doubleClick"):be(n0+w,"doubleClick",Xe.clientX,Xe.clientY))};p.useEffect(function(){var we=Dp(window,"keydown",We,!1);return function(){we.remove()}},[u,Y,v]);var Ie=Z.createElement(not,Ae({},R,{width:t.width,height:t.height,imgRef:L,className:"".concat(n,"-img"),alt:a,style:{transform:"translate3d(".concat(se.x,"px, ").concat(se.y,"px, 0) scale3d(").concat(se.flipX?"-":"").concat(Qe,", ").concat(se.flipY?"-":"").concat(Qe,", 1) rotate(").concat(ze,"deg)"),transitionDuration:(!K||Fe)&&"0s"},fallback:o,src:r,onWheel:Te,onMouseDown:me,onDoubleClick:Re,onTouchStart:Me,onTouchMove:Ee,onTouchEnd:Le,onTouchCancel:Le})),ve=oe({url:r,alt:a},i);return Z.createElement(Z.Fragment,null,Z.createElement(jj,Ae({transitionName:Q,maskTransitionName:D,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Je},rootClassName:m,getContainer:g},F,{afterClose:He}),Z.createElement("div",{className:"".concat(n,"-img-wrapper")},U?U(Ie,oe({transform:se,image:ve},X?{current:v}:{})):Ie)),Z.createElement(qit,{visible:u,transform:se,maskTransitionName:D,closeIcon:h,getContainer:g,prefixCls:n,rootClassName:m,icons:f,countRender:C,showSwitch:Y,showProgress:q,current:v,count:S,scale:Qe,minScale:k,maxScale:I,toolbarRender:$,onActive:Be,onZoomIn:gt,onZoomOut:st,onRotateRight:lt,onRotateLeft:pt,onFlipX:Ze,onFlipY:De,onClose:c,onReset:Ke,zIndex:F.zIndex!==void 0?F.zIndex+1:void 0,image:ve}))},X9=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function rot(e){var t=p.useState({}),n=ye(t,2),r=n[0],a=n[1],i=p.useCallback(function(s,l){return a(function(c){return oe(oe({},c),{},ae({},s,l))}),function(){a(function(c){var u=oe({},c);return delete u[s],u})}},[]),o=p.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(et(X9)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,d=c.data;return u&&s.push({data:d,id:l}),s},[])},[e,r]);return[o,i,!!e]}var aot=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],iot=["src"],oot=function(t){var n,r=t.previewPrefixCls,a=r===void 0?"rc-image-preview":r,i=t.children,o=t.icons,s=o===void 0?{}:o,l=t.items,c=t.preview,u=t.fallback,d=Xt(c)==="object"?c:{},f=d.visible,m=d.onVisibleChange,h=d.getContainer,g=d.current,O=d.movable,v=d.minScale,y=d.maxScale,S=d.countRender,C=d.closeIcon,_=d.onChange,w=d.onTransform,T=d.toolbarRender,k=d.imageRender,A=ln(d,aot),I=rot(l),M=ye(I,3),Q=M[0],B=M[1],D=M[2],U=Ir(0,{value:g}),R=ye(U,2),$=R[0],P=R[1],z=p.useState(!1),F=ye(z,2),L=F[0],X=F[1],Y=((n=Q[$])===null||n===void 0?void 0:n.data)||{},q=Y.src,G=ln(Y,iot),ee=Ir(!!f,{value:f,onChange:function(Fe,Me){m==null||m(Fe,Me,$)}}),K=ye(ee,2),ne=K[0],ie=K[1],se=p.useState(null),ue=ye(se,2),ce=ue[0],be=ue[1],ge=p.useCallback(function(Ce,Fe,Me,Ee){var Le=D?Q.findIndex(function(ze){return ze.data.src===Fe}):Q.findIndex(function(ze){return ze.id===Ce});P(Le<0?0:Le),ie(!0),be({x:Me,y:Ee}),X(!0)},[Q,D]);p.useEffect(function(){ne?L||P(0):X(!1)},[ne]);var Oe=function(Fe,Me){P(Fe),_==null||_(Fe,Me)},me=function(){ie(!1),be(null)},Te=p.useMemo(function(){return{register:B,onPreview:ge}},[B,ge]);return p.createElement(sx.Provider,{value:Te},i,p.createElement(I2e,Ae({"aria-hidden":!ne,movable:O,visible:ne,prefixCls:a,closeIcon:C,onClose:me,mousePosition:ce,imgCommonProps:G,src:q,fallback:u,icons:s,minScale:v,maxScale:y,getContainer:h,current:$,count:Q.length,countRender:S,onTransform:w,toolbarRender:T,imageRender:k,onChange:Oe},A)))},zie=0;function sot(e,t){var n=p.useState(function(){return zie+=1,String(zie)}),r=ye(n,1),a=r[0],i=p.useContext(sx),o={data:t,canPreview:e};return p.useEffect(function(){if(i)return i.register(a,o)},[]),p.useEffect(function(){i&&i.register(a,o)},[e,t]),a}var lot=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],cot=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],MX=function(t){var n=t.src,r=t.alt,a=t.onPreviewClose,i=t.prefixCls,o=i===void 0?"rc-image":i,s=t.previewPrefixCls,l=s===void 0?"".concat(o,"-preview"):s,c=t.placeholder,u=t.fallback,d=t.width,f=t.height,m=t.style,h=t.preview,g=h===void 0?!0:h,O=t.className,v=t.onClick,y=t.onError,S=t.wrapperClassName,C=t.wrapperStyle,_=t.rootClassName,w=ln(t,lot),T=c&&c!==!0,k=Xt(g)==="object"?g:{},A=k.src,I=k.visible,M=I===void 0?void 0:I,Q=k.onVisibleChange,B=Q===void 0?a:Q,D=k.getContainer,U=D===void 0?void 0:D,R=k.mask,$=k.maskClassName,P=k.movable,z=k.icons,F=k.scaleStep,L=k.minScale,X=k.maxScale,Y=k.imageRender,q=k.toolbarRender,G=ln(k,cot),ee=A??n,K=Ir(!!M,{value:M,onChange:B}),ne=ye(K,2),ie=ne[0],se=ne[1],ue=N2e({src:n,isCustomPlaceholder:T,fallback:u}),ce=ye(ue,3),be=ce[0],ge=ce[1],Oe=ce[2],me=p.useState(null),Te=ye(me,2),Ce=Te[0],Fe=Te[1],Me=p.useContext(sx),Ee=!!g,Le=function(){se(!1),Fe(null)},ze=le(o,S,_,ae({},"".concat(o,"-error"),Oe==="error")),Qe=p.useMemo(function(){var st={};return X9.forEach(function(lt){t[lt]!==void 0&&(st[lt]=t[lt])}),st},X9.map(function(st){return t[st]})),Je=p.useMemo(function(){return oe(oe({},Qe),{},{src:ee})},[ee,Qe]),He=sot(Ee,Je),gt=function(lt){var pt=Vit(lt.target),Ze=pt.left,De=pt.top;Me?Me.onPreview(He,ee,Ze,De):(Fe({x:Ze,y:De}),se(!0)),v==null||v(lt)};return p.createElement(p.Fragment,null,p.createElement("div",Ae({},w,{className:ze,onClick:Ee?gt:v,style:oe({width:d,height:f},C)}),p.createElement("img",Ae({},Qe,{className:le("".concat(o,"-img"),ae({},"".concat(o,"-img-placeholder"),c===!0),O),style:oe({height:f},m),ref:be},ge,{width:d,height:f,onError:y})),Oe==="loading"&&p.createElement("div",{"aria-hidden":"true",className:"".concat(o,"-placeholder")},c),R&&Ee&&p.createElement("div",{className:le("".concat(o,"-mask"),$),style:{display:(m==null?void 0:m.display)==="none"?"none":void 0}},R)),!Me&&Ee&&p.createElement(I2e,Ae({"aria-hidden":!ie,visible:ie,prefixCls:l,onClose:Le,mousePosition:Ce,src:ee,alt:r,imageInfo:{width:d,height:f},fallback:u,getContainer:U,icons:z,movable:P,scaleStep:F,minScale:L,maxScale:X,rootClassName:_,imageRender:Y,imgCommonProps:Qe,toolbarRender:q},G)))};MX.PreviewGroup=oot;var uot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},dot=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:uot}))},fot=p.forwardRef(dot),pot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{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"},mot=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:pot}))},hot=p.forwardRef(mot),got={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"},Oot=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:got}))},Bie=p.forwardRef(Oot),M2e={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"},bot=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:M2e}))},vot=p.forwardRef(bot),D2e={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"},yot=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:D2e}))},Sot=p.forwardRef(yot);const Y9=e=>({position:e||"absolute",inset:0}),_ot=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:i,colorTextLightSolid:o}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:o,background:new Sr("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},ll),{padding:`0 ${de(r)}`,[t]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},Eot=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:a,margin:i,paddingLG:o,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,f=new Sr(n).setA(.1),m=f.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:i},[`${t}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:m.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${de(o)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},xot=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:i,motionDurationSlow:o}=e,s=new Sr(t).setA(.1),l=s.clone().setA(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:l.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}}},Tot=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({},Y9()),{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({},Y9()),{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()},"&":[Eot(e),xot(e)]}]},wot=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({},_ot(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Y9())}}},Cot=e=>{const{previewCls:t}=e;return{[`${t}-root`]:kb(e,"zoom"),"&":Bj(e,!0)}},$ot=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Sr(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Sr(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Sr(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),L2e=Er("Image",e=>{const t=`${e.componentCls}-preview`,n=nr(e,{previewCls:t,modalMaskBg:new Sr("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[wot(n),Tot(n),TTe(nr(n,{componentCls:t})),Cot(n)]},$ot);var Rot=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=Rot(e,["previewPrefixCls","preview"]);const{getPrefixCls:a,direction:i}=p.useContext(pn),o=a("image",t),s=`${o}-preview`,l=a(),c=Ua(o),[u,d,f]=L2e(o,c),[m]=Rd("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=p.useMemo(()=>Object.assign(Object.assign({},Q2e),{left:i==="rtl"?p.createElement(qp,null):p.createElement(Gp,null),right:i==="rtl"?p.createElement(Gp,null):p.createElement(qp,null)}),[i]),g=p.useMemo(()=>{var O;if(n===!1)return n;const v=typeof n=="object"?n:{},y=le(d,f,c,(O=v.rootClassName)!==null&&O!==void 0?O:"");return Object.assign(Object.assign({},v),{transitionName:cl(l,"zoom",v.transitionName),maskTransitionName:cl(l,"fade",v.maskTransitionName),rootClassName:y,zIndex:m})},[n,l,m,d,f,c]);return u(p.createElement(MX.PreviewGroup,Object.assign({preview:g,previewPrefixCls:s,icons:h},r)))};var Fie=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:i,fallback:o}=e,s=Fie(e,["prefixCls","preview","className","rootClassName","style","fallback"]),{getPrefixCls:l,getPopupContainer:c,className:u,style:d,preview:f,fallback:m}=$i("image"),[h]=fl("Image"),g=l("image",t),O=l(),v=Ua(g),[y,S,C]=L2e(g,v),_=le(a,S,C,v),w=le(r,S,u),[T]=Rd("ImagePreview",typeof n=="object"?n.zIndex:void 0),k=p.useMemo(()=>{if(n===!1)return n;const M=typeof n=="object"?n:{},{getContainer:Q,closeIcon:B,rootClassName:D,destroyOnClose:U,destroyOnHidden:R}=M,$=Fie(M,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:p.createElement("div",{className:`${g}-mask-info`},p.createElement(IX,null),h==null?void 0:h.preview),icons:Q2e},$),{destroyOnClose:R??U,rootClassName:le(_,D),getContainer:Q??c,transitionName:cl(O,"zoom",M.transitionName),maskTransitionName:cl(O,"fade",M.maskTransitionName),zIndex:T,closeIcon:B??(f==null?void 0:f.closeIcon)})},[n,h,f==null?void 0:f.closeIcon]),A=Object.assign(Object.assign({},d),i),I=o??m;return y(p.createElement(MX,Object.assign({prefixCls:g,preview:k,rootClassName:_,className:w,style:A,fallback:I},s)))};DX.PreviewGroup=Pot;const kot=e=>{const{getPrefixCls:t,direction:n}=p.useContext(pn),{prefixCls:r,className:a}=e,i=t("input-group",r),o=t("input"),[s,l,c]=jCe(o),u=le(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,a),d=p.useContext(io),f=p.useMemo(()=>Object.assign(Object.assign({},d),{isFormItemInput:!1}),[d]);return s(p.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},p.createElement(io.Provider,{value:f},e.children)))},Aot=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}}}},Not=Er(["Input","OTP"],e=>{const t=nr(e,$g(e));return Aot(t)},Rg);var Iot=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:i,index:o,mask:s}=e,l=Iot(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=p.useContext(pn),u=c("otp"),d=typeof s=="string"?s:r,f=p.useRef(null);p.useImperativeHandle(t,()=>f.current);const m=O=>{a(o,O.target.value)},h=()=>{ur(()=>{var O;const v=(O=f.current)===null||O===void 0?void 0:O.input;document.activeElement===v&&v&&v.select()})},g=O=>{const{key:v,ctrlKey:y,metaKey:S}=O;v==="ArrowLeft"?i(o-1):v==="ArrowRight"?i(o+1):v==="z"&&(y||S)?O.preventDefault():v==="Backspace"&&!r&&i(o-1),h()};return p.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&p.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},d),p.createElement(ix,Object.assign({"aria-label":`OTP Input ${o+1}`,type:s===!0?"password":"text"},l,{ref:f,value:r,onInput:m,onFocus:h,onKeyDown:g,onMouseDown:h,onMouseUp:h,className:le(n,{[`${u}-mask-input`]:s})})))});var Dot=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?p.createElement("span",{className:`${n}-separator`},a):null},Qot=p.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:i,value:o,onChange:s,formatter:l,separator:c,variant:u,disabled:d,status:f,autoFocus:m,mask:h,type:g,onInput:O,inputMode:v}=e,y=Dot(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:S,direction:C}=p.useContext(pn),_=S("otp",n),w=vi(y,{aria:!0,data:!0,attr:!0}),[T,k,A]=Not(_),I=Xi(q=>a??q),M=p.useContext(io),Q=xg(M.status,f),B=p.useMemo(()=>Object.assign(Object.assign({},M),{status:Q,hasFeedback:!1,feedbackIcon:null}),[M,Q]),D=p.useRef(null),U=p.useRef({});p.useImperativeHandle(t,()=>({focus:()=>{var q;(q=U.current[0])===null||q===void 0||q.focus()},blur:()=>{var q;for(let G=0;Gl?l(q):q,[$,P]=p.useState(()=>vw(R(i||"")));p.useEffect(()=>{o!==void 0&&P(vw(o))},[o]);const z=ar(q=>{P(q),O&&O(q),s&&q.length===r&&q.every(G=>G)&&q.some((G,ee)=>$[ee]!==G)&&s(q.join(""))}),F=ar((q,G)=>{let ee=et($);for(let ne=0;ne=0&&!ee[ne];ne-=1)ee.pop();const K=R(ee.map(ne=>ne||" ").join(""));return ee=vw(K).map((ne,ie)=>ne===" "&&!ee[ie]?ee[ie]:ne),ee}),L=(q,G)=>{var ee;const K=F(q,G),ne=Math.min(q+G.length,r-1);ne!==q&&K[q]!==void 0&&((ee=U.current[ne])===null||ee===void 0||ee.focus()),z(K)},X=q=>{var G;(G=U.current[q])===null||G===void 0||G.focus()},Y={variant:u,disabled:d,status:Q,mask:h,type:g,inputMode:v};return T(p.createElement("div",Object.assign({},w,{ref:D,className:le(_,{[`${_}-sm`]:I==="small",[`${_}-lg`]:I==="large",[`${_}-rtl`]:C==="rtl"},A,k),role:"group"}),p.createElement(io.Provider,{value:B},Array.from({length:r}).map((q,G)=>{const ee=`otp-${G}`,K=$[G]||"";return p.createElement(p.Fragment,{key:ee},p.createElement(Mot,Object.assign({ref:ne=>{U.current[G]=ne},index:G,size:I,htmlSize:1,className:`${_}-input`,onChange:L,value:K,onActiveChange:X,autoFocus:G===0&&m},Y)),Ge?p.createElement(IX,null):p.createElement(Fot,null),Xot={click:"onClick",hover:"onMouseOver"},Yot=p.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:i=jot,suffix:o}=e,s=p.useContext(jo),l=n??s,c=typeof a=="object"&&a.visible!==void 0,[u,d]=p.useState(()=>c?a.visible:!1),f=p.useRef(null);p.useEffect(()=>{c&&d(a.visible)},[c,a]);const m=u2e(f),h=()=>{var M;if(l)return;u&&m();const Q=!u;d(Q),typeof a=="object"&&((M=a.onVisibleChange)===null||M===void 0||M.call(a,Q))},g=M=>{const Q=Xot[r]||"",B=i(u),D={[Q]:h,className:`${M}-icon`,key:"passwordIcon",onMouseDown:U=>{U.preventDefault()},onMouseUp:U=>{U.preventDefault()}};return p.cloneElement(p.isValidElement(B)?B:p.createElement("span",null,B),D)},{className:O,prefixCls:v,inputPrefixCls:y,size:S}=e,C=Uot(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=p.useContext(pn),w=_("input",y),T=_("input-password",v),k=a&&g(T),A=le(T,O,{[`${T}-${S}`]:!!S}),I=Object.assign(Object.assign({},Oa(C,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:A,prefixCls:w,suffix:p.createElement(p.Fragment,null,k,o)});return S&&(I.size=S),p.createElement(ix,Object.assign({ref:Ci(t,f)},I))});var Vot=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:i,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:f,onCompositionStart:m,onCompositionEnd:h,variant:g,onPressEnter:O}=e,v=Vot(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:S}=p.useContext(pn),C=p.useRef(!1),_=y("input-search",n),w=y("input",r),{compactSize:T}=Pd(_,S),k=Xi(Y=>{var q;return(q=i??T)!==null&&q!==void 0?q:Y}),A=p.useRef(null),I=Y=>{Y!=null&&Y.target&&Y.type==="click"&&d&&d(Y.target.value,Y,{source:"clear"}),f==null||f(Y)},M=Y=>{var q;document.activeElement===((q=A.current)===null||q===void 0?void 0:q.input)&&Y.preventDefault()},Q=Y=>{var q,G;d&&d((G=(q=A.current)===null||q===void 0?void 0:q.input)===null||G===void 0?void 0:G.value,Y,{source:"input"})},B=Y=>{C.current||c||(O==null||O(Y),Q(Y))},D=typeof s=="boolean"?p.createElement(Jj,null):null,U=`${_}-button`;let R;const $=s||{},P=$.type&&$.type.__ANT_BUTTON===!0;P||$.type==="button"?R=To($,Object.assign({onMouseDown:M,onClick:Y=>{var q,G;(G=(q=$==null?void 0:$.props)===null||q===void 0?void 0:q.onClick)===null||G===void 0||G.call(q,Y),Q(Y)},key:"enterButton"},P?{className:U,size:k}:{})):R=p.createElement(Ur,{className:U,color:s?"primary":"default",size:k,disabled:u,key:"enterButton",onMouseDown:M,onClick:Q,loading:c,icon:D,variant:g==="borderless"||g==="filled"||g==="underlined"?"text":s?"solid":void 0},s),l&&(R=[R,To(l,{key:"addonAfter"})]);const z=le(_,{[`${_}-rtl`]:S==="rtl",[`${_}-${k}`]:!!k,[`${_}-with-button`]:!!s},a),F=Y=>{C.current=!0,m==null||m(Y)},L=Y=>{C.current=!1,h==null||h(Y)},X=Object.assign(Object.assign({},v),{className:z,prefixCls:w,type:"search",size:k,variant:g,onPressEnter:B,onCompositionStart:F,onCompositionEnd:L,addonAfter:R,suffix:o,onChange:I,disabled:u,_skipAddonWarning:!0});return p.createElement(ix,Object.assign({ref:Ci(A,t)},X))});var Wot=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -357,13 +357,13 @@ html body { top:0 !important; right:0 !important; pointer-events: none !important; -`,vot=["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"],c5={},Sl;function yot(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&&c5[n])return c5[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=vot.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:o,boxSizing:a};return t&&n&&(c5[n]=l),l}function Sot(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;Sl||(Sl=document.createElement("textarea"),Sl.setAttribute("tab-index","-1"),Sl.setAttribute("aria-hidden","true"),Sl.setAttribute("name","hiddenTextarea"),document.body.appendChild(Sl)),e.getAttribute("wrap")?Sl.setAttribute("wrap",e.getAttribute("wrap")):Sl.removeAttribute("wrap");var a=yot(e,t),i=a.paddingSize,o=a.borderSize,s=a.boxSizing,l=a.sizingStyle;Sl.setAttribute("style","".concat(l,";").concat(bot)),Sl.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Sl.scrollHeight;if(s==="border-box"?f+=o:s==="content-box"&&(f-=i),n!==null||r!==null){Sl.value=" ";var m=Sl.scrollHeight-i;n!==null&&(c=m*n,s==="border-box"&&(c=c+i+o),f=Math.max(c,f)),r!==null&&(u=m*r,s==="border-box"&&(u=u+i+o),d=f>u?"":"hidden",f=Math.min(u,f))}var h={height:f,overflowY:d,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var _ot=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],u5=0,d5=1,f5=2,Eot=p.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,i=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=on(n,_ot),m=Ir(a,{value:i,postState:function(Y){return Y??""}}),h=be(m,2),g=h[0],O=h[1],v=function(Y){O(Y.target.value),d==null||d(Y)},y=p.useRef();p.useImperativeHandle(t,function(){return{textArea:y.current}});var S=p.useMemo(function(){return o&&Ut(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),C=be(S,2),_=C[0],w=C[1],T=!!o,A=p.useState(f5),k=be(A,2),I=k[0],M=k[1],Q=p.useState(),F=be(Q,2),L=F[0],U=F[1],R=function(){M(u5)};tr(function(){T&&R()},[i,_,w,T]),tr(function(){if(I===u5)M(d5);else if(I===d5){var X=Sot(y.current,!1,_,w);M(f5),U(X)}},[I]);var $=p.useRef(),P=function(){ur.cancel($.current)},z=function(Y){I===f5&&(s==null||s(Y),o&&(P(),$.current=ur(function(){R()})))};p.useEffect(function(){return P},[]);var B=T?L:null,D=se(se({},c),B);return(I===u5||I===d5)&&(D.overflowY="hidden",D.overflowX="hidden"),p.createElement(Eo,{onResize:z,disabled:!(o||s)},p.createElement("textarea",Re({},f,{ref:y,style:D,className:ce(r,l,ae({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:v})))}),xot=["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"],Tot=Z.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,i=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,m=e.prefixCls,h=m===void 0?"rc-textarea":m,g=e.showCount,O=e.count,v=e.className,y=e.style,S=e.disabled,C=e.hidden,_=e.classNames,w=e.styles,T=e.onResize,A=e.onClear,k=e.onPressEnter,I=e.readOnly,M=e.autoSize,Q=e.onKeyDown,F=on(e,xot),L=Ir(r,{value:a,defaultValue:r}),U=be(L,2),R=U[0],$=U[1],P=R==null?"":String(R),z=Z.useState(!1),B=be(z,2),D=B[0],X=B[1],Y=Z.useRef(!1),q=Z.useState(null),H=be(q,2),J=H[0],te=H[1],ne=p.useRef(null),ie=p.useRef(null),le=function(){var ze;return(ze=ie.current)===null||ze===void 0?void 0:ze.textArea},ue=function(){le().focus()};p.useImperativeHandle(t,function(){var Ge;return{resizableTextArea:ie.current,focus:ue,blur:function(){le().blur()},nativeElement:((Ge=ne.current)===null||Ge===void 0?void 0:Ge.nativeElement)||le()}}),p.useEffect(function(){X(function(Ge){return!S&&Ge})},[S]);var oe=Z.useState(null),ge=be(oe,2),ve=ge[0],he=ge[1];Z.useEffect(function(){if(ve){var Ge;(Ge=le()).setSelectionRange.apply(Ge,Ke(ve))}},[ve]);var me=ICe(O,g),xe=(n=me.max)!==null&&n!==void 0?n:c,we=Number(xe)>0,Qe=me.strategy(P),Ie=!!xe&&Qe>xe,Ee=function(ze,qe){var Pe=qe;!Y.current&&me.exceedFormatter&&me.max&&me.strategy(qe)>me.max&&(Pe=me.exceedFormatter(qe,{max:me.max}),qe!==Pe&&he([le().selectionStart||0,le().selectionEnd||0])),$(Pe),Q$(ze.currentTarget,ze,s,Pe)},De=function(ze){Y.current=!0,u==null||u(ze)},Le=function(ze){Y.current=!1,Ee(ze,ze.currentTarget.value),d==null||d(ze)},Ne=function(ze){Ee(ze,ze.target.value)},et=function(ze){ze.key==="Enter"&&k&&k(ze),Q==null||Q(ze)},He=function(ze){X(!0),i==null||i(ze)},pt=function(ze){X(!1),o==null||o(ze)},lt=function(ze){$(""),ue(),Q$(le(),ze,s)},it=f,ut;me.show&&(me.showFormatter?ut=me.showFormatter({value:P,count:Qe,maxLength:xe}):ut="".concat(Qe).concat(we?" / ".concat(xe):""),it=Z.createElement(Z.Fragment,null,it,Z.createElement("span",{className:ce("".concat(h,"-data-count"),_==null?void 0:_.count),style:w==null?void 0:w.count},ut)));var We=function(ze){var qe;T==null||T(ze),(qe=le())!==null&&qe!==void 0&&qe.style.height&&te(!0)},Me=!M&&!g&&!l;return Z.createElement(iX,{ref:ne,value:P,allowClear:l,handleReset:lt,suffix:it,prefixCls:h,classNames:se(se({},_),{},{affixWrapper:ce(_==null?void 0:_.affixWrapper,ae(ae({},"".concat(h,"-show-count"),g),"".concat(h,"-textarea-allow-clear"),l))}),disabled:S,focused:D,className:ce(v,Ie&&"".concat(h,"-out-of-range")),style:se(se({},y),J&&!Me?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ut=="string"?ut:void 0}},hidden:C,readOnly:I,onClear:A},Z.createElement(Eot,Re({},F,{autoSize:M,maxLength:c,onKeyDown:et,onChange:Ne,onFocus:He,onBlur:pt,onCompositionStart:De,onCompositionEnd:Le,className:ce(_==null?void 0:_.textarea),style:se(se({},w==null?void 0:w.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:h,onResize:We,ref:ie,readOnly:I})))});const wot=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"}},[` +`,Got=["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"],S5={},Sl;function Hot(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&&S5[n])return S5[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=Got.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:o,boxSizing:a};return t&&n&&(S5[n]=l),l}function Zot(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;Sl||(Sl=document.createElement("textarea"),Sl.setAttribute("tab-index","-1"),Sl.setAttribute("aria-hidden","true"),Sl.setAttribute("name","hiddenTextarea"),document.body.appendChild(Sl)),e.getAttribute("wrap")?Sl.setAttribute("wrap",e.getAttribute("wrap")):Sl.removeAttribute("wrap");var a=Hot(e,t),i=a.paddingSize,o=a.borderSize,s=a.boxSizing,l=a.sizingStyle;Sl.setAttribute("style","".concat(l,";").concat(Wot)),Sl.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=Sl.scrollHeight;if(s==="border-box"?f+=o:s==="content-box"&&(f-=i),n!==null||r!==null){Sl.value=" ";var m=Sl.scrollHeight-i;n!==null&&(c=m*n,s==="border-box"&&(c=c+i+o),f=Math.max(c,f)),r!==null&&(u=m*r,s==="border-box"&&(u=u+i+o),d=f>u?"":"hidden",f=Math.min(u,f))}var h={height:f,overflowY:d,resize:"none"};return c&&(h.minHeight=c),u&&(h.maxHeight=u),h}var Kot=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_5=0,E5=1,x5=2,Jot=p.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,i=n.value,o=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var f=ln(n,Kot),m=Ir(a,{value:i,postState:function(Y){return Y??""}}),h=ye(m,2),g=h[0],O=h[1],v=function(Y){O(Y.target.value),d==null||d(Y)},y=p.useRef();p.useImperativeHandle(t,function(){return{textArea:y.current}});var S=p.useMemo(function(){return o&&Xt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),C=ye(S,2),_=C[0],w=C[1],T=!!o,k=p.useState(x5),A=ye(k,2),I=A[0],M=A[1],Q=p.useState(),B=ye(Q,2),D=B[0],U=B[1],R=function(){M(_5)};tr(function(){T&&R()},[i,_,w,T]),tr(function(){if(I===_5)M(E5);else if(I===E5){var X=Zot(y.current,!1,_,w);M(x5),U(X)}},[I]);var $=p.useRef(),P=function(){ur.cancel($.current)},z=function(Y){I===x5&&(s==null||s(Y),o&&(P(),$.current=ur(function(){R()})))};p.useEffect(function(){return P},[]);var F=T?D:null,L=oe(oe({},c),F);return(I===_5||I===E5)&&(L.overflowY="hidden",L.overflowX="hidden"),p.createElement(_o,{onResize:z,disabled:!(o||s)},p.createElement("textarea",Ae({},f,{ref:y,style:L,className:le(r,l,ae({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:v})))}),est=["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"],tst=Z.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,i=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,m=e.prefixCls,h=m===void 0?"rc-textarea":m,g=e.showCount,O=e.count,v=e.className,y=e.style,S=e.disabled,C=e.hidden,_=e.classNames,w=e.styles,T=e.onResize,k=e.onClear,A=e.onPressEnter,I=e.readOnly,M=e.autoSize,Q=e.onKeyDown,B=ln(e,est),D=Ir(r,{value:a,defaultValue:r}),U=ye(D,2),R=U[0],$=U[1],P=R==null?"":String(R),z=Z.useState(!1),F=ye(z,2),L=F[0],X=F[1],Y=Z.useRef(!1),q=Z.useState(null),G=ye(q,2),ee=G[0],K=G[1],ne=p.useRef(null),ie=p.useRef(null),se=function(){var Be;return(Be=ie.current)===null||Be===void 0?void 0:Be.textArea},ue=function(){se().focus()};p.useImperativeHandle(t,function(){var Ke;return{resizableTextArea:ie.current,focus:ue,blur:function(){se().blur()},nativeElement:((Ke=ne.current)===null||Ke===void 0?void 0:Ke.nativeElement)||se()}}),p.useEffect(function(){X(function(Ke){return!S&&Ke})},[S]);var ce=Z.useState(null),be=ye(ce,2),ge=be[0],Oe=be[1];Z.useEffect(function(){if(ge){var Ke;(Ke=se()).setSelectionRange.apply(Ke,et(ge))}},[ge]);var me=s2e(O,g),Te=(n=me.max)!==null&&n!==void 0?n:c,Ce=Number(Te)>0,Fe=me.strategy(P),Me=!!Te&&Fe>Te,Ee=function(Be,We){var Re=We;!Y.current&&me.exceedFormatter&&me.max&&me.strategy(We)>me.max&&(Re=me.exceedFormatter(We,{max:me.max}),We!==Re&&Oe([se().selectionStart||0,se().selectionEnd||0])),$(Re),G$(Be.currentTarget,Be,s,Re)},Le=function(Be){Y.current=!0,u==null||u(Be)},ze=function(Be){Y.current=!1,Ee(Be,Be.currentTarget.value),d==null||d(Be)},Qe=function(Be){Ee(Be,Be.target.value)},Je=function(Be){Be.key==="Enter"&&A&&A(Be),Q==null||Q(Be)},He=function(Be){X(!0),i==null||i(Be)},gt=function(Be){X(!1),o==null||o(Be)},st=function(Be){$(""),ue(),G$(se(),Be,s)},lt=f,pt;me.show&&(me.showFormatter?pt=me.showFormatter({value:P,count:Fe,maxLength:Te}):pt="".concat(Fe).concat(Ce?" / ".concat(Te):""),lt=Z.createElement(Z.Fragment,null,lt,Z.createElement("span",{className:le("".concat(h,"-data-count"),_==null?void 0:_.count),style:w==null?void 0:w.count},pt)));var Ze=function(Be){var We;T==null||T(Be),(We=se())!==null&&We!==void 0&&We.style.height&&K(!0)},De=!M&&!g&&!l;return Z.createElement(RX,{ref:ne,value:P,allowClear:l,handleReset:st,suffix:lt,prefixCls:h,classNames:oe(oe({},_),{},{affixWrapper:le(_==null?void 0:_.affixWrapper,ae(ae({},"".concat(h,"-show-count"),g),"".concat(h,"-textarea-allow-clear"),l))}),disabled:S,focused:L,className:le(v,Me&&"".concat(h,"-out-of-range")),style:oe(oe({},y),ee&&!De?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof pt=="string"?pt:void 0}},hidden:C,readOnly:I,onClear:k},Z.createElement(Jot,Ae({},B,{autoSize:M,maxLength:c,onKeyDown:Je,onChange:Qe,onFocus:He,onBlur:gt,onCompositionStart:Le,onCompositionEnd:ze,className:le(_==null?void 0:_.textarea),style:oe(oe({},w==null?void 0:w.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:h,onResize:Ze,ref:ie,readOnly:I})))});const nst=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}}}}}},Cot=Er(["Input","TextArea"],e=>{const t=nr(e,yg(e));return wot(t)},Sg,{resetFont:!1});var $ot=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:i,disabled:o,status:s,allowClear:l,classNames:c,rootClassName:u,className:d,style:f,styles:m,variant:h,showCount:g,onMouseDown:O,onResize:v}=e,y=$ot(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:S,direction:C,allowClear:_,autoComplete:w,className:T,style:A,classNames:k,styles:I}=$i("textArea"),M=p.useContext(Xo),Q=o??M,{status:F,hasFeedback:L,feedbackIcon:U}=p.useContext(oo),R=gg(F,s),$=p.useRef(null);p.useImperativeHandle(t,()=>{var me;return{resizableTextArea:(me=$.current)===null||me===void 0?void 0:me.resizableTextArea,focus:xe=>{var we,Qe;aX((Qe=(we=$.current)===null||we===void 0?void 0:we.resizableTextArea)===null||Qe===void 0?void 0:Qe.textArea,xe)},blur:()=>{var xe;return(xe=$.current)===null||xe===void 0?void 0:xe.blur()}}});const P=S("input",r),z=Fa(P),[B,D,X]=hCe(P,u),[Y]=Cot(P,z),{compactSize:q,compactItemClassnames:H}=xd(P,C),J=Yi(me=>{var xe;return(xe=i??q)!==null&&xe!==void 0?xe:me}),[te,ne]=mm("textArea",h,a),ie=DCe(l??_),[le,ue]=p.useState(!1),[oe,ge]=p.useState(!1),ve=me=>{ue(!0),O==null||O(me);const xe=()=>{ue(!1),document.removeEventListener("mouseup",xe)};document.addEventListener("mouseup",xe)},he=me=>{var xe,we;if(v==null||v(me),le&&typeof getComputedStyle=="function"){const Qe=(we=(xe=$.current)===null||xe===void 0?void 0:xe.nativeElement)===null||we===void 0?void 0:we.querySelector("textarea");Qe&&getComputedStyle(Qe).resize==="both"&&ge(!0)}};return B(Y(p.createElement(Tot,Object.assign({autoComplete:w},y,{style:Object.assign(Object.assign({},A),f),styles:Object.assign(Object.assign({},I),m),disabled:Q,allowClear:ie,className:ce(X,z,d,u,H,T,oe&&`${P}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),k),{textarea:ce({[`${P}-sm`]:J==="small",[`${P}-lg`]:J==="large"},D,c==null?void 0:c.textarea,k.textarea,le&&`${P}-mouse-active`),variant:ce({[`${P}-${te}`]:ne},Fp(P,R)),affixWrapper:ce(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:C==="rtl",[`${P}-affix-wrapper-sm`]:J==="small",[`${P}-affix-wrapper-lg`]:J==="large",[`${P}-textarea-show-count`]:g||((n=e.count)===null||n===void 0?void 0:n.show)},D)}),prefixCls:P,suffix:L&&p.createElement("span",{className:`${P}-textarea-suffix`},U),showCount:g,ref:$,onResize:he,onMouseDown:ve}))))}),Rs=JE;Rs.Group=tot;Rs.Search=Oot;Rs.TextArea=f2e;Rs.Password=hot;Rs.OTP=lot;function Rot(e,t,n){return typeof n=="boolean"?n:e.length?!0:To(t).some(a=>a.type===bwe)}var p2e=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);ap.forwardRef((i,o)=>p.createElement(r,Object.assign({ref:o,suffixCls:e,tagName:t},i)))}const pX=p.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:i}=e,o=p2e(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=p.useContext(fn),l=s("layout",n),[c,u,d]=Owe(l),f=r?`${l}-${r}`:l;return c(p.createElement(i,Object.assign({className:ce(n||f,a,u,d),ref:t},o)))}),Pot=p.forwardRef((e,t)=>{const{direction:n}=p.useContext(fn),[r,a]=p.useState([]),{prefixCls:i,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=p2e(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),m=ga(f,["suffixCls"]),{getPrefixCls:h,className:g,style:O}=$i("layout"),v=h("layout",i),y=Rot(r,l,c),[S,C,_]=Owe(v),w=ce(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g,o,s,C,_),T=p.useMemo(()=>({siderHook:{addSider:A=>{a(k=>[].concat(Ke(k),[A]))},removeSider:A=>{a(k=>k.filter(I=>I!==A))}}}),[]);return S(p.createElement(mwe.Provider,{value:T},p.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},O),d)},m),l)))}),kot=Xk({tagName:"div",displayName:"Layout"})(Pot),Aot=Xk({suffixCls:"header",tagName:"header",displayName:"Header"})(pX),Not=Xk({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(pX),Iot=Xk({suffixCls:"content",tagName:"main",displayName:"Content"})(pX),Sf=kot;Sf.Header=Aot;Sf.Footer=Not;Sf.Content=Iot;Sf.Sider=bwe;Sf._InternalSiderContext=Ik;var Mot={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"},Dot=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Mot}))},bie=p.forwardRef(Dot),Lot={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"},Qot=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Lot}))},vie=p.forwardRef(Qot),zot={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:"页码"},Bot=[10,20,50,100],Fot=function(t){var n=t.pageSizeOptions,r=n===void 0?Bot:n,a=t.locale,i=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,d=t.buildOptionText,f=t.showSizeChanger,m=t.sizeChangerRender,h=Z.useState(""),g=be(h,2),O=g[0],v=g[1],y=function(){return!O||Number.isNaN(O)?void 0:Number(O)},S=typeof d=="function"?d:function(Q){return"".concat(Q," ").concat(a.items_per_page)},C=function(F){v(F.target.value)},_=function(F){s||O===""||(v(""),!(F.relatedTarget&&(F.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||F.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(y())))},w=function(F){O!==""&&(F.keyCode===Vt.ENTER||F.type==="click")&&(v(""),l==null||l(y()))},T=function(){return r.some(function(F){return F.toString()===o.toString()})?r:r.concat([o]).sort(function(F,L){var U=Number.isNaN(Number(F))?0:Number(F),R=Number.isNaN(Number(L))?0:Number(L);return U-R})},A="".concat(c,"-options");if(!f&&!l)return null;var k=null,I=null,M=null;return f&&m&&(k=m({disabled:u,size:o,onSizeChange:function(F){i==null||i(Number(F))},"aria-label":a.page_size,className:"".concat(A,"-size-changer"),options:T().map(function(Q){return{label:S(Q),value:Q}})})),l&&(s&&(M=typeof s=="boolean"?Z.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:u,className:"".concat(A,"-quick-jumper-button")},a.jump_to_confirm):Z.createElement("span",{onClick:w,onKeyUp:w},s)),I=Z.createElement("div",{className:"".concat(A,"-quick-jumper")},a.jump_to,Z.createElement("input",{disabled:u,type:"text",value:O,onChange:C,onKeyUp:w,onBlur:_,"aria-label":a.page}),a.page,M)),Z.createElement("li",{className:A},k,I)},Zv=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,i=t.className,o=t.showTitle,s=t.onClick,l=t.onKeyPress,c=t.itemRender,u="".concat(n,"-item"),d=ce(u,"".concat(u,"-").concat(r),ae(ae({},"".concat(u,"-active"),a),"".concat(u,"-disabled"),!r),i),f=function(){s(r)},m=function(O){l(O,s,r)},h=c(r,"page",Z.createElement("a",{rel:"nofollow"},r));return h?Z.createElement("li",{title:o?String(r):null,className:d,onClick:f,onKeyDown:m,tabIndex:0},h):null},Uot=function(t,n,r){return r};function yie(){}function Sie(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function zm(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var jot=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,o=t.className,s=t.current,l=t.defaultCurrent,c=l===void 0?1:l,u=t.total,d=u===void 0?0:u,f=t.pageSize,m=t.defaultPageSize,h=m===void 0?10:m,g=t.onChange,O=g===void 0?yie:g,v=t.hideOnSinglePage,y=t.align,S=t.showPrevNextJumpers,C=S===void 0?!0:S,_=t.showQuickJumper,w=t.showLessItems,T=t.showTitle,A=T===void 0?!0:T,k=t.onShowSizeChange,I=k===void 0?yie:k,M=t.locale,Q=M===void 0?zot:M,F=t.style,L=t.totalBoundaryShowSizeChanger,U=L===void 0?50:L,R=t.disabled,$=t.simple,P=t.showTotal,z=t.showSizeChanger,B=z===void 0?d>U:z,D=t.sizeChangerRender,X=t.pageSizeOptions,Y=t.itemRender,q=Y===void 0?Uot:Y,H=t.jumpPrevIcon,J=t.jumpNextIcon,te=t.prevIcon,ne=t.nextIcon,ie=Z.useRef(null),le=Ir(10,{value:f,defaultValue:h}),ue=be(le,2),oe=ue[0],ge=ue[1],ve=Ir(1,{value:s,defaultValue:c,postState:function(Ze){return Math.max(1,Math.min(Ze,zm(void 0,oe,d)))}}),he=be(ve,2),me=he[0],xe=he[1],we=Z.useState(me),Qe=be(we,2),Ie=Qe[0],Ee=Qe[1];p.useEffect(function(){Ee(me)},[me]);var De=Math.max(1,me-(w?3:5)),Le=Math.min(zm(void 0,oe,d),me+(w?3:5));function Ne(It,Ze){var dt=It||Z.createElement("button",{type:"button","aria-label":Ze,className:"".concat(r,"-item-link")});return typeof It=="function"&&(dt=Z.createElement(It,se({},t))),dt}function et(It){var Ze=It.target.value,dt=zm(void 0,oe,d),hn;return Ze===""?hn=Ze:Number.isNaN(Number(Ze))?hn=Ie:Ze>=dt?hn=dt:hn=Number(Ze),hn}function He(It){return Sie(It)&&It!==me&&Sie(d)&&d>0}var pt=d>oe?_:!1;function lt(It){(It.keyCode===Vt.UP||It.keyCode===Vt.DOWN)&&It.preventDefault()}function it(It){var Ze=et(It);switch(Ze!==Ie&&Ee(Ze),It.keyCode){case Vt.ENTER:Me(Ze);break;case Vt.UP:Me(Ze-1);break;case Vt.DOWN:Me(Ze+1);break}}function ut(It){Me(et(It))}function We(It){var Ze=zm(It,oe,d),dt=me>Ze&&Ze!==0?Ze:me;ge(It),Ee(dt),I==null||I(me,It),xe(dt),O==null||O(dt,It)}function Me(It){if(He(It)&&!R){var Ze=zm(void 0,oe,d),dt=It;return It>Ze?dt=Ze:It<1&&(dt=1),dt!==Ie&&Ee(dt),xe(dt),O==null||O(dt,oe),dt}return me}var Ge=me>1,ze=me2?dt-2:0),Vn=2;Vnd?d:me*oe])),Nt=null,Mt=zm(void 0,oe,d);if(v&&d<=oe)return null;var Ot=[],ft={rootPrefixCls:r,onClick:Me,onKeyPress:Te,showTitle:A,itemRender:q,page:-1},st=me-1>0?me-1:0,Et=me+1=wt*2&&me!==3&&(Ot[0]=Z.cloneElement(Ot[0],{className:ce("".concat(r,"-item-after-jump-prev"),Ot[0].props.className)}),Ot.unshift(bt)),Mt-me>=wt*2&&me!==Mt-2){var Fe=Ot[Ot.length-1];Ot[Ot.length-1]=Z.cloneElement(Fe,{className:ce("".concat(r,"-item-before-jump-next"),Fe.props.className)}),Ot.push(Nt)}Fn!==1&&Ot.unshift(Z.createElement(Zv,Re({},ft,{key:1,page:1}))),Bt!==Mt&&Ot.push(Z.createElement(Zv,Re({},ft,{key:Mt,page:Mt})))}var mt=St(st);if(mt){var yt=!Ge||!Mt;mt=Z.createElement("li",{title:A?Q.prev_page:null,onClick:qe,tabIndex:yt?null:0,onKeyDown:Ue,className:ce("".concat(r,"-prev"),ae({},"".concat(r,"-disabled"),yt)),"aria-disabled":yt},mt)}var Qt=Xe(Et);if(Qt){var $t,sn;$?($t=!ze,sn=Ge?0:null):($t=!ze||!Mt,sn=$t?null:0),Qt=Z.createElement("li",{title:A?Q.next_page:null,onClick:Pe,tabIndex:sn,onKeyDown:rt,className:ce("".concat(r,"-next"),ae({},"".concat(r,"-disabled"),$t)),"aria-disabled":$t},Qt)}var Cn=ce(r,o,ae(ae(ae(ae(ae({},"".concat(r,"-start"),y==="start"),"".concat(r,"-center"),y==="center"),"".concat(r,"-end"),y==="end"),"".concat(r,"-simple"),$),"".concat(r,"-disabled"),R));return Z.createElement("ul",Re({className:Cn,style:F,ref:ie},xt),vt,mt,$?jt:Ot,Qt,Z.createElement(Fot,{locale:Q,rootPrefixCls:r,disabled:R,selectPrefixCls:i,changeSize:We,pageSize:oe,pageSizeOptions:X,quickGo:pt?Me:null,goButton:Rn,showSizeChanger:B,sizeChangerRender:D}))};const Xot=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}}}}},Yot=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:de(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:de(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:de(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}}}}}},rst=Er(["Input","TextArea"],e=>{const t=nr(e,$g(e));return nst(t)},Rg,{resetFont:!1});var ast=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:i,disabled:o,status:s,allowClear:l,classNames:c,rootClassName:u,className:d,style:f,styles:m,variant:h,showCount:g,onMouseDown:O,onResize:v}=e,y=ast(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:S,direction:C,allowClear:_,autoComplete:w,className:T,style:k,classNames:A,styles:I}=$i("textArea"),M=p.useContext(jo),Q=o??M,{status:B,hasFeedback:D,feedbackIcon:U}=p.useContext(io),R=xg(B,s),$=p.useRef(null);p.useImperativeHandle(t,()=>{var me;return{resizableTextArea:(me=$.current)===null||me===void 0?void 0:me.resizableTextArea,focus:Te=>{var Ce,Fe;$X((Fe=(Ce=$.current)===null||Ce===void 0?void 0:Ce.resizableTextArea)===null||Fe===void 0?void 0:Fe.textArea,Te)},blur:()=>{var Te;return(Te=$.current)===null||Te===void 0?void 0:Te.blur()}}});const P=S("input",r),z=Ua(P),[F,L,X]=UCe(P,u),[Y]=rst(P,z),{compactSize:q,compactItemClassnames:G}=Pd(P,C),ee=Xi(me=>{var Te;return(Te=i??q)!==null&&Te!==void 0?Te:me}),[K,ne]=ym("textArea",h,a),ie=c2e(l??_),[se,ue]=p.useState(!1),[ce,be]=p.useState(!1),ge=me=>{ue(!0),O==null||O(me);const Te=()=>{ue(!1),document.removeEventListener("mouseup",Te)};document.addEventListener("mouseup",Te)},Oe=me=>{var Te,Ce;if(v==null||v(me),se&&typeof getComputedStyle=="function"){const Fe=(Ce=(Te=$.current)===null||Te===void 0?void 0:Te.nativeElement)===null||Ce===void 0?void 0:Ce.querySelector("textarea");Fe&&getComputedStyle(Fe).resize==="both"&&be(!0)}};return F(Y(p.createElement(tst,Object.assign({autoComplete:w},y,{style:Object.assign(Object.assign({},k),f),styles:Object.assign(Object.assign({},I),m),disabled:Q,allowClear:ie,className:le(X,z,d,u,G,T,ce&&`${P}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),A),{textarea:le({[`${P}-sm`]:ee==="small",[`${P}-lg`]:ee==="large"},L,c==null?void 0:c.textarea,A.textarea,se&&`${P}-mouse-active`),variant:le({[`${P}-${K}`]:ne},Wp(P,R)),affixWrapper:le(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:C==="rtl",[`${P}-affix-wrapper-sm`]:ee==="small",[`${P}-affix-wrapper-lg`]:ee==="large",[`${P}-textarea-show-count`]:g||((n=e.count)===null||n===void 0?void 0:n.show)},L)}),prefixCls:P,suffix:D&&p.createElement("span",{className:`${P}-textarea-suffix`},U),showCount:g,ref:$,onResize:Oe,onMouseDown:ge}))))}),$s=ix;$s.Group=kot;$s.Search=qot;$s.TextArea=z2e;$s.Password=Yot;$s.OTP=Qot;function ist(e,t,n){return typeof n=="boolean"?n:e.length?!0:xo(t).some(a=>a.type===Ywe)}var B2e=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);ap.forwardRef((i,o)=>p.createElement(r,Object.assign({ref:o,suffixCls:e,tagName:t},i)))}const LX=p.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:i}=e,o=B2e(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=p.useContext(pn),l=s("layout",n),[c,u,d]=Xwe(l),f=r?`${l}-${r}`:l;return c(p.createElement(i,Object.assign({className:le(n||f,a,u,d),ref:t},o)))}),ost=p.forwardRef((e,t)=>{const{direction:n}=p.useContext(pn),[r,a]=p.useState([]),{prefixCls:i,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=B2e(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),m=Oa(f,["suffixCls"]),{getPrefixCls:h,className:g,style:O}=$i("layout"),v=h("layout",i),y=ist(r,l,c),[S,C,_]=Xwe(v),w=le(v,{[`${v}-has-sider`]:y,[`${v}-rtl`]:n==="rtl"},g,o,s,C,_),T=p.useMemo(()=>({siderHook:{addSider:k=>{a(A=>[].concat(et(A),[k]))},removeSider:k=>{a(A=>A.filter(I=>I!==k))}}}),[]);return S(p.createElement(Fwe.Provider,{value:T},p.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},O),d)},m),l)))}),sst=nA({tagName:"div",displayName:"Layout"})(ost),lst=nA({suffixCls:"header",tagName:"header",displayName:"Header"})(LX),cst=nA({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(LX),ust=nA({suffixCls:"content",tagName:"main",displayName:"Content"})(LX),Cf=sst;Cf.Header=lst;Cf.Footer=cst;Cf.Content=ust;Cf.Sider=Ywe;Cf._InternalSiderContext=Vk;var dst={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"},fst=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:dst}))},Uie=p.forwardRef(fst),pst={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"},mst=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:pst}))},jie=p.forwardRef(mst),hst={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:"页码"},gst=[10,20,50,100],Ost=function(t){var n=t.pageSizeOptions,r=n===void 0?gst:n,a=t.locale,i=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,d=t.buildOptionText,f=t.showSizeChanger,m=t.sizeChangerRender,h=Z.useState(""),g=ye(h,2),O=g[0],v=g[1],y=function(){return!O||Number.isNaN(O)?void 0:Number(O)},S=typeof d=="function"?d:function(Q){return"".concat(Q," ").concat(a.items_per_page)},C=function(B){v(B.target.value)},_=function(B){s||O===""||(v(""),!(B.relatedTarget&&(B.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||B.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(y())))},w=function(B){O!==""&&(B.keyCode===Ht.ENTER||B.type==="click")&&(v(""),l==null||l(y()))},T=function(){return r.some(function(B){return B.toString()===o.toString()})?r:r.concat([o]).sort(function(B,D){var U=Number.isNaN(Number(B))?0:Number(B),R=Number.isNaN(Number(D))?0:Number(D);return U-R})},k="".concat(c,"-options");if(!f&&!l)return null;var A=null,I=null,M=null;return f&&m&&(A=m({disabled:u,size:o,onSizeChange:function(B){i==null||i(Number(B))},"aria-label":a.page_size,className:"".concat(k,"-size-changer"),options:T().map(function(Q){return{label:S(Q),value:Q}})})),l&&(s&&(M=typeof s=="boolean"?Z.createElement("button",{type:"button",onClick:w,onKeyUp:w,disabled:u,className:"".concat(k,"-quick-jumper-button")},a.jump_to_confirm):Z.createElement("span",{onClick:w,onKeyUp:w},s)),I=Z.createElement("div",{className:"".concat(k,"-quick-jumper")},a.jump_to,Z.createElement("input",{disabled:u,type:"text",value:O,onChange:C,onKeyUp:w,onBlur:_,"aria-label":a.page}),a.page,M)),Z.createElement("li",{className:k},A,I)},ny=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,i=t.className,o=t.showTitle,s=t.onClick,l=t.onKeyPress,c=t.itemRender,u="".concat(n,"-item"),d=le(u,"".concat(u,"-").concat(r),ae(ae({},"".concat(u,"-active"),a),"".concat(u,"-disabled"),!r),i),f=function(){s(r)},m=function(O){l(O,s,r)},h=c(r,"page",Z.createElement("a",{rel:"nofollow"},r));return h?Z.createElement("li",{title:o?String(r):null,className:d,onClick:f,onKeyDown:m,tabIndex:0},h):null},bst=function(t,n,r){return r};function Xie(){}function Yie(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Ym(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var vst=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,o=t.className,s=t.current,l=t.defaultCurrent,c=l===void 0?1:l,u=t.total,d=u===void 0?0:u,f=t.pageSize,m=t.defaultPageSize,h=m===void 0?10:m,g=t.onChange,O=g===void 0?Xie:g,v=t.hideOnSinglePage,y=t.align,S=t.showPrevNextJumpers,C=S===void 0?!0:S,_=t.showQuickJumper,w=t.showLessItems,T=t.showTitle,k=T===void 0?!0:T,A=t.onShowSizeChange,I=A===void 0?Xie:A,M=t.locale,Q=M===void 0?hst:M,B=t.style,D=t.totalBoundaryShowSizeChanger,U=D===void 0?50:D,R=t.disabled,$=t.simple,P=t.showTotal,z=t.showSizeChanger,F=z===void 0?d>U:z,L=t.sizeChangerRender,X=t.pageSizeOptions,Y=t.itemRender,q=Y===void 0?bst:Y,G=t.jumpPrevIcon,ee=t.jumpNextIcon,K=t.prevIcon,ne=t.nextIcon,ie=Z.useRef(null),se=Ir(10,{value:f,defaultValue:h}),ue=ye(se,2),ce=ue[0],be=ue[1],ge=Ir(1,{value:s,defaultValue:c,postState:function(qe){return Math.max(1,Math.min(qe,Ym(void 0,ce,d)))}}),Oe=ye(ge,2),me=Oe[0],Te=Oe[1],Ce=Z.useState(me),Fe=ye(Ce,2),Me=Fe[0],Ee=Fe[1];p.useEffect(function(){Ee(me)},[me]);var Le=Math.max(1,me-(w?3:5)),ze=Math.min(Ym(void 0,ce,d),me+(w?3:5));function Qe(Rt,qe){var Et=Rt||Z.createElement("button",{type:"button","aria-label":qe,className:"".concat(r,"-item-link")});return typeof Rt=="function"&&(Et=Z.createElement(Rt,oe({},t))),Et}function Je(Rt){var qe=Rt.target.value,Et=Ym(void 0,ce,d),hn;return qe===""?hn=qe:Number.isNaN(Number(qe))?hn=Me:qe>=Et?hn=Et:hn=Number(qe),hn}function He(Rt){return Yie(Rt)&&Rt!==me&&Yie(d)&&d>0}var gt=d>ce?_:!1;function st(Rt){(Rt.keyCode===Ht.UP||Rt.keyCode===Ht.DOWN)&&Rt.preventDefault()}function lt(Rt){var qe=Je(Rt);switch(qe!==Me&&Ee(qe),Rt.keyCode){case Ht.ENTER:De(qe);break;case Ht.UP:De(qe-1);break;case Ht.DOWN:De(qe+1);break}}function pt(Rt){De(Je(Rt))}function Ze(Rt){var qe=Ym(Rt,ce,d),Et=me>qe&&qe!==0?qe:me;be(Rt),Ee(Et),I==null||I(me,Rt),Te(Et),O==null||O(Et,Rt)}function De(Rt){if(He(Rt)&&!R){var qe=Ym(void 0,ce,d),Et=Rt;return Rt>qe?Et=qe:Rt<1&&(Et=1),Et!==Me&&Ee(Et),Te(Et),O==null||O(Et,ce),Et}return me}var Ke=me>1,Be=me2?Et-2:0),Zn=2;Znd?d:me*ce])),Mt=null,Qt=Ym(void 0,ce,d);if(v&&d<=ce)return null;var Ot=[],ht={rootPrefixCls:r,onClick:De,onKeyPress:we,showTitle:k,itemRender:q,page:-1},ut=me-1>0?me-1:0,vt=me+1=Ct*2&&me!==3&&(Ot[0]=Z.cloneElement(Ot[0],{className:le("".concat(r,"-item-after-jump-prev"),Ot[0].props.className)}),Ot.unshift(yt)),Qt-me>=Ct*2&&me!==Qt-2){var $e=Ot[Ot.length-1];Ot[Ot.length-1]=Z.cloneElement($e,{className:le("".concat(r,"-item-before-jump-next"),$e.props.className)}),Ot.push(Mt)}Pt!==1&&Ot.unshift(Z.createElement(ny,Ae({},ht,{key:1,page:1}))),xe!==Qt&&Ot.push(Z.createElement(ny,Ae({},ht,{key:Qt,page:Qt})))}var tt=mt(ut);if(tt){var dt=!Ke||!Qt;tt=Z.createElement("li",{title:k?Q.prev_page:null,onClick:We,tabIndex:dt?null:0,onKeyDown:Xe,className:le("".concat(r,"-prev"),ae({},"".concat(r,"-disabled"),dt)),"aria-disabled":dt},tt)}var wt=je(vt);if(wt){var Tt,Yt;$?(Tt=!Be,Yt=Ke?0:null):(Tt=!Be||!Qt,Yt=Tt?null:0),wt=Z.createElement("li",{title:k?Q.next_page:null,onClick:Re,tabIndex:Yt,onKeyDown:rt,className:le("".concat(r,"-next"),ae({},"".concat(r,"-disabled"),Tt)),"aria-disabled":Tt},wt)}var En=le(r,o,ae(ae(ae(ae(ae({},"".concat(r,"-start"),y==="start"),"".concat(r,"-center"),y==="center"),"".concat(r,"-end"),y==="end"),"".concat(r,"-simple"),$),"".concat(r,"-disabled"),R));return Z.createElement("ul",Ae({className:En,style:B,ref:ie},$t),St,tt,$?Ut:Ot,wt,Z.createElement(Ost,{locale:Q,rootPrefixCls:r,disabled:R,selectPrefixCls:i,changeSize:Ze,pageSize:ce,pageSizeOptions:X,quickGo:gt?De:null,goButton:Rn,showSizeChanger:F,sizeChangerRender:L}))};const yst=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}}}}},Sst=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:de(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:de(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:de(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:de(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:de(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:de(e.itemSizeSM),input:Object.assign(Object.assign({},Jj(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Vot=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:de(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:de(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 ${de(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${de(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:`${de(e.inputOutlineOffset)} 0 ${de(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:de(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:de(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},qot=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:de(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:de(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:de(e.itemSizeSM),input:Object.assign(Object.assign({},EX(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},_st=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:de(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:de(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 ${de(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${de(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:`${de(e.inputOutlineOffset)} 0 ${de(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:de(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:de(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},Est=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 @@ -372,7 +372,7 @@ 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:de(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:`${de(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:de(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},ZE(e)),qj(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Fk(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Wot=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:de(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${de(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${de(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}}}}},Got=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zr(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:de(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Wot(e)),qot(e)),Vot(e)),Yot(e)),Xot(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"}}},Hot=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ul(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},wc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:wc(e)}}}},m2e=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},Sg(e)),h2e=e=>nr(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"},yg(e)),Zot=Er("Pagination",e=>{const t=h2e(e);return[Got(t),Hot(t)]},m2e),Kot=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:`${de(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}}}}},Jot=mg(["Pagination","bordered"],e=>{const t=h2e(e);return Kot(t)},m2e);function _ie(e){return p.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var est=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:i,style:o,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f}=e,m=est(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=WE(c),[,g]=uo(),{getPrefixCls:O,direction:v,showSizeChanger:y,className:S,style:C}=$i("pagination"),_=O("pagination",n),[w,T,A]=Zot(_),k=Yi(s),I=k==="small"||!!(h&&!k&&c),[M]=fl("Pagination",EEe),Q=Object.assign(Object.assign({},M),l),[F,L]=_ie(u),[U,R]=_ie(y),$=F??U,P=L??R,z=d||Vr,B=p.useMemo(()=>f?f.map(J=>Number(J)):void 0,[f]),D=J=>{var te;const{disabled:ne,size:ie,onSizeChange:le,"aria-label":ue,className:oe,options:ge}=J,{className:ve,onChange:he}=P||{},me=(te=ge.find(xe=>String(xe.value)===String(ie)))===null||te===void 0?void 0:te.value;return p.createElement(z,Object.assign({disabled:ne,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:xe=>xe.parentNode,"aria-label":ue,options:ge},P,{value:me,onChange:(xe,we)=>{le==null||le(xe),he==null||he(xe,we)},size:I?"small":"middle",className:ce(oe,ve)}))},X=p.useMemo(()=>{const J=p.createElement("span",{className:`${_}-item-ellipsis`},"•••"),te=p.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},v==="rtl"?p.createElement(Bp,null):p.createElement(Up,null)),ne=p.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},v==="rtl"?p.createElement(Up,null):p.createElement(Bp,null)),ie=p.createElement("a",{className:`${_}-item-link`},p.createElement("div",{className:`${_}-item-container`},v==="rtl"?p.createElement(vie,{className:`${_}-item-link-icon`}):p.createElement(bie,{className:`${_}-item-link-icon`}),J)),le=p.createElement("a",{className:`${_}-item-link`},p.createElement("div",{className:`${_}-item-container`},v==="rtl"?p.createElement(bie,{className:`${_}-item-link-icon`}):p.createElement(vie,{className:`${_}-item-link-icon`}),J));return{prevIcon:te,nextIcon:ne,jumpPrevIcon:ie,jumpNextIcon:le}},[v,_]),Y=O("select",r),q=ce({[`${_}-${t}`]:!!t,[`${_}-mini`]:I,[`${_}-rtl`]:v==="rtl",[`${_}-bordered`]:g.wireframe},S,a,i,T,A),H=Object.assign(Object.assign({},C),o);return w(p.createElement(p.Fragment,null,g.wireframe&&p.createElement(Jot,{prefixCls:_}),p.createElement(jot,Object.assign({},X,m,{style:H,prefixCls:_,selectPrefixCls:Y,className:q,locale:Q,pageSizeOptions:B,showSizeChanger:$,sizeChangerRender:D}))))},U$=100,g2e=U$/5,O2e=U$/2-g2e/2,p5=O2e*2*Math.PI,Eie=50,xie=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return p.createElement("circle",{className:ce(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:O2e,cx:Eie,cy:Eie,strokeWidth:g2e,style:n})},nst=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[i,o]=p.useState(!1);tr(()=>{e!==0&&o(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!i)return null;const l={strokeDashoffset:`${p5/4}`,strokeDasharray:`${p5*s/100} ${p5*(100-s)/100}`};return p.createElement("span",{className:ce(r,`${n}-progress`,s<=0&&a)},p.createElement("svg",{viewBox:`0 0 ${U$} ${U$}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},p.createElement(xie,{dotClassName:n,hasCircleCls:!0}),p.createElement(xie,{dotClassName:n,style:l})))};function rst(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,i=`${a}-hidden`;return p.createElement(p.Fragment,null,p.createElement("span",{className:ce(a,n>0&&i)},p.createElement("span",{className:ce(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>p.createElement("i",{className:`${t}-dot-item`,key:o})))),p.createElement(nst,{prefixCls:t,percent:n}))}function ast(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,i=`${n}-dot`;return r&&p.isValidElement(r)?wo(r,{className:ce((t=r.props)===null||t===void 0?void 0:t.className,i),percent:a}):p.createElement(rst,{prefixCls:n,percent:a})}const ist=new kr("antSpinMove",{to:{opacity:1}}),ost=new kr("antRotate",{to:{transform:"rotate(405deg)"}}),sst=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},zr(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:ist,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:ost,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"}})}},lst=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},cst=Er("Spin",e=>{const t=nr(e,{spinDotDefault:e.colorTextDescription});return sst(t)},lst),ust=200,Tie=[[30,.05],[70,.03],[96,.01]];function dst(e,t){const[n,r]=p.useState(0),a=p.useRef(null),i=t==="auto";return p.useEffect(()=>(i&&e&&(r(0),a.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l{a.current&&(clearInterval(a.current),a.current=null)}),[i,e]),i?n:t}var fst=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:i,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:f=!1,indicator:m,percent:h}=e,g=fst(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:O,direction:v,className:y,style:S,indicator:C}=$i("spin"),_=O("spin",n),[w,T,A]=cst(_),[k,I]=p.useState(()=>r&&!pst(r,a)),M=dst(k,h);p.useEffect(()=>{if(r){const P=bnt(a,()=>{I(!0)});return P(),()=>{var z;(z=P==null?void 0:P.cancel)===null||z===void 0||z.call(P)}}I(!1)},[a,r]);const Q=p.useMemo(()=>typeof d<"u"&&!f,[d,f]),F=ce(_,y,{[`${_}-sm`]:s==="small",[`${_}-lg`]:s==="large",[`${_}-spinning`]:k,[`${_}-show-text`]:!!l,[`${_}-rtl`]:v==="rtl"},i,!f&&o,T,A),L=ce(`${_}-container`,{[`${_}-blur`]:k}),U=(t=m??C)!==null&&t!==void 0?t:b2e,R=Object.assign(Object.assign({},S),u),$=p.createElement("div",Object.assign({},g,{style:R,className:F,"aria-live":"polite","aria-busy":k}),p.createElement(ast,{prefixCls:_,indicator:U,percent:M}),l&&(Q||f)?p.createElement("div",{className:`${_}-text`},l):null);return w(Q?p.createElement("div",Object.assign({},g,{className:ce(`${_}-nested-loading`,c,T,A)}),k&&p.createElement("div",{key:"loading"},$),p.createElement("div",{className:L,key:"container"},d)):f?p.createElement("div",{className:ce(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:k},o,T,A)},$):$)};Yk.setDefaultIndicator=e=>{b2e=e};const mst=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let mc=null,gh=e=>e(),b_=[],v_={};function wie(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=v_,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:a}}const hst=Z.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=p.useContext(fn),i=v_.prefixCls||a("message"),o=p.useContext(P$),[s,l]=gxe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),o.message));return Z.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...d)=>(r(),s[u].apply(s,d))}),{instance:c,sync:r}}),l}),gst=Z.forwardRef((e,t)=>{const[n,r]=Z.useState(wie),a=()=>{r(wie)};Z.useEffect(a,[]);const i=lj(),o=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=Z.createElement(hst,{ref:t,sync:a,messageConfig:n});return Z.createElement(ci,{prefixCls:o,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}),Vk=()=>{if(!mc){const e=document.createDocumentFragment(),t={fragment:e};mc=t,gh(()=>{sk()(Z.createElement(gst,{ref:r=>{const{instance:a,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=i,Vk())})}}),e)});return}mc.instance&&(b_.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{gh(()=>{const r=mc.instance.open(Object.assign(Object.assign({},v_),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":gh(()=>{mc==null||mc.instance.destroy(e.key)});break;default:gh(()=>{var r;const a=(r=mc.instance)[t].apply(r,Ke(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),b_=[])};function Ost(e){v_=Object.assign(Object.assign({},v_),e),gh(()=>{var t;(t=mc==null?void 0:mc.sync)===null||t===void 0||t.call(mc)})}function bst(e){const t=mj(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return b_.push(a),()=>{r?gh(()=>{r()}):a.skipped=!0}});return Vk(),t}function vst(e,t){const n=mj(r=>{let a;const i={type:e,args:t,resolve:r,setCloseFn:o=>{a=o}};return b_.push(i),()=>{a?gh(()=>{a()}):i.skipped=!0}});return Vk(),n}const yst=e=>{b_.push({type:"destroy",key:e}),Vk()},Sst=["success","info","warning","error","loading"],_st={open:bst,destroy:yst,config:Ost,useMessage:Oxe,_InternalPanelDoNotUseOrYouWillBeFired:DXe},Ki=_st;Sst.forEach(e=>{Ki[e]=(...t)=>vst(e,t)});var Est=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:i,title:o,children:s,footer:l}=e,c=Est(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=p.useContext(fn),d=u(),f=t||u("modal"),m=Fa(d),[h,g,O]=tTe(f,m),v=`${f}-confirm`;let y={};return i?y={closable:a??!1,title:"",footer:"",children:p.createElement(rTe,Object.assign({},e,{prefixCls:f,confirmPrefixCls:v,rootPrefixCls:d,content:s}))}:y={closable:a??!0,title:o,footer:l!==null&&p.createElement(Hxe,Object.assign({},e)),children:s},h(p.createElement(Ixe,Object.assign({prefixCls:f,className:ce(g,`${f}-pure-panel`,i&&v,i&&`${v}-${i}`,n,O,m)},c,{closeIcon:Gxe(f,r),closable:a},y)))},Tst=STe(xst);function v2e(e){return XE(sTe(e))}const oi=nTe;oi.useModal=fTe;oi.info=function(t){return XE(lTe(t))};oi.success=function(t){return XE(cTe(t))};oi.error=function(t){return XE(uTe(t))};oi.warning=v2e;oi.warn=v2e;oi.confirm=function(t){return XE(dTe(t))};oi.destroyAll=function(){for(;mh.length;){const t=mh.pop();t&&t()}};oi.config=TWe;oi._InternalPanelDoNotUseOrYouWillBeFired=Tst;let Zc=null,T2=e=>e(),j$=[],y_={};function Cie(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:a,showProgress:i,pauseOnHover:o}=y_,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:a,showProgress:i,pauseOnHover:o}}const wst=Z.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:a}=p.useContext(fn),i=y_.prefixCls||a("notification"),o=p.useContext(P$),[s,l]=bTe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),o.notification));return Z.useEffect(r,[]),Z.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...d)=>(r(),s[u].apply(s,d))}),{instance:c,sync:r}}),l}),Cst=Z.forwardRef((e,t)=>{const[n,r]=Z.useState(Cie),a=()=>{r(Cie)};Z.useEffect(a,[]);const i=lj(),o=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=Z.createElement(wst,{ref:t,sync:a,notificationConfig:n});return Z.createElement(ci,{prefixCls:o,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}),mX=()=>{if(!Zc){const e=document.createDocumentFragment(),t={fragment:e};Zc=t,T2(()=>{sk()(Z.createElement(Cst,{ref:r=>{const{instance:a,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=i,mX())})}}),e)});return}Zc.instance&&(j$.forEach(e=>{switch(e.type){case"open":{T2(()=>{Zc.instance.open(Object.assign(Object.assign({},y_),e.config))});break}case"destroy":T2(()=>{var t;(t=Zc==null?void 0:Zc.instance)===null||t===void 0||t.destroy(e.key)});break}}),j$=[])};function $st(e){y_=Object.assign(Object.assign({},y_),e),T2(()=>{var t;(t=Zc==null?void 0:Zc.sync)===null||t===void 0||t.call(Zc)})}function y2e(e){j$.push({type:"open",config:e}),mX()}const Rst=e=>{j$.push({type:"destroy",key:e}),mX()},Pst=["success","info","warning","error"],kst={open:y2e,destroy:Rst,config:$st,useNotification:vTe,_InternalPanelDoNotUseOrYouWillBeFired:FWe},S2e=kst;Pst.forEach(e=>{S2e[e]=t=>y2e(Object.assign(Object.assign({},t),{type:e}))});var Ast={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Nst=function(){var t=p.useRef([]),n=p.useRef(null);return p.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(i){if(i){a=!0;var o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},$ie=0,Ist=xo();function Mst(){var e;return Ist?(e=$ie,$ie+=1):e="TEST_OR_SSR",e}const Dst=(function(e){var t=p.useState(),n=be(t,2),r=n[0],a=n[1];return p.useEffect(function(){a("rc_progress_".concat(Mst()))},[]),e||r});var Rie=function(t){var n=t.bg,r=t.children;return p.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function Pie(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 Lst=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,i=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=r&&Ut(r)==="object",m=f?"#FFF":void 0,h=u/2,g=p.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!f)return g;var O="".concat(a,"-conic"),v=d?"".concat(180+d/2,"deg"):"0deg",y=Pie(r,(360-d)/360),S=Pie(r,1),C="conic-gradient(from ".concat(v,", ").concat(y.join(", "),")"),_="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(S.join(", "),")");return p.createElement(p.Fragment,null,p.createElement("mask",{id:O},g),p.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(O,")")},p.createElement(Rie,{bg:_},p.createElement(Rie,{bg:C}))))}),Gy=100,m5=function(t,n,r,a,i,o,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=r/100*360*((360-o)/360),m=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-a)/100*n;c==="round"&&a!==100&&(h+=u/2,h>=n&&(h=n-.01));var g=Gy/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+d,transform:"rotate(".concat(i+f+m,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Qst=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function kie(e){var t=e??[];return Array.isArray(t)?t:[t]}var zst=function(t){var n=se(se({},Ast),t),r=n.id,a=n.prefixCls,i=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,d=n.trailColor,f=n.strokeLinecap,m=n.style,h=n.className,g=n.strokeColor,O=n.percent,v=on(n,Qst),y=Gy/2,S=Dst(r),C="".concat(S,"-gradient"),_=y-o/2,w=Math.PI*2*_,T=c>0?90+c/2:-90,A=w*((360-c)/360),k=Ut(i)==="object"?i:{count:i,gap:2},I=k.count,M=k.gap,Q=kie(O),F=kie(g),L=F.find(function(D){return D&&Ut(D)==="object"}),U=L&&Ut(L)==="object",R=U?"butt":f,$=m5(w,A,0,100,T,c,u,d,R,o),P=Nst(),z=function(){var X=0;return Q.map(function(Y,q){var H=F[q]||F[F.length-1],J=m5(w,A,X,Y,T,c,u,H,R,o);return X+=Y,p.createElement(Lst,{key:q,color:H,ptg:Y,radius:_,prefixCls:a,gradientId:C,style:J,strokeLinecap:R,strokeWidth:o,gapDegree:c,ref:function(ne){P[q]=ne},size:Gy})}).reverse()},B=function(){var X=Math.round(I*(Q[0]/100)),Y=100/I,q=0;return new Array(I).fill(null).map(function(H,J){var te=J<=X-1?F[0]:d,ne=te&&Ut(te)==="object"?"url(#".concat(C,")"):void 0,ie=m5(w,A,q,Y,T,c,u,te,"butt",o,M);return q+=(A-ie.strokeDashoffset+M)*100/A,p.createElement("circle",{key:J,className:"".concat(a,"-circle-path"),r:_,cx:y,cy:y,stroke:ne,strokeWidth:o,opacity:1,style:ie,ref:function(ue){P[J]=ue}})})};return p.createElement("svg",Re({className:ce("".concat(a,"-circle"),h),viewBox:"0 0 ".concat(Gy," ").concat(Gy),style:m,id:r,role:"presentation"},v),!I&&p.createElement("circle",{className:"".concat(a,"-circle-trail"),r:_,cx:y,cy:y,stroke:d,strokeLinecap:R,strokeWidth:s||o,style:$}),I?B():z())};function Dp(e){return!e||e<0?0:e>100?100:e}function X$({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const Bst=({percent:e,success:t,successPercent:n})=>{const r=Dp(X$({success:t,successPercent:n}));return[r,Dp(Dp(e)-r)]},Fst=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||l0.green,t||null]},qk=(e,t,n)=>{var r,a,i,o;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,l=(o=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&o!==void 0?o:120));return[s,l]},Ust=3,jst=e=>Ust/e*100,Xst=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:i,width:o=120,type:s,children:l,success:c,size:u=o,steps:d}=e,[f,m]=qk(u,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(jst(f),6));const g={width:f,height:m,fontSize:f*.15+6},O=p.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),v=Bst(e),y=a||s==="dashboard"&&"bottom"||void 0,S=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=Fst({success:c,strokeColor:e.strokeColor}),_=ce(`${t}-inner`,{[`${t}-circle-gradient`]:S}),w=p.createElement(zst,{steps:d,percent:d?v[1]:v,strokeWidth:h,trailWidth:h,strokeColor:d?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:O,gapPosition:y}),T=f<=20,A=p.createElement("div",{className:_,style:g},w,!T&&l);return T?p.createElement(Co,{title:l},A):A},Y$="--progress-line-stroke-color",_2e="--progress-percent",Aie=e=>{const t=e?"100%":"-100%";return new kr(`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}})},Yst=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},zr(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(${Y$})`]},height:"100%",width:`calc(1 / var(${_2e}) * 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 ${de(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:Aie(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Aie(!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}}})}},Vst=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"}}}},qst=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}}}}}},Wst=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Gst=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Hst=Er("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=nr(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Yst(n),Vst(n),qst(n),Wst(n)]},Gst);var Zst=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(", ")},Jst=(e,t)=>{const{from:n=l0.blue,to:r=l0.blue,direction:a=t==="rtl"?"to left":"to right"}=e,i=Zst(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=Kst(i),l=`linear-gradient(${a}, ${s})`;return{background:l,[Y$]:l}}const o=`linear-gradient(${a}, ${n}, ${r})`;return{background:o,[Y$]:o}},elt=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:i,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:f,type:m}=u,h=o&&typeof o!="string"?Jst(o,n):{[Y$]:o,background:o},g=s==="square"||s==="butt"?0:void 0,O=a??[-1,i||(a==="small"?6:8)],[v,y]=qk(O,"line",{strokeWidth:i}),S={backgroundColor:c||void 0,borderRadius:g},C=Object.assign(Object.assign({width:`${Dp(r)}%`,height:y,borderRadius:g},h),{[_2e]:Dp(r)/100}),_=X$(e),w={width:`${Dp(_)}%`,height:y,borderRadius:g,backgroundColor:d==null?void 0:d.strokeColor},T={width:v<0?"100%":v},A=p.createElement("div",{className:`${t}-inner`,style:S},p.createElement("div",{className:ce(`${t}-bg`,`${t}-bg-${m}`),style:C},m==="inner"&&l),_!==void 0&&p.createElement("div",{className:`${t}-success-bg`,style:w})),k=m==="outer"&&f==="start",I=m==="outer"&&f==="end";return m==="outer"&&f==="center"?p.createElement("div",{className:`${t}-layout-bottom`},A,l):p.createElement("div",{className:`${t}-outer`,style:T},k&&l,A,I&&l)},tlt=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:i=8,strokeColor:o,trailColor:s=null,prefixCls:l,children:c}=e,u=r(n*(a/100)),f=t??[t==="small"?2:14,i],[m,h]=qk(f,"step",{steps:n,strokeWidth:i}),g=m/n,O=Array.from({length:n});for(let v=0;v{const{prefixCls:n,className:r,rootClassName:a,steps:i,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:m,percentPosition:h={}}=e,g=nlt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:O="end",type:v="outer"}=h,y=Array.isArray(o)?o[0]:o,S=typeof o=="string"||Array.isArray(o)?o:void 0,C=p.useMemo(()=>{if(y){const z=typeof y=="string"?y:Object.values(y)[0];return new Sr(z).isLight()}return!1},[o]),_=p.useMemo(()=>{var z,B;const D=X$(e);return Number.parseInt(D!==void 0?(z=D??0)===null||z===void 0?void 0:z.toString():(B=s??0)===null||B===void 0?void 0:B.toString(),10)},[s,e.success,e.successPercent]),w=p.useMemo(()=>!rlt.includes(d)&&_>=100?"success":d||"normal",[d,_]),{getPrefixCls:T,direction:A,progress:k}=p.useContext(fn),I=T("progress",n),[M,Q,F]=Hst(I),L=u==="line",U=L&&!i,R=p.useMemo(()=>{if(!c)return null;const z=X$(e);let B;const D=f||(Y=>`${Y}%`),X=L&&C&&v==="inner";return v==="inner"||f||w!=="exception"&&w!=="success"?B=D(Dp(s),Dp(z)):w==="exception"?B=L?p.createElement(Pf,null):p.createElement(Gl,null):w==="success"&&(B=L?p.createElement(hg,null):p.createElement(Ck,null)),p.createElement("span",{className:ce(`${I}-text`,{[`${I}-text-bright`]:X,[`${I}-text-${O}`]:U,[`${I}-text-${v}`]:U}),title:typeof B=="string"?B:void 0},B)},[c,s,_,w,u,I,f]);let $;u==="line"?$=i?p.createElement(tlt,Object.assign({},e,{strokeColor:S,prefixCls:I,steps:typeof i=="object"?i.count:i}),R):p.createElement(elt,Object.assign({},e,{strokeColor:y,prefixCls:I,direction:A,percentPosition:{align:O,type:v}}),R):(u==="circle"||u==="dashboard")&&($=p.createElement(Xst,Object.assign({},e,{strokeColor:y,prefixCls:I,progressStatus:w}),R));const P=ce(I,`${I}-status-${w}`,{[`${I}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${I}-inline-circle`]:u==="circle"&&qk(l,"circle")[0]<=20,[`${I}-line`]:U,[`${I}-line-align-${O}`]:U,[`${I}-line-position-${v}`]:U,[`${I}-steps`]:i,[`${I}-show-info`]:c,[`${I}-${l}`]:typeof l=="string",[`${I}-rtl`]:A==="rtl"},k==null?void 0:k.className,r,a,Q,F);return M(p.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},k==null?void 0:k.style),m),className:P,role:"progressbar","aria-valuenow":_,"aria-valuemin":0,"aria-valuemax":100},ga(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),$))});var alt={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"},ilt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:alt}))},olt=p.forwardRef(ilt),slt={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"},llt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:slt}))},clt=p.forwardRef(llt);const ult=()=>p.createElement("svg",{width:"252",height:"294"},p.createElement("title",null,"No Found"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),p.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),p.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),p.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"}),p.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),dlt=()=>p.createElement("svg",{width:"254",height:"294"},p.createElement("title",null,"Server Error"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.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"}),p.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"}),p.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),p.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"}),p.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}))),flt=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:a,paddingXL:i,paddingXS:o,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${de(e.calc(s).mul(2).equal())} ${de(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${de(s)} ${de(e.calc(a).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},plt=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}}},mlt=e=>[flt(e),plt(e)],hlt=e=>mlt(e),glt=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),Olt=Er("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,a=e.colorWarning,i=nr(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:a,imageWidth:250,imageHeight:295});return[hlt(i)]},glt),blt=()=>p.createElement("svg",{width:"251",height:"294"},p.createElement("title",null,"Unauthorized"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.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"}),p.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"}),p.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.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"}),p.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),p.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"}),p.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"}),p.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"}))),vlt={success:hg,error:Pf,info:xb,warning:clt},nx={404:ult,500:dlt,403:blt},ylt=Object.keys(nx),Slt=({prefixCls:e,icon:t,status:n})=>{const r=ce(`${e}-icon`);if(ylt.includes(`${n}`)){const i=nx[n];return p.createElement("div",{className:`${r} ${e}-image`},p.createElement(i,null))}const a=p.createElement(vlt[n]);return t===null||t===!1?null:p.createElement("div",{className:r},t||a)},_lt=({prefixCls:e,extra:t})=>t?p.createElement("div",{className:`${e}-extra`},t):null,Gk=({prefixCls:e,className:t,rootClassName:n,subTitle:r,title:a,style:i,children:o,status:s="info",icon:l,extra:c})=>{const{getPrefixCls:u,direction:d,result:f}=p.useContext(fn),m=u("result",e),[h,g,O]=Olt(m),v=ce(m,`${m}-${s}`,t,f==null?void 0:f.className,n,{[`${m}-rtl`]:d==="rtl"},g,O),y=Object.assign(Object.assign({},f==null?void 0:f.style),i);return h(p.createElement("div",{className:v,style:y},p.createElement(Slt,{prefixCls:m,status:s,icon:l}),p.createElement("div",{className:`${m}-title`},a),r&&p.createElement("div",{className:`${m}-subtitle`},r),p.createElement(_lt,{prefixCls:m,extra:c}),o&&p.createElement("div",{className:`${m}-content`},o)))};Gk.PRESENTED_IMAGE_403=nx[403];Gk.PRESENTED_IMAGE_404=nx[404];Gk.PRESENTED_IMAGE_500=nx[500];var Elt=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function Nie(e){return typeof e=="string"}function E2e(e){var t,n=e.className,r=e.prefixCls,a=e.style,i=e.active,o=e.status,s=e.iconPrefix,l=e.icon;e.wrapperStyle;var c=e.stepNumber,u=e.disabled,d=e.description,f=e.title,m=e.subTitle,h=e.progressDot,g=e.stepIcon,O=e.tailContent,v=e.icons,y=e.stepIndex,S=e.onStepClick,C=e.onClick,_=e.render,w=on(e,Elt),T=!!S&&!u,A={};T&&(A.role="button",A.tabIndex=0,A.onClick=function(L){C==null||C(L),S(y)},A.onKeyDown=function(L){var U=L.which;(U===Vt.ENTER||U===Vt.SPACE)&&S(y)});var k=function(){var U,R,$=ce("".concat(r,"-icon"),"".concat(s,"icon"),(U={},ae(U,"".concat(s,"icon-").concat(l),l&&Nie(l)),ae(U,"".concat(s,"icon-check"),!l&&o==="finish"&&(v&&!v.finish||!v)),ae(U,"".concat(s,"icon-cross"),!l&&o==="error"&&(v&&!v.error||!v)),U)),P=p.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?R=p.createElement("span",{className:"".concat(r,"-icon")},h(P,{index:c-1,status:o,title:f,description:d})):R=p.createElement("span",{className:"".concat(r,"-icon")},P):l&&!Nie(l)?R=p.createElement("span",{className:"".concat(r,"-icon")},l):v&&v.finish&&o==="finish"?R=p.createElement("span",{className:"".concat(r,"-icon")},v.finish):v&&v.error&&o==="error"?R=p.createElement("span",{className:"".concat(r,"-icon")},v.error):l||o==="finish"||o==="error"?R=p.createElement("span",{className:$}):R=p.createElement("span",{className:"".concat(r,"-icon")},c),g&&(R=g({index:c-1,status:o,title:f,description:d,node:R})),R},I=o||"wait",M=ce("".concat(r,"-item"),"".concat(r,"-item-").concat(I),n,(t={},ae(t,"".concat(r,"-item-custom"),l),ae(t,"".concat(r,"-item-active"),i),ae(t,"".concat(r,"-item-disabled"),u===!0),t)),Q=se({},a),F=p.createElement("div",Re({},w,{className:M,style:Q}),p.createElement("div",Re({onClick:C},A,{className:"".concat(r,"-item-container")}),p.createElement("div",{className:"".concat(r,"-item-tail")},O),p.createElement("div",{className:"".concat(r,"-item-icon")},k()),p.createElement("div",{className:"".concat(r,"-item-content")},p.createElement("div",{className:"".concat(r,"-item-title")},f,m&&p.createElement("div",{title:typeof m=="string"?m:void 0,className:"".concat(r,"-item-subtitle")},m)),d&&p.createElement("div",{className:"".concat(r,"-item-description")},d))));return _&&(F=_(F)||null),F}var xlt=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function hX(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,i=a===void 0?{}:a,o=e.className;e.children;var s=e.direction,l=s===void 0?"horizontal":s,c=e.type,u=c===void 0?"default":c,d=e.labelPlacement,f=d===void 0?"horizontal":d,m=e.iconPrefix,h=m===void 0?"rc":m,g=e.status,O=g===void 0?"process":g,v=e.size,y=e.current,S=y===void 0?0:y,C=e.progressDot,_=C===void 0?!1:C,w=e.stepIcon,T=e.initial,A=T===void 0?0:T,k=e.icons,I=e.onChange,M=e.itemRender,Q=e.items,F=Q===void 0?[]:Q,L=on(e,xlt),U=u==="navigation",R=u==="inline",$=R||_,P=R?"horizontal":l,z=R?void 0:v,B=$?"vertical":f,D=ce(r,"".concat(r,"-").concat(P),o,(t={},ae(t,"".concat(r,"-").concat(z),z),ae(t,"".concat(r,"-label-").concat(B),P==="horizontal"),ae(t,"".concat(r,"-dot"),!!$),ae(t,"".concat(r,"-navigation"),U),ae(t,"".concat(r,"-inline"),R),t)),X=function(H){I&&S!==H&&I(H)},Y=function(H,J){var te=se({},H),ne=A+J;return O==="error"&&J===S-1&&(te.className="".concat(r,"-next-error")),te.status||(ne===S?te.status=O:ne{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:de(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},wlt=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},Clt=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),o={[`${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:`${de(i)} ${de(e.paddingXXS)} 0`,margin:`0 ${de(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% - ${de(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(i).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:`${de(e.lineWidth)} ${e.lineType} ${a}`}},o),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${de(e.lineWidth)} ${e.lineType} ${a}`}},o),"&-error":o,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${de(e.calc(n).div(2).equal())})`,top:0}},o),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},$lt=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 ${de(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()}}}}}},Rlt=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},ll),{"&::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% - ${de(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${de(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${de(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 ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${de(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"}}}},Plt=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:i,marginXXS:o,lineWidthBold:s,lineWidth:l,paddingXXS:c}=e,u=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),d=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:c,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:i}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:c,[`> ${n}-item-container > ${n}-item-tail`]:{top:o,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(l).add(c).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${de(u)} !important`,height:`${de(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(c).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${de(d)} !important`,height:`${de(d)} !important`}}}}},klt=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:i,motionDurationSlow:o}=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:`${de(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${de(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:de(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${o}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(a).div(2).equal(),width:a,height:a,lineHeight:de(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(i).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(i).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${de(e.calc(i).add(e.paddingXS).equal())} 0 ${de(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Alt=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"}}}}},Nlt=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${de(e.marginXS)}`,fontSize:r,lineHeight:de(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:de(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:i,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:de(n),transform:"none"}}}}},Ilt=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:de(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:`${de(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${de(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:`${de(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${de(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:de(n)}}}}},Mlt="wait",Dlt="process",Llt="finish",Qlt="error",mw=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,i=`${e}DescriptionColor`,o=`${e}TailColor`,s=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[o]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[o]}}},zlt=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}`]:wc(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:de(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${de(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:de(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}},mw(Mlt,e)),mw(Dlt,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),mw(Llt,e)),mw(Qlt,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},Blt=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"}}}}},Flt=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({},zr(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),zlt(e)),Blt(e)),Tlt(e)),Nlt(e)),Ilt(e)),wlt(e)),$lt(e)),klt(e)),Rlt(e)),Alt(e)),Plt(e)),Clt(e))}},Ult=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}),jlt=Er("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:i,colorTextDescription:o,colorTextQuaternary:s,colorError:l,colorBorderSecondary:c,colorSplit:u}=e,d=nr(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:u,waitTitleColor:o,waitDescriptionColor:o,waitTailColor:u,waitDotColor:t,finishIconColor:i,finishTitleColor:a,finishDescriptionColor:o,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:u,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:i,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:c});return Flt(d)},Ult);function Xlt(e){return e.filter(t=>t)}function Ylt(e,t){if(e)return e;const n=To(t).map(r=>{if(p.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return Xlt(n)}var Vlt=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:i,items:o,responsive:s=!0,current:l=0,children:c,style:u}=e,d=Vlt(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:f}=WE(s),{getPrefixCls:m,direction:h,className:g,style:O}=$i("steps"),v=p.useMemo(()=>s&&f?"vertical":i,[s,f,i]),y=Yi(n),S=m("steps",e.prefixCls),[C,_,w]=jlt(S),T=e.type==="inline",A=m("",e.iconPrefix),k=Ylt(o,c),I=T?void 0:t,M=Object.assign(Object.assign({},O),u),Q=ce(g,{[`${S}-rtl`]:h==="rtl",[`${S}-with-progress`]:I!==void 0},r,a,_,w),F={finish:p.createElement(Ck,{className:`${S}-finish-icon`}),error:p.createElement(Gl,{className:`${S}-error-icon`})},L=({node:R,status:$})=>{if($==="process"&&I!==void 0){const P=y==="small"?32:40;return p.createElement("div",{className:`${S}-progress-icon`},p.createElement(Wk,{type:"circle",percent:I,size:P,strokeWidth:4,format:()=>null}),R)}return R},U=(R,$)=>R.description?p.createElement(Co,{title:R.description},$):$;return C(p.createElement(hX,Object.assign({icons:F},d,{style:M,current:l,size:y,items:k,itemRender:T?U:void 0,stepIcon:L,direction:v,prefixCls:S,iconPrefix:A,className:Q})))};x2e.Step=hX.Step;var qlt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],T2e=p.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,i=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,m=e.onChange,h=e.onKeyDown,g=on(e,qlt),O=Ir(!1,{value:o,defaultValue:s}),v=be(O,2),y=v[0],S=v[1];function C(A,k){var I=y;return l||(I=A,S(I),m==null||m(I,k)),I}function _(A){A.which===Vt.LEFT?C(!1,A):A.which===Vt.RIGHT&&C(!0,A),h==null||h(A)}function w(A){var k=C(!y,A);f==null||f(k,A)}var T=ce(a,i,(n={},ae(n,"".concat(a,"-checked"),y),ae(n,"".concat(a,"-disabled"),l),n));return p.createElement("button",Re({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:T,ref:t,onKeyDown:_,onClick:w}),c,p.createElement("span",{className:"".concat(a,"-inner")},p.createElement("span",{className:"".concat(a,"-inner-checked")},u),p.createElement("span",{className:"".concat(a,"-inner-unchecked")},d)))});T2e.displayName="Switch";const Wlt=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:i,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=de(l(s).add(l(r).mul(2)).equal()),d=de(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:de(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{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}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${de(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},Glt=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}}}},Hlt=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:i,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(i).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${de(o(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Zlt=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:i,handleSize:o,calc:s}=e,l=`${t}-inner`,c=de(s(o).add(s(r).mul(2)).equal()),u=de(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-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},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},Klt=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},zr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:de(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}}),Ul(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"}})}},Jlt=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,i=t*n,o=r/2,s=2,l=i-s*2,c=o-s*2;return{trackHeight:i,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:a,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Sr("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},ect=Er("Switch",e=>{const t=nr(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[Klt(t),Zlt(t),Hlt(t),Glt(t),Wlt(t)]},Jlt);var tct=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:i,className:o,rootClassName:s,style:l,checked:c,value:u,defaultChecked:d,defaultValue:f,onChange:m}=e,h=tct(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,O]=Ir(!1,{value:c??u,defaultValue:d??f}),{getPrefixCls:v,direction:y,switch:S}=p.useContext(fn),C=p.useContext(Xo),_=(a??C)||i,w=v("switch",n),T=p.createElement("div",{className:`${w}-handle`},i&&p.createElement(mu,{className:`${w}-loading-icon`})),[A,k,I]=ect(w),M=Yi(r),Q=ce(S==null?void 0:S.className,{[`${w}-small`]:M==="small",[`${w}-loading`]:i,[`${w}-rtl`]:y==="rtl"},o,s,k,I),F=Object.assign(Object.assign({},S==null?void 0:S.style),l),L=(...U)=>{O(U[0]),m==null||m.apply(void 0,U)};return A(p.createElement(BE,{component:"Switch",disabled:_},p.createElement(T2e,Object.assign({},h,{checked:g,onChange:L,prefixCls:w,className:Q,style:F,disabled:_,ref:t,loadingIcon:T}))))}),w2e=nct;w2e.__ANT_SWITCH=!0;var Sp={},rx="rc-table-internal-hook";function gX(e){var t=p.createContext(void 0),n=function(a){var i=a.value,o=a.children,s=p.useRef(i);s.current=i;var l=p.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=be(l,1),u=c[0];return tr(function(){Fl.unstable_batchedUpdates(function(){u.listeners.forEach(function(d){d(i)})})},[i]),p.createElement(t.Provider,{value:u},o)};return{Context:t,Provider:n,defaultValue:e}}function $o(e,t){var n=ar(typeof t=="function"?t:function(d){if(t===void 0)return d;if(!Array.isArray(t))return d[t];var f={};return t.forEach(function(m){f[m]=d[m]}),f}),r=p.useContext(e==null?void 0:e.Context),a=r||{},i=a.listeners,o=a.getValue,s=p.useRef();s.current=n(r?o():e==null?void 0:e.defaultValue);var l=p.useState({}),c=be(l,2),u=c[1];return tr(function(){if(!r)return;function d(f){var m=n(f);Bl(s.current,m,!0)||u({})}return i.add(d),function(){i.delete(d)}},[r]),s.current}function rct(){var e=p.createContext(null);function t(){return p.useContext(e)}function n(a,i){var o=fu(a),s=function(c,u){var d=o?{ref:u}:{},f=p.useRef(0),m=p.useRef(c),h=t();return h!==null?p.createElement(a,Re({},c,d)):((!i||i(m.current,c))&&(f.current+=1),m.current=c,p.createElement(e.Provider,{value:f.current},p.createElement(a,Re({},c,d))))};return o?p.forwardRef(s):s}function r(a,i){var o=fu(a),s=function(c,u){var d=o?{ref:u}:{};return t(),p.createElement(a,Re({},c,d))};return o?p.memo(p.forwardRef(s),i):p.memo(s,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var OX=rct(),C2e=OX.makeImmutable,Lb=OX.responseImmutable,act=OX.useImmutableMark,ms=gX(),$2e=p.createContext({renderWithProps:!1}),ict="RC_TABLE_KEY";function oct(e){return e==null?[]:Array.isArray(e)?e:[e]}function Hk(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},i=a.key,o=a.dataIndex,s=i||oct(o).join("-")||ict;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function w9(e){return e!=null}function sct(e){return typeof e=="number"&&!Number.isNaN(e)}function lct(e){return e&&Ut(e)==="object"&&!Array.isArray(e)&&!p.isValidElement(e)}function cct(e,t,n,r,a,i){var o=p.useContext($2e),s=act(),l=dm(function(){if(w9(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Cs(e,c),d=u,f=void 0;if(a){var m=a(u,e,n);lct(m)?(d=m.children,f=m.props,o.renderWithProps=!0):d=m}return[d,f]},[s,e,r,t,a,n],function(c,u){if(i){var d=be(c,2),f=d[1],m=be(u,2),h=m[1];return i(h,f)}return o.renderWithProps?!0:!Bl(c,u,!0)});return l}function uct(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function dct(e,t){return $o(ms,function(n){var r=uct(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var fct=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,i,o=n===!0?{showTitle:!0}:n;return o&&(o.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?i=a.toString():p.isValidElement(a)&&typeof a.props.children=="string"&&(i=a.props.children)),i};function pct(e){var t,n,r,a,i,o,s,l,c=e.component,u=e.children,d=e.ellipsis,f=e.scope,m=e.prefixCls,h=e.className,g=e.align,O=e.record,v=e.render,y=e.dataIndex,S=e.renderIndex,C=e.shouldCellUpdate,_=e.index,w=e.rowType,T=e.colSpan,A=e.rowSpan,k=e.fixLeft,I=e.fixRight,M=e.firstFixLeft,Q=e.lastFixLeft,F=e.firstFixRight,L=e.lastFixRight,U=e.appendNode,R=e.additionalProps,$=R===void 0?{}:R,P=e.isSticky,z="".concat(m,"-cell"),B=$o(ms,["supportSticky","allColumnsFixedLeft","rowHoverable"]),D=B.supportSticky,X=B.allColumnsFixedLeft,Y=B.rowHoverable,q=cct(O,y,S,u,v,C),H=be(q,2),J=H[0],te=H[1],ne={},ie=typeof k=="number"&&D,le=typeof I=="number"&&D;ie&&(ne.position="sticky",ne.left=k),le&&(ne.position="sticky",ne.right=I);var ue=(t=(n=(r=te==null?void 0:te.colSpan)!==null&&r!==void 0?r:$.colSpan)!==null&&n!==void 0?n:T)!==null&&t!==void 0?t:1,oe=(a=(i=(o=te==null?void 0:te.rowSpan)!==null&&o!==void 0?o:$.rowSpan)!==null&&i!==void 0?i:A)!==null&&a!==void 0?a:1,ge=dct(_,oe),ve=be(ge,2),he=ve[0],me=ve[1],xe=ar(function(Ne){var et;O&&me(_,_+oe-1),$==null||(et=$.onMouseEnter)===null||et===void 0||et.call($,Ne)}),we=ar(function(Ne){var et;O&&me(-1,-1),$==null||(et=$.onMouseLeave)===null||et===void 0||et.call($,Ne)});if(ue===0||oe===0)return null;var Qe=(s=$.title)!==null&&s!==void 0?s:fct({rowType:w,ellipsis:d,children:J}),Ie=ce(z,h,(l={},ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(l,"".concat(z,"-fix-left"),ie&&D),"".concat(z,"-fix-left-first"),M&&D),"".concat(z,"-fix-left-last"),Q&&D),"".concat(z,"-fix-left-all"),Q&&X&&D),"".concat(z,"-fix-right"),le&&D),"".concat(z,"-fix-right-first"),F&&D),"".concat(z,"-fix-right-last"),L&&D),"".concat(z,"-ellipsis"),d),"".concat(z,"-with-append"),U),"".concat(z,"-fix-sticky"),(ie||le)&&P&&D),ae(l,"".concat(z,"-row-hover"),!te&&he)),$.className,te==null?void 0:te.className),Ee={};g&&(Ee.textAlign=g);var De=se(se(se(se({},te==null?void 0:te.style),ne),Ee),$.style),Le=J;return Ut(Le)==="object"&&!Array.isArray(Le)&&!p.isValidElement(Le)&&(Le=null),d&&(Q||F)&&(Le=p.createElement("span",{className:"".concat(z,"-content")},Le)),p.createElement(c,Re({},te,$,{className:Ie,style:De,title:Qe,scope:f,onMouseEnter:Y?xe:void 0,onMouseLeave:Y?we:void 0,colSpan:ue!==1?ue:null,rowSpan:oe!==1?oe:null}),U,Le)}const Qb=p.memo(pct);function bX(e,t,n,r,a){var i=n[e]||{},o=n[t]||{},s,l;i.fixed==="left"?s=r.left[a==="rtl"?t:e]:o.fixed==="right"&&(l=r.right[a==="rtl"?e:t]);var c=!1,u=!1,d=!1,f=!1,m=n[t+1],h=n[e-1],g=m&&!m.fixed||h&&!h.fixed||n.every(function(C){return C.fixed==="left"});if(a==="rtl"){if(s!==void 0){var O=h&&h.fixed==="left";f=!O&&g}else if(l!==void 0){var v=m&&m.fixed==="right";d=!v&&g}}else if(s!==void 0){var y=m&&m.fixed==="left";c=!y&&g}else if(l!==void 0){var S=h&&h.fixed==="right";u=!S&&g}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var R2e=p.createContext({});function mct(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,i=a===void 0?1:a,o=e.rowSpan,s=e.align,l=$o(ms,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,d=p.useContext(R2e),f=d.scrollColumnIndex,m=d.stickyOffsets,h=d.flattenColumns,g=n+i-1,O=g+1===f?i+1:i,v=bX(n,n+O-1,h,m,u);return p.createElement(Qb,Re({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:O,rowSpan:o,render:function(){return r}},v))}var hct=["children"];function gct(e){var t=e.children,n=on(e,hct);return p.createElement("tr",n,t)}function Zk(e){var t=e.children;return t}Zk.Row=gct;Zk.Cell=mct;function Oct(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=$o(ms,"prefixCls"),i=r.length-1,o=r[i],s=p.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o!=null&&o.scrollbar?i:null}},[o,r,i,n]);return p.createElement(R2e.Provider,{value:s},p.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const hw=Lb(Oct);var P2e=Zk;function bct(e){return null}function vct(e){return null}function k2e(e,t,n,r,a,i,o){var s=i(t,o);e.push({record:t,indent:n,index:o,rowKey:s});var l=a==null?void 0:a.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c1?M-1:0),F=1;F5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,l=e.record,c=e.prefixCls,u=e.columnsKey,d=e.fixedInfoList,f=e.expandIconColumnIndex,m=e.nestExpandable,h=e.indentSize,g=e.expandIcon,O=e.expanded,v=e.hasNestChildren,y=e.onTriggerExpand,S=e.expandable,C=e.expandedKeys,_=u[n],w=d[n],T;n===(f||0)&&m&&(T=p.createElement(p.Fragment,null,p.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(c,"-row-indent indent-level-").concat(r)}),g({prefixCls:c,expanded:O,expandable:v,record:l,onExpand:y})));var A=((i=t.onCell)===null||i===void 0?void 0:i.call(t,l,a))||{};if(s){var k=A.rowSpan,I=k===void 0?1:k;if(S&&I&&n=1)),style:se(se({},n),S==null?void 0:S.style)}),O.map(function(M,Q){var F=M.render,L=M.dataIndex,U=M.className,R=D2e(h,M,Q,c,a,s,m==null?void 0:m.offset),$=R.key,P=R.fixedInfo,z=R.appendCellNode,B=R.additionalCellProps;return p.createElement(Qb,Re({className:U,ellipsis:M.ellipsis,align:M.align,scope:M.rowScope,component:M.rowScope?f:d,prefixCls:g,key:$,record:r,index:a,renderIndex:i,dataIndex:L,render:F,shouldCellUpdate:M.shouldCellUpdate},P,{appendNode:z,additionalProps:B}))})),k;if(_&&(w.current||C)){var I=y(r,a,c+1,C);k=p.createElement(I2e,{expanded:C,className:ce("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),T),prefixCls:g,component:u,cellComponent:d,colSpan:m?m.colSpan:O.length,stickyOffset:m==null?void 0:m.sticky,isEmpty:!1},I)}return p.createElement(p.Fragment,null,A,k)}const Ect=Lb(_ct);function xct(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,i=p.useRef();return tr(function(){i.current&&n(t,i.current.offsetWidth)},[]),p.createElement(Eo,{data:t},p.createElement("th",{ref:i,className:"".concat(r,"-measure-cell")},p.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function Tct(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,i=p.useRef(null),o=$o(ms,["measureRowRender"]),s=o.measureRowRender,l=p.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:i,tabIndex:-1},p.createElement(Eo.Collection,{onBatchResize:function(u){Tb(i.current)&&u.forEach(function(d){var f=d.data,m=d.size;r(f,m.offsetWidth)})}},n.map(function(c){var u=a.find(function(m){return m.key===c}),d=u==null?void 0:u.title,f=p.isValidElement(d)?p.cloneElement(d,{ref:null}):d;return p.createElement(xct,{prefixCls:t,key:c,columnKey:c,onColumnResize:r,title:f})})));return s?s(l):l}function wct(e){var t=e.data,n=e.measureColumnWidth,r=$o(ms,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=r.prefixCls,i=r.getComponent,o=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,d=r.emptyNode,f=r.expandedRowOffset,m=f===void 0?0:f,h=r.colWidths,g=A2e(t,u,c,l),O=p.useMemo(function(){return g.map(function(k){return k.rowKey})},[g]),v=p.useRef({renderWithProps:!1}),y=p.useMemo(function(){for(var k=s.length-m,I=0,M=0;M=0;c-=1){var u=t[c],d=n&&n[c],f=void 0,m=void 0;if(d&&(f=d[CS],i==="auto"&&(m=d.minWidth)),u||m||f||l){var h=f||{};h.columnType;var g=on(h,Pct);o.unshift(p.createElement("col",Re({key:c,style:{width:u,minWidth:m}},g))),l=!0}}return o.length>0?p.createElement("colgroup",null,o):null}var kct=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function Act(e,t){return p.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:O.ellipsis,align:O.align,component:o,prefixCls:u,key:m[g]},v,{additionalProps:y,rowType:"header"}))}))};function Mct(e){var t=[];function n(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,u=o.filter(Boolean).map(function(d){var f={key:d.key,className:d.className||"",children:d.title,column:d,colStart:c},m=1,h=d.children;return h&&h.length>0&&(m=n(h,c,l+1).reduce(function(g,O){return g+O},0),f.hasSubColumns=!0),"colSpan"in d&&(m=d.colSpan),"rowSpan"in d&&(f.rowSpan=d.rowSpan),f.colSpan=m,f.colEnd=f.colStart+m-1,t[l].push(f),c+=m,m});return u}n(e,0);for(var r=t.length,a=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Lct(e,t,n){return p.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(f){var m=Die(t,f.width);m?r+=m:a+=1});var i=Math.max(t,n),o=Math.max(i-r,a),s=a,l=o/a,c=0,u=e.map(function(f){var m=se({},f),h=Die(t,m.width);if(h)m.width=h;else{var g=Math.floor(l);m.width=s===1?o:g,o-=g,s-=1}return c+=m.width,m});if(c0?se(se({},t),{},{children:Q2e(n)}):t})}function C9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Ut(n)==="object"}).reduce(function(n,r,a){var i=r.fixed,o=i===!0?"left":i,s="".concat(t,"-").concat(a),l=r.children;return l&&l.length>0?[].concat(Ke(n),Ke(C9(l,s).map(function(c){var u;return se(se({},c),{},{fixed:(u=c.fixed)!==null&&u!==void 0?u:o})}))):[].concat(Ke(n),[se(se({key:s},r),{},{fixed:o})])},[])}function Bct(e){return e.map(function(t){var n=t.fixed,r=on(t,zct),a=n;return n==="left"?a="right":n==="right"&&(a="left"),se({fixed:a},r)})}function Fct(e,t){var n=e.prefixCls,r=e.columns,a=e.children,i=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,d=e.rowExpandable,f=e.expandIconColumnIndex,m=e.expandedRowOffset,h=m===void 0?0:m,g=e.direction,O=e.expandRowByClick,v=e.columnWidth,y=e.fixed,S=e.scrollWidth,C=e.clientWidth,_=p.useMemo(function(){var L=r||vX(a)||[];return Q2e(L.slice())},[r,a]),w=p.useMemo(function(){if(i){var L=_.slice();if(!L.includes(Sp)){var U=f||0,R=U===0&&y==="right"?_.length:U;R>=0&&L.splice(R,0,Sp)}var $=L.indexOf(Sp);L=L.filter(function(D,X){return D!==Sp||X===$});var P=_[$],z;y?z=y:z=P?P.fixed:null;var B=ae(ae(ae(ae(ae(ae({},CS,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",z),"className","".concat(n,"-row-expand-icon-cell")),"width",v),"render",function(X,Y,q){var H=l(Y,q),J=o.has(H),te=d?d(Y):!0,ne=u({prefixCls:n,expanded:J,expandable:te,record:Y,onExpand:c});return O?p.createElement("span",{onClick:function(le){return le.stopPropagation()}},ne):ne});return L.map(function(D,X){var Y=D===Sp?B:D;return X=0;U-=1){var R=A[U].fixed;if(R==="left"||R===!0){L=U;break}}if(L>=0)for(var $=0;$<=L;$+=1){var P=A[$].fixed;if(P!=="left"&&P!==!0)return!0}var z=A.findIndex(function(X){var Y=X.fixed;return Y==="right"});if(z>=0)for(var B=z;B=$-s})})}})},F=function(U){y(function(R){return se(se({},R),{},{scrollLeft:d?U/d*f:0})})};return p.useImperativeHandle(n,function(){return{setScrollLeft:F,checkScrollBarVisible:Q}}),p.useEffect(function(){var L=Rp(document.body,"mouseup",k,!1),U=Rp(document.body,"mousemove",M,!1);return Q(),function(){L.remove(),U.remove()}},[m,w]),p.useEffect(function(){if(i.current){for(var L=[],U=LE(i.current);U;)L.push(U),U=U.parentElement;return L.forEach(function(R){return R.addEventListener("scroll",Q,!1)}),window.addEventListener("resize",Q,!1),window.addEventListener("scroll",Q,!1),l.addEventListener("scroll",Q,!1),function(){L.forEach(function(R){return R.removeEventListener("scroll",Q)}),window.removeEventListener("resize",Q),window.removeEventListener("scroll",Q),l.removeEventListener("scroll",Q)}}},[l]),p.useEffect(function(){v.isHiddenScrollBar||y(function(L){var U=i.current;return U?se(se({},L),{},{scrollLeft:U.scrollLeft/U.scrollWidth*U.clientWidth}):L})},[v.isHiddenScrollBar]),d<=f||!m||v.isHiddenScrollBar?null:p.createElement("div",{style:{height:gre(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},p.createElement("div",{onMouseDown:I,ref:h,className:ce("".concat(u,"-sticky-scroll-bar"),ae({},"".concat(u,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))};const Hct=p.forwardRef(Gct);var z2e="rc-table",Zct=[],Kct={};function Jct(){return"No Data"}function eut(e,t){var n=se({rowKey:"key",prefixCls:z2e,emptyText:Jct},e),r=n.prefixCls,a=n.className,i=n.rowClassName,o=n.style,s=n.data,l=n.rowKey,c=n.scroll,u=n.tableLayout,d=n.direction,f=n.title,m=n.footer,h=n.summary,g=n.caption,O=n.id,v=n.showHeader,y=n.components,S=n.emptyText,C=n.onRow,_=n.onHeaderRow,w=n.measureRowRender,T=n.onScroll,A=n.internalHooks,k=n.transformColumns,I=n.internalRefs,M=n.tailor,Q=n.getContainerWidth,F=n.sticky,L=n.rowHoverable,U=L===void 0?!0:L,R=s||Zct,$=!!R.length,P=A===rx,z=p.useCallback(function(Tt,Ht){return Cs(y,Tt)||Ht},[y]),B=p.useMemo(function(){return typeof l=="function"?l:function(Tt){var Ht=Tt&&Tt[l];return Ht}},[l]),D=z(["body"]),X=Vct(),Y=be(X,3),q=Y[0],H=Y[1],J=Y[2],te=Uct(n,R,B),ne=be(te,6),ie=ne[0],le=ne[1],ue=ne[2],oe=ne[3],ge=ne[4],ve=ne[5],he=c==null?void 0:c.x,me=p.useState(0),xe=be(me,2),we=xe[0],Qe=xe[1],Ie=Fct(se(se(se({},n),ie),{},{expandable:!!ie.expandedRowRender,columnTitle:ie.columnTitle,expandedKeys:ue,getRowKey:B,onTriggerExpand:ve,expandIcon:oe,expandIconColumnIndex:ie.expandIconColumnIndex,direction:d,scrollWidth:P&&M&&typeof he=="number"?he:null,clientWidth:we}),P?k:null),Ee=be(Ie,4),De=Ee[0],Le=Ee[1],Ne=Ee[2],et=Ee[3],He=Ne??he,pt=p.useMemo(function(){return{columns:De,flattenColumns:Le}},[De,Le]),lt=p.useRef(),it=p.useRef(),ut=p.useRef(),We=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:lt.current,scrollTo:function(Ht){var Jn;if(ut.current instanceof HTMLElement){var kt=Ht.index,ln=Ht.top,Ln=Ht.key;if(sct(ln)){var Un;(Un=ut.current)===null||Un===void 0||Un.scrollTo({top:ln})}else{var Pr,Wa=Ln??B(R[kt]);(Pr=ut.current.querySelector('[data-row-key="'.concat(Wa,'"]')))===null||Pr===void 0||Pr.scrollIntoView()}}else(Jn=ut.current)!==null&&Jn!==void 0&&Jn.scrollTo&&ut.current.scrollTo(Ht)}}});var Me=p.useRef(),Ge=p.useState(!1),ze=be(Ge,2),qe=ze[0],Pe=ze[1],Ae=p.useState(!1),Oe=be(Ae,2),Te=Oe[0],Ue=Oe[1],rt=p.useState(new Map),tt=be(rt,2),ot=tt[0],St=tt[1],Xe=Hk(Le),je=Xe.map(function(Tt){return ot.get(Tt)}),bt=p.useMemo(function(){return je},[je.join("_")]),xt=Wct(bt,Le,d),vt=c&&w9(c.y),Nt=c&&w9(He)||!!ie.fixed,Mt=Nt&&Le.some(function(Tt){var Ht=Tt.fixed;return Ht}),Ot=p.useRef(),ft=qct(F,r),st=ft.isSticky,Et=ft.offsetHeader,Jt=ft.offsetSummary,en=ft.offsetScroll,Rn=ft.stickyClassName,jt=ft.container,wt=p.useMemo(function(){return h==null?void 0:h(R)},[h,R]),an=(vt||st)&&p.isValidElement(wt)&&wt.type===Zk&&wt.props.fixed,$n,Gn,Xn;vt&&(Gn={overflowY:$?"scroll":"auto",maxHeight:c.y}),Nt&&($n={overflowX:"auto"},vt||(Gn={overflowY:"hidden"}),Xn={width:He===!0?"auto":He,minWidth:"100%"});var gr=p.useCallback(function(Tt,Ht){St(function(Jn){if(Jn.get(Tt)!==Ht){var kt=new Map(Jn);return kt.set(Tt,Ht),kt}return Jn})},[]),Fn=Yct(),Bt=be(Fn,2),Se=Bt[0],Fe=Bt[1];function mt(Tt,Ht){Ht&&(typeof Ht=="function"?Ht(Tt):Ht.scrollLeft!==Tt&&(Ht.scrollLeft=Tt,Ht.scrollLeft!==Tt&&setTimeout(function(){Ht.scrollLeft=Tt},0)))}var yt=ar(function(Tt){var Ht=Tt.currentTarget,Jn=Tt.scrollLeft,kt=d==="rtl",ln=typeof Jn=="number"?Jn:Ht.scrollLeft,Ln=Ht||Kct;if(!Fe()||Fe()===Ln){var Un;Se(Ln),mt(ln,it.current),mt(ln,ut.current),mt(ln,Me.current),mt(ln,(Un=Ot.current)===null||Un===void 0?void 0:Un.setScrollLeft)}var Pr=Ht||it.current;if(Pr){var Wa=P&&M&&typeof He=="number"?He:Pr.scrollWidth,qi=Pr.clientWidth;if(Wa===qi){Pe(!1),Ue(!1);return}kt?(Pe(-ln0)):(Pe(ln>0),Ue(ln1?O-L:0,R=se(se(se({},A),c),{},{flex:"0 0 ".concat(L,"px"),width:"".concat(L,"px"),marginRight:U,pointerEvents:"auto"}),$=p.useMemo(function(){return d?Q<=1:I===0||Q===0||Q>1},[Q,I,d]);$?R.visibility="hidden":d&&(R.height=f==null?void 0:f(Q));var P=$?function(){return null}:m,z={};return(Q===0||I===0)&&(z.rowSpan=1,z.colSpan=1),p.createElement(Qb,Re({className:ce(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:C,record:l,index:i,renderIndex:s,dataIndex:h,render:P,shouldCellUpdate:n.shouldCellUpdate},_,{appendNode:w,additionalProps:se(se({},T),{},{style:R},z)}))}var aut=["data","index","className","rowKey","style","extra","getHeight"],iut=p.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,i=e.rowKey,o=e.style,s=e.extra,l=e.getHeight,c=on(e,aut),u=n.record,d=n.indent,f=n.index,m=$o(ms,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=m.scrollX,g=m.flattenColumns,O=m.prefixCls,v=m.fixColumn,y=m.componentWidth,S=$o(yX,["getComponent"]),C=S.getComponent,_=N2e(u,i,r,d),w=C(["body","row"],"div"),T=C(["body","cell"],"div"),A=_.rowSupportExpand,k=_.expanded,I=_.rowProps,M=_.expandedRowRender,Q=_.expandedRowClassName,F;if(A&&k){var L=M(u,r,d+1,k),U=M2e(Q,u,r,d),R={};v&&(R={style:ae({},"--virtual-width","".concat(y,"px"))});var $="".concat(O,"-expanded-row-cell");F=p.createElement(w,{className:ce("".concat(O,"-expanded-row"),"".concat(O,"-expanded-row-level-").concat(d+1),U)},p.createElement(Qb,{component:T,prefixCls:O,className:ce($,ae({},"".concat($,"-fixed"),v)),additionalProps:R},L))}var P=se(se({},o),{},{width:h});s&&(P.position="absolute",P.pointerEvents="none");var z=p.createElement(w,Re({},I,c,{"data-row-key":i,ref:A?null:t,className:ce(a,"".concat(O,"-row"),I==null?void 0:I.className,ae({},"".concat(O,"-row-extra"),s)),style:se(se({},P),I==null?void 0:I.style)}),g.map(function(B,D){return p.createElement(rut,{key:D,component:T,rowInfo:_,column:B,colIndex:D,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:l})}));return A?p.createElement("div",{ref:t},z,F):z}),Bie=Lb(iut),out=p.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=$o(ms,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=a.flattenColumns,o=a.onColumnResize,s=a.getRowKey,l=a.expandedKeys,c=a.prefixCls,u=a.childrenColumnName,d=a.scrollX,f=a.direction,m=$o(yX),h=m.sticky,g=m.scrollY,O=m.listItemHeight,v=m.getComponent,y=m.onScroll,S=p.useRef(),C=A2e(n,u,l,s),_=p.useMemo(function(){var F=0;return i.map(function(L){var U=L.width,R=L.minWidth,$=L.key,P=Math.max(U||0,R||0);return F+=P,[$,P,F]})},[i]),w=p.useMemo(function(){return _.map(function(F){return F[2]})},[_]);p.useEffect(function(){_.forEach(function(F){var L=be(F,2),U=L[0],R=L[1];o(U,R)})},[_]),p.useImperativeHandle(t,function(){var F,L={scrollTo:function(R){var $;($=S.current)===null||$===void 0||$.scrollTo(R)},nativeElement:(F=S.current)===null||F===void 0?void 0:F.nativeElement};return Object.defineProperty(L,"scrollLeft",{get:function(){var R;return((R=S.current)===null||R===void 0?void 0:R.getScrollInfo().x)||0},set:function(R){var $;($=S.current)===null||$===void 0||$.scrollTo({left:R})}}),Object.defineProperty(L,"scrollTop",{get:function(){var R;return((R=S.current)===null||R===void 0?void 0:R.getScrollInfo().y)||0},set:function(R){var $;($=S.current)===null||$===void 0||$.scrollTo({top:R})}}),L});var T=function(L,U){var R,$=(R=C[U])===null||R===void 0?void 0:R.record,P=L.onCell;if(P){var z,B=P($,U);return(z=B==null?void 0:B.rowSpan)!==null&&z!==void 0?z:1}return 1},A=function(L){var U=L.start,R=L.end,$=L.getSize,P=L.offsetY;if(R<0)return null;for(var z=i.filter(function(ue){return T(ue,U)===0}),B=U,D=function(oe){if(z=z.filter(function(ge){return T(ge,oe)===0}),!z.length)return B=oe,1},X=U;X>=0&&!D(X);X-=1);for(var Y=i.filter(function(ue){return T(ue,R)!==1}),q=R,H=function(oe){if(Y=Y.filter(function(ge){return T(ge,oe)!==1}),!Y.length)return q=Math.max(oe-1,R),1},J=R;J1})&&te.push(oe)},ie=B;ie<=q;ie+=1)ne(ie);var le=te.map(function(ue){var oe=C[ue],ge=s(oe.record,ue),ve=function(xe){var we=ue+xe-1,Qe=s(C[we].record,we),Ie=$(ge,Qe);return Ie.bottom-Ie.top},he=$(ge);return p.createElement(Bie,{key:ue,data:oe,rowKey:ge,index:ue,style:{top:-P+he.top},extra:!0,getHeight:ve})});return le},k=p.useMemo(function(){return{columnsOffset:w}},[w]),I="".concat(c,"-tbody"),M=v(["body","wrapper"]),Q={};return h&&(Q.position="sticky",Q.bottom=0,Ut(h)==="object"&&h.offsetScroll&&(Q.bottom=h.offsetScroll)),p.createElement(F2e.Provider,{value:k},p.createElement(wk,{fullHeight:!1,ref:S,prefixCls:"".concat(I,"-virtual"),styles:{horizontalScrollBar:Q},className:I,height:g,itemHeight:O||24,data:C,itemKey:function(L){return s(L.record)},component:M,scrollWidth:d,direction:f,onVirtualScroll:function(L){var U,R=L.x;r({currentTarget:(U=S.current)===null||U===void 0?void 0:U.nativeElement,scrollLeft:R})},onScroll:y,extraRender:A},function(F,L,U){var R=s(F.record,L);return p.createElement(Bie,{data:F,rowKey:R,index:L,style:U.style})}))}),sut=Lb(out),lut=function(t,n){var r=n.ref,a=n.onScroll;return p.createElement(sut,{ref:r,data:t,onScroll:a})};function cut(e,t){var n=e.data,r=e.columns,a=e.scroll,i=e.sticky,o=e.prefixCls,s=o===void 0?z2e:o,l=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=a||{},m=f.x,h=f.y;typeof m!="number"&&(m=1),typeof h!="number"&&(h=500);var g=ar(function(y,S){return Cs(u,y)||S}),O=ar(d),v=p.useMemo(function(){return{sticky:i,scrollY:h,listItemHeight:c,getComponent:g,onScroll:O}},[i,h,c,g,O]);return p.createElement(yX.Provider,{value:v},p.createElement(zb,Re({},e,{className:ce(l,"".concat(s,"-virtual")),scroll:se(se({},a),{},{x:m}),components:se(se({},u),{},{body:n!=null&&n.length?lut:void 0}),columns:r,internalHooks:rx,tailor:!0,ref:t})))}var uut=p.forwardRef(cut);function U2e(e){return C2e(uut,e)}U2e();const dut=e=>null,fut=e=>null;var SX=p.createContext(null),put=p.createContext({}),mut=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,i=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function Wd(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function _X(e){return e.split("-")}function but(e,t){var n=[],r=Zs(t,e);function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(o){var s=o.key,l=o.children;n.push(s),a(l)})}return a(r.children),n}function vut(e){if(e.parent){var t=_X(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function yut(e){var t=_X(e.pos);return Number(t[t.length-1])===0}function jie(e,t,n,r,a,i,o,s,l,c){var u,d=e.clientX,f=e.clientY,m=e.target.getBoundingClientRect(),h=m.top,g=m.height,O=(c==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-d),v=(O-12)/r,y=l.filter(function(R){var $;return($=s[R])===null||$===void 0||($=$.children)===null||$===void 0?void 0:$.length}),S=Zs(s,n.eventKey);if(f-1.5?i({dragNode:F,dropNode:L,dropPosition:1})?I=1:U=!1:i({dragNode:F,dropNode:L,dropPosition:0})?I=0:i({dragNode:F,dropNode:L,dropPosition:1})?I=1:U=!1:i({dragNode:F,dropNode:L,dropPosition:1})?I=1:U=!1,{dropPosition:I,dropLevelOffset:M,dropTargetKey:S.key,dropTargetPos:S.pos,dragOverNodeKey:k,dropContainerKey:I===0?null:((u=S.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:U}}function Xie(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function h5(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Ut(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Ma(!1,"`checkedKeys` is not an array or an object"),null;return t}function $9(e,t){var n=new Set;function r(a){if(!n.has(a)){var i=Zs(t,a);if(i){n.add(a);var o=i.parent,s=i.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(a){r(a)}),Ke(n)}const Op={},R9="SELECT_ALL",P9="SELECT_INVERT",k9="SELECT_NONE",Yie=[],j2e=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&j2e(e,r[e],n)}),n),Sut=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:i,getTitleCheckboxProps:o,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:h,selections:g,fixed:O,renderCell:v,hideSelectAll:y,checkStrictly:S=!0}=t||{},{prefixCls:C,data:_,pageData:w,getRecordByKey:T,getRowKey:A,expandType:k,childrenColumnName:I,locale:M,getPopupContainer:Q}=e,F=_d(),[L,U]=xXe(oe=>oe),[R,$]=Ir(r||a||Yie,{value:r}),P=p.useRef(new Map),z=p.useCallback(oe=>{if(n){const ge=new Map;oe.forEach(ve=>{let he=T(ve);!he&&P.current.has(ve)&&(he=P.current.get(ve)),ge.set(ve,he)}),P.current=ge}},[T,n]);p.useEffect(()=>{z(R)},[R]);const B=p.useMemo(()=>j2e(I,w),[I,w]),{keyEntities:D}=p.useMemo(()=>{if(S)return{keyEntities:null};let oe=_;if(n){const ge=new Set(B.map((he,me)=>A(he,me))),ve=Array.from(P.current).reduce((he,[me,xe])=>ge.has(me)?he:he.concat(xe),[]);oe=[].concat(Ke(oe),Ke(ve))}return tX(oe,{externalGetKey:A,childrenPropName:I})},[_,A,S,I,n,B]),X=p.useMemo(()=>{const oe=new Map;return B.forEach((ge,ve)=>{const he=A(ge,ve),me=(i?i(ge):null)||{};oe.set(he,me)}),oe},[B,A,i]),Y=p.useCallback(oe=>{const ge=A(oe);let ve;return X.has(ge)?ve=X.get(A(oe)):ve=i?i(oe):void 0,!!(ve!=null&&ve.disabled)},[X,A]),[q,H]=p.useMemo(()=>{if(S)return[R||[],[]];const{checkedKeys:oe,halfCheckedKeys:ge}=d0(R,!0,D,Y);return[oe||[],ge]},[R,S,D,Y]),J=p.useMemo(()=>{const oe=h==="radio"?q.slice(0,1):q;return new Set(oe)},[q,h]),te=p.useMemo(()=>h==="radio"?new Set:new Set(H),[H,h]);p.useEffect(()=>{t||$(Yie)},[!!t]);const ne=p.useCallback((oe,ge)=>{let ve,he;z(oe),n?(ve=oe,he=oe.map(me=>P.current.get(me))):(ve=[],he=[],oe.forEach(me=>{const xe=T(me);xe!==void 0&&(ve.push(me),he.push(xe))})),$(ve),s==null||s(ve,he,{type:ge})},[$,T,s,n]),ie=p.useCallback((oe,ge,ve,he)=>{if(l){const me=ve.map(xe=>T(xe));l(T(oe),ge,me,he)}ne(ve,"single")},[l,T,ne]),le=p.useMemo(()=>!g||y?null:(g===!0?[R9,P9,k9]:g).map(ge=>ge===R9?{key:"all",text:M.selectionAll,onSelect(){ne(_.map((ve,he)=>A(ve,he)).filter(ve=>{const he=X.get(ve);return!(he!=null&&he.disabled)||J.has(ve)}),"all")}}:ge===P9?{key:"invert",text:M.selectInvert,onSelect(){const ve=new Set(J);w.forEach((me,xe)=>{const we=A(me,xe),Qe=X.get(we);Qe!=null&&Qe.disabled||(ve.has(we)?ve.delete(we):ve.add(we))});const he=Array.from(ve);u&&(F.deprecated(!1,"onSelectInvert","onChange"),u(he)),ne(he,"invert")}}:ge===k9?{key:"none",text:M.selectNone,onSelect(){d==null||d(),ne(Array.from(J).filter(ve=>{const he=X.get(ve);return he==null?void 0:he.disabled}),"none")}}:ge).map(ge=>Object.assign(Object.assign({},ge),{onSelect:(...ve)=>{var he,me;(me=ge.onSelect)===null||me===void 0||(he=me).call.apply(he,[ge].concat(ve)),U(null)}})),[g,J,w,A,u,ne]);return[p.useCallback(oe=>{var ge;if(!t)return oe.filter(We=>We!==Op);let ve=Ke(oe);const he=new Set(J),me=B.map(A).filter(We=>!X.get(We).disabled),xe=me.every(We=>he.has(We)),we=me.some(We=>he.has(We)),Qe=()=>{const We=[];xe?me.forEach(Ge=>{he.delete(Ge),We.push(Ge)}):me.forEach(Ge=>{he.has(Ge)||(he.add(Ge),We.push(Ge))});const Me=Array.from(he);c==null||c(!xe,Me.map(Ge=>T(Ge)),We.map(Ge=>T(Ge))),ne(Me,"all"),U(null)};let Ie,Ee;if(h!=="radio"){let We;if(le){const Te={getPopupContainer:Q,items:le.map((Ue,rt)=>{const{key:tt,text:ot,onSelect:St}=Ue;return{key:tt??rt,onClick:()=>{St==null||St(me)},label:ot}})};We=p.createElement("div",{className:`${C}-selection-extra`},p.createElement(ex,{menu:Te,getPopupContainer:Q},p.createElement("span",null,p.createElement($k,null))))}const Me=B.map((Te,Ue)=>{const rt=A(Te,Ue),tt=X.get(rt)||{};return Object.assign({checked:he.has(rt)},tt)}).filter(({disabled:Te})=>Te),Ge=!!Me.length&&Me.length===B.length,ze=Ge&&Me.every(({checked:Te})=>Te),qe=Ge&&Me.some(({checked:Te})=>Te),Pe=(o==null?void 0:o())||{},{onChange:Ae,disabled:Oe}=Pe;Ee=p.createElement(jp,Object.assign({"aria-label":We?"Custom selection":"Select all"},Pe,{checked:Ge?ze:!!B.length&&xe,indeterminate:Ge?!ze&&qe:!xe&&we,onChange:Te=>{Qe(),Ae==null||Ae(Te)},disabled:Oe??(B.length===0||Ge),skipGroup:!0})),Ie=!y&&p.createElement("div",{className:`${C}-selection`},Ee,We)}let De;h==="radio"?De=(We,Me,Ge)=>{const ze=A(Me,Ge),qe=he.has(ze),Pe=X.get(ze);return{node:p.createElement(Jc,Object.assign({},Pe,{checked:qe,onClick:Ae=>{var Oe;Ae.stopPropagation(),(Oe=Pe==null?void 0:Pe.onClick)===null||Oe===void 0||Oe.call(Pe,Ae)},onChange:Ae=>{var Oe;he.has(ze)||ie(ze,!0,[ze],Ae.nativeEvent),(Oe=Pe==null?void 0:Pe.onChange)===null||Oe===void 0||Oe.call(Pe,Ae)}})),checked:qe}}:De=(We,Me,Ge)=>{var ze;const qe=A(Me,Ge),Pe=he.has(qe),Ae=te.has(qe),Oe=X.get(qe);let Te;return k==="nest"?Te=Ae:Te=(ze=Oe==null?void 0:Oe.indeterminate)!==null&&ze!==void 0?ze:Ae,{node:p.createElement(jp,Object.assign({},Oe,{indeterminate:Te,checked:Pe,skipGroup:!0,onClick:Ue=>{var rt;Ue.stopPropagation(),(rt=Oe==null?void 0:Oe.onClick)===null||rt===void 0||rt.call(Oe,Ue)},onChange:Ue=>{var rt;const{nativeEvent:tt}=Ue,{shiftKey:ot}=tt,St=me.indexOf(qe),Xe=q.some(je=>me.includes(je));if(ot&&S&&Xe){const je=L(St,me,he),bt=Array.from(he);f==null||f(!Pe,bt.map(xt=>T(xt)),je.map(xt=>T(xt))),ne(bt,"multiple")}else{const je=q;if(S){const bt=Pe?Mu(je,qe):Wd(je,qe);ie(qe,!Pe,bt,tt)}else{const bt=d0([].concat(Ke(je),[qe]),!0,D,Y),{checkedKeys:xt,halfCheckedKeys:vt}=bt;let Nt=xt;if(Pe){const Mt=new Set(xt);Mt.delete(qe),Nt=d0(Array.from(Mt),{halfCheckedKeys:vt},D,Y).checkedKeys}ie(qe,!Pe,Nt,tt)}}U(Pe?null:St),(rt=Oe==null?void 0:Oe.onChange)===null||rt===void 0||rt.call(Oe,Ue)}})),checked:Pe}};const Le=(We,Me,Ge)=>{const{node:ze,checked:qe}=De(We,Me,Ge);return v?v(qe,Me,Ge,ze):ze};if(!ve.includes(Op))if(ve.findIndex(We=>{var Me;return((Me=We[CS])===null||Me===void 0?void 0:Me.columnType)==="EXPAND_COLUMN"})===0){const[We,...Me]=ve;ve=[We,Op].concat(Ke(Me))}else ve=[Op].concat(Ke(ve));const Ne=ve.indexOf(Op);ve=ve.filter((We,Me)=>We!==Op||Me===Ne);const et=ve[Ne-1],He=ve[Ne+1];let pt=O;pt===void 0&&((He==null?void 0:He.fixed)!==void 0?pt=He.fixed:(et==null?void 0:et.fixed)!==void 0&&(pt=et.fixed)),pt&&et&&((ge=et[CS])===null||ge===void 0?void 0:ge.columnType)==="EXPAND_COLUMN"&&et.fixed===void 0&&(et.fixed=pt);const lt=ce(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:g&&h==="checkbox"}),it=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Ee):t.columnTitle:Ie,ut={fixed:pt,width:m,className:`${C}-selection-column`,title:it(),render:Le,onCell:t.onCell,align:t.align,[CS]:{className:lt}};return ve.map(We=>We===Op?ut:We)},[A,B,t,q,J,te,m,le,k,X,f,ie,Y]),J]};function _ut(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:i,expandable:o}=t,s=`${n}-row-expand-icon`;return p.createElement("button",{type:"button",onClick:l=>{r(a,l),l.stopPropagation()},className:ce(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&i,[`${s}-collapsed`]:o&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function Eut(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let i=r;if(a){const o=getComputedStyle(a),s=Number.parseInt(o.borderLeftWidth,10),l=Number.parseInt(o.borderRightWidth,10);i=r-s-l}return i}}const Yp=(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 Bb(e,t){return t?`${t}-${e}`:`${e}`}const Kk=(e,t)=>typeof e=="function"?e(t):e,xut=(e,t)=>{const n=Kk(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var Tut={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"},wut=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Tut}))},Cut=p.forwardRef(wut),$ut=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*a;break;case 1:i.bottom=0,i.left=-r*a;break;case 0:i.bottom=0,i.left=a;break}return Z.createElement("div",{style:i})};function X2e(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Rut(e,t){var n=p.useState(!1),r=be(n,2),a=r[0],i=r[1];tr(function(){if(a)return e(),function(){t()}},[a]),tr(function(){return i(!0),function(){i(!1)}},[])}var Put=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],kut=p.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,i=e.motionNodes,o=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,d=on(e,Put),f=p.useState(!0),m=be(f,2),h=m[0],g=m[1],O=p.useContext(SX),v=O.prefixCls,y=i&&o!=="hide";tr(function(){i&&y!==h&&g(y)},[i]);var S=function(){i&&s()},C=p.useRef(!1),_=function(){i&&!C.current&&(C.current=!0,l())};Rut(S,_);var w=function(A){y===A&&_()};return i?p.createElement(ao,Re({ref:t,visible:h},a,{motionAppear:o==="show",onVisibleChanged:w}),function(T,A){var k=T.className,I=T.style;return p.createElement("div",{ref:A,className:ce("".concat(v,"-treenode-motion"),k),style:I},i.map(function(M){var Q=Object.assign({},(X2e(M.data),M.data)),F=M.title,L=M.key,U=M.isStart,R=M.isEnd;delete Q.children;var $=wS(L,u);return p.createElement(S_,Re({},Q,$,{title:F,active:c,data:M.data,key:L,isStart:U,isEnd:R}))}))}):p.createElement(S_,Re({domRef:t,className:n,style:r},d,{active:c}))});function Aut(){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(i,o){var s=new Map;i.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n ").concat(t);return t}var Dut=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,i=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,f=e.dragging,m=e.dragOverNodeKey,h=e.dropPosition,g=e.motion,O=e.height,v=e.itemHeight,y=e.virtual,S=e.scrollWidth,C=e.focusable,_=e.activeItem,w=e.focused,T=e.tabIndex,A=e.onKeyDown,k=e.onFocus,I=e.onBlur,M=e.onActiveChange,Q=e.onListChangeStart,F=e.onListChangeEnd,L=on(e,Nut),U=p.useRef(null),R=p.useRef(null);p.useImperativeHandle(t,function(){return{scrollTo:function(De){U.current.scrollTo(De)},getIndentWidth:function(){return R.current.offsetWidth}}});var $=p.useState(a),P=be($,2),z=P[0],B=P[1],D=p.useState(r),X=be(D,2),Y=X[0],q=X[1],H=p.useState(r),J=be(H,2),te=J[0],ne=J[1],ie=p.useState([]),le=be(ie,2),ue=le[0],oe=le[1],ge=p.useState(null),ve=be(ge,2),he=ve[0],me=ve[1],xe=p.useRef(r);xe.current=r;function we(){var Ee=xe.current;q(Ee),ne(Ee),oe([]),me(null),F()}tr(function(){B(a);var Ee=Aut(z,a);if(Ee.key!==null)if(Ee.add){var De=Y.findIndex(function(lt){var it=lt.key;return it===Ee.key}),Le=Gie(Vie(Y,r,Ee.key),y,O,v),Ne=Y.slice();Ne.splice(De+1,0,Wie),ne(Ne),oe(Le),me("show")}else{var et=r.findIndex(function(lt){var it=lt.key;return it===Ee.key}),He=Gie(Vie(r,Y,Ee.key),y,O,v),pt=r.slice();pt.splice(et+1,0,Wie),ne(pt),oe(He),me("hide")}else Y!==r&&(q(r),ne(r))},[a,r]),p.useEffect(function(){f||we()},[f]);var Qe=g?te:r,Ie={expandedKeys:a,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:m,dropPosition:h,keyEntities:u};return p.createElement(p.Fragment,null,w&&_&&p.createElement("span",{style:qie,"aria-live":"assertive"},Mut(_)),p.createElement("div",null,p.createElement("input",{style:qie,disabled:C===!1||d,tabIndex:C!==!1?T:null,onKeyDown:A,onFocus:k,onBlur:I,value:"",onChange:Iut,"aria-label":"for screen reader"})),p.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},p.createElement("div",{className:"".concat(n,"-indent")},p.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),p.createElement(wk,Re({},L,{data:Qe,itemKey:Hie,height:O,fullHeight:!1,virtual:y,itemHeight:v,scrollWidth:S,prefixCls:"".concat(n,"-list"),ref:U,role:"tree",onVisibleChange:function(De){De.every(function(Le){return Hie(Le)!==Yh})&&we()}}),function(Ee){var De=Ee.pos,Le=Object.assign({},(X2e(Ee.data),Ee.data)),Ne=Ee.title,et=Ee.key,He=Ee.isStart,pt=Ee.isEnd,lt=KE(et,De);delete Le.key,delete Le.children;var it=wS(lt,Ie);return p.createElement(kut,Re({},Le,it,{title:Ne,active:!!_&&et===_.key,pos:De,data:Ee.data,isStart:He,isEnd:pt,motion:g,motionNodes:et===Yh?ue:null,motionType:he,onMotionStart:Q,onMotionEnd:we,treeNodeRequiredProps:Ie,onMouseMove:function(){M(null)}}))}))}),Lut=10,EX=(function(e){dl(n,e);var t=Wl(n);function n(){var r;Sa(this,n);for(var a=arguments.length,i=new Array(a),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,d=r.state,f=d.dragChildrenKeys,m=d.dropPosition,h=d.dropTargetKey,g=d.dropTargetPos,O=d.dropAllowed;if(O){var v=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var y=se(se({},wS(h,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===h,data:Zs(r.state.keyEntities,h).node}),S=f.includes(h);Ma(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=_X(g),_={event:s,node:Qi(y),dragNode:r.dragNodeProps?Qi(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(f),dropToGap:m!==0,dropPosition:m+Number(C[C.length-1])};u||v==null||v(_),r.dragNodeProps=null}}}),ae(Yt(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),ae(Yt(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,d=c.flattenNodes,f=l.expanded,m=l.key,h=l.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var g=d.filter(function(v){return v.key===m})[0],O=Qi(se(se({},wS(m,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(f?Mu(u,m):Wd(u,m)),r.onNodeExpand(s,O)}}),ae(Yt(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,d=c.expandAction;d==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ae(Yt(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,d=c.expandAction;d==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ae(Yt(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,d=u.keyEntities,f=u.fieldNames,m=r.props,h=m.onSelect,g=m.multiple,O=l.selected,v=l[f.key],y=!O;y?g?c=Wd(c,v):c=[v]:c=Mu(c,v);var S=c.map(function(C){var _=Zs(d,C);return _?_.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),h==null||h(c,{event:"select",selected:y,node:l,selectedNodes:S,nativeEvent:s.nativeEvent})}),ae(Yt(r),"onNodeCheck",function(s,l,c){var u=r.state,d=u.keyEntities,f=u.checkedKeys,m=u.halfCheckedKeys,h=r.props,g=h.checkStrictly,O=h.onCheck,v=l.key,y,S={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var C=c?Wd(f,v):Mu(f,v),_=Mu(m,v);y={checked:C,halfChecked:_},S.checkedNodes=C.map(function(M){return Zs(d,M)}).filter(Boolean).map(function(M){return M.node}),r.setUncontrolledState({checkedKeys:C})}else{var w=d0([].concat(Ke(f),[v]),!0,d),T=w.checkedKeys,A=w.halfCheckedKeys;if(!c){var k=new Set(T);k.delete(v);var I=d0(Array.from(k),{halfCheckedKeys:A},d);T=I.checkedKeys,A=I.halfCheckedKeys}y=T,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=A,T.forEach(function(M){var Q=Zs(d,M);if(Q){var F=Q.node,L=Q.pos;S.checkedNodes.push(F),S.checkedNodesPositions.push({node:F,pos:L})}}),r.setUncontrolledState({checkedKeys:T},!1,{halfCheckedKeys:A})}O==null||O(y,S)}),ae(Yt(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,d=Zs(u,c);if(!(d!=null&&(l=d.children)!==null&&l!==void 0&&l.length)){var f=new Promise(function(m,h){r.setState(function(g){var O=g.loadedKeys,v=O===void 0?[]:O,y=g.loadingKeys,S=y===void 0?[]:y,C=r.props,_=C.loadData,w=C.onLoad;if(!_||v.includes(c)||S.includes(c))return null;var T=_(s);return T.then(function(){var A=r.state.loadedKeys,k=Wd(A,c);w==null||w(k,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:k}),r.setState(function(I){return{loadingKeys:Mu(I.loadingKeys,c)}}),m()}).catch(function(A){if(r.setState(function(I){return{loadingKeys:Mu(I.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=Lut){var k=r.state.loadedKeys;Ma(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Wd(k,c)}),m()}h(A)}),{loadingKeys:Wd(S,c)}})});return f.catch(function(){}),f}}),ae(Yt(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),ae(Yt(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),ae(Yt(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ae(Yt(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,d=!0,f={};Object.keys(s).forEach(function(m){if(r.props.hasOwnProperty(m)){d=!1;return}u=!0,f[m]=s[m]}),u&&(!l||d)&&r.setState(se(se({},f),c))}}),ae(Yt(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return _a(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,i=a.activeKey,o=a.itemScrollOffset,s=o===void 0?0:o;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,i=a.focused,o=a.flattenNodes,s=a.keyEntities,l=a.draggingNodeKey,c=a.activeKey,u=a.dropLevelOffset,d=a.dropContainerKey,f=a.dropTargetKey,m=a.dropPosition,h=a.dragOverNodeKey,g=a.indent,O=this.props,v=O.prefixCls,y=O.className,S=O.style,C=O.showLine,_=O.focusable,w=O.tabIndex,T=w===void 0?0:w,A=O.selectable,k=O.showIcon,I=O.icon,M=O.switcherIcon,Q=O.draggable,F=O.checkable,L=O.checkStrictly,U=O.disabled,R=O.motion,$=O.loadData,P=O.filterTreeNode,z=O.height,B=O.itemHeight,D=O.scrollWidth,X=O.virtual,Y=O.titleRender,q=O.dropIndicatorRender,H=O.onContextMenu,J=O.onScroll,te=O.direction,ne=O.rootClassName,ie=O.rootStyle,le=bi(this.props,{aria:!0,data:!0}),ue;Q&&(Ut(Q)==="object"?ue=Q:typeof Q=="function"?ue={nodeDraggable:Q}:ue={});var oe={prefixCls:v,selectable:A,showIcon:k,icon:I,switcherIcon:M,draggable:ue,draggingNodeKey:l,checkable:F,checkStrictly:L,disabled:U,keyEntities:s,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:m,dragOverNodeKey:h,indent:g,direction:te,dropIndicatorRender:q,loadData:$,filterTreeNode:P,titleRender:Y,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 p.createElement(SX.Provider,{value:oe},p.createElement("div",{className:ce(v,y,ne,ae(ae(ae({},"".concat(v,"-show-line"),C),"".concat(v,"-focused"),i),"".concat(v,"-active-focused"),c!==null)),style:ie},p.createElement(Dut,Re({ref:this.listRef,prefixCls:v,style:S,data:o,disabled:U,selectable:A,checkable:!!F,motion:R,dragging:l!==null,height:z,itemHeight:B,virtual:X,focusable:_,focused:i,tabIndex:T,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:J,scrollWidth:D},this.getTreeNodeRequiredProps(),le))))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,s={prevProps:a};function l(T){return!o&&a.hasOwnProperty(T)||o&&o[T]!==a[T]}var c,u=i.fieldNames;if(l("fieldNames")&&(u=V0(a.fieldNames),s.fieldNames=u),l("treeData")?c=a.treeData:l("children")&&(Ma(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=TCe(a.children)),c){s.treeData=c;var d=tX(c,{fieldNames:u});s.keyEntities=se(ae({},Yh,Y2e),d.keyEntities)}var f=s.keyEntities||i.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!o&&a.defaultExpandParent?$9(a.expandedKeys,f):a.expandedKeys;else if(!o&&a.defaultExpandAll){var m=se({},f);delete m[Yh];var h=[];Object.keys(m).forEach(function(T){var A=m[T];A.children&&A.children.length&&h.push(A.key)}),s.expandedKeys=h}else!o&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?$9(a.defaultExpandedKeys,f):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=s5(c||i.treeData,s.expandedKeys||i.expandedKeys,u);s.flattenNodes=g}if(a.selectable&&(l("selectedKeys")?s.selectedKeys=Xie(a.selectedKeys,a):!o&&a.defaultSelectedKeys&&(s.selectedKeys=Xie(a.defaultSelectedKeys,a))),a.checkable){var O;if(l("checkedKeys")?O=h5(a.checkedKeys)||{}:!o&&a.defaultCheckedKeys?O=h5(a.defaultCheckedKeys)||{}:c&&(O=h5(a.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),O){var v=O,y=v.checkedKeys,S=y===void 0?[]:y,C=v.halfCheckedKeys,_=C===void 0?[]:C;if(!a.checkStrictly){var w=d0(S,!0,f);S=w.checkedKeys,_=w.halfCheckedKeys}s.checkedKeys=S,s.halfCheckedKeys=_}}return l("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),n})(p.Component);ae(EX,"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:$ut,allowDrop:function(){return!0},expandAction:!1});ae(EX,"TreeNode",S_);var Qut={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"},zut=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Qut}))},V2e=p.forwardRef(zut),But={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"},Fut=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:But}))},Uut=p.forwardRef(Fut),jut={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"},Xut=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:jut}))},Yut=p.forwardRef(Xut),Vut={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"},qut=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Vut}))},Wut=p.forwardRef(qut);const Gut=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:i,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:i},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),Hut=new kr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Zut=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Kut=(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:`${de(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Jut=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:i,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},zr(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)`]:wc(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:Hut,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:de(i),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:u},[`${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:i,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Zut(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${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(i).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},Kut(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,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(i).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:`${de(t.calc(i).div(2).equal())} !important`}})}},edt=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=nr(t,{treeCls:r,treeNodeCls:a,treeNodePadding:i});return[Jut(e,o),n&&Gut(o)].filter(Boolean)},tdt=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}},ndt=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},tdt(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},rdt=Er("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:CCe(`${t}-checkbox`,e)},edt(t,e),uk(e)],ndt),Zie=4;function adt(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:i="ltr"}=e,o=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",l={[o]:-n*a+Zie,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=a+Zie;break}return Z.createElement("div",{style:l,className:`${r}-drop-indicator`})}var idt={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"},odt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:idt}))},sdt=p.forwardRef(odt),ldt={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"},cdt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:ldt}))},udt=p.forwardRef(cdt),ddt={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"},fdt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:ddt}))},pdt=p.forwardRef(fdt);const mdt=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:i,showLine:o,switcherLoadingIcon:s}=e,{isLeaf:l,expanded:c,loading:u}=i;if(u)return p.isValidElement(s)?s:p.createElement(mu,{className:`${r}-switcher-loading-icon`});let d;if(o&&typeof o=="object"&&(d=o.showLeafIcon),l){if(!o)return null;if(typeof d!="boolean"&&d){const h=typeof d=="function"?d(i):d,g=`${r}-switcher-line-custom-icon`;return p.isValidElement(h)?wo(h,{className:ce((t=h.props)===null||t===void 0?void 0:t.className,g)}):h}return d?p.createElement(V2e,{className:`${r}-switcher-line-icon`}):p.createElement("span",{className:`${r}-switcher-leaf-line`})}const f=`${r}-switcher-icon`,m=typeof a=="function"?a(i):a;return p.isValidElement(m)?wo(m,{className:ce((n=m.props)===null||n===void 0?void 0:n.className,f)}):m!==void 0?m:o?c?p.createElement(udt,{className:`${r}-switcher-line-icon`}):p.createElement(pdt,{className:`${r}-switcher-line-icon`}):p.createElement(sdt,{className:f})},q2e=Z.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:i,tree:o}=Z.useContext(fn),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:d,switcherLoadingIcon:f,blockNode:m=!1,children:h,checkable:g=!1,selectable:O=!0,draggable:v,disabled:y,motion:S,style:C}=e,_=r("tree",s),w=r(),T=Z.useContext(Xo),A=y??T,k=S??Object.assign(Object.assign({},p_(w)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:g,selectable:O,showIcon:c,motion:k,blockNode:m,disabled:A,showLine:!!u,dropIndicatorRender:adt}),[M,Q,F]=rdt(_),[,L]=uo(),U=L.paddingXS/2+(((n=L.Tree)===null||n===void 0?void 0:n.titleHeight)||L.controlHeightSM),R=Z.useMemo(()=>{if(!v)return!1;let P={};switch(typeof v){case"function":P.nodeDraggable=v;break;case"object":P=Object.assign({},v);break}return P.icon!==!1&&(P.icon=P.icon||Z.createElement(Wut,null)),P},[v]),$=P=>Z.createElement(mdt,{prefixCls:_,switcherIcon:d,switcherLoadingIcon:f,treeNodeProps:P,showLine:u});return M(Z.createElement(EX,Object.assign({itemHeight:U,ref:t,virtual:i},I,{style:Object.assign(Object.assign({},o==null?void 0:o.style),C),prefixCls:_,className:ce({[`${_}-icon-hide`]:!c,[`${_}-block-node`]:m,[`${_}-unselectable`]:!O,[`${_}-rtl`]:a==="rtl",[`${_}-disabled`]:A},o==null?void 0:o.className,l,Q,F),direction:a,checkable:g&&Z.createElement("span",{className:`${_}-checkbox-inner`}),selectable:O,switcherIcon:$,draggable:R}),h))}),Kie=0,g5=1,Jie=2;function xX(e,t,n){const{key:r,children:a}=n;function i(o){const s=o[r],l=o[a];t(s,o)!==!1&&xX(l||[],t,n)}e.forEach(i)}function hdt({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const i=[];let o=Kie;if(n&&n===r)return[n];if(!n||!r)return[];function s(l){return l===n||l===r}return xX(e,l=>{if(o===Jie)return!1;if(s(l)){if(i.push(l),o===Kie)o=g5;else if(o===g5)return o=Jie,!1}else o===g5&&i.push(l);return t.includes(l)},V0(a)),i}function O5(e,t,n){const r=Ke(t),a=[];return xX(e,(i,o)=>{const s=r.indexOf(i);return s!==-1&&(a.push(o),r.splice(s,1)),!!r.length},V0(n)),a}var eoe=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,i=eoe(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=p.useRef(null),s=p.useRef(null),l=()=>{const{keyEntities:A}=tX(toe(i),{fieldNames:i.fieldNames});let k;return n?k=Object.keys(A):r?k=$9(i.expandedKeys||a||[],A):k=i.expandedKeys||a||[],k},[c,u]=p.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[d,f]=p.useState(()=>l());p.useEffect(()=>{"selectedKeys"in i&&u(i.selectedKeys)},[i.selectedKeys]),p.useEffect(()=>{"expandedKeys"in i&&f(i.expandedKeys)},[i.expandedKeys]);const m=(A,k)=>{var I;return"expandedKeys"in i||f(A),(I=i.onExpand)===null||I===void 0?void 0:I.call(i,A,k)},h=(A,k)=>{var I;const{multiple:M,fieldNames:Q}=i,{node:F,nativeEvent:L}=k,{key:U=""}=F,R=toe(i),$=Object.assign(Object.assign({},k),{selected:!0}),P=(L==null?void 0:L.ctrlKey)||(L==null?void 0:L.metaKey),z=L==null?void 0:L.shiftKey;let B;M&&P?(B=A,o.current=U,s.current=B,$.selectedNodes=O5(R,B,Q)):M&&z?(B=Array.from(new Set([].concat(Ke(s.current||[]),Ke(hdt({treeData:R,expandedKeys:d,startKey:U,endKey:o.current,fieldNames:Q}))))),$.selectedNodes=O5(R,B,Q)):(B=[U],o.current=U,s.current=B,$.selectedNodes=O5(R,B,Q)),(I=i.onSelect)===null||I===void 0||I.call(i,B,$),"selectedKeys"in i||u(B)},{getPrefixCls:g,direction:O}=p.useContext(fn),{prefixCls:v,className:y,showIcon:S=!0,expandAction:C="click"}=i,_=eoe(i,["prefixCls","className","showIcon","expandAction"]),w=g("tree",v),T=ce(`${w}-directory`,{[`${w}-directory-rtl`]:O==="rtl"},y);return p.createElement(q2e,Object.assign({icon:gdt,ref:t,blockNode:!0},_,{showIcon:S,expandAction:C,prefixCls:w,className:T,expandedKeys:d,selectedKeys:c,onSelect:h,onExpand:m}))},bdt=p.forwardRef(Odt),TX=q2e;TX.DirectoryTree=bdt;TX.TreeNode=S_;const noe=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:i}=e;return n?p.createElement("div",{className:`${r}-filter-dropdown-search`},p.createElement(JE,{prefix:p.createElement(Rj,null),placeholder:a.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},vdt=e=>{const{keyCode:t}=e;t===Vt.ENTER&&e.stopPropagation()},ydt=p.forwardRef((e,t)=>p.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:vdt,ref:t},e.children));function f0(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(Ke(t),Ke(f0(r))))}),t}function Sdt(e){return e.some(({children:t})=>t)}function W2e(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function G2e({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:i}){return e.map((o,s)=>{const l=String(o.value);if(o.children)return{key:l||s,label:o.text,popupClassName:`${t}-dropdown-submenu`,children:G2e({filters:o.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:i})};const c=r?jp:Jc,u={key:o.value!==void 0?l:s,label:p.createElement(p.Fragment,null,p.createElement(c,{checked:n.includes(l)}),p.createElement("span",null,o.text))};return a.trim()?typeof i=="function"?i(a,o)?u:null:W2e(a,o.text)?u:null:u})}function b5(e){return e||[]}const _dt=e=>{var t,n,r,a;const{tablePrefixCls:i,prefixCls:o,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:d,filterMode:f="menu",filterSearch:m=!1,filterState:h,triggerFilter:g,locale:O,children:v,getPopupContainer:y,rootClassName:S}=e,{filterResetToDefaultFilteredValue:C,defaultFilteredValue:_,filterDropdownProps:w={},filterDropdownOpen:T,filterDropdownVisible:A,onFilterDropdownVisibleChange:k,onFilterDropdownOpenChange:I}=s,[M,Q]=p.useState(!1),F=!!(h&&(!((t=h.filteredKeys)===null||t===void 0)&&t.length||h.forceFiltered)),L=Ee=>{var De;Q(Ee),(De=w.onOpenChange)===null||De===void 0||De.call(w,Ee),I==null||I(Ee),k==null||k(Ee)},U=(a=(r=(n=w.open)!==null&&n!==void 0?n:T)!==null&&r!==void 0?r:A)!==null&&a!==void 0?a:M,R=h==null?void 0:h.filteredKeys,[$,P]=$Xe(b5(R)),z=({selectedKeys:Ee})=>{P(Ee)},B=(Ee,{node:De,checked:Le})=>{z(d?{selectedKeys:Ee}:{selectedKeys:Le&&De.key?[De.key]:[]})};p.useEffect(()=>{M&&z({selectedKeys:b5(R)})},[R]);const[D,X]=p.useState([]),Y=Ee=>{X(Ee)},[q,H]=p.useState(""),J=Ee=>{const{value:De}=Ee.target;H(De)};p.useEffect(()=>{M||H("")},[M]);const te=Ee=>{const De=Ee!=null&&Ee.length?Ee:null;if(De===null&&(!h||!h.filteredKeys)||Bl(De,h==null?void 0:h.filteredKeys,!0))return null;g({column:s,key:c,filteredKeys:De})},ne=()=>{L(!1),te($())},ie=({confirm:Ee,closeDropdown:De}={confirm:!1,closeDropdown:!1})=>{Ee&&te([]),De&&L(!1),H(""),P(C?(_||[]).map(Le=>String(Le)):[])},le=({closeDropdown:Ee}={closeDropdown:!0})=>{Ee&&L(!1),te($())},ue=(Ee,De)=>{De.source==="trigger"&&(Ee&&R!==void 0&&P(b5(R)),L(Ee),!Ee&&!s.filterDropdown&&u&&ne())},oe=ce({[`${l}-menu-without-submenu`]:!Sdt(s.filters||[])}),ge=Ee=>{if(Ee.target.checked){const De=f0(s==null?void 0:s.filters).map(Le=>String(Le));P(De)}else P([])},ve=({filters:Ee})=>(Ee||[]).map((De,Le)=>{const Ne=String(De.value),et={title:De.text,key:De.value!==void 0?Ne:String(Le)};return De.children&&(et.children=ve({filters:De.children})),et}),he=Ee=>{var De;return Object.assign(Object.assign({},Ee),{text:Ee.title,value:Ee.key,children:((De=Ee.children)===null||De===void 0?void 0:De.map(Le=>he(Le)))||[]})};let me;const{direction:xe,renderEmpty:we}=p.useContext(fn);if(typeof s.filterDropdown=="function")me=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:Ee=>z({selectedKeys:Ee}),selectedKeys:$(),confirm:le,clearFilters:ie,filters:s.filters,visible:U,close:()=>{L(!1)}});else if(s.filterDropdown)me=s.filterDropdown;else{const Ee=$()||[],De=()=>{var Ne,et;const He=(Ne=we==null?void 0:we("Table.filter"))!==null&&Ne!==void 0?Ne:p.createElement(of,{image:of.PRESENTED_IMAGE_SIMPLE,description:O.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return He;if(f==="tree")return p.createElement(p.Fragment,null,p.createElement(noe,{filterSearch:m,value:q,onChange:J,tablePrefixCls:i,locale:O}),p.createElement("div",{className:`${i}-filter-dropdown-tree`},d?p.createElement(jp,{checked:Ee.length===f0(s.filters).length,indeterminate:Ee.length>0&&Ee.lengthtypeof m=="function"?m(q,he(it)):W2e(q,it.title):void 0})));const pt=G2e({filters:s.filters||[],filterSearch:m,prefixCls:o,filteredKeys:$(),filterMultiple:d,searchValue:q}),lt=pt.every(it=>it===null);return p.createElement(p.Fragment,null,p.createElement(noe,{filterSearch:m,value:q,onChange:J,tablePrefixCls:i,locale:O}),lt?He:p.createElement(Og,{selectable:!0,multiple:d,prefixCls:`${l}-menu`,className:oe,onSelect:z,onDeselect:z,selectedKeys:Ee,getPopupContainer:y,openKeys:D,onOpenChange:Y,items:pt}))},Le=()=>C?Bl((_||[]).map(Ne=>String(Ne)),Ee,!0):Ee.length===0;me=p.createElement(p.Fragment,null,De(),p.createElement("div",{className:`${o}-dropdown-btns`},p.createElement(Ur,{type:"link",size:"small",disabled:Le(),onClick:()=>ie()},O.filterReset),p.createElement(Ur,{type:"primary",size:"small",onClick:ne},O.filterConfirm)))}s.filterDropdown&&(me=p.createElement(_we,{selectable:void 0},me)),me=p.createElement(ydt,{className:`${o}-dropdown`},me);const Ie=C$({trigger:["click"],placement:xe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let Ee;return typeof s.filterIcon=="function"?Ee=s.filterIcon(F):s.filterIcon?Ee=s.filterIcon:Ee=p.createElement(Cut,null),p.createElement("span",{role:"button",tabIndex:-1,className:ce(`${o}-trigger`,{active:F}),onClick:De=>{De.stopPropagation()}},Ee)})(),getPopupContainer:y},Object.assign(Object.assign({},w),{rootClassName:ce(S,w.rootClassName),open:U,onOpenChange:ue,popupRender:()=>typeof(w==null?void 0:w.dropdownRender)=="function"?w.dropdownRender(me):me}));return p.createElement("div",{className:`${o}-column`},p.createElement("span",{className:`${i}-column-title`},v),p.createElement(ex,Object.assign({},Ie)))},N9=(e,t,n)=>{let r=[];return(e||[]).forEach((a,i)=>{var o;const s=Bb(i,n),l=a.filterDropdown!==void 0;if(a.filters||l||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;l||(c=(o=c==null?void 0:c.map(String))!==null&&o!==void 0?o:c),r.push({column:a,key:Yp(a,s),filteredKeys:c,forceFiltered:a.filtered})}else r.push({column:a,key:Yp(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Ke(r),Ke(N9(a.children,t,s))))}),r};function H2e(e,t,n,r,a,i,o,s,l){return n.map((c,u)=>{const d=Bb(u,s),{filterOnClose:f=!0,filterMultiple:m=!0,filterMode:h,filterSearch:g}=c;let O=c;if(O.filters||O.filterDropdown){const v=Yp(O,d),y=r.find(({key:S})=>v===S);O=Object.assign(Object.assign({},O),{title:S=>p.createElement(_dt,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:O,columnKey:v,filterState:y,filterOnClose:f,filterMultiple:m,filterMode:h,filterSearch:g,triggerFilter:i,locale:a,getPopupContainer:o,rootClassName:l},Kk(c.title,S))})}return"children"in O&&(O=Object.assign(Object.assign({},O),{children:H2e(e,t,O.children,r,a,i,o,d,l)})),O})}const roe=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:a})=>{const i=n,{filters:o,filterDropdown:s}=a;if(s)t[i]=r||null;else if(Array.isArray(r)){const l=f0(o);t[i]=l.filter(c=>r.includes(String(c)))}else t[i]=null}),t},I9=(e,t,n)=>t.reduce((a,i)=>{const{column:{onFilter:o,filters:s},filteredKeys:l}=i;return o&&l&&l.length?a.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const d=f0(s),f=d.findIndex(h=>String(h)===String(u)),m=f!==-1?d[f]:u;return c[n]&&(c[n]=I9(c[n],t,n)),o(m,c)})):a},e),Z2e=e=>e.flatMap(t=>"children"in t?[t].concat(Ke(Z2e(t.children||[]))):[t]),Edt=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:i,locale:o,rootClassName:s}=e;_d();const l=p.useMemo(()=>Z2e(r||[]),[r]),[c,u]=p.useState(()=>N9(l,!0)),d=p.useMemo(()=>{const g=N9(l,!1);if(g.length===0)return g;let O=!0;if(g.forEach(({filteredKeys:v})=>{v!==void 0&&(O=!1)}),O){const v=(l||[]).map((y,S)=>Yp(y,Bb(S)));return c.filter(({key:y})=>v.includes(y)).map(y=>{const S=l[v.indexOf(y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),S),forceFiltered:S.filtered})})}return g},[l,c]),f=p.useMemo(()=>roe(d),[d]),m=g=>{const O=d.filter(({key:v})=>v!==g.key);O.push(g),u(O),a(roe(O),O)};return[g=>H2e(t,n,g,d,o,m,i,void 0,s),d,f]},xdt=(e,t,n)=>{const r=p.useRef({});function a(i){var o;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,d)=>{const f=n(u,d);s.set(f,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const s=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(o=r.current.kvMap)===null||o===void 0?void 0:o.get(i)}return[a]};var Tdt=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 i=e[a];typeof i!="function"&&(n[a]=i)}),n}function Cdt(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,i=Tdt(r,["total"]),[o,s]=p.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:K2e})),l=C$(o,i,{total:a>0?a:e}),c=Math.ceil((a||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(f,m)=>{s({current:f??1,pageSize:m||l.pageSize})},d=(f,m)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,f,m)),u(f,m),t(f,m||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:d}),u]}var $dt={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"},Rdt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:$dt}))},Pdt=p.forwardRef(Rdt),kdt={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"},Adt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:kdt}))},Ndt=p.forwardRef(Adt);const w2="ascend",v5="descend",V$=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,aoe=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,Idt=(e,t)=>t?e[e.indexOf(t)+1]:e[0],M9=(e,t,n)=>{let r=[];const a=(i,o)=>{r.push({column:i,key:Yp(i,o),multiplePriority:V$(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,o)=>{const s=Bb(o,n);i.children?("sortOrder"in i&&a(i,s),r=[].concat(Ke(r),Ke(M9(i.children,t,s)))):i.sorter&&("sortOrder"in i?a(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:Yp(i,s),multiplePriority:V$(i),sortOrder:i.defaultSortOrder}))}),r},J2e=(e,t,n,r,a,i,o,s)=>(t||[]).map((c,u)=>{const d=Bb(u,s);let f=c;if(f.sorter){const m=f.sortDirections||a,h=f.showSorterTooltip===void 0?o:f.showSorterTooltip,g=Yp(f,d),O=n.find(({key:k})=>k===g),v=O?O.sortOrder:null,y=Idt(m,v);let S;if(c.sortIcon)S=c.sortIcon({sortOrder:v});else{const k=m.includes(w2)&&p.createElement(Ndt,{className:ce(`${e}-column-sorter-up`,{active:v===w2})}),I=m.includes(v5)&&p.createElement(Pdt,{className:ce(`${e}-column-sorter-down`,{active:v===v5})});S=p.createElement("span",{className:ce(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(k&&I)})},p.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},k,I))}const{cancelSort:C,triggerAsc:_,triggerDesc:w}=i||{};let T=C;y===v5?T=w:y===w2&&(T=_);const A=typeof h=="object"?Object.assign({title:T},h):{title:T};f=Object.assign(Object.assign({},f),{className:ce(f.className,{[`${e}-column-sort`]:v}),title:k=>{const I=`${e}-column-sorters`,M=p.createElement("span",{className:`${e}-column-title`},Kk(c.title,k)),Q=p.createElement("div",{className:I},M,S);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?p.createElement("div",{className:ce(I,`${I}-tooltip-target-sorter`)},M,p.createElement(Co,Object.assign({},A),S)):p.createElement(Co,Object.assign({},A),Q):Q},onHeaderCell:k=>{var I;const M=((I=c.onHeaderCell)===null||I===void 0?void 0:I.call(c,k))||{},Q=M.onClick,F=M.onKeyDown;M.onClick=R=>{r({column:c,key:g,sortOrder:y,multiplePriority:V$(c)}),Q==null||Q(R)},M.onKeyDown=R=>{R.keyCode===Vt.ENTER&&(r({column:c,key:g,sortOrder:y,multiplePriority:V$(c)}),F==null||F(R))};const L=xut(c.title,{}),U=L==null?void 0:L.toString();return v&&(M["aria-sort"]=v==="ascend"?"ascending":"descending"),M["aria-label"]=U||"",M.className=ce(M.className,`${e}-column-has-sorters`),M.tabIndex=0,c.ellipsis&&(M.title=(L??"").toString()),M}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:J2e(e,f.children,n,r,a,i,o,d)})),f}),ioe=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},ooe=e=>{const t=e.filter(({sortOrder:n})=>n).map(ioe);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},ioe(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},D9=(e,t,n)=>{const r=t.slice().sort((o,s)=>s.multiplePriority-o.multiplePriority),a=e.slice(),i=r.filter(({column:{sorter:o},sortOrder:s})=>aoe(o)&&s);return i.length?a.sort((o,s)=>{for(let l=0;l{const s=o[n];return s?Object.assign(Object.assign({},o),{[n]:D9(s,t,n)}):o}):a},Mdt=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:i,onSorterChange:o}=e,[s,l]=p.useState(()=>M9(n,!0)),c=(g,O)=>{const v=[];return g.forEach((y,S)=>{const C=Bb(S,O);if(v.push(Yp(y,C)),Array.isArray(y.children)){const _=c(y.children,C);v.push.apply(v,Ke(_))}}),v},u=p.useMemo(()=>{let g=!0;const O=M9(n,!1);if(!O.length){const C=c(n);return s.filter(({key:_})=>C.includes(_))}const v=[];function y(C){g?v.push(C):v.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let S=null;return O.forEach(C=>{S===null?(y(C),C.sortOrder&&(C.multiplePriority===!1?g=!1:S=!0)):(S&&C.multiplePriority!==!1||(g=!1),y(C))}),v},[n,s]),d=p.useMemo(()=>{var g,O;const v=u.map(({column:y,sortOrder:S})=>({column:y,order:S}));return{sortColumns:v,sortColumn:(g=v[0])===null||g===void 0?void 0:g.column,sortOrder:(O=v[0])===null||O===void 0?void 0:O.order}},[u]),f=g=>{let O;g.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?O=[g]:O=[].concat(Ke(u.filter(({key:v})=>v!==g.key)),[g]),l(O),o(ooe(O),O)};return[g=>J2e(t,g,u,f,r,a,i),u,d,()=>ooe(u)]},e$e=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=Kk(r.title,t),"children"in a&&(a.children=e$e(a.children,t)),a}),Ddt=e=>[p.useCallback(n=>e$e(n,e),[e])],Ldt=B2e((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Qdt=U2e((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),zdt=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:i,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:l}=e,c=`${de(n)} ${r} ${a}`,u=(d,f,m)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${de(l(f).mul(-1).equal())} + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:de(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:`${de(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:de(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},rx(e)),OX(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Jk(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},xst=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:de(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${de(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${de(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}}}}},Tst=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qr(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:de(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),xst(e)),Est(e)),_st(e)),Sst(e)),yst(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"}}},wst=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ul(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},wc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:wc(e)}}}},F2e=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},Rg(e)),U2e=e=>nr(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"},$g(e)),Cst=Er("Pagination",e=>{const t=U2e(e);return[Tst(t),wst(t)]},F2e),$st=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:`${de(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}}}}},Rst=_g(["Pagination","bordered"],e=>{const t=U2e(e);return $st(t)},F2e);function Vie(e){return p.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var Pst=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:i,style:o,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f}=e,m=Pst(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=ex(c),[,g]=co(),{getPrefixCls:O,direction:v,showSizeChanger:y,className:S,style:C}=$i("pagination"),_=O("pagination",n),[w,T,k]=Cst(_),A=Xi(s),I=A==="small"||!!(h&&!A&&c),[M]=fl("Pagination",HEe),Q=Object.assign(Object.assign({},M),l),[B,D]=Vie(u),[U,R]=Vie(y),$=B??U,P=D??R,z=d||qr,F=p.useMemo(()=>f?f.map(ee=>Number(ee)):void 0,[f]),L=ee=>{var K;const{disabled:ne,size:ie,onSizeChange:se,"aria-label":ue,className:ce,options:be}=ee,{className:ge,onChange:Oe}=P||{},me=(K=be.find(Te=>String(Te.value)===String(ie)))===null||K===void 0?void 0:K.value;return p.createElement(z,Object.assign({disabled:ne,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Te=>Te.parentNode,"aria-label":ue,options:be},P,{value:me,onChange:(Te,Ce)=>{se==null||se(Te),Oe==null||Oe(Te,Ce)},size:I?"small":"middle",className:le(ce,ge)}))},X=p.useMemo(()=>{const ee=p.createElement("span",{className:`${_}-item-ellipsis`},"•••"),K=p.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},v==="rtl"?p.createElement(qp,null):p.createElement(Gp,null)),ne=p.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},v==="rtl"?p.createElement(Gp,null):p.createElement(qp,null)),ie=p.createElement("a",{className:`${_}-item-link`},p.createElement("div",{className:`${_}-item-container`},v==="rtl"?p.createElement(jie,{className:`${_}-item-link-icon`}):p.createElement(Uie,{className:`${_}-item-link-icon`}),ee)),se=p.createElement("a",{className:`${_}-item-link`},p.createElement("div",{className:`${_}-item-container`},v==="rtl"?p.createElement(Uie,{className:`${_}-item-link-icon`}):p.createElement(jie,{className:`${_}-item-link-icon`}),ee));return{prevIcon:K,nextIcon:ne,jumpPrevIcon:ie,jumpNextIcon:se}},[v,_]),Y=O("select",r),q=le({[`${_}-${t}`]:!!t,[`${_}-mini`]:I,[`${_}-rtl`]:v==="rtl",[`${_}-bordered`]:g.wireframe},S,a,i,T,k),G=Object.assign(Object.assign({},C),o);return w(p.createElement(p.Fragment,null,g.wireframe&&p.createElement(Rst,{prefixCls:_}),p.createElement(vst,Object.assign({},X,m,{style:G,prefixCls:_,selectPrefixCls:Y,className:q,locale:Q,pageSizeOptions:F,showSizeChanger:$,sizeChangerRender:L}))))},J$=100,j2e=J$/5,X2e=J$/2-j2e/2,T5=X2e*2*Math.PI,qie=50,Wie=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return p.createElement("circle",{className:le(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:X2e,cx:qie,cy:qie,strokeWidth:j2e,style:n})},Ast=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,a=`${r}-hidden`,[i,o]=p.useState(!1);tr(()=>{e!==0&&o(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!i)return null;const l={strokeDashoffset:`${T5/4}`,strokeDasharray:`${T5*s/100} ${T5*(100-s)/100}`};return p.createElement("span",{className:le(r,`${n}-progress`,s<=0&&a)},p.createElement("svg",{viewBox:`0 0 ${J$} ${J$}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},p.createElement(Wie,{dotClassName:n,hasCircleCls:!0}),p.createElement(Wie,{dotClassName:n,style:l})))};function Nst(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,i=`${a}-hidden`;return p.createElement(p.Fragment,null,p.createElement("span",{className:le(a,n>0&&i)},p.createElement("span",{className:le(r,`${t}-dot-spin`)},[1,2,3,4].map(o=>p.createElement("i",{className:`${t}-dot-item`,key:o})))),p.createElement(Ast,{prefixCls:t,percent:n}))}function Ist(e){var t;const{prefixCls:n,indicator:r,percent:a}=e,i=`${n}-dot`;return r&&p.isValidElement(r)?To(r,{className:le((t=r.props)===null||t===void 0?void 0:t.className,i),percent:a}):p.createElement(Nst,{prefixCls:n,percent:a})}const Mst=new kr("antSpinMove",{to:{opacity:1}}),Dst=new kr("antRotate",{to:{transform:"rotate(405deg)"}}),Lst=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Qr(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:Mst,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:Dst,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"}})}},Qst=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},zst=Er("Spin",e=>{const t=nr(e,{spinDotDefault:e.colorTextDescription});return Lst(t)},Qst),Bst=200,Gie=[[30,.05],[70,.03],[96,.01]];function Fst(e,t){const[n,r]=p.useState(0),a=p.useRef(null),i=t==="auto";return p.useEffect(()=>(i&&e&&(r(0),a.current=setInterval(()=>{r(o=>{const s=100-o;for(let l=0;l{a.current&&(clearInterval(a.current),a.current=null)}),[i,e]),i?n:t}var Ust=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:i,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:f=!1,indicator:m,percent:h}=e,g=Ust(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:O,direction:v,className:y,style:S,indicator:C}=$i("spin"),_=O("spin",n),[w,T,k]=zst(_),[A,I]=p.useState(()=>r&&!jst(r,a)),M=Fst(A,h);p.useEffect(()=>{if(r){const P=Wnt(a,()=>{I(!0)});return P(),()=>{var z;(z=P==null?void 0:P.cancel)===null||z===void 0||z.call(P)}}I(!1)},[a,r]);const Q=p.useMemo(()=>typeof d<"u"&&!f,[d,f]),B=le(_,y,{[`${_}-sm`]:s==="small",[`${_}-lg`]:s==="large",[`${_}-spinning`]:A,[`${_}-show-text`]:!!l,[`${_}-rtl`]:v==="rtl"},i,!f&&o,T,k),D=le(`${_}-container`,{[`${_}-blur`]:A}),U=(t=m??C)!==null&&t!==void 0?t:Y2e,R=Object.assign(Object.assign({},S),u),$=p.createElement("div",Object.assign({},g,{style:R,className:B,"aria-live":"polite","aria-busy":A}),p.createElement(Ist,{prefixCls:_,indicator:U,percent:M}),l&&(Q||f)?p.createElement("div",{className:`${_}-text`},l):null);return w(Q?p.createElement("div",Object.assign({},g,{className:le(`${_}-nested-loading`,c,T,k)}),A&&p.createElement("div",{key:"loading"},$),p.createElement("div",{className:D,key:"container"},d)):f?p.createElement("div",{className:le(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:A},o,T,k)},$):$)};rA.setDefaultIndicator=e=>{Y2e=e};const Xst=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let mc=null,Eh=e=>e(),x_=[],T_={};function Hie(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=T_,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:a}}const Yst=Z.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=p.useContext(pn),i=T_.prefixCls||a("message"),o=p.useContext(F$),[s,l]=jxe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),o.message));return Z.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...d)=>(r(),s[u].apply(s,d))}),{instance:c,sync:r}}),l}),Vst=Z.forwardRef((e,t)=>{const[n,r]=Z.useState(Hie),a=()=>{r(Hie)};Z.useEffect(a,[]);const i=Aj(),o=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=Z.createElement(Yst,{ref:t,sync:a,messageConfig:n});return Z.createElement(ui,{prefixCls:o,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}),aA=()=>{if(!mc){const e=document.createDocumentFragment(),t={fragment:e};mc=t,Eh(()=>{vk()(Z.createElement(Vst,{ref:r=>{const{instance:a,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=i,aA())})}}),e)});return}mc.instance&&(x_.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Eh(()=>{const r=mc.instance.open(Object.assign(Object.assign({},T_),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Eh(()=>{mc==null||mc.instance.destroy(e.key)});break;default:Eh(()=>{var r;const a=(r=mc.instance)[t].apply(r,et(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),x_=[])};function qst(e){T_=Object.assign(Object.assign({},T_),e),Eh(()=>{var t;(t=mc==null?void 0:mc.sync)===null||t===void 0||t.call(mc)})}function Wst(e){const t=Qj(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return x_.push(a),()=>{r?Eh(()=>{r()}):a.skipped=!0}});return aA(),t}function Gst(e,t){const n=Qj(r=>{let a;const i={type:e,args:t,resolve:r,setCloseFn:o=>{a=o}};return x_.push(i),()=>{a?Eh(()=>{a()}):i.skipped=!0}});return aA(),n}const Hst=e=>{x_.push({type:"destroy",key:e}),aA()},Zst=["success","info","warning","error","loading"],Kst={open:Wst,destroy:Hst,config:qst,useMessage:Xxe,_InternalPanelDoNotUseOrYouWillBeFired:fYe},Zi=Kst;Zst.forEach(e=>{Zi[e]=(...t)=>Gst(e,t)});var Jst=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:i,title:o,children:s,footer:l}=e,c=Jst(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=p.useContext(pn),d=u(),f=t||u("modal"),m=Ua(d),[h,g,O]=$Te(f,m),v=`${f}-confirm`;let y={};return i?y={closable:a??!1,title:"",footer:"",children:p.createElement(PTe,Object.assign({},e,{prefixCls:f,confirmPrefixCls:v,rootPrefixCls:d,content:s}))}:y={closable:a??!0,title:o,footer:l!==null&&p.createElement(ETe,Object.assign({},e)),children:s},h(p.createElement(sTe,Object.assign({prefixCls:f,className:le(g,`${f}-pure-panel`,i&&v,i&&`${v}-${i}`,n,O,m)},c,{closeIcon:_Te(f,r),closable:a},y)))},tlt=WTe(elt);function V2e(e){return HE(ITe(e))}const si=RTe;si.useModal=zTe;si.info=function(t){return HE(MTe(t))};si.success=function(t){return HE(DTe(t))};si.error=function(t){return HE(LTe(t))};si.warning=V2e;si.warn=V2e;si.confirm=function(t){return HE(QTe(t))};si.destroyAll=function(){for(;Sh.length;){const t=Sh.pop();t&&t()}};si.config=tGe;si._InternalPanelDoNotUseOrYouWillBeFired=tlt;let nu=null,N2=e=>e(),eR=[],w_={};function Zie(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:a,showProgress:i,pauseOnHover:o}=w_,s=(e==null?void 0:e())||document.body;return{getContainer:()=>s,rtl:t,maxCount:n,top:r,bottom:a,showProgress:i,pauseOnHover:o}}const nlt=Z.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:a}=p.useContext(pn),i=w_.prefixCls||a("notification"),o=p.useContext(F$),[s,l]=YTe(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),o.notification));return Z.useEffect(r,[]),Z.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...d)=>(r(),s[u].apply(s,d))}),{instance:c,sync:r}}),l}),rlt=Z.forwardRef((e,t)=>{const[n,r]=Z.useState(Zie),a=()=>{r(Zie)};Z.useEffect(a,[]);const i=Aj(),o=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=Z.createElement(nlt,{ref:t,sync:a,notificationConfig:n});return Z.createElement(ui,{prefixCls:o,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}),QX=()=>{if(!nu){const e=document.createDocumentFragment(),t={fragment:e};nu=t,N2(()=>{vk()(Z.createElement(rlt,{ref:r=>{const{instance:a,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=i,QX())})}}),e)});return}nu.instance&&(eR.forEach(e=>{switch(e.type){case"open":{N2(()=>{nu.instance.open(Object.assign(Object.assign({},w_),e.config))});break}case"destroy":N2(()=>{var t;(t=nu==null?void 0:nu.instance)===null||t===void 0||t.destroy(e.key)});break}}),eR=[])};function alt(e){w_=Object.assign(Object.assign({},w_),e),N2(()=>{var t;(t=nu==null?void 0:nu.sync)===null||t===void 0||t.call(nu)})}function q2e(e){eR.push({type:"open",config:e}),QX()}const ilt=e=>{eR.push({type:"destroy",key:e}),QX()},olt=["success","info","warning","error"],slt={open:q2e,destroy:ilt,config:alt,useNotification:VTe,_InternalPanelDoNotUseOrYouWillBeFired:OGe},W2e=slt;olt.forEach(e=>{W2e[e]=t=>q2e(Object.assign(Object.assign({},t),{type:e}))});var llt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},clt=function(){var t=p.useRef([]),n=p.useRef(null);return p.useEffect(function(){var r=Date.now(),a=!1;t.current.forEach(function(i){if(i){a=!0;var o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(o.transitionDuration="0s, 0s")}}),a&&(n.current=Date.now())}),t.current},Kie=0,ult=Eo();function dlt(){var e;return ult?(e=Kie,Kie+=1):e="TEST_OR_SSR",e}const flt=(function(e){var t=p.useState(),n=ye(t,2),r=n[0],a=n[1];return p.useEffect(function(){a("rc_progress_".concat(dlt()))},[]),e||r});var Jie=function(t){var n=t.bg,r=t.children;return p.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function eoe(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 plt=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,a=e.gradientId,i=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,f=r&&Xt(r)==="object",m=f?"#FFF":void 0,h=u/2,g=p.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:h,cy:h,stroke:m,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!f)return g;var O="".concat(a,"-conic"),v=d?"".concat(180+d/2,"deg"):"0deg",y=eoe(r,(360-d)/360),S=eoe(r,1),C="conic-gradient(from ".concat(v,", ").concat(y.join(", "),")"),_="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(S.join(", "),")");return p.createElement(p.Fragment,null,p.createElement("mask",{id:O},g),p.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(O,")")},p.createElement(Jie,{bg:_},p.createElement(Jie,{bg:C}))))}),nS=100,w5=function(t,n,r,a,i,o,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=r/100*360*((360-o)/360),m=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-a)/100*n;c==="round"&&a!==100&&(h+=u/2,h>=n&&(h=n-.01));var g=nS/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+d,transform:"rotate(".concat(i+f+m,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},mlt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function toe(e){var t=e??[];return Array.isArray(t)?t:[t]}var hlt=function(t){var n=oe(oe({},llt),t),r=n.id,a=n.prefixCls,i=n.steps,o=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,d=n.trailColor,f=n.strokeLinecap,m=n.style,h=n.className,g=n.strokeColor,O=n.percent,v=ln(n,mlt),y=nS/2,S=flt(r),C="".concat(S,"-gradient"),_=y-o/2,w=Math.PI*2*_,T=c>0?90+c/2:-90,k=w*((360-c)/360),A=Xt(i)==="object"?i:{count:i,gap:2},I=A.count,M=A.gap,Q=toe(O),B=toe(g),D=B.find(function(L){return L&&Xt(L)==="object"}),U=D&&Xt(D)==="object",R=U?"butt":f,$=w5(w,k,0,100,T,c,u,d,R,o),P=clt(),z=function(){var X=0;return Q.map(function(Y,q){var G=B[q]||B[B.length-1],ee=w5(w,k,X,Y,T,c,u,G,R,o);return X+=Y,p.createElement(plt,{key:q,color:G,ptg:Y,radius:_,prefixCls:a,gradientId:C,style:ee,strokeLinecap:R,strokeWidth:o,gapDegree:c,ref:function(ne){P[q]=ne},size:nS})}).reverse()},F=function(){var X=Math.round(I*(Q[0]/100)),Y=100/I,q=0;return new Array(I).fill(null).map(function(G,ee){var K=ee<=X-1?B[0]:d,ne=K&&Xt(K)==="object"?"url(#".concat(C,")"):void 0,ie=w5(w,k,q,Y,T,c,u,K,"butt",o,M);return q+=(k-ie.strokeDashoffset+M)*100/k,p.createElement("circle",{key:ee,className:"".concat(a,"-circle-path"),r:_,cx:y,cy:y,stroke:ne,strokeWidth:o,opacity:1,style:ie,ref:function(ue){P[ee]=ue}})})};return p.createElement("svg",Ae({className:le("".concat(a,"-circle"),h),viewBox:"0 0 ".concat(nS," ").concat(nS),style:m,id:r,role:"presentation"},v),!I&&p.createElement("circle",{className:"".concat(a,"-circle-trail"),r:_,cx:y,cy:y,stroke:d,strokeLinecap:R,strokeWidth:s||o,style:$}),I?F():z())};function jp(e){return!e||e<0?0:e>100?100:e}function tR({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const glt=({percent:e,success:t,successPercent:n})=>{const r=jp(tR({success:t,successPercent:n}));return[r,jp(jp(e)-r)]},Olt=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||p0.green,t||null]},iA=(e,t,n)=>{var r,a,i,o;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,l=(o=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&o!==void 0?o:120));return[s,l]},blt=3,vlt=e=>blt/e*100,ylt=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:i,width:o=120,type:s,children:l,success:c,size:u=o,steps:d}=e,[f,m]=iA(u,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(vlt(f),6));const g={width:f,height:m,fontSize:f*.15+6},O=p.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),v=glt(e),y=a||s==="dashboard"&&"bottom"||void 0,S=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=Olt({success:c,strokeColor:e.strokeColor}),_=le(`${t}-inner`,{[`${t}-circle-gradient`]:S}),w=p.createElement(hlt,{steps:d,percent:d?v[1]:v,strokeWidth:h,trailWidth:h,strokeColor:d?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:O,gapPosition:y}),T=f<=20,k=p.createElement("div",{className:_,style:g},w,!T&&l);return T?p.createElement(wo,{title:l},k):k},nR="--progress-line-stroke-color",G2e="--progress-percent",noe=e=>{const t=e?"100%":"-100%";return new kr(`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}})},Slt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Qr(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(${nR})`]},height:"100%",width:`calc(1 / var(${G2e}) * 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 ${de(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:noe(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:noe(!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}}})}},_lt=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"}}}},Elt=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}}}}}},xlt=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Tlt=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),wlt=Er("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=nr(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Slt(n),_lt(n),Elt(n),xlt(n)]},Tlt);var Clt=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(", ")},Rlt=(e,t)=>{const{from:n=p0.blue,to:r=p0.blue,direction:a=t==="rtl"?"to left":"to right"}=e,i=Clt(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=$lt(i),l=`linear-gradient(${a}, ${s})`;return{background:l,[nR]:l}}const o=`linear-gradient(${a}, ${n}, ${r})`;return{background:o,[nR]:o}},Plt=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:i,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:f,type:m}=u,h=o&&typeof o!="string"?Rlt(o,n):{[nR]:o,background:o},g=s==="square"||s==="butt"?0:void 0,O=a??[-1,i||(a==="small"?6:8)],[v,y]=iA(O,"line",{strokeWidth:i}),S={backgroundColor:c||void 0,borderRadius:g},C=Object.assign(Object.assign({width:`${jp(r)}%`,height:y,borderRadius:g},h),{[G2e]:jp(r)/100}),_=tR(e),w={width:`${jp(_)}%`,height:y,borderRadius:g,backgroundColor:d==null?void 0:d.strokeColor},T={width:v<0?"100%":v},k=p.createElement("div",{className:`${t}-inner`,style:S},p.createElement("div",{className:le(`${t}-bg`,`${t}-bg-${m}`),style:C},m==="inner"&&l),_!==void 0&&p.createElement("div",{className:`${t}-success-bg`,style:w})),A=m==="outer"&&f==="start",I=m==="outer"&&f==="end";return m==="outer"&&f==="center"?p.createElement("div",{className:`${t}-layout-bottom`},k,l):p.createElement("div",{className:`${t}-outer`,style:T},A&&l,k,I&&l)},klt=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:i=8,strokeColor:o,trailColor:s=null,prefixCls:l,children:c}=e,u=r(n*(a/100)),f=t??[t==="small"?2:14,i],[m,h]=iA(f,"step",{steps:n,strokeWidth:i}),g=m/n,O=Array.from({length:n});for(let v=0;v{const{prefixCls:n,className:r,rootClassName:a,steps:i,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:f,style:m,percentPosition:h={}}=e,g=Alt(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:O="end",type:v="outer"}=h,y=Array.isArray(o)?o[0]:o,S=typeof o=="string"||Array.isArray(o)?o:void 0,C=p.useMemo(()=>{if(y){const z=typeof y=="string"?y:Object.values(y)[0];return new Sr(z).isLight()}return!1},[o]),_=p.useMemo(()=>{var z,F;const L=tR(e);return Number.parseInt(L!==void 0?(z=L??0)===null||z===void 0?void 0:z.toString():(F=s??0)===null||F===void 0?void 0:F.toString(),10)},[s,e.success,e.successPercent]),w=p.useMemo(()=>!Nlt.includes(d)&&_>=100?"success":d||"normal",[d,_]),{getPrefixCls:T,direction:k,progress:A}=p.useContext(pn),I=T("progress",n),[M,Q,B]=wlt(I),D=u==="line",U=D&&!i,R=p.useMemo(()=>{if(!c)return null;const z=tR(e);let F;const L=f||(Y=>`${Y}%`),X=D&&C&&v==="inner";return v==="inner"||f||w!=="exception"&&w!=="success"?F=L(jp(s),jp(z)):w==="exception"?F=D?p.createElement(Df,null):p.createElement(Gl,null):w==="success"&&(F=D?p.createElement(Eg,null):p.createElement(zk,null)),p.createElement("span",{className:le(`${I}-text`,{[`${I}-text-bright`]:X,[`${I}-text-${O}`]:U,[`${I}-text-${v}`]:U}),title:typeof F=="string"?F:void 0},F)},[c,s,_,w,u,I,f]);let $;u==="line"?$=i?p.createElement(klt,Object.assign({},e,{strokeColor:S,prefixCls:I,steps:typeof i=="object"?i.count:i}),R):p.createElement(Plt,Object.assign({},e,{strokeColor:y,prefixCls:I,direction:k,percentPosition:{align:O,type:v}}),R):(u==="circle"||u==="dashboard")&&($=p.createElement(ylt,Object.assign({},e,{strokeColor:y,prefixCls:I,progressStatus:w}),R));const P=le(I,`${I}-status-${w}`,{[`${I}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${I}-inline-circle`]:u==="circle"&&iA(l,"circle")[0]<=20,[`${I}-line`]:U,[`${I}-line-align-${O}`]:U,[`${I}-line-position-${v}`]:U,[`${I}-steps`]:i,[`${I}-show-info`]:c,[`${I}-${l}`]:typeof l=="string",[`${I}-rtl`]:k==="rtl"},A==null?void 0:A.className,r,a,Q,B);return M(p.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},A==null?void 0:A.style),m),className:P,role:"progressbar","aria-valuenow":_,"aria-valuemin":0,"aria-valuemax":100},Oa(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),$))});var Ilt={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"},Mlt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Ilt}))},Dlt=p.forwardRef(Mlt),Llt={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"},Qlt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Llt}))},zlt=p.forwardRef(Qlt);const Blt=()=>p.createElement("svg",{width:"252",height:"294"},p.createElement("title",null,"No Found"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),p.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),p.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),p.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"}),p.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),Flt=()=>p.createElement("svg",{width:"254",height:"294"},p.createElement("title",null,"Server Error"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.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"}),p.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"}),p.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),p.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"}),p.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}))),Ult=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:a,paddingXL:i,paddingXS:o,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${de(e.calc(s).mul(2).equal())} ${de(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${de(s)} ${de(e.calc(a).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:o,"&:last-child":{marginInlineEnd:0}}}}},jlt=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}}},Xlt=e=>[Ult(e),jlt(e)],Ylt=e=>Xlt(e),Vlt=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),qlt=Er("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,a=e.colorWarning,i=nr(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:a,imageWidth:250,imageHeight:295});return[Ylt(i)]},Vlt),Wlt=()=>p.createElement("svg",{width:"251",height:"294"},p.createElement("title",null,"Unauthorized"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.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"}),p.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"}),p.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.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"}),p.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.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"}),p.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),p.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"}),p.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),p.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"}),p.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"}),p.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"}))),Glt={success:Eg,error:Df,info:Rb,warning:zlt},lx={404:Blt,500:Flt,403:Wlt},Hlt=Object.keys(lx),Zlt=({prefixCls:e,icon:t,status:n})=>{const r=le(`${e}-icon`);if(Hlt.includes(`${n}`)){const i=lx[n];return p.createElement("div",{className:`${r} ${e}-image`},p.createElement(i,null))}const a=p.createElement(Glt[n]);return t===null||t===!1?null:p.createElement("div",{className:r},t||a)},Klt=({prefixCls:e,extra:t})=>t?p.createElement("div",{className:`${e}-extra`},t):null,sA=({prefixCls:e,className:t,rootClassName:n,subTitle:r,title:a,style:i,children:o,status:s="info",icon:l,extra:c})=>{const{getPrefixCls:u,direction:d,result:f}=p.useContext(pn),m=u("result",e),[h,g,O]=qlt(m),v=le(m,`${m}-${s}`,t,f==null?void 0:f.className,n,{[`${m}-rtl`]:d==="rtl"},g,O),y=Object.assign(Object.assign({},f==null?void 0:f.style),i);return h(p.createElement("div",{className:v,style:y},p.createElement(Zlt,{prefixCls:m,status:s,icon:l}),p.createElement("div",{className:`${m}-title`},a),r&&p.createElement("div",{className:`${m}-subtitle`},r),p.createElement(Klt,{prefixCls:m,extra:c}),o&&p.createElement("div",{className:`${m}-content`},o)))};sA.PRESENTED_IMAGE_403=lx[403];sA.PRESENTED_IMAGE_404=lx[404];sA.PRESENTED_IMAGE_500=lx[500];var Jlt=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function roe(e){return typeof e=="string"}function H2e(e){var t,n=e.className,r=e.prefixCls,a=e.style,i=e.active,o=e.status,s=e.iconPrefix,l=e.icon;e.wrapperStyle;var c=e.stepNumber,u=e.disabled,d=e.description,f=e.title,m=e.subTitle,h=e.progressDot,g=e.stepIcon,O=e.tailContent,v=e.icons,y=e.stepIndex,S=e.onStepClick,C=e.onClick,_=e.render,w=ln(e,Jlt),T=!!S&&!u,k={};T&&(k.role="button",k.tabIndex=0,k.onClick=function(D){C==null||C(D),S(y)},k.onKeyDown=function(D){var U=D.which;(U===Ht.ENTER||U===Ht.SPACE)&&S(y)});var A=function(){var U,R,$=le("".concat(r,"-icon"),"".concat(s,"icon"),(U={},ae(U,"".concat(s,"icon-").concat(l),l&&roe(l)),ae(U,"".concat(s,"icon-check"),!l&&o==="finish"&&(v&&!v.finish||!v)),ae(U,"".concat(s,"icon-cross"),!l&&o==="error"&&(v&&!v.error||!v)),U)),P=p.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?R=p.createElement("span",{className:"".concat(r,"-icon")},h(P,{index:c-1,status:o,title:f,description:d})):R=p.createElement("span",{className:"".concat(r,"-icon")},P):l&&!roe(l)?R=p.createElement("span",{className:"".concat(r,"-icon")},l):v&&v.finish&&o==="finish"?R=p.createElement("span",{className:"".concat(r,"-icon")},v.finish):v&&v.error&&o==="error"?R=p.createElement("span",{className:"".concat(r,"-icon")},v.error):l||o==="finish"||o==="error"?R=p.createElement("span",{className:$}):R=p.createElement("span",{className:"".concat(r,"-icon")},c),g&&(R=g({index:c-1,status:o,title:f,description:d,node:R})),R},I=o||"wait",M=le("".concat(r,"-item"),"".concat(r,"-item-").concat(I),n,(t={},ae(t,"".concat(r,"-item-custom"),l),ae(t,"".concat(r,"-item-active"),i),ae(t,"".concat(r,"-item-disabled"),u===!0),t)),Q=oe({},a),B=p.createElement("div",Ae({},w,{className:M,style:Q}),p.createElement("div",Ae({onClick:C},k,{className:"".concat(r,"-item-container")}),p.createElement("div",{className:"".concat(r,"-item-tail")},O),p.createElement("div",{className:"".concat(r,"-item-icon")},A()),p.createElement("div",{className:"".concat(r,"-item-content")},p.createElement("div",{className:"".concat(r,"-item-title")},f,m&&p.createElement("div",{title:typeof m=="string"?m:void 0,className:"".concat(r,"-item-subtitle")},m)),d&&p.createElement("div",{className:"".concat(r,"-item-description")},d))));return _&&(B=_(B)||null),B}var ect=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function zX(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,a=e.style,i=a===void 0?{}:a,o=e.className;e.children;var s=e.direction,l=s===void 0?"horizontal":s,c=e.type,u=c===void 0?"default":c,d=e.labelPlacement,f=d===void 0?"horizontal":d,m=e.iconPrefix,h=m===void 0?"rc":m,g=e.status,O=g===void 0?"process":g,v=e.size,y=e.current,S=y===void 0?0:y,C=e.progressDot,_=C===void 0?!1:C,w=e.stepIcon,T=e.initial,k=T===void 0?0:T,A=e.icons,I=e.onChange,M=e.itemRender,Q=e.items,B=Q===void 0?[]:Q,D=ln(e,ect),U=u==="navigation",R=u==="inline",$=R||_,P=R?"horizontal":l,z=R?void 0:v,F=$?"vertical":f,L=le(r,"".concat(r,"-").concat(P),o,(t={},ae(t,"".concat(r,"-").concat(z),z),ae(t,"".concat(r,"-label-").concat(F),P==="horizontal"),ae(t,"".concat(r,"-dot"),!!$),ae(t,"".concat(r,"-navigation"),U),ae(t,"".concat(r,"-inline"),R),t)),X=function(G){I&&S!==G&&I(G)},Y=function(G,ee){var K=oe({},G),ne=k+ee;return O==="error"&&ee===S-1&&(K.className="".concat(r,"-next-error")),K.status||(ne===S?K.status=O:ne{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:de(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},nct=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},rct=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:a}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),o={[`${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:`${de(i)} ${de(e.paddingXXS)} 0`,margin:`0 ${de(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% - ${de(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(i).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:`${de(e.lineWidth)} ${e.lineType} ${a}`}},o),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:a},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:a,border:`${de(e.lineWidth)} ${e.lineType} ${a}`}},o),"&-error":o,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${de(e.calc(n).div(2).equal())})`,top:0}},o),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},act=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 ${de(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()}}}}}},ict=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:a,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},ll),{"&::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% - ${de(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${de(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${de(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 ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${de(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"}}}},oct=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:a,processIconColor:i,marginXXS:o,lineWidthBold:s,lineWidth:l,paddingXXS:c}=e,u=e.calc(r).add(e.calc(s).mul(4).equal()).equal(),d=e.calc(a).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:c,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:i}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:c,[`> ${n}-item-container > ${n}-item-tail`]:{top:o,insetInlineStart:e.calc(r).div(2).sub(l).add(c).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(a).div(2).sub(l).add(c).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${de(u)} !important`,height:`${de(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(a).div(2).add(c).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${de(d)} !important`,height:`${de(d)} !important`}}}}},sct=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:a,dotSize:i,motionDurationSlow:o}=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:`${de(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${de(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:de(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${o}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(a).div(2).equal(),width:a,height:a,lineHeight:de(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(i).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(i).sub(a).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${de(e.calc(i).add(e.paddingXS).equal())} 0 ${de(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(a).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},lct=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"}}}}},cct=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:a,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${de(e.marginXS)}`,fontSize:r,lineHeight:de(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:a,lineHeight:de(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:i,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:de(n),transform:"none"}}}}},uct=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:de(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:`${de(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${de(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:`${de(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${de(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:de(n)}}}}},dct="wait",fct="process",pct="finish",mct="error",yw=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,a=`${e}TitleColor`,i=`${e}DescriptionColor`,o=`${e}TailColor`,s=`${e}IconBgColor`,l=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[s],borderColor:t[l],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[a],"&::after":{backgroundColor:t[o]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[o]}}},hct=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}`]:wc(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:de(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${de(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:de(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}},yw(dct,e)),yw(fct,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),yw(pct,e)),yw(mct,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},gct=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"}}}}},Oct=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({},Qr(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),hct(e)),gct(e)),tct(e)),cct(e)),uct(e)),nct(e)),act(e)),sct(e)),ict(e)),lct(e)),oct(e)),rct(e))}},bct=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}),vct=Er("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:a,colorPrimary:i,colorTextDescription:o,colorTextQuaternary:s,colorError:l,colorBorderSecondary:c,colorSplit:u}=e,d=nr(e,{processIconColor:r,processTitleColor:a,processDescriptionColor:a,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:u,waitTitleColor:o,waitDescriptionColor:o,waitTailColor:u,waitDotColor:t,finishIconColor:i,finishTitleColor:a,finishDescriptionColor:o,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:u,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:i,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:s,inlineTailColor:c});return Oct(d)},bct);function yct(e){return e.filter(t=>t)}function Sct(e,t){if(e)return e;const n=xo(t).map(r=>{if(p.isValidElement(r)){const{props:a}=r;return Object.assign({},a)}return null});return yct(n)}var _ct=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:i,items:o,responsive:s=!0,current:l=0,children:c,style:u}=e,d=_ct(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:f}=ex(s),{getPrefixCls:m,direction:h,className:g,style:O}=$i("steps"),v=p.useMemo(()=>s&&f?"vertical":i,[s,f,i]),y=Xi(n),S=m("steps",e.prefixCls),[C,_,w]=vct(S),T=e.type==="inline",k=m("",e.iconPrefix),A=Sct(o,c),I=T?void 0:t,M=Object.assign(Object.assign({},O),u),Q=le(g,{[`${S}-rtl`]:h==="rtl",[`${S}-with-progress`]:I!==void 0},r,a,_,w),B={finish:p.createElement(zk,{className:`${S}-finish-icon`}),error:p.createElement(Gl,{className:`${S}-error-icon`})},D=({node:R,status:$})=>{if($==="process"&&I!==void 0){const P=y==="small"?32:40;return p.createElement("div",{className:`${S}-progress-icon`},p.createElement(oA,{type:"circle",percent:I,size:P,strokeWidth:4,format:()=>null}),R)}return R},U=(R,$)=>R.description?p.createElement(wo,{title:R.description},$):$;return C(p.createElement(zX,Object.assign({icons:B},d,{style:M,current:l,size:y,items:A,itemRender:T?U:void 0,stepIcon:D,direction:v,prefixCls:S,iconPrefix:k,className:Q})))};Z2e.Step=zX.Step;var Ect=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],K2e=p.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,i=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,f=e.onClick,m=e.onChange,h=e.onKeyDown,g=ln(e,Ect),O=Ir(!1,{value:o,defaultValue:s}),v=ye(O,2),y=v[0],S=v[1];function C(k,A){var I=y;return l||(I=k,S(I),m==null||m(I,A)),I}function _(k){k.which===Ht.LEFT?C(!1,k):k.which===Ht.RIGHT&&C(!0,k),h==null||h(k)}function w(k){var A=C(!y,k);f==null||f(A,k)}var T=le(a,i,(n={},ae(n,"".concat(a,"-checked"),y),ae(n,"".concat(a,"-disabled"),l),n));return p.createElement("button",Ae({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:T,ref:t,onKeyDown:_,onClick:w}),c,p.createElement("span",{className:"".concat(a,"-inner")},p.createElement("span",{className:"".concat(a,"-inner-checked")},u),p.createElement("span",{className:"".concat(a,"-inner-unchecked")},d)))});K2e.displayName="Switch";const xct=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:i,innerMaxMarginSM:o,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=de(l(s).add(l(r).mul(2)).equal()),d=de(l(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:de(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{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}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${de(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},Tct=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}}}},wct=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:i,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(i).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${de(o(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Cct=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:i,handleSize:o,calc:s}=e,l=`${t}-inner`,c=de(s(o).add(s(r).mul(2)).equal()),u=de(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-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},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},$ct=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:de(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}}),Ul(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"}})}},Rct=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,i=t*n,o=r/2,s=2,l=i-s*2,c=o-s*2;return{trackHeight:i,trackHeightSM:o,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:a,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Sr("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},Pct=Er("Switch",e=>{const t=nr(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[$ct(t),Cct(t),wct(t),Tct(t),xct(t)]},Rct);var kct=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:i,className:o,rootClassName:s,style:l,checked:c,value:u,defaultChecked:d,defaultValue:f,onChange:m}=e,h=kct(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,O]=Ir(!1,{value:c??u,defaultValue:d??f}),{getPrefixCls:v,direction:y,switch:S}=p.useContext(pn),C=p.useContext(jo),_=(a??C)||i,w=v("switch",n),T=p.createElement("div",{className:`${w}-handle`},i&&p.createElement(vu,{className:`${w}-loading-icon`})),[k,A,I]=Pct(w),M=Xi(r),Q=le(S==null?void 0:S.className,{[`${w}-small`]:M==="small",[`${w}-loading`]:i,[`${w}-rtl`]:y==="rtl"},o,s,A,I),B=Object.assign(Object.assign({},S==null?void 0:S.style),l),D=(...U)=>{O(U[0]),m==null||m.apply(void 0,U)};return k(p.createElement(VE,{component:"Switch",disabled:_},p.createElement(K2e,Object.assign({},h,{checked:g,onChange:D,prefixCls:w,className:Q,style:B,disabled:_,ref:t,loadingIcon:T}))))}),J2e=Act;J2e.__ANT_SWITCH=!0;var Cp={},cx="rc-table-internal-hook";function BX(e){var t=p.createContext(void 0),n=function(a){var i=a.value,o=a.children,s=p.useRef(i);s.current=i;var l=p.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=ye(l,1),u=c[0];return tr(function(){Fl.unstable_batchedUpdates(function(){u.listeners.forEach(function(d){d(i)})})},[i]),p.createElement(t.Provider,{value:u},o)};return{Context:t,Provider:n,defaultValue:e}}function Co(e,t){var n=ar(typeof t=="function"?t:function(d){if(t===void 0)return d;if(!Array.isArray(t))return d[t];var f={};return t.forEach(function(m){f[m]=d[m]}),f}),r=p.useContext(e==null?void 0:e.Context),a=r||{},i=a.listeners,o=a.getValue,s=p.useRef();s.current=n(r?o():e==null?void 0:e.defaultValue);var l=p.useState({}),c=ye(l,2),u=c[1];return tr(function(){if(!r)return;function d(f){var m=n(f);Bl(s.current,m,!0)||u({})}return i.add(d),function(){i.delete(d)}},[r]),s.current}function Nct(){var e=p.createContext(null);function t(){return p.useContext(e)}function n(a,i){var o=Ou(a),s=function(c,u){var d=o?{ref:u}:{},f=p.useRef(0),m=p.useRef(c),h=t();return h!==null?p.createElement(a,Ae({},c,d)):((!i||i(m.current,c))&&(f.current+=1),m.current=c,p.createElement(e.Provider,{value:f.current},p.createElement(a,Ae({},c,d))))};return o?p.forwardRef(s):s}function r(a,i){var o=Ou(a),s=function(c,u){var d=o?{ref:u}:{};return t(),p.createElement(a,Ae({},c,d))};return o?p.memo(p.forwardRef(s),i):p.memo(s,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var FX=Nct(),e$e=FX.makeImmutable,Ub=FX.responseImmutable,Ict=FX.useImmutableMark,ps=BX(),t$e=p.createContext({renderWithProps:!1}),Mct="RC_TABLE_KEY";function Dct(e){return e==null?[]:Array.isArray(e)?e:[e]}function lA(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},i=a.key,o=a.dataIndex,s=i||Dct(o).join("-")||Mct;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function V9(e){return e!=null}function Lct(e){return typeof e=="number"&&!Number.isNaN(e)}function Qct(e){return e&&Xt(e)==="object"&&!Array.isArray(e)&&!p.isValidElement(e)}function zct(e,t,n,r,a,i){var o=p.useContext(t$e),s=Ict(),l=Om(function(){if(V9(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=ws(e,c),d=u,f=void 0;if(a){var m=a(u,e,n);Qct(m)?(d=m.children,f=m.props,o.renderWithProps=!0):d=m}return[d,f]},[s,e,r,t,a,n],function(c,u){if(i){var d=ye(c,2),f=d[1],m=ye(u,2),h=m[1];return i(h,f)}return o.renderWithProps?!0:!Bl(c,u,!0)});return l}function Bct(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function Fct(e,t){return Co(ps,function(n){var r=Bct(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var Uct=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,i,o=n===!0?{showTitle:!0}:n;return o&&(o.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?i=a.toString():p.isValidElement(a)&&typeof a.props.children=="string"&&(i=a.props.children)),i};function jct(e){var t,n,r,a,i,o,s,l,c=e.component,u=e.children,d=e.ellipsis,f=e.scope,m=e.prefixCls,h=e.className,g=e.align,O=e.record,v=e.render,y=e.dataIndex,S=e.renderIndex,C=e.shouldCellUpdate,_=e.index,w=e.rowType,T=e.colSpan,k=e.rowSpan,A=e.fixLeft,I=e.fixRight,M=e.firstFixLeft,Q=e.lastFixLeft,B=e.firstFixRight,D=e.lastFixRight,U=e.appendNode,R=e.additionalProps,$=R===void 0?{}:R,P=e.isSticky,z="".concat(m,"-cell"),F=Co(ps,["supportSticky","allColumnsFixedLeft","rowHoverable"]),L=F.supportSticky,X=F.allColumnsFixedLeft,Y=F.rowHoverable,q=zct(O,y,S,u,v,C),G=ye(q,2),ee=G[0],K=G[1],ne={},ie=typeof A=="number"&&L,se=typeof I=="number"&&L;ie&&(ne.position="sticky",ne.left=A),se&&(ne.position="sticky",ne.right=I);var ue=(t=(n=(r=K==null?void 0:K.colSpan)!==null&&r!==void 0?r:$.colSpan)!==null&&n!==void 0?n:T)!==null&&t!==void 0?t:1,ce=(a=(i=(o=K==null?void 0:K.rowSpan)!==null&&o!==void 0?o:$.rowSpan)!==null&&i!==void 0?i:k)!==null&&a!==void 0?a:1,be=Fct(_,ce),ge=ye(be,2),Oe=ge[0],me=ge[1],Te=ar(function(Qe){var Je;O&&me(_,_+ce-1),$==null||(Je=$.onMouseEnter)===null||Je===void 0||Je.call($,Qe)}),Ce=ar(function(Qe){var Je;O&&me(-1,-1),$==null||(Je=$.onMouseLeave)===null||Je===void 0||Je.call($,Qe)});if(ue===0||ce===0)return null;var Fe=(s=$.title)!==null&&s!==void 0?s:Uct({rowType:w,ellipsis:d,children:ee}),Me=le(z,h,(l={},ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(l,"".concat(z,"-fix-left"),ie&&L),"".concat(z,"-fix-left-first"),M&&L),"".concat(z,"-fix-left-last"),Q&&L),"".concat(z,"-fix-left-all"),Q&&X&&L),"".concat(z,"-fix-right"),se&&L),"".concat(z,"-fix-right-first"),B&&L),"".concat(z,"-fix-right-last"),D&&L),"".concat(z,"-ellipsis"),d),"".concat(z,"-with-append"),U),"".concat(z,"-fix-sticky"),(ie||se)&&P&&L),ae(l,"".concat(z,"-row-hover"),!K&&Oe)),$.className,K==null?void 0:K.className),Ee={};g&&(Ee.textAlign=g);var Le=oe(oe(oe(oe({},K==null?void 0:K.style),ne),Ee),$.style),ze=ee;return Xt(ze)==="object"&&!Array.isArray(ze)&&!p.isValidElement(ze)&&(ze=null),d&&(Q||B)&&(ze=p.createElement("span",{className:"".concat(z,"-content")},ze)),p.createElement(c,Ae({},K,$,{className:Me,style:Le,title:Fe,scope:f,onMouseEnter:Y?Te:void 0,onMouseLeave:Y?Ce:void 0,colSpan:ue!==1?ue:null,rowSpan:ce!==1?ce:null}),U,ze)}const jb=p.memo(jct);function UX(e,t,n,r,a){var i=n[e]||{},o=n[t]||{},s,l;i.fixed==="left"?s=r.left[a==="rtl"?t:e]:o.fixed==="right"&&(l=r.right[a==="rtl"?e:t]);var c=!1,u=!1,d=!1,f=!1,m=n[t+1],h=n[e-1],g=m&&!m.fixed||h&&!h.fixed||n.every(function(C){return C.fixed==="left"});if(a==="rtl"){if(s!==void 0){var O=h&&h.fixed==="left";f=!O&&g}else if(l!==void 0){var v=m&&m.fixed==="right";d=!v&&g}}else if(s!==void 0){var y=m&&m.fixed==="left";c=!y&&g}else if(l!==void 0){var S=h&&h.fixed==="right";u=!S&&g}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var n$e=p.createContext({});function Xct(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,i=a===void 0?1:a,o=e.rowSpan,s=e.align,l=Co(ps,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,d=p.useContext(n$e),f=d.scrollColumnIndex,m=d.stickyOffsets,h=d.flattenColumns,g=n+i-1,O=g+1===f?i+1:i,v=UX(n,n+O-1,h,m,u);return p.createElement(jb,Ae({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:O,rowSpan:o,render:function(){return r}},v))}var Yct=["children"];function Vct(e){var t=e.children,n=ln(e,Yct);return p.createElement("tr",n,t)}function cA(e){var t=e.children;return t}cA.Row=Vct;cA.Cell=Xct;function qct(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=Co(ps,"prefixCls"),i=r.length-1,o=r[i],s=p.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:o!=null&&o.scrollbar?i:null}},[o,r,i,n]);return p.createElement(n$e.Provider,{value:s},p.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const Sw=Ub(qct);var r$e=cA;function Wct(e){return null}function Gct(e){return null}function a$e(e,t,n,r,a,i,o){var s=i(t,o);e.push({record:t,indent:n,index:o,rowKey:s});var l=a==null?void 0:a.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c1?M-1:0),B=1;B5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,l=e.record,c=e.prefixCls,u=e.columnsKey,d=e.fixedInfoList,f=e.expandIconColumnIndex,m=e.nestExpandable,h=e.indentSize,g=e.expandIcon,O=e.expanded,v=e.hasNestChildren,y=e.onTriggerExpand,S=e.expandable,C=e.expandedKeys,_=u[n],w=d[n],T;n===(f||0)&&m&&(T=p.createElement(p.Fragment,null,p.createElement("span",{style:{paddingLeft:"".concat(h*r,"px")},className:"".concat(c,"-row-indent indent-level-").concat(r)}),g({prefixCls:c,expanded:O,expandable:v,record:l,onExpand:y})));var k=((i=t.onCell)===null||i===void 0?void 0:i.call(t,l,a))||{};if(s){var A=k.rowSpan,I=A===void 0?1:A;if(S&&I&&n=1)),style:oe(oe({},n),S==null?void 0:S.style)}),O.map(function(M,Q){var B=M.render,D=M.dataIndex,U=M.className,R=c$e(h,M,Q,c,a,s,m==null?void 0:m.offset),$=R.key,P=R.fixedInfo,z=R.appendCellNode,F=R.additionalCellProps;return p.createElement(jb,Ae({className:U,ellipsis:M.ellipsis,align:M.align,scope:M.rowScope,component:M.rowScope?f:d,prefixCls:g,key:$,record:r,index:a,renderIndex:i,dataIndex:D,render:B,shouldCellUpdate:M.shouldCellUpdate},P,{appendNode:z,additionalProps:F}))})),A;if(_&&(w.current||C)){var I=y(r,a,c+1,C);A=p.createElement(s$e,{expanded:C,className:le("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),T),prefixCls:g,component:u,cellComponent:d,colSpan:m?m.colSpan:O.length,stickyOffset:m==null?void 0:m.sticky,isEmpty:!1},I)}return p.createElement(p.Fragment,null,k,A)}const Jct=Ub(Kct);function eut(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,a=e.title,i=p.useRef();return tr(function(){i.current&&n(t,i.current.offsetWidth)},[]),p.createElement(_o,{data:t},p.createElement("th",{ref:i,className:"".concat(r,"-measure-cell")},p.createElement("div",{className:"".concat(r,"-measure-cell-content")},a||" ")))}function tut(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,a=e.columns,i=p.useRef(null),o=Co(ps,["measureRowRender"]),s=o.measureRowRender,l=p.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:i,tabIndex:-1},p.createElement(_o.Collection,{onBatchResize:function(u){Pb(i.current)&&u.forEach(function(d){var f=d.data,m=d.size;r(f,m.offsetWidth)})}},n.map(function(c){var u=a.find(function(m){return m.key===c}),d=u==null?void 0:u.title,f=p.isValidElement(d)?p.cloneElement(d,{ref:null}):d;return p.createElement(eut,{prefixCls:t,key:c,columnKey:c,onColumnResize:r,title:f})})));return s?s(l):l}function nut(e){var t=e.data,n=e.measureColumnWidth,r=Co(ps,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=r.prefixCls,i=r.getComponent,o=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,d=r.emptyNode,f=r.expandedRowOffset,m=f===void 0?0:f,h=r.colWidths,g=i$e(t,u,c,l),O=p.useMemo(function(){return g.map(function(A){return A.rowKey})},[g]),v=p.useRef({renderWithProps:!1}),y=p.useMemo(function(){for(var A=s.length-m,I=0,M=0;M=0;c-=1){var u=t[c],d=n&&n[c],f=void 0,m=void 0;if(d&&(f=d[NS],i==="auto"&&(m=d.minWidth)),u||m||f||l){var h=f||{};h.columnType;var g=ln(h,out);o.unshift(p.createElement("col",Ae({key:c,style:{width:u,minWidth:m}},g))),l=!0}}return o.length>0?p.createElement("colgroup",null,o):null}var sut=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function lut(e,t){return p.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:O.ellipsis,align:O.align,component:o,prefixCls:u,key:m[g]},v,{additionalProps:y,rowType:"header"}))}))};function dut(e){var t=[];function n(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,u=o.filter(Boolean).map(function(d){var f={key:d.key,className:d.className||"",children:d.title,column:d,colStart:c},m=1,h=d.children;return h&&h.length>0&&(m=n(h,c,l+1).reduce(function(g,O){return g+O},0),f.hasSubColumns=!0),"colSpan"in d&&(m=d.colSpan),"rowSpan"in d&&(f.rowSpan=d.rowSpan),f.colSpan=m,f.colEnd=f.colStart+m-1,t[l].push(f),c+=m,m});return u}n(e,0);for(var r=t.length,a=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function put(e,t,n){return p.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(f){var m=ooe(t,f.width);m?r+=m:a+=1});var i=Math.max(t,n),o=Math.max(i-r,a),s=a,l=o/a,c=0,u=e.map(function(f){var m=oe({},f),h=ooe(t,m.width);if(h)m.width=h;else{var g=Math.floor(l);m.width=s===1?o:g,o-=g,s-=1}return c+=m.width,m});if(c0?oe(oe({},t),{},{children:d$e(n)}):t})}function q9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Xt(n)==="object"}).reduce(function(n,r,a){var i=r.fixed,o=i===!0?"left":i,s="".concat(t,"-").concat(a),l=r.children;return l&&l.length>0?[].concat(et(n),et(q9(l,s).map(function(c){var u;return oe(oe({},c),{},{fixed:(u=c.fixed)!==null&&u!==void 0?u:o})}))):[].concat(et(n),[oe(oe({key:s},r),{},{fixed:o})])},[])}function gut(e){return e.map(function(t){var n=t.fixed,r=ln(t,hut),a=n;return n==="left"?a="right":n==="right"&&(a="left"),oe({fixed:a},r)})}function Out(e,t){var n=e.prefixCls,r=e.columns,a=e.children,i=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,d=e.rowExpandable,f=e.expandIconColumnIndex,m=e.expandedRowOffset,h=m===void 0?0:m,g=e.direction,O=e.expandRowByClick,v=e.columnWidth,y=e.fixed,S=e.scrollWidth,C=e.clientWidth,_=p.useMemo(function(){var D=r||jX(a)||[];return d$e(D.slice())},[r,a]),w=p.useMemo(function(){if(i){var D=_.slice();if(!D.includes(Cp)){var U=f||0,R=U===0&&y==="right"?_.length:U;R>=0&&D.splice(R,0,Cp)}var $=D.indexOf(Cp);D=D.filter(function(L,X){return L!==Cp||X===$});var P=_[$],z;y?z=y:z=P?P.fixed:null;var F=ae(ae(ae(ae(ae(ae({},NS,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",z),"className","".concat(n,"-row-expand-icon-cell")),"width",v),"render",function(X,Y,q){var G=l(Y,q),ee=o.has(G),K=d?d(Y):!0,ne=u({prefixCls:n,expanded:ee,expandable:K,record:Y,onExpand:c});return O?p.createElement("span",{onClick:function(se){return se.stopPropagation()}},ne):ne});return D.map(function(L,X){var Y=L===Cp?F:L;return X=0;U-=1){var R=k[U].fixed;if(R==="left"||R===!0){D=U;break}}if(D>=0)for(var $=0;$<=D;$+=1){var P=k[$].fixed;if(P!=="left"&&P!==!0)return!0}var z=k.findIndex(function(X){var Y=X.fixed;return Y==="right"});if(z>=0)for(var F=z;F=$-s})})}})},B=function(U){y(function(R){return oe(oe({},R),{},{scrollLeft:d?U/d*f:0})})};return p.useImperativeHandle(n,function(){return{setScrollLeft:B,checkScrollBarVisible:Q}}),p.useEffect(function(){var D=Dp(document.body,"mouseup",A,!1),U=Dp(document.body,"mousemove",M,!1);return Q(),function(){D.remove(),U.remove()}},[m,w]),p.useEffect(function(){if(i.current){for(var D=[],U=jE(i.current);U;)D.push(U),U=U.parentElement;return D.forEach(function(R){return R.addEventListener("scroll",Q,!1)}),window.addEventListener("resize",Q,!1),window.addEventListener("scroll",Q,!1),l.addEventListener("scroll",Q,!1),function(){D.forEach(function(R){return R.removeEventListener("scroll",Q)}),window.removeEventListener("resize",Q),window.removeEventListener("scroll",Q),l.removeEventListener("scroll",Q)}}},[l]),p.useEffect(function(){v.isHiddenScrollBar||y(function(D){var U=i.current;return U?oe(oe({},D),{},{scrollLeft:U.scrollLeft/U.scrollWidth*U.clientWidth}):D})},[v.isHiddenScrollBar]),d<=f||!m||v.isHiddenScrollBar?null:p.createElement("div",{style:{height:Bre(),width:f,bottom:s},className:"".concat(u,"-sticky-scroll")},p.createElement("div",{onMouseDown:I,ref:h,className:le("".concat(u,"-sticky-scroll-bar"),ae({},"".concat(u,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(v.scrollLeft,"px, 0, 0)")}}))};const wut=p.forwardRef(Tut);var f$e="rc-table",Cut=[],$ut={};function Rut(){return"No Data"}function Put(e,t){var n=oe({rowKey:"key",prefixCls:f$e,emptyText:Rut},e),r=n.prefixCls,a=n.className,i=n.rowClassName,o=n.style,s=n.data,l=n.rowKey,c=n.scroll,u=n.tableLayout,d=n.direction,f=n.title,m=n.footer,h=n.summary,g=n.caption,O=n.id,v=n.showHeader,y=n.components,S=n.emptyText,C=n.onRow,_=n.onHeaderRow,w=n.measureRowRender,T=n.onScroll,k=n.internalHooks,A=n.transformColumns,I=n.internalRefs,M=n.tailor,Q=n.getContainerWidth,B=n.sticky,D=n.rowHoverable,U=D===void 0?!0:D,R=s||Cut,$=!!R.length,P=k===cx,z=p.useCallback(function(kt,tn){return ws(y,kt)||tn},[y]),F=p.useMemo(function(){return typeof l=="function"?l:function(kt){var tn=kt&&kt[l];return tn}},[l]),L=z(["body"]),X=_ut(),Y=ye(X,3),q=Y[0],G=Y[1],ee=Y[2],K=but(n,R,F),ne=ye(K,6),ie=ne[0],se=ne[1],ue=ne[2],ce=ne[3],be=ne[4],ge=ne[5],Oe=c==null?void 0:c.x,me=p.useState(0),Te=ye(me,2),Ce=Te[0],Fe=Te[1],Me=Out(oe(oe(oe({},n),ie),{},{expandable:!!ie.expandedRowRender,columnTitle:ie.columnTitle,expandedKeys:ue,getRowKey:F,onTriggerExpand:ge,expandIcon:ce,expandIconColumnIndex:ie.expandIconColumnIndex,direction:d,scrollWidth:P&&M&&typeof Oe=="number"?Oe:null,clientWidth:Ce}),P?A:null),Ee=ye(Me,4),Le=Ee[0],ze=Ee[1],Qe=Ee[2],Je=Ee[3],He=Qe??Oe,gt=p.useMemo(function(){return{columns:Le,flattenColumns:ze}},[Le,ze]),st=p.useRef(),lt=p.useRef(),pt=p.useRef(),Ze=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:st.current,scrollTo:function(tn){var Jn;if(pt.current instanceof HTMLElement){var Dt=tn.index,cn=tn.top,zn=tn.key;if(Lct(cn)){var Xn;(Xn=pt.current)===null||Xn===void 0||Xn.scrollTo({top:cn})}else{var Pr,Ga=zn??F(R[Dt]);(Pr=pt.current.querySelector('[data-row-key="'.concat(Ga,'"]')))===null||Pr===void 0||Pr.scrollIntoView()}}else(Jn=pt.current)!==null&&Jn!==void 0&&Jn.scrollTo&&pt.current.scrollTo(tn)}}});var De=p.useRef(),Ke=p.useState(!1),Be=ye(Ke,2),We=Be[0],Re=Be[1],Ie=p.useState(!1),ve=ye(Ie,2),we=ve[0],Xe=ve[1],rt=p.useState(new Map),at=ye(rt,2),ct=at[0],mt=at[1],je=lA(ze),Ye=je.map(function(kt){return ct.get(kt)}),yt=p.useMemo(function(){return Ye},[Ye.join("_")]),$t=xut(yt,ze,d),St=c&&V9(c.y),Mt=c&&V9(He)||!!ie.fixed,Qt=Mt&&ze.some(function(kt){var tn=kt.fixed;return tn}),Ot=p.useRef(),ht=Eut(B,r),ut=ht.isSticky,vt=ht.offsetHeader,Gt=ht.offsetSummary,en=ht.offsetScroll,Rn=ht.stickyClassName,Ut=ht.container,Ct=p.useMemo(function(){return h==null?void 0:h(R)},[h,R]),Vt=(St||ut)&&p.isValidElement(Ct)&&Ct.type===cA&&Ct.props.fixed,_n,jn,Qn;St&&(jn={overflowY:$?"scroll":"auto",maxHeight:c.y}),Mt&&(_n={overflowX:"auto"},St||(jn={overflowY:"hidden"}),Qn={width:He===!0?"auto":He,minWidth:"100%"});var fr=p.useCallback(function(kt,tn){mt(function(Jn){if(Jn.get(kt)!==tn){var Dt=new Map(Jn);return Dt.set(kt,tn),Dt}return Jn})},[]),Pt=Sut(),xe=ye(Pt,2),pe=xe[0],$e=xe[1];function tt(kt,tn){tn&&(typeof tn=="function"?tn(kt):tn.scrollLeft!==kt&&(tn.scrollLeft=kt,tn.scrollLeft!==kt&&setTimeout(function(){tn.scrollLeft=kt},0)))}var dt=ar(function(kt){var tn=kt.currentTarget,Jn=kt.scrollLeft,Dt=d==="rtl",cn=typeof Jn=="number"?Jn:tn.scrollLeft,zn=tn||$ut;if(!$e()||$e()===zn){var Xn;pe(zn),tt(cn,lt.current),tt(cn,pt.current),tt(cn,De.current),tt(cn,(Xn=Ot.current)===null||Xn===void 0?void 0:Xn.setScrollLeft)}var Pr=tn||lt.current;if(Pr){var Ga=P&&M&&typeof He=="number"?He:Pr.scrollWidth,Vi=Pr.clientWidth;if(Ga===Vi){Re(!1),Xe(!1);return}Dt?(Re(-cn0)):(Re(cn>0),Xe(cn1?O-D:0,R=oe(oe(oe({},k),c),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:U,pointerEvents:"auto"}),$=p.useMemo(function(){return d?Q<=1:I===0||Q===0||Q>1},[Q,I,d]);$?R.visibility="hidden":d&&(R.height=f==null?void 0:f(Q));var P=$?function(){return null}:m,z={};return(Q===0||I===0)&&(z.rowSpan=1,z.colSpan=1),p.createElement(jb,Ae({className:le(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:o,prefixCls:t.prefixCls,key:C,record:l,index:i,renderIndex:s,dataIndex:h,render:P,shouldCellUpdate:n.shouldCellUpdate},_,{appendNode:w,additionalProps:oe(oe({},T),{},{style:R},z)}))}var Iut=["data","index","className","rowKey","style","extra","getHeight"],Mut=p.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,i=e.rowKey,o=e.style,s=e.extra,l=e.getHeight,c=ln(e,Iut),u=n.record,d=n.indent,f=n.index,m=Co(ps,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=m.scrollX,g=m.flattenColumns,O=m.prefixCls,v=m.fixColumn,y=m.componentWidth,S=Co(XX,["getComponent"]),C=S.getComponent,_=o$e(u,i,r,d),w=C(["body","row"],"div"),T=C(["body","cell"],"div"),k=_.rowSupportExpand,A=_.expanded,I=_.rowProps,M=_.expandedRowRender,Q=_.expandedRowClassName,B;if(k&&A){var D=M(u,r,d+1,A),U=l$e(Q,u,r,d),R={};v&&(R={style:ae({},"--virtual-width","".concat(y,"px"))});var $="".concat(O,"-expanded-row-cell");B=p.createElement(w,{className:le("".concat(O,"-expanded-row"),"".concat(O,"-expanded-row-level-").concat(d+1),U)},p.createElement(jb,{component:T,prefixCls:O,className:le($,ae({},"".concat($,"-fixed"),v)),additionalProps:R},D))}var P=oe(oe({},o),{},{width:h});s&&(P.position="absolute",P.pointerEvents="none");var z=p.createElement(w,Ae({},I,c,{"data-row-key":i,ref:k?null:t,className:le(a,"".concat(O,"-row"),I==null?void 0:I.className,ae({},"".concat(O,"-row-extra"),s)),style:oe(oe({},P),I==null?void 0:I.style)}),g.map(function(F,L){return p.createElement(Nut,{key:L,component:T,rowInfo:_,column:F,colIndex:L,indent:d,index:r,renderIndex:f,record:u,inverse:s,getHeight:l})}));return k?p.createElement("div",{ref:t},z,B):z}),uoe=Ub(Mut),Dut=p.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=Co(ps,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=a.flattenColumns,o=a.onColumnResize,s=a.getRowKey,l=a.expandedKeys,c=a.prefixCls,u=a.childrenColumnName,d=a.scrollX,f=a.direction,m=Co(XX),h=m.sticky,g=m.scrollY,O=m.listItemHeight,v=m.getComponent,y=m.onScroll,S=p.useRef(),C=i$e(n,u,l,s),_=p.useMemo(function(){var B=0;return i.map(function(D){var U=D.width,R=D.minWidth,$=D.key,P=Math.max(U||0,R||0);return B+=P,[$,P,B]})},[i]),w=p.useMemo(function(){return _.map(function(B){return B[2]})},[_]);p.useEffect(function(){_.forEach(function(B){var D=ye(B,2),U=D[0],R=D[1];o(U,R)})},[_]),p.useImperativeHandle(t,function(){var B,D={scrollTo:function(R){var $;($=S.current)===null||$===void 0||$.scrollTo(R)},nativeElement:(B=S.current)===null||B===void 0?void 0:B.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var R;return((R=S.current)===null||R===void 0?void 0:R.getScrollInfo().x)||0},set:function(R){var $;($=S.current)===null||$===void 0||$.scrollTo({left:R})}}),Object.defineProperty(D,"scrollTop",{get:function(){var R;return((R=S.current)===null||R===void 0?void 0:R.getScrollInfo().y)||0},set:function(R){var $;($=S.current)===null||$===void 0||$.scrollTo({top:R})}}),D});var T=function(D,U){var R,$=(R=C[U])===null||R===void 0?void 0:R.record,P=D.onCell;if(P){var z,F=P($,U);return(z=F==null?void 0:F.rowSpan)!==null&&z!==void 0?z:1}return 1},k=function(D){var U=D.start,R=D.end,$=D.getSize,P=D.offsetY;if(R<0)return null;for(var z=i.filter(function(ue){return T(ue,U)===0}),F=U,L=function(ce){if(z=z.filter(function(be){return T(be,ce)===0}),!z.length)return F=ce,1},X=U;X>=0&&!L(X);X-=1);for(var Y=i.filter(function(ue){return T(ue,R)!==1}),q=R,G=function(ce){if(Y=Y.filter(function(be){return T(be,ce)!==1}),!Y.length)return q=Math.max(ce-1,R),1},ee=R;ee1})&&K.push(ce)},ie=F;ie<=q;ie+=1)ne(ie);var se=K.map(function(ue){var ce=C[ue],be=s(ce.record,ue),ge=function(Te){var Ce=ue+Te-1,Fe=s(C[Ce].record,Ce),Me=$(be,Fe);return Me.bottom-Me.top},Oe=$(be);return p.createElement(uoe,{key:ue,data:ce,rowKey:be,index:ue,style:{top:-P+Oe.top},extra:!0,getHeight:ge})});return se},A=p.useMemo(function(){return{columnsOffset:w}},[w]),I="".concat(c,"-tbody"),M=v(["body","wrapper"]),Q={};return h&&(Q.position="sticky",Q.bottom=0,Xt(h)==="object"&&h.offsetScroll&&(Q.bottom=h.offsetScroll)),p.createElement(m$e.Provider,{value:A},p.createElement(Qk,{fullHeight:!1,ref:S,prefixCls:"".concat(I,"-virtual"),styles:{horizontalScrollBar:Q},className:I,height:g,itemHeight:O||24,data:C,itemKey:function(D){return s(D.record)},component:M,scrollWidth:d,direction:f,onVirtualScroll:function(D){var U,R=D.x;r({currentTarget:(U=S.current)===null||U===void 0?void 0:U.nativeElement,scrollLeft:R})},onScroll:y,extraRender:k},function(B,D,U){var R=s(B.record,D);return p.createElement(uoe,{data:B,rowKey:R,index:D,style:U.style})}))}),Lut=Ub(Dut),Qut=function(t,n){var r=n.ref,a=n.onScroll;return p.createElement(Lut,{ref:r,data:t,onScroll:a})};function zut(e,t){var n=e.data,r=e.columns,a=e.scroll,i=e.sticky,o=e.prefixCls,s=o===void 0?f$e:o,l=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,f=a||{},m=f.x,h=f.y;typeof m!="number"&&(m=1),typeof h!="number"&&(h=500);var g=ar(function(y,S){return ws(u,y)||S}),O=ar(d),v=p.useMemo(function(){return{sticky:i,scrollY:h,listItemHeight:c,getComponent:g,onScroll:O}},[i,h,c,g,O]);return p.createElement(XX.Provider,{value:v},p.createElement(Xb,Ae({},e,{className:le(l,"".concat(s,"-virtual")),scroll:oe(oe({},a),{},{x:m}),components:oe(oe({},u),{},{body:n!=null&&n.length?Qut:void 0}),columns:r,internalHooks:cx,tailor:!0,ref:t})))}var But=p.forwardRef(zut);function h$e(e){return e$e(But,e)}h$e();const Fut=e=>null,Uut=e=>null;var YX=p.createContext(null),jut=p.createContext({}),Xut=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,i=t.isEnd,o="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function ef(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function VX(e){return e.split("-")}function Wut(e,t){var n=[],r=Zs(t,e);function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(o){var s=o.key,l=o.children;n.push(s),a(l)})}return a(r.children),n}function Gut(e){if(e.parent){var t=VX(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Hut(e){var t=VX(e.pos);return Number(t[t.length-1])===0}function poe(e,t,n,r,a,i,o,s,l,c){var u,d=e.clientX,f=e.clientY,m=e.target.getBoundingClientRect(),h=m.top,g=m.height,O=(c==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-d),v=(O-12)/r,y=l.filter(function(R){var $;return($=s[R])===null||$===void 0||($=$.children)===null||$===void 0?void 0:$.length}),S=Zs(s,n.eventKey);if(f-1.5?i({dragNode:B,dropNode:D,dropPosition:1})?I=1:U=!1:i({dragNode:B,dropNode:D,dropPosition:0})?I=0:i({dragNode:B,dropNode:D,dropPosition:1})?I=1:U=!1:i({dragNode:B,dropNode:D,dropPosition:1})?I=1:U=!1,{dropPosition:I,dropLevelOffset:M,dropTargetKey:S.key,dropTargetPos:S.pos,dragOverNodeKey:A,dropContainerKey:I===0?null:((u=S.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:U}}function moe(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function C5(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Xt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Da(!1,"`checkedKeys` is not an array or an object"),null;return t}function W9(e,t){var n=new Set;function r(a){if(!n.has(a)){var i=Zs(t,a);if(i){n.add(a);var o=i.parent,s=i.node;s.disabled||o&&r(o.key)}}}return(e||[]).forEach(function(a){r(a)}),et(n)}const Ep={},G9="SELECT_ALL",H9="SELECT_INVERT",Z9="SELECT_NONE",hoe=[],g$e=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&g$e(e,r[e],n)}),n),Zut=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:i,getTitleCheckboxProps:o,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:h,selections:g,fixed:O,renderCell:v,hideSelectAll:y,checkStrictly:S=!0}=t||{},{prefixCls:C,data:_,pageData:w,getRecordByKey:T,getRowKey:k,expandType:A,childrenColumnName:I,locale:M,getPopupContainer:Q}=e,B=$d(),[D,U]=eYe(ce=>ce),[R,$]=Ir(r||a||hoe,{value:r}),P=p.useRef(new Map),z=p.useCallback(ce=>{if(n){const be=new Map;ce.forEach(ge=>{let Oe=T(ge);!Oe&&P.current.has(ge)&&(Oe=P.current.get(ge)),be.set(ge,Oe)}),P.current=be}},[T,n]);p.useEffect(()=>{z(R)},[R]);const F=p.useMemo(()=>g$e(I,w),[I,w]),{keyEntities:L}=p.useMemo(()=>{if(S)return{keyEntities:null};let ce=_;if(n){const be=new Set(F.map((Oe,me)=>k(Oe,me))),ge=Array.from(P.current).reduce((Oe,[me,Te])=>be.has(me)?Oe:Oe.concat(Te),[]);ce=[].concat(et(ce),et(ge))}return TX(ce,{externalGetKey:k,childrenPropName:I})},[_,k,S,I,n,F]),X=p.useMemo(()=>{const ce=new Map;return F.forEach((be,ge)=>{const Oe=k(be,ge),me=(i?i(be):null)||{};ce.set(Oe,me)}),ce},[F,k,i]),Y=p.useCallback(ce=>{const be=k(ce);let ge;return X.has(be)?ge=X.get(k(ce)):ge=i?i(ce):void 0,!!(ge!=null&&ge.disabled)},[X,k]),[q,G]=p.useMemo(()=>{if(S)return[R||[],[]];const{checkedKeys:ce,halfCheckedKeys:be}=g0(R,!0,L,Y);return[ce||[],be]},[R,S,L,Y]),ee=p.useMemo(()=>{const ce=h==="radio"?q.slice(0,1):q;return new Set(ce)},[q,h]),K=p.useMemo(()=>h==="radio"?new Set:new Set(G),[G,h]);p.useEffect(()=>{t||$(hoe)},[!!t]);const ne=p.useCallback((ce,be)=>{let ge,Oe;z(ce),n?(ge=ce,Oe=ce.map(me=>P.current.get(me))):(ge=[],Oe=[],ce.forEach(me=>{const Te=T(me);Te!==void 0&&(ge.push(me),Oe.push(Te))})),$(ge),s==null||s(ge,Oe,{type:be})},[$,T,s,n]),ie=p.useCallback((ce,be,ge,Oe)=>{if(l){const me=ge.map(Te=>T(Te));l(T(ce),be,me,Oe)}ne(ge,"single")},[l,T,ne]),se=p.useMemo(()=>!g||y?null:(g===!0?[G9,H9,Z9]:g).map(be=>be===G9?{key:"all",text:M.selectionAll,onSelect(){ne(_.map((ge,Oe)=>k(ge,Oe)).filter(ge=>{const Oe=X.get(ge);return!(Oe!=null&&Oe.disabled)||ee.has(ge)}),"all")}}:be===H9?{key:"invert",text:M.selectInvert,onSelect(){const ge=new Set(ee);w.forEach((me,Te)=>{const Ce=k(me,Te),Fe=X.get(Ce);Fe!=null&&Fe.disabled||(ge.has(Ce)?ge.delete(Ce):ge.add(Ce))});const Oe=Array.from(ge);u&&(B.deprecated(!1,"onSelectInvert","onChange"),u(Oe)),ne(Oe,"invert")}}:be===Z9?{key:"none",text:M.selectNone,onSelect(){d==null||d(),ne(Array.from(ee).filter(ge=>{const Oe=X.get(ge);return Oe==null?void 0:Oe.disabled}),"none")}}:be).map(be=>Object.assign(Object.assign({},be),{onSelect:(...ge)=>{var Oe,me;(me=be.onSelect)===null||me===void 0||(Oe=me).call.apply(Oe,[be].concat(ge)),U(null)}})),[g,ee,w,k,u,ne]);return[p.useCallback(ce=>{var be;if(!t)return ce.filter(Ze=>Ze!==Ep);let ge=et(ce);const Oe=new Set(ee),me=F.map(k).filter(Ze=>!X.get(Ze).disabled),Te=me.every(Ze=>Oe.has(Ze)),Ce=me.some(Ze=>Oe.has(Ze)),Fe=()=>{const Ze=[];Te?me.forEach(Ke=>{Oe.delete(Ke),Ze.push(Ke)}):me.forEach(Ke=>{Oe.has(Ke)||(Oe.add(Ke),Ze.push(Ke))});const De=Array.from(Oe);c==null||c(!Te,De.map(Ke=>T(Ke)),Ze.map(Ke=>T(Ke))),ne(De,"all"),U(null)};let Me,Ee;if(h!=="radio"){let Ze;if(se){const we={getPopupContainer:Q,items:se.map((Xe,rt)=>{const{key:at,text:ct,onSelect:mt}=Xe;return{key:at??rt,onClick:()=>{mt==null||mt(me)},label:ct}})};Ze=p.createElement("div",{className:`${C}-selection-extra`},p.createElement(ox,{menu:we,getPopupContainer:Q},p.createElement("span",null,p.createElement(Bk,null))))}const De=F.map((we,Xe)=>{const rt=k(we,Xe),at=X.get(rt)||{};return Object.assign({checked:Oe.has(rt)},at)}).filter(({disabled:we})=>we),Ke=!!De.length&&De.length===F.length,Be=Ke&&De.every(({checked:we})=>we),We=Ke&&De.some(({checked:we})=>we),Re=(o==null?void 0:o())||{},{onChange:Ie,disabled:ve}=Re;Ee=p.createElement(Hp,Object.assign({"aria-label":Ze?"Custom selection":"Select all"},Re,{checked:Ke?Be:!!F.length&&Te,indeterminate:Ke?!Be&&We:!Te&&Ce,onChange:we=>{Fe(),Ie==null||Ie(we)},disabled:ve??(F.length===0||Ke),skipGroup:!0})),Me=!y&&p.createElement("div",{className:`${C}-selection`},Ee,Ze)}let Le;h==="radio"?Le=(Ze,De,Ke)=>{const Be=k(De,Ke),We=Oe.has(Be),Re=X.get(Be);return{node:p.createElement(au,Object.assign({},Re,{checked:We,onClick:Ie=>{var ve;Ie.stopPropagation(),(ve=Re==null?void 0:Re.onClick)===null||ve===void 0||ve.call(Re,Ie)},onChange:Ie=>{var ve;Oe.has(Be)||ie(Be,!0,[Be],Ie.nativeEvent),(ve=Re==null?void 0:Re.onChange)===null||ve===void 0||ve.call(Re,Ie)}})),checked:We}}:Le=(Ze,De,Ke)=>{var Be;const We=k(De,Ke),Re=Oe.has(We),Ie=K.has(We),ve=X.get(We);let we;return A==="nest"?we=Ie:we=(Be=ve==null?void 0:ve.indeterminate)!==null&&Be!==void 0?Be:Ie,{node:p.createElement(Hp,Object.assign({},ve,{indeterminate:we,checked:Re,skipGroup:!0,onClick:Xe=>{var rt;Xe.stopPropagation(),(rt=ve==null?void 0:ve.onClick)===null||rt===void 0||rt.call(ve,Xe)},onChange:Xe=>{var rt;const{nativeEvent:at}=Xe,{shiftKey:ct}=at,mt=me.indexOf(We),je=q.some(Ye=>me.includes(Ye));if(ct&&S&&je){const Ye=D(mt,me,Oe),yt=Array.from(Oe);f==null||f(!Re,yt.map($t=>T($t)),Ye.map($t=>T($t))),ne(yt,"multiple")}else{const Ye=q;if(S){const yt=Re?Bu(Ye,We):ef(Ye,We);ie(We,!Re,yt,at)}else{const yt=g0([].concat(et(Ye),[We]),!0,L,Y),{checkedKeys:$t,halfCheckedKeys:St}=yt;let Mt=$t;if(Re){const Qt=new Set($t);Qt.delete(We),Mt=g0(Array.from(Qt),{halfCheckedKeys:St},L,Y).checkedKeys}ie(We,!Re,Mt,at)}}U(Re?null:mt),(rt=ve==null?void 0:ve.onChange)===null||rt===void 0||rt.call(ve,Xe)}})),checked:Re}};const ze=(Ze,De,Ke)=>{const{node:Be,checked:We}=Le(Ze,De,Ke);return v?v(We,De,Ke,Be):Be};if(!ge.includes(Ep))if(ge.findIndex(Ze=>{var De;return((De=Ze[NS])===null||De===void 0?void 0:De.columnType)==="EXPAND_COLUMN"})===0){const[Ze,...De]=ge;ge=[Ze,Ep].concat(et(De))}else ge=[Ep].concat(et(ge));const Qe=ge.indexOf(Ep);ge=ge.filter((Ze,De)=>Ze!==Ep||De===Qe);const Je=ge[Qe-1],He=ge[Qe+1];let gt=O;gt===void 0&&((He==null?void 0:He.fixed)!==void 0?gt=He.fixed:(Je==null?void 0:Je.fixed)!==void 0&&(gt=Je.fixed)),gt&&Je&&((be=Je[NS])===null||be===void 0?void 0:be.columnType)==="EXPAND_COLUMN"&&Je.fixed===void 0&&(Je.fixed=gt);const st=le(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:g&&h==="checkbox"}),lt=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Ee):t.columnTitle:Me,pt={fixed:gt,width:m,className:`${C}-selection-column`,title:lt(),render:ze,onCell:t.onCell,align:t.align,[NS]:{className:st}};return ge.map(Ze=>Ze===Ep?pt:Ze)},[k,F,t,q,ee,K,m,se,A,X,f,ie,Y]),ee]};function Kut(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:i,expandable:o}=t,s=`${n}-row-expand-icon`;return p.createElement("button",{type:"button",onClick:l=>{r(a,l),l.stopPropagation()},className:le(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&i,[`${s}-collapsed`]:o&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function Jut(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let i=r;if(a){const o=getComputedStyle(a),s=Number.parseInt(o.borderLeftWidth,10),l=Number.parseInt(o.borderRightWidth,10);i=r-s-l}return i}}const Kp=(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 Yb(e,t){return t?`${t}-${e}`:`${e}`}const uA=(e,t)=>typeof e=="function"?e(t):e,edt=(e,t)=>{const n=uA(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var tdt={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"},ndt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:tdt}))},rdt=p.forwardRef(ndt),adt=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*a;break;case 1:i.bottom=0,i.left=-r*a;break;case 0:i.bottom=0,i.left=a;break}return Z.createElement("div",{style:i})};function O$e(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function idt(e,t){var n=p.useState(!1),r=ye(n,2),a=r[0],i=r[1];tr(function(){if(a)return e(),function(){t()}},[a]),tr(function(){return i(!0),function(){i(!1)}},[])}var odt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],sdt=p.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,i=e.motionNodes,o=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,d=ln(e,odt),f=p.useState(!0),m=ye(f,2),h=m[0],g=m[1],O=p.useContext(YX),v=O.prefixCls,y=i&&o!=="hide";tr(function(){i&&y!==h&&g(y)},[i]);var S=function(){i&&s()},C=p.useRef(!1),_=function(){i&&!C.current&&(C.current=!0,l())};idt(S,_);var w=function(k){y===k&&_()};return i?p.createElement(ro,Ae({ref:t,visible:h},a,{motionAppear:o==="show",onVisibleChanged:w}),function(T,k){var A=T.className,I=T.style;return p.createElement("div",{ref:k,className:le("".concat(v,"-treenode-motion"),A),style:I},i.map(function(M){var Q=Object.assign({},(O$e(M.data),M.data)),B=M.title,D=M.key,U=M.isStart,R=M.isEnd;delete Q.children;var $=AS(D,u);return p.createElement(C_,Ae({},Q,$,{title:B,active:c,data:M.data,key:D,isStart:U,isEnd:R}))}))}):p.createElement(C_,Ae({domRef:t,className:n,style:r},d,{active:c}))});function ldt(){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(i,o){var s=new Map;i.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n ").concat(t);return t}var fdt=p.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,i=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,f=e.dragging,m=e.dragOverNodeKey,h=e.dropPosition,g=e.motion,O=e.height,v=e.itemHeight,y=e.virtual,S=e.scrollWidth,C=e.focusable,_=e.activeItem,w=e.focused,T=e.tabIndex,k=e.onKeyDown,A=e.onFocus,I=e.onBlur,M=e.onActiveChange,Q=e.onListChangeStart,B=e.onListChangeEnd,D=ln(e,cdt),U=p.useRef(null),R=p.useRef(null);p.useImperativeHandle(t,function(){return{scrollTo:function(Le){U.current.scrollTo(Le)},getIndentWidth:function(){return R.current.offsetWidth}}});var $=p.useState(a),P=ye($,2),z=P[0],F=P[1],L=p.useState(r),X=ye(L,2),Y=X[0],q=X[1],G=p.useState(r),ee=ye(G,2),K=ee[0],ne=ee[1],ie=p.useState([]),se=ye(ie,2),ue=se[0],ce=se[1],be=p.useState(null),ge=ye(be,2),Oe=ge[0],me=ge[1],Te=p.useRef(r);Te.current=r;function Ce(){var Ee=Te.current;q(Ee),ne(Ee),ce([]),me(null),B()}tr(function(){F(a);var Ee=ldt(z,a);if(Ee.key!==null)if(Ee.add){var Le=Y.findIndex(function(st){var lt=st.key;return lt===Ee.key}),ze=voe(goe(Y,r,Ee.key),y,O,v),Qe=Y.slice();Qe.splice(Le+1,0,boe),ne(Qe),ce(ze),me("show")}else{var Je=r.findIndex(function(st){var lt=st.key;return lt===Ee.key}),He=voe(goe(r,Y,Ee.key),y,O,v),gt=r.slice();gt.splice(Je+1,0,boe),ne(gt),ce(He),me("hide")}else Y!==r&&(q(r),ne(r))},[a,r]),p.useEffect(function(){f||Ce()},[f]);var Fe=g?K:r,Me={expandedKeys:a,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:m,dropPosition:h,keyEntities:u};return p.createElement(p.Fragment,null,w&&_&&p.createElement("span",{style:Ooe,"aria-live":"assertive"},ddt(_)),p.createElement("div",null,p.createElement("input",{style:Ooe,disabled:C===!1||d,tabIndex:C!==!1?T:null,onKeyDown:k,onFocus:A,onBlur:I,value:"",onChange:udt,"aria-label":"for screen reader"})),p.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},p.createElement("div",{className:"".concat(n,"-indent")},p.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),p.createElement(Qk,Ae({},D,{data:Fe,itemKey:yoe,height:O,fullHeight:!1,virtual:y,itemHeight:v,scrollWidth:S,prefixCls:"".concat(n,"-list"),ref:U,role:"tree",onVisibleChange:function(Le){Le.every(function(ze){return yoe(ze)!==Kh})&&Ce()}}),function(Ee){var Le=Ee.pos,ze=Object.assign({},(O$e(Ee.data),Ee.data)),Qe=Ee.title,Je=Ee.key,He=Ee.isStart,gt=Ee.isEnd,st=ax(Je,Le);delete ze.key,delete ze.children;var lt=AS(st,Me);return p.createElement(sdt,Ae({},ze,lt,{title:Qe,active:!!_&&Je===_.key,pos:Le,data:Ee.data,isStart:He,isEnd:gt,motion:g,motionNodes:Je===Kh?ue:null,motionType:Oe,onMotionStart:Q,onMotionEnd:Ce,treeNodeRequiredProps:Me,onMouseMove:function(){M(null)}}))}))}),pdt=10,qX=(function(e){dl(n,e);var t=Wl(n);function n(){var r;_a(this,n);for(var a=arguments.length,i=new Array(a),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,d=r.state,f=d.dragChildrenKeys,m=d.dropPosition,h=d.dropTargetKey,g=d.dropTargetPos,O=d.dropAllowed;if(O){var v=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var y=oe(oe({},AS(h,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===h,data:Zs(r.state.keyEntities,h).node}),S=f.includes(h);Da(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=VX(g),_={event:s,node:Qi(y),dragNode:r.dragNodeProps?Qi(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(f),dropToGap:m!==0,dropPosition:m+Number(C[C.length-1])};u||v==null||v(_),r.dragNodeProps=null}}}),ae(Wt(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),ae(Wt(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,d=c.flattenNodes,f=l.expanded,m=l.key,h=l.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var g=d.filter(function(v){return v.key===m})[0],O=Qi(oe(oe({},AS(m,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(f?Bu(u,m):ef(u,m)),r.onNodeExpand(s,O)}}),ae(Wt(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,d=c.expandAction;d==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ae(Wt(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,d=c.expandAction;d==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ae(Wt(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,d=u.keyEntities,f=u.fieldNames,m=r.props,h=m.onSelect,g=m.multiple,O=l.selected,v=l[f.key],y=!O;y?g?c=ef(c,v):c=[v]:c=Bu(c,v);var S=c.map(function(C){var _=Zs(d,C);return _?_.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),h==null||h(c,{event:"select",selected:y,node:l,selectedNodes:S,nativeEvent:s.nativeEvent})}),ae(Wt(r),"onNodeCheck",function(s,l,c){var u=r.state,d=u.keyEntities,f=u.checkedKeys,m=u.halfCheckedKeys,h=r.props,g=h.checkStrictly,O=h.onCheck,v=l.key,y,S={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var C=c?ef(f,v):Bu(f,v),_=Bu(m,v);y={checked:C,halfChecked:_},S.checkedNodes=C.map(function(M){return Zs(d,M)}).filter(Boolean).map(function(M){return M.node}),r.setUncontrolledState({checkedKeys:C})}else{var w=g0([].concat(et(f),[v]),!0,d),T=w.checkedKeys,k=w.halfCheckedKeys;if(!c){var A=new Set(T);A.delete(v);var I=g0(Array.from(A),{halfCheckedKeys:k},d);T=I.checkedKeys,k=I.halfCheckedKeys}y=T,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=k,T.forEach(function(M){var Q=Zs(d,M);if(Q){var B=Q.node,D=Q.pos;S.checkedNodes.push(B),S.checkedNodesPositions.push({node:B,pos:D})}}),r.setUncontrolledState({checkedKeys:T},!1,{halfCheckedKeys:k})}O==null||O(y,S)}),ae(Wt(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,d=Zs(u,c);if(!(d!=null&&(l=d.children)!==null&&l!==void 0&&l.length)){var f=new Promise(function(m,h){r.setState(function(g){var O=g.loadedKeys,v=O===void 0?[]:O,y=g.loadingKeys,S=y===void 0?[]:y,C=r.props,_=C.loadData,w=C.onLoad;if(!_||v.includes(c)||S.includes(c))return null;var T=_(s);return T.then(function(){var k=r.state.loadedKeys,A=ef(k,c);w==null||w(A,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:A}),r.setState(function(I){return{loadingKeys:Bu(I.loadingKeys,c)}}),m()}).catch(function(k){if(r.setState(function(I){return{loadingKeys:Bu(I.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=pdt){var A=r.state.loadedKeys;Da(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ef(A,c)}),m()}h(k)}),{loadingKeys:ef(S,c)}})});return f.catch(function(){}),f}}),ae(Wt(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),ae(Wt(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),ae(Wt(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ae(Wt(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,d=!0,f={};Object.keys(s).forEach(function(m){if(r.props.hasOwnProperty(m)){d=!1;return}u=!0,f[m]=s[m]}),u&&(!l||d)&&r.setState(oe(oe({},f),c))}}),ae(Wt(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Ea(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,i=a.activeKey,o=a.itemScrollOffset,s=o===void 0?0:o;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,i=a.focused,o=a.flattenNodes,s=a.keyEntities,l=a.draggingNodeKey,c=a.activeKey,u=a.dropLevelOffset,d=a.dropContainerKey,f=a.dropTargetKey,m=a.dropPosition,h=a.dragOverNodeKey,g=a.indent,O=this.props,v=O.prefixCls,y=O.className,S=O.style,C=O.showLine,_=O.focusable,w=O.tabIndex,T=w===void 0?0:w,k=O.selectable,A=O.showIcon,I=O.icon,M=O.switcherIcon,Q=O.draggable,B=O.checkable,D=O.checkStrictly,U=O.disabled,R=O.motion,$=O.loadData,P=O.filterTreeNode,z=O.height,F=O.itemHeight,L=O.scrollWidth,X=O.virtual,Y=O.titleRender,q=O.dropIndicatorRender,G=O.onContextMenu,ee=O.onScroll,K=O.direction,ne=O.rootClassName,ie=O.rootStyle,se=vi(this.props,{aria:!0,data:!0}),ue;Q&&(Xt(Q)==="object"?ue=Q:typeof Q=="function"?ue={nodeDraggable:Q}:ue={});var ce={prefixCls:v,selectable:k,showIcon:A,icon:I,switcherIcon:M,draggable:ue,draggingNodeKey:l,checkable:B,checkStrictly:D,disabled:U,keyEntities:s,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:m,dragOverNodeKey:h,indent:g,direction:K,dropIndicatorRender:q,loadData:$,filterTreeNode:P,titleRender:Y,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 p.createElement(YX.Provider,{value:ce},p.createElement("div",{className:le(v,y,ne,ae(ae(ae({},"".concat(v,"-show-line"),C),"".concat(v,"-focused"),i),"".concat(v,"-active-focused"),c!==null)),style:ie},p.createElement(fdt,Ae({ref:this.listRef,prefixCls:v,style:S,data:o,disabled:U,selectable:k,checkable:!!B,motion:R,dragging:l!==null,height:z,itemHeight:F,virtual:X,focusable:_,focused:i,tabIndex:T,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:G,onScroll:ee,scrollWidth:L},this.getTreeNodeRequiredProps(),se))))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,s={prevProps:a};function l(T){return!o&&a.hasOwnProperty(T)||o&&o[T]!==a[T]}var c,u=i.fieldNames;if(l("fieldNames")&&(u=Z0(a.fieldNames),s.fieldNames=u),l("treeData")?c=a.treeData:l("children")&&(Da(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=KCe(a.children)),c){s.treeData=c;var d=TX(c,{fieldNames:u});s.keyEntities=oe(ae({},Kh,b$e),d.keyEntities)}var f=s.keyEntities||i.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!o&&a.defaultExpandParent?W9(a.expandedKeys,f):a.expandedKeys;else if(!o&&a.defaultExpandAll){var m=oe({},f);delete m[Kh];var h=[];Object.keys(m).forEach(function(T){var k=m[T];k.children&&k.children.length&&h.push(k.key)}),s.expandedKeys=h}else!o&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?W9(a.defaultExpandedKeys,f):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=v5(c||i.treeData,s.expandedKeys||i.expandedKeys,u);s.flattenNodes=g}if(a.selectable&&(l("selectedKeys")?s.selectedKeys=moe(a.selectedKeys,a):!o&&a.defaultSelectedKeys&&(s.selectedKeys=moe(a.defaultSelectedKeys,a))),a.checkable){var O;if(l("checkedKeys")?O=C5(a.checkedKeys)||{}:!o&&a.defaultCheckedKeys?O=C5(a.defaultCheckedKeys)||{}:c&&(O=C5(a.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),O){var v=O,y=v.checkedKeys,S=y===void 0?[]:y,C=v.halfCheckedKeys,_=C===void 0?[]:C;if(!a.checkStrictly){var w=g0(S,!0,f);S=w.checkedKeys,_=w.halfCheckedKeys}s.checkedKeys=S,s.halfCheckedKeys=_}}return l("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),n})(p.Component);ae(qX,"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:adt,allowDrop:function(){return!0},expandAction:!1});ae(qX,"TreeNode",C_);var mdt={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"},hdt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:mdt}))},v$e=p.forwardRef(hdt),gdt={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"},Odt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:gdt}))},bdt=p.forwardRef(Odt),vdt={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"},ydt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:vdt}))},Sdt=p.forwardRef(ydt),_dt={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"},Edt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:_dt}))},xdt=p.forwardRef(Edt);const Tdt=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:i,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:i},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),wdt=new kr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Cdt=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),$dt=(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:`${de(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Rdt=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:i,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},Qr(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)`]:wc(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:wdt,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:de(i),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:u},[`${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:i,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},Cdt(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${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(i).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},$dt(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,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(i).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:`${de(t.calc(i).div(2).equal())} !important`}})}},Pdt=(e,t,n=!0)=>{const r=`.${e}`,a=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=nr(t,{treeCls:r,treeNodeCls:a,treeNodePadding:i});return[Rdt(e,o),n&&Tdt(o)].filter(Boolean)},kdt=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}},Adt=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},kdt(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},Ndt=Er("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:e2e(`${t}-checkbox`,e)},Pdt(t,e),_k(e)],Adt),Soe=4;function Idt(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:i="ltr"}=e,o=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",l={[o]:-n*a+Soe,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=a+Soe;break}return Z.createElement("div",{style:l,className:`${r}-drop-indicator`})}var Mdt={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"},Ddt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Mdt}))},Ldt=p.forwardRef(Ddt),Qdt={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"},zdt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Qdt}))},Bdt=p.forwardRef(zdt),Fdt={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"},Udt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Fdt}))},jdt=p.forwardRef(Udt);const Xdt=e=>{var t,n;const{prefixCls:r,switcherIcon:a,treeNodeProps:i,showLine:o,switcherLoadingIcon:s}=e,{isLeaf:l,expanded:c,loading:u}=i;if(u)return p.isValidElement(s)?s:p.createElement(vu,{className:`${r}-switcher-loading-icon`});let d;if(o&&typeof o=="object"&&(d=o.showLeafIcon),l){if(!o)return null;if(typeof d!="boolean"&&d){const h=typeof d=="function"?d(i):d,g=`${r}-switcher-line-custom-icon`;return p.isValidElement(h)?To(h,{className:le((t=h.props)===null||t===void 0?void 0:t.className,g)}):h}return d?p.createElement(v$e,{className:`${r}-switcher-line-icon`}):p.createElement("span",{className:`${r}-switcher-leaf-line`})}const f=`${r}-switcher-icon`,m=typeof a=="function"?a(i):a;return p.isValidElement(m)?To(m,{className:le((n=m.props)===null||n===void 0?void 0:n.className,f)}):m!==void 0?m:o?c?p.createElement(Bdt,{className:`${r}-switcher-line-icon`}):p.createElement(jdt,{className:`${r}-switcher-line-icon`}):p.createElement(Ldt,{className:f})},y$e=Z.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:i,tree:o}=Z.useContext(pn),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:d,switcherLoadingIcon:f,blockNode:m=!1,children:h,checkable:g=!1,selectable:O=!0,draggable:v,disabled:y,motion:S,style:C}=e,_=r("tree",s),w=r(),T=Z.useContext(jo),k=y??T,A=S??Object.assign(Object.assign({},v_(w)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:g,selectable:O,showIcon:c,motion:A,blockNode:m,disabled:k,showLine:!!u,dropIndicatorRender:Idt}),[M,Q,B]=Ndt(_),[,D]=co(),U=D.paddingXS/2+(((n=D.Tree)===null||n===void 0?void 0:n.titleHeight)||D.controlHeightSM),R=Z.useMemo(()=>{if(!v)return!1;let P={};switch(typeof v){case"function":P.nodeDraggable=v;break;case"object":P=Object.assign({},v);break}return P.icon!==!1&&(P.icon=P.icon||Z.createElement(xdt,null)),P},[v]),$=P=>Z.createElement(Xdt,{prefixCls:_,switcherIcon:d,switcherLoadingIcon:f,treeNodeProps:P,showLine:u});return M(Z.createElement(qX,Object.assign({itemHeight:U,ref:t,virtual:i},I,{style:Object.assign(Object.assign({},o==null?void 0:o.style),C),prefixCls:_,className:le({[`${_}-icon-hide`]:!c,[`${_}-block-node`]:m,[`${_}-unselectable`]:!O,[`${_}-rtl`]:a==="rtl",[`${_}-disabled`]:k},o==null?void 0:o.className,l,Q,B),direction:a,checkable:g&&Z.createElement("span",{className:`${_}-checkbox-inner`}),selectable:O,switcherIcon:$,draggable:R}),h))}),_oe=0,$5=1,Eoe=2;function WX(e,t,n){const{key:r,children:a}=n;function i(o){const s=o[r],l=o[a];t(s,o)!==!1&&WX(l||[],t,n)}e.forEach(i)}function Ydt({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:a}){const i=[];let o=_oe;if(n&&n===r)return[n];if(!n||!r)return[];function s(l){return l===n||l===r}return WX(e,l=>{if(o===Eoe)return!1;if(s(l)){if(i.push(l),o===_oe)o=$5;else if(o===$5)return o=Eoe,!1}else o===$5&&i.push(l);return t.includes(l)},Z0(a)),i}function R5(e,t,n){const r=et(t),a=[];return WX(e,(i,o)=>{const s=r.indexOf(i);return s!==-1&&(a.push(o),r.splice(s,1)),!!r.length},Z0(n)),a}var xoe=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,i=xoe(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=p.useRef(null),s=p.useRef(null),l=()=>{const{keyEntities:k}=TX(Toe(i),{fieldNames:i.fieldNames});let A;return n?A=Object.keys(k):r?A=W9(i.expandedKeys||a||[],k):A=i.expandedKeys||a||[],A},[c,u]=p.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[d,f]=p.useState(()=>l());p.useEffect(()=>{"selectedKeys"in i&&u(i.selectedKeys)},[i.selectedKeys]),p.useEffect(()=>{"expandedKeys"in i&&f(i.expandedKeys)},[i.expandedKeys]);const m=(k,A)=>{var I;return"expandedKeys"in i||f(k),(I=i.onExpand)===null||I===void 0?void 0:I.call(i,k,A)},h=(k,A)=>{var I;const{multiple:M,fieldNames:Q}=i,{node:B,nativeEvent:D}=A,{key:U=""}=B,R=Toe(i),$=Object.assign(Object.assign({},A),{selected:!0}),P=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),z=D==null?void 0:D.shiftKey;let F;M&&P?(F=k,o.current=U,s.current=F,$.selectedNodes=R5(R,F,Q)):M&&z?(F=Array.from(new Set([].concat(et(s.current||[]),et(Ydt({treeData:R,expandedKeys:d,startKey:U,endKey:o.current,fieldNames:Q}))))),$.selectedNodes=R5(R,F,Q)):(F=[U],o.current=U,s.current=F,$.selectedNodes=R5(R,F,Q)),(I=i.onSelect)===null||I===void 0||I.call(i,F,$),"selectedKeys"in i||u(F)},{getPrefixCls:g,direction:O}=p.useContext(pn),{prefixCls:v,className:y,showIcon:S=!0,expandAction:C="click"}=i,_=xoe(i,["prefixCls","className","showIcon","expandAction"]),w=g("tree",v),T=le(`${w}-directory`,{[`${w}-directory-rtl`]:O==="rtl"},y);return p.createElement(y$e,Object.assign({icon:Vdt,ref:t,blockNode:!0},_,{showIcon:S,expandAction:C,prefixCls:w,className:T,expandedKeys:d,selectedKeys:c,onSelect:h,onExpand:m}))},Wdt=p.forwardRef(qdt),GX=y$e;GX.DirectoryTree=Wdt;GX.TreeNode=C_;const woe=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:i}=e;return n?p.createElement("div",{className:`${r}-filter-dropdown-search`},p.createElement(ix,{prefix:p.createElement(Jj,null),placeholder:a.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Gdt=e=>{const{keyCode:t}=e;t===Ht.ENTER&&e.stopPropagation()},Hdt=p.forwardRef((e,t)=>p.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:Gdt,ref:t},e.children));function O0(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(et(t),et(O0(r))))}),t}function Zdt(e){return e.some(({children:t})=>t)}function S$e(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function _$e({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:i}){return e.map((o,s)=>{const l=String(o.value);if(o.children)return{key:l||s,label:o.text,popupClassName:`${t}-dropdown-submenu`,children:_$e({filters:o.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:a,filterSearch:i})};const c=r?Hp:au,u={key:o.value!==void 0?l:s,label:p.createElement(p.Fragment,null,p.createElement(c,{checked:n.includes(l)}),p.createElement("span",null,o.text))};return a.trim()?typeof i=="function"?i(a,o)?u:null:S$e(a,o.text)?u:null:u})}function P5(e){return e||[]}const Kdt=e=>{var t,n,r,a;const{tablePrefixCls:i,prefixCls:o,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:d,filterMode:f="menu",filterSearch:m=!1,filterState:h,triggerFilter:g,locale:O,children:v,getPopupContainer:y,rootClassName:S}=e,{filterResetToDefaultFilteredValue:C,defaultFilteredValue:_,filterDropdownProps:w={},filterDropdownOpen:T,filterDropdownVisible:k,onFilterDropdownVisibleChange:A,onFilterDropdownOpenChange:I}=s,[M,Q]=p.useState(!1),B=!!(h&&(!((t=h.filteredKeys)===null||t===void 0)&&t.length||h.forceFiltered)),D=Ee=>{var Le;Q(Ee),(Le=w.onOpenChange)===null||Le===void 0||Le.call(w,Ee),I==null||I(Ee),A==null||A(Ee)},U=(a=(r=(n=w.open)!==null&&n!==void 0?n:T)!==null&&r!==void 0?r:k)!==null&&a!==void 0?a:M,R=h==null?void 0:h.filteredKeys,[$,P]=aYe(P5(R)),z=({selectedKeys:Ee})=>{P(Ee)},F=(Ee,{node:Le,checked:ze})=>{z(d?{selectedKeys:Ee}:{selectedKeys:ze&&Le.key?[Le.key]:[]})};p.useEffect(()=>{M&&z({selectedKeys:P5(R)})},[R]);const[L,X]=p.useState([]),Y=Ee=>{X(Ee)},[q,G]=p.useState(""),ee=Ee=>{const{value:Le}=Ee.target;G(Le)};p.useEffect(()=>{M||G("")},[M]);const K=Ee=>{const Le=Ee!=null&&Ee.length?Ee:null;if(Le===null&&(!h||!h.filteredKeys)||Bl(Le,h==null?void 0:h.filteredKeys,!0))return null;g({column:s,key:c,filteredKeys:Le})},ne=()=>{D(!1),K($())},ie=({confirm:Ee,closeDropdown:Le}={confirm:!1,closeDropdown:!1})=>{Ee&&K([]),Le&&D(!1),G(""),P(C?(_||[]).map(ze=>String(ze)):[])},se=({closeDropdown:Ee}={closeDropdown:!0})=>{Ee&&D(!1),K($())},ue=(Ee,Le)=>{Le.source==="trigger"&&(Ee&&R!==void 0&&P(P5(R)),D(Ee),!Ee&&!s.filterDropdown&&u&&ne())},ce=le({[`${l}-menu-without-submenu`]:!Zdt(s.filters||[])}),be=Ee=>{if(Ee.target.checked){const Le=O0(s==null?void 0:s.filters).map(ze=>String(ze));P(Le)}else P([])},ge=({filters:Ee})=>(Ee||[]).map((Le,ze)=>{const Qe=String(Le.value),Je={title:Le.text,key:Le.value!==void 0?Qe:String(ze)};return Le.children&&(Je.children=ge({filters:Le.children})),Je}),Oe=Ee=>{var Le;return Object.assign(Object.assign({},Ee),{text:Ee.title,value:Ee.key,children:((Le=Ee.children)===null||Le===void 0?void 0:Le.map(ze=>Oe(ze)))||[]})};let me;const{direction:Te,renderEmpty:Ce}=p.useContext(pn);if(typeof s.filterDropdown=="function")me=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:Ee=>z({selectedKeys:Ee}),selectedKeys:$(),confirm:se,clearFilters:ie,filters:s.filters,visible:U,close:()=>{D(!1)}});else if(s.filterDropdown)me=s.filterDropdown;else{const Ee=$()||[],Le=()=>{var Qe,Je;const He=(Qe=Ce==null?void 0:Ce("Table.filter"))!==null&&Qe!==void 0?Qe:p.createElement(ff,{image:ff.PRESENTED_IMAGE_SIMPLE,description:O.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return He;if(f==="tree")return p.createElement(p.Fragment,null,p.createElement(woe,{filterSearch:m,value:q,onChange:ee,tablePrefixCls:i,locale:O}),p.createElement("div",{className:`${i}-filter-dropdown-tree`},d?p.createElement(Hp,{checked:Ee.length===O0(s.filters).length,indeterminate:Ee.length>0&&Ee.lengthtypeof m=="function"?m(q,Oe(lt)):S$e(q,lt.title):void 0})));const gt=_$e({filters:s.filters||[],filterSearch:m,prefixCls:o,filteredKeys:$(),filterMultiple:d,searchValue:q}),st=gt.every(lt=>lt===null);return p.createElement(p.Fragment,null,p.createElement(woe,{filterSearch:m,value:q,onChange:ee,tablePrefixCls:i,locale:O}),st?He:p.createElement(Tg,{selectable:!0,multiple:d,prefixCls:`${l}-menu`,className:ce,onSelect:z,onDeselect:z,selectedKeys:Ee,getPopupContainer:y,openKeys:L,onOpenChange:Y,items:gt}))},ze=()=>C?Bl((_||[]).map(Qe=>String(Qe)),Ee,!0):Ee.length===0;me=p.createElement(p.Fragment,null,Le(),p.createElement("div",{className:`${o}-dropdown-btns`},p.createElement(Ur,{type:"link",size:"small",disabled:ze(),onClick:()=>ie()},O.filterReset),p.createElement(Ur,{type:"primary",size:"small",onClick:ne},O.filterConfirm)))}s.filterDropdown&&(me=p.createElement(Gwe,{selectable:void 0},me)),me=p.createElement(Hdt,{className:`${o}-dropdown`},me);const Me=Q$({trigger:["click"],placement:Te==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let Ee;return typeof s.filterIcon=="function"?Ee=s.filterIcon(B):s.filterIcon?Ee=s.filterIcon:Ee=p.createElement(rdt,null),p.createElement("span",{role:"button",tabIndex:-1,className:le(`${o}-trigger`,{active:B}),onClick:Le=>{Le.stopPropagation()}},Ee)})(),getPopupContainer:y},Object.assign(Object.assign({},w),{rootClassName:le(S,w.rootClassName),open:U,onOpenChange:ue,popupRender:()=>typeof(w==null?void 0:w.dropdownRender)=="function"?w.dropdownRender(me):me}));return p.createElement("div",{className:`${o}-column`},p.createElement("span",{className:`${i}-column-title`},v),p.createElement(ox,Object.assign({},Me)))},J9=(e,t,n)=>{let r=[];return(e||[]).forEach((a,i)=>{var o;const s=Yb(i,n),l=a.filterDropdown!==void 0;if(a.filters||l||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;l||(c=(o=c==null?void 0:c.map(String))!==null&&o!==void 0?o:c),r.push({column:a,key:Kp(a,s),filteredKeys:c,forceFiltered:a.filtered})}else r.push({column:a,key:Kp(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(et(r),et(J9(a.children,t,s))))}),r};function E$e(e,t,n,r,a,i,o,s,l){return n.map((c,u)=>{const d=Yb(u,s),{filterOnClose:f=!0,filterMultiple:m=!0,filterMode:h,filterSearch:g}=c;let O=c;if(O.filters||O.filterDropdown){const v=Kp(O,d),y=r.find(({key:S})=>v===S);O=Object.assign(Object.assign({},O),{title:S=>p.createElement(Kdt,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:O,columnKey:v,filterState:y,filterOnClose:f,filterMultiple:m,filterMode:h,filterSearch:g,triggerFilter:i,locale:a,getPopupContainer:o,rootClassName:l},uA(c.title,S))})}return"children"in O&&(O=Object.assign(Object.assign({},O),{children:E$e(e,t,O.children,r,a,i,o,d,l)})),O})}const Coe=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:a})=>{const i=n,{filters:o,filterDropdown:s}=a;if(s)t[i]=r||null;else if(Array.isArray(r)){const l=O0(o);t[i]=l.filter(c=>r.includes(String(c)))}else t[i]=null}),t},ez=(e,t,n)=>t.reduce((a,i)=>{const{column:{onFilter:o,filters:s},filteredKeys:l}=i;return o&&l&&l.length?a.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const d=O0(s),f=d.findIndex(h=>String(h)===String(u)),m=f!==-1?d[f]:u;return c[n]&&(c[n]=ez(c[n],t,n)),o(m,c)})):a},e),x$e=e=>e.flatMap(t=>"children"in t?[t].concat(et(x$e(t.children||[]))):[t]),Jdt=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:i,locale:o,rootClassName:s}=e;$d();const l=p.useMemo(()=>x$e(r||[]),[r]),[c,u]=p.useState(()=>J9(l,!0)),d=p.useMemo(()=>{const g=J9(l,!1);if(g.length===0)return g;let O=!0;if(g.forEach(({filteredKeys:v})=>{v!==void 0&&(O=!1)}),O){const v=(l||[]).map((y,S)=>Kp(y,Yb(S)));return c.filter(({key:y})=>v.includes(y)).map(y=>{const S=l[v.indexOf(y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),S),forceFiltered:S.filtered})})}return g},[l,c]),f=p.useMemo(()=>Coe(d),[d]),m=g=>{const O=d.filter(({key:v})=>v!==g.key);O.push(g),u(O),a(Coe(O),O)};return[g=>E$e(t,n,g,d,o,m,i,void 0,s),d,f]},eft=(e,t,n)=>{const r=p.useRef({});function a(i){var o;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,d)=>{const f=n(u,d);s.set(f,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const s=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(o=r.current.kvMap)===null||o===void 0?void 0:o.get(i)}return[a]};var tft=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 i=e[a];typeof i!="function"&&(n[a]=i)}),n}function rft(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,i=tft(r,["total"]),[o,s]=p.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:T$e})),l=Q$(o,i,{total:a>0?a:e}),c=Math.ceil((a||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(f,m)=>{s({current:f??1,pageSize:m||l.pageSize})},d=(f,m)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,f,m)),u(f,m),t(f,m||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:d}),u]}var aft={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"},ift=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:aft}))},oft=p.forwardRef(ift),sft={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"},lft=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:sft}))},cft=p.forwardRef(lft);const I2="ascend",k5="descend",rR=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,$oe=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,uft=(e,t)=>t?e[e.indexOf(t)+1]:e[0],tz=(e,t,n)=>{let r=[];const a=(i,o)=>{r.push({column:i,key:Kp(i,o),multiplePriority:rR(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,o)=>{const s=Yb(o,n);i.children?("sortOrder"in i&&a(i,s),r=[].concat(et(r),et(tz(i.children,t,s)))):i.sorter&&("sortOrder"in i?a(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:Kp(i,s),multiplePriority:rR(i),sortOrder:i.defaultSortOrder}))}),r},w$e=(e,t,n,r,a,i,o,s)=>(t||[]).map((c,u)=>{const d=Yb(u,s);let f=c;if(f.sorter){const m=f.sortDirections||a,h=f.showSorterTooltip===void 0?o:f.showSorterTooltip,g=Kp(f,d),O=n.find(({key:A})=>A===g),v=O?O.sortOrder:null,y=uft(m,v);let S;if(c.sortIcon)S=c.sortIcon({sortOrder:v});else{const A=m.includes(I2)&&p.createElement(cft,{className:le(`${e}-column-sorter-up`,{active:v===I2})}),I=m.includes(k5)&&p.createElement(oft,{className:le(`${e}-column-sorter-down`,{active:v===k5})});S=p.createElement("span",{className:le(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(A&&I)})},p.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},A,I))}const{cancelSort:C,triggerAsc:_,triggerDesc:w}=i||{};let T=C;y===k5?T=w:y===I2&&(T=_);const k=typeof h=="object"?Object.assign({title:T},h):{title:T};f=Object.assign(Object.assign({},f),{className:le(f.className,{[`${e}-column-sort`]:v}),title:A=>{const I=`${e}-column-sorters`,M=p.createElement("span",{className:`${e}-column-title`},uA(c.title,A)),Q=p.createElement("div",{className:I},M,S);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?p.createElement("div",{className:le(I,`${I}-tooltip-target-sorter`)},M,p.createElement(wo,Object.assign({},k),S)):p.createElement(wo,Object.assign({},k),Q):Q},onHeaderCell:A=>{var I;const M=((I=c.onHeaderCell)===null||I===void 0?void 0:I.call(c,A))||{},Q=M.onClick,B=M.onKeyDown;M.onClick=R=>{r({column:c,key:g,sortOrder:y,multiplePriority:rR(c)}),Q==null||Q(R)},M.onKeyDown=R=>{R.keyCode===Ht.ENTER&&(r({column:c,key:g,sortOrder:y,multiplePriority:rR(c)}),B==null||B(R))};const D=edt(c.title,{}),U=D==null?void 0:D.toString();return v&&(M["aria-sort"]=v==="ascend"?"ascending":"descending"),M["aria-label"]=U||"",M.className=le(M.className,`${e}-column-has-sorters`),M.tabIndex=0,c.ellipsis&&(M.title=(D??"").toString()),M}})}return"children"in f&&(f=Object.assign(Object.assign({},f),{children:w$e(e,f.children,n,r,a,i,o,d)})),f}),Roe=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Poe=e=>{const t=e.filter(({sortOrder:n})=>n).map(Roe);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},Roe(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},nz=(e,t,n)=>{const r=t.slice().sort((o,s)=>s.multiplePriority-o.multiplePriority),a=e.slice(),i=r.filter(({column:{sorter:o},sortOrder:s})=>$oe(o)&&s);return i.length?a.sort((o,s)=>{for(let l=0;l{const s=o[n];return s?Object.assign(Object.assign({},o),{[n]:nz(s,t,n)}):o}):a},dft=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:i,onSorterChange:o}=e,[s,l]=p.useState(()=>tz(n,!0)),c=(g,O)=>{const v=[];return g.forEach((y,S)=>{const C=Yb(S,O);if(v.push(Kp(y,C)),Array.isArray(y.children)){const _=c(y.children,C);v.push.apply(v,et(_))}}),v},u=p.useMemo(()=>{let g=!0;const O=tz(n,!1);if(!O.length){const C=c(n);return s.filter(({key:_})=>C.includes(_))}const v=[];function y(C){g?v.push(C):v.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let S=null;return O.forEach(C=>{S===null?(y(C),C.sortOrder&&(C.multiplePriority===!1?g=!1:S=!0)):(S&&C.multiplePriority!==!1||(g=!1),y(C))}),v},[n,s]),d=p.useMemo(()=>{var g,O;const v=u.map(({column:y,sortOrder:S})=>({column:y,order:S}));return{sortColumns:v,sortColumn:(g=v[0])===null||g===void 0?void 0:g.column,sortOrder:(O=v[0])===null||O===void 0?void 0:O.order}},[u]),f=g=>{let O;g.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?O=[g]:O=[].concat(et(u.filter(({key:v})=>v!==g.key)),[g]),l(O),o(Poe(O),O)};return[g=>w$e(t,g,u,f,r,a,i),u,d,()=>Poe(u)]},C$e=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=uA(r.title,t),"children"in a&&(a.children=C$e(a.children,t)),a}),fft=e=>[p.useCallback(n=>C$e(n,e),[e])],pft=p$e((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),mft=h$e((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),hft=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:i,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:l}=e,c=`${de(n)} ${r} ${a}`,u=(d,f,m)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${de(l(f).mul(-1).equal())} ${de(l(l(m).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[` > ${t}-content, > ${t}-header, @@ -381,10 +381,10 @@ html body { `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${de(l(o).mul(-1).equal())} ${de(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${de(n)} 0 ${de(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},Bdt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ll),{wordBreak:"keep-all",[` + `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${de(n)} 0 ${de(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},gft=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},ll),{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"}})}}},Fdt=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}}}}},Udt=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:i,lineType:o,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:m,paddingXXS:h,expandIconMarginTop:g,expandIconSize:O,expandIconHalfInner:v,expandIconScale:y,calc:S}=e,C=`${de(a)} ${o} ${s}`,_=S(h).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},oj(e)),{position:"relative",float:"left",width:O,height:O,color:"inherit",lineHeight:de(O),background:l,border:C,borderRadius:u,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:_,insetInlineStart:_,height:a},"&::after":{top:_,bottom:_,insetInlineStart:v,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${de(S(d).mul(-1).equal())} ${de(S(f).mul(-1).equal())}`,padding:`${de(d)} ${de(f)}`}}}},jdt=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:i,paddingXXS:o,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:m,tablePaddingHorizontal:h,borderRadius:g,motionDurationSlow:O,colorIcon:v,colorPrimary:y,tableHeaderFilterActiveBg:S,colorTextDisabled:C,tableFilterDropdownBg:_,tableFilterDropdownHeight:w,controlItemBgHover:T,controlItemBgActive:A,boxShadowSecondary:k,filterDropdownMenuBg:I,calc:M}=e,Q=`${n}-dropdown`,F=`${t}-filter-dropdown`,L=`${n}-tree`,U=`${de(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:M(o).mul(-1).equal(),marginInline:`${de(o)} ${de(M(h).div(2).mul(-1).equal())}`,padding:`0 ${de(o)}`,color:f,fontSize:m,borderRadius:g,cursor:"pointer",transition:`all ${O}`,"&:hover":{color:v,background:S},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[F]:Object.assign(Object.assign({},zr(e)),{minWidth:a,backgroundColor:_,borderRadius:g,boxShadow:k,overflow:"hidden",[`${Q}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${de(s)} 0`,color:C,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${F}-tree`]:{paddingBlock:`${de(s)} 0`,paddingInline:s,[L]:{padding:0},[`${L}-treenode ${L}-node-content-wrapper:hover`]:{backgroundColor:T},[`${L}-treenode-checkbox-checked ${L}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:A}}},[`${F}-search`]:{padding:s,borderBottom:U,"&-input":{input:{minWidth:i},[r]:{color:C}}},[`${F}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${F}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${de(M(s).sub(c).equal())} ${de(s)}`,overflow:"hidden",borderTop:U}})}},{[`${n}-dropdown ${F}, ${F}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Xdt=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:i,tableBg:o,zIndexTableSticky:s,calc:l}=e,c=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"}})}}},Oft=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}}}}},bft=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:i,lineType:o,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:f,tableExpandedRowBg:m,paddingXXS:h,expandIconMarginTop:g,expandIconSize:O,expandIconHalfInner:v,expandIconScale:y,calc:S}=e,C=`${de(a)} ${o} ${s}`,_=S(h).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},Pj(e)),{position:"relative",float:"left",width:O,height:O,color:"inherit",lineHeight:de(O),background:l,border:C,borderRadius:u,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:v,insetInlineEnd:_,insetInlineStart:_,height:a},"&::after":{top:_,bottom:_,insetInlineStart:v,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${de(S(d).mul(-1).equal())} ${de(S(f).mul(-1).equal())}`,padding:`${de(d)} ${de(f)}`}}}},vft=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:i,paddingXXS:o,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:f,fontSizeSM:m,tablePaddingHorizontal:h,borderRadius:g,motionDurationSlow:O,colorIcon:v,colorPrimary:y,tableHeaderFilterActiveBg:S,colorTextDisabled:C,tableFilterDropdownBg:_,tableFilterDropdownHeight:w,controlItemBgHover:T,controlItemBgActive:k,boxShadowSecondary:A,filterDropdownMenuBg:I,calc:M}=e,Q=`${n}-dropdown`,B=`${t}-filter-dropdown`,D=`${n}-tree`,U=`${de(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:M(o).mul(-1).equal(),marginInline:`${de(o)} ${de(M(h).div(2).mul(-1).equal())}`,padding:`0 ${de(o)}`,color:f,fontSize:m,borderRadius:g,cursor:"pointer",transition:`all ${O}`,"&:hover":{color:v,background:S},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[B]:Object.assign(Object.assign({},Qr(e)),{minWidth:a,backgroundColor:_,borderRadius:g,boxShadow:A,overflow:"hidden",[`${Q}-menu`]:{maxHeight:w,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${de(s)} 0`,color:C,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${B}-tree`]:{paddingBlock:`${de(s)} 0`,paddingInline:s,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:T},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${B}-search`]:{padding:s,borderBottom:U,"&-input":{input:{minWidth:i},[r]:{color:C}}},[`${B}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${B}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${de(M(s).sub(c).equal())} ${de(s)}`,overflow:"hidden",borderTop:U}})}},{[`${n}-dropdown ${B}, ${B}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},yft=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:i,tableBg:o,zIndexTableSticky:s,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:i,background:o},[` @@ -404,11 +404,11 @@ html body { ${t}-cell-fix-left-last::after, ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},Ydt=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${de(r)} 0`}}},Vdt=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${de(n)} ${de(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 ${de(n)} ${de(n)}`}}}}},qdt=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"}}}}},Wdt=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:i,paddingXS:o,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:m,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(a).add(h(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(c).add(h(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(a).add(h(i).div(4)).add(h(o).mul(2)).equal()}},[` + `]:{boxShadow:"none"}}}}},Sft=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${de(r)} 0`}}},_ft=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${de(n)} ${de(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 ${de(n)} ${de(n)}`}}}}},Eft=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"}}}}},xft=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:i,paddingXS:o,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:f,tablePaddingHorizontal:m,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(a).add(h(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(c).add(h(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(c).add(a).add(h(i).div(4)).add(h(o).mul(2)).equal()}},[` table tr th${t}-selection-column, table tr td${t}-selection-column, ${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${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:de(h(m).div(4).equal()),[r]:{color:s,fontSize:a,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},Gdt=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(i,o,s,l)=>({[`${t}${t}-${i}`]:{fontSize:l,[` + `]:{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:de(h(m).div(4).equal()),[r]:{color:s,fontSize:a,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:f}}}}}},Tft=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(i,o,s,l)=>({[`${t}${t}-${i}`]:{fontSize:l,[` ${t}-title, ${t}-footer, ${t}-cell, @@ -417,13 +417,13 @@ html body { ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td - `]:{padding:`${de(o)} ${de(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:de(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${de(r(o).mul(-1).equal())} ${de(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:de(r(o).mul(-1).equal()),marginInline:`${de(r(n).sub(s).equal())} ${de(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:de(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Hdt=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + `]:{padding:`${de(o)} ${de(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:de(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${de(r(o).mul(-1).equal())} ${de(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:de(r(o).mul(-1).equal()),marginInline:`${de(r(n).sub(s).equal())} ${de(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:de(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},wft=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart: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:i}}}},Zdt=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:i,tableScrollBg:o,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:d}=e,f=`${de(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${de(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},soe=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,i=`${de(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${de(a(n).mul(-1).equal())} 0 ${r}`}}}},Kdt=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:i,calc:o}=e,s=`${de(r)} ${a} ${i}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` - & > ${t}-row, + `]:{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:i}}}},Cft=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:i,tableScrollBg:o,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:d}=e,f=`${de(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${de(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:o,borderTop:f,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},koe=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,i=`${de(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${de(a(n).mul(-1).equal())} 0 ${r}`}}}},$ft=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:i,calc:o}=e,s=`${de(r)} ${a} ${i}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + & > ${t}-row, & > div:not(${t}-row) > ${t}-row - `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${de(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},Jdt=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:i,lineWidth:o,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:m,tableHeaderBg:h,tableHeaderCellSplitColor:g,tableFooterTextColor:O,tableFooterBg:v,calc:y}=e,S=`${de(o)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},dd()),{[t]:Object.assign(Object.assign({},zr(e)),{fontSize:c,background:u,borderRadius:`${de(d)} ${de(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${de(d)} ${de(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${de(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},Rft=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:i,lineWidth:o,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:f,motionDurationMid:m,tableHeaderBg:h,tableHeaderCellSplitColor:g,tableFooterTextColor:O,tableFooterBg:v,calc:y}=e,S=`${de(o)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Od()),{[t]:Object.assign(Object.assign({},Qr(e)),{fontSize:c,background:u,borderRadius:`${de(d)} ${de(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${de(d)} ${de(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-cell, ${t}-thead > tr > th, ${t}-tbody > tr > th, @@ -434,44 +434,44 @@ html body { > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:de(y(r).mul(-1).equal()),marginInline:`${de(y(i).sub(a).equal())} - ${de(y(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:S,transition:`background ${m} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${de(r)} ${de(a)}`,color:O,background:v}})}},eft=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:i,controlItemBgActive:o,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:m,colorTextPlaceholder:h,fontSize:g,fontSizeSM:O,lineHeight:v,lineWidth:y,colorIcon:S,colorIconHover:C,opacityLoading:_,controlInteractiveSize:w}=e,T=new Sr(a).onBackground(n).toHexString(),A=new Sr(i).onBackground(n).toHexString(),k=new Sr(t).onBackground(n).toHexString(),I=new Sr(S),M=new Sr(C),Q=w/2-y,F=Q*2+y*3;return{headerBg:k,headerColor:r,headerSortActiveBg:T,headerSortHoverBg:A,bodySortBg:k,rowHoverBg:k,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:k,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:T,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-y*3)/2-Math.ceil((O*1.4-y*3)/2),headerIconColor:I.clone().setA(I.a*_).toRgbString(),headerIconHoverColor:M.clone().setA(M.a*_).toRgbString(),expandIconHalfInner:Q,expandIconSize:F,expandIconScale:w/F}},loe=2,tft=Er("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:i,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:m,cellPaddingBlock:h,cellPaddingInline:g,cellPaddingBlockMD:O,cellPaddingInlineMD:v,cellPaddingBlockSM:y,cellPaddingInlineSM:S,borderColor:C,footerBg:_,footerColor:w,headerBorderRadius:T,cellFontSize:A,cellFontSizeMD:k,cellFontSizeSM:I,headerSplitColor:M,fixedHeaderSortActiveBg:Q,headerFilterHoverBg:F,filterDropdownBg:L,expandIconBg:U,selectionColumnWidth:R,stickyScrollBarBg:$,calc:P}=e,z=nr(e,{tableFontSize:A,tableBg:r,tableRadius:T,tablePaddingVertical:h,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:O,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:S,tableBorderColor:C,tableHeaderTextColor:o,tableHeaderBg:i,tableFooterTextColor:w,tableFooterBg:_,tableHeaderCellSplitColor:M,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:Q,tableHeaderFilterActiveBg:F,tableFilterDropdownBg:L,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:loe,zIndexTableSticky:P(loe).add(1).equal({unit:!1}),tableFontSizeMiddle:k,tableFontSizeSmall:I,tableSelectionColumnWidth:R,tableExpandIconBg:U,tableExpandColumnWidth:P(a).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:$,tableScrollThumbBgHover:t,tableScrollBg:n});return[Jdt(z),Ydt(z),soe(z),Hdt(z),jdt(z),zdt(z),Vdt(z),Udt(z),soe(z),Fdt(z),Wdt(z),Xdt(z),Zdt(z),Bdt(z),Gdt(z),qdt(z),Kdt(z)]},eft,{unitless:{expandIconScale:!0}}),coe=[],nft=(e,t)=>{var n,r;const{prefixCls:a,className:i,rootClassName:o,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:m,rowKey:h="key",rowClassName:g,columns:O,children:v,childrenColumnName:y,onChange:S,getPopupContainer:C,loading:_,expandIcon:w,expandable:T,expandedRowRender:A,expandIconColumnIndex:k,indentSize:I,scroll:M,sortDirections:Q,locale:F,showSorterTooltip:L={target:"full-header"},virtual:U}=e;_d();const R=p.useMemo(()=>O||vX(v),[O,v]),$=p.useMemo(()=>R.some(jt=>jt.responsive),[R]),P=WE($),z=p.useMemo(()=>{const jt=new Set(Object.keys(P).filter(wt=>P[wt]));return R.filter(wt=>!wt.responsive||wt.responsive.some(an=>jt.has(an)))},[R,P]),B=ga(e,["className","style","columns"]),{locale:D=pu,direction:X,table:Y,renderEmpty:q,getPrefixCls:H,getPopupContainer:J}=p.useContext(fn),te=Yi(l),ne=Object.assign(Object.assign({},D.Table),F),ie=d||coe,le=H("table",a),ue=H("dropdown",u),[,oe]=uo(),ge=Fa(le),[ve,he,me]=tft(le,ge),xe=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:k},T),{expandIcon:(n=T==null?void 0:T.expandIcon)!==null&&n!==void 0?n:(r=Y==null?void 0:Y.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:we="children"}=xe,Qe=p.useMemo(()=>ie.some(jt=>jt==null?void 0:jt[we])?"nest":A||T!=null&&T.expandedRowRender?"row":null,[ie]),Ie={body:p.useRef(null)},Ee=Eut(le),De=p.useRef(null),Le=p.useRef(null);CXe(t,()=>Object.assign(Object.assign({},Le.current),{nativeElement:De.current}));const Ne=p.useMemo(()=>typeof h=="function"?h:jt=>jt==null?void 0:jt[h],[h]),[et]=xdt(ie,we,Ne),He={},pt=(jt,wt,an=!1)=>{var $n,Gn,Xn,gr;const Fn=Object.assign(Object.assign({},He),jt);an&&(($n=He.resetPagination)===null||$n===void 0||$n.call(He),!((Gn=Fn.pagination)===null||Gn===void 0)&&Gn.current&&(Fn.pagination.current=1),f&&((Xn=f.onChange)===null||Xn===void 0||Xn.call(f,1,(gr=Fn.pagination)===null||gr===void 0?void 0:gr.pageSize))),M&&M.scrollToFirstRowOnChange!==!1&&Ie.body.current&&dXe(0,{getContainer:()=>Ie.body.current}),S==null||S(Fn.pagination,Fn.filters,Fn.sorter,{currentDataSource:I9(D9(ie,Fn.sorterStates,we),Fn.filterStates,we),action:wt})},lt=(jt,wt)=>{pt({sorter:jt,sorterStates:wt},"sort",!1)},[it,ut,We,Me]=Mdt({prefixCls:le,mergedColumns:z,onSorterChange:lt,sortDirections:Q||["ascend","descend"],tableLocale:ne,showSorterTooltip:L}),Ge=p.useMemo(()=>D9(ie,ut,we),[ie,ut]);He.sorter=Me(),He.sorterStates=ut;const ze=(jt,wt)=>{pt({filters:jt,filterStates:wt},"filter",!0)},[qe,Pe,Ae]=Edt({prefixCls:le,locale:ne,dropdownPrefixCls:ue,mergedColumns:z,onFilterChange:ze,getPopupContainer:C||J,rootClassName:ce(o,ge)}),Oe=I9(Ge,Pe,we);He.filters=Ae,He.filterStates=Pe;const Te=p.useMemo(()=>{const jt={};return Object.keys(Ae).forEach(wt=>{Ae[wt]!==null&&(jt[wt]=Ae[wt])}),Object.assign(Object.assign({},We),{filters:jt})},[We,Ae]),[Ue]=Ddt(Te),rt=(jt,wt)=>{pt({pagination:Object.assign(Object.assign({},He.pagination),{current:jt,pageSize:wt})},"paginate")},[tt,ot]=Cdt(Oe.length,rt,f);He.pagination=f===!1?{}:wdt(tt,f),He.resetPagination=ot;const St=p.useMemo(()=>{if(f===!1||!tt.pageSize)return Oe;const{current:jt=1,total:wt,pageSize:an=K2e}=tt;return Oe.lengthan?Oe.slice((jt-1)*an,jt*an):Oe:Oe.slice((jt-1)*an,jt*an)},[!!f,Oe,tt==null?void 0:tt.current,tt==null?void 0:tt.pageSize,tt==null?void 0:tt.total]),[Xe,je]=Sut({prefixCls:le,data:Oe,pageData:St,getRowKey:Ne,getRecordByKey:et,expandType:Qe,childrenColumnName:we,locale:ne,getPopupContainer:C||J},m),bt=(jt,wt,an)=>{let $n;return typeof g=="function"?$n=ce(g(jt,wt,an)):$n=ce(g),ce({[`${le}-row-selected`]:je.has(Ne(jt,wt))},$n)};xe.__PARENT_RENDER_ICON__=xe.expandIcon,xe.expandIcon=xe.expandIcon||w||_ut(ne),Qe==="nest"&&xe.expandIconColumnIndex===void 0?xe.expandIconColumnIndex=m?1:0:xe.expandIconColumnIndex>0&&m&&(xe.expandIconColumnIndex-=1),typeof xe.indentSize!="number"&&(xe.indentSize=typeof I=="number"?I:15);const xt=p.useCallback(jt=>Ue(Xe(qe(it(jt)))),[it,qe,Xe]),vt=()=>{if(f===!1||!(tt!=null&&tt.total))return{};const jt=()=>tt.size||(te==="small"||te==="middle"?"small":void 0),wt=yt=>{const Qt=yt==="left"?"start":yt==="right"?"end":yt;return p.createElement(tst,Object.assign({},tt,{align:tt.align||Qt,className:ce(`${le}-pagination`,tt.className),size:jt()}))},an=X==="rtl"?"left":"right",$n=tt.position;if($n===null||!Array.isArray($n))return{bottom:wt(an)};const Gn=$n.find(yt=>typeof yt=="string"&&yt.toLowerCase().includes("top")),Xn=$n.find(yt=>typeof yt=="string"&&yt.toLowerCase().includes("bottom")),gr=$n.every(yt=>`${yt}`=="none"),Fn=Gn?Gn.toLowerCase().replace("top",""):"",Bt=Xn?Xn.toLowerCase().replace("bottom",""):"",Se=!Gn&&!Xn&&!gr,Fe=()=>Fn?wt(Fn):void 0,mt=()=>{if(Bt)return wt(Bt);if(Se)return wt(an)};return{top:Fe(),bottom:mt()}},Nt=p.useMemo(()=>typeof _=="boolean"?{spinning:_}:typeof _=="object"&&_!==null?Object.assign({spinning:!0},_):void 0,[_]),Mt=ce(me,ge,`${le}-wrapper`,Y==null?void 0:Y.className,{[`${le}-wrapper-rtl`]:X==="rtl"},i,o,he),Ot=Object.assign(Object.assign({},Y==null?void 0:Y.style),s),ft=p.useMemo(()=>Nt!=null&&Nt.spinning&&ie===coe?null:typeof(F==null?void 0:F.emptyText)<"u"?F.emptyText:(q==null?void 0:q("Table"))||p.createElement(DTe,{componentName:"Table"}),[Nt==null?void 0:Nt.spinning,ie,F==null?void 0:F.emptyText,q]),st=U?Qdt:Ldt,Et={},Jt=p.useMemo(()=>{const{fontSize:jt,lineHeight:wt,lineWidth:an,padding:$n,paddingXS:Gn,paddingSM:Xn}=oe,gr=Math.floor(jt*wt);switch(te){case"middle":return Xn*2+gr+an;case"small":return Gn*2+gr+an;default:return $n*2+gr+an}},[oe,te]);U&&(Et.listItemHeight=Jt);const{top:en,bottom:Rn}=vt();return ve(p.createElement("div",{ref:De,className:Mt,style:Ot},p.createElement(Yk,Object.assign({spinning:!1},Nt),en,p.createElement(st,Object.assign({},Et,B,{ref:Le,columns:z,direction:X,expandable:xe,prefixCls:le,className:ce({[`${le}-middle`]:te==="middle",[`${le}-small`]:te==="small",[`${le}-bordered`]:c,[`${le}-empty`]:ie.length===0},me,ge,he),data:St,rowKey:Ne,rowClassName:bt,emptyText:ft,internalHooks:rx,internalRefs:Ie,transformColumns:xt,getContainerWidth:Ee,measureRowRender:jt=>p.createElement(ci,{getPopupContainer:wt=>wt},jt)})),Rn)))},rft=p.forwardRef(nft),aft=(e,t)=>{const n=p.useRef(0);return n.current+=1,p.createElement(rft,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Td=p.forwardRef(aft);Td.SELECTION_COLUMN=Op;Td.EXPAND_COLUMN=Sp;Td.SELECTION_ALL=R9;Td.SELECTION_INVERT=P9;Td.SELECTION_NONE=k9;Td.Column=dut;Td.ColumnGroup=fut;Td.Summary=P2e;const ift=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:i}=e,o=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},zr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},wX=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return nr(e,{tagFontSize:a,tagLineHeight:de(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},CX=e=>({defaultBg:new Sr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),t$e=Er("Tag",e=>{const t=wX(e);return ift(t)},CX);var oft=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:i,children:o,icon:s,onChange:l,onClick:c}=e,u=oft(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:d,tag:f}=p.useContext(fn),m=S=>{l==null||l(!i),c==null||c(S)},h=d("tag",n),[g,O,v]=t$e(h),y=ce(h,`${h}-checkable`,{[`${h}-checkable-checked`]:i},f==null?void 0:f.className,a,O,v);return g(p.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),f==null?void 0:f.style),className:y,onClick:m}),s,p.createElement("span",null,o)))}),lft=e=>QEe(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),cft=mg(["Tag","preset"],e=>{const t=wX(e);return lft(t)},CX);function uft(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const gw=(e,t,n)=>{const r=uft(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"}}}},dft=mg(["Tag","status"],e=>{const t=wX(e);return[gw(t,"success","Success"),gw(t,"processing","Info"),gw(t,"error","Error"),gw(t,"warning","Warning")]},CX);var fft=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:i,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:d}=e,f=fft(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:m,direction:h,tag:g}=p.useContext(fn),[O,v]=p.useState(!0),y=ga(f,["closeIcon","closable"]);p.useEffect(()=>{d!==void 0&&v(d)},[d]);const S=KTe(l),C=AZe(l),_=S||C,w=Object.assign(Object.assign({backgroundColor:l&&!_?l:void 0},g==null?void 0:g.style),i),T=m("tag",n),[A,k,I]=t$e(T),M=ce(T,g==null?void 0:g.className,{[`${T}-${l}`]:_,[`${T}-has-color`]:l&&!_,[`${T}-hidden`]:!O,[`${T}-rtl`]:h==="rtl",[`${T}-borderless`]:!u},r,a,k,I),Q=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&v(!1)},[,F]=dj(j0(e),j0(g),{closable:!1,closeIconRender:P=>{const z=p.createElement("span",{className:`${T}-close-icon`,onClick:Q},P);return cj(P,z,B=>({onClick:D=>{var X;(X=B==null?void 0:B.onClick)===null||X===void 0||X.call(B,D),Q(D)},className:ce(B==null?void 0:B.className,`${T}-close-icon`)}))}}),L=typeof f.onClick=="function"||o&&o.type==="a",U=s||null,R=U?p.createElement(p.Fragment,null,U,o&&p.createElement("span",null,o)):o,$=p.createElement("span",Object.assign({},y,{ref:t,className:M,style:w}),R,F,S&&p.createElement(cft,{key:"preset",prefixCls:T}),C&&p.createElement(dft,{key:"status",prefixCls:T}));return A(L?p.createElement(BE,{component:"Tag"},$):$)}),q$=pft;q$.CheckableTag=sft;const mft=e=>{const t=e!=null&&e.algorithm?O$(e.algorithm):nj,n=Object.assign(Object.assign({},F0),e==null?void 0:e.token);return q1e(n,{override:e==null?void 0:e.token},t,ij)};function hft(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 gft=(e,t)=>{const n=t??nk(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),hft(t??e)),kEe(r)),{controlHeight:a}),PEe(Object.assign(Object.assign({},n),{controlHeight:a})))},uc=(e,t)=>new Sr(e).setA(t).toRgbString(),gO=(e,t)=>new Sr(e).lighten(t).toHexString(),Oft=e=>{const t=U0(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]}},bft=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:uc(r,.85),colorTextSecondary:uc(r,.65),colorTextTertiary:uc(r,.45),colorTextQuaternary:uc(r,.25),colorFill:uc(r,.18),colorFillSecondary:uc(r,.12),colorFillTertiary:uc(r,.08),colorFillQuaternary:uc(r,.04),colorBgSolid:uc(r,.95),colorBgSolidHover:uc(r,1),colorBgSolidActive:uc(r,.9),colorBgElevated:gO(n,12),colorBgContainer:gO(n,8),colorBgLayout:gO(n,0),colorBgSpotlight:gO(n,26),colorBgBlur:uc(r,.04),colorBorder:gO(n,26),colorBorderSecondary:gO(n,19)}},vft=(e,t)=>{const n=Object.keys(tj).map(i=>{const o=U0(e[i],{theme:"dark"});return Array.from({length:10},()=>1).reduce((s,l,c)=>(s[`${i}-${c+1}`]=o[c],s[`${i}${c+1}`]=o[c],s),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),r=t??nk(e),a=REe(e,{generateColorPalettes:Oft,generateNeutralColorPalettes:bft});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),a),{colorPrimaryBg:a.colorPrimaryBorder,colorPrimaryBgHover:a.colorPrimaryBorderHover})};function yft(){const[e,t,n]=uo();return{theme:e,token:t,hashId:n}}const jl={defaultSeed:d_.token,useToken:yft,defaultAlgorithm:nk,darkAlgorithm:vft,compactAlgorithm:gft,getDesignToken:mft,defaultConfig:d_,_internalContext:rj};var Sft=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);ap.createElement(Eft,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Fb=p.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:a,bordered:i}=e,o=Sft(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=mm("timePicker",a,i),l=p.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return p.createElement(_ft,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),n$e=YE(Fb,"popupAlign",void 0,"picker");Fb._InternalPanelDoNotUseOrYouWillBeFired=n$e;Fb.RangePicker=xft;Fb._InternalPanelDoNotUseOrYouWillBeFired=n$e;var Tft={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"},wft=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Tft}))},kf=p.forwardRef(wft),Cft={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"},$ft=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Cft}))},$X=p.forwardRef($ft),Rft={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"},Pft=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Rft}))},kft=p.forwardRef(Pft);const Aft=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:i}=r;return{marginBottom:a,color:n,fontWeight:i,fontSize:e,lineHeight:t}},Nft=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + ${de(y(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:f,fontWeight:n,textAlign:"start",background:h,borderBottom:S,transition:`background ${m} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${de(r)} ${de(a)}`,color:O,background:v}})}},Pft=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:i,controlItemBgActive:o,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:f,controlHeight:m,colorTextPlaceholder:h,fontSize:g,fontSizeSM:O,lineHeight:v,lineWidth:y,colorIcon:S,colorIconHover:C,opacityLoading:_,controlInteractiveSize:w}=e,T=new Sr(a).onBackground(n).toHexString(),k=new Sr(i).onBackground(n).toHexString(),A=new Sr(t).onBackground(n).toHexString(),I=new Sr(S),M=new Sr(C),Q=w/2-y,B=Q*2+y*3;return{headerBg:A,headerColor:r,headerSortActiveBg:T,headerSortHoverBg:k,bodySortBg:A,rowHoverBg:A,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:f,footerBg:A,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:T,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*v-y*3)/2-Math.ceil((O*1.4-y*3)/2),headerIconColor:I.clone().setA(I.a*_).toRgbString(),headerIconHoverColor:M.clone().setA(M.a*_).toRgbString(),expandIconHalfInner:Q,expandIconSize:B,expandIconScale:w/B}},Aoe=2,kft=Er("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:i,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:f,rowExpandedBg:m,cellPaddingBlock:h,cellPaddingInline:g,cellPaddingBlockMD:O,cellPaddingInlineMD:v,cellPaddingBlockSM:y,cellPaddingInlineSM:S,borderColor:C,footerBg:_,footerColor:w,headerBorderRadius:T,cellFontSize:k,cellFontSizeMD:A,cellFontSizeSM:I,headerSplitColor:M,fixedHeaderSortActiveBg:Q,headerFilterHoverBg:B,filterDropdownBg:D,expandIconBg:U,selectionColumnWidth:R,stickyScrollBarBg:$,calc:P}=e,z=nr(e,{tableFontSize:k,tableBg:r,tableRadius:T,tablePaddingVertical:h,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:O,tablePaddingHorizontalMiddle:v,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:S,tableBorderColor:C,tableHeaderTextColor:o,tableHeaderBg:i,tableFooterTextColor:w,tableFooterBg:_,tableHeaderCellSplitColor:M,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:Q,tableHeaderFilterActiveBg:B,tableFilterDropdownBg:D,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,zIndexTableFixed:Aoe,zIndexTableSticky:P(Aoe).add(1).equal({unit:!1}),tableFontSizeMiddle:A,tableFontSizeSmall:I,tableSelectionColumnWidth:R,tableExpandIconBg:U,tableExpandColumnWidth:P(a).add(P(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:$,tableScrollThumbBgHover:t,tableScrollBg:n});return[Rft(z),Sft(z),koe(z),wft(z),vft(z),hft(z),_ft(z),bft(z),koe(z),Oft(z),xft(z),yft(z),Cft(z),gft(z),Tft(z),Eft(z),$ft(z)]},Pft,{unitless:{expandIconScale:!0}}),Noe=[],Aft=(e,t)=>{var n,r;const{prefixCls:a,className:i,rootClassName:o,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:f,rowSelection:m,rowKey:h="key",rowClassName:g,columns:O,children:v,childrenColumnName:y,onChange:S,getPopupContainer:C,loading:_,expandIcon:w,expandable:T,expandedRowRender:k,expandIconColumnIndex:A,indentSize:I,scroll:M,sortDirections:Q,locale:B,showSorterTooltip:D={target:"full-header"},virtual:U}=e;$d();const R=p.useMemo(()=>O||jX(v),[O,v]),$=p.useMemo(()=>R.some(Ut=>Ut.responsive),[R]),P=ex($),z=p.useMemo(()=>{const Ut=new Set(Object.keys(P).filter(Ct=>P[Ct]));return R.filter(Ct=>!Ct.responsive||Ct.responsive.some(Vt=>Ut.has(Vt)))},[R,P]),F=Oa(e,["className","style","columns"]),{locale:L=bu,direction:X,table:Y,renderEmpty:q,getPrefixCls:G,getPopupContainer:ee}=p.useContext(pn),K=Xi(l),ne=Object.assign(Object.assign({},L.Table),B),ie=d||Noe,se=G("table",a),ue=G("dropdown",u),[,ce]=co(),be=Ua(se),[ge,Oe,me]=kft(se,be),Te=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:A},T),{expandIcon:(n=T==null?void 0:T.expandIcon)!==null&&n!==void 0?n:(r=Y==null?void 0:Y.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Ce="children"}=Te,Fe=p.useMemo(()=>ie.some(Ut=>Ut==null?void 0:Ut[Ce])?"nest":k||T!=null&&T.expandedRowRender?"row":null,[ie]),Me={body:p.useRef(null)},Ee=Jut(se),Le=p.useRef(null),ze=p.useRef(null);rYe(t,()=>Object.assign(Object.assign({},ze.current),{nativeElement:Le.current}));const Qe=p.useMemo(()=>typeof h=="function"?h:Ut=>Ut==null?void 0:Ut[h],[h]),[Je]=eft(ie,Ce,Qe),He={},gt=(Ut,Ct,Vt=!1)=>{var _n,jn,Qn,fr;const Pt=Object.assign(Object.assign({},He),Ut);Vt&&((_n=He.resetPagination)===null||_n===void 0||_n.call(He),!((jn=Pt.pagination)===null||jn===void 0)&&jn.current&&(Pt.pagination.current=1),f&&((Qn=f.onChange)===null||Qn===void 0||Qn.call(f,1,(fr=Pt.pagination)===null||fr===void 0?void 0:fr.pageSize))),M&&M.scrollToFirstRowOnChange!==!1&&Me.body.current&&FXe(0,{getContainer:()=>Me.body.current}),S==null||S(Pt.pagination,Pt.filters,Pt.sorter,{currentDataSource:ez(nz(ie,Pt.sorterStates,Ce),Pt.filterStates,Ce),action:Ct})},st=(Ut,Ct)=>{gt({sorter:Ut,sorterStates:Ct},"sort",!1)},[lt,pt,Ze,De]=dft({prefixCls:se,mergedColumns:z,onSorterChange:st,sortDirections:Q||["ascend","descend"],tableLocale:ne,showSorterTooltip:D}),Ke=p.useMemo(()=>nz(ie,pt,Ce),[ie,pt]);He.sorter=De(),He.sorterStates=pt;const Be=(Ut,Ct)=>{gt({filters:Ut,filterStates:Ct},"filter",!0)},[We,Re,Ie]=Jdt({prefixCls:se,locale:ne,dropdownPrefixCls:ue,mergedColumns:z,onFilterChange:Be,getPopupContainer:C||ee,rootClassName:le(o,be)}),ve=ez(Ke,Re,Ce);He.filters=Ie,He.filterStates=Re;const we=p.useMemo(()=>{const Ut={};return Object.keys(Ie).forEach(Ct=>{Ie[Ct]!==null&&(Ut[Ct]=Ie[Ct])}),Object.assign(Object.assign({},Ze),{filters:Ut})},[Ze,Ie]),[Xe]=fft(we),rt=(Ut,Ct)=>{gt({pagination:Object.assign(Object.assign({},He.pagination),{current:Ut,pageSize:Ct})},"paginate")},[at,ct]=rft(ve.length,rt,f);He.pagination=f===!1?{}:nft(at,f),He.resetPagination=ct;const mt=p.useMemo(()=>{if(f===!1||!at.pageSize)return ve;const{current:Ut=1,total:Ct,pageSize:Vt=T$e}=at;return ve.lengthVt?ve.slice((Ut-1)*Vt,Ut*Vt):ve:ve.slice((Ut-1)*Vt,Ut*Vt)},[!!f,ve,at==null?void 0:at.current,at==null?void 0:at.pageSize,at==null?void 0:at.total]),[je,Ye]=Zut({prefixCls:se,data:ve,pageData:mt,getRowKey:Qe,getRecordByKey:Je,expandType:Fe,childrenColumnName:Ce,locale:ne,getPopupContainer:C||ee},m),yt=(Ut,Ct,Vt)=>{let _n;return typeof g=="function"?_n=le(g(Ut,Ct,Vt)):_n=le(g),le({[`${se}-row-selected`]:Ye.has(Qe(Ut,Ct))},_n)};Te.__PARENT_RENDER_ICON__=Te.expandIcon,Te.expandIcon=Te.expandIcon||w||Kut(ne),Fe==="nest"&&Te.expandIconColumnIndex===void 0?Te.expandIconColumnIndex=m?1:0:Te.expandIconColumnIndex>0&&m&&(Te.expandIconColumnIndex-=1),typeof Te.indentSize!="number"&&(Te.indentSize=typeof I=="number"?I:15);const $t=p.useCallback(Ut=>Xe(je(We(lt(Ut)))),[lt,We,je]),St=()=>{if(f===!1||!(at!=null&&at.total))return{};const Ut=()=>at.size||(K==="small"||K==="middle"?"small":void 0),Ct=dt=>{const wt=dt==="left"?"start":dt==="right"?"end":dt;return p.createElement(kst,Object.assign({},at,{align:at.align||wt,className:le(`${se}-pagination`,at.className),size:Ut()}))},Vt=X==="rtl"?"left":"right",_n=at.position;if(_n===null||!Array.isArray(_n))return{bottom:Ct(Vt)};const jn=_n.find(dt=>typeof dt=="string"&&dt.toLowerCase().includes("top")),Qn=_n.find(dt=>typeof dt=="string"&&dt.toLowerCase().includes("bottom")),fr=_n.every(dt=>`${dt}`=="none"),Pt=jn?jn.toLowerCase().replace("top",""):"",xe=Qn?Qn.toLowerCase().replace("bottom",""):"",pe=!jn&&!Qn&&!fr,$e=()=>Pt?Ct(Pt):void 0,tt=()=>{if(xe)return Ct(xe);if(pe)return Ct(Vt)};return{top:$e(),bottom:tt()}},Mt=p.useMemo(()=>typeof _=="boolean"?{spinning:_}:typeof _=="object"&&_!==null?Object.assign({spinning:!0},_):void 0,[_]),Qt=le(me,be,`${se}-wrapper`,Y==null?void 0:Y.className,{[`${se}-wrapper-rtl`]:X==="rtl"},i,o,Oe),Ot=Object.assign(Object.assign({},Y==null?void 0:Y.style),s),ht=p.useMemo(()=>Mt!=null&&Mt.spinning&&ie===Noe?null:typeof(B==null?void 0:B.emptyText)<"u"?B.emptyText:(q==null?void 0:q("Table"))||p.createElement(cwe,{componentName:"Table"}),[Mt==null?void 0:Mt.spinning,ie,B==null?void 0:B.emptyText,q]),ut=U?mft:pft,vt={},Gt=p.useMemo(()=>{const{fontSize:Ut,lineHeight:Ct,lineWidth:Vt,padding:_n,paddingXS:jn,paddingSM:Qn}=ce,fr=Math.floor(Ut*Ct);switch(K){case"middle":return Qn*2+fr+Vt;case"small":return jn*2+fr+Vt;default:return _n*2+fr+Vt}},[ce,K]);U&&(vt.listItemHeight=Gt);const{top:en,bottom:Rn}=St();return ge(p.createElement("div",{ref:Le,className:Qt,style:Ot},p.createElement(rA,Object.assign({spinning:!1},Mt),en,p.createElement(ut,Object.assign({},vt,F,{ref:ze,columns:z,direction:X,expandable:Te,prefixCls:se,className:le({[`${se}-middle`]:K==="middle",[`${se}-small`]:K==="small",[`${se}-bordered`]:c,[`${se}-empty`]:ie.length===0},me,be,Oe),data:mt,rowKey:Qe,rowClassName:yt,emptyText:ht,internalHooks:cx,internalRefs:Me,transformColumns:$t,getContainerWidth:Ee,measureRowRender:Ut=>p.createElement(ui,{getPopupContainer:Ct=>Ct},Ut)})),Rn)))},Nft=p.forwardRef(Aft),Ift=(e,t)=>{const n=p.useRef(0);return n.current+=1,p.createElement(Nft,Object.assign({},e,{ref:t,_renderTimes:n.current}))},kd=p.forwardRef(Ift);kd.SELECTION_COLUMN=Ep;kd.EXPAND_COLUMN=Cp;kd.SELECTION_ALL=G9;kd.SELECTION_INVERT=H9;kd.SELECTION_NONE=Z9;kd.Column=Fut;kd.ColumnGroup=Uut;kd.Summary=r$e;const Mft=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:i}=e,o=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},Qr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},HX=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return nr(e,{tagFontSize:a,tagLineHeight:de(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},ZX=e=>({defaultBg:new Sr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),$$e=Er("Tag",e=>{const t=HX(e);return Mft(t)},ZX);var Dft=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:i,children:o,icon:s,onChange:l,onClick:c}=e,u=Dft(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:d,tag:f}=p.useContext(pn),m=S=>{l==null||l(!i),c==null||c(S)},h=d("tag",n),[g,O,v]=$$e(h),y=le(h,`${h}-checkable`,{[`${h}-checkable-checked`]:i},f==null?void 0:f.className,a,O,v);return g(p.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),f==null?void 0:f.style),className:y,onClick:m}),s,p.createElement("span",null,o)))}),Qft=e=>dxe(e,(t,{textColor:n,lightBorderColor:r,lightColor:a,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),zft=_g(["Tag","preset"],e=>{const t=HX(e);return Qft(t)},ZX);function Bft(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const _w=(e,t,n)=>{const r=Bft(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"}}}},Fft=_g(["Tag","status"],e=>{const t=HX(e);return[_w(t,"success","Success"),_w(t,"processing","Info"),_w(t,"error","Error"),_w(t,"warning","Warning")]},ZX);var Uft=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:i,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:d}=e,f=Uft(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:m,direction:h,tag:g}=p.useContext(pn),[O,v]=p.useState(!0),y=Oa(f,["closeIcon","closable"]);p.useEffect(()=>{d!==void 0&&v(d)},[d]);const S=Twe(l),C=lKe(l),_=S||C,w=Object.assign(Object.assign({backgroundColor:l&&!_?l:void 0},g==null?void 0:g.style),i),T=m("tag",n),[k,A,I]=$$e(T),M=le(T,g==null?void 0:g.className,{[`${T}-${l}`]:_,[`${T}-has-color`]:l&&!_,[`${T}-hidden`]:!O,[`${T}-rtl`]:h==="rtl",[`${T}-borderless`]:!u},r,a,A,I),Q=P=>{P.stopPropagation(),c==null||c(P),!P.defaultPrevented&&v(!1)},[,B]=Mj(W0(e),W0(g),{closable:!1,closeIconRender:P=>{const z=p.createElement("span",{className:`${T}-close-icon`,onClick:Q},P);return Nj(P,z,F=>({onClick:L=>{var X;(X=F==null?void 0:F.onClick)===null||X===void 0||X.call(F,L),Q(L)},className:le(F==null?void 0:F.className,`${T}-close-icon`)}))}}),D=typeof f.onClick=="function"||o&&o.type==="a",U=s||null,R=U?p.createElement(p.Fragment,null,U,o&&p.createElement("span",null,o)):o,$=p.createElement("span",Object.assign({},y,{ref:t,className:M,style:w}),R,B,S&&p.createElement(zft,{key:"preset",prefixCls:T}),C&&p.createElement(Fft,{key:"status",prefixCls:T}));return k(D?p.createElement(VE,{component:"Tag"},$):$)}),aR=jft;aR.CheckableTag=Lft;const Xft=e=>{const t=e!=null&&e.algorithm?$$(e.algorithm):wj,n=Object.assign(Object.assign({},V0),e==null?void 0:e.token);return yEe(n,{override:e==null?void 0:e.token},t,Rj)};function Yft(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 Vft=(e,t)=>{const n=t??mk(e),r=n.fontSizeSM,a=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Yft(t??e)),axe(r)),{controlHeight:a}),rxe(Object.assign(Object.assign({},n),{controlHeight:a})))},uc=(e,t)=>new Sr(e).setA(t).toRgbString(),xO=(e,t)=>new Sr(e).lighten(t).toHexString(),qft=e=>{const t=q0(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]}},Wft=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:uc(r,.85),colorTextSecondary:uc(r,.65),colorTextTertiary:uc(r,.45),colorTextQuaternary:uc(r,.25),colorFill:uc(r,.18),colorFillSecondary:uc(r,.12),colorFillTertiary:uc(r,.08),colorFillQuaternary:uc(r,.04),colorBgSolid:uc(r,.95),colorBgSolidHover:uc(r,1),colorBgSolidActive:uc(r,.9),colorBgElevated:xO(n,12),colorBgContainer:xO(n,8),colorBgLayout:xO(n,0),colorBgSpotlight:xO(n,26),colorBgBlur:uc(r,.04),colorBorder:xO(n,26),colorBorderSecondary:xO(n,19)}},Gft=(e,t)=>{const n=Object.keys(Tj).map(i=>{const o=q0(e[i],{theme:"dark"});return Array.from({length:10},()=>1).reduce((s,l,c)=>(s[`${i}-${c+1}`]=o[c],s[`${i}${c+1}`]=o[c],s),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),r=t??mk(e),a=nxe(e,{generateColorPalettes:qft,generateNeutralColorPalettes:Wft});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),a),{colorPrimaryBg:a.colorPrimaryBorder,colorPrimaryBgHover:a.colorPrimaryBorderHover})};function Hft(){const[e,t,n]=co();return{theme:e,token:t,hashId:n}}const jl={defaultSeed:O_.token,useToken:Hft,defaultAlgorithm:mk,darkAlgorithm:Gft,compactAlgorithm:Vft,getDesignToken:Xft,defaultConfig:O_,_internalContext:Cj};var Zft=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);ap.createElement(Jft,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Vb=p.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:a,bordered:i}=e,o=Zft(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=ym("timePicker",a,i),l=p.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return p.createElement(Kft,Object.assign({},o,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),R$e=ZE(Vb,"popupAlign",void 0,"picker");Vb._InternalPanelDoNotUseOrYouWillBeFired=R$e;Vb.RangePicker=ept;Vb._InternalPanelDoNotUseOrYouWillBeFired=R$e;var tpt={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"},npt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:tpt}))},Lf=p.forwardRef(npt),rpt={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"},apt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:rpt}))},KX=p.forwardRef(apt),ipt={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"},opt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:ipt}))},spt=p.forwardRef(opt);const lpt=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:i}=r;return{marginBottom:a,color:n,fontWeight:i,fontSize:e,lineHeight:t}},cpt=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} - `]=Aft(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},Ift=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},oj(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Mft=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:x$[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}}),Dft=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"}}}},Lft=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Qft=()=>({"\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"}}),zft=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"}},Nft(e)),{[` + `]=lpt(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},upt=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Pj(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},dpt=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:M$[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}}),fpt=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"}}}},ppt=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),mpt=()=>({"\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"}}),hpt=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"}},cpt(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}}}),Mft(e)),Ift(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}}}),dpt(e)),upt(e)),{[` ${t}-expand, ${t}-collapse, ${t}-edit, ${t}-copy - `]:Object.assign(Object.assign({},oj(e)),{marginInlineStart:e.marginXXS})}),Dft(e)),Lft(e)),Qft()),{"&-rtl":{direction:"rtl"}})}},Bft=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),r$e=Er("Typography",zft,Bft),Fft=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:i,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:f,enterIcon:m=p.createElement(kft,null)}=e,h=p.useRef(null),g=p.useRef(!1),O=p.useRef(null),[v,y]=p.useState(l);p.useEffect(()=>{y(l)},[l]),p.useEffect(()=>{var L;if(!((L=h.current)===null||L===void 0)&&L.resizableTextArea){const{textArea:U}=h.current.resizableTextArea;U.focus();const{length:R}=U.value;U.setSelectionRange(R,R)}},[]);const S=({target:L})=>{y(L.value.replace(/[\n\r]/g,""))},C=()=>{g.current=!0},_=()=>{g.current=!1},w=({keyCode:L})=>{g.current||(O.current=L)},T=()=>{c(v.trim())},A=({keyCode:L,ctrlKey:U,altKey:R,metaKey:$,shiftKey:P})=>{O.current!==L||g.current||U||R||$||P||(L===Vt.ENTER?(T(),d==null||d()):L===Vt.ESC&&u())},k=()=>{T()},[I,M,Q]=r$e(t),F=ce(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${f}`]:!!f},r,M,Q);return I(p.createElement("div",{className:F,style:a},p.createElement(f2e,{ref:h,maxLength:o,value:v,onChange:S,onKeyDown:w,onKeyUp:A,onCompositionStart:C,onCompositionEnd:_,onBlur:k,"aria-label":n,rows:1,autoSize:s}),m!==null?wo(m,{className:`${t}-edit-content-confirm`}):null))};var y5,uoe;function Uft(){return uoe||(uoe=1,y5=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var O=t[o.format]||t.default;window.clipboardData.setData(O,i)}else g.clipboardData.clearData(),g.clipboardData.setData(o.format,i);o.onCopy&&(g.preventDefault(),o.onCopy(g.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),d.addRange(u);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");m=!0}catch(g){s&&console.error("unable to copy using execCommand: ",g),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",i),o.onCopy&&o.onCopy(window.clipboardData),m=!0}catch(O){s&&console.error("unable to copy using clipboardData: ",O),s&&console.error("falling back to prompt"),l=r("message"in o?o.message:n),window.prompt(l,i)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(u):d.removeAllRanges()),f&&document.body.removeChild(f),c()}return m}return S5=a,S5}var Xft=jft();const Yft=Ii(Xft);var Vft=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):a(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const qft=({copyConfig:e,children:t})=>{const[n,r]=p.useState(!1),[a,i]=p.useState(!1),o=p.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},l={};e.format&&(l.format=e.format),p.useEffect(()=>s,[]);const c=ar(u=>Vft(void 0,void 0,void 0,function*(){var d;u==null||u.preventDefault(),u==null||u.stopPropagation(),i(!0);try{const f=typeof e.text=="function"?yield e.text():e.text;Yft(f||mst(t,!0).join("")||"",l),i(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),(d=e.onCopy)===null||d===void 0||d.call(e,u)}catch(f){throw i(!1),f}}));return{copied:n,copyLoading:a,onClick:c}};function _5(e,t){return p.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const Wft=e=>{const t=p.useRef(void 0);return p.useEffect(()=>{t.current=e}),t.current},Gft=(e,t,n)=>p.useMemo(()=>e===!0?{title:t??n}:p.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Hft=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:i,setContentRef:o,children:s,direction:l,style:c}=e,u=Hft(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,className:m,style:h}=$i("typography"),g=l??f,O=o?Ci(t,o):t,v=d("typography",n),[y,S,C]=r$e(v),_=ce(v,m,{[`${v}-rtl`]:g==="rtl"},a,i,S,C),w=Object.assign(Object.assign({},h),c);return y(p.createElement(r,Object.assign({className:_,style:w,ref:O},u),s))});var Zft={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"},Kft=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Zft}))},Jk=p.forwardRef(Kft);function foe(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function E5(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Jft(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 RX=e=>["string","number"].includes(typeof e),ept=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:i,tabIndex:o,onCopy:s,loading:l})=>{const c=foe(a),u=foe(i),{copied:d,copy:f}=n??{},m=t?d:f,h=E5(c[t?1:0],m),g=typeof h=="string"?h:m;return p.createElement(Co,{title:h},p.createElement("button",{type:"button",className:ce(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":g,tabIndex:o},t?E5(u[1],p.createElement(Ck,null),!0):E5(u[0],l?p.createElement(mu,null):p.createElement(Jk,null),!0)))},Ow=p.forwardRef(({style:e,children:t},n)=>{const r=p.useRef(null);return p.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),p.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)}),tpt=e=>e.reduce((t,n)=>t+(RX(n)?String(n).length:1),0);function poe(e,t){let n=0;const r=[];for(let a=0;at){const c=t-n;return r.push(String(i).slice(0,c)),r}r.push(i),n=l}return e}const x5=0,T5=1,w5=2,C5=3,moe=4,bw={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function npt(e){const{enableMeasure:t,width:n,text:r,children:a,rows:i,expanded:o,miscDeps:s,onEllipsis:l}=e,c=p.useMemo(()=>To(r),[r]),u=p.useMemo(()=>tpt(c),[r]),d=p.useMemo(()=>a(c,!1),[r]),[f,m]=p.useState(null),h=p.useRef(null),g=p.useRef(null),O=p.useRef(null),v=p.useRef(null),y=p.useRef(null),[S,C]=p.useState(!1),[_,w]=p.useState(x5),[T,A]=p.useState(0),[k,I]=p.useState(null);tr(()=>{w(t&&n&&u?T5:x5)},[n,r,i,t,c]),tr(()=>{var L,U,R,$;if(_===T5){w(w5);const P=g.current&&getComputedStyle(g.current).whiteSpace;I(P)}else if(_===w5){const P=!!(!((L=O.current)===null||L===void 0)&&L.isExceed());w(P?C5:moe),m(P?[0,u]:null),C(P);const z=((U=O.current)===null||U===void 0?void 0:U.getHeight())||0,B=i===1?0:((R=v.current)===null||R===void 0?void 0:R.getHeight())||0,D=(($=y.current)===null||$===void 0?void 0:$.getHeight())||0,X=Math.max(z,B+D);A(X+1),l(P)}},[_]);const M=f?Math.ceil((f[0]+f[1])/2):0;tr(()=>{var L;const[U,R]=f||[0,0];if(U!==R){const P=(((L=h.current)===null||L===void 0?void 0:L.getHeight())||0)>T;let z=M;R-U===1&&(z=P?U:R),m(P?[U,z]:[z,R])}},[f,M]);const Q=p.useMemo(()=>{if(!t)return a(c,!1);if(_!==C5||!f||f[0]!==f[1]){const L=a(c,!1);return[moe,x5].includes(_)?L:p.createElement("span",{style:Object.assign(Object.assign({},bw),{WebkitLineClamp:i})},L)}return a(o?c:poe(c,f[0]),S)},[o,_,f,c].concat(Ke(s))),F={width:n,margin:0,padding:0,whiteSpace:k==="nowrap"?"normal":"inherit"};return p.createElement(p.Fragment,null,Q,_===w5&&p.createElement(p.Fragment,null,p.createElement(Ow,{style:Object.assign(Object.assign(Object.assign({},F),bw),{WebkitLineClamp:i}),ref:O},d),p.createElement(Ow,{style:Object.assign(Object.assign(Object.assign({},F),bw),{WebkitLineClamp:i-1}),ref:v},d),p.createElement(Ow,{style:Object.assign(Object.assign(Object.assign({},F),bw),{WebkitLineClamp:1}),ref:y},a([],!0))),_===C5&&f&&f[0]!==f[1]&&p.createElement(Ow,{style:Object.assign(Object.assign({},F),{top:400}),ref:h},a(poe(c,M),!0)),_===T5&&p.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const rpt=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:p.createElement(Co,Object.assign({open:t?void 0:!1},r),n);var apt=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:i,type:o,disabled:s,children:l,ellipsis:c,editable:u,copyable:d,component:f,title:m}=e,h=apt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:O}=p.useContext(fn),[v]=fl("Text"),y=p.useRef(null),S=p.useRef(null),C=g("typography",r),_=ga(h,hoe),[w,T]=_5(u),[A,k]=Ir(!1,{value:T.editing}),{triggerType:I=["icon"]}=T,M=Pe=>{var Ae;Pe&&((Ae=T.onStart)===null||Ae===void 0||Ae.call(T)),k(Pe)},Q=Wft(A);tr(()=>{var Pe;!A&&Q&&((Pe=S.current)===null||Pe===void 0||Pe.focus())},[A]);const F=Pe=>{Pe==null||Pe.preventDefault(),M(!0)},L=Pe=>{var Ae;(Ae=T.onChange)===null||Ae===void 0||Ae.call(T,Pe),M(!1)},U=()=>{var Pe;(Pe=T.onCancel)===null||Pe===void 0||Pe.call(T),M(!1)},[R,$]=_5(d),{copied:P,copyLoading:z,onClick:B}=qft({copyConfig:$,children:l}),[D,X]=p.useState(!1),[Y,q]=p.useState(!1),[H,J]=p.useState(!1),[te,ne]=p.useState(!1),[ie,le]=p.useState(!0),[ue,oe]=_5(c,{expandable:!1,symbol:Pe=>Pe?v==null?void 0:v.collapse:v==null?void 0:v.expand}),[ge,ve]=Ir(oe.defaultExpanded||!1,{value:oe.expanded}),he=ue&&(!ge||oe.expandable==="collapsible"),{rows:me=1}=oe,xe=p.useMemo(()=>he&&(oe.suffix!==void 0||oe.onEllipsis||oe.expandable||w||R),[he,oe,w,R]);tr(()=>{ue&&!xe&&(X(r9("webkitLineClamp")),q(r9("textOverflow")))},[xe,ue]);const[we,Qe]=p.useState(he),Ie=p.useMemo(()=>xe?!1:me===1?Y:D,[xe,Y,D]);tr(()=>{Qe(Ie&&he)},[Ie,he]);const Ee=he&&(we?te:H),De=he&&me===1&&we,Le=he&&me>1&&we,Ne=(Pe,Ae)=>{var Oe;ve(Ae.expanded),(Oe=oe.onExpand)===null||Oe===void 0||Oe.call(oe,Pe,Ae)},[et,He]=p.useState(0),pt=({offsetWidth:Pe})=>{He(Pe)},lt=Pe=>{var Ae;J(Pe),H!==Pe&&((Ae=oe.onEllipsis)===null||Ae===void 0||Ae.call(oe,Pe))};p.useEffect(()=>{const Pe=y.current;if(ue&&we&&Pe){const Ae=Jft(Pe);te!==Ae&&ne(Ae)}},[ue,we,l,Le,ie,et]),p.useEffect(()=>{const Pe=y.current;if(typeof IntersectionObserver>"u"||!Pe||!we||!he)return;const Ae=new IntersectionObserver(()=>{le(!!Pe.offsetParent)});return Ae.observe(Pe),()=>{Ae.disconnect()}},[we,he]);const it=Gft(oe.tooltip,T.text,l),ut=p.useMemo(()=>{if(!(!ue||we))return[T.text,l,m,it.title].find(RX)},[ue,we,m,it.title,Ee]);if(A)return p.createElement(Fft,{value:(n=T.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:L,onCancel:U,onEnd:T.onEnd,prefixCls:C,className:a,style:i,direction:O,component:f,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const We=()=>{const{expandable:Pe,symbol:Ae}=oe;return Pe?p.createElement("button",{type:"button",key:"expand",className:`${C}-${ge?"collapse":"expand"}`,onClick:Oe=>Ne(Oe,{expanded:!ge}),"aria-label":ge?v.collapse:v==null?void 0:v.expand},typeof Ae=="function"?Ae(ge):Ae):null},Me=()=>{if(!w)return;const{icon:Pe,tooltip:Ae,tabIndex:Oe}=T,Te=To(Ae)[0]||(v==null?void 0:v.edit),Ue=typeof Te=="string"?Te:"";return I.includes("icon")?p.createElement(Co,{key:"edit",title:Ae===!1?"":Te},p.createElement("button",{type:"button",ref:S,className:`${C}-edit`,onClick:F,"aria-label":Ue,tabIndex:Oe},Pe||p.createElement($X,{role:"button"}))):null},Ge=()=>R?p.createElement(ept,Object.assign({key:"copy"},$,{prefixCls:C,copied:P,locale:v,onCopy:B,loading:z,iconOnly:l==null})):null,ze=Pe=>[Pe&&We(),Me(),Ge()],qe=Pe=>[Pe&&!ge&&p.createElement("span",{"aria-hidden":!0,key:"ellipsis"},opt),oe.suffix,ze(Pe)];return p.createElement(Eo,{onResize:pt,disabled:!he},Pe=>p.createElement(rpt,{tooltipProps:it,enableEllipsis:he,isEllipsis:Ee},p.createElement(a$e,Object.assign({className:ce({[`${C}-${o}`]:o,[`${C}-disabled`]:s,[`${C}-ellipsis`]:ue,[`${C}-ellipsis-single-line`]:De,[`${C}-ellipsis-multiple-line`]:Le},a),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:Le?me:void 0}),component:f,ref:Ci(Pe,y,t),direction:O,onClick:I.includes("text")?F:void 0,"aria-label":ut==null?void 0:ut.toString(),title:m},_),p.createElement(npt,{enableMeasure:he&&!we,text:l,rows:me,width:et,onEllipsis:lt,expanded:ge,miscDeps:[P,ge,z,w,R,v].concat(Ke(hoe.map(Ae=>e[Ae])))},(Ae,Oe)=>ipt(e,p.createElement(p.Fragment,null,Ae.length>0&&Oe&&!ge&&ut?p.createElement("span",{key:"show-content","aria-hidden":!0},Ae):Ae,qe(Oe)))))))});var spt=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:i}=e,o=spt(e,["ellipsis","rel","children","navigate"]),s=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return p.createElement(eA,Object.assign({},s,{ref:t,ellipsis:!!n,component:"a"}),a)});var cpt=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=cpt(e,["children"]);return p.createElement(eA,Object.assign({ref:t},r,{component:"div"}),n)});var dpt=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=dpt(e,["ellipsis","children"]),i=p.useMemo(()=>n&&typeof n=="object"?ga(n,["expandable","rows"]):n,[n]);return p.createElement(eA,Object.assign({ref:t},a,{ellipsis:i,component:"span"}),r)},ppt=p.forwardRef(fpt);var mpt=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=mpt(e,["level","children"]),i=hpt.includes(n)?`h${n}`:"h1";return p.createElement(eA,Object.assign({ref:t},a,{component:i}),r)}),zo=a$e;zo.Text=ppt;zo.Link=lpt;zo.Title=gpt;zo.Paragraph=upt;const $5=(function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?(Ma(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0});function Opt(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function goe(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Ooe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var i=e.data[a];if(Array.isArray(i)){i.forEach(function(o){n.append("".concat(a,"[]"),o)});return}n.append(a,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Opt(e,t),goe(t)):e.onSuccess(goe(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var bpt=(function(){var e=$s(da().mark(function t(n,r){var a,i,o,s,l,c,u,d;return da().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=function(){return c=$s(da().mark(function g(O){return da().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(S){O.file(function(C){r(C)?(O.fullPath&&!C.webkitRelativePath&&(Object.defineProperties(C,{webkitRelativePath:{writable:!0}}),C.webkitRelativePath=O.fullPath.replace(/^\//,""),Object.defineProperties(C,{webkitRelativePath:{writable:!1}})),S(C)):S(null)})}));case 1:case"end":return y.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=$s(da().mark(function g(O){var v,y,S,C,_;return da().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:v=O.createReader(),y=[];case 2:return T.next=5,new Promise(function(A){v.readEntries(A,function(){return A([])})});case 5:if(S=T.sent,C=S.length,C){T.next=9;break}return T.abrupt("break",12);case 9:for(_=0;_0||g.some(function(C){return C.kind==="file"}))&&(u==null||u()),!h){S.next=11;break}return S.next=7,bpt(Array.prototype.slice.call(g),function(C){return $5(C,r.props.accept)});case 7:O=S.sent,r.uploadFiles(O),S.next=14;break;case 11:v=Ke(O).filter(function(C){return $5(C,m)}),f===!1&&(v=O.slice(0,1)),r.uploadFiles(v);case 14:case"end":return S.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}})()),ae(Yt(r),"onFilePaste",(function(){var s=$s(da().mark(function l(c){var u,d;return da().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u=r.props.pastable,u){m.next=3;break}return m.abrupt("return");case 3:if(c.type!=="paste"){m.next=6;break}return d=c.clipboardData,m.abrupt("return",r.onDataTransferFiles(d,function(){c.preventDefault()}));case 6:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}})()),ae(Yt(r),"onFileDragOver",function(s){s.preventDefault()}),ae(Yt(r),"onFileDrop",(function(){var s=$s(da().mark(function l(c){var u;return da().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c.preventDefault(),c.type!=="drop"){f.next=4;break}return u=c.dataTransfer,f.abrupt("return",r.onDataTransferFiles(u));case 4:case"end":return f.stop()}},l)}));return function(l){return s.apply(this,arguments)}})()),ae(Yt(r),"uploadFiles",function(s){var l=Ke(s),c=l.map(function(u){return u.uid=R5(),r.processFile(u,l)});Promise.all(c).then(function(u){var d=r.props.onBatchStart;d==null||d(u.map(function(f){var m=f.origin,h=f.parsedFile;return{file:m,parsedFile:h}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){r.post(f)})})}),ae(Yt(r),"processFile",(function(){var s=$s(da().mark(function l(c,u){var d,f,m,h,g,O,v,y,S;return da().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(d=r.props.beforeUpload,f=c,!d){_.next=14;break}return _.prev=3,_.next=6,d(c,u);case 6:f=_.sent,_.next=12;break;case 9:_.prev=9,_.t0=_.catch(3),f=!1;case 12:if(f!==!1){_.next=14;break}return _.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(m=r.props.action,typeof m!="function"){_.next=21;break}return _.next=18,m(c);case 18:h=_.sent,_.next=22;break;case 21:h=m;case 22:if(g=r.props.data,typeof g!="function"){_.next=29;break}return _.next=26,g(c);case 26:O=_.sent,_.next=30;break;case 29:O=g;case 30:return v=(Ut(f)==="object"||typeof f=="string")&&f?f:c,v instanceof File?y=v:y=new File([v],c.name,{type:c.type}),S=y,S.uid=c.uid,_.abrupt("return",{origin:c,data:O,parsedFile:S,action:h});case 35:case"end":return _.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}})()),ae(Yt(r),"saveFileInput",function(s){r.fileInput=s}),r}return _a(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var a=this.props.pastable;a&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(a){var i=this.props.pastable;i&&!a.pastable?document.addEventListener("paste",this.onFilePaste):!i&&a.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(a){var i=this,o=a.data,s=a.origin,l=a.action,c=a.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,f=u.customRequest,m=u.name,h=u.headers,g=u.withCredentials,O=u.method,v=s.uid,y=f||Ooe,S={action:l,filename:m,data:o,file:c,headers:h,withCredentials:g,method:O||"post",onProgress:function(_){var w=i.props.onProgress;w==null||w(_,c)},onSuccess:function(_,w){var T=i.props.onSuccess;T==null||T(_,c,w),delete i.reqs[v]},onError:function(_,w){var T=i.props.onError;T==null||T(_,w,c),delete i.reqs[v]}};d(s),this.reqs[v]=y(S,{defaultRequest:Ooe})}}},{key:"reset",value:function(){this.setState({uid:R5()})}},{key:"abort",value:function(a){var i=this.reqs;if(a){var o=a.uid?a.uid:a;i[o]&&i[o].abort&&i[o].abort(),delete i[o]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var a=this.props,i=a.component,o=a.prefixCls,s=a.className,l=a.classNames,c=l===void 0?{}:l,u=a.disabled,d=a.id,f=a.name,m=a.style,h=a.styles,g=h===void 0?{}:h,O=a.multiple,v=a.accept,y=a.capture,S=a.children,C=a.directory,_=a.folder,w=a.openFileDialogOnClick,T=a.onMouseEnter,A=a.onMouseLeave,k=a.hasControlInside,I=on(a,Spt),M=ce(ae(ae(ae({},o,!0),"".concat(o,"-disabled"),u),s,s)),Q=C||_?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},F=u?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:T,onMouseLeave:A,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:k?void 0:"0"};return Z.createElement(i,Re({},F,{className:M,role:k?void 0:"button",style:m}),Z.createElement("input",Re({},bi(I,{aria:!0,data:!0}),{id:d,name:f,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(U){return U.stopPropagation()},key:this.state.uid,style:se({display:"none"},g.input),className:c.input,accept:v},Q,{multiple:O,onChange:this.onChange},y!=null?{capture:y}:{})),S)}}]),n})(p.Component);function P5(){}var L9=(function(e){dl(n,e);var t=Wl(n);function n(){var r;Sa(this,n);for(var a=arguments.length,i=new Array(a),o=0;o{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${de(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${de(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + `]:Object.assign(Object.assign({},Pj(e)),{marginInlineStart:e.marginXXS})}),fpt(e)),ppt(e)),mpt()),{"&-rtl":{direction:"rtl"}})}},gpt=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),P$e=Er("Typography",hpt,gpt),Opt=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:i,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:f,enterIcon:m=p.createElement(spt,null)}=e,h=p.useRef(null),g=p.useRef(!1),O=p.useRef(null),[v,y]=p.useState(l);p.useEffect(()=>{y(l)},[l]),p.useEffect(()=>{var D;if(!((D=h.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:U}=h.current.resizableTextArea;U.focus();const{length:R}=U.value;U.setSelectionRange(R,R)}},[]);const S=({target:D})=>{y(D.value.replace(/[\n\r]/g,""))},C=()=>{g.current=!0},_=()=>{g.current=!1},w=({keyCode:D})=>{g.current||(O.current=D)},T=()=>{c(v.trim())},k=({keyCode:D,ctrlKey:U,altKey:R,metaKey:$,shiftKey:P})=>{O.current!==D||g.current||U||R||$||P||(D===Ht.ENTER?(T(),d==null||d()):D===Ht.ESC&&u())},A=()=>{T()},[I,M,Q]=P$e(t),B=le(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${f}`]:!!f},r,M,Q);return I(p.createElement("div",{className:B,style:a},p.createElement(z2e,{ref:h,maxLength:o,value:v,onChange:S,onKeyDown:w,onKeyUp:k,onCompositionStart:C,onCompositionEnd:_,onBlur:A,"aria-label":n,rows:1,autoSize:s}),m!==null?To(m,{className:`${t}-edit-content-confirm`}):null))};var A5,Ioe;function bpt(){return Ioe||(Ioe=1,A5=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var O=t[o.format]||t.default;window.clipboardData.setData(O,i)}else g.clipboardData.clearData(),g.clipboardData.setData(o.format,i);o.onCopy&&(g.preventDefault(),o.onCopy(g.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),d.addRange(u);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");m=!0}catch(g){s&&console.error("unable to copy using execCommand: ",g),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",i),o.onCopy&&o.onCopy(window.clipboardData),m=!0}catch(O){s&&console.error("unable to copy using clipboardData: ",O),s&&console.error("falling back to prompt"),l=r("message"in o?o.message:n),window.prompt(l,i)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(u):d.removeAllRanges()),f&&document.body.removeChild(f),c()}return m}return N5=a,N5}var ypt=vpt();const Spt=Ii(ypt);var _pt=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):a(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const Ept=({copyConfig:e,children:t})=>{const[n,r]=p.useState(!1),[a,i]=p.useState(!1),o=p.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},l={};e.format&&(l.format=e.format),p.useEffect(()=>s,[]);const c=ar(u=>_pt(void 0,void 0,void 0,function*(){var d;u==null||u.preventDefault(),u==null||u.stopPropagation(),i(!0);try{const f=typeof e.text=="function"?yield e.text():e.text;Spt(f||Xst(t,!0).join("")||"",l),i(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),(d=e.onCopy)===null||d===void 0||d.call(e,u)}catch(f){throw i(!1),f}}));return{copied:n,copyLoading:a,onClick:c}};function I5(e,t){return p.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const xpt=e=>{const t=p.useRef(void 0);return p.useEffect(()=>{t.current=e}),t.current},Tpt=(e,t,n)=>p.useMemo(()=>e===!0?{title:t??n}:p.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var wpt=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:i,setContentRef:o,children:s,direction:l,style:c}=e,u=wpt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,className:m,style:h}=$i("typography"),g=l??f,O=o?Ci(t,o):t,v=d("typography",n),[y,S,C]=P$e(v),_=le(v,m,{[`${v}-rtl`]:g==="rtl"},a,i,S,C),w=Object.assign(Object.assign({},h),c);return y(p.createElement(r,Object.assign({className:_,style:w,ref:O},u),s))});var Cpt={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"},$pt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:Cpt}))},dA=p.forwardRef($pt);function Doe(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function M5(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Rpt(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 JX=e=>["string","number"].includes(typeof e),Ppt=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:a,icon:i,tabIndex:o,onCopy:s,loading:l})=>{const c=Doe(a),u=Doe(i),{copied:d,copy:f}=n??{},m=t?d:f,h=M5(c[t?1:0],m),g=typeof h=="string"?h:m;return p.createElement(wo,{title:h},p.createElement("button",{type:"button",className:le(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":g,tabIndex:o},t?M5(u[1],p.createElement(zk,null),!0):M5(u[0],l?p.createElement(vu,null):p.createElement(dA,null),!0)))},Ew=p.forwardRef(({style:e,children:t},n)=>{const r=p.useRef(null);return p.useImperativeHandle(n,()=>({isExceed:()=>{const a=r.current;return a.scrollHeight>a.clientHeight},getHeight:()=>r.current.clientHeight})),p.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)}),kpt=e=>e.reduce((t,n)=>t+(JX(n)?String(n).length:1),0);function Loe(e,t){let n=0;const r=[];for(let a=0;at){const c=t-n;return r.push(String(i).slice(0,c)),r}r.push(i),n=l}return e}const D5=0,L5=1,Q5=2,z5=3,Qoe=4,xw={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Apt(e){const{enableMeasure:t,width:n,text:r,children:a,rows:i,expanded:o,miscDeps:s,onEllipsis:l}=e,c=p.useMemo(()=>xo(r),[r]),u=p.useMemo(()=>kpt(c),[r]),d=p.useMemo(()=>a(c,!1),[r]),[f,m]=p.useState(null),h=p.useRef(null),g=p.useRef(null),O=p.useRef(null),v=p.useRef(null),y=p.useRef(null),[S,C]=p.useState(!1),[_,w]=p.useState(D5),[T,k]=p.useState(0),[A,I]=p.useState(null);tr(()=>{w(t&&n&&u?L5:D5)},[n,r,i,t,c]),tr(()=>{var D,U,R,$;if(_===L5){w(Q5);const P=g.current&&getComputedStyle(g.current).whiteSpace;I(P)}else if(_===Q5){const P=!!(!((D=O.current)===null||D===void 0)&&D.isExceed());w(P?z5:Qoe),m(P?[0,u]:null),C(P);const z=((U=O.current)===null||U===void 0?void 0:U.getHeight())||0,F=i===1?0:((R=v.current)===null||R===void 0?void 0:R.getHeight())||0,L=(($=y.current)===null||$===void 0?void 0:$.getHeight())||0,X=Math.max(z,F+L);k(X+1),l(P)}},[_]);const M=f?Math.ceil((f[0]+f[1])/2):0;tr(()=>{var D;const[U,R]=f||[0,0];if(U!==R){const P=(((D=h.current)===null||D===void 0?void 0:D.getHeight())||0)>T;let z=M;R-U===1&&(z=P?U:R),m(P?[U,z]:[z,R])}},[f,M]);const Q=p.useMemo(()=>{if(!t)return a(c,!1);if(_!==z5||!f||f[0]!==f[1]){const D=a(c,!1);return[Qoe,D5].includes(_)?D:p.createElement("span",{style:Object.assign(Object.assign({},xw),{WebkitLineClamp:i})},D)}return a(o?c:Loe(c,f[0]),S)},[o,_,f,c].concat(et(s))),B={width:n,margin:0,padding:0,whiteSpace:A==="nowrap"?"normal":"inherit"};return p.createElement(p.Fragment,null,Q,_===Q5&&p.createElement(p.Fragment,null,p.createElement(Ew,{style:Object.assign(Object.assign(Object.assign({},B),xw),{WebkitLineClamp:i}),ref:O},d),p.createElement(Ew,{style:Object.assign(Object.assign(Object.assign({},B),xw),{WebkitLineClamp:i-1}),ref:v},d),p.createElement(Ew,{style:Object.assign(Object.assign(Object.assign({},B),xw),{WebkitLineClamp:1}),ref:y},a([],!0))),_===z5&&f&&f[0]!==f[1]&&p.createElement(Ew,{style:Object.assign(Object.assign({},B),{top:400}),ref:h},a(Loe(c,M),!0)),_===L5&&p.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const Npt=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:p.createElement(wo,Object.assign({open:t?void 0:!1},r),n);var Ipt=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:i,type:o,disabled:s,children:l,ellipsis:c,editable:u,copyable:d,component:f,title:m}=e,h=Ipt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:O}=p.useContext(pn),[v]=fl("Text"),y=p.useRef(null),S=p.useRef(null),C=g("typography",r),_=Oa(h,zoe),[w,T]=I5(u),[k,A]=Ir(!1,{value:T.editing}),{triggerType:I=["icon"]}=T,M=Re=>{var Ie;Re&&((Ie=T.onStart)===null||Ie===void 0||Ie.call(T)),A(Re)},Q=xpt(k);tr(()=>{var Re;!k&&Q&&((Re=S.current)===null||Re===void 0||Re.focus())},[k]);const B=Re=>{Re==null||Re.preventDefault(),M(!0)},D=Re=>{var Ie;(Ie=T.onChange)===null||Ie===void 0||Ie.call(T,Re),M(!1)},U=()=>{var Re;(Re=T.onCancel)===null||Re===void 0||Re.call(T),M(!1)},[R,$]=I5(d),{copied:P,copyLoading:z,onClick:F}=Ept({copyConfig:$,children:l}),[L,X]=p.useState(!1),[Y,q]=p.useState(!1),[G,ee]=p.useState(!1),[K,ne]=p.useState(!1),[ie,se]=p.useState(!0),[ue,ce]=I5(c,{expandable:!1,symbol:Re=>Re?v==null?void 0:v.collapse:v==null?void 0:v.expand}),[be,ge]=Ir(ce.defaultExpanded||!1,{value:ce.expanded}),Oe=ue&&(!be||ce.expandable==="collapsible"),{rows:me=1}=ce,Te=p.useMemo(()=>Oe&&(ce.suffix!==void 0||ce.onEllipsis||ce.expandable||w||R),[Oe,ce,w,R]);tr(()=>{ue&&!Te&&(X(E9("webkitLineClamp")),q(E9("textOverflow")))},[Te,ue]);const[Ce,Fe]=p.useState(Oe),Me=p.useMemo(()=>Te?!1:me===1?Y:L,[Te,Y,L]);tr(()=>{Fe(Me&&Oe)},[Me,Oe]);const Ee=Oe&&(Ce?K:G),Le=Oe&&me===1&&Ce,ze=Oe&&me>1&&Ce,Qe=(Re,Ie)=>{var ve;ge(Ie.expanded),(ve=ce.onExpand)===null||ve===void 0||ve.call(ce,Re,Ie)},[Je,He]=p.useState(0),gt=({offsetWidth:Re})=>{He(Re)},st=Re=>{var Ie;ee(Re),G!==Re&&((Ie=ce.onEllipsis)===null||Ie===void 0||Ie.call(ce,Re))};p.useEffect(()=>{const Re=y.current;if(ue&&Ce&&Re){const Ie=Rpt(Re);K!==Ie&&ne(Ie)}},[ue,Ce,l,ze,ie,Je]),p.useEffect(()=>{const Re=y.current;if(typeof IntersectionObserver>"u"||!Re||!Ce||!Oe)return;const Ie=new IntersectionObserver(()=>{se(!!Re.offsetParent)});return Ie.observe(Re),()=>{Ie.disconnect()}},[Ce,Oe]);const lt=Tpt(ce.tooltip,T.text,l),pt=p.useMemo(()=>{if(!(!ue||Ce))return[T.text,l,m,lt.title].find(JX)},[ue,Ce,m,lt.title,Ee]);if(k)return p.createElement(Opt,{value:(n=T.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:D,onCancel:U,onEnd:T.onEnd,prefixCls:C,className:a,style:i,direction:O,component:f,maxLength:T.maxLength,autoSize:T.autoSize,enterIcon:T.enterIcon});const Ze=()=>{const{expandable:Re,symbol:Ie}=ce;return Re?p.createElement("button",{type:"button",key:"expand",className:`${C}-${be?"collapse":"expand"}`,onClick:ve=>Qe(ve,{expanded:!be}),"aria-label":be?v.collapse:v==null?void 0:v.expand},typeof Ie=="function"?Ie(be):Ie):null},De=()=>{if(!w)return;const{icon:Re,tooltip:Ie,tabIndex:ve}=T,we=xo(Ie)[0]||(v==null?void 0:v.edit),Xe=typeof we=="string"?we:"";return I.includes("icon")?p.createElement(wo,{key:"edit",title:Ie===!1?"":we},p.createElement("button",{type:"button",ref:S,className:`${C}-edit`,onClick:B,"aria-label":Xe,tabIndex:ve},Re||p.createElement(KX,{role:"button"}))):null},Ke=()=>R?p.createElement(Ppt,Object.assign({key:"copy"},$,{prefixCls:C,copied:P,locale:v,onCopy:F,loading:z,iconOnly:l==null})):null,Be=Re=>[Re&&Ze(),De(),Ke()],We=Re=>[Re&&!be&&p.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Dpt),ce.suffix,Be(Re)];return p.createElement(_o,{onResize:gt,disabled:!Oe},Re=>p.createElement(Npt,{tooltipProps:lt,enableEllipsis:Oe,isEllipsis:Ee},p.createElement(k$e,Object.assign({className:le({[`${C}-${o}`]:o,[`${C}-disabled`]:s,[`${C}-ellipsis`]:ue,[`${C}-ellipsis-single-line`]:Le,[`${C}-ellipsis-multiple-line`]:ze},a),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:ze?me:void 0}),component:f,ref:Ci(Re,y,t),direction:O,onClick:I.includes("text")?B:void 0,"aria-label":pt==null?void 0:pt.toString(),title:m},_),p.createElement(Apt,{enableMeasure:Oe&&!Ce,text:l,rows:me,width:Je,onEllipsis:st,expanded:be,miscDeps:[P,be,z,w,R,v].concat(et(zoe.map(Ie=>e[Ie])))},(Ie,ve)=>Mpt(e,p.createElement(p.Fragment,null,Ie.length>0&&ve&&!be&&pt?p.createElement("span",{key:"show-content","aria-hidden":!0},Ie):Ie,We(ve)))))))});var Lpt=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:i}=e,o=Lpt(e,["ellipsis","rel","children","navigate"]),s=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return p.createElement(fA,Object.assign({},s,{ref:t,ellipsis:!!n,component:"a"}),a)});var zpt=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=zpt(e,["children"]);return p.createElement(fA,Object.assign({ref:t},r,{component:"div"}),n)});var Fpt=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=Fpt(e,["ellipsis","children"]),i=p.useMemo(()=>n&&typeof n=="object"?Oa(n,["expandable","rows"]):n,[n]);return p.createElement(fA,Object.assign({ref:t},a,{ellipsis:i,component:"span"}),r)},jpt=p.forwardRef(Upt);var Xpt=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=Xpt(e,["level","children"]),i=Ypt.includes(n)?`h${n}`:"h1";return p.createElement(fA,Object.assign({ref:t},a,{component:i}),r)}),Qo=k$e;Qo.Text=jpt;Qo.Link=Qpt;Qo.Title=Vpt;Qo.Paragraph=Bpt;const B5=(function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return n.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?(Da(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0});function qpt(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function Boe(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Foe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var i=e.data[a];if(Array.isArray(i)){i.forEach(function(o){n.append("".concat(a,"[]"),o)});return}n.append(a,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(qpt(e,t),Boe(t)):e.onSuccess(Boe(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var Wpt=(function(){var e=Cs(fa().mark(function t(n,r){var a,i,o,s,l,c,u,d;return fa().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:c=function(){return c=Cs(fa().mark(function g(O){return fa().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(S){O.file(function(C){r(C)?(O.fullPath&&!C.webkitRelativePath&&(Object.defineProperties(C,{webkitRelativePath:{writable:!0}}),C.webkitRelativePath=O.fullPath.replace(/^\//,""),Object.defineProperties(C,{webkitRelativePath:{writable:!1}})),S(C)):S(null)})}));case 1:case"end":return y.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=Cs(fa().mark(function g(O){var v,y,S,C,_;return fa().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:v=O.createReader(),y=[];case 2:return T.next=5,new Promise(function(k){v.readEntries(k,function(){return k([])})});case 5:if(S=T.sent,C=S.length,C){T.next=9;break}return T.abrupt("break",12);case 9:for(_=0;_0||g.some(function(C){return C.kind==="file"}))&&(u==null||u()),!h){S.next=11;break}return S.next=7,Wpt(Array.prototype.slice.call(g),function(C){return B5(C,r.props.accept)});case 7:O=S.sent,r.uploadFiles(O),S.next=14;break;case 11:v=et(O).filter(function(C){return B5(C,m)}),f===!1&&(v=O.slice(0,1)),r.uploadFiles(v);case 14:case"end":return S.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}})()),ae(Wt(r),"onFilePaste",(function(){var s=Cs(fa().mark(function l(c){var u,d;return fa().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u=r.props.pastable,u){m.next=3;break}return m.abrupt("return");case 3:if(c.type!=="paste"){m.next=6;break}return d=c.clipboardData,m.abrupt("return",r.onDataTransferFiles(d,function(){c.preventDefault()}));case 6:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}})()),ae(Wt(r),"onFileDragOver",function(s){s.preventDefault()}),ae(Wt(r),"onFileDrop",(function(){var s=Cs(fa().mark(function l(c){var u;return fa().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c.preventDefault(),c.type!=="drop"){f.next=4;break}return u=c.dataTransfer,f.abrupt("return",r.onDataTransferFiles(u));case 4:case"end":return f.stop()}},l)}));return function(l){return s.apply(this,arguments)}})()),ae(Wt(r),"uploadFiles",function(s){var l=et(s),c=l.map(function(u){return u.uid=F5(),r.processFile(u,l)});Promise.all(c).then(function(u){var d=r.props.onBatchStart;d==null||d(u.map(function(f){var m=f.origin,h=f.parsedFile;return{file:m,parsedFile:h}})),u.filter(function(f){return f.parsedFile!==null}).forEach(function(f){r.post(f)})})}),ae(Wt(r),"processFile",(function(){var s=Cs(fa().mark(function l(c,u){var d,f,m,h,g,O,v,y,S;return fa().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(d=r.props.beforeUpload,f=c,!d){_.next=14;break}return _.prev=3,_.next=6,d(c,u);case 6:f=_.sent,_.next=12;break;case 9:_.prev=9,_.t0=_.catch(3),f=!1;case 12:if(f!==!1){_.next=14;break}return _.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(m=r.props.action,typeof m!="function"){_.next=21;break}return _.next=18,m(c);case 18:h=_.sent,_.next=22;break;case 21:h=m;case 22:if(g=r.props.data,typeof g!="function"){_.next=29;break}return _.next=26,g(c);case 26:O=_.sent,_.next=30;break;case 29:O=g;case 30:return v=(Xt(f)==="object"||typeof f=="string")&&f?f:c,v instanceof File?y=v:y=new File([v],c.name,{type:c.type}),S=y,S.uid=c.uid,_.abrupt("return",{origin:c,data:O,parsedFile:S,action:h});case 35:case"end":return _.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}})()),ae(Wt(r),"saveFileInput",function(s){r.fileInput=s}),r}return Ea(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var a=this.props.pastable;a&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(a){var i=this.props.pastable;i&&!a.pastable?document.addEventListener("paste",this.onFilePaste):!i&&a.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(a){var i=this,o=a.data,s=a.origin,l=a.action,c=a.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,f=u.customRequest,m=u.name,h=u.headers,g=u.withCredentials,O=u.method,v=s.uid,y=f||Foe,S={action:l,filename:m,data:o,file:c,headers:h,withCredentials:g,method:O||"post",onProgress:function(_){var w=i.props.onProgress;w==null||w(_,c)},onSuccess:function(_,w){var T=i.props.onSuccess;T==null||T(_,c,w),delete i.reqs[v]},onError:function(_,w){var T=i.props.onError;T==null||T(_,w,c),delete i.reqs[v]}};d(s),this.reqs[v]=y(S,{defaultRequest:Foe})}}},{key:"reset",value:function(){this.setState({uid:F5()})}},{key:"abort",value:function(a){var i=this.reqs;if(a){var o=a.uid?a.uid:a;i[o]&&i[o].abort&&i[o].abort(),delete i[o]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var a=this.props,i=a.component,o=a.prefixCls,s=a.className,l=a.classNames,c=l===void 0?{}:l,u=a.disabled,d=a.id,f=a.name,m=a.style,h=a.styles,g=h===void 0?{}:h,O=a.multiple,v=a.accept,y=a.capture,S=a.children,C=a.directory,_=a.folder,w=a.openFileDialogOnClick,T=a.onMouseEnter,k=a.onMouseLeave,A=a.hasControlInside,I=ln(a,Zpt),M=le(ae(ae(ae({},o,!0),"".concat(o,"-disabled"),u),s,s)),Q=C||_?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},B=u?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:T,onMouseLeave:k,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:A?void 0:"0"};return Z.createElement(i,Ae({},B,{className:M,role:A?void 0:"button",style:m}),Z.createElement("input",Ae({},vi(I,{aria:!0,data:!0}),{id:d,name:f,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(U){return U.stopPropagation()},key:this.state.uid,style:oe({display:"none"},g.input),className:c.input,accept:v},Q,{multiple:O,onChange:this.onChange},y!=null?{capture:y}:{})),S)}}]),n})(p.Component);function U5(){}var rz=(function(e){dl(n,e);var t=Wl(n);function n(){var r;_a(this,n);for(var a=arguments.length,i=new Array(a),o=0;o{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${de(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${de(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` &:not(${t}-disabled):hover, &-hover:not(${t}-disabled) `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${de(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, p${t}-text, p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},xpt=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:a,calc:i}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},dd()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},ll),{padding:`0 ${de(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + `]:{color:e.colorTextDisabled}}}}}},emt=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:a,calc:i}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Od()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},ll),{padding:`0 ${de(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${l}:focus-visible, &.picture ${l} - `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Tpt=e=>{const{componentCls:t}=e,n=new kr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new kr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:gj(e)},n,r]},wpt=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:i}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` + `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},tmt=e=>{const{componentCls:t}=e,n=new kr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new kr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:Bj(e)},n,r]},nmt=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:i}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` ${o}${o}-picture, ${o}${o}-picture-card, ${o}${o}-picture-circle - `]:{[s]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},ll),{width:r,height:r,lineHeight:de(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:a,width:`calc(100% - ${de(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${u_[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${u_.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:a}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},Cpt=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:i}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` + `]:{[s]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${de(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},ll),{width:r,height:r,lineHeight:de(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:a,width:`calc(100% - ${de(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${g_[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${g_.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:a}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},rmt=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:i}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},dd()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${de(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${de(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${de(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + `]:Object.assign(Object.assign({},Od()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${de(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${de(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${de(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` ${n}-eye, ${n}-download, ${n}-delete - `]:{zIndex:10,width:r,margin:`0 ${de(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${de(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${de(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},$pt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Rpt=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},zr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Ppt=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),kpt=Er("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:i}=e,o=nr(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[Rpt(o),Ept(o),wpt(o),Cpt(o),xpt(o),Tpt(o),$pt(o),uk(o)]},Ppt);var Apt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},Npt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Apt}))},Ipt=p.forwardRef(Npt),Mpt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Dpt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Mpt}))},Lpt=p.forwardRef(Dpt),Qpt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},zpt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:Qpt}))},Bpt=p.forwardRef(zpt);function vw(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function yw(e,t){const n=Ke(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function k5(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Fpt(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const Upt=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},i$e=e=>e.indexOf("image/")===0,jpt=e=>{if(e.type&&!e.thumbUrl)return i$e(e.type);const t=e.thumbUrl||e.url||"",n=Upt(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},op=200;function Xpt(e){return new Promise(t=>{if(!e.type||!i$e(e.type)){t("");return}const n=document.createElement("canvas");n.width=op,n.height=op,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${op}px; height: ${op}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:o}=a;let s=op,l=op,c=0,u=0;i>o?(l=o*(op/i),u=-(l-s)/2):(s=i*(op/o),c=-(s-l)/2),r.drawImage(a,c,u,s,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(d)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(a.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var o$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"},Ypt=function(t,n){return p.createElement(Tn,Re({},t,{ref:n,icon:o$e}))},Vh=p.forwardRef(Ypt);const Vpt=p.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:i,items:o,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:h,previewIcon:g,removeIcon:O,downloadIcon:v,extra:y,onPreview:S,onDownload:C,onClose:_},w)=>{var T,A;const{status:k}=i,[I,M]=p.useState(k);p.useEffect(()=>{k!=="removed"&&M(k)},[k]);const[Q,F]=p.useState(!1);p.useEffect(()=>{const oe=setTimeout(()=>{F(!0)},300);return()=>{clearTimeout(oe)}},[]);const L=l(i);let U=p.createElement("div",{className:`${e}-icon`},L);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(I==="uploading"||!i.thumbUrl&&!i.url){const oe=ce(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:I!=="uploading"});U=p.createElement("div",{className:oe},L)}else{const oe=d!=null&&d(i)?p.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):L,ge=ce(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});U=p.createElement("a",{className:ge,onClick:ve=>S(i,ve),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},oe)}const R=ce(`${e}-list-item`,`${e}-list-item-${I}`),$=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,P=(typeof m=="function"?m(i):m)?c((typeof O=="function"?O(i):O)||p.createElement(kf,null),()=>_(i),e,r.removeFile,!0):null,z=(typeof h=="function"?h(i):h)&&I==="done"?c((typeof v=="function"?v(i):v)||p.createElement(Vh,null),()=>C(i),e,r.downloadFile):null,B=a!=="picture-card"&&a!=="picture-circle"&&p.createElement("span",{key:"download-delete",className:ce(`${e}-list-item-actions`,{picture:a==="picture"})},z,P),D=typeof y=="function"?y(i):y,X=D&&p.createElement("span",{className:`${e}-list-item-extra`},D),Y=ce(`${e}-list-item-name`),q=i.url?p.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Y,title:i.name},$,{href:i.url,onClick:oe=>S(i,oe)}),i.name,X):p.createElement("span",{key:"view",className:Y,onClick:oe=>S(i,oe),title:i.name},i.name,X),H=(typeof f=="function"?f(i):f)&&(i.url||i.thumbUrl)?p.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:oe=>S(i,oe),title:r.previewFile},typeof g=="function"?g(i):g||p.createElement(uX,null)):null,J=(a==="picture-card"||a==="picture-circle")&&I!=="uploading"&&p.createElement("span",{className:`${e}-list-item-actions`},H,I==="done"&&z,P),{getPrefixCls:te}=p.useContext(fn),ne=te(),ie=p.createElement("div",{className:R},U,q,B,J,Q&&p.createElement(ao,{motionName:`${ne}-fade`,visible:I==="uploading",motionDeadline:2e3},({className:oe})=>{const ge="percent"in i?p.createElement(Wk,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return p.createElement("div",{className:ce(`${e}-list-item-progress`,oe)},ge)})),le=i.response&&typeof i.response=="string"?i.response:((T=i.error)===null||T===void 0?void 0:T.statusText)||((A=i.error)===null||A===void 0?void 0:A.message)||r.uploadError,ue=I==="error"?p.createElement(Co,{title:le,getPopupContainer:oe=>oe.parentNode},ie):ie;return p.createElement("div",{className:ce(`${e}-list-item-container`,t),style:n,ref:w},u?u(ue,i,o,{download:C.bind(null,i),preview:S.bind(null,i),remove:_.bind(null,i)}):ue)}),qpt=(e,t)=>{const{listType:n="text",previewFile:r=Xpt,onPreview:a,onDownload:i,onRemove:o,locale:s,iconRender:l,isImageUrl:c=jpt,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:g,previewIcon:O,downloadIcon:v,extra:y,progress:S={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:_=!0,itemRender:w,disabled:T}=e,[,A]=fj(),[k,I]=p.useState(!1),M=["picture-card","picture-circle"].includes(n);p.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",r==null||r(Y.originFileObj).then(q=>{Y.thumbUrl=q||"",A()}))})},[n,d,r]),p.useEffect(()=>{I(!0)},[]);const Q=(Y,q)=>{if(a)return q==null||q.preventDefault(),a(Y)},F=Y=>{typeof i=="function"?i(Y):Y.url&&window.open(Y.url)},L=Y=>{o==null||o(Y)},U=Y=>{if(l)return l(Y,n);const q=Y.status==="uploading";if(n.startsWith("picture")){const H=n==="picture"?p.createElement(mu,null):s.uploading,J=c!=null&&c(Y)?p.createElement(Bpt,null):p.createElement(Ipt,null);return q?H:J}return q?p.createElement(mu,null):p.createElement(Lpt,null)},R=(Y,q,H,J,te)=>{const ne={type:"text",size:"small",title:J,onClick:ie=>{var le,ue;q(),p.isValidElement(Y)&&((ue=(le=Y.props).onClick)===null||ue===void 0||ue.call(le,ie))},className:`${H}-list-item-action`,disabled:te?T:!1};return p.isValidElement(Y)?p.createElement(Ur,Object.assign({},ne,{icon:wo(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):p.createElement(Ur,Object.assign({},ne),p.createElement("span",null,Y))};p.useImperativeHandle(t,()=>({handlePreview:Q,handleDownload:F}));const{getPrefixCls:$}=p.useContext(fn),P=$("upload",u),z=$(),B=ce(`${P}-list`,`${P}-list-${n}`),D=p.useMemo(()=>ga(p_(z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[z]),X=Object.assign(Object.assign({},M?{}:D),{motionDeadline:2e3,motionName:`${P}-${M?"animate-inline":"animate"}`,keys:Ke(d.map(Y=>({key:Y.uid,file:Y}))),motionAppear:k});return p.createElement("div",{className:B},p.createElement(ak,Object.assign({},X,{component:!1}),({key:Y,file:q,className:H,style:J})=>p.createElement(Vpt,{key:Y,locale:s,prefixCls:P,className:H,style:J,file:q,items:d,progress:S,listType:n,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:h,removeIcon:g,previewIcon:O,downloadIcon:v,extra:y,iconRender:U,actionIconRender:R,itemRender:w,onPreview:Q,onDownload:F,onClose:L})),C&&p.createElement(ao,Object.assign({},X,{visible:_,forceRender:!0}),({className:Y,style:q})=>wo(C,H=>({className:ce(H.className,Y),style:Object.assign(Object.assign(Object.assign({},q),{pointerEvents:Y?"none":void 0}),H.style)}))))},Wpt=p.forwardRef(qpt);var Gpt=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):a(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const Hy=`__LIST_IGNORE_${Date.now()}__`,Hpt=(e,t)=>{const n=$i("upload"),{fileList:r,defaultFileList:a,onRemove:i,showUploadList:o=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:m,locale:h,iconRender:g,isImageUrl:O,progress:v,prefixCls:y,className:S,type:C="select",children:_,style:w,itemRender:T,maxCount:A,data:k={},multiple:I=!1,hasControlInside:M=!0,action:Q="",accept:F="",supportServerRender:L=!0,rootClassName:U}=e,R=p.useContext(Xo),$=m??R,P=e.customRequest||n.customRequest,[z,B]=Ir(a||[],{value:r,postState:Pe=>Pe??[]}),[D,X]=p.useState("drop"),Y=p.useRef(null),q=p.useRef(null);p.useMemo(()=>{const Pe=Date.now();(r||[]).forEach((Ae,Oe)=>{!Ae.uid&&!Object.isFrozen(Ae)&&(Ae.uid=`__AUTO__${Pe}_${Oe}__`)})},[r]);const H=(Pe,Ae,Oe)=>{let Te=Ke(Ae),Ue=!1;A===1?Te=Te.slice(-1):A&&(Ue=Te.length>A,Te=Te.slice(0,A)),Fl.flushSync(()=>{B(Te)});const rt={file:Pe,fileList:Te};Oe&&(rt.event=Oe),(!Ue||Pe.status==="removed"||Te.some(tt=>tt.uid===Pe.uid))&&Fl.flushSync(()=>{u==null||u(rt)})},J=(Pe,Ae)=>Gpt(void 0,void 0,void 0,function*(){const{beforeUpload:Oe,transformFile:Te}=e;let Ue=Pe;if(Oe){const rt=yield Oe(Pe,Ae);if(rt===!1)return!1;if(delete Pe[Hy],rt===Hy)return Object.defineProperty(Pe,Hy,{value:!0,configurable:!0}),!1;typeof rt=="object"&&rt&&(Ue=rt)}return Te&&(Ue=yield Te(Ue)),Ue}),te=Pe=>{const Ae=Pe.filter(Ue=>!Ue.file[Hy]);if(!Ae.length)return;const Oe=Ae.map(Ue=>vw(Ue.file));let Te=Ke(z);Oe.forEach(Ue=>{Te=yw(Ue,Te)}),Oe.forEach((Ue,rt)=>{let tt=Ue;if(Ae[rt].parsedFile)Ue.status="uploading";else{const{originFileObj:ot}=Ue;let St;try{St=new File([ot],ot.name,{type:ot.type})}catch{St=new Blob([ot],{type:ot.type}),St.name=ot.name,St.lastModifiedDate=new Date,St.lastModified=new Date().getTime()}St.uid=Ue.uid,tt=St}H(tt,Te)})},ne=(Pe,Ae,Oe)=>{try{typeof Pe=="string"&&(Pe=JSON.parse(Pe))}catch{}if(!k5(Ae,z))return;const Te=vw(Ae);Te.status="done",Te.percent=100,Te.response=Pe,Te.xhr=Oe;const Ue=yw(Te,z);H(Te,Ue)},ie=(Pe,Ae)=>{if(!k5(Ae,z))return;const Oe=vw(Ae);Oe.status="uploading",Oe.percent=Pe.percent;const Te=yw(Oe,z);H(Oe,Te,Pe)},le=(Pe,Ae,Oe)=>{if(!k5(Oe,z))return;const Te=vw(Oe);Te.error=Pe,Te.response=Ae,Te.status="error";const Ue=yw(Te,z);H(Te,Ue)},ue=Pe=>{let Ae;Promise.resolve(typeof i=="function"?i(Pe):i).then(Oe=>{var Te;if(Oe===!1)return;const Ue=Fpt(Pe,z);Ue&&(Ae=Object.assign(Object.assign({},Pe),{status:"removed"}),z==null||z.forEach(rt=>{const tt=Ae.uid!==void 0?"uid":"name";rt[tt]===Ae[tt]&&!Object.isFrozen(rt)&&(rt.status="removed")}),(Te=Y.current)===null||Te===void 0||Te.abort(Ae),H(Ae,Ue))})},oe=Pe=>{X(Pe.type),Pe.type==="drop"&&(d==null||d(Pe))};p.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:ne,onProgress:ie,onError:le,fileList:z,upload:Y.current,nativeElement:q.current}));const{getPrefixCls:ge,direction:ve,upload:he}=p.useContext(fn),me=ge("upload",y),xe=Object.assign(Object.assign({onBatchStart:te,onError:le,onProgress:ie,onSuccess:ne},e),{customRequest:P,data:k,multiple:I,action:Q,accept:F,supportServerRender:L,prefixCls:me,disabled:$,beforeUpload:J,onChange:void 0,hasControlInside:M});delete xe.className,delete xe.style,(!_||$)&&delete xe.id;const we=`${me}-wrapper`,[Qe,Ie,Ee]=kpt(me,we),[De]=fl("Upload",pu.Upload),{showRemoveIcon:Le,showPreviewIcon:Ne,showDownloadIcon:et,removeIcon:He,previewIcon:pt,downloadIcon:lt,extra:it}=typeof o=="boolean"?{}:o,ut=typeof Le>"u"?!$:Le,We=(Pe,Ae)=>o?p.createElement(Wpt,{prefixCls:me,listType:s,items:z,previewFile:f,onPreview:l,onDownload:c,onRemove:ue,showRemoveIcon:ut,showPreviewIcon:Ne,showDownloadIcon:et,removeIcon:He,previewIcon:pt,downloadIcon:lt,iconRender:g,extra:it,locale:Object.assign(Object.assign({},De),h),isImageUrl:O,progress:v,appendAction:Pe,appendActionVisible:Ae,itemRender:T,disabled:$}):Pe,Me=ce(we,S,U,Ie,Ee,he==null?void 0:he.className,{[`${me}-rtl`]:ve==="rtl",[`${me}-picture-card-wrapper`]:s==="picture-card",[`${me}-picture-circle-wrapper`]:s==="picture-circle"}),Ge=Object.assign(Object.assign({},he==null?void 0:he.style),w);if(C==="drag"){const Pe=ce(Ie,me,`${me}-drag`,{[`${me}-drag-uploading`]:z.some(Ae=>Ae.status==="uploading"),[`${me}-drag-hover`]:D==="dragover",[`${me}-disabled`]:$,[`${me}-rtl`]:ve==="rtl"});return Qe(p.createElement("span",{className:Me,ref:q},p.createElement("div",{className:Pe,style:Ge,onDrop:oe,onDragOver:oe,onDragLeave:oe},p.createElement(L9,Object.assign({},xe,{ref:Y,className:`${me}-btn`}),p.createElement("div",{className:`${me}-drag-container`},_))),We()))}const ze=ce(me,`${me}-select`,{[`${me}-disabled`]:$,[`${me}-hidden`]:!_}),qe=p.createElement("div",{className:ze,style:Ge},p.createElement(L9,Object.assign({},xe,{ref:Y})));return Qe(s==="picture-card"||s==="picture-circle"?p.createElement("span",{className:Me,ref:q},We(qe,!!_)):p.createElement("span",{className:Me,ref:q},qe,We()))},s$e=p.forwardRef(Hpt);var Zpt=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{style:n,height:r,hasControlInside:a=!1,children:i}=e,o=Zpt(e,["style","height","hasControlInside","children"]),s=Object.assign(Object.assign({},n),{height:r});return p.createElement(s$e,Object.assign({ref:t,hasControlInside:a},o,{style:s,type:"drag"}),i)}),ax=s$e;ax.Dragger=Kpt;ax.LIST_IGNORE=Hy;var PX=function(){var t=jl.useToken(),n=t.token;return n},KO=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}},A5,l$e=p.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(A5=KO("dark"))!==null&&A5!==void 0&&A5.matches?"dark":"light"}),tA=function(){return p.useContext(l$e)},Jpt=function(){var t=PX(),n=tA(),r=n.appearance,a=n.isDarkMode;return p.useMemo(function(){return pFe(fFe({token:t,css:DE}))},[t,r,a])},c$e=function(){var t=PX(),n=Jpt();return p.useMemo(function(){return se(se({},t),{},{stylish:n})},[t,n])},emt=function(t){return se(se({},t),{},{mobile:t.xs,tablet:t.md,laptop:t.lg,desktop:t.xxl})},tmt=function(){var t=PX(),n={xs:"@media (max-width: ".concat(t.screenXSMax,"px)"),sm:"@media (max-width: ".concat(t.screenSMMax,"px)"),md:"@media (max-width: ".concat(t.screenMDMax,"px)"),lg:"@media (max-width: ".concat(t.screenLGMax,"px)"),xl:"@media (max-width: ".concat(t.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(t.screenXXLMin,"px)")};return p.useMemo(function(){return emt(n)},[t])},nmt=function(t,n){return Object.entries(t).map(function(r){var a=be(r,2),i=a[0],o=a[1],s=o;return FU(o)||(s=DE(o)),n[i]?"".concat(n[i]," {").concat(s.styles,"}"):""}).join("")},rmt=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],amt=["prefixCls","iconPrefixCls"],imt=function(t){var n=t.hashPriority,r=t.useTheme,a=t.EmotionContext;return function(i,o){var s=o==null?void 0:o.__BABEL_FILE_NAME__,l=!!s;return function(c){var u=r(),d=p.useContext(a),f=d.cache,m=A1e(f,{hashPriority:(o==null?void 0:o.hashPriority)||n,label:o==null?void 0:o.label}),h=m.cx,g=m.css,O=tmt(),v=p.useMemo(function(){var y;if(i instanceof Function){var S=u.stylish,C=u.appearance,_=u.isDarkMode,w=u.prefixCls,T=u.iconPrefixCls,A=on(u,rmt),k=function(M){return nmt(M,O)};Object.assign(k,O),y=i({token:A,stylish:S,appearance:C,isDarkMode:_,prefixCls:w,iconPrefixCls:T,cx:h,css:DE,responsive:k},c)}else y=i;return Ut(y)==="object"&&(FU(y)?y=g(y):y=Object.fromEntries(Object.entries(y).map(function(I){var M=be(I,2),Q=M[0],F=M[1],L=l?"".concat(s,"-").concat(Q):void 0;return Ut(F)==="object"?l?[Q,g(F,"label:".concat(L))]:[Q,g(F)]:[Q,F]}))),y},[c,u]);return p.useMemo(function(){var y=u.prefixCls,S=u.iconPrefixCls,C=on(u,amt);return{styles:v,cx:h,theme:C,prefixCls:y,iconPrefixCls:S}},[v,u])}}},boe=function(t){if(t.ThemeProvider)return t.ThemeProvider;var n=t.ThemeContext;return function(r){return x.jsx(n.Provider,{value:r.theme,children:r.children})}},omt=Gze,u$e=i_,d$e=p.memo(function(e){var t=e.children,n=e.theme,r=e.prefixCls,a=e.getStaticInstance,i=e.staticInstanceConfig,o=tA(),s=o.appearance,l=o.isDarkMode,c=Ki.useMessage(i==null?void 0:i.message),u=be(c,2),d=u[0],f=u[1],m=S2e.useNotification(i==null?void 0:i.notification),h=be(m,2),g=h[0],O=h[1],v=oi.useModal(),y=be(v,2),S=y[0],C=y[1];p.useEffect(function(){a==null||a({message:d,modal:S,notification:g})},[]);var _=p.useMemo(function(){var w=l?jl.darkAlgorithm:jl.defaultAlgorithm,T=n;if(typeof n=="function"&&(T=n(s)),!T)return{algorithm:w};var A=T.algorithm?T.algorithm instanceof Array?T.algorithm:[T.algorithm]:[];return se(se({},T),{},{algorithm:T.algorithm?[w].concat(Ke(A)):w})},[n,l]);return x.jsxs(ci,{prefixCls:r,theme:_,children:[f,O,C,t]})});d$e.displayName="AntdProvider";function smt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function lmt(e,t){return cmt(e)||smt(e,t)||umt(e,t)||dmt()}function cmt(e){if(Array.isArray(e))return e}function umt(e,t){if(e){if(typeof e=="string")return voe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return voe(e,t)}}function voe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n.5},Ko=function(t){var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},AX=function(t,n,r){return"#"+((1<<24)+(t<<16)+(n<<8)+r).toString(16).slice(1).toUpperCase()},p0=function(t,n,r){var a=t/255,i=n/255,o=r/255,s=Math.max(a,i,o),l=Math.min(a,i,o),c,u,d=(s+l)/2;if(s===l)c=u=0;else{var f=s-l;switch(u=d>.5?f/(2-s-l):f/(s+l),s){case a:c=((i-o)/f+(i1&&(v-=1),v<.16666666666666666?h+(g-h)*6*v:v<.5?g:v<.6666666666666666?h+(g-h)*(.6666666666666666-v)*6:h},d=o<.5?o*(1+i):o+i-o*i,f=2*o-d;s=u(f,d,a+1/3),l=u(f,d,a),c=u(f,d,a-1/3)}return{r:Math.round(s*255),g:Math.round(l*255),b:Math.round(c*255)}},Sw=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=Ko(t);if(!a)return t;var i=p0(a.r,a.g,a.b);i.l=Math.max(0,Math.min(100,i.l+n)),i.s=Math.max(0,Math.min(100,i.s+r));var o=NX(i.h,i.s,i.l);return AX(o.r,o.g,o.b)},Ho=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=Ko(t);if(!a)return t;var i=p0(a.r,a.g,a.b);i.l=n,r!==null&&(i.s=r);var o=NX(i.h,i.s,i.l);return AX(o.r,o.g,o.b)},Di=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=Ko(t);if(!a)return t;var i=p0(a.r,a.g,a.b);i.l=n,i.s=Math.max(0,Math.min(100,i.s*r));var o=NX(i.h,i.s,i.l);return AX(o.r,o.g,o.b)},_yt=function(t){var n=t.primaryHex,r=t.darkMode,a=r===void 0?!1:r,i=t.bgBaseHex||(a?"#000000":"#ffffff"),o=t.textBaseHex||(a?"#E7E7ED":"#1a1a1a"),s=Ko(n);if(!s)return null;var l=p0(s.r,s.g,s.b),c=Ko(i),u=Ko(o),d=c?p0(c.r,c.g,c.b):{l:a?5:99},f=Math.max(8,Math.min(l.s,40)),m=Math.max(12,Math.min(l.s*.6,35)),h=a?Ho(n,Math.max(l.l-5,42),l.s*.95):n,g=Ko(h);g&&p0(g.r,g.g,g.b);var O={borderRadiusXS:kn.borderRadiusXS,borderRadiusSM:kn.borderRadiusSM,borderRadius:kn.borderRadius,borderRadiusLG:kn.borderRadiusLG,borderRadiusXL:kn.borderRadiusXL,borderRadiusFull:kn.borderRadiusFull,wireframe:kn.wireframe,colorPrimary:a?Ho(n,Math.max(l.l-5,42),l.s*.95):n,colorPrimaryHover:a?Ho(n,Math.min(l.l+10,55),l.s*.95):Sw(n,l.l<50?10:-10,0),colorPrimaryActive:a?Ho(n,Math.max(l.l-10,35),l.s*.95):Sw(n,l.l<50?-10:-20,0),colorPrimaryBg:a?Ho(n,13,f*.6):Ho(n,96,f*.8),colorPrimaryBgHover:a?Ho(n,13,f*.6):Ho(n,94,f),colorPrimaryBorder:a?Ho(n,17,m*.8):Ho(n,88,m*.8),colorPrimaryBorderHover:a?Ho(n,22,m):Ho(n,82,m),colorPrimaryText:a?Ho(n,Math.max(l.l-5,42),l.s*.95):n,colorPrimaryTextHover:a?Ho(n,Math.min(l.l+10,55),l.s*.95):Sw(n,l.l<50?10:-10,0),colorPrimaryTextActive:a?Ho(n,Math.max(l.l-10,35),l.s*.95):Sw(n,l.l<50?-10:-20,0),colorTextOnPrimary:Syt(g)?"#000000":"#ffffff",colorTextBase:o,colorText:"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.88)"),colorTextSecondary:"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.65)"),colorTextTertiary:"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.45)"),colorTextQuaternary:"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.25)"),colorTextWhite:"#fff",colorBgBase:i,colorBgContainer:a?Di(i,Math.min(d.l+l.l*.08,12),1.2):Di(i,Math.max(100-l.l*.05,96),.8),colorBgElevated:a?Di(i,Math.min(d.l+3,8),1.2):i,colorBgLayout:i,colorBgSpotlight:a?"rgba(".concat(Ko(Di(i,28,1.2)).r,", ").concat(Ko(Di(i,28,1.2)).g,", ").concat(Ko(Di(i,28,1.2)).b,", 0.85)"):"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.85)"),colorBgMask:a?"rgba(".concat(c.r,", ").concat(c.g,", ").concat(c.b,", 0.8)"):"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.45)"),colorBorder:a?"rgba(".concat(Ko(Di(i,28,2)).r,", ").concat(Ko(Di(i,28,2)).g,", ").concat(Ko(Di(i,28,2)).b,", 0.8)"):Di(i,81,2.5),colorBorderSecondary:a?"rgba(".concat(Ko(Di(i,22,1.8)).r,", ").concat(Ko(Di(i,22,1.8)).g,", ").concat(Ko(Di(i,22,1.8)).b,", 0.8)"):Di(i,88,2),colorFill:a?"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.18)"):Di(i,81,2.5)+"5c",colorFillSecondary:a?"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.12)"):Di(i,81,2.5)+"33",colorFillTertiary:a?"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.08)"):Di(i,81,2.5)+"26",colorFillQuaternary:a?"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.04)"):Di(i,81,2.5)+"1a",colorFillDisable:a?Di(o,55,.8):Di(i,86,1.8),colorLink:a?Ho(n,Math.max(l.l-5,42),l.s*.95):n,colorInfo:a?Wn.colorInfo:kn.colorInfo,colorInfoHover:a?Wn.colorInfoHover:kn.colorInfoHover,colorInfoText:a?Wn.colorInfoText:kn.colorInfoText,colorInfoBg:a?Wn.colorInfoBg:kn.colorInfoBg,colorInfoBgHover:a?Wn.colorInfoBgHover:kn.colorInfoBgHover,colorInfoBorder:a?Wn.colorInfoBorder:kn.colorInfoBorder,colorInfoBorderHover:a?Wn.colorInfoBorderHover:kn.colorInfoBorderHover,colorSuccess:a?Wn.colorSuccess:kn.colorSuccess,colorSuccessHover:a?Wn.colorSuccessHover:kn.colorSuccessHover,colorSuccessBg:a?Wn.colorSuccessBg:kn.colorSuccessBg,colorSuccessBgHover:a?Wn.colorSuccessBgHover:kn.colorSuccessBgHover,colorSuccessBorder:a?Wn.colorSuccessBorder:kn.colorSuccessBorder,colorSuccessBorderHover:a?Wn.colorSuccessBorderHover:kn.colorSuccessBorderHover,colorWarning:a?Wn.colorWarning:kn.colorWarning,colorWarningHover:a?Wn.colorWarningHover:kn.colorWarningHover,colorWarningBg:a?Wn.colorWarningBg:kn.colorWarningBg,colorWarningBgHover:a?Wn.colorWarningBgHover:kn.colorWarningBgHover,colorWarningBorder:a?Wn.colorWarningBorder:kn.colorWarningBorder,colorWarningBorderHover:a?Wn.colorWarningBorderHover:kn.colorWarningBorderHover,colorError:a?Wn.colorError:kn.colorError,colorErrorHover:a?Wn.colorErrorHover:kn.colorErrorHover,colorErrorBg:a?Wn.colorErrorBg:kn.colorErrorBg,colorErrorBgHover:a?Wn.colorErrorBgHover:kn.colorErrorBgHover,colorErrorBorder:a?Wn.colorErrorBorder:kn.colorErrorBorder,colorErrorBorderHover:a?Wn.colorErrorBorderHover:kn.colorErrorBorderHover,colorPurple:a?Wn.colorPurple:kn.colorPurple,colorPurpleHover:a?Wn.colorPurpleHover:kn.colorPurpleHover,colorPurpleBg:a?Wn.colorPurpleBg:kn.colorPurpleBg,colorPink:a?Wn.colorPink:kn.colorPink,colorPinkHover:a?Wn.colorPinkHover:kn.colorPinkHover,colorPinkBg:a?Wn.colorPinkBg:kn.colorPinkBg,colorYellow:a?Wn.colorYellow:kn.colorYellow,colorYellowHover:a?Wn.colorYellowHover:kn.colorYellowHover,colorYellowBg:a?Wn.colorYellowBg:kn.colorYellowBg,colorOrange:a?Wn.colorOrange:kn.colorOrange,colorOrangeHover:a?Wn.colorOrangeHover:kn.colorOrangeHover,colorOrangeBg:a?Wn.colorOrangeBg:kn.colorOrangeBg,colorTeal:a?Wn.colorTeal:kn.colorTeal,colorTealHover:a?Wn.colorTealHover:kn.colorTealHover,colorTealBg:a?Wn.colorTealBg:kn.colorTealBg,colorBlue:a?Wn.colorBlue:kn.colorBlue,colorBlueHover:a?Wn.colorBlueHover:kn.colorBlueHover,colorBlueBg:a?Wn.colorBlueBg:kn.colorBlueBg,colorMauve:a?Wn.colorMauve:kn.colorMauve,colorMauveHover:a?Wn.colorMauveHover:kn.colorMauveHover,colorMauveBg:a?Wn.colorMauveBg:kn.colorMauveBg,colorSlate:a?Wn.colorSlate:kn.colorSlate||"#1E293B",colorSlateHover:a?Wn.colorSlateHover:kn.colorSlateHover||"#475569",colorSlateBg:a?Wn.colorSlateBg:kn.colorSlateBg||"#E2E8F0",colorLavender:a?Wn.colorLavender:kn.colorLavender||"#A77BFF",colorLavenderHover:a?Wn.colorLavenderHover:kn.colorLavenderHover||"#BB99FF",colorLavenderBg:a?Wn.colorLavenderBg:kn.colorLavenderBg||"rgba(226, 212, 255, 0.8)",boxShadow:a?Wn.boxShadow:kn.boxShadow,boxShadowSecondary:a?Wn.boxShadowSecondary:kn.boxShadowSecondary,boxShadowTertiary:a?Wn.boxShadowTertiary:kn.boxShadowTertiary,boxShadowTertiaryLeft:a?Wn.boxShadowTertiaryLeft:kn.boxShadowTertiaryLeft,boxShadowInput:a?Wn.boxShadowInput:kn.boxShadowInput};return O};function __(e){"@babel/helpers - typeof";return __=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},__(e)}function Soe(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 Eyt(e){for(var t=1;tparseFloat(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 xoe=(e,t,n)=>n===0?e:e/100;function Kv(e,t){const n=t||255;return e>n?n:e<0?0:e}class al{constructor(t){Wt(this,"isValid",!0);Wt(this,"r",0);Wt(this,"g",0);Wt(this,"b",0);Wt(this,"a",1);Wt(this,"_h");Wt(this,"_hsl_s");Wt(this,"_hsv_s");Wt(this,"_l");Wt(this,"_v");Wt(this,"_max");Wt(this,"_min");Wt(this,"_brightness");function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(a("rgb"))this.fromRgbString(r);else if(a("hsl"))this.fromHslString(r);else if(a("hsv")||a("hsb"))this.fromHsvString(r);else{const i=eSt[r.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"))}}else if(t instanceof al)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Kv(t.r),this.g=Kv(t.g),this.b=Kv(t.b),this.a=typeof t.a=="number"?Kv(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(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.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=vo(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const n=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*n-1))}}return this._hsl_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,i=s=>(r[s]-this[s])*a+this[s],o={r:vo(i("r")),g:vo(i("g")),b:vo(i("b")),a:vo(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>vo((this[i]*this.a+n[i]*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 i=vo(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=vo(this.getHSLSaturation()*100),r=vo(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),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]=Kv(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,i){return parseInt(n[a]+n[i||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}){const i=(t%360+360)%360;if(this._h=i,this._hsl_s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const m=vo(r*255);this.r=m,this.g=m,this.b=m;return}let o=0,s=0,l=0;const c=i/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,s=d):c>=1&&c<2?(o=d,s=u):c>=2&&c<3?(s=u,l=d):c>=3&&c<4?(s=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=vo((o+f)*255),this.g=vo((s+f)*255),this.b=vo((l+f)*255)}fromHsv({h:t,s:n,v:r,a}){const i=(t%360+360)%360;this._h=i,this._hsv_s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=vo(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const s=i/60,l=Math.floor(s),c=s-l,u=vo(r*(1-n)*255),d=vo(r*(1-n*c)*255),f=vo(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=M5(t,xoe);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=M5(t,xoe);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=M5(t,(r,a)=>a.includes("%")?vo(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Ew=2,Toe=.16,tSt=.05,nSt=.05,rSt=.15,g$e=5,O$e=4,aSt=[{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 woe(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ew*t:Math.round(e.h)+Ew*t:r=n?Math.round(e.h)+Ew*t:Math.round(e.h)-Ew*t,r<0?r+=360:r>=360&&(r-=360),r}function Coe(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Toe*t:t===O$e?r=e.s+Toe:r=e.s+tSt*t,r>1&&(r=1),n&&t===g$e&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function $oe(e,t,n){let r;return n?r=e.v+nSt*t:r=e.v-rSt*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function b$e(e,t={}){const n=[],r=new al(e),a=r.toHsv();for(let i=g$e;i>0;i-=1){const o=new al({h:woe(a,i,!0),s:Coe(a,i,!0),v:$oe(a,i,!0)});n.push(o)}n.push(r);for(let i=1;i<=O$e;i+=1){const o=new al({h:woe(a,i),s:Coe(a,i),v:$oe(a,i)});n.push(o)}return t.theme==="dark"?aSt.map(({index:i,amount:o})=>new al(t.backgroundColor||"#141414").mix(n[i],o).toHexString()):n.map(i=>i.toHexString())}const W$=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];W$.primary=W$[5];function nA(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function iSt(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const Roe="data-rc-order",Poe="data-rc-priority",oSt="rc-util-key",z9=new Map;function v$e({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:oSt}function MX(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function sSt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function DX(e){return Array.from((z9.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function y$e(e,t={}){if(!nA())return null;const{csp:n,prepend:r,priority:a=0}=t,i=sSt(r),o=i==="prependQueue",s=document.createElement("style");s.setAttribute(Roe,i),o&&a&&s.setAttribute(Poe,`${a}`),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;const l=MX(t),{firstChild:c}=l;if(r){if(o){const u=(t.styles||DX(l)).filter(d=>{if(!["prepend","prependQueue"].includes(d.getAttribute(Roe)))return!1;const f=Number(d.getAttribute(Poe)||0);return a>=f});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function lSt(e,t={}){let{styles:n}=t;return n||(n=DX(MX(t))),n.find(r=>r.getAttribute(v$e(t))===e)}function cSt(e,t){const n=z9.get(e);if(!n||!iSt(document,n)){const r=y$e("",t),{parentNode:a}=r;z9.set(e,a),e.removeChild(r)}}function uSt(e,t,n={}){var l,c,u;const r=MX(n),a=DX(r),i={...n,styles:a};cSt(r,i);const o=lSt(t,i);if(o)return(l=i.csp)!=null&&l.nonce&&o.nonce!==((c=i.csp)==null?void 0:c.nonce)&&(o.nonce=(u=i.csp)==null?void 0:u.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;const s=y$e(e,i);return s.setAttribute(v$e(i),t),s}function S$e(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function dSt(e){return S$e(e)instanceof ShadowRoot}function fSt(e){return dSt(e)?S$e(e):null}let B9={};const pSt=e=>{};function mSt(e,t){}function hSt(e,t){}function gSt(){B9={}}function _$e(e,t,n){!t&&!B9[n]&&(e(!1,n),B9[n]=!0)}function rA(e,t){_$e(mSt,e,t)}function OSt(e,t){_$e(hSt,e,t)}rA.preMessage=pSt;rA.resetWarned=gSt;rA.noteOnce=OSt;function bSt(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function F9(e,t){rA(e,`[@ant-design/icons] ${t}`)}function koe(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Aoe(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[bSt(n)]=r}return t},{})}function U9(e,t,n){return n?Z.createElement(e.tag,{key:t,...Aoe(e.attrs),...n},(e.children||[]).map((r,a)=>U9(r,`${t}-${e.tag}-${a}`))):Z.createElement(e.tag,{key:t,...Aoe(e.attrs)},(e.children||[]).map((r,a)=>U9(r,`${t}-${e.tag}-${a}`)))}function E$e(e){return b$e(e)[0]}function x$e(e){return e?Array.isArray(e)?e:[e]:[]}const vSt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},ySt=` + `]:{zIndex:10,width:r,margin:`0 ${de(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${de(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${de(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},amt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},imt=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},omt=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),smt=Er("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:a,calc:i}=e,o=nr(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:a});return[imt(o),Jpt(o),nmt(o),rmt(o),emt(o),tmt(o),amt(o),_k(o)]},omt);var lmt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},cmt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:lmt}))},umt=p.forwardRef(cmt),dmt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},fmt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:dmt}))},pmt=p.forwardRef(fmt),mmt={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},hmt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:mmt}))},gmt=p.forwardRef(hmt);function Tw(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function ww(e,t){const n=et(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function j5(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Omt(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const bmt=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},A$e=e=>e.indexOf("image/")===0,vmt=e=>{if(e.type&&!e.thumbUrl)return A$e(e.type);const t=e.thumbUrl||e.url||"",n=bmt(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},fp=200;function ymt(e){return new Promise(t=>{if(!e.type||!A$e(e.type)){t("");return}const n=document.createElement("canvas");n.width=fp,n.height=fp,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${fp}px; height: ${fp}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:o}=a;let s=fp,l=fp,c=0,u=0;i>o?(l=o*(fp/i),u=-(l-s)/2):(s=i*(fp/o),c=-(s-l)/2),r.drawImage(a,c,u,s,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(d)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(a.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var N$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"},Smt=function(t,n){return p.createElement($n,Ae({},t,{ref:n,icon:N$e}))},Jh=p.forwardRef(Smt);const _mt=p.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:i,items:o,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:d,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:h,previewIcon:g,removeIcon:O,downloadIcon:v,extra:y,onPreview:S,onDownload:C,onClose:_},w)=>{var T,k;const{status:A}=i,[I,M]=p.useState(A);p.useEffect(()=>{A!=="removed"&&M(A)},[A]);const[Q,B]=p.useState(!1);p.useEffect(()=>{const ce=setTimeout(()=>{B(!0)},300);return()=>{clearTimeout(ce)}},[]);const D=l(i);let U=p.createElement("div",{className:`${e}-icon`},D);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(I==="uploading"||!i.thumbUrl&&!i.url){const ce=le(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:I!=="uploading"});U=p.createElement("div",{className:ce},D)}else{const ce=d!=null&&d(i)?p.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):D,be=le(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});U=p.createElement("a",{className:be,onClick:ge=>S(i,ge),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ce)}const R=le(`${e}-list-item`,`${e}-list-item-${I}`),$=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,P=(typeof m=="function"?m(i):m)?c((typeof O=="function"?O(i):O)||p.createElement(Lf,null),()=>_(i),e,r.removeFile,!0):null,z=(typeof h=="function"?h(i):h)&&I==="done"?c((typeof v=="function"?v(i):v)||p.createElement(Jh,null),()=>C(i),e,r.downloadFile):null,F=a!=="picture-card"&&a!=="picture-circle"&&p.createElement("span",{key:"download-delete",className:le(`${e}-list-item-actions`,{picture:a==="picture"})},z,P),L=typeof y=="function"?y(i):y,X=L&&p.createElement("span",{className:`${e}-list-item-extra`},L),Y=le(`${e}-list-item-name`),q=i.url?p.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Y,title:i.name},$,{href:i.url,onClick:ce=>S(i,ce)}),i.name,X):p.createElement("span",{key:"view",className:Y,onClick:ce=>S(i,ce),title:i.name},i.name,X),G=(typeof f=="function"?f(i):f)&&(i.url||i.thumbUrl)?p.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ce=>S(i,ce),title:r.previewFile},typeof g=="function"?g(i):g||p.createElement(IX,null)):null,ee=(a==="picture-card"||a==="picture-circle")&&I!=="uploading"&&p.createElement("span",{className:`${e}-list-item-actions`},G,I==="done"&&z,P),{getPrefixCls:K}=p.useContext(pn),ne=K(),ie=p.createElement("div",{className:R},U,q,F,ee,Q&&p.createElement(ro,{motionName:`${ne}-fade`,visible:I==="uploading",motionDeadline:2e3},({className:ce})=>{const be="percent"in i?p.createElement(oA,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return p.createElement("div",{className:le(`${e}-list-item-progress`,ce)},be)})),se=i.response&&typeof i.response=="string"?i.response:((T=i.error)===null||T===void 0?void 0:T.statusText)||((k=i.error)===null||k===void 0?void 0:k.message)||r.uploadError,ue=I==="error"?p.createElement(wo,{title:se,getPopupContainer:ce=>ce.parentNode},ie):ie;return p.createElement("div",{className:le(`${e}-list-item-container`,t),style:n,ref:w},u?u(ue,i,o,{download:C.bind(null,i),preview:S.bind(null,i),remove:_.bind(null,i)}):ue)}),Emt=(e,t)=>{const{listType:n="text",previewFile:r=ymt,onPreview:a,onDownload:i,onRemove:o,locale:s,iconRender:l,isImageUrl:c=vmt,prefixCls:u,items:d=[],showPreviewIcon:f=!0,showRemoveIcon:m=!0,showDownloadIcon:h=!1,removeIcon:g,previewIcon:O,downloadIcon:v,extra:y,progress:S={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:_=!0,itemRender:w,disabled:T}=e,[,k]=Dj(),[A,I]=p.useState(!1),M=["picture-card","picture-circle"].includes(n);p.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",r==null||r(Y.originFileObj).then(q=>{Y.thumbUrl=q||"",k()}))})},[n,d,r]),p.useEffect(()=>{I(!0)},[]);const Q=(Y,q)=>{if(a)return q==null||q.preventDefault(),a(Y)},B=Y=>{typeof i=="function"?i(Y):Y.url&&window.open(Y.url)},D=Y=>{o==null||o(Y)},U=Y=>{if(l)return l(Y,n);const q=Y.status==="uploading";if(n.startsWith("picture")){const G=n==="picture"?p.createElement(vu,null):s.uploading,ee=c!=null&&c(Y)?p.createElement(gmt,null):p.createElement(umt,null);return q?G:ee}return q?p.createElement(vu,null):p.createElement(pmt,null)},R=(Y,q,G,ee,K)=>{const ne={type:"text",size:"small",title:ee,onClick:ie=>{var se,ue;q(),p.isValidElement(Y)&&((ue=(se=Y.props).onClick)===null||ue===void 0||ue.call(se,ie))},className:`${G}-list-item-action`,disabled:K?T:!1};return p.isValidElement(Y)?p.createElement(Ur,Object.assign({},ne,{icon:To(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):p.createElement(Ur,Object.assign({},ne),p.createElement("span",null,Y))};p.useImperativeHandle(t,()=>({handlePreview:Q,handleDownload:B}));const{getPrefixCls:$}=p.useContext(pn),P=$("upload",u),z=$(),F=le(`${P}-list`,`${P}-list-${n}`),L=p.useMemo(()=>Oa(v_(z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[z]),X=Object.assign(Object.assign({},M?{}:L),{motionDeadline:2e3,motionName:`${P}-${M?"animate-inline":"animate"}`,keys:et(d.map(Y=>({key:Y.uid,file:Y}))),motionAppear:A});return p.createElement("div",{className:F},p.createElement(gk,Object.assign({},X,{component:!1}),({key:Y,file:q,className:G,style:ee})=>p.createElement(_mt,{key:Y,locale:s,prefixCls:P,className:G,style:ee,file:q,items:d,progress:S,listType:n,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:m,showDownloadIcon:h,removeIcon:g,previewIcon:O,downloadIcon:v,extra:y,iconRender:U,actionIconRender:R,itemRender:w,onPreview:Q,onDownload:B,onClose:D})),C&&p.createElement(ro,Object.assign({},X,{visible:_,forceRender:!0}),({className:Y,style:q})=>To(C,G=>({className:le(G.className,Y),style:Object.assign(Object.assign(Object.assign({},q),{pointerEvents:Y?"none":void 0}),G.style)}))))},xmt=p.forwardRef(Emt);var Tmt=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?i(u.value):a(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const rS=`__LIST_IGNORE_${Date.now()}__`,wmt=(e,t)=>{const n=$i("upload"),{fileList:r,defaultFileList:a,onRemove:i,showUploadList:o=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:d,previewFile:f,disabled:m,locale:h,iconRender:g,isImageUrl:O,progress:v,prefixCls:y,className:S,type:C="select",children:_,style:w,itemRender:T,maxCount:k,data:A={},multiple:I=!1,hasControlInside:M=!0,action:Q="",accept:B="",supportServerRender:D=!0,rootClassName:U}=e,R=p.useContext(jo),$=m??R,P=e.customRequest||n.customRequest,[z,F]=Ir(a||[],{value:r,postState:Re=>Re??[]}),[L,X]=p.useState("drop"),Y=p.useRef(null),q=p.useRef(null);p.useMemo(()=>{const Re=Date.now();(r||[]).forEach((Ie,ve)=>{!Ie.uid&&!Object.isFrozen(Ie)&&(Ie.uid=`__AUTO__${Re}_${ve}__`)})},[r]);const G=(Re,Ie,ve)=>{let we=et(Ie),Xe=!1;k===1?we=we.slice(-1):k&&(Xe=we.length>k,we=we.slice(0,k)),Fl.flushSync(()=>{F(we)});const rt={file:Re,fileList:we};ve&&(rt.event=ve),(!Xe||Re.status==="removed"||we.some(at=>at.uid===Re.uid))&&Fl.flushSync(()=>{u==null||u(rt)})},ee=(Re,Ie)=>Tmt(void 0,void 0,void 0,function*(){const{beforeUpload:ve,transformFile:we}=e;let Xe=Re;if(ve){const rt=yield ve(Re,Ie);if(rt===!1)return!1;if(delete Re[rS],rt===rS)return Object.defineProperty(Re,rS,{value:!0,configurable:!0}),!1;typeof rt=="object"&&rt&&(Xe=rt)}return we&&(Xe=yield we(Xe)),Xe}),K=Re=>{const Ie=Re.filter(Xe=>!Xe.file[rS]);if(!Ie.length)return;const ve=Ie.map(Xe=>Tw(Xe.file));let we=et(z);ve.forEach(Xe=>{we=ww(Xe,we)}),ve.forEach((Xe,rt)=>{let at=Xe;if(Ie[rt].parsedFile)Xe.status="uploading";else{const{originFileObj:ct}=Xe;let mt;try{mt=new File([ct],ct.name,{type:ct.type})}catch{mt=new Blob([ct],{type:ct.type}),mt.name=ct.name,mt.lastModifiedDate=new Date,mt.lastModified=new Date().getTime()}mt.uid=Xe.uid,at=mt}G(at,we)})},ne=(Re,Ie,ve)=>{try{typeof Re=="string"&&(Re=JSON.parse(Re))}catch{}if(!j5(Ie,z))return;const we=Tw(Ie);we.status="done",we.percent=100,we.response=Re,we.xhr=ve;const Xe=ww(we,z);G(we,Xe)},ie=(Re,Ie)=>{if(!j5(Ie,z))return;const ve=Tw(Ie);ve.status="uploading",ve.percent=Re.percent;const we=ww(ve,z);G(ve,we,Re)},se=(Re,Ie,ve)=>{if(!j5(ve,z))return;const we=Tw(ve);we.error=Re,we.response=Ie,we.status="error";const Xe=ww(we,z);G(we,Xe)},ue=Re=>{let Ie;Promise.resolve(typeof i=="function"?i(Re):i).then(ve=>{var we;if(ve===!1)return;const Xe=Omt(Re,z);Xe&&(Ie=Object.assign(Object.assign({},Re),{status:"removed"}),z==null||z.forEach(rt=>{const at=Ie.uid!==void 0?"uid":"name";rt[at]===Ie[at]&&!Object.isFrozen(rt)&&(rt.status="removed")}),(we=Y.current)===null||we===void 0||we.abort(Ie),G(Ie,Xe))})},ce=Re=>{X(Re.type),Re.type==="drop"&&(d==null||d(Re))};p.useImperativeHandle(t,()=>({onBatchStart:K,onSuccess:ne,onProgress:ie,onError:se,fileList:z,upload:Y.current,nativeElement:q.current}));const{getPrefixCls:be,direction:ge,upload:Oe}=p.useContext(pn),me=be("upload",y),Te=Object.assign(Object.assign({onBatchStart:K,onError:se,onProgress:ie,onSuccess:ne},e),{customRequest:P,data:A,multiple:I,action:Q,accept:B,supportServerRender:D,prefixCls:me,disabled:$,beforeUpload:ee,onChange:void 0,hasControlInside:M});delete Te.className,delete Te.style,(!_||$)&&delete Te.id;const Ce=`${me}-wrapper`,[Fe,Me,Ee]=smt(me,Ce),[Le]=fl("Upload",bu.Upload),{showRemoveIcon:ze,showPreviewIcon:Qe,showDownloadIcon:Je,removeIcon:He,previewIcon:gt,downloadIcon:st,extra:lt}=typeof o=="boolean"?{}:o,pt=typeof ze>"u"?!$:ze,Ze=(Re,Ie)=>o?p.createElement(xmt,{prefixCls:me,listType:s,items:z,previewFile:f,onPreview:l,onDownload:c,onRemove:ue,showRemoveIcon:pt,showPreviewIcon:Qe,showDownloadIcon:Je,removeIcon:He,previewIcon:gt,downloadIcon:st,iconRender:g,extra:lt,locale:Object.assign(Object.assign({},Le),h),isImageUrl:O,progress:v,appendAction:Re,appendActionVisible:Ie,itemRender:T,disabled:$}):Re,De=le(Ce,S,U,Me,Ee,Oe==null?void 0:Oe.className,{[`${me}-rtl`]:ge==="rtl",[`${me}-picture-card-wrapper`]:s==="picture-card",[`${me}-picture-circle-wrapper`]:s==="picture-circle"}),Ke=Object.assign(Object.assign({},Oe==null?void 0:Oe.style),w);if(C==="drag"){const Re=le(Me,me,`${me}-drag`,{[`${me}-drag-uploading`]:z.some(Ie=>Ie.status==="uploading"),[`${me}-drag-hover`]:L==="dragover",[`${me}-disabled`]:$,[`${me}-rtl`]:ge==="rtl"});return Fe(p.createElement("span",{className:De,ref:q},p.createElement("div",{className:Re,style:Ke,onDrop:ce,onDragOver:ce,onDragLeave:ce},p.createElement(rz,Object.assign({},Te,{ref:Y,className:`${me}-btn`}),p.createElement("div",{className:`${me}-drag-container`},_))),Ze()))}const Be=le(me,`${me}-select`,{[`${me}-disabled`]:$,[`${me}-hidden`]:!_}),We=p.createElement("div",{className:Be,style:Ke},p.createElement(rz,Object.assign({},Te,{ref:Y})));return Fe(s==="picture-card"||s==="picture-circle"?p.createElement("span",{className:De,ref:q},Ze(We,!!_)):p.createElement("span",{className:De,ref:q},We,Ze()))},I$e=p.forwardRef(wmt);var Cmt=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{style:n,height:r,hasControlInside:a=!1,children:i}=e,o=Cmt(e,["style","height","hasControlInside","children"]),s=Object.assign(Object.assign({},n),{height:r});return p.createElement(I$e,Object.assign({ref:t,hasControlInside:a},o,{style:s,type:"drag"}),i)}),ux=I$e;ux.Dragger=$mt;ux.LIST_IGNORE=rS;var eY=function(){var t=jl.useToken(),n=t.token;return n},r0=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}},X5,M$e=p.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(X5=r0("dark"))!==null&&X5!==void 0&&X5.matches?"dark":"light"}),pA=function(){return p.useContext(M$e)},Rmt=function(){var t=eY(),n=pA(),r=n.appearance,a=n.isDarkMode;return p.useMemo(function(){return jFe(UFe({token:t,css:UE}))},[t,r,a])},D$e=function(){var t=eY(),n=Rmt();return p.useMemo(function(){return oe(oe({},t),{},{stylish:n})},[t,n])},Pmt=function(t){return oe(oe({},t),{},{mobile:t.xs,tablet:t.md,laptop:t.lg,desktop:t.xxl})},kmt=function(){var t=eY(),n={xs:"@media (max-width: ".concat(t.screenXSMax,"px)"),sm:"@media (max-width: ".concat(t.screenSMMax,"px)"),md:"@media (max-width: ".concat(t.screenMDMax,"px)"),lg:"@media (max-width: ".concat(t.screenLGMax,"px)"),xl:"@media (max-width: ".concat(t.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(t.screenXXLMin,"px)")};return p.useMemo(function(){return Pmt(n)},[t])},Amt=function(t,n){return Object.entries(t).map(function(r){var a=ye(r,2),i=a[0],o=a[1],s=o;return dj(o)||(s=UE(o)),n[i]?"".concat(n[i]," {").concat(s.styles,"}"):""}).join("")},Nmt=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],Imt=["prefixCls","iconPrefixCls"],Mmt=function(t){var n=t.hashPriority,r=t.useTheme,a=t.EmotionContext;return function(i,o){var s=o==null?void 0:o.__BABEL_FILE_NAME__,l=!!s;return function(c){var u=r(),d=p.useContext(a),f=d.cache,m=iEe(f,{hashPriority:(o==null?void 0:o.hashPriority)||n,label:o==null?void 0:o.label}),h=m.cx,g=m.css,O=kmt(),v=p.useMemo(function(){var y;if(i instanceof Function){var S=u.stylish,C=u.appearance,_=u.isDarkMode,w=u.prefixCls,T=u.iconPrefixCls,k=ln(u,Nmt),A=function(M){return Amt(M,O)};Object.assign(A,O),y=i({token:k,stylish:S,appearance:C,isDarkMode:_,prefixCls:w,iconPrefixCls:T,cx:h,css:UE,responsive:A},c)}else y=i;return Xt(y)==="object"&&(dj(y)?y=g(y):y=Object.fromEntries(Object.entries(y).map(function(I){var M=ye(I,2),Q=M[0],B=M[1],D=l?"".concat(s,"-").concat(Q):void 0;return Xt(B)==="object"?l?[Q,g(B,"label:".concat(D))]:[Q,g(B)]:[Q,B]}))),y},[c,u]);return p.useMemo(function(){var y=u.prefixCls,S=u.iconPrefixCls,C=ln(u,Imt);return{styles:v,cx:h,theme:C,prefixCls:y,iconPrefixCls:S}},[v,u])}}},Uoe=function(t){if(t.ThemeProvider)return t.ThemeProvider;var n=t.ThemeContext;return function(r){return x.jsx(n.Provider,{value:r.theme,children:r.children})}},Dmt=TBe,L$e=d_,Q$e=p.memo(function(e){var t=e.children,n=e.theme,r=e.prefixCls,a=e.getStaticInstance,i=e.staticInstanceConfig,o=pA(),s=o.appearance,l=o.isDarkMode,c=Zi.useMessage(i==null?void 0:i.message),u=ye(c,2),d=u[0],f=u[1],m=W2e.useNotification(i==null?void 0:i.notification),h=ye(m,2),g=h[0],O=h[1],v=si.useModal(),y=ye(v,2),S=y[0],C=y[1];p.useEffect(function(){a==null||a({message:d,modal:S,notification:g})},[]);var _=p.useMemo(function(){var w=l?jl.darkAlgorithm:jl.defaultAlgorithm,T=n;if(typeof n=="function"&&(T=n(s)),!T)return{algorithm:w};var k=T.algorithm?T.algorithm instanceof Array?T.algorithm:[T.algorithm]:[];return oe(oe({},T),{},{algorithm:T.algorithm?[w].concat(et(k)):w})},[n,l]);return x.jsxs(ui,{prefixCls:r,theme:_,children:[f,O,C,t]})});Q$e.displayName="AntdProvider";function Lmt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function Qmt(e,t){return zmt(e)||Lmt(e,t)||Bmt(e,t)||Fmt()}function zmt(e){if(Array.isArray(e))return e}function Bmt(e,t){if(e){if(typeof e=="string")return joe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return joe(e,t)}}function joe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n.5},Zo=function(t){var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},nY=function(t,n,r){return"#"+((1<<24)+(t<<16)+(n<<8)+r).toString(16).slice(1).toUpperCase()},b0=function(t,n,r){var a=t/255,i=n/255,o=r/255,s=Math.max(a,i,o),l=Math.min(a,i,o),c,u,d=(s+l)/2;if(s===l)c=u=0;else{var f=s-l;switch(u=d>.5?f/(2-s-l):f/(s+l),s){case a:c=((i-o)/f+(i1&&(v-=1),v<.16666666666666666?h+(g-h)*6*v:v<.5?g:v<.6666666666666666?h+(g-h)*(.6666666666666666-v)*6:h},d=o<.5?o*(1+i):o+i-o*i,f=2*o-d;s=u(f,d,a+1/3),l=u(f,d,a),c=u(f,d,a-1/3)}return{r:Math.round(s*255),g:Math.round(l*255),b:Math.round(c*255)}},Cw=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=Zo(t);if(!a)return t;var i=b0(a.r,a.g,a.b);i.l=Math.max(0,Math.min(100,i.l+n)),i.s=Math.max(0,Math.min(100,i.s+r));var o=rY(i.h,i.s,i.l);return nY(o.r,o.g,o.b)},Go=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=Zo(t);if(!a)return t;var i=b0(a.r,a.g,a.b);i.l=n,r!==null&&(i.s=r);var o=rY(i.h,i.s,i.l);return nY(o.r,o.g,o.b)},Di=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=Zo(t);if(!a)return t;var i=b0(a.r,a.g,a.b);i.l=n,i.s=Math.max(0,Math.min(100,i.s*r));var o=rY(i.h,i.s,i.l);return nY(o.r,o.g,o.b)},Kyt=function(t){var n=t.primaryHex,r=t.darkMode,a=r===void 0?!1:r,i=t.bgBaseHex||(a?"#000000":"#ffffff"),o=t.textBaseHex||(a?"#E7E7ED":"#1a1a1a"),s=Zo(n);if(!s)return null;var l=b0(s.r,s.g,s.b),c=Zo(i),u=Zo(o),d=c?b0(c.r,c.g,c.b):{l:a?5:99},f=Math.max(8,Math.min(l.s,40)),m=Math.max(12,Math.min(l.s*.6,35)),h=a?Go(n,Math.max(l.l-5,42),l.s*.95):n,g=Zo(h);g&&b0(g.r,g.g,g.b);var O={borderRadiusXS:An.borderRadiusXS,borderRadiusSM:An.borderRadiusSM,borderRadius:An.borderRadius,borderRadiusLG:An.borderRadiusLG,borderRadiusXL:An.borderRadiusXL,borderRadiusFull:An.borderRadiusFull,wireframe:An.wireframe,colorPrimary:a?Go(n,Math.max(l.l-5,42),l.s*.95):n,colorPrimaryHover:a?Go(n,Math.min(l.l+10,55),l.s*.95):Cw(n,l.l<50?10:-10,0),colorPrimaryActive:a?Go(n,Math.max(l.l-10,35),l.s*.95):Cw(n,l.l<50?-10:-20,0),colorPrimaryBg:a?Go(n,13,f*.6):Go(n,96,f*.8),colorPrimaryBgHover:a?Go(n,13,f*.6):Go(n,94,f),colorPrimaryBorder:a?Go(n,17,m*.8):Go(n,88,m*.8),colorPrimaryBorderHover:a?Go(n,22,m):Go(n,82,m),colorPrimaryText:a?Go(n,Math.max(l.l-5,42),l.s*.95):n,colorPrimaryTextHover:a?Go(n,Math.min(l.l+10,55),l.s*.95):Cw(n,l.l<50?10:-10,0),colorPrimaryTextActive:a?Go(n,Math.max(l.l-10,35),l.s*.95):Cw(n,l.l<50?-10:-20,0),colorTextOnPrimary:Zyt(g)?"#000000":"#ffffff",colorTextBase:o,colorText:"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.88)"),colorTextSecondary:"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.65)"),colorTextTertiary:"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.45)"),colorTextQuaternary:"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.25)"),colorTextWhite:"#fff",colorBgBase:i,colorBgContainer:a?Di(i,Math.min(d.l+l.l*.08,12),1.2):Di(i,Math.max(100-l.l*.05,96),.8),colorBgElevated:a?Di(i,Math.min(d.l+3,8),1.2):i,colorBgLayout:i,colorBgSpotlight:a?"rgba(".concat(Zo(Di(i,28,1.2)).r,", ").concat(Zo(Di(i,28,1.2)).g,", ").concat(Zo(Di(i,28,1.2)).b,", 0.85)"):"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.85)"),colorBgMask:a?"rgba(".concat(c.r,", ").concat(c.g,", ").concat(c.b,", 0.8)"):"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.45)"),colorBorder:a?"rgba(".concat(Zo(Di(i,28,2)).r,", ").concat(Zo(Di(i,28,2)).g,", ").concat(Zo(Di(i,28,2)).b,", 0.8)"):Di(i,81,2.5),colorBorderSecondary:a?"rgba(".concat(Zo(Di(i,22,1.8)).r,", ").concat(Zo(Di(i,22,1.8)).g,", ").concat(Zo(Di(i,22,1.8)).b,", 0.8)"):Di(i,88,2),colorFill:a?"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.18)"):Di(i,81,2.5)+"5c",colorFillSecondary:a?"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.12)"):Di(i,81,2.5)+"33",colorFillTertiary:a?"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.08)"):Di(i,81,2.5)+"26",colorFillQuaternary:a?"rgba(".concat(u.r,", ").concat(u.g,", ").concat(u.b,", 0.04)"):Di(i,81,2.5)+"1a",colorFillDisable:a?Di(o,55,.8):Di(i,86,1.8),colorLink:a?Go(n,Math.max(l.l-5,42),l.s*.95):n,colorInfo:a?Wn.colorInfo:An.colorInfo,colorInfoHover:a?Wn.colorInfoHover:An.colorInfoHover,colorInfoText:a?Wn.colorInfoText:An.colorInfoText,colorInfoBg:a?Wn.colorInfoBg:An.colorInfoBg,colorInfoBgHover:a?Wn.colorInfoBgHover:An.colorInfoBgHover,colorInfoBorder:a?Wn.colorInfoBorder:An.colorInfoBorder,colorInfoBorderHover:a?Wn.colorInfoBorderHover:An.colorInfoBorderHover,colorSuccess:a?Wn.colorSuccess:An.colorSuccess,colorSuccessHover:a?Wn.colorSuccessHover:An.colorSuccessHover,colorSuccessBg:a?Wn.colorSuccessBg:An.colorSuccessBg,colorSuccessBgHover:a?Wn.colorSuccessBgHover:An.colorSuccessBgHover,colorSuccessBorder:a?Wn.colorSuccessBorder:An.colorSuccessBorder,colorSuccessBorderHover:a?Wn.colorSuccessBorderHover:An.colorSuccessBorderHover,colorWarning:a?Wn.colorWarning:An.colorWarning,colorWarningHover:a?Wn.colorWarningHover:An.colorWarningHover,colorWarningBg:a?Wn.colorWarningBg:An.colorWarningBg,colorWarningBgHover:a?Wn.colorWarningBgHover:An.colorWarningBgHover,colorWarningBorder:a?Wn.colorWarningBorder:An.colorWarningBorder,colorWarningBorderHover:a?Wn.colorWarningBorderHover:An.colorWarningBorderHover,colorError:a?Wn.colorError:An.colorError,colorErrorHover:a?Wn.colorErrorHover:An.colorErrorHover,colorErrorBg:a?Wn.colorErrorBg:An.colorErrorBg,colorErrorBgHover:a?Wn.colorErrorBgHover:An.colorErrorBgHover,colorErrorBorder:a?Wn.colorErrorBorder:An.colorErrorBorder,colorErrorBorderHover:a?Wn.colorErrorBorderHover:An.colorErrorBorderHover,colorPurple:a?Wn.colorPurple:An.colorPurple,colorPurpleHover:a?Wn.colorPurpleHover:An.colorPurpleHover,colorPurpleBg:a?Wn.colorPurpleBg:An.colorPurpleBg,colorPink:a?Wn.colorPink:An.colorPink,colorPinkHover:a?Wn.colorPinkHover:An.colorPinkHover,colorPinkBg:a?Wn.colorPinkBg:An.colorPinkBg,colorYellow:a?Wn.colorYellow:An.colorYellow,colorYellowHover:a?Wn.colorYellowHover:An.colorYellowHover,colorYellowBg:a?Wn.colorYellowBg:An.colorYellowBg,colorOrange:a?Wn.colorOrange:An.colorOrange,colorOrangeHover:a?Wn.colorOrangeHover:An.colorOrangeHover,colorOrangeBg:a?Wn.colorOrangeBg:An.colorOrangeBg,colorTeal:a?Wn.colorTeal:An.colorTeal,colorTealHover:a?Wn.colorTealHover:An.colorTealHover,colorTealBg:a?Wn.colorTealBg:An.colorTealBg,colorBlue:a?Wn.colorBlue:An.colorBlue,colorBlueHover:a?Wn.colorBlueHover:An.colorBlueHover,colorBlueBg:a?Wn.colorBlueBg:An.colorBlueBg,colorMauve:a?Wn.colorMauve:An.colorMauve,colorMauveHover:a?Wn.colorMauveHover:An.colorMauveHover,colorMauveBg:a?Wn.colorMauveBg:An.colorMauveBg,colorSlate:a?Wn.colorSlate:An.colorSlate||"#1E293B",colorSlateHover:a?Wn.colorSlateHover:An.colorSlateHover||"#475569",colorSlateBg:a?Wn.colorSlateBg:An.colorSlateBg||"#E2E8F0",colorLavender:a?Wn.colorLavender:An.colorLavender||"#A77BFF",colorLavenderHover:a?Wn.colorLavenderHover:An.colorLavenderHover||"#BB99FF",colorLavenderBg:a?Wn.colorLavenderBg:An.colorLavenderBg||"rgba(226, 212, 255, 0.8)",boxShadow:a?Wn.boxShadow:An.boxShadow,boxShadowSecondary:a?Wn.boxShadowSecondary:An.boxShadowSecondary,boxShadowTertiary:a?Wn.boxShadowTertiary:An.boxShadowTertiary,boxShadowTertiaryLeft:a?Wn.boxShadowTertiaryLeft:An.boxShadowTertiaryLeft,boxShadowInput:a?Wn.boxShadowInput:An.boxShadowInput};return O};function $_(e){"@babel/helpers - typeof";return $_=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},$_(e)}function Yoe(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 Jyt(e){for(var t=1;tparseFloat(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 Woe=(e,t,n)=>n===0?e:e/100;function ry(e,t){const n=t||255;return e>n?n:e<0?0:e}class al{constructor(t){Kt(this,"isValid",!0);Kt(this,"r",0);Kt(this,"g",0);Kt(this,"b",0);Kt(this,"a",1);Kt(this,"_h");Kt(this,"_hsl_s");Kt(this,"_hsv_s");Kt(this,"_l");Kt(this,"_v");Kt(this,"_max");Kt(this,"_min");Kt(this,"_brightness");function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(a("rgb"))this.fromRgbString(r);else if(a("hsl"))this.fromHslString(r);else if(a("hsv")||a("hsb"))this.fromHsvString(r);else{const i=PSt[r.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"))}}else if(t instanceof al)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._hsl_s=t._hsl_s,this._hsv_s=t._hsv_s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=ry(t.r),this.g=ry(t.g),this.b=ry(t.b),this.a=typeof t.a=="number"?ry(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(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.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=bo(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._hsv_s=0:this._hsv_s=t/this.getMax()}return this._hsv_s}getHSLSaturation(){if(typeof this._hsl_s>"u"){const t=this.getMax()-this.getMin();if(t===0)this._hsl_s=0;else{const n=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*n-1))}}return this._hsl_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,i=s=>(r[s]-this[s])*a+this[s],o={r:bo(i("r")),g:bo(i("g")),b:bo(i("b")),a:bo(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>bo((this[i]*this.a+n[i]*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 i=bo(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=bo(this.getHSLSaturation()*100),r=bo(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),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]=ry(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,i){return parseInt(n[a]+n[i||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}){const i=(t%360+360)%360;if(this._h=i,this._hsl_s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const m=bo(r*255);this.r=m,this.g=m,this.b=m;return}let o=0,s=0,l=0;const c=i/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,s=d):c>=1&&c<2?(o=d,s=u):c>=2&&c<3?(s=u,l=d):c>=3&&c<4?(s=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=bo((o+f)*255),this.g=bo((s+f)*255),this.b=bo((l+f)*255)}fromHsv({h:t,s:n,v:r,a}){const i=(t%360+360)%360;this._h=i,this._hsv_s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=bo(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const s=i/60,l=Math.floor(s),c=s-l,u=bo(r*(1-n)*255),d=bo(r*(1-n*c)*255),f=bo(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=q5(t,Woe);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=q5(t,Woe);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=q5(t,(r,a)=>a.includes("%")?bo(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const Rw=2,Goe=.16,kSt=.05,ASt=.05,NSt=.15,j$e=5,X$e=4,ISt=[{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 Hoe(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Rw*t:Math.round(e.h)+Rw*t:r=n?Math.round(e.h)+Rw*t:Math.round(e.h)-Rw*t,r<0?r+=360:r>=360&&(r-=360),r}function Zoe(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Goe*t:t===X$e?r=e.s+Goe:r=e.s+kSt*t,r>1&&(r=1),n&&t===j$e&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Koe(e,t,n){let r;return n?r=e.v+ASt*t:r=e.v-NSt*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Y$e(e,t={}){const n=[],r=new al(e),a=r.toHsv();for(let i=j$e;i>0;i-=1){const o=new al({h:Hoe(a,i,!0),s:Zoe(a,i,!0),v:Koe(a,i,!0)});n.push(o)}n.push(r);for(let i=1;i<=X$e;i+=1){const o=new al({h:Hoe(a,i),s:Zoe(a,i),v:Koe(a,i)});n.push(o)}return t.theme==="dark"?ISt.map(({index:i,amount:o})=>new al(t.backgroundColor||"#141414").mix(n[i],o).toHexString()):n.map(i=>i.toHexString())}const iR=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];iR.primary=iR[5];function mA(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function MSt(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const Joe="data-rc-order",ese="data-rc-priority",DSt="rc-util-key",iz=new Map;function V$e({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:DSt}function iY(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function LSt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function oY(e){return Array.from((iz.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function q$e(e,t={}){if(!mA())return null;const{csp:n,prepend:r,priority:a=0}=t,i=LSt(r),o=i==="prependQueue",s=document.createElement("style");s.setAttribute(Joe,i),o&&a&&s.setAttribute(ese,`${a}`),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;const l=iY(t),{firstChild:c}=l;if(r){if(o){const u=(t.styles||oY(l)).filter(d=>{if(!["prepend","prependQueue"].includes(d.getAttribute(Joe)))return!1;const f=Number(d.getAttribute(ese)||0);return a>=f});if(u.length)return l.insertBefore(s,u[u.length-1].nextSibling),s}l.insertBefore(s,c)}else l.appendChild(s);return s}function QSt(e,t={}){let{styles:n}=t;return n||(n=oY(iY(t))),n.find(r=>r.getAttribute(V$e(t))===e)}function zSt(e,t){const n=iz.get(e);if(!n||!MSt(document,n)){const r=q$e("",t),{parentNode:a}=r;iz.set(e,a),e.removeChild(r)}}function BSt(e,t,n={}){var l,c,u;const r=iY(n),a=oY(r),i={...n,styles:a};zSt(r,i);const o=QSt(t,i);if(o)return(l=i.csp)!=null&&l.nonce&&o.nonce!==((c=i.csp)==null?void 0:c.nonce)&&(o.nonce=(u=i.csp)==null?void 0:u.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;const s=q$e(e,i);return s.setAttribute(V$e(i),t),s}function W$e(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function FSt(e){return W$e(e)instanceof ShadowRoot}function USt(e){return FSt(e)?W$e(e):null}let oz={};const jSt=e=>{};function XSt(e,t){}function YSt(e,t){}function VSt(){oz={}}function G$e(e,t,n){!t&&!oz[n]&&(e(!1,n),oz[n]=!0)}function hA(e,t){G$e(XSt,e,t)}function qSt(e,t){G$e(YSt,e,t)}hA.preMessage=jSt;hA.resetWarned=VSt;hA.noteOnce=qSt;function WSt(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function sz(e,t){hA(e,`[@ant-design/icons] ${t}`)}function tse(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function nse(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[WSt(n)]=r}return t},{})}function lz(e,t,n){return n?Z.createElement(e.tag,{key:t,...nse(e.attrs),...n},(e.children||[]).map((r,a)=>lz(r,`${t}-${e.tag}-${a}`))):Z.createElement(e.tag,{key:t,...nse(e.attrs)},(e.children||[]).map((r,a)=>lz(r,`${t}-${e.tag}-${a}`)))}function H$e(e){return Y$e(e)[0]}function Z$e(e){return e?Array.isArray(e)?e:[e]:[]}const GSt={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},HSt=` .anticon { display: inline-flex; align-items: center; @@ -526,15 +526,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,T$e=e=>{const{csp:t,prefixCls:n,layer:r}=p.useContext(IX);let a=ySt;n&&(a=a.replace(/anticon/g,n)),r&&(a=`@layer ${r} { +`,K$e=e=>{const{csp:t,prefixCls:n,layer:r}=p.useContext(aY);let a=HSt;n&&(a=a.replace(/anticon/g,n)),r&&(a=`@layer ${r} { ${a} -}`),p.useEffect(()=>{const i=e.current,o=fSt(i);uSt(a,"@ant-design-icons",{prepend:!r,csp:t,attachTo:o})},[])},$S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function SSt({primaryColor:e,secondaryColor:t}){$S.primaryColor=e,$S.secondaryColor=t||E$e(e),$S.calculated=!!t}function _St(){return{...$S}}const Ub=e=>{const{icon:t,className:n,onClick:r,style:a,primaryColor:i,secondaryColor:o,...s}=e,l=p.useRef();let c=$S;if(i&&(c={primaryColor:i,secondaryColor:o||E$e(i)}),T$e(l),F9(koe(t),`icon should be icon definiton, but got ${t}`),!koe(t))return null;let u=t;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),U9(u.icon,`svg-${u.name}`,{className:n,onClick:r,style:a,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:l})};Ub.displayName="IconReact";Ub.getTwoToneColors=_St;Ub.setTwoToneColors=SSt;function w$e(e){const[t,n]=x$e(e);return Ub.setTwoToneColors({primaryColor:t,secondaryColor:n})}function ESt(){const e=Ub.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function j9(){return j9=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:n,icon:r,spin:a,rotate:i,tabIndex:o,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:d}=p.useContext(IX),f=ce(d,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!a||r.name==="loading"},n);let m=o;m===void 0&&s&&(m=-1);const h=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[g,O]=x$e(l);return p.createElement("span",j9({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:s,className:f}),p.createElement(Ub,{icon:r,primaryColor:g,secondaryColor:O,style:h}))});Nc.displayName="AntdIcon";Nc.getTwoToneColor=ESt;Nc.setTwoToneColor=w$e;var xSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M550.4 275.1l241.65 241.65a38.4 38.4 0 0054.3 0 38.4 38.4 0 000-54.3l-307.2-307.2a38.22 38.22 0 00-20.75-10.72 38.6 38.6 0 00-16.76.89 38.22 38.22 0 00-16.8 9.82l-307.2 307.2a38.4 38.4 0 0054.31 54.31L473.6 275.1v567.78a38.4 38.4 0 0076.8 0V275.1z"}}]},name:"arrow-up",theme:"outlined"};function X9(){return X9=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Nc,X9({},e,{ref:t,icon:xSt})),wSt=p.forwardRef(TSt);var CSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 972.8c254.5 0 460.8-206.3 460.8-460.8S766.5 51.2 512 51.2 51.2 257.5 51.2 512 257.5 972.8 512 972.8zm357.04-602.15Q896 438.75 896 512t-26.96 141.35q-29.28 73.94-85.51 130.18a380.12 380.12 0 01-130.18 85.51Q585.25 896 512 896t-141.35-26.96q-73.94-29.28-130.18-85.51-56.23-56.24-85.51-130.18Q128 585.25 128 512c0-48.83 8.99-95.95 26.96-141.35q29.28-73.94 85.51-130.18 56.24-56.23 130.18-85.51Q438.75 128 512 128c48.83 0 95.95 8.99 141.35 26.96q73.94 29.28 130.18 85.51c37.49 37.5 66 80.88 85.51 130.18zm-145.57 45.62a38.4 38.4 0 0011.25-27.15 38.4 38.4 0 00-38.4-38.4 38.4 38.4 0 00-27.15 11.25l-218.61 218.6-95.73-95.72a38.4 38.4 0 00-27.15-11.25 38.4 38.4 0 00-27.15 65.55L423.4 662.03c15 15 39.3 15 54.3 0l245.76-245.76z"}}]},name:"check-circle",theme:"outlined"};function Y9(){return Y9=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Nc,Y9({},e,{ref:t,icon:CSt})),RSt=p.forwardRef($St);var PSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function V9(){return V9=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Nc,V9({},e,{ref:t,icon:PSt})),ASt=p.forwardRef(kSt);var NSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 972.8c254.5 0 460.8-206.3 460.8-460.8S766.5 51.2 512 51.2 51.2 257.5 51.2 512 257.5 972.8 512 972.8zm357.04-602.15Q896 438.75 896 512t-26.96 141.35q-29.28 73.94-85.51 130.18a380.12 380.12 0 01-130.18 85.51Q585.25 896 512 896t-141.35-26.96q-73.94-29.28-130.18-85.51-56.23-56.24-85.51-130.18C136.99 607.95 128 560.83 128 512s8.99-95.95 26.96-141.35q29.28-73.94 85.51-130.18 56.24-56.23 130.18-85.51Q438.75 128 512 128c48.83 0 95.95 8.99 141.35 26.96q73.94 29.28 130.18 85.51c37.49 37.5 66 80.88 85.51 130.18zm-445.09 283.7a38.39 38.39 0 01-27.15 11.25 38.4 38.4 0 01-27.15-65.55L457.69 512l-88.04-88.05a38.4 38.4 0 01-11.25-27.15 38.4 38.4 0 0165.55-27.15L512 457.69l88.05-88.04a38.4 38.4 0 0127.15-11.25 38.4 38.4 0 0127.15 65.55L566.31 512l88.04 88.05a38.39 38.39 0 0111.25 27.15 38.4 38.4 0 01-38.4 38.4 38.39 38.39 0 01-27.15-11.25L512 566.31l-88.05 88.04z"}}]},name:"close-circle",theme:"outlined"};function q9(){return q9=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Nc,q9({},e,{ref:t,icon:NSt})),MSt=p.forwardRef(ISt);var DSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.01 566.3l253.12 253.15a38.4 38.4 0 0054.31-54.31L566.32 511.99l253.12-253.12a38.4 38.4 0 00-54.31-54.3L512.02 457.68 258.9 204.53a38.4 38.4 0 00-54.3 54.3L457.7 512 204.56 765.14a38.4 38.4 0 1054.3 54.3L512.02 566.3z"}}]},name:"close",theme:"outlined"};function W9(){return W9=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Nc,W9({},e,{ref:t,icon:DSt})),C$e=p.forwardRef(LSt);var QSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 972.8c254.5 0 460.8-206.3 460.8-460.8S766.5 51.2 512 51.2 51.2 257.5 51.2 512 257.5 972.8 512 972.8zm357.04-602.15Q896 438.75 896 512t-26.96 141.35q-29.28 73.94-85.51 130.18a380.12 380.12 0 01-130.18 85.51Q585.25 896 512 896t-141.35-26.96q-73.94-29.28-130.18-85.51-56.23-56.24-85.51-130.18Q128 585.25 128 512t26.96-141.35q29.28-73.94 85.51-130.18 56.24-56.23 130.18-85.51C416.05 136.99 463.17 128 512 128s95.95 8.99 141.35 26.96q73.94 29.28 130.18 85.51c37.49 37.5 66 80.88 85.51 130.18zm-407.36-27.72a50.42 50.42 0 11100.64 0l-13.55 211.38a36.85 36.85 0 01-73.54 0l-13.55-211.38zM512 742.4a53.76 53.76 0 100-107.52 53.76 53.76 0 000 107.52z"}}]},name:"exclamation-circle",theme:"outlined"};function G9(){return G9=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Nc,G9({},e,{ref:t,icon:QSt})),BSt=p.forwardRef(zSt);var FSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 972.8c254.5 0 460.8-206.3 460.8-460.8S766.5 51.2 512 51.2 51.2 257.5 51.2 512 257.5 972.8 512 972.8zm357.04-602.15Q896 438.75 896 512t-26.96 141.35q-29.28 73.94-85.51 130.18a380.12 380.12 0 01-130.18 85.51Q585.25 896 512 896t-141.35-26.96q-73.94-29.28-130.18-85.51-56.23-56.24-85.51-130.18Q128 585.25 128 512t26.96-141.35q29.28-73.94 85.51-130.18 56.24-56.23 130.18-85.51C416.05 136.99 463.17 128 512 128s95.95 8.99 141.35 26.96q73.94 29.28 130.18 85.51c37.49 37.5 66 80.88 85.51 130.18zM569.6 262.4a57.6 57.6 0 11-115.2 0 57.6 57.6 0 01115.2 0zm30.72 433.92h-38.4V416c0-5.71-1.11-11.2-3.33-16.45a41.9 41.9 0 00-9.04-13.42 41.9 41.9 0 00-13.42-9.04 41.82 41.82 0 00-16.45-3.33h-42.24a38.4 38.4 0 000 76.8h7.68v245.76h-38.4a38.4 38.4 0 000 76.8h153.6a38.4 38.4 0 000-76.8z"}}]},name:"info-circle",theme:"outlined"};function H9(){return H9=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Nc,H9({},e,{ref:t,icon:FSt})),$$e=p.forwardRef(USt);var jSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M692.75 231.95L412.7 512l280.05 280.05a38.4 38.4 0 010 54.3 38.4 38.4 0 01-54.3 0l-307.2-307.2c-15-15-15-39.3 0-54.3l307.2-307.2a38.4 38.4 0 0154.3 54.3z"}}]},name:"left",theme:"outlined"};function Z9(){return Z9=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Nc,Z9({},e,{ref:t,icon:jSt})),YSt=p.forwardRef(XSt);var VSt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M331.25 792.05L611.3 512 331.25 231.95a38.4 38.4 0 1154.3-54.3l307.2 307.2c15 15 15 39.3 0 54.3l-307.2 307.2a38.4 38.4 0 01-54.3 0 38.4 38.4 0 010-54.3z"}}]},name:"right",theme:"outlined"};function K9(){return K9=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Nc,K9({},e,{ref:t,icon:VSt})),WSt=p.forwardRef(qSt);function GSt(e,t,n){const r=p.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const HSt=Symbol.for("react.element"),ZSt=Symbol.for("react.transitional.element"),KSt=Symbol.for("react.fragment");function JSt(e){return e&&typeof e=="object"&&(e.$$typeof===HSt||e.$$typeof===ZSt)&&e.type===KSt}const e_t=Number(p.version.split(".")[0]),t_t=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},n_t=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{t_t(r,n)})}},r_t=(...e)=>GSt(()=>n_t(...e),e,(t,n)=>t.length!==n.length||t.every((r,a)=>r!==n[a])),a_t=e=>{var n,r;if(!e)return!1;if(R$e(e)&&e_t>=19)return!0;const t=s0.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==s0.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==s0.ForwardRef)};function R$e(e){return p.isValidElement(e)&&!JSt(e)}const i_t=e=>{if(e&&R$e(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function G$(){return G$=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:n,component:r,viewBox:a,spin:i,rotate:o,tabIndex:s,onClick:l,children:c,...u}=e,d=p.useRef(),f=r_t(d,t);F9(!!(r||c),"Should have `component` prop or `children`."),T$e(d);const{prefixCls:m="anticon",rootClassName:h}=p.useContext(IX),g=ce(h,m,{[`${m}-spin`]:!!i&&!!r},n),O=ce({[`${m}-spin`]:!!i}),v=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,y={...vSt,className:O,style:v,viewBox:a};a||delete y.viewBox;const S=()=>r?p.createElement(r,y,c):c?(F9(!!a||p.Children.count(c)===1&&p.isValidElement(c)&&p.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),p.createElement("svg",G$({},y,{viewBox:a}),c)):null;let C=s;return C===void 0&&l&&(C=-1),p.createElement("span",G$({role:"img"},u,{ref:f,tabIndex:C,onClick:l,className:g}),S())});P$e.displayName="AntdIcon";function J9(){return J9=Object.assign?Object.assign.bind():function(e){for(var t=1;tt+1&&(r.onload=()=>{H$(e,t+1)},r.onerror=()=>{H$(e,t+1)}),k$e.add(n),document.body.appendChild(r)}}function s_t(e={}){const{scriptUrl:t,extraCommonProps:n={}}=e;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?H$(t.reverse()):H$([t]));const r=p.forwardRef((a,i)=>{const{type:o,children:s,...l}=a;let c=null;return a.type&&(c=p.createElement("use",{xlinkHref:`#${o}`})),s&&(c=s),p.createElement(P$e,J9({},n,l,{ref:i}),c)});return r.displayName="Iconfont",r}function x_(e){"@babel/helpers - typeof";return x_=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},x_(e)}function l_t(e,t){return f_t(e)||d_t(e,t)||u_t(e,t)||c_t()}function c_t(){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 u_t(e,t){if(e){if(typeof e=="string")return Noe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Noe(e,t)}}function Noe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&C2.splice(i,1)}},[]),n}function qr(){for(var e=arguments.length,t=new Array(e),n=0;n'}}))]}))}function LX(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-errorCircle-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-errorCircle-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-errorCircle-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function QX(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-delete-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-delete-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-delete-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function __t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-tool-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-tool-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-tool-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function E_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-playCircle-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-playCircle-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-playCircle-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function T_(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-loading-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-loading-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-loading-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function x_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-attachment-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-attachment-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-attachment-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function T_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-memory-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-memory-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-memory-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function w_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-sort-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-sort-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-sort-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function C_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-operateRight-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-operateRight-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-operateRight-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function $_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-operateLeft-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-operateLeft-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-operateLeft-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function aA(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-false-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-false-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-false-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function R_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-play-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-play-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-play-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function P_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-pause-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-pause-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-pause-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function k_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-replace-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-replace-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-replace-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function A$e(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-download-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-download-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-download-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function zX(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-copy-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-copy-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-copy-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function A_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-more-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-more-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-more-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function N_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-warningCircle-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-warningCircle-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-warningCircle-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function iA(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-true-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-true-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-true-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function BX(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-plus-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-plus-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-plus-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function FX(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-stopCircle-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-stopCircle-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-stopCircle-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function I_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-downArrow-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-downArrow-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-downArrow-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function N$e(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-checkCircle-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-checkCircle-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-checkCircle-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function M_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-shrink-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-shrink-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-shrink-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function I$e(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-enlarge-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-enlarge-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-enlarge-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function D_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-micOff-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-micOff-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-micOff-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function L_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-mic-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-mic-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-mic-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function Q_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-volume-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-volume-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-volume-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function z_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-mute-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-mute-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-mute-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function UX(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-down-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-down-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-down-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function jX(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-up-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-up-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-up-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}var Moe;function B_t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var F_t=qr(Moe||(Moe=B_t([` +}`),p.useEffect(()=>{const i=e.current,o=USt(i);BSt(a,"@ant-design-icons",{prepend:!r,csp:t,attachTo:o})},[])},IS={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ZSt({primaryColor:e,secondaryColor:t}){IS.primaryColor=e,IS.secondaryColor=t||H$e(e),IS.calculated=!!t}function KSt(){return{...IS}}const qb=e=>{const{icon:t,className:n,onClick:r,style:a,primaryColor:i,secondaryColor:o,...s}=e,l=p.useRef();let c=IS;if(i&&(c={primaryColor:i,secondaryColor:o||H$e(i)}),K$e(l),sz(tse(t),`icon should be icon definiton, but got ${t}`),!tse(t))return null;let u=t;return u&&typeof u.icon=="function"&&(u={...u,icon:u.icon(c.primaryColor,c.secondaryColor)}),lz(u.icon,`svg-${u.name}`,{className:n,onClick:r,style:a,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:l})};qb.displayName="IconReact";qb.getTwoToneColors=KSt;qb.setTwoToneColors=ZSt;function J$e(e){const[t,n]=Z$e(e);return qb.setTwoToneColors({primaryColor:t,secondaryColor:n})}function JSt(){const e=qb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function cz(){return cz=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:n,icon:r,spin:a,rotate:i,tabIndex:o,onClick:s,twoToneColor:l,...c}=e,{prefixCls:u="anticon",rootClassName:d}=p.useContext(aY),f=le(d,u,{[`${u}-${r.name}`]:!!r.name,[`${u}-spin`]:!!a||r.name==="loading"},n);let m=o;m===void 0&&s&&(m=-1);const h=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[g,O]=Z$e(l);return p.createElement("span",cz({role:"img","aria-label":r.name},c,{ref:t,tabIndex:m,onClick:s,className:f}),p.createElement(qb,{icon:r,primaryColor:g,secondaryColor:O,style:h}))});Mc.displayName="AntdIcon";Mc.getTwoToneColor=JSt;Mc.setTwoToneColor=J$e;var e_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M550.4 275.1l241.65 241.65a38.4 38.4 0 0054.3 0 38.4 38.4 0 000-54.3l-307.2-307.2a38.22 38.22 0 00-20.75-10.72 38.6 38.6 0 00-16.76.89 38.22 38.22 0 00-16.8 9.82l-307.2 307.2a38.4 38.4 0 0054.31 54.31L473.6 275.1v567.78a38.4 38.4 0 0076.8 0V275.1z"}}]},name:"arrow-up",theme:"outlined"};function uz(){return uz=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Mc,uz({},e,{ref:t,icon:e_t})),n_t=p.forwardRef(t_t);var r_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 972.8c254.5 0 460.8-206.3 460.8-460.8S766.5 51.2 512 51.2 51.2 257.5 51.2 512 257.5 972.8 512 972.8zm357.04-602.15Q896 438.75 896 512t-26.96 141.35q-29.28 73.94-85.51 130.18a380.12 380.12 0 01-130.18 85.51Q585.25 896 512 896t-141.35-26.96q-73.94-29.28-130.18-85.51-56.23-56.24-85.51-130.18Q128 585.25 128 512c0-48.83 8.99-95.95 26.96-141.35q29.28-73.94 85.51-130.18 56.24-56.23 130.18-85.51Q438.75 128 512 128c48.83 0 95.95 8.99 141.35 26.96q73.94 29.28 130.18 85.51c37.49 37.5 66 80.88 85.51 130.18zm-145.57 45.62a38.4 38.4 0 0011.25-27.15 38.4 38.4 0 00-38.4-38.4 38.4 38.4 0 00-27.15 11.25l-218.61 218.6-95.73-95.72a38.4 38.4 0 00-27.15-11.25 38.4 38.4 0 00-27.15 65.55L423.4 662.03c15 15 39.3 15 54.3 0l245.76-245.76z"}}]},name:"check-circle",theme:"outlined"};function dz(){return dz=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Mc,dz({},e,{ref:t,icon:r_t})),i_t=p.forwardRef(a_t);var o_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function fz(){return fz=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Mc,fz({},e,{ref:t,icon:o_t})),l_t=p.forwardRef(s_t);var c_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 972.8c254.5 0 460.8-206.3 460.8-460.8S766.5 51.2 512 51.2 51.2 257.5 51.2 512 257.5 972.8 512 972.8zm357.04-602.15Q896 438.75 896 512t-26.96 141.35q-29.28 73.94-85.51 130.18a380.12 380.12 0 01-130.18 85.51Q585.25 896 512 896t-141.35-26.96q-73.94-29.28-130.18-85.51-56.23-56.24-85.51-130.18C136.99 607.95 128 560.83 128 512s8.99-95.95 26.96-141.35q29.28-73.94 85.51-130.18 56.24-56.23 130.18-85.51Q438.75 128 512 128c48.83 0 95.95 8.99 141.35 26.96q73.94 29.28 130.18 85.51c37.49 37.5 66 80.88 85.51 130.18zm-445.09 283.7a38.39 38.39 0 01-27.15 11.25 38.4 38.4 0 01-27.15-65.55L457.69 512l-88.04-88.05a38.4 38.4 0 01-11.25-27.15 38.4 38.4 0 0165.55-27.15L512 457.69l88.05-88.04a38.4 38.4 0 0127.15-11.25 38.4 38.4 0 0127.15 65.55L566.31 512l88.04 88.05a38.39 38.39 0 0111.25 27.15 38.4 38.4 0 01-38.4 38.4 38.39 38.39 0 01-27.15-11.25L512 566.31l-88.05 88.04z"}}]},name:"close-circle",theme:"outlined"};function pz(){return pz=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Mc,pz({},e,{ref:t,icon:c_t})),d_t=p.forwardRef(u_t);var f_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.01 566.3l253.12 253.15a38.4 38.4 0 0054.31-54.31L566.32 511.99l253.12-253.12a38.4 38.4 0 00-54.31-54.3L512.02 457.68 258.9 204.53a38.4 38.4 0 00-54.3 54.3L457.7 512 204.56 765.14a38.4 38.4 0 1054.3 54.3L512.02 566.3z"}}]},name:"close",theme:"outlined"};function mz(){return mz=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Mc,mz({},e,{ref:t,icon:f_t})),eRe=p.forwardRef(p_t);var m_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 972.8c254.5 0 460.8-206.3 460.8-460.8S766.5 51.2 512 51.2 51.2 257.5 51.2 512 257.5 972.8 512 972.8zm357.04-602.15Q896 438.75 896 512t-26.96 141.35q-29.28 73.94-85.51 130.18a380.12 380.12 0 01-130.18 85.51Q585.25 896 512 896t-141.35-26.96q-73.94-29.28-130.18-85.51-56.23-56.24-85.51-130.18Q128 585.25 128 512t26.96-141.35q29.28-73.94 85.51-130.18 56.24-56.23 130.18-85.51C416.05 136.99 463.17 128 512 128s95.95 8.99 141.35 26.96q73.94 29.28 130.18 85.51c37.49 37.5 66 80.88 85.51 130.18zm-407.36-27.72a50.42 50.42 0 11100.64 0l-13.55 211.38a36.85 36.85 0 01-73.54 0l-13.55-211.38zM512 742.4a53.76 53.76 0 100-107.52 53.76 53.76 0 000 107.52z"}}]},name:"exclamation-circle",theme:"outlined"};function hz(){return hz=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Mc,hz({},e,{ref:t,icon:m_t})),g_t=p.forwardRef(h_t);var O_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 972.8c254.5 0 460.8-206.3 460.8-460.8S766.5 51.2 512 51.2 51.2 257.5 51.2 512 257.5 972.8 512 972.8zm357.04-602.15Q896 438.75 896 512t-26.96 141.35q-29.28 73.94-85.51 130.18a380.12 380.12 0 01-130.18 85.51Q585.25 896 512 896t-141.35-26.96q-73.94-29.28-130.18-85.51-56.23-56.24-85.51-130.18Q128 585.25 128 512t26.96-141.35q29.28-73.94 85.51-130.18 56.24-56.23 130.18-85.51C416.05 136.99 463.17 128 512 128s95.95 8.99 141.35 26.96q73.94 29.28 130.18 85.51c37.49 37.5 66 80.88 85.51 130.18zM569.6 262.4a57.6 57.6 0 11-115.2 0 57.6 57.6 0 01115.2 0zm30.72 433.92h-38.4V416c0-5.71-1.11-11.2-3.33-16.45a41.9 41.9 0 00-9.04-13.42 41.9 41.9 0 00-13.42-9.04 41.82 41.82 0 00-16.45-3.33h-42.24a38.4 38.4 0 000 76.8h7.68v245.76h-38.4a38.4 38.4 0 000 76.8h153.6a38.4 38.4 0 000-76.8z"}}]},name:"info-circle",theme:"outlined"};function gz(){return gz=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Mc,gz({},e,{ref:t,icon:O_t})),tRe=p.forwardRef(b_t);var v_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M692.75 231.95L412.7 512l280.05 280.05a38.4 38.4 0 010 54.3 38.4 38.4 0 01-54.3 0l-307.2-307.2c-15-15-15-39.3 0-54.3l307.2-307.2a38.4 38.4 0 0154.3 54.3z"}}]},name:"left",theme:"outlined"};function Oz(){return Oz=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Mc,Oz({},e,{ref:t,icon:v_t})),S_t=p.forwardRef(y_t);var __t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M331.25 792.05L611.3 512 331.25 231.95a38.4 38.4 0 1154.3-54.3l307.2 307.2c15 15 15 39.3 0 54.3l-307.2 307.2a38.4 38.4 0 01-54.3 0 38.4 38.4 0 010-54.3z"}}]},name:"right",theme:"outlined"};function bz(){return bz=Object.assign?Object.assign.bind():function(e){for(var t=1;tp.createElement(Mc,bz({},e,{ref:t,icon:__t})),x_t=p.forwardRef(E_t);function T_t(e,t,n){const r=p.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const w_t=Symbol.for("react.element"),C_t=Symbol.for("react.transitional.element"),$_t=Symbol.for("react.fragment");function R_t(e){return e&&typeof e=="object"&&(e.$$typeof===w_t||e.$$typeof===C_t)&&e.type===$_t}const P_t=Number(p.version.split(".")[0]),k_t=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},A_t=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{k_t(r,n)})}},N_t=(...e)=>T_t(()=>A_t(...e),e,(t,n)=>t.length!==n.length||t.every((r,a)=>r!==n[a])),I_t=e=>{var n,r;if(!e)return!1;if(nRe(e)&&P_t>=19)return!0;const t=f0.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!((n=t.prototype)!=null&&n.render)&&t.$$typeof!==f0.ForwardRef||typeof e=="function"&&!((r=e.prototype)!=null&&r.render)&&e.$$typeof!==f0.ForwardRef)};function nRe(e){return p.isValidElement(e)&&!R_t(e)}const M_t=e=>{if(e&&nRe(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function oR(){return oR=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{className:n,component:r,viewBox:a,spin:i,rotate:o,tabIndex:s,onClick:l,children:c,...u}=e,d=p.useRef(),f=N_t(d,t);sz(!!(r||c),"Should have `component` prop or `children`."),K$e(d);const{prefixCls:m="anticon",rootClassName:h}=p.useContext(aY),g=le(h,m,{[`${m}-spin`]:!!i&&!!r},n),O=le({[`${m}-spin`]:!!i}),v=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,y={...GSt,className:O,style:v,viewBox:a};a||delete y.viewBox;const S=()=>r?p.createElement(r,y,c):c?(sz(!!a||p.Children.count(c)===1&&p.isValidElement(c)&&p.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),p.createElement("svg",oR({},y,{viewBox:a}),c)):null;let C=s;return C===void 0&&l&&(C=-1),p.createElement("span",oR({role:"img"},u,{ref:f,tabIndex:C,onClick:l,className:g}),S())});rRe.displayName="AntdIcon";function vz(){return vz=Object.assign?Object.assign.bind():function(e){for(var t=1;tt+1&&(r.onload=()=>{sR(e,t+1)},r.onerror=()=>{sR(e,t+1)}),aRe.add(n),document.body.appendChild(r)}}function L_t(e={}){const{scriptUrl:t,extraCommonProps:n={}}=e;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?sR(t.reverse()):sR([t]));const r=p.forwardRef((a,i)=>{const{type:o,children:s,...l}=a;let c=null;return a.type&&(c=p.createElement("use",{xlinkHref:`#${o}`})),s&&(c=s),p.createElement(rRe,vz({},n,l,{ref:i}),c)});return r.displayName="Iconfont",r}function P_(e){"@babel/helpers - typeof";return P_=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},P_(e)}function Q_t(e,t){return U_t(e)||F_t(e,t)||B_t(e,t)||z_t()}function z_t(){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 B_t(e,t){if(e){if(typeof e=="string")return rse(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rse(e,t)}}function rse(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0&&M2.splice(i,1)}},[]),n}function Wr(){for(var e=arguments.length,t=new Array(e),n=0;n'}}))]}))}function sY(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-errorCircle-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-errorCircle-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-errorCircle-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function lY(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-delete-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-delete-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-delete-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function K_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-tool-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-tool-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-tool-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function J_t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-playCircle-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-playCircle-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-playCircle-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function k_(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-loading-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-loading-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-loading-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function e1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-attachment-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-attachment-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-attachment-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function t1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-memory-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-memory-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-memory-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function n1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-sort-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-sort-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-sort-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function r1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-operateRight-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-operateRight-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-operateRight-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function a1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-operateLeft-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-operateLeft-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-operateLeft-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function gA(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-false-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-false-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-false-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function i1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-play-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-play-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-play-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function o1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-pause-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-pause-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-pause-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function s1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-replace-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-replace-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-replace-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function iRe(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-download-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-download-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-download-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function cY(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-copy-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-copy-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-copy-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function l1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-more-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-more-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-more-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function c1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-warningCircle-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-warningCircle-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-warningCircle-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function OA(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-true-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-true-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-true-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function uY(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-plus-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-plus-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-plus-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function dY(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-stopCircle-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-stopCircle-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-stopCircle-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function u1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-downArrow-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-downArrow-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-downArrow-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function oRe(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-checkCircle-fill",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-checkCircle-fill","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-checkCircle-fill",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function d1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-shrink-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-shrink-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-shrink-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function sRe(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-enlarge-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-enlarge-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-enlarge-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function f1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-micOff-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-micOff-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-micOff-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function p1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-mic-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-mic-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-mic-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function m1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-volume-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-volume-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-volume-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function h1t(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-mute-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-mute-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-mute-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function fY(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-down-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-down-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-down-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}function pY(e){var s,l;const{size:t,spin:n,...r}=e,i=["spark-icon spark-icon-spark-up-line",n?"spark-icon-spin":"",e.className||""].filter(Boolean).join(" ");let o;return typeof e.size=="number"?o=e.size:o=(s=e.style)==null?void 0:s.fontSize,Z.createElement("span",Object.assign({},r,{className:i,style:{...e.style,fontSize:o,cursor:e.onClick?"pointer":(l=e.style)==null?void 0:l.cursor},role:"img","aria-label":"spark-up-line","data-spark-icon":!0,children:[Z.createElement("svg",Object.assign({key:"spark-up-line",width:"1em",height:"1em",viewBox:"0 0 1024 1024",overflow:"hidden",fill:"currentColor","aria-hidden":"true",dangerouslySetInnerHTML:{__html:''}}))]}))}var ise;function g1t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var O1t=Wr(ise||(ise=g1t([` @keyframes spinning { 0% { transform: rotate(0deg); } - + 100% { transform: rotate(360deg); } @@ -555,12 +555,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .`,`-cursor-pointer { cursor: pointer; color: var(--`,`-color-icon); - + &:hover { color: var(--`,`-color-icon-hover); } } -`])),function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix});function w_(e){"@babel/helpers - typeof";return w_=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},w_(e)}var U_t=["type","className","isCursorPointer","spin","size"];function Doe(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 Loe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function V_t(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var D5;function q_t(e){return D5||(D5=s_t({scriptUrl:e})),D5}function nz(e){var t=e.type,n=e.className,r=n===void 0?"":n,a=e.isCursorPointer,i=a===void 0?!1:a,o=e.spin,s=e.size,l=Y_t(e,U_t),c=yi(),u=c.sparkPrefix,d=c.iconfont,f=F_t();return x.jsxs(x.Fragment,{children:[x.jsx(f,{}),Z.createElement(q_t(d),Loe({type:t,style:Loe({fontSize:s},e.style),className:ce(i&&"".concat(u,"-cursor-pointer"),r,"".concat(u,"-icon"),M$e({},"".concat(u,"-icon-spin"),o))},l))]})}var W_t=["iconSize","loading","iconType","tooltipContent"];function Qoe(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 Bm(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function J_t(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var At=p.forwardRef(function(e,t){var n=jl.useToken(),r=e.iconSize,a=e.loading,i=e.iconType,o=e.tooltipContent,s=K_t(e,W_t),l=Z.useMemo(function(){return s.type==="primaryLess"?"primary":s.type==="textCompact"?"link":s.type},[s.type]),c=p.useMemo(function(){if(a){if(typeof a=="boolean")return{icon:x.jsx(T_,{spin:!0})};if(qh(a)==="object")return Bm({icon:x.jsx(T_,{spin:!0})},a)}return a},[a]),u=Z.useMemo(function(){return a&&qh(a)==="object"&&a.icon?a==null?void 0:a.icon:i?x.jsx(nz,{type:i,size:r??s.size}):s.icon?Z.cloneElement(s.icon,{size:r??s.size}):null},[i,s.icon]),d=x.jsx(Ur,Bm(Bm({},s),{},{loading:c,ref:t,type:l,icon:u,style:Bm({fontWeight:500,lineHeight:1},s.style),className:ce(s.className,"spark-button",{"spark-button-primaryLess":s.type==="primaryLess"})}));return s.type==="primaryLess"?x.jsx(ci,{theme:{token:{colorPrimary:n.token.colorSlate,colorPrimaryHover:n.token.colorSlateHover,colorPrimaryActive:n.token.colorSlate}},children:x.jsx(ss,{title:o,children:d})}):s.type==="textCompact"?x.jsx(ss,{title:o,children:x.jsx(Ur,Bm(Bm({},s),{},{ref:t,icon:u,color:"default",variant:"link",style:Bm({fontWeight:500,paddingLeft:0,paddingRight:0,lineHeight:1},s.style),className:ce(s.className,"spark-button")}))}):x.jsx(ss,{title:o,children:d})}),zoe;function e1t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var t1t=qr(zoe||(zoe=e1t([` +`])),function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix});function A_(e){"@babel/helpers - typeof";return A_=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},A_(e)}var b1t=["type","className","isCursorPointer","spin","size"];function ose(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 sse(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _1t(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var W5;function E1t(e){return W5||(W5=L_t({scriptUrl:e})),W5}function _z(e){var t=e.type,n=e.className,r=n===void 0?"":n,a=e.isCursorPointer,i=a===void 0?!1:a,o=e.spin,s=e.size,l=S1t(e,b1t),c=Si(),u=c.sparkPrefix,d=c.iconfont,f=O1t();return x.jsxs(x.Fragment,{children:[x.jsx(f,{}),Z.createElement(E1t(d),sse({type:t,style:sse({fontSize:s},e.style),className:le(i&&"".concat(u,"-cursor-pointer"),r,"".concat(u,"-icon"),lRe({},"".concat(u,"-icon-spin"),o))},l))]})}var x1t=["iconSize","loading","iconType","tooltipContent"];function lse(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 Vm(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R1t(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var Lt=p.forwardRef(function(e,t){var n=jl.useToken(),r=e.iconSize,a=e.loading,i=e.iconType,o=e.tooltipContent,s=$1t(e,x1t),l=Z.useMemo(function(){return s.type==="primaryLess"?"primary":s.type==="textCompact"?"link":s.type},[s.type]),c=p.useMemo(function(){if(a){if(typeof a=="boolean")return{icon:x.jsx(k_,{spin:!0})};if(eg(a)==="object")return Vm({icon:x.jsx(k_,{spin:!0})},a)}return a},[a]),u=Z.useMemo(function(){return a&&eg(a)==="object"&&a.icon?a==null?void 0:a.icon:i?x.jsx(_z,{type:i,size:r??s.size}):s.icon?Z.cloneElement(s.icon,{size:r??s.size}):null},[i,s.icon]),d=x.jsx(Ur,Vm(Vm({},s),{},{loading:c,ref:t,type:l,icon:u,style:Vm({fontWeight:500,lineHeight:1},s.style),className:le(s.className,"spark-button",{"spark-button-primaryLess":s.type==="primaryLess"})}));return s.type==="primaryLess"?x.jsx(ui,{theme:{token:{colorPrimary:n.token.colorSlate,colorPrimaryHover:n.token.colorSlateHover,colorPrimaryActive:n.token.colorSlate}},children:x.jsx(os,{title:o,children:d})}):s.type==="textCompact"?x.jsx(os,{title:o,children:x.jsx(Ur,Vm(Vm({},s),{},{ref:t,icon:u,color:"default",variant:"link",style:Vm({fontWeight:500,paddingLeft:0,paddingRight:0,lineHeight:1},s.style),className:le(s.className,"spark-button")}))}):x.jsx(os,{title:o,children:d})}),cse;function P1t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var k1t=Wr(cse||(cse=P1t([` .`,`-card { border-radius: 6px; background-color: var(--`,`-color-bg-base); @@ -570,11 +570,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .`,`-card { transition: box-shadow 0.4s ease; cursor: pointer; - + .`,`-card-body { padding: 0; } - + &:hover { box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.08); } @@ -585,11 +585,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex-direction: column; padding: 12px 16px; gap: 4px; - + > *:only-child { gap: 0; } - + .`,`-title { font-size: 14px; font-weight: 500; @@ -597,7 +597,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho /* 中性色/color-text */ color: var(--`,`-color-text); } - + .`,`-info { font-size: 12px; font-weight: normal; @@ -605,42 +605,42 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: var(--`,`-color-text-tertiary); } } -`])),function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix});function C_(e){"@babel/helpers - typeof";return C_=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},C_(e)}var n1t=["title","info","children","className"];function Boe(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 Foe(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function s1t(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}const Hl=(function(e){var t=e.title,n=e.info,r=e.children,a=e.className,i=o1t(e,n1t),o=t1t(),s=yi(),l=s.sparkPrefix;return x.jsxs(x.Fragment,{children:[x.jsx(o,{}),x.jsx(Hu,Foe(Foe({className:ce("".concat(l,"-card"),a)},i),{},{title:null,children:x.jsxs("div",{className:"".concat(l,"-card-wrapper"),children:[t&&x.jsx("div",{className:"".concat(l,"-title"),children:t}),n&&x.jsx("div",{className:"".concat(l,"-info"),children:n}),r&&x.jsx("div",{className:"".concat(l,"-content"),children:r})]})}))]})});var Uoe;function l1t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var c1t=qr(Uoe||(Uoe=l1t([` +`])),function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix});function N_(e){"@babel/helpers - typeof";return N_=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},N_(e)}var A1t=["title","info","children","className"];function use(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 dse(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function L1t(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}const Hl=(function(e){var t=e.title,n=e.info,r=e.children,a=e.className,i=D1t(e,A1t),o=k1t(),s=Si(),l=s.sparkPrefix;return x.jsxs(x.Fragment,{children:[x.jsx(o,{}),x.jsx(nd,dse(dse({className:le("".concat(l,"-card"),a)},i),{},{title:null,children:x.jsxs("div",{className:"".concat(l,"-card-wrapper"),children:[t&&x.jsx("div",{className:"".concat(l,"-title"),children:t}),n&&x.jsx("div",{className:"".concat(l,"-info"),children:n}),r&&x.jsx("div",{className:"".concat(l,"-content"),children:r})]})}))]})});var fse;function Q1t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var z1t=Wr(fse||(fse=Q1t([` .`,`-checkbox { .`,`-checkbox-wrapper-disabled { .`,`-checkbox-label { color: var(--`,`-color-text); } } - + .`,`-checkbox-inner { border: 1px solid var(--`,`-color-border-secondary); } - + .`,`-checkbox-wrapper:hover { .`,`-checkbox-inner { border-color: var(--`,`-color-border-secondary); } } - + .`,`-checkbox-checked { .`,`-checkbox-inner { border-color: var(--`,`-color-primary); background-color: var(--`,`-color-primary); } } - + .`,"-checkbox-checked.",`-checkbox-disabled { .`,`-checkbox-inner { background-color: var(--`,`-color-fill-disable); border-color: var(--`,`-color-fill-disable); - + &::after { border-color: var(--`,`-color-text-white); } } } - + .`,`-checkbox-disabled { .`,`-checkbox-inner { background-color: var(--`,`-color-fill-secondary); @@ -648,43 +648,43 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } -`])),function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix});function $_(e){"@babel/helpers - typeof";return $_=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},$_(e)}var u1t=["description","descriptionClassName","descriptionStyle","children"];function joe(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 xw(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h1t(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var ox=function(t){var n=t.description,r=t.descriptionClassName,a=t.descriptionStyle,i=t.children,o=m1t(t,u1t),s=yi(),l=s.antPrefix,c=s.sparkPrefix,u=c1t(),d={marginLeft:"24px",marginTop:"6px",fontSize:"12px",color:"var(--".concat(l,"-color-text-tertiary)")};return x.jsxs(x.Fragment,{children:[x.jsx(u,{}),x.jsxs("div",{className:"".concat(c,"-checkbox"),children:[x.jsx(jp,xw(xw({},o),{},{children:i})),n&&x.jsx("div",{className:r,style:xw(xw({},d),a),children:n})]})]})};ox.Group=jp.Group;const D$e=1024;let g1t=0,vc=class{constructor(t,n){this.from=t,this.to=n}};class Cr{constructor(t={}){this.id=g1t++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=so.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Cr.closedBy=new Cr({deserialize:e=>e.split(" ")});Cr.openedBy=new Cr({deserialize:e=>e.split(" ")});Cr.group=new Cr({deserialize:e=>e.split(" ")});Cr.isolate=new Cr({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Cr.contextHash=new Cr({perNode:!0});Cr.lookAhead=new Cr({perNode:!0});Cr.mounted=new Cr({perNode:!0});class m0{constructor(t,n,r,a=!1){this.tree=t,this.overlay=n,this.parser=r,this.bracketed=a}static get(t){return t&&t.props&&t.props[Cr.mounted.id]}}const O1t=Object.create(null);class so{constructor(t,n,r,a=0){this.name=t,this.props=n,this.id=r,this.flags=a}static define(t){let n=t.props&&t.props.length?Object.create(null):O1t,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),a=new so(t.name||"",n,t.id,r);if(t.props){for(let i of t.props)if(Array.isArray(i)||(i=i(a)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[i[0].id]=i[1]}}return a}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Cr.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let a of r.split(" "))n[a]=t[r];return r=>{for(let a=r.prop(Cr.group),i=-1;i<(a?a.length:0);i++){let o=n[i<0?r.name:a[i]];if(o)return o}}}}so.none=new so("",Object.create(null),0,8);class sx{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(o|fa.IncludeAnonymous);;){let c=!1;if(l.from<=i&&l.to>=a&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:VX(so.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,a)=>new ya(this.type,n,r,a,this.propValues),t.makeTree||((n,r,a)=>new ya(so.none,n,r,a)))}static build(t){return S1t(t)}}ya.empty=new ya(so.none,[],[],0);class XX{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new XX(this.buffer,this.index)}}class Vp{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return so.none}toString(){let t=[];for(let n=0;n0));l=o[l+3]);return s}slice(t,n,r){let a=this.buffer,i=new Uint16Array(n-t),o=0;for(let s=t,l=0;s=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function R_(e,t,n,r){for(var a;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?s.length:-1;t!=c;t+=n){let u=s[t],d=l[t]+o.from,f;if(!(!(i&fa.EnterBracketed&&u instanceof ya&&(f=m0.get(u))&&!f.overlay&&f.bracketed&&r>=d&&r<=d+u.length)&&!L$e(a,r,d,d+u.length))){if(u instanceof Vp){if(i&fa.ExcludeBuffers)continue;let m=u.findChild(0,u.buffer.length,n,r-d,a);if(m>-1)return new Zu(new b1t(o,u,t,d),null,m)}else if(i&fa.IncludeAnonymous||!u.type.isAnonymous||YX(u)){let m;if(!(i&fa.IgnoreMounts)&&(m=m0.get(u))&&!m.overlay)return new os(m.tree,d,t,o);let h=new os(u,d,t,o);return i&fa.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?u.children.length-1:0,n,r,a,i)}}}if(i&fa.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+n:t=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,n,r=0){let a;if(!(r&fa.IgnoreOverlays)&&(a=m0.get(this._tree))&&a.overlay){let i=t-this.from,o=r&fa.EnterBracketed&&a.bracketed;for(let{from:s,to:l}of a.overlay)if((n>0||o?s<=i:s=i:l>i))return new os(a.tree,a.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Yoe(e,t,n,r){let a=e.cursor(),i=[];if(!a.firstChild())return i;if(n!=null){for(let o=!1;!o;)if(o=a.type.is(n),!a.nextSibling())return i}for(;;){if(r!=null&&a.type.is(r))return i;if(a.type.is(t)&&i.push(a.node),!a.nextSibling())return r==null?i:[]}}function rz(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class b1t{constructor(t,n,r,a){this.parent=t,this.buffer=n,this.index=r,this.start=a}}class Zu extends Q$e{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:a}=this.context,i=a.findChild(this.index+4,a.buffer[this.index+3],t,n-this.context.start,r);return i<0?null:new Zu(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}prop(t){return this.type.prop(t)}enter(t,n,r=0){if(r&fa.ExcludeBuffers)return null;let{buffer:a}=this.context,i=a.findChild(this.index+4,a.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return i<0?null:new Zu(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Zu(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Zu(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,a=this.index+4,i=r.buffer[this.index+3];if(i>a){let o=r.buffer[this.index+1];t.push(r.slice(a,i,o)),n.push(0)}return new ya(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function z$e(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;in.from||o.to=t){let s=new os(o.tree,o.overlay[0].from+i.from,-1,i);(a||(a=[r])).push(R_(s,t,n,!1))}}return a?z$e(a):r}class Z${get name(){return this.type.name}constructor(t,n=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=n&~fa.EnterBracketed,t instanceof os)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:a}=this.buffer;return this.type=n||a.set.types[a.buffer[t]],this.from=r+a.buffer[t+1],this.to=r+a.buffer[t+2],!0}yield(t){return t?t instanceof os?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:a}=this.buffer,i=a.findChild(this.index+4,a.buffer[this.index+3],t,n-this.buffer.start,r);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&fa.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&fa.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&fa.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let a=r<0?0:this.stack[r]+4;if(this.index!=a)return this.yieldBuf(n.findChild(a,this.index,-1,0,4))}else{let a=n.buffer[this.index+3];if(a<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(a)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:a}=this;if(a){if(t>0){if(this.index-1)for(let i=n+t,o=t<0?-1:r._tree.children.length;i!=o;i+=t){let s=r._tree.children[i];if(this.mode&fa.IncludeAnonymous||s instanceof Vp||!s.type.isAnonymous||YX(s))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let o=t;o;o=o._parent)if(o.index==a){if(a==this.index)return o;n=o,r=i+1;break e}a=this.stack[--i]}for(let a=r;a=0;i--){if(i<0)return rz(this._tree,t,a);let o=r[n.buffer[this.stack[i]]];if(!o.isAnonymous){if(t[a]&&t[a]!=o.name)return!1;a--}}return!0}}function YX(e){return e.children.some(t=>t instanceof Vp||!t.type.isAnonymous||YX(t))}function S1t(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:a=D$e,reused:i=[],minRepeatType:o=r.types.length}=e,s=Array.isArray(n)?new XX(n,n.length):n,l=r.types,c=0,u=0;function d(_,w,T,A,k,I){let{id:M,start:Q,end:F,size:L}=s,U=u,R=c;if(L<0)if(s.next(),L==-1){let D=i[M];T.push(D),A.push(Q-_);return}else if(L==-3){c=M;return}else if(L==-4){u=M;return}else throw new RangeError(`Unrecognized record size: ${L}`);let $=l[M],P,z,B=Q-_;if(F-Q<=a&&(z=O(s.pos-w,k))){let D=new Uint16Array(z.size-z.skip),X=s.pos-z.size,Y=D.length;for(;s.pos>X;)Y=v(z.start,D,Y);P=new Vp(D,F-z.start,r),B=z.start-_}else{let D=s.pos-L;s.next();let X=[],Y=[],q=M>=o?M:-1,H=0,J=F;for(;s.pos>D;)q>=0&&s.id==q&&s.size>=0?(s.end<=J-a&&(h(X,Y,Q,H,s.end,J,q,U,R),H=X.length,J=s.end),s.next()):I>2500?f(Q,D,X,Y):d(Q,D,X,Y,q,I+1);if(q>=0&&H>0&&H-1&&H>0){let te=m($,R);P=VX($,X,Y,0,X.length,0,F-Q,te,te)}else P=g($,X,Y,F-Q,U-F,R)}T.push(P),A.push(B)}function f(_,w,T,A){let k=[],I=0,M=-1;for(;s.pos>w;){let{id:Q,start:F,end:L,size:U}=s;if(U>4)s.next();else{if(M>-1&&F=0;L-=3)Q[U++]=k[L],Q[U++]=k[L+1]-F,Q[U++]=k[L+2]-F,Q[U++]=U;T.push(new Vp(Q,k[2]-F,r)),A.push(F-_)}}function m(_,w){return(T,A,k)=>{let I=0,M=T.length-1,Q,F;if(M>=0&&(Q=T[M])instanceof ya){if(!M&&Q.type==_&&Q.length==k)return Q;(F=Q.prop(Cr.lookAhead))&&(I=A[M]+Q.length+F)}return g(_,T,A,k,I,w)}}function h(_,w,T,A,k,I,M,Q,F){let L=[],U=[];for(;_.length>A;)L.push(_.pop()),U.push(w.pop()+T-k);_.push(g(r.types[M],L,U,I-k,Q-I,F)),w.push(k-T)}function g(_,w,T,A,k,I,M){if(I){let Q=[Cr.contextHash,I];M=M?[Q].concat(M):[Q]}if(k>25){let Q=[Cr.lookAhead,k];M=M?[Q].concat(M):[Q]}return new ya(_,w,T,A,M)}function O(_,w){let T=s.fork(),A=0,k=0,I=0,M=T.end-a,Q={size:0,start:0,skip:0};e:for(let F=T.pos-_;T.pos>F;){let L=T.size;if(T.id==w&&L>=0){Q.size=A,Q.start=k,Q.skip=I,I+=4,A+=4,T.next();continue}let U=T.pos-L;if(L<0||U=o?4:0,$=T.start;for(T.next();T.pos>U;){if(T.size<0)if(T.size==-3||T.size==-4)R+=4;else break e;else T.id>=o&&(R+=4);T.next()}k=$,A+=L,I+=R}return(w<0||A==_)&&(Q.size=A,Q.start=k,Q.skip=I),Q.size>4?Q:void 0}function v(_,w,T){let{id:A,start:k,end:I,size:M}=s;if(s.next(),M>=0&&A4){let F=s.pos-(M-4);for(;s.pos>F;)T=v(_,w,T)}w[--T]=Q,w[--T]=I-_,w[--T]=k-_,w[--T]=A}else M==-3?c=A:M==-4&&(u=A);return T}let y=[],S=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,y,S,-1,0);let C=(t=e.length)!==null&&t!==void 0?t:y.length?S[0]+y[0].length:0;return new ya(l[e.topID],y.reverse(),S.reverse(),C)}const Voe=new WeakMap;function $2(e,t){if(!e.isAnonymous||t instanceof Vp||t.type!=e)return 1;let n=Voe.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof ya)){n=1;break}n+=$2(e,r)}Voe.set(t,n)}return n}function VX(e,t,n,r,a,i,o,s,l){let c=0;for(let h=r;h=u)break;w+=T}if(S==C+1){if(w>u){let T=h[C];m(T.children,T.positions,0,T.children.length,g[C]+y);continue}d.push(h[C])}else{let T=g[S-1]+h[S-1].length-_;d.push(VX(e,h,g,C,S,_,T,null,l))}f.push(_+y-i)}}return m(t,n,r,a,0),(s||l)(d,f,o)}class oA{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let a=this.map.get(t);a||this.map.set(t,a=new Map),a.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof Zu?this.setBuffer(t.context.buffer,t.index,n):t instanceof os&&this.map.set(t.tree,n)}get(t){return t instanceof Zu?this.getBuffer(t.context.buffer,t.index):t instanceof os?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class mf{constructor(t,n,r,a,i=!1,o=!1){this.from=t,this.to=n,this.tree=r,this.offset=a,this.open=(i?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let a=[new mf(0,t.length,t,0,!1,r)];for(let i of n)i.to>t.length&&a.push(i);return a}static applyChanges(t,n,r=128){if(!n.length)return t;let a=[],i=1,o=t.length?t[0]:null;for(let s=0,l=0,c=0;;s++){let u=s=r)for(;o&&o.from=f.from||d<=f.to||c){let m=Math.max(f.from,l)-c,h=Math.min(f.to,d)-c;f=m>=h?null:new mf(m,h,f.tree,f.offset+c,s>0,!!u)}if(f&&a.push(f),o.to>d)break;o=inew vc(a.from,a.to)):[new vc(0,0)]:[new vc(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let a=this.startParse(t,n,r);for(;;){let i=a.advance();if(i)return i}}};class _1t{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function WX(e){return(t,n,r,a)=>new x1t(t,e,n,r,a)}class qoe{constructor(t,n,r,a,i,o){this.parser=t,this.parse=n,this.overlay=r,this.bracketed=a,this.target=i,this.from=o}}function Woe(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class E1t{constructor(t,n,r,a,i,o,s,l){this.parser=t,this.predicate=n,this.mounts=r,this.index=a,this.start=i,this.bracketed=o,this.target=s,this.prev=l,this.depth=0,this.ranges=[]}}const az=new Cr({perNode:!0});class x1t{constructor(t,n,r,a,i){this.nest=n,this.input=r,this.fragments=a,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let a of this.inner)a.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new ya(r.type,r.children,r.positions,r.length,r.propValues.concat([[az,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[Cr.mounted.id]=new m0(n,t.overlay,t.parser,t.bracketed),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n=this.stoppedAt)s=!1;else if(t.hasNode(a)){if(n){let c=n.mounts.find(u=>u.frag.from<=a.from&&u.frag.to>=a.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,f=u.to+c.pos;d>=a.from&&f<=a.to&&!n.ranges.some(m=>m.fromd)&&n.ranges.push({from:d,to:f})}}s=!1}else if(r&&(o=T1t(r.ranges,a.from,a.to)))s=o!=2;else if(!a.type.isAnonymous&&(i=this.nest(a,this.input))&&(a.fromnew vc(d.from-a.from,d.to-a.from)):null,!!i.bracketed,a.tree,u.length?u[0].from:a.from)),i.overlay?u.length&&(r={ranges:u,depth:0,prev:r}):s=!1}}else if(n&&(l=n.predicate(a))&&(l===!0&&(l=new vc(a.from,a.to)),l.from=0&&n.ranges[c].to==l.from?n.ranges[c]={from:n.ranges[c].from,to:l.to}:n.ranges.push(l)}if(s&&a.firstChild())n&&n.depth++,r&&r.depth++;else for(;!a.nextSibling();){if(!a.parent())break e;if(n&&!--n.depth){let c=Zoe(this.ranges,n.ranges);c.length&&(Woe(c),this.inner.splice(n.index,0,new qoe(n.parser,n.parser.startParse(this.input,Koe(n.mounts,c),c),n.ranges.map(u=>new vc(u.from-n.start,u.to-n.start)),n.bracketed,n.target,c[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function T1t(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function Goe(e,t,n,r,a,i){if(t=t&&n.enter(r,1,fa.IgnoreOverlays|fa.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof ya)n=n.children[0];else break}return!1}}let C1t=class{constructor(t){var n;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(n=r.tree.prop(az))!==null&&n!==void 0?n:r.to,this.inner=new Hoe(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(t=n.tree.prop(az))!==null&&t!==void 0?t:n.to,this.inner=new Hoe(n.tree,-n.offset)}}findMounts(t,n){var r;let a=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let i=this.inner.cursor.node;i;i=i.parent){let o=(r=i.tree)===null||r===void 0?void 0:r.prop(Cr.mounted);if(o&&o.parser==n)for(let s=this.fragI;s=i.to)break;l.tree==this.curFrag.tree&&a.push({frag:l,pos:i.from-l.offset,mount:o})}}}return a}};function Zoe(e,t){let n=null,r=t;for(let a=1,i=0;a=s)break;l.to<=o||(n||(r=n=t.slice()),l.froms&&n.splice(i+1,0,new vc(s,l.to))):l.to>s?n[i--]=new vc(s,l.to):n.splice(i--,1))}}return r}function $1t(e,t,n,r){let a=0,i=0,o=!1,s=!1,l=-1e9,c=[];for(;;){let u=a==e.length?1e9:o?e[a].to:e[a].from,d=i==t.length?1e9:s?t[i].to:t[i].from;if(o!=s){let f=Math.max(l,n),m=Math.min(u,d,r);fnew vc(f.from+r,f.to+r)),d=$1t(t,u,l,c);for(let f=0,m=l;;f++){let h=f==d.length,g=h?c:d[f].from;if(g>m&&n.push(new mf(m,g,a.tree,-o,i.from>=m||i.openStart,i.to<=g||i.openEnd)),h)break;m=d[f].to}}else n.push(new mf(l,c,a.tree,-o,i.from>=o||i.openStart,i.to<=s||i.openEnd))}return n}var Joe={};let R1t=class iz{constructor(t,n,r,a,i,o,s,l,c,u=0,d){this.p=t,this.stack=n,this.state=r,this.reducePos=a,this.pos=i,this.score=o,this.buffer=s,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let a=t.parser.context;return new iz(t,[],n,r,r,0,[],0,a?new ese(a,a.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,a=t&65535,{parser:i}=this.p,o=this.reducePos=2e3&&!(!((n=this.p.parser.nodeSet.types[a])===null||n===void 0)&&n.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(a,c)}storeNode(t,n,r,a=4,i=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[s-4]==0&&o.buffer[s-1]>-1){if(n==r)return;if(o.buffer[s-2]>=n){o.buffer[s-2]=r;return}}}if(!i||this.pos==r)this.buffer.push(t,n,r,a);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let s=!1;for(let l=o;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){s=!0;break}if(s)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,a>4&&(a-=4)}this.buffer[o]=t,this.buffer[o+1]=n,this.buffer[o+2]=r,this.buffer[o+3]=a}}shift(t,n,r,a){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let i=t,{parser:o}=this.p;this.pos=a;let s=o.stateFlag(i,1);!s&&(a>r||n<=o.maxNode)&&(this.reducePos=a),this.pushState(i,s?r:Math.min(r,this.reducePos)),this.shiftContext(n,r),n<=o.maxNode&&this.buffer.push(n,r,a,4)}else this.pos=a,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,a,4)}apply(t,n,r,a){t&65536?this.reduce(t):this.shift(t,n,r,a)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let a=this.pos;this.reducePos=this.pos=a+t.length,this.pushState(n,a),this.buffer.push(r,a,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),a=t.bufferBase+n;for(;t&&a==t.bufferBase;)t=t.parent;return new iz(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,a,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new P1t(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let a=[];for(let i=0,o;il&1&&s==o)||a.push(n[i],o)}n=a}let r=[];for(let a=0;a>19,a=n&65535,i=this.stack.length-r*3;if(i<0||t.getGoto(this.stack[i],a,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(a,i)=>{if(!n.includes(a))return n.push(a),t.allActions(a,o=>{if(!(o&393216))if(o&65536){let s=(o>>19)-i;if(s>1){let l=o&65535,c=this.stack.length-s*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return s<<19|65536|l}}else{let s=r(o,i+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n0&&this.emitLookAhead()}};class ese{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class P1t{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let a=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=a}}class K${constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new K$(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new K$(this.stack,this.pos,this.index)}}function Zy(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,a=0;r=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,s=!0),i+=l,s)break;i*=46}n?n[a++]=i:n=new t(i)}return n}class R2{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const tse=new R2;class k1t{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=tse,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,a=this.rangeIndex,i=this.pos+t;for(;ir.to:i>=r.to;){if(a==this.ranges.length-1)return null;let o=this.ranges[++a];i+=o.from-r.to,r=o}return i}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,a;if(n>=0&&n=this.chunk2Pos&&rs.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),a=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),a}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=tse,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let a of this.ranges){if(a.from>=n)break;a.to>t&&(r+=this.input.read(Math.max(a.from,t),Math.min(a.to,n)))}return r}}class h0{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;B$e(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}h0.prototype.contextual=h0.prototype.fallback=h0.prototype.extend=!1;class q0{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?Zy(t):t}token(t,n){let r=t.pos,a=0;for(;;){let i=t.next<0,o=t.resolveOffset(1,1);if(B$e(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(i||a++,o==null)break;t.reset(o,t.token)}a&&(t.reset(r,t.token),t.acceptToken(this.elseToken,a))}}q0.prototype.contextual=h0.prototype.fallback=h0.prototype.extend=!1;class Da{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function B$e(e,t,n,r,a,i){let o=0,s=1<0){let h=e[m];if(l.allows(h)&&(t.token.value==-1||t.token.value==h||A1t(h,t.token.value,a,i))){t.acceptToken(h);break}}let u=t.next,d=0,f=e[o+2];if(t.next<0&&f>d&&e[c+f*3-3]==65535){o=e[c+f*3-1];continue e}for(;d>1,h=c+m+(m<<1),g=e[h],O=e[h+1]||65536;if(u=O)d=m+1;else{o=e[h+2],t.advance();continue e}}break}}function nse(e,t,n){for(let r=t,a;(a=e[r])!=65535;r++)if(a==n)return r-t;return-1}function A1t(e,t,n,r){let a=nse(n,r,t);return a<0||nse(n,r,e)t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}let N1t=class{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?rse(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?rse(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=o,null;if(i instanceof ya){if(o==t){if(o=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+i.length}}};class I1t{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new R2)}getActions(t){let n=0,r=null,{parser:a}=t.p,{tokenizers:i}=a,o=a.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let f=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!u.extend&&(r=d,n>f))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new R2,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new R2,{pos:r,p:a}=t;return n.start=r,n.end=Math.min(r+1,a.stream.end),n.value=r==a.stream.end?a.parser.eofTerm:0,n}updateCachedToken(t,n,r){let a=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(a,t),r),t.value>-1){let{parser:i}=r.p;for(let o=0;o=0&&r.p.parser.dialect.allows(s>>1)){(s&1)==0?t.value=s>>1:t.extended=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(a+1)}putAction(t,n,r,a){for(let i=0;it.bufferLength*4?new N1t(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],a,i;if(this.bigReductionCount>300&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;on)r.push(s);else{if(this.advanceStack(s,r,t))continue;{a||(a=[],i=[]),a.push(s);let l=this.tokens.getMainToken(s);i.push(l.value,l.end)}}break}}if(!r.length){let o=a&&L1t(a);if(o)return _l&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw _l&&a&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&a){let o=this.stoppedAt!=null&&a[0].pos>this.stoppedAt?a[0]:this.runRecovery(a,i,r);if(o)return _l&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((s,l)=>l.score-s.score);r.length>o;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let o=0;o500&&c.buffer.length>500)if((s.score-c.score||s.buffer.length-c.buffer.length)>0)r.splice(l--,1);else{r.splice(o--,1);continue e}}}r.length>12&&(r.sort((o,s)=>s.score-o.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&a>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,u=c?t.curContext.hash:0;for(let d=this.fragments.nodeAt(a);d;){let f=this.parser.nodeSet.types[d.type.id]==d.type?i.getGoto(t.state,d.type.id):-1;if(f>-1&&d.length&&(!c||(d.prop(Cr.contextHash)||0)==u))return t.useNode(d,f),_l&&console.log(o+this.stackID(t)+` (via reuse of ${i.getName(d.type.id)})`),!0;if(!(d instanceof ya)||d.children.length==0||d.positions[0]>0)break;let m=d.children[0];if(m instanceof ya&&d.positions[0]==0)d=m;else break}}let s=i.stateSlot(t.state,4);if(s>0)return t.reduce(s),_l&&console.log(o+this.stackID(t)+` (via always-reduce ${i.getName(s&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;ca?n.push(h):r.push(h)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return ase(t,n),!0}}runRecovery(t,n,r){let a=null,i=!1;for(let o=0;o ":"";if(s.deadEnd&&(i||(i=!0,s.restart(),_l&&console.log(u+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let d=s.split(),f=u;for(let m=0;m<10&&d.forceReduce()&&(_l&&console.log(f+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));m++)_l&&(f=this.stackID(d)+" -> ");for(let m of s.recoverByInsert(l))_l&&console.log(u+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,r);this.stream.end>s.pos?(c==s.pos&&(c++,l=0),s.recoverByDelete(l,c),_l&&console.log(u+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),ase(s,r)):(!a||a.scoree;class lx{constructor(t){this.start=t.start,this.shift=t.shift||Q5,this.reduce=t.reduce||Q5,this.reuse=t.reuse||Q5,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Xl extends qX{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;st.topRules[s][1]),a=[];for(let s=0;s=0)i(u,l,s[c++]);else{let d=s[c+-u];for(let f=-u;f>0;f--)i(s[c++],l,d);c++}}}this.nodeSet=new sx(n.map((s,l)=>so.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:a[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=D$e;let o=Zy(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new h0(o,s):s),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let a=new M1t(this,t,n,r);for(let i of this.wrappers)a=i(a,t,n,r);return a}getGoto(t,n,r=!1){let a=this.goto;if(n>=a[0])return-1;for(let i=a[n+1];;){let o=a[i++],s=o&1,l=a[i++];if(s&&r)return l;for(let c=i+(o>>1);i0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),a=r?n(r):void 0;for(let i=this.stateSlot(t,1);a==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=rf(this.data,i+2);else break;a=n(rf(this.data,i+1))}return a}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=rf(this.data,r+2);else break;if((this.data[r+2]&1)==0){let a=this.data[r+1];n.some((i,o)=>o&1&&i==a)||n.push(this.data[r],a)}}return n}configure(t){let n=Object.assign(Object.create(Xl.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let a=t.tokenizers.find(i=>i.from==r);return a?a.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,a)=>{let i=t.specializers.find(s=>s.from==r.external);if(!i)return r;let o=Object.assign(Object.assign({},r),{external:i.to});return n.specializers[a]=ise(o),o})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let i of t.split(" ")){let o=n.indexOf(i);o>=0&&(r[o]=!0)}let a=null;for(let i=0;ir)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}let Q1t=0,Xu=class oz{constructor(t,n,r,a){this.name=t,this.set=n,this.base=r,this.modified=a,this.id=Q1t++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof oz&&(n=t),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let a=new oz(r,[],null,[]);if(a.set.push(a),n)for(let i of n.set)a.set.push(i);return a}static defineModifier(t){let n=new J$(t);return r=>r.modified.indexOf(n)>-1?r:J$.get(r.base||r,r.modified.concat(n).sort((a,i)=>a.id-i.id))}},z1t=0;class J${constructor(t){this.name=t,this.instances=[],this.id=z1t++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&B1t(n,s.modified));if(r)return r;let a=[],i=new Xu(t.name,a,t,n);for(let s of n)s.instances.push(i);let o=F1t(n);for(let s of t.set)if(!s.modified.length)for(let l of o)a.push(J$.get(s,l));return i}}function B1t(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function F1t(e){let t=[[]];for(let n=0;nr.length-n.length)}function Zl(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let a of n.split(" "))if(a){let i=[],o=2,s=a;for(let d=0;;){if(s=="..."&&d>0&&d+3==a.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!f)throw new RangeError("Invalid path: "+a);if(i.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==a.length)break;let m=a[d++];if(d==a.length&&m=="!"){o=0;break}if(m!="/")throw new RangeError("Invalid path: "+a);s=a.slice(d)}let l=i.length-1,c=i[l];if(!c)throw new RangeError("Invalid path: "+a);let u=new P_(r,o,l>0?i.slice(0,l):null);t[c]=u.sort(t[c])}}return F$e.add(t)}const F$e=new Cr({combine(e,t){let n,r,a;for(;e||t;){if(!e||t&&e.depth>=t.depth?(a=t,t=t.next):(a=e,e=e.next),n&&n.mode==a.mode&&!a.context&&!n.context)continue;let i=new P_(a.tags,a.mode,a.context);n?n.next=i:r=i,n=i}return r}});class P_{constructor(t,n,r,a){this.tags=t,this.mode=n,this.context=r,this.next=a}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let o=a;for(let s of i)for(let l of s.set){let c=n[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:r}}function U1t(e,t){let n=null;for(let r of e){let a=r.style(t);a&&(n=n?n+" "+a:a)}return n}function j1t(e,t,n,r=0,a=e.length){let i=new X1t(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,a,"",i.highlighters),i.flush(a)}class X1t{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,a,i){let{type:o,from:s,to:l}=t;if(s>=r||l<=n)return;o.isTop&&(i=this.highlighters.filter(m=>!m.scope||m.scope(o)));let c=a,u=Y1t(t)||P_.empty,d=U1t(i,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(a+=(a?" ":"")+d)),this.startSpan(Math.max(n,s),c),u.opaque)return;let f=t.tree&&t.tree.prop(Cr.mounted);if(f&&f.overlay){let m=t.node.enter(f.overlay[0].from+s,1),h=this.highlighters.filter(O=>!O.scope||O.scope(f.tree.type)),g=t.firstChild();for(let O=0,v=s;;O++){let y=O=S||!t.nextSibling())););if(!y||S>r)break;v=y.to+s,v>n&&(this.highlightRange(m.cursor(),Math.max(n,y.from+s),Math.min(r,v),"",h),this.startSpan(Math.min(r,v),c))}g&&t.parent()}else if(t.firstChild()){f&&(a="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,a,i),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function Y1t(e){let t=e.type.prop(F$e);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const gn=Xu.define,ww=gn(),_p=gn(),ose=gn(_p),sse=gn(_p),Ep=gn(),Cw=gn(Ep),z5=gn(Ep),Du=gn(),Fm=gn(Du),ku=gn(),Au=gn(),sz=gn(),Jv=gn(sz),$w=gn(),G={comment:ww,lineComment:gn(ww),blockComment:gn(ww),docComment:gn(ww),name:_p,variableName:gn(_p),typeName:ose,tagName:gn(ose),propertyName:sse,attributeName:gn(sse),className:gn(_p),labelName:gn(_p),namespace:gn(_p),macroName:gn(_p),literal:Ep,string:Cw,docString:gn(Cw),character:gn(Cw),attributeValue:gn(Cw),number:z5,integer:gn(z5),float:gn(z5),bool:gn(Ep),regexp:gn(Ep),escape:gn(Ep),color:gn(Ep),url:gn(Ep),keyword:ku,self:gn(ku),null:gn(ku),atom:gn(ku),unit:gn(ku),modifier:gn(ku),operatorKeyword:gn(ku),controlKeyword:gn(ku),definitionKeyword:gn(ku),moduleKeyword:gn(ku),operator:Au,derefOperator:gn(Au),arithmeticOperator:gn(Au),logicOperator:gn(Au),bitwiseOperator:gn(Au),compareOperator:gn(Au),updateOperator:gn(Au),definitionOperator:gn(Au),typeOperator:gn(Au),controlOperator:gn(Au),punctuation:sz,separator:gn(sz),bracket:Jv,angleBracket:gn(Jv),squareBracket:gn(Jv),paren:gn(Jv),brace:gn(Jv),content:Du,heading:Fm,heading1:gn(Fm),heading2:gn(Fm),heading3:gn(Fm),heading4:gn(Fm),heading5:gn(Fm),heading6:gn(Fm),contentSeparator:gn(Du),list:gn(Du),quote:gn(Du),emphasis:gn(Du),strong:gn(Du),link:gn(Du),monospace:gn(Du),strikethrough:gn(Du),inserted:gn(),deleted:gn(),changed:gn(),invalid:gn(),meta:$w,documentMeta:gn($w),annotation:gn($w),processingInstruction:gn($w),definition:Xu.defineModifier("definition"),constant:Xu.defineModifier("constant"),function:Xu.defineModifier("function"),standard:Xu.defineModifier("standard"),local:Xu.defineModifier("local"),special:Xu.defineModifier("special")};for(let e in G){let t=G[e];t instanceof Xu&&(t.name=e)}U$e([{tag:G.link,class:"tok-link"},{tag:G.heading,class:"tok-heading"},{tag:G.emphasis,class:"tok-emphasis"},{tag:G.strong,class:"tok-strong"},{tag:G.keyword,class:"tok-keyword"},{tag:G.atom,class:"tok-atom"},{tag:G.bool,class:"tok-bool"},{tag:G.url,class:"tok-url"},{tag:G.labelName,class:"tok-labelName"},{tag:G.inserted,class:"tok-inserted"},{tag:G.deleted,class:"tok-deleted"},{tag:G.literal,class:"tok-literal"},{tag:G.string,class:"tok-string"},{tag:G.number,class:"tok-number"},{tag:[G.regexp,G.escape,G.special(G.string)],class:"tok-string2"},{tag:G.variableName,class:"tok-variableName"},{tag:G.local(G.variableName),class:"tok-variableName tok-local"},{tag:G.definition(G.variableName),class:"tok-variableName tok-definition"},{tag:G.special(G.variableName),class:"tok-variableName2"},{tag:G.definition(G.propertyName),class:"tok-propertyName tok-definition"},{tag:G.typeName,class:"tok-typeName"},{tag:G.namespace,class:"tok-namespace"},{tag:G.className,class:"tok-className"},{tag:G.macroName,class:"tok-macroName"},{tag:G.propertyName,class:"tok-propertyName"},{tag:G.operator,class:"tok-operator"},{tag:G.comment,class:"tok-comment"},{tag:G.meta,class:"tok-meta"},{tag:G.invalid,class:"tok-invalid"},{tag:G.punctuation,class:"tok-punctuation"}]);const lse=1,V1t=2,q1t=3,W1t=82,G1t=76,H1t=117,Z1t=85,K1t=97,J1t=122,eEt=65,tEt=90,nEt=95,lz=48,cse=34,rEt=40,use=41,aEt=32,dse=62,iEt=new Da(e=>{if(e.next==G1t||e.next==Z1t?e.advance():e.next==H1t&&(e.advance(),e.next==lz+8&&e.advance()),e.next!=W1t||(e.advance(),e.next!=cse))return;e.advance();let t="";for(;e.next!=rEt;){if(e.next==aEt||e.next<=13||e.next==use)return;t+=String.fromCharCode(e.next),e.advance()}for(e.advance();;){if(e.next<0)return e.acceptToken(lse);if(e.next==use){let n=!0;for(let r=0;n&&r{if(e.next==dse)e.peek(1)==dse&&e.acceptToken(V1t,1);else{let t=!1,n=0;for(;;n++){if(e.next>=eEt&&e.next<=tEt)t=!0;else{if(e.next>=K1t&&e.next<=J1t)return;if(e.next!=nEt&&!(e.next>=lz&&e.next<=lz+9))break}e.advance()}t&&n>1&&e.acceptToken(q1t)}},{extend:!0}),sEt=Zl({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":G.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":G.modifier,"if else switch for while do case default return break continue goto throw try catch":G.controlKeyword,"co_return co_yield co_await":G.controlKeyword,"new sizeof delete static_assert":G.operatorKeyword,"NULL nullptr":G.null,this:G.self,"True False":G.bool,"TypeSize PrimitiveType":G.standard(G.typeName),TypeIdentifier:G.typeName,FieldIdentifier:G.propertyName,"CallExpression/FieldExpression/FieldIdentifier":G.function(G.propertyName),"ModuleName/Identifier":G.namespace,PartitionName:G.labelName,StatementIdentifier:G.labelName,"Identifier DestructorName":G.variableName,"CallExpression/Identifier":G.function(G.variableName),"CallExpression/ScopedIdentifier/Identifier":G.function(G.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":G.function(G.definition(G.variableName)),NamespaceIdentifier:G.namespace,OperatorName:G.operator,ArithOp:G.arithmeticOperator,LogicOp:G.logicOperator,BitOp:G.bitwiseOperator,CompareOp:G.compareOperator,AssignOp:G.definitionOperator,UpdateOp:G.updateOperator,LineComment:G.lineComment,BlockComment:G.blockComment,Number:G.number,String:G.string,"RawString SystemLibString":G.special(G.string),CharLiteral:G.character,EscapeSequence:G.escape,"UserDefinedLiteral/Identifier":G.literal,PreProcArg:G.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":G.processingInstruction,MacroName:G.special(G.name),"( )":G.paren,"[ ]":G.squareBracket,"{ }":G.brace,"< >":G.angleBracket,". ->":G.derefOperator,", ;":G.separator}),lEt={__proto__:null,bool:36,char:36,int:36,float:36,double:36,void:36,size_t:36,ssize_t:36,intptr_t:36,uintptr_t:36,charptr_t:36,int8_t:36,int16_t:36,int32_t:36,int64_t:36,uint8_t:36,uint16_t:36,uint32_t:36,uint64_t:36,char8_t:36,char16_t:36,char32_t:36,char64_t:36,const:70,volatile:72,restrict:74,_Atomic:76,mutable:78,constexpr:80,constinit:82,consteval:84,struct:88,__declspec:92,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:796,true:796,FALSE:798,false:798,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},cEt={__proto__:null,"<":765},uEt={__proto__:null,">":135},dEt={__proto__:null,operator:388,new:576,delete:582},fEt=Xl.deserialize({version:14,states:"$;xQ!QQVOOP'gOUOOO([OWO'#CdO,UQUO'#CgO,`QUO'#FjO-vQbO'#CxO.XQUO'#CxO0WQUO'#K`O0_QUO'#CwO0jOpO'#DvO0rQ!dO'#D]OOQR'#JP'#JPO5[QVO'#GUO5iQUO'#JWOOQQ'#JW'#JWO8}QUO'#KsOxQVO'#IbO!(}QVO'#IdO!?SQUO'#IgO!?ZQVO'#IjP!AQO!LQO'#CaP!A]{,UO'#CbP!6q{,UO'#CbP!Ah{7[O'#CbP!6q{,UO'#CbP!Am{,UO'#CbP!AxOSO'#IzPOOO)CEo)CEoOOOO'#I}'#I}O!BSOWO,59OOOQR,59O,59OO!(}QVO,59VOOQQ,59X,59XOOQR'#Do'#DoO!(}QVO,5;ROOQR,5qOOQR'#IX'#IXOOQR'#IY'#IYOOQR'#IZ'#IZOOQR'#I['#I[O!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!D^QVO,5>zOOQQ,5?W,5?WO!FPQVO'#CjO!IxQUO'#CzOOQQ,59d,59dOOQQ,59c,59cOOQQ,5<},5<}O!JVQ&lO,5=mO!?SQUO,5?RO!LyQVO,5?UO!MQQbO,59dO!M]QVO'#FYOOQQ,5?P,5?PO!MmQVO,59WO!MtO`O,5:bO!MyQbO'#D^O!N[QbO'#KdO!NjQbO,59wO!NrQbO'#CxO# TQUO'#CxO# YQUO'#K`O# dQUO'#CwOOQR-E<}-E<}O# oQUO,5AuO# vQVO'#EfO@[QVO'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m*n*q*v*w*{+]+_+m+o+p,U,W,s,v,|-b-c-f-l.U.V.Z/S/V/c/j/s/u/z/|0o1S1X1h1i1s1w2R2T2j2m2p2|3R3U3p4V4Y4_4h5a5l5x6f6j6m6o6q6{6}7S7i7q7t8l8n8t8z8{9Y9^9d9f9s9v9w:S:V:]:_:d:i:mU%qm%r7XQ&o!`Q(o#^d0W*S0T0U0V0Y5U5V5W5Z8XR7X3[b}Oaewx{!g&U*v&v$k[!W!X!k!n!r!s!v!x#X#Y#[#h#k#n#s#t#u#v#w#x#y#z#{#|#}$P$W$Y$[$g$h$m%_%o&S&Y&d&h&z&{'O'Q'R'd'k'l'{(b(d(k)q)w*m*n*q*w*{+]+_+m+o+p,U,W,s,v,|-b-c-f-l.U.V.Z/S/V/c/j/s/u/z/|1S1h1i1s1w2R2T2j2m2p2|3R3U3p4V4Y4_4h5a5l5x6f6j6m6o6q6{6}7S7i7q7t8l8n8t8z8{9Y9^9d9f9s9v9w:S:V:]:_:d:i:mS%bf0o#d%lgnp|#O$i%O%P%U%f%j%k%y&u'v'w(S*_*e*g*y+b,q,{-d-u-|.k.r.t0d1Q1R1V1Z2f2q5h6n;_;`;a;g;h;i;v;w;x;y;} MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ) ( ArgumentList ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:431,nodeProps:[["group",-35,1,8,11,15,16,17,19,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,18,25,26,27,43,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"],["isolate",-3,4,8,10,""],["openedBy",12,"(",52,"{",54,"["],["closedBy",13,")",51,"}",53,"]"]],propSources:[sEt],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,308,348,349],repeatNodeCount:42,tokenData:"%LSMfR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#5[!R![#JY![!]$4w!]!^$6s!^!_$7n!_!`%$h!`!a%%i!a!b%(o!b!c$e!c!n%)j!n!o%+R!o!w%)j!w!x%+R!x!}%)j!}#O%.O#O#P%/w#P#Q%?[#Q#R%AT#R#S%)j#S#T$e#T#i%)j#i#j%BW#j#o%)j#o#p%Cu#p#q%Dp#q#r%Fv#r#s%Gq#s;'S$e;'S;=`(u<%lO$e,j$nY)c`(vS'f,UOY$e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lO$e",tokenizers:[iEt,oEt,1,2,3,4,5,6,7,8,9,10,new q0("j~RQYZXz{^~^O(r~~aP!P!Qd~iO(s~~",25,355)],topRules:{Program:[0,307]},dynamicPrecedences:{17:1,65:1,87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,370:3,423:1,424:3,425:1,426:1},specialized:[{term:361,get:e=>lEt[e]||-1},{term:33,get:e=>cEt[e]||-1},{term:66,get:e=>uEt[e]||-1},{term:368,get:e=>dEt[e]||-1}],tokenPrec:24916});let cz=[],j$e=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,n=0;t>1;if(e=j$e[r])t=r+1;else return!0;if(t==n)return!1}}function fse(e){return e>=127462&&e<=127487}const pse=8205;function mEt(e,t,n=!0,r=!0){return(n?X$e:hEt)(e,t,r)}function X$e(e,t,n){if(t==e.length)return t;t&&Y$e(e.charCodeAt(t))&&V$e(e.charCodeAt(t-1))&&t--;let r=B5(e,t);for(t+=mse(r);t=0&&fse(B5(e,o));)i++,o-=2;if(i%2==0)break;t+=2}else break}return t}function hEt(e,t,n){for(;t>0;){let r=X$e(e,t-2,n);if(r=56320&&e<57344}function V$e(e){return e>=55296&&e<56320}function mse(e){return e<65536?1:2}let pa=class q$e{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=W0(this,t,n);let a=[];return this.decompose(0,t,a,2),r.length&&r.decompose(0,r.length,a,3),this.decompose(n,this.length,a,1),P2.from(a,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=W0(this,t,n);let r=[];return this.decompose(t,n,r,0),P2.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),a=new RS(this),i=new RS(t);for(let o=n,s=n;;){if(a.next(o),i.next(o),o=0,a.lineBreak!=i.lineBreak||a.done!=i.done||a.value!=i.value)return!1;if(s+=a.value.length,a.done||s>=r)return!0}}iter(t=1){return new RS(this,t)}iterRange(t,n=this.length){return new W$e(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let a=this.line(t).from;r=this.iterRange(a,Math.max(a,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new G$e(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?q$e.empty:t.length<=32?new ki(t):P2.from(ki.split(t,[]))}};class ki extends pa{constructor(t,n=gEt(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,a){for(let i=0;;i++){let o=this.text[i],s=a+o.length;if((n?r:s)>=t)return new OEt(a,s,r,o);a=s+1,r++}}decompose(t,n,r,a){let i=t<=0&&n>=this.length?this:new ki(hse(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(a&1){let o=r.pop(),s=k2(i.text,o.text.slice(),0,i.length);if(s.length<=32)r.push(new ki(s,o.length+i.length));else{let l=s.length>>1;r.push(new ki(s.slice(0,l)),new ki(s.slice(l)))}}else r.push(i)}replace(t,n,r){if(!(r instanceof ki))return super.replace(t,n,r);[t,n]=W0(this,t,n);let a=k2(this.text,k2(r.text,hse(this.text,0,t)),n),i=this.length+r.length-(n-t);return a.length<=32?new ki(a,i):P2.from(ki.split(a,[]),i)}sliceString(t,n=this.length,r=` -`){[t,n]=W0(this,t,n);let a="";for(let i=0,o=0;i<=n&&ot&&o&&(a+=r),ti&&(a+=s.slice(Math.max(0,t-i),n-i)),i=l+1}return a}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],a=-1;for(let i of t)r.push(i),a+=i.length+1,r.length==32&&(n.push(new ki(r,a)),r=[],a=-1);return a>-1&&n.push(new ki(r,a)),n}}let P2=class LO extends pa{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,a){for(let i=0;;i++){let o=this.children[i],s=a+o.length,l=r+o.lines-1;if((n?l:s)>=t)return o.lineInner(t,n,r,a);a=s+1,r=l+1}}decompose(t,n,r,a){for(let i=0,o=0;o<=n&&i=o){let c=a&((o<=t?1:0)|(l>=n?2:0));o>=t&&l<=n&&!c?r.push(s):s.decompose(t-o,n-o,r,c)}o=l+1}}replace(t,n,r){if([t,n]=W0(this,t,n),r.lines=i&&n<=s){let l=o.replace(t-i,n-i,r),c=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let u=this.children.slice();return u[a]=l,new LO(u,this.length-(n-t)+r.length)}return super.replace(i,s,l)}i=s+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` -`){[t,n]=W0(this,t,n);let a="";for(let i=0,o=0;it&&i&&(a+=r),to&&(a+=s.sliceString(t-o,n-o,r)),o=l+1}return a}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof LO))return 0;let r=0,[a,i,o,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;a+=n,i+=n){if(a==o||i==s)return r;let l=this.children[a],c=t.children[i];if(l!=c)return r+l.scanIdentical(c,n);r+=l.length+1}}static from(t,n=t.reduce((r,a)=>r+a.length+1,-1)){let r=0;for(let m of t)r+=m.lines;if(r<32){let m=[];for(let h of t)h.flatten(m);return new ki(m,n)}let a=Math.max(32,r>>5),i=a<<1,o=a>>1,s=[],l=0,c=-1,u=[];function d(m){let h;if(m.lines>i&&m instanceof LO)for(let g of m.children)d(g);else m.lines>o&&(l>o||!l)?(f(),s.push(m)):m instanceof ki&&l&&(h=u[u.length-1])instanceof ki&&m.lines+h.lines<=32?(l+=m.lines,c+=m.length+1,u[u.length-1]=new ki(h.text.concat(m.text),h.length+1+m.length)):(l+m.lines>a&&f(),l+=m.lines,c+=m.length+1,u.push(m))}function f(){l!=0&&(s.push(u.length==1?u[0]:LO.from(u,c)),c=-1,l=u.length=0)}for(let m of t)d(m);return f(),s.length==1?s[0]:new LO(s,n)}};pa.empty=new ki([""],0);function gEt(e){let t=-1;for(let n of e)t+=n.length+1;return t}function k2(e,t,n=0,r=1e9){for(let a=0,i=0,o=!0;i=n&&(l>r&&(s=s.slice(0,r-a)),a0?1:(t instanceof ki?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,a=this.nodes[r],i=this.offsets[r],o=i>>1,s=a instanceof ki?a.text.length:a.children.length;if(o==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(a instanceof ki){let l=a.text[o+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=a.children[o+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof ki?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class W$e{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new RS(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:a}=this.cursor.next(t);return this.pos+=(a.length+t)*n,this.value=a.length<=r?a:n<0?a.slice(a.length-r):a.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class G$e{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:a}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=a,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(pa.prototype[Symbol.iterator]=function(){return this.iter()},RS.prototype[Symbol.iterator]=W$e.prototype[Symbol.iterator]=G$e.prototype[Symbol.iterator]=function(){return this});let OEt=class{constructor(t,n,r,a){this.from=t,this.to=n,this.number=r,this.text=a}get length(){return this.to-this.from}};function W0(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function _o(e,t,n=!0,r=!0){return mEt(e,t,n,r)}function bEt(e){return e>=56320&&e<57344}function vEt(e){return e>=55296&&e<56320}function Ks(e,t){let n=e.charCodeAt(t);if(!vEt(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return bEt(r)?(n-55296<<10)+(r-56320)+65536:n}function GX(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function Wu(e){return e<65536?1:2}const uz=/\r\n?|\n/;var Fo=(function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e})(Fo||(Fo={}));class id{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return i+(t-a);i+=s}else{if(r!=Fo.Simple&&c>=t&&(r==Fo.TrackDel&&at||r==Fo.TrackBefore&&at))return null;if(c>t||c==t&&n<0&&!s)return t==a||n<0?i:i+l;i+=l}a=c}if(t>a)throw new RangeError(`Position ${t} is out of range for changeset of length ${a}`);return i}touchesRange(t,n=t){for(let r=0,a=0;r=0&&a<=n&&s>=t)return an?"cover":!0;a=s}return!1}toString(){let t="";for(let n=0;n=0?":"+a:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new id(t)}static create(t){return new id(t)}}class eo extends id{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return dz(this,(n,r,a,i,o)=>t=t.replace(a,a+(r-n),o),!1),t}mapDesc(t,n=!1){return fz(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let a=0,i=0;a=0){n[a]=s,n[a+1]=o;let l=a>>1;for(;r.length0&&Pp(r,n,i.text),i.forward(u),s+=u}let c=t[o++];for(;s>1].toJSON()))}return t}static of(t,n,r){let a=[],i=[],o=0,s=null;function l(u=!1){if(!u&&!a.length)return;of||d<0||f>n)throw new RangeError(`Invalid change range ${d} to ${f} (in doc of length ${n})`);let h=m?typeof m=="string"?pa.of(m.split(r||uz)):m:pa.empty,g=h.length;if(d==f&&g==0)return;do&&rs(a,d-o,-1),rs(a,f-d,g),Pp(i,a,h),o=f}}return c(t),l(!s),s}static empty(t){return new eo(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let a=0;as&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)n.push(i[0],0);else{for(;r.length=0&&n<=0&&n==e[a+1]?e[a]+=t:a>=0&&t==0&&e[a]==0?e[a+1]+=n:r?(e[a]+=t,e[a+1]+=n):e.push(t,n)}function Pp(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)s=e.sections[o++],l=e.sections[o++];t(a,c,i,u,d),a=c,i=u}}}function fz(e,t,n,r=!1){let a=[],i=r?[]:null,o=new k_(e),s=new k_(t);for(let l=-1;;){if(o.done&&s.len||s.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&s.ins==-1){let c=Math.min(o.len,s.len);rs(a,c,-1),o.forward(c),s.forward(c)}else if(s.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(s.len=0&&l=0){let c=0,u=o.len;for(;u;)if(s.ins==-1){let d=Math.min(u,s.len);c+=d,u-=d,s.forward(d)}else if(s.ins==0&&s.lenl||o.ins>=0&&o.len>l)&&(s||r.length>c),i.forward2(l),o.forward(l)}}}}class k_{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?pa.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?pa.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class Oh{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,a;return this.empty?r=a=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),a=t.mapPos(this.to,-1)),r==this.from&&a==this.to?this:new Oh(r,a,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return _t.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return _t.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&this.goalColumn==t.goalColumn&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return _t.range(t.anchor,t.head)}static create(t,n,r){return new Oh(t,n,r)}}class _t{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:_t.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;rt.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new _t(t.ranges.map(n=>Oh.fromJSON(n)),t.main)}static single(t,n=t){return new _t([_t.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,a=0;at?8:0)|i)}static normalized(t,n=0){let r=t[n];t.sort((a,i)=>a.from-i.from),n=t.indexOf(r);for(let a=1;ai.head?_t.range(l,s):_t.range(s,l))}}return new _t(t,n)}}function Z$e(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let HX=0;class vn{constructor(t,n,r,a,i){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=a,this.id=HX++,this.default=t([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(t={}){return new vn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:ZX),!!t.static,t.enables)}of(t){return new A2([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new A2(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new A2(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function ZX(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class A2{constructor(t,n,r,a){this.dependencies=t,this.facet=n,this.type=r,this.value=a,this.id=HX++}dynamicSlot(t){var n;let r=this.value,a=this.facet.compareInput,i=this.id,o=t[i]>>1,s=this.type==2,l=!1,c=!1,u=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?c=!0:(((n=t[d.id])!==null&&n!==void 0?n:1)&1)==0&&u.push(t[d.id]);return{create(d){return d.values[o]=r(d),1},update(d,f){if(l&&f.docChanged||c&&(f.docChanged||f.selection)||pz(d,u)){let m=r(d);if(s?!gse(m,d.values[o],a):!a(m,d.values[o]))return d.values[o]=m,1}return 0},reconfigure:(d,f)=>{let m,h=f.config.address[i];if(h!=null){let g=tR(f,h);if(this.dependencies.every(O=>O instanceof vn?f.facet(O)===d.facet(O):O instanceof fo?f.field(O,!1)==d.field(O,!1):!0)||(s?gse(m=r(d),g,a):a(m=r(d),g)))return d.values[o]=g,0}else m=r(d);return d.values[o]=m,1}}}}function gse(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),a=n.map(l=>l.type),i=r.filter(l=>!(l&1)),o=e[t.id]>>1;function s(l){let c=[];for(let u=0;ur===a),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(Rw).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,a)=>{let i=r.values[n],o=this.updateF(i,a);return this.compareF(i,o)?0:(r.values[n]=o,1)},reconfigure:(r,a)=>{let i=r.facet(Rw),o=a.facet(Rw),s;return(s=i.find(l=>l.field==this))&&s!=o.find(l=>l.field==this)?(r.values[n]=s.create(r),1):a.config.address[this.id]!=null?(r.values[n]=a.field(this),0):(r.values[n]=this.create(r),1)}}}init(t){return[this,Rw.of({field:this,create:t})]}get extension(){return this}}const ih={lowest:4,low:3,default:2,high:1,highest:0};function ey(e){return t=>new K$e(t,e)}const Af={highest:ey(ih.highest),high:ey(ih.high),default:ey(ih.default),low:ey(ih.low),lowest:ey(ih.lowest)};class K$e{constructor(t,n){this.inner=t,this.prec=n}}class sA{of(t){return new mz(this,t)}reconfigure(t){return sA.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class mz{constructor(t,n){this.compartment=t,this.inner=n}}class eR{constructor(t,n,r,a,i,o){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=a,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let a=[],i=Object.create(null),o=new Map;for(let f of SEt(t,n,o))f instanceof fo?a.push(f):(i[f.facet.id]||(i[f.facet.id]=[])).push(f);let s=Object.create(null),l=[],c=[];for(let f of a)s[f.id]=c.length<<1,c.push(m=>f.slot(m));let u=r==null?void 0:r.config.facets;for(let f in i){let m=i[f],h=m[0].facet,g=u&&u[f]||[];if(m.every(O=>O.type==0))if(s[h.id]=l.length<<1|1,ZX(g,m))l.push(r.facet(h));else{let O=h.combine(m.map(v=>v.value));l.push(r&&h.compare(O,r.facet(h))?r.facet(h):O)}else{for(let O of m)O.type==0?(s[O.id]=l.length<<1|1,l.push(O.value)):(s[O.id]=c.length<<1,c.push(v=>O.dynamicSlot(v)));s[h.id]=c.length<<1,c.push(O=>yEt(O,h,m))}}let d=c.map(f=>f(s));return new eR(t,o,d,s,l,i)}}function SEt(e,t,n){let r=[[],[],[],[],[]],a=new Map;function i(o,s){let l=a.get(o);if(l!=null){if(l<=s)return;let c=r[l].indexOf(o);c>-1&&r[l].splice(c,1),o instanceof mz&&n.delete(o.compartment)}if(a.set(o,s),Array.isArray(o))for(let c of o)i(c,s);else if(o instanceof mz){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=t.get(o.compartment)||o.inner;n.set(o.compartment,c),i(c,s)}else if(o instanceof K$e)i(o.inner,o.prec);else if(o instanceof fo)r[s].push(o),o.provides&&i(o.provides,s);else if(o instanceof A2)r[s].push(o),o.facet.extensions&&i(o.facet.extensions,ih.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(c,s)}}return i(e,ih.default),r.reduce((o,s)=>o.concat(s))}function PS(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let a=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|a}function tR(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const J$e=vn.define(),hz=vn.define({combine:e=>e.some(t=>t),static:!0}),eRe=vn.define({combine:e=>e.length?e[0]:void 0,static:!0}),tRe=vn.define(),nRe=vn.define(),rRe=vn.define(),aRe=vn.define({combine:e=>e.length?e[0]:!1});class wd{constructor(t,n){this.type=t,this.value=n}static define(){return new _Et}}class _Et{of(t){return new wd(this,t)}}class EEt{constructor(t){this.map=t}of(t){return new _r(this,t)}}class _r{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new _r(this.type,n)}is(t){return this.type==t}static define(t={}){return new EEt(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let a of t){let i=a.map(n);i&&r.push(i)}return r}}_r.reconfigure=_r.define();_r.appendConfig=_r.define();class Ui{constructor(t,n,r,a,i,o){this.startState=t,this.changes=n,this.selection=r,this.effects=a,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,r&&Z$e(r,n.newLength),i.some(s=>s.type==Ui.time)||(this.annotations=i.concat(Ui.time.of(Date.now())))}static create(t,n,r,a,i,o){return new Ui(t,n,r,a,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(Ui.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}Ui.time=wd.define();Ui.userEvent=wd.define();Ui.addToHistory=wd.define();Ui.remote=wd.define();function xEt(e,t){let n=[];for(let r=0,a=0;;){let i,o;if(r=e[r]))i=e[r++],o=e[r++];else if(a=0;a--){let i=r[a](e);i instanceof Ui?e=i:Array.isArray(i)&&i.length==1&&i[0]instanceof Ui?e=i[0]:e=oRe(t,g0(i),!1)}return e}function wEt(e){let t=e.startState,n=t.facet(rRe),r=e;for(let a=n.length-1;a>=0;a--){let i=n[a](e);i&&Object.keys(i).length&&(r=iRe(r,gz(t,i,e.changes.newLength),!0))}return r==e?e:Ui.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const CEt=[];function g0(e){return e==null?CEt:Array.isArray(e)?e:[e]}var si=(function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e})(si||(si={}));const $Et=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Oz;try{Oz=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function REt(e){if(Oz)return Oz.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||$Et.test(n)))return!0}return!1}function PEt(e){return t=>{if(!/\S/.test(t))return si.Space;if(REt(t))return si.Word;for(let n=0;n-1)return si.Word;return si.Other}}class Jr{constructor(t,n,r,a,i,o){this.config=t,this.doc=n,this.selection=r,this.values=a,this.status=t.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let s=0;sa.set(c,l)),n=null),a.set(s.value.compartment,s.value.extension)):s.is(_r.reconfigure)?(n=null,r=s.value):s.is(_r.appendConfig)&&(n=null,r=g0(r).concat(s.value));let i;n?i=t.startState.values.slice():(n=eR.resolve(r,a,this),i=new Jr(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let o=t.startState.facet(hz)?t.newSelection:t.newSelection.asSingle();new Jr(n,t.newDoc,o,i,(s,l)=>l.update(s,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:_t.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),a=this.changes(r.changes),i=[r.range],o=g0(r.effects);for(let s=1;so.spec.fromJSON(s,l)))}}return Jr.create({doc:t.doc,selection:_t.fromJSON(t.selection),extensions:n.extensions?a.concat([n.extensions]):a})}static create(t={}){let n=eR.resolve(t.extensions||[],new Map),r=t.doc instanceof pa?t.doc:pa.of((t.doc||"").split(n.staticFacet(Jr.lineSeparator)||uz)),a=t.selection?t.selection instanceof _t?t.selection:_t.single(t.selection.anchor,t.selection.head):_t.single(0);return Z$e(a,r.length),n.staticFacet(hz)||(a=a.asSingle()),new Jr(n,r,a,n.dynamicSlots.map(()=>null),(i,o)=>o.create(i),null)}get tabSize(){return this.facet(Jr.tabSize)}get lineBreak(){return this.facet(Jr.lineSeparator)||` -`}get readOnly(){return this.facet(aRe)}phrase(t,...n){for(let r of this.facet(Jr.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,a)=>{if(a=="$")return"$";let i=+(a||1);return!i||i>n.length?r:n[i-1]})),t}languageDataAt(t,n,r=-1){let a=[];for(let i of this.facet(J$e))for(let o of i(this,n,r))Object.prototype.hasOwnProperty.call(o,t)&&a.push(o[t]);return a}charCategorizer(t){let n=this.languageDataAt("wordChars",t);return PEt(n.length?n[0]:"")}wordAt(t){let{text:n,from:r,length:a}=this.doc.lineAt(t),i=this.charCategorizer(t),o=t-r,s=t-r;for(;o>0;){let l=_o(n,o,!1);if(i(n.slice(l,o))!=si.Word)break;o=l}for(;se.length?e[0]:4});Jr.lineSeparator=eRe;Jr.readOnly=aRe;Jr.phrases=vn.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(a=>e[a]==t[a])}});Jr.languageData=J$e;Jr.changeFilter=tRe;Jr.transactionFilter=nRe;Jr.transactionExtender=rRe;sA.reconfigure=_r.define();function Su(e,t,n={}){let r={};for(let a of e)for(let i of Object.keys(a)){let o=a[i],s=r[i];if(s===void 0)r[i]=o;else if(!(s===o||o===void 0))if(Object.hasOwnProperty.call(n,i))r[i]=n[i](s,o);else throw new Error("Config merge conflict for field "+i)}for(let a in t)r[a]===void 0&&(r[a]=t[a]);return r}class qp{eq(t){return this==t}range(t,n=t){return A_.create(t,n,this)}}qp.prototype.startSide=qp.prototype.endSide=0;qp.prototype.point=!1;qp.prototype.mapMode=Fo.TrackDel;function KX(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}class A_{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new A_(t,n,r)}}function bz(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class JX{constructor(t,n,r,a){this.from=t,this.to=n,this.value=r,this.maxPoint=a}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,a=0){let i=r?this.to:this.from;for(let o=a,s=i.length;;){if(o==s)return o;let l=o+s>>1,c=i[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==o)return c>=0?o:s;c>=0?s=l:o=l+1}}between(t,n,r,a){for(let i=this.findIndex(n,-1e9,!0),o=this.findIndex(r,1e9,!1,i);im||f==m&&c.startSide>0&&c.endSide<=0)continue;(m-f||c.endSide-c.startSide)<0||(o<0&&(o=f),c.point&&(s=Math.max(s,m-f)),r.push(c),a.push(f-o),i.push(m-o))}return{mapped:r.length?new JX(a,i,r,s):null,pos:o}}}class jr{constructor(t,n,r,a){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=a}static create(t,n,r,a){return new jr(t,n,r,a)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:a=0,filterTo:i=this.length}=t,o=t.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(bz)),this.isEmpty)return n.length?jr.of(n):this;let s=new sRe(this,null,-1).goto(0),l=0,c=[],u=new _f;for(;s.value||l=0){let d=n[l++];u.addInner(d.from,d.to,d.value)||c.push(d)}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||is.to||i=i&&t<=i+o.length&&o.between(i,t-i,n-i,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return N_.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return N_.from(t).goto(n)}static compare(t,n,r,a,i=-1){let o=t.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=i),s=n.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=i),l=Ose(o,s,r),c=new ty(o,l,i),u=new ty(s,l,i);r.iterGaps((d,f,m)=>bse(c,d,u,f,m,a)),r.empty&&r.length==0&&bse(c,0,u,0,0,a)}static eq(t,n,r=0,a){a==null&&(a=999999999);let i=t.filter(u=>!u.isEmpty&&n.indexOf(u)<0),o=n.filter(u=>!u.isEmpty&&t.indexOf(u)<0);if(i.length!=o.length)return!1;if(!i.length)return!0;let s=Ose(i,o),l=new ty(i,s,0).goto(r),c=new ty(o,s,0).goto(r);for(;;){if(l.to!=c.to||!vz(l.active,c.active)||l.point&&(!c.point||!KX(l.point,c.point)))return!1;if(l.to>a)return!0;l.next(),c.next()}}static spans(t,n,r,a,i=-1){let o=new ty(t,null,i).goto(n),s=n,l=o.openStart;for(;;){let c=Math.min(o.to,r);if(o.point){let u=o.activeForPoint(o.to),d=o.pointFroms&&(a.span(s,c,o.active,l),l=o.openEnd(c));if(o.to>r)return l+(o.point&&o.to>r?1:0);s=o.to,o.next()}}static of(t,n=!1){let r=new _f;for(let a of t instanceof A_?[t]:n?kEt(t):t)r.add(a.from,a.to,a.value);return r.finish()}static join(t){if(!t.length)return jr.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let a=t[r];a!=jr.empty;a=a.nextLayer)n=new jr(a.chunkPos,a.chunk,n,Math.max(a.maxPoint,n.maxPoint));return n}}jr.empty=new jr([],[],null,-1);function kEt(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(bz);t=r}return e}jr.empty.nextLayer=jr.empty;class _f{finishChunk(t){this.chunks.push(new JX(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new _f)).add(t,n,r)}addInner(t,n,r){let a=t-this.lastTo||r.startSide-this.last.endSide;if(a<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return a<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}addChunk(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}finish(){return this.finishInner(jr.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=jr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function Ose(e,t,n){let r=new Map;for(let i of e)for(let o=0;o=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&a.push(new sRe(o,n,r,i));return a.length==1?a[0]:new N_(a)}get startSide(){return this.value?this.value.startSide:0}goto(t,n=-1e9){for(let r of this.heap)r.goto(t,n);for(let r=this.heap.length>>1;r>=0;r--)F5(this.heap,r);return this.next(),this}forward(t,n){for(let r of this.heap)r.forward(t,n);for(let r=this.heap.length>>1;r>=0;r--)F5(this.heap,r);(this.to-t||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),F5(this.heap,0)}}}function F5(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let a=e[r];if(r+1=0&&(a=e[r+1],r++),n.compare(a)<0)break;e[r]=n,e[t]=a,t=r}}class ty{constructor(t,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=N_.from(t,n,r)}goto(t,n=-1e9){return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}forward(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}removeActive(t){Pw(this.active,t),Pw(this.activeTo,t),Pw(this.activeRank,t),this.minActive=vse(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:a,rank:i}=this.cursor;for(;n0;)n++;kw(this.active,n,r),kw(this.activeTo,n,a),kw(this.activeRank,n,i),t&&kw(t,n,this.cursor.from),this.minActive=vse(this.active,this.activeTo)}next(){let t=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let a=this.minActive;if(a>-1&&(this.activeTo[a]-this.cursor.from||this.active[a].endSide-this.cursor.startSide)<0){if(this.activeTo[a]>t){this.to=this.activeTo[a],this.endSide=this.active[a].endSide;break}this.removeActive(a),r&&Pw(r,a)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&r[a]=0&&!(this.activeRank[r]t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function bse(e,t,n,r,a,i){e.goto(t),n.goto(r);let o=r+a,s=r,l=r-t,c=!!i.boundChange;for(let u=!1;;){let d=e.to+l-n.to,f=d||e.endSide-n.endSide,m=f<0?e.to+l:n.to,h=Math.min(m,o);if(e.point||n.point?(e.point&&n.point&&KX(e.point,n.point)&&vz(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,h,e.point,n.point),u=!1):(u&&i.boundChange(s),h>s&&!vz(e.active,n.active)&&i.compareRange(s,h,e.active,n.active),c&&ho)break;s=m,f<=0&&e.next(),f>=0&&n.next()}}function vz(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;r--)e[r+1]=e[r];e[t]=n}function vse(e,t){let n=-1,r=1e9;for(let a=0;a=t)return a;if(a==e.length)break;i+=e.charCodeAt(a)==9?n-i%n:1,a=_o(e,a)}return r===!0?-1:e.length}const Sz="ͼ",yse=typeof Symbol>"u"?"__"+Sz:Symbol.for(Sz),_z=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Sse=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Wp{constructor(t,n){this.rules=[];let{finish:r}=n||{};function a(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function i(o,s,l,c){let u=[],d=/^@(\w+)\b/.exec(o[0]),f=d&&d[1]=="keyframes";if(d&&s==null)return l.push(o[0]+";");for(let m in s){let h=s[m];if(/&/.test(m))i(m.split(/,\s*/).map(g=>o.map(O=>g.replace(/&/,O))).reduce((g,O)=>g.concat(O)),h,l);else if(h&&typeof h=="object"){if(!d)throw new RangeError("The value of a property ("+m+") should be a primitive value.");i(a(m),h,u,f)}else h!=null&&u.push(m.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+h+";")}(u.length||f)&&l.push((r&&!d&&!c?o.map(r):o).join(", ")+" {"+u.join(" ")+"}")}for(let o in t)i(a(o),t[o],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=Sse[yse]||1;return Sse[yse]=t+1,Sz+t.toString(36)}static mount(t,n,r){let a=t[_z],i=r&&r.nonce;a?i&&a.setNonce(i):a=new AEt(t,i),a.mount(Array.isArray(n)?n:[n],t)}}let _se=new Map;class AEt{constructor(t,n){let r=t.ownerDocument||t,a=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&a.CSSStyleSheet){let i=_se.get(r);if(i)return t[_z]=i;this.sheet=new a.CSSStyleSheet,_se.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],t[_z]=this}mount(t,n){let r=this.sheet,a=0,i=0;for(let o=0;o-1&&(this.modules.splice(l,1),i--,l=-1),l==-1){if(this.modules.splice(i++,0,s),r)for(let c=0;c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},NEt=typeof navigator<"u"&&/Mac/.test(navigator.platform),IEt=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Bo=0;Bo<10;Bo++)Gp[48+Bo]=Gp[96+Bo]=String(Bo);for(var Bo=1;Bo<=24;Bo++)Gp[Bo+111]="F"+Bo;for(var Bo=65;Bo<=90;Bo++)Gp[Bo]=String.fromCharCode(Bo+32),I_[Bo]=String.fromCharCode(Bo);for(var U5 in Gp)I_.hasOwnProperty(U5)||(I_[U5]=Gp[U5]);function MEt(e){var t=NEt&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||IEt&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?I_:Gp)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function Na(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var a=n[r];typeof a=="string"?e.setAttribute(r,a):a!=null&&(e[r]=a)}t++}for(;t2);var xn={mac:xse||/Mac/.test(Ts.platform),windows:/Win/.test(Ts.platform),linux:/Linux|X11/.test(Ts.platform),ie:lA,ie_version:cRe?Ez.documentMode||6:Tz?+Tz[1]:xz?+xz[1]:0,gecko:Ese,gecko_version:Ese?+(/Firefox\/(\d+)/.exec(Ts.userAgent)||[0,0])[1]:0,chrome:!!j5,chrome_version:j5?+j5[1]:0,ios:xse,android:/Android\b/.test(Ts.userAgent),webkit_version:DEt?+(/\bAppleWebKit\/(\d+)/.exec(Ts.userAgent)||[0,0])[1]:0,safari:wz,safari_version:wz?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Ts.userAgent)||[0,0])[1]:0,tabSize:Ez.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function eY(e,t){for(let n in e)n=="class"&&t.class?t.class+=" "+e.class:n=="style"&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const nR=Object.create(null);function tY(e,t,n){if(e==t)return!0;e||(e=nR),t||(t=nR);let r=Object.keys(e),a=Object.keys(t);if(r.length-0!=a.length-0)return!1;for(let i of r)if(i!=n&&(a.indexOf(i)==-1||e[i]!==t[i]))return!1;return!0}function LEt(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;t[r]==null&&e.removeAttribute(r)}for(let n in t){let r=t[n];n=="style"?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}function Tse(e,t,n){let r=!1;if(t)for(let a in t)n&&a in n||(r=!0,a=="style"?e.style.cssText="":e.removeAttribute(a));if(n)for(let a in n)t&&t[a]==n[a]||(r=!0,a=="style"?e.style.cssText=n[a]:e.setAttribute(a,n[a]));return r}function QEt(e){let t=Object.create(null);for(let n=0;n0?3e8:-4e8:n>0?1e8:-1e8,new Wh(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,a;if(t.isBlockGap)r=-5e8,a=4e8;else{let{start:i,end:o}=uRe(t,n);r=(i?n?-3e8:-1:5e8)-1,a=(o?n?2e8:1:-6e8)+1}return new Wh(t,r,a,n,t.widget||null,!0)}static line(t){return new ux(t)}static set(t,n=!1){return jr.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Zn.none=jr.empty;class cx extends Zn{constructor(t){let{start:n,end:r}=uRe(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.attrs=t.class&&t.attributes?eY(t.attributes,{class:t.class}):t.class?{class:t.class}:t.attributes||nR}eq(t){return this==t||t instanceof cx&&this.tagName==t.tagName&&tY(this.attrs,t.attrs)}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}cx.prototype.point=!1;class ux extends Zn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof ux&&this.spec.class==t.spec.class&&tY(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}ux.prototype.mapMode=Fo.TrackBefore;ux.prototype.point=!0;class Wh extends Zn{constructor(t,n,r,a,i,o){super(n,r,i,t),this.block=a,this.isReplace=o,this.mapMode=a?n<=0?Fo.TrackBefore:Fo.TrackAfter:Fo.TrackDel}get type(){return this.startSide!=this.endSide?Uo.WidgetRange:this.startSide<=0?Uo.WidgetBefore:Uo.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof Wh&&zEt(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}Wh.prototype.point=!0;function uRe(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function zEt(e,t){return e==t||!!(e&&t&&e.compare(t))}function O0(e,t,n,r=0){let a=n.length-1;a>=0&&n[a]+r>=e?n[a]=Math.max(n[a],t):n.push(e,t)}class M_ extends qp{constructor(t,n){super(),this.tagName=t,this.attributes=n}eq(t){return t==this||t instanceof M_&&this.tagName==t.tagName&&tY(this.attributes,t.attributes)}static create(t){return new M_(t.tagName,t.attributes||nR)}static set(t,n=!1){return jr.of(t,n)}}M_.prototype.startSide=M_.prototype.endSide=-1;function D_(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function Cz(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function kS(e,t){if(!t.anchorNode)return!1;try{return Cz(e,t.anchorNode)}catch{return!1}}function AS(e){return e.nodeType==3?Q_(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function NS(e,t,n,r){return n?wse(e,t,n,r,-1)||wse(e,t,n,r,1):!1}function Hp(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function rR(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function wse(e,t,n,r,a){for(;;){if(e==n&&t==r)return!0;if(t==(a<0?0:Ef(e))){if(e.nodeName=="DIV")return!1;let i=e.parentNode;if(!i||i.nodeType!=1)return!1;t=Hp(e)+(a<0?0:1),e=i}else if(e.nodeType==1){if(e=e.childNodes[t+(a<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=a<0?Ef(e):0}else return!1}}function Ef(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function L_(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function BEt(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function dRe(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function FEt(e,t,n,r,a,i,o,s){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,d=!1;u&&!d;)if(u.nodeType==1){let f,m=u==l.body,h=1,g=1;if(m)f=BEt(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let y=u.getBoundingClientRect();({scaleX:h,scaleY:g}=dRe(u,y)),f={left:y.left,right:y.left+u.clientWidth*h,top:y.top,bottom:y.top+u.clientHeight*g}}let O=0,v=0;if(a=="nearest")t.top0&&t.bottom>f.bottom+v&&(v=t.bottom-f.bottom+o)):t.bottom>f.bottom&&(v=t.bottom-f.bottom+o,n<0&&t.top-v0&&t.right>f.right+O&&(O=t.right-f.right+i)):t.right>f.right&&(O=t.right-f.right+i,n<0&&t.leftf.bottom||t.leftf.right)&&(t={left:Math.max(t.left,f.left),right:Math.min(t.right,f.right),top:Math.max(t.top,f.top),bottom:Math.min(t.bottom,f.bottom)}),u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function fRe(e,t=!0){let n=e.ownerDocument,r=null,a=null;for(let i=e.parentNode;i&&!(i==n.body||(!t||r)&&a);)if(i.nodeType==1)!a&&i.scrollHeight>i.clientHeight&&(a=i),t&&!r&&i.scrollWidth>i.clientWidth&&(r=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:r,y:a}}class UEt{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?Ef(n):0),r,Math.min(t.focusOffset,r?Ef(r):0))}set(t,n,r,a){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=a}}let Hm=null;xn.safari&&xn.safari_version>=26&&(Hm=!1);function pRe(e){if(e.setActive)return e.setActive();if(Hm)return e.focus(Hm);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Hm==null?{get preventScroll(){return Hm={preventScroll:!0},!0}}:void 0),!Hm){Hm=!1;for(let n=0;nMath.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function hRe(e,t){for(let n=e,r=t;;){if(n.nodeType==3&&r>0)return{node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=Ef(n)}else if(n.parentNode&&!rR(n))r=Hp(n),n=n.parentNode;else return null}}function gRe(e,t){for(let n=e,r=t;;){if(n.nodeType==3&&r=n){if(s.level==r)return o;(i<0||(a!=0?a<0?s.fromn:t[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function vRe(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;g-=3)if(Nu[g+1]==-m){let O=Nu[g+2],v=O&2?a:O&4?O&1?i:a:0;v&&(Qa[d]=Qa[Nu[g]]=v),s=g;break}}else{if(Nu.length==189)break;Nu[s++]=d,Nu[s++]=f,Nu[s++]=l}else if((h=Qa[d])==2||h==1){let g=h==a;l=g?0:1;for(let O=s-3;O>=0;O-=3){let v=Nu[O+2];if(v&2)break;if(g)Nu[O+2]|=2;else{if(v&4)break;Nu[O+2]|=4}}}}}function HEt(e,t,n,r){for(let a=0,i=r;a<=n.length;a++){let o=a?n[a-1].to:e,s=al;)h==O&&(h=n[--g].from,O=g?n[g-1].to:e),Qa[--h]=m;l=u}else i=c,l++}}}function Rz(e,t,n,r,a,i,o){let s=r%2?2:1;if(r%2==a%2)for(let l=t,c=0;ll&&o.push(new Ku(l,g.from,m));let O=g.direction==Gh!=!(m%2);Pz(e,O?r+1:r,a,g.inner,g.from,g.to,o),l=g.to}h=g.to}else{if(h==n||(u?Qa[h]!=s:Qa[h]==s))break;h++}f?Rz(e,l,h,r+1,a,f,o):lt;){let u=!0,d=!1;if(!c||l>i[c-1].to){let g=Qa[l-1];g!=s&&(u=!1,d=g==16)}let f=!u&&s==1?[]:null,m=u?r:r+1,h=l;e:for(;;)if(c&&h==i[c-1].to){if(d)break e;let g=i[--c];if(!u)for(let O=g.from,v=c;;){if(O==t)break e;if(v&&i[v-1].to==O)O=i[--v].from;else{if(Qa[O-1]==s)break e;break}}if(f)f.push(g);else{g.toQa.length;)Qa[Qa.length]=256;let r=[],a=t==Gh?0:1;return Pz(e,a,a,n,0,e.length,r),r}function yRe(e){return[new Ku(0,e,0)]}let SRe="";function KEt(e,t,n,r,a){var i;let o=r.head-e.from,s=Ku.find(t,o,(i=r.bidiLevel)!==null&&i!==void 0?i:-1,r.assoc),l=t[s],c=l.side(a,n);if(o==c){let f=s+=a?1:-1;if(f<0||f>=t.length)return null;l=t[s=f],o=l.side(!a,n),c=l.side(a,n)}let u=_o(e.text,o,l.forward(a,n));(ul.to)&&(u=c),SRe=e.text.slice(Math.min(o,u),Math.max(o,u));let d=s==(a?t.length-1:0)?null:t[s+(a?1:-1)];return d&&u==c&&d.level+(a?0:1)e.some(t=>t)}),RRe=vn.define({combine:e=>e.some(t=>t)}),PRe=vn.define();class v0{constructor(t,n="nearest",r="nearest",a=5,i=5,o=!1){this.range=t,this.y=n,this.x=r,this.yMargin=a,this.xMargin=i,this.isSnapshot=o}map(t){return t.empty?this:new v0(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new v0(_t.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Aw=_r.define({map:(e,t)=>e.map(t)}),kRe=_r.define();function Ps(e,t,n){let r=e.facet(TRe);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)||(n?console.error(n+":",t):console.error(t))}const sf=vn.define({combine:e=>e.length?e[0]:!0});let ext=0;const JO=vn.define({combine(e){return e.filter((t,n)=>{for(let r=0;r{let l=[];return o&&l.push(cA.of(c=>{let u=c.plugin(s);return u?o(u):Zn.none})),i&&l.push(i(s)),l})}static fromClass(t,n){return vi.define((r,a)=>new t(r,a),n)}}class X5{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(t){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(Ps(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(t,this.spec.arg)}catch(n){Ps(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){Ps(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const ARe=vn.define(),iY=vn.define(),cA=vn.define(),NRe=vn.define(),oY=vn.define(),dx=vn.define(),IRe=vn.define();function $se(e,t){let n=e.state.facet(IRe);if(!n.length)return n;let r=n.map(i=>i instanceof Function?i(e):i),a=[];return jr.spans(r,t.from,t.to,{point(){},span(i,o,s,l){let c=i-t.from,u=o-t.from,d=a;for(let f=s.length-1;f>=0;f--,l--){let m=s[f].spec.bidiIsolate,h;if(m==null&&(m=JEt(t.text,c,u)),l>0&&d.length&&(h=d[d.length-1]).to==c&&h.direction==m)h.to=u,d=h.inner;else{let g={from:c,to:u,direction:m,inner:[]};d.push(g),d=g.inner}}}}),a}const MRe=vn.define();function sY(e){let t=0,n=0,r=0,a=0;for(let i of e.state.facet(MRe)){let o=i(e);o&&(o.left!=null&&(t=Math.max(t,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(a=Math.max(a,o.bottom)))}return{left:t,right:n,top:r,bottom:a}}const Ky=vn.define();class yc{constructor(t,n,r,a){this.fromA=t,this.toA=n,this.fromB=r,this.toB=a}join(t){return new yc(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let a=t[n-1];if(!(a.fromA>r.toA)){if(a.toAa.push(new yc(i,o,s,l))),this.changedRanges=a}static create(t,n,r){return new aR(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const txt=[];class wi{constructor(t,n,r=0){this.dom=t,this.length=n,this.flags=r,this.parent=null,t.cmTile=this}get breakAfter(){return this.flags&1}get children(){return txt}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(t){if(this.flags|=2,this.flags&4){this.flags&=-5;let n=this.domAttrs;n&&LEt(this.dom,n)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(t){this.dom=t,t.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t,n=this.posAtStart){let r=n;for(let a of this.children){if(a==t)return r;r+=a.length+a.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}covers(t){return!0}coordsIn(t,n){return null}domPosFor(t,n){let r=Hp(this.dom),a=this.length?t>0:n>0;return new ou(this.parent.dom,r+(a?1:0),t==0||t==this.length)}markDirty(t){this.flags&=-3,t&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let t=this;t;t=t.parent)if(t instanceof dA)return t;return null}static get(t){return t.cmTile}}class uA extends wi{constructor(t){super(t,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(t){this.children.push(t),t.parent=this}sync(t){if(this.flags&2)return;super.sync(t);let n=this.dom,r=null,a,i=(t==null?void 0:t.node)==n?t:null,o=0;for(let s of this.children){if(s.sync(t),o+=s.length+s.breakAfter,a=r?r.nextSibling:n.firstChild,i&&a!=s.dom&&(i.written=!0),s.dom.parentNode==n)for(;a&&a!=s.dom;)a=Rse(a);else n.insertBefore(s.dom,a);r=s.dom}for(a=r?r.nextSibling:n.firstChild,i&&a&&(i.written=!0);a;)a=Rse(a);this.length=o}}function Rse(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class dA extends uA{constructor(t,n){super(n),this.view=t}owns(t){for(;t;t=t.parent)if(t==this)return!0;return!1}isBlock(){return!0}nearest(t){for(;;){if(!t)return null;let n=wi.get(t);if(n&&this.owns(n))return n;t=t.parentNode}}blockTiles(t){for(let n=[],r=this,a=0,i=0;;)if(a==r.children.length){if(!n.length)return;r=r.parent,r.breakAfter&&i++,a=n.pop()}else{let o=r.children[a++];if(o instanceof hf)n.push(a),r=o,a=0;else{let s=i+o.length,l=t(o,i);if(l!==void 0)return l;i=s+o.breakAfter}}}resolveBlock(t,n){let r,a=-1,i,o=-1;if(this.blockTiles((s,l)=>{let c=l+s.length;if(t>=l&&t<=c){if(s.isWidget()&&n>=-1&&n<=1){if(s.flags&32)return!0;s.flags&16&&(r=void 0)}(lt||t==l&&(n>1?s.length:s.covers(-1)))&&(!i||!s.isWidget()&&i.isWidget())&&(i=s,o=t-l)}}),!r&&!i)throw new Error("No tile at position "+t);return r&&n<0||!i?{tile:r,offset:a}:{tile:i,offset:o}}}class hf extends uA{constructor(t,n){super(t),this.wrapper=n}isBlock(){return!0}covers(t){return this.children.length?t<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(t,n){let r=new hf(n||document.createElement(t.tagName),t);return n||(r.flags|=4),r}}class G0 extends uA{constructor(t,n){super(t),this.attrs=n}isLine(){return!0}static start(t,n,r){let a=new G0(n||document.createElement("div"),t);return(!n||!r)&&(a.flags|=4),a}get domAttrs(){return this.attrs}resolveInline(t,n,r){let a=null,i=-1,o=null,s=-1;function l(u,d){for(let f=0,m=0;f=d&&(h.isComposite()?l(h,d-m):(!o||o.isHidden&&(n>0||r&&rxt(o,h)))&&(g>d||h.flags&32)?(o=h,s=d-m):(mr&&(t=r);let a=t,i=t,o=0;t==0&&n<0||t==r&&n>=0?xn.chrome||xn.gecko||(t?(a--,o=1):i=0)?0:s.length-1];return xn.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(s,c=>c.width)||l),o?L_(l,o<0):l||null}static of(t,n){let r=new bh(n||document.createTextNode(t),t);return n||(r.flags|=2),r}}class Hh extends wi{constructor(t,n,r,a){super(t,n,a),this.widget=r}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(t){return this.flags&48?!1:(this.flags&(t<0?64:128))>0}coordsIn(t,n){return this.coordsInWidget(t,n,!1)}coordsInWidget(t,n,r){let a=this.widget.coordsAt(this.dom,t,n);if(a)return a;if(r)return L_(this.dom.getBoundingClientRect(),this.length?t==0:n<=0);{let i=this.dom.getClientRects(),o=null;if(!i.length)return null;let s=this.flags&16?!0:this.flags&32?!1:t>0;for(let l=s?i.length-1:0;o=i[l],!(t>0?l==0:l==i.length-1||o.top0;)if(a.isComposite())if(o){if(!t)break;r&&r.break(),t--,o=!1}else if(i==a.children.length){if(!t&&!s.length)break;r&&r.leave(a),o=!!a.breakAfter,{tile:a,index:i}=s.pop(),i++}else{let l=a.children[i],c=l.breakAfter;(n>0?l.length<=t:l.length=0;s--){let l=n.marks[s],c=a.lastChild;if(c instanceof tl&&c.mark.eq(l.mark))c.dom!=l.dom&&c.setDOM(Y5(l.dom)),a=c;else{if(this.cache.reused.get(l)){let d=wi.get(l.dom);d&&d.setDOM(Y5(l.dom))}let u=tl.of(l.mark,l.dom);a.append(u),a=u}this.cache.reused.set(l,2)}let i=wi.get(t.text);i&&this.cache.reused.set(i,2);let o=new bh(t.text,t.text.nodeValue);o.flags|=8,a.append(o)}addInlineWidget(t,n,r){let a=this.afterWidget&&t.flags&48&&(this.afterWidget.flags&48)==(t.flags&48);a||this.flushBuffer();let i=this.ensureMarks(n,r);!a&&!(t.flags&16)&&i.append(this.getBuffer(1)),i.append(t),this.pos+=t.length,this.afterWidget=t}addMark(t,n,r){this.flushBuffer(),this.ensureMarks(n,r).append(t),this.pos+=t.length,this.afterWidget=null}addBlockWidget(t){this.getBlockPos().append(t),this.pos+=t.length,this.lastBlock=t,this.endLine()}continueWidget(t){let n=this.afterWidget||this.lastBlock;n.length+=t,this.pos+=t}addLineStart(t,n){var r;t||(t=DRe);let a=G0.start(t,n||((r=this.cache.find(G0))===null||r===void 0?void 0:r.dom),!!n);this.getBlockPos().append(this.lastBlock=this.curLine=a)}addLine(t){this.getBlockPos().append(t),this.pos+=t.length,this.lastBlock=t,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(t){this.blockPosCovered()||this.addLineStart(t)}ensureLine(t){this.curLine||this.addLineStart(t)}ensureMarks(t,n){var r;let a=this.curLine;for(let i=t.length-1;i>=0;i--){let o=t[i],s;if(n>0&&(s=a.lastChild)&&s instanceof tl&&s.mark.eq(o))a=s,n--;else{let l=tl.of(o,(r=this.cache.find(tl,c=>c.mark.eq(o)))===null||r===void 0?void 0:r.dom);a.append(l),a=l,n=0}}return a}endLine(){if(this.curLine){this.flushBuffer();let t=this.curLine.lastChild;(!t||!Pse(this.curLine,!1)||t.dom.nodeName!="BR"&&t.isWidget()&&!(xn.ios&&Pse(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(V5,0,32)||new Hh(V5.toDOM(),0,V5,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let t=this.wrappers.length-1;t>=0;t--)this.wrappers[t].to=this.pos){let n=new ixt(t.from,t.to,t.value,t.rank),r=this.wrappers.length;for(;r>0&&(this.wrappers[r-1].rank-n.rank||this.wrappers[r-1].to-n.to)<0;)r--;this.wrappers.splice(r,0,n)}this.wrapperPos=this.pos}getBlockPos(){var t;this.updateBlockWrappers();let n=this.root;for(let r of this.wrappers){let a=n.lastChild;if(r.fromo.wrapper.eq(r.wrapper)))===null||t===void 0?void 0:t.dom);n.append(i),n=i}}return n}blockPosCovered(){let t=this.lastBlock;return t!=null&&!t.breakAfter&&(!t.isWidget()||(t.flags&160)>0)}getBuffer(t){let n=2|(t<0?16:32),r=this.cache.find(iR,void 0,1);return r&&(r.flags=n),r||new iR(n)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class sxt{constructor(t){this.skipCount=0,this.text="",this.textOff=0,this.cursor=t.iter()}skip(t){this.textOff+t<=this.text.length?this.textOff+=t:(this.skipCount+=t-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(t){if(this.textOff==this.text.length){let{value:a,lineBreak:i,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=a;let s=this.textOff=Math.min(t,a.length);return i?null:a.slice(0,s)}let n=Math.min(this.text.length,this.textOff+t),r=this.text.slice(this.textOff,n);return this.textOff=n,r}}const oR=[Hh,G0,bh,tl,iR,hf,dA];for(let e=0;e[]),this.index=oR.map(()=>0),this.reused=new Map}add(t){let n=t.constructor.bucket,r=this.buckets[n];r.length<6?r.push(t):r[this.index[n]=(this.index[n]+1)%6]=t}find(t,n,r=2){let a=t.bucket,i=this.buckets[a],o=this.index[a];for(let s=i.length-1;s>=0;s--){let l=(s+o)%i.length,c=i[l];if((!n||n(c))&&!this.reused.has(c))return i.splice(l,1),l{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(t,n){let r=n&&this.getCompositionContext(n.text);for(let a=0,i=0,o=0;;){let s=oa){let c=l-a;this.preserve(c,!o,!s),a=l,i+=c}if(!s)break;n&&s.fromA<=n.range.fromA&&s.toA>=n.range.toA?(this.forward(s.fromA,n.range.fromA,n.range.fromA{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(l-s);else{let c=l>0||s{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof tl&&a.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?a.length&&(a.length=i=0):o instanceof tl&&(a.shift(),i=Math.min(i,a.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(t)}emit(t,n){let r=null,a=this.builder,i=0,o=jr.spans(this.decorations,t,n,{point:(s,l,c,u,d,f)=>{if(c instanceof Wh){if(this.disallowBlockEffectsFor[f]){if(c.block)throw new RangeError("Block decorations may not be specified via plugins");if(l>this.view.state.doc.lineAt(s).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(i=u.length,d>u.length)a.continueWidget(l-s);else{let m=c.widget||(c.block?H0.block:H0.inline),h=uxt(c),g=this.cache.findWidget(m,l-s,h)||Hh.of(m,this.view,l-s,h);c.block?(c.startSide>0&&a.addLineStartIfNotCovered(r),a.addBlockWidget(g)):(a.ensureLine(r),a.addInlineWidget(g,u,d))}r=null}else r=dxt(r,c);l>s&&this.text.skip(l-s)},span:(s,l,c,u)=>{for(let d=s;di,this.openMarks=o}forward(t,n,r=1){n-t<=10?this.old.advance(n-t,r,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(n-t-10,-1),this.old.advance(5,r,this.reuseWalker))}getCompositionContext(t){let n=[],r=null;for(let a=t.parentNode;;a=a.parentNode){let i=wi.get(a);if(a==this.view.contentDOM)break;i instanceof tl?n.push(i):i!=null&&i.isLine()?r=i:i instanceof hf||(a.nodeName=="DIV"&&!r&&a!=this.view.contentDOM?r=new G0(a,DRe):r||n.push(tl.of(new cx({tagName:a.nodeName.toLowerCase(),attributes:QEt(a)}),a)))}return{line:r,marks:n}}}function Pse(e,t){let n=r=>{for(let a of r.children)if((t?a.isText():a.length)||n(a))return!0;return!1};return n(e)}function uxt(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;return e.block&&(t|=256),t}const DRe={class:"cm-line"};function dxt(e,t){let n=t.spec.attributes,r=t.spec.class;return!n&&!r||(e||(e={class:"cm-line"}),n&&eY(n,e),r&&(e.class+=" "+r)),e}function fxt(e){let t=[];for(let n=e.parents.length;n>1;n--){let r=n==e.parents.length?e.tile:e.parents[n].tile;r instanceof tl&&t.push(r.mark)}return t}function Y5(e){let t=wi.get(e);return t&&t.setDOM(e.cloneNode()),e}class H0 extends _u{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}H0.inline=new H0("span");H0.block=new H0("div");const V5=new class extends _u{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class kse{constructor(t){this.view=t,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=Zn.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new dA(t,t.contentDOM),this.updateInner([new yc(0,0,0,t.state.doc.length)],null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:d})=>dthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let a=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?a=this.domChanged.newSel.head:!Sxt(t.changes,this.hasComposition)&&!t.selectionSet&&(a=t.state.selection.main.head));let i=a>-1?mxt(this.view,t.changes,a):null;if(this.domChanged=null,this.hasComposition){let{from:u,to:d}=this.hasComposition;r=new yc(u,d,t.changes.mapPos(u,-1),t.changes.mapPos(d,1)).addToSet(r.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(xn.ie||xn.chrome)&&!i&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,s=this.blockWrappers;this.updateDeco();let l=Oxt(o,this.decorations,t.changes);l.length&&(r=yc.extendWithRanges(r,l));let c=vxt(s,this.blockWrappers,t.changes);return c.length&&(r=yc.extendWithRanges(r,c)),i&&!r.some(u=>u.fromA<=i.range.fromA&&u.toA>=i.range.toA)&&(r=i.range.addToSet(r.slice())),this.tile.flags&2&&r.length==0?!1:(this.updateInner(r,i),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n){this.view.viewState.mustMeasureContent=!0;let{observer:r}=this.view;r.ignore(()=>{if(n||t.length){let o=this.tile,s=new cxt(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);n&&wi.get(n.text)&&s.cache.reused.set(wi.get(n.text),2),this.tile=s.run(t,n),Az(o,s.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let i=xn.chrome||xn.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(i),i&&(i.written||r.selectionRange.focusNode!=i.node||!this.tile.dom.contains(i.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let a=[];if(this.view.viewport.from||this.view.viewport.to-1)&&kS(r,this.view.observer.selectionRange)&&!(a&&r.contains(a));if(!(i||n||o))return;let s=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,c,u;if(l.empty?u=c=this.inlineDOMNearPos(l.anchor,l.assoc||1):(u=this.inlineDOMNearPos(l.head,l.head==l.from?1:-1),c=this.inlineDOMNearPos(l.anchor,l.anchor==l.from?1:-1)),xn.gecko&&l.empty&&!this.hasComposition&&pxt(c)){let f=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(f,c.node.childNodes[c.offset]||null)),c=u=new ou(f,0),s=!0}let d=this.view.observer.selectionRange;(s||!d.focusNode||(!NS(c.node,c.offset,d.anchorNode,d.anchorOffset)||!NS(u.node,u.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,l))&&(this.view.observer.ignore(()=>{xn.android&&xn.chrome&&r.contains(d.focusNode)&&yxt(d.focusNode,r)&&(r.blur(),r.focus({preventScroll:!0}));let f=D_(this.view.root);if(f)if(l.empty){if(xn.gecko){let m=hxt(c.node,c.offset);if(m&&m!=3){let h=(m==1?hRe:gRe)(c.node,c.offset);h&&(c=new ou(h.node,h.offset))}}f.collapse(c.node,c.offset),l.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=l.bidiLevel)}else if(f.extend){f.collapse(c.node,c.offset);try{f.extend(u.node,u.offset)}catch{}}else{let m=document.createRange();l.anchor>l.head&&([c,u]=[u,c]),m.setEnd(u.node,u.offset),m.setStart(c.node,c.offset),f.removeAllRanges(),f.addRange(m)}o&&this.view.root.activeElement==r&&(r.blur(),a&&a.focus())}),this.view.observer.setSelectionRange(c,u)),this.impreciseAnchor=c.precise?null:new ou(d.anchorNode,d.anchorOffset),this.impreciseHead=u.precise?null:new ou(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&NS(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=D_(t.root),{anchorNode:a,anchorOffset:i}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let o=this.lineAt(n.head,n.assoc);if(!o)return;let s=o.posAtStart;if(n.head==s||n.head==s+o.length)return;let l=this.coordsAt(n.head,-1),c=this.coordsAt(n.head,1);if(!l||!c||l.bottom>c.top)return;let u=this.domAtPos(n.head+n.assoc,n.assoc);r.collapse(u.node,u.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=n.from&&r.collapse(a,i)}posFromDOM(t,n){let r=this.tile.nearest(t);if(!r)return this.tile.dom.compareDocumentPosition(t)&2?0:this.view.state.doc.length;let a=r.posAtStart;if(r.isComposite()){let i;if(t==r.dom)i=r.dom.childNodes[n];else{let o=Ef(t)==0?0:n==0?-1:1;for(;;){let s=t.parentNode;if(s==r.dom)break;o==0&&s.firstChild!=s.lastChild&&(t==s.firstChild?o=-1:o=1),t=s}o<0?i=t:i=t.nextSibling}if(i==r.dom.firstChild)return a;for(;i&&!wi.get(i);)i=i.nextSibling;if(!i)return a+r.length;for(let o=0,s=a;;o++){let l=r.children[o];if(l.dom==i)return s;s+=l.length+l.breakAfter}}else return r.isText()?t==r.dom?a+n:a+(n?r.length:0):a}domAtPos(t,n){let{tile:r,offset:a}=this.tile.resolveBlock(t,n);return r.isWidget()?r.domPosFor(t,n):r.domIn(a,n)}inlineDOMNearPos(t,n){let r,a=-1,i=!1,o,s=-1,l=!1;return this.tile.blockTiles((c,u)=>{if(c.isWidget()){if(c.flags&32&&u>=t)return!0;c.flags&16&&(i=!0)}else{let d=u+c.length;if(u<=t&&(r=c,a=t-u,i=d=t&&!o&&(o=c,s=t-u,l=u>t),u>t&&o)return!0}}),!r&&!o?this.domAtPos(t,n):(i&&o?r=null:l&&r&&(o=null),r&&n<0||!o?r.domIn(a,n):o.domIn(s,n))}coordsAt(t,n){let{tile:r,offset:a}=this.tile.resolveBlock(t,n);return r.isWidget()?r.widget instanceof q5?null:r.coordsInWidget(a,n,!0):r.coordsIn(a,n)}lineAt(t,n){let{tile:r}=this.tile.resolveBlock(t,n);return r.isLine()?r:null}coordsForChar(t){let{tile:n,offset:r}=this.tile.resolveBlock(t,1);if(!n.isLine())return null;function a(i,o){if(i.isComposite())for(let s of i.children){if(s.length>=o){let l=a(s,o);if(l)return l}if(o-=s.length,o<0)break}else if(i.isText()&&oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==za.LTR,c=0,u=(d,f,m)=>{for(let h=0;ha);h++){let g=d.children[h],O=f+g.length,v=g.dom.getBoundingClientRect(),{height:y}=v;if(m&&!h&&(c+=v.top-m.top),g instanceof hf)O>r&&u(g,f,v);else if(f>=r&&(c>0&&n.push(-c),n.push(y+c),c=0,o)){let S=g.dom.lastChild,C=S?AS(S):[];if(C.length){let _=C[C.length-1],w=l?_.right-v.left:v.right-_.left;w>s&&(s=w,this.minWidth=i,this.minWidthFrom=f,this.minWidthTo=O)}}m&&h==d.children.length-1&&(c+=m.bottom-v.bottom),f=O+g.breakAfter}};return u(this.tile,0,null),n}textDirectionAt(t){let{tile:n}=this.tile.resolveBlock(t,1);return getComputedStyle(n.dom).direction=="rtl"?za.RTL:za.LTR}measureTextSize(){let t=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let s=0,l;for(let c of o.children){if(!c.isText()||/[^ -~]/.test(c.text))return;let u=AS(c.dom);if(u.length!=1)return;s+=u[0].width,l=u[0].height}if(s)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:s/o.length,textHeight:l}}});if(t)return t;let n=document.createElement("div"),r,a,i;return n.className="cm-line",n.style.width="99999px",n.style.position="absolute",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(n);let o=AS(n.firstChild)[0];r=n.getBoundingClientRect().height,a=o&&o.width?o.width/27:7,i=o&&o.height?o.height:r,n.remove()}),{lineHeight:r,charWidth:a,textHeight:i}}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,a=0;;a++){let i=a==n.viewports.length?null:n.viewports[a],o=i?i.from-1:this.view.state.doc.length;if(o>r){let s=(n.lineBlockAt(o).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(Zn.replace({widget:new q5(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,o))}if(!i)break;r=i.to+1}return Zn.set(t)}updateDeco(){let t=1,n=this.view.state.facet(cA).map(i=>(this.dynamicDecorationMap[t++]=typeof i=="function")?i(this.view):i),r=!1,a=this.view.state.facet(oY).map((i,o)=>{let s=typeof i=="function";return s&&(r=!0),s?i(this.view):i});for(a.length&&(this.dynamicDecorationMap[t++]=r,n.push(jr.join(a))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];ttypeof i=="function"?i(this.view):i)}scrollIntoView(t){if(t.isSnapshot){let c=this.view.viewState.lineBlockAt(t.range.head);this.view.scrollDOM.scrollTop=c.top-t.yMargin,this.view.scrollDOM.scrollLeft=t.xMargin;return}for(let c of this.view.state.facet(PRe))try{if(c(this.view,t.range,t))return!0}catch(u){Ps(this.view.state,u,"scroll handler")}let{range:n}=t,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),a;if(!r)return;!n.empty&&(a=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,a.left),top:Math.min(r.top,a.top),right:Math.max(r.right,a.right),bottom:Math.max(r.bottom,a.bottom)});let i=sY(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;if(FEt(this.view.scrollDOM,o,n.head1&&(r.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||r.bottomr.isWidget()||r.children.some(n);return n(this.tile.resolveBlock(t,1).tile)}destroy(){Az(this.tile)}}function Az(e,t){let n=t==null?void 0:t.get(e);if(n!=1){n==null&&e.destroy();for(let r of e.children)Az(r,t)}}function pxt(e){return e.node.nodeType==1&&e.node.firstChild&&(e.offset==0||e.node.childNodes[e.offset-1].contentEditable=="false")&&(e.offset==e.node.childNodes.length||e.node.childNodes[e.offset].contentEditable=="false")}function LRe(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=hRe(n.focusNode,n.focusOffset),a=gRe(n.focusNode,n.focusOffset),i=r||a;if(a&&r&&a.node!=r.node){let s=wi.get(a.node);if(!s||s.isText()&&s.text!=a.node.nodeValue)i=a;else if(e.docView.lastCompositionAfterCursor){let l=wi.get(r.node);!l||l.isText()&&l.text!=r.node.nodeValue||(i=a)}}if(e.docView.lastCompositionAfterCursor=i!=r,!i)return null;let o=t-i.offset;return{from:o,to:o+i.node.nodeValue.length,node:i.node}}function mxt(e,t,n){let r=LRe(e,n);if(!r)return null;let{node:a,from:i,to:o}=r,s=a.nodeValue;if(/[\n\r]/.test(s)||e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc;return{range:new yc(l.mapPos(i),l.mapPos(o),i,o),text:a}}function hxt(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}class q5 extends _u{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function _xt(e,t,n=1){let r=e.charCategorizer(t),a=e.doc.lineAt(t),i=t-a.from;if(a.length==0)return _t.cursor(t);i==0?n=1:i==a.length&&(n=-1);let o=i,s=i;n<0?o=_o(a.text,i,!1):s=_o(a.text,i);let l=r(a.text.slice(o,s));for(;o>0;){let c=_o(a.text,o,!1);if(r(a.text.slice(c,o))!=l)break;o=c}for(;se.defaultLineHeight*1.5){let s=e.viewState.heightOracle.textHeight,l=Math.floor((a-n.top-(e.defaultLineHeight-s)*.5)/s);i+=l*e.viewState.heightOracle.lineLength}let o=e.state.sliceDoc(n.from,n.to);return n.from+yz(o,i,e.state.tabSize)}function Nz(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let a;for(let i of r.type){if(i.from>t)break;if(!(i.tot)return i;(!a||i.type==Uo.Text&&(a.type!=i.type||(n<0?i.fromt)))&&(a=i)}}return a||r}return r}function xxt(e,t,n,r){let a=Nz(e,t.head,t.assoc||-1),i=!r||a.type!=Uo.Text||!(e.lineWrapping||a.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>a.from?t.head-1:t.head);if(i){let o=e.dom.getBoundingClientRect(),s=e.textDirectionAt(a.from),l=e.posAtCoords({x:n==(s==za.LTR)?o.right-1:o.left+1,y:(i.top+i.bottom)/2});if(l!=null)return _t.cursor(l,n?-1:1)}return _t.cursor(n?a.to:a.from,n?-1:1)}function Ase(e,t,n,r){let a=e.state.doc.lineAt(t.head),i=e.bidiSpans(a),o=e.textDirectionAt(a.from);for(let s=t,l=null;;){let c=KEt(a,i,o,s,n),u=SRe;if(!c){if(a.number==(n?e.state.doc.lines:1))return s;u=` -`,a=e.state.doc.line(a.number+(n?1:-1)),i=e.bidiSpans(a),c=e.visualLineSide(a,!n)}if(l){if(!l(u))return s}else{if(!r)return c;l=r(u)}s=c}}function Txt(e,t,n){let r=e.state.charCategorizer(t),a=r(n);return i=>{let o=r(i);return a==si.Space&&(a=o),a==o}}function wxt(e,t,n,r){let a=t.head,i=n?1:-1;if(a==(n?e.state.doc.length:0))return _t.cursor(a,t.assoc);let o=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(a,(t.empty?t.assoc:0)||(n?1:-1)),u=e.documentTop;if(c)o==null&&(o=c.left-l.left),s=i<0?c.top:c.bottom;else{let h=e.viewState.lineBlockAt(a);o==null&&(o=Math.min(l.right-l.left,e.defaultCharacterWidth*(a-h.from))),s=(i<0?h.top:h.bottom)+u}let d=l.left+o,f=r??e.viewState.heightOracle.textHeight>>1,m=Iz(e,{x:d,y:s+f*i},!1,i);return _t.cursor(m.pos,m.assoc,void 0,o)}function IS(e,t,n){for(;;){let r=0;for(let a of e)a.between(t-1,t+1,(i,o,s)=>{if(t>i&&ta(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:_t.cursor(r,re.viewState.docHeight)return new Gu(e.state.doc.length,-1);if(c=e.elementAtHeight(l),r==null)break;if(c.type==Uo.Text){if(r<0?c.toe.viewport.to)break;let f=e.docView.coordsAt(r<0?c.from:c.to,r>0?-1:1);if(f&&(r<0?f.top<=l+i:f.bottom>=l+i))break}let d=e.viewState.heightOracle.textHeight/2;l=r>0?c.bottom+d:c.top-d}if(e.viewport.from>=c.to||e.viewport.to<=c.from){if(n)return null;if(c.type==Uo.Text){let d=Ext(e,a,c,o,s);return new Gu(d,d==c.from?1:-1)}}if(c.type!=Uo.Text)return l<(c.top+c.bottom)/2?new Gu(c.from,1):new Gu(c.to,-1);let u=e.docView.lineAt(c.from,2);return(!u||u.length!=c.length)&&(u=e.docView.lineAt(c.from,-2)),new Cxt(e,o,s,e.textDirectionAt(c.from)).scanTile(u,c.from)}class Cxt{constructor(t,n,r,a){this.view=t,this.x=n,this.y=r,this.baseDir=a,this.line=null,this.spans=null}bidiSpansAt(t){return(!this.line||this.line.from>t||this.line.to1||r.length&&(r[0].level!=this.baseDir||r[0].to+a.from>1;t:if(i.has(h)){let O=r+Math.floor(Math.random()*m);for(let v=0;vthis.y)(!l||l.top>v.top)&&(l=v),y=-1;else{let S=v.left>this.x?this.x-v.left:v.right(d.left+d.right)/2==f}}scanText(t,n){let r=[];for(let i=0;i{let o=r[i]-n,s=r[i+1]-n;return Q_(t.dom,o,s).getClientRects()});return a.after?new Gu(r[a.i+1],-1):new Gu(r[a.i],1)}scanTile(t,n){if(!t.length)return new Gu(n,1);if(t.children.length==1){let s=t.children[0];if(s.isText())return this.scanText(s,n);if(s.isComposite())return this.scanTile(s,n)}let r=[n];for(let s=0,l=n;s{let l=t.children[s];return l.flags&48?null:(l.dom.nodeType==1?l.dom:Q_(l.dom,0,l.length)).getClientRects()}),i=t.children[a.i],o=r[a.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):a.after?new Gu(r[a.i+1],-1):new Gu(o,1)}}const QO="￿";class $xt{constructor(t,n){this.points=t,this.view=n,this.text="",this.lineSeparator=n.state.facet(Jr.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=QO}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let a=t;;){this.findPointBefore(r,a);let i=this.text.length;this.readNode(a);let o=wi.get(a),s=a.nextSibling;if(s==n){o!=null&&o.breakAfter&&!s&&r!=this.view.contentDOM&&this.lineBreak();break}let l=wi.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:rR(a))||rR(s)&&(a.nodeName!="BR"||o!=null&&o.isWidget())&&this.text.length>i)&&!Pxt(s,n)&&this.lineBreak(),a=s}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,a=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,o=1,s;if(this.lineSeparator?(i=n.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(s=a.exec(n))&&(i=s.index,o=s[0].length),this.append(n.slice(r,i<0?n.length:i)),i<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=o-1);r=i+o}}readNode(t){let n=wi.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let a=r.iter();!a.next().done;)a.lineBreak?this.lineBreak():this.append(a.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(Rxt(t,r.node,r.offset)?n:0))}}function Rxt(e,t,n){for(;;){if(!t||n-1;let{impreciseHead:i,impreciseAnchor:o}=t.docView;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=zRe(t.docView.tile,n,r,0))){let s=i||o?[]:Nxt(t),l=new $xt(s,t);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=Ixt(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=i&&i.node==s.focusNode&&i.offset==s.focusOffset||!Cz(t.contentDOM,s.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(s.focusNode,s.focusOffset),c=o&&o.node==s.anchorNode&&o.offset==s.anchorOffset||!Cz(t.contentDOM,s.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(s.anchorNode,s.anchorOffset),u=t.viewport;if((xn.ios||xn.chrome)&&t.state.selection.main.empty&&l!=c&&(u.from>0||u.to-1&&t.state.selection.ranges.length>1?this.newSel=t.state.selection.replaceRange(_t.range(c,l)):this.newSel=_t.single(c,l)}}}function zRe(e,t,n,r){if(e.isComposite()){let a=-1,i=-1,o=-1,s=-1;for(let l=0,c=r,u=r;ln)return zRe(d,t,n,c);if(f>=t&&a==-1&&(a=l,i=c),c>n&&d.dom.parentNode==e.dom){o=l,s=u;break}u=f,c=f+d.breakAfter}return{from:i,to:s<0?r+e.length:s,startDOM:(a?e.children[a-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:o=0?e.children[o].dom:null}}else return e.isText()?{from:r,to:r+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling}:null}function BRe(e,t){let n,{newSel:r}=t,{state:a}=e,i=a.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:l}=t.bounds,c=i.from,u=null;(o===8||xn.android&&t.text.length=s&&i.to<=l&&(t.typeOver||d!=t.text)&&d.slice(0,i.from-s)==t.text.slice(0,i.from-s)&&d.slice(i.to-s)==t.text.slice(f=t.text.length-(d.length-(i.to-s)))?n={from:i.from,to:i.to,insert:pa.of(t.text.slice(i.from-s,f).split(QO))}:(m=FRe(d,t.text,c-s,u))&&(xn.chrome&&o==13&&m.toB==m.from+2&&t.text.slice(m.from,m.toB)==QO+QO&&m.toB--,n={from:s+m.from,to:s+m.toA,insert:pa.of(t.text.slice(m.from,m.toB).split(QO))})}else r&&(!e.hasFocus&&a.facet(sf)||sR(r,i))&&(r=null);if(!n&&!r)return!1;if((xn.mac||xn.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=_t.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:pa.of([n.insert.toString().replace("."," ")])}):a.doc.lineAt(i.from).toDate.now()-50?n={from:i.from,to:i.to,insert:a.toText(e.inputState.insertingText)}:xn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` - `&&e.lineWrapping&&(r&&(r=_t.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:pa.of([" "])}),n)return lY(e,n,r,o);if(r&&!sR(r,i)){let s=!1,l="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(s=!0),l=e.inputState.lastSelectionOrigin,l=="select.pointer"&&(r=QRe(a.facet(dx).map(c=>c(e)),r))),e.dispatch({selection:r,scrollIntoView:s,userEvent:l}),!0}else return!1}function lY(e,t,n,r=-1){if(xn.ios&&e.inputState.flushIOSKey(t))return!0;let a=e.state.selection.main;if(xn.android&&(t.to==a.to&&(t.from==a.from||t.from==a.from-1&&e.state.sliceDoc(t.from,a.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&b0(e.contentDOM,"Enter",13)||(t.from==a.from-1&&t.to==a.to&&t.insert.length==0||r==8&&t.insert.lengtha.head)&&b0(e.contentDOM,"Backspace",8)||t.from==a.from&&t.to==a.to+1&&t.insert.length==0&&b0(e.contentDOM,"Delete",46)))return!0;let i=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,s=()=>o||(o=Axt(e,t,n));return e.state.facet(wRe).some(l=>l(e,t.from,t.to,i,s))||e.dispatch(s()),!0}function Axt(e,t,n){let r,a=e.state,i=a.selection.main,o=-1;if(t.from==t.to&&t.fromi.to){let l=t.fromd(e)),c,l);t.from==u&&(o=u)}if(o>-1)r={changes:t,selection:_t.cursor(t.from+t.insert.length,-1)};else if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let l=i.fromt.to?a.sliceDoc(t.to,i.to):"";r=a.replaceSelection(e.state.toText(l+t.insert.sliceString(0,void 0,e.state.lineBreak)+c))}else{let l=a.changes(t),c=n&&n.main.to<=l.newLength?n.main:void 0;if(a.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=i.to+10&&t.to>=i.to-10){let u=e.state.sliceDoc(t.from,t.to),d,f=n&&LRe(e,n.main.head);if(f){let h=t.insert.length-(t.to-t.from);d={from:f.from,to:f.to-h}}else d=e.state.doc.lineAt(i.head);let m=i.to-t.to;r=a.changeByRange(h=>{if(h.from==i.from&&h.to==i.to)return{changes:l,range:c||h.map(l)};let g=h.to-m,O=g-u.length;if(e.state.sliceDoc(O,g)!=u||g>=d.from&&O<=d.to)return{range:h};let v=a.changes({from:O,to:g,insert:t.insert}),y=h.to-i.to;return{changes:v,range:c?_t.range(Math.max(0,c.anchor+y),Math.max(0,c.head+y)):h.map(v)}})}else r={changes:l,selection:c&&a.selection.replaceRange(c)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),a.update(r,{userEvent:s,scrollIntoView:!0})}function FRe(e,t,n,r){let a=Math.min(e.length,t.length),i=0;for(;i0&&s>0&&e.charCodeAt(o-1)==t.charCodeAt(s-1);)o--,s--;if(r=="end"){let l=Math.max(0,i-Math.min(o,s));n-=o+l-i}if(o=o?i-n:0;i-=l,s=i+(s-o),o=i}else if(s=s?i-n:0;i-=l,o=i+(o-s),s=i}return{from:i,toA:o,toB:s}}function Nxt(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:a,focusOffset:i}=e.observer.selectionRange;return n&&(t.push(new Nse(n,r)),(a!=n||i!=r)&&t.push(new Nse(a,i))),t}function Ixt(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?_t.single(n+t,r+t):null}function sR(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class Mxt{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,xn.safari&&t.contentDOM.addEventListener("input",()=>null),xn.gecko&&Hxt(t.contentDOM.ownerDocument)}handleEvent(t){!jxt(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(t.type,t)):this.runHandlers(t.type,t))}runHandlers(t,n){let r=this.handlers[t];if(r){for(let a of r.observers)a(this.view,n);for(let a of r.handlers){if(n.defaultPrevented)break;if(a(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=Dxt(t),r=this.handlers,a=this.view.contentDOM;for(let i in n)if(i!="scroll"){let o=!n[i].handlers.length,s=r[i];s&&o!=!s.handlers.length&&(a.removeEventListener(i,this.handleEvent),s=null),s||a.addEventListener(i,this.handleEvent,{passive:o})}for(let i in r)i!="scroll"&&!n[i]&&a.removeEventListener(i,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&t.keyCode!=27&&jRe.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),xn.android&&xn.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return xn.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((n=URe.find(r=>r.keyCode==t.keyCode))&&!t.ctrlKey||Lxt.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(t){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&t&&t.from0?!0:xn.safari&&!xn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Ise(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(a){Ps(n.state,a)}}}function Dxt(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let a=r.spec,i=a&&a.plugin.domEventHandlers,o=a&&a.plugin.domEventObservers;if(i)for(let s in i){let l=i[s];l&&n(s).handlers.push(Ise(r.value,l))}if(o)for(let s in o){let l=o[s];l&&n(s).observers.push(Ise(r.value,l))}}for(let r in bu)n(r).handlers.push(bu[r]);for(let r in ul)n(r).observers.push(ul[r]);return t}const URe=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Lxt="dthko",jRe=[16,17,18,20,91,92,224,225],Nw=6;function Iw(e){return Math.max(0,e)*.7+8}function Qxt(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class zxt{constructor(t,n,r,a){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=a,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=fRe(t.contentDOM),this.atoms=t.state.facet(dx).map(o=>o(t));let i=t.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Jr.allowMultipleSelections)&&Bxt(t,n),this.dragging=Uxt(t,n)&&VRe(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Qxt(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let n=0,r=0,a=0,i=0,o=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:a,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:s}=this.scrollParents.y.getBoundingClientRect());let l=sY(this.view);t.clientX-l.left<=a+Nw?n=-Iw(a-t.clientX):t.clientX+l.right>=o-Nw&&(n=Iw(t.clientX-o)),t.clientY-l.top<=i+Nw?r=-Iw(i-t.clientY):t.clientY+l.bottom>=s-Nw&&(r=Iw(t.clientY-s)),this.setScrollSpeed(n,r)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:t,y:n}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(t||n)&&this.view.win.scrollBy(t,n),this.dragging===!1&&this.select(this.lastEvent)}select(t){let{view:n}=this,r=QRe(this.atoms,this.style.get(t,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Bxt(e,t){let n=e.state.facet(_Re);return n.length?n[0](t):xn.mac?t.metaKey:t.ctrlKey}function Fxt(e,t){let n=e.state.facet(ERe);return n.length?n[0](t):xn.mac?!t.altKey:!t.ctrlKey}function Uxt(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=D_(e.root);if(!r||r.rangeCount==0)return!0;let a=r.getRangeAt(0).getClientRects();for(let i=0;i=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return!0}return!1}function jxt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=wi.get(n))&&r.isWidget()&&!r.isHidden&&r.widget.ignoreEvent(t))return!1;return!0}const bu=Object.create(null),ul=Object.create(null),XRe=xn.ie&&xn.ie_version<15||xn.ios&&xn.webkit_version<604;function Xxt(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),YRe(e,n.value)},50)}function fA(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function YRe(e,t){t=fA(e.state,rY,t);let{state:n}=e,r,a=1,i=n.toText(t),o=i.lines==n.selection.ranges.length;if(Mz!=null&&n.selection.ranges.every(l=>l.empty)&&Mz==i.toString()){let l=-1;r=n.changeByRange(c=>{let u=n.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;let d=n.toText((o?i.line(a++).text:t)+n.lineBreak);return{changes:{from:u.from,insert:d},range:_t.cursor(c.from+d.length)}})}else o?r=n.changeByRange(l=>{let c=i.line(a++);return{changes:{from:l.from,to:l.to,insert:c.text},range:_t.cursor(l.from+c.length)}}):r=n.replaceSelection(i);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}ul.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};ul.wheel=ul.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()};bu.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&e.inputState.tabFocusMode!=0&&(e.inputState.tabFocusMode=Date.now()+2e3),!1);ul.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};ul.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};bu.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(xRe))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=Vxt(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new zxt(e,t,n,r)),r&&e.observer.ignore(()=>{pRe(e.contentDOM);let i=e.root.activeElement;i&&!i.contains(e.contentDOM)&&i.blur()});let a=e.inputState.mouseSelection;if(a)return a.start(t),a.dragging===!1}else e.inputState.setSelectionOrigin("select.pointer");return!1};function Mse(e,t,n,r){if(r==1)return _t.cursor(t,n);if(r==2)return _xt(e.state,t,n);{let a=e.docView.lineAt(t,n),i=e.state.doc.lineAt(a?a.posAtEnd:t),o=a?a.posAtStart:i.from,s=a?a.posAtEnd:i.to;return sDate.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Lse+1)%3:1}function Vxt(e,t){let n=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),r=VRe(t),a=e.state.selection;return{update(i){i.docChanged&&(n.pos=i.changes.mapPos(n.pos),a=a.map(i.changes))},get(i,o,s){let l=e.posAndSideAtCoords({x:i.clientX,y:i.clientY},!1),c,u=Mse(e,l.pos,l.assoc,r);if(n.pos!=l.pos&&!o){let d=Mse(e,n.pos,n.assoc,r),f=Math.min(d.from,u.from),m=Math.max(d.to,u.to);u=f1&&(c=qxt(a,l.pos))?c:s?a.addRange(u):_t.create([u])}}}function qxt(e,t){for(let n=0;n=t)return _t.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}bu.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let a=e.docView.tile.nearest(t.target);if(a&&a.isWidget()){let i=a.posAtStart,o=i+a.length;(i>=n.to||o<=n.from)&&(n=_t.range(i,o))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",fA(e.state,aY,e.state.sliceDoc(n.from,n.to))),t.dataTransfer.effectAllowed="copyMove"),!1};bu.dragend=e=>(e.inputState.draggedContent=null,!1);function zse(e,t,n,r){if(n=fA(e.state,rY,n),!n)return;let a=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:i}=e.inputState,o=r&&i&&Fxt(e,t)?{from:i.from,to:i.to}:null,s={from:a,insert:n},l=e.state.changes(o?[o,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(a,-1),head:l.mapPos(a,1)},userEvent:o?"move.drop":"input.drop"}),e.inputState.draggedContent=null}bu.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),a=0,i=()=>{++a==n.length&&zse(e,t,r.filter(o=>o!=null).join(e.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[o]=s.result),i()},s.readAsText(n[o])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return zse(e,t,r,!0),!0}return!1};bu.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=XRe?null:t.clipboardData;return n?(YRe(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(Xxt(e),!1)};function Wxt(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function Gxt(e){let t=[],n=[],r=!1;for(let a of e.selection.ranges)a.empty||(t.push(e.sliceDoc(a.from,a.to)),n.push(a));if(!t.length){let a=-1;for(let{from:i}of e.selection.ranges){let o=e.doc.lineAt(i);o.number>a&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),a=o.number}r=!0}return{text:fA(e,aY,t.join(e.lineBreak)),ranges:n,linewise:r}}let Mz=null;bu.copy=bu.cut=(e,t)=>{if(!kS(e.contentDOM,e.observer.selectionRange))return!1;let{text:n,ranges:r,linewise:a}=Gxt(e.state);if(!n&&!a)return!1;Mz=a?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let i=XRe?null:t.clipboardData;return i?(i.clearData(),i.setData("text/plain",n),!0):(Wxt(e,n),!1)};const qRe=wd.define();function WRe(e,t){let n=[];for(let r of e.facet(CRe)){let a=r(e,t);a&&n.push(a)}return n.length?e.update({effects:n,annotations:qRe.of(!0)}):null}function GRe(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=WRe(e.state,t);n?e.dispatch(n):e.update([])}},10)}ul.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),GRe(e)};ul.blur=e=>{e.observer.clearSelectionRange(),GRe(e)};ul.compositionstart=ul.compositionupdate=e=>{e.observer.editContext||(e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))};ul.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,xn.chrome&&xn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))};ul.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};bu.beforeinput=(e,t)=>{var n,r;if((t.inputType=="insertText"||t.inputType=="insertCompositionText")&&(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),t.inputType=="insertReplacementText"&&e.observer.editContext){let i=(n=t.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),o=t.getTargetRanges();if(i&&o.length){let s=o[0],l=e.posAtDOM(s.startContainer,s.startOffset),c=e.posAtDOM(s.endContainer,s.endOffset);return lY(e,{from:l,to:c,insert:e.state.toText(i)},null),!0}}let a;if(xn.chrome&&xn.android&&(a=URe.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(a.key,a.keyCode),a.key=="Backspace"||a.key=="Delete")){let i=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return xn.ios&&t.inputType=="deleteContentForward"&&e.observer.flushSoon(),xn.safari&&t.inputType=="insertText"&&e.inputState.composing>=0&&setTimeout(()=>ul.compositionend(e,t),20),!1};const Bse=new Set;function Hxt(e){Bse.has(e)||(Bse.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const Fse=["pre-wrap","normal","pre-line","break-spaces"];let Z0=!1;function Use(){Z0=!1}class Zxt{constructor(t){this.lineWrapping=t,this.doc=pa.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return Fse.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r-1,l=Math.abs(n-this.lineHeight)>.3||this.lineWrapping!=s||Math.abs(r-this.charWidth)>.1;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=a,this.lineLength=i,l){this.heightSamples={};for(let c=0;c0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>N2&&(Z0=!0),this.height=t)}replace(t,n,r){return Ds.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,a){let i=this,o=r.doc;for(let s=a.length-1;s>=0;s--){let{fromA:l,toA:c,fromB:u,toB:d}=a[s],f=i.lineAt(l,Va.ByPosNoHeight,r.setDoc(n),0,0),m=f.to>=c?f:i.lineAt(c,Va.ByPosNoHeight,r,0,0);for(d+=m.to-c,c=m.to;s>0&&f.from<=a[s-1].toA;)l=a[s-1].fromA,u=a[s-1].fromB,s--,li*2){let s=t[n-1];s.break?t.splice(--n,1,s.left,null,s.right):t.splice(--n,1,s.left,s.right),r+=1+s.break,a-=s.size}else if(i>a*2){let s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,i-=s.size}else break;else if(a=i&&o(this.lineAt(0,Va.ByPos,r,a,i))}setMeasuredHeight(t){let n=t.heights[t.index++];n<0?(this.spaceAbove=-n,n=t.heights[t.index++]):this.spaceAbove=0,this.setHeight(n)}updateHeight(t,n=0,r=!1,a){return a&&a.from<=n&&a.more&&this.setMeasuredHeight(a),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Pl extends HRe{constructor(t,n,r){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=r}mainBlock(t,n){return new nu(n,this.length,t+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(t,n,r){let a=r[0];return r.length==1&&(a instanceof Pl||a instanceof Lo&&a.flags&4)&&Math.abs(this.length-a.length)<10?(a instanceof Lo?a=new Pl(a.length,this.height,this.spaceAbove):a.height=this.height,this.outdated||(a.outdated=!1),a):Ds.of(r)}updateHeight(t,n=0,r=!1,a){return a&&a.from<=n&&a.more?this.setMeasuredHeight(a):(r||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Lo extends Ds{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,a=t.doc.lineAt(n+this.length).number,i=a-r+1,o,s=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*i);o=l/i,this.length>i+1&&(s=(this.height-l)/(this.length-i-1))}else o=this.height/i;return{firstLine:r,lastLine:a,perLine:o,perChar:s}}blockAt(t,n,r,a){let{firstLine:i,lastLine:o,perLine:s,perChar:l}=this.heightMetrics(n,a);if(n.lineWrapping){let c=a+(t0){let i=r[r.length-1];i instanceof Lo?r[r.length-1]=new Lo(i.length+a):r.push(null,new Lo(a-1))}if(t>0){let i=r[0];i instanceof Lo?r[0]=new Lo(t+i.length):r.unshift(new Lo(t-1),null)}return Ds.of(r)}decomposeLeft(t,n){n.push(new Lo(t-1),null)}decomposeRight(t,n){n.push(null,new Lo(this.length-t-1))}updateHeight(t,n=0,r=!1,a){let i=n+this.length;if(a&&a.from<=n+this.length&&a.more){let o=[],s=Math.max(n,a.from),l=-1;for(a.from>n&&o.push(new Lo(a.from-n-1).updateHeight(t,n));s<=i&&a.more;){let u=t.doc.lineAt(s).length;o.length&&o.push(null);let d=a.heights[a.index++],f=0;d<0&&(f=-d,d=a.heights[a.index++]),l==-1?l=d:Math.abs(d-l)>=N2&&(l=-2);let m=new Pl(u,d,f);m.outdated=!1,o.push(m),s+=u+1}s<=i&&o.push(null,new Lo(i-s).updateHeight(t,s));let c=Ds.of(o);return(l<0||Math.abs(c.height-this.height)>=N2||Math.abs(l-this.heightMetrics(t,n).perLine)>=N2)&&(Z0=!0),lR(this,c)}else(r||this.outdated)&&(this.setHeight(t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class eTt extends Ds{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,a){let i=r+this.left.height;return ts))return c;let u=n==Va.ByPosNoHeight?Va.ByPosNoHeight:Va.ByPos;return l?c.join(this.right.lineAt(s,u,r,o,s)):this.left.lineAt(s,u,r,a,i).join(c)}forEachLine(t,n,r,a,i,o){let s=a+this.left.height,l=i+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,s,l,o);else{let c=this.lineAt(l,Va.ByPos,r,a,i);t=t&&c.from<=n&&o(c),n>c.to&&this.right.forEachLine(c.to+1,n,r,s,l,o)}}replace(t,n,r){let a=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-a,n-a,r));let i=[];t>0&&this.decomposeLeft(t,i);let o=i.length;for(let s of r)i.push(s);if(t>0&&jse(i,o-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,a=r+this.break;if(t>=a)return this.right.decomposeRight(t-a,n);t2*n.size||n.size>2*t.size?Ds.of(this.break?[t,null,n]:[t,n]):(this.left=lR(this.left,t),this.right=lR(this.right,n),this.setHeight(t.height+n.height),this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,a){let{left:i,right:o}=this,s=n+i.length+this.break,l=null;return a&&a.from<=n+i.length&&a.more?l=i=i.updateHeight(t,n,r,a):i.updateHeight(t,n,r),a&&a.from<=s+o.length&&a.more?l=o=o.updateHeight(t,s,r,a):o.updateHeight(t,s,r),l?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function jse(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Lo&&(r=e[t+1])instanceof Lo&&e.splice(t-1,3,new Lo(n.length+1+r.length))}const tTt=5;class cY{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),a=this.nodes[this.nodes.length-1];a instanceof Pl?a.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Pl(r-this.pos,-1,0)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t=tTt)&&this.addLineDeco(a,i,o)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new Pl(this.pos-t,-1,0)),this.writtenTo=this.pos}blankContent(t,n){let r=new Lo(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Pl)return t;let n=new Pl(0,-1,0);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let a=this.ensureLine();a.length+=r,a.collapsed+=r,a.widgetHeight=Math.max(a.widgetHeight,t),a.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Pl)&&!this.isCovered?this.nodes.push(new Pl(0,-1,0)):(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&d.overflow!="visible"){let f=u.getBoundingClientRect();i=Math.max(i,f.left),o=Math.min(o,f.right),s=Math.max(s,f.top),l=Math.min(c==e.parentNode?a.innerHeight:l,f.bottom)}c=d.position=="absolute"||d.position=="fixed"?u.offsetParent:u.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:i-n.left,right:Math.max(i,o)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function iTt(e){let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView||window;return t.left0&&t.top0}function oTt(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class G5{constructor(t,n,r,a){this.from=t,this.to=n,this.size=r,this.displaySize=a}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;rtypeof a!="function"&&a.class=="cm-lineWrapping");this.heightOracle=new Zxt(r),this.stateDeco=Vse(n),this.heightMap=Ds.empty().applyChanges(this.stateDeco,pa.empty,this.heightOracle.setDoc(n.doc),[new yc(0,0,0,n.doc.length)]);for(let a=0;a<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());a++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Zn.set(this.lineGaps.map(a=>a.draw(this,!1))),this.scrollParent=t.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let a=r?n.head:n.anchor;if(!t.some(({from:i,to:o})=>a>=i&&a<=o)){let{from:i,to:o}=this.lineBlockAt(a);t.push(new Mw(i,o))}}return this.viewports=t.sort((r,a)=>r.from-a.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?Yse:new uY(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(Jy(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=Vse(this.state);let a=t.changedRanges,i=yc.extendWithRanges(a,nTt(r,this.stateDeco,t?t.changes:eo.empty(this.state.doc.length))),o=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);Use(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=o||Z0)&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let l=i.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let c=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,t.flags|=this.updateForViewport(),(c||!t.changes.empty||t.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(t.changes),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&(t.selectionSet||t.focusChanged)&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(RRe)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:t}=this,n=t.contentDOM,r=window.getComputedStyle(n),a=this.heightOracle,i=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?za.RTL:za.LTR;let o=this.heightOracle.mustRefreshForWrapping(i)||this.mustMeasureContent==="refresh",s=n.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let c=0,u=0;if(s.width&&s.height){let{scaleX:_,scaleY:w}=dRe(n,s);(_>.005&&Math.abs(this.scaleX-_)>.005||w>.005&&Math.abs(this.scaleY-w)>.005)&&(this.scaleX=_,this.scaleY=w,c|=16,o=l=!0)}let d=(parseInt(r.paddingTop)||0)*this.scaleY,f=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=f)&&(this.paddingTop=d,this.paddingBottom=f,c|=18),this.editorWidth!=t.scrollDOM.clientWidth&&(a.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,c|=16);let m=fRe(this.view.contentDOM,!1).y;m!=this.scrollParent&&(this.scrollParent=m,this.scrollAnchorHeight=-1,this.scrollOffset=0);let h=this.getScrollOffset();this.scrollOffset!=h&&(this.scrollAnchorHeight=-1,this.scrollOffset=h),this.scrolledToBottom=mRe(this.scrollParent||t.win);let g=(this.printing?oTt:aTt)(n,this.paddingTop),O=g.top-this.pixelViewport.top,v=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget&&!iTt(t.dom))return 0;let S=s.width;if((this.contentDOMWidth!=S||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,c|=16),l){let _=t.docView.measureVisibleLineHeights(this.viewport);if(a.mustRefreshForHeights(_)&&(o=!0),o||a.lineWrapping&&Math.abs(S-this.contentDOMWidth)>a.charWidth){let{lineHeight:w,charWidth:T,textHeight:A}=t.docView.measureTextSize();o=w>0&&a.refresh(i,w,T,A,Math.max(5,S/T),_),o&&(t.docView.minWidth=0,c|=16)}O>0&&v>0?u=Math.max(O,v):O<0&&v<0&&(u=Math.min(O,v)),Use();for(let w of this.viewports){let T=w.from==this.viewport.from?_:t.docView.measureVisibleLineHeights(w);this.heightMap=(o?Ds.empty().applyChanges(this.stateDeco,pa.empty,this.heightOracle,[new yc(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(a,0,o,new Kxt(w.from,T))}Z0&&(c|=2)}let C=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return C&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(u,this.scrollTarget),c|=this.updateForViewport()),(c&2||C)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,t)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),a=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,l=new Mw(a.lineAt(o-r*1e3,Va.ByHeight,i,0,0).from,a.lineAt(s+(1-r)*1e3,Va.ByHeight,i,0,0).to);if(n){let{head:c}=n.range;if(cl.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=a.lineAt(c,Va.ByPos,i,0,0),f;n.y=="center"?f=(d.top+d.bottom)/2-u/2:n.y=="start"||n.y=="nearest"&&c=s+Math.max(10,Math.min(r,250)))&&a>o-2*1e3&&i>1,o=a<<1;if(this.defaultTextDirection!=za.LTR&&!r)return[];let s=[],l=(u,d,f,m)=>{if(d-uu&&vv.from>=f.from&&v.to<=f.to&&Math.abs(v.from-u)v.fromy));if(!O){if(dS.from<=d&&S.to>=d)){let S=n.moveToLineBoundary(_t.cursor(d),!1,!0).head;S>u&&(d=S)}let v=this.gapSize(f,u,d,m),y=r||v<2e6?v:2e6;O=new G5(u,d,v,y)}s.push(O)},c=u=>{if(u.length2e6)for(let w of t)w.from>=u.from&&w.fromu.from&&l(u.from,m,u,d),hn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(t){let n=this.stateDeco;this.lineGaps.length&&(n=n.concat(this.lineGapDeco));let r=[];jr.spans(n,this.viewport.from,this.viewport.to,{span(i,o){r.push({from:i,to:o})},point(){}},20);let a=0;if(r.length!=this.visibleRanges.length)a=12;else for(let i=0;i=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||Jy(this.heightMap.lineAt(t,Va.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=t&&n.bottom>=t)||Jy(this.heightMap.lineAt(this.scaler.fromDOM(t),Va.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return Jy(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Mw{constructor(t,n){this.from=t,this.to=n}}function lTt(e,t,n){let r=[],a=e,i=0;return jr.spans(n,e,t,{span(){},point(o,s){o>a&&(r.push({from:a,to:o}),i+=o-a),a=s}},20),a=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let a=0;;a++){let{from:i,to:o}=t[a],s=o-i;if(r<=s)return i+r;r-=s}}function Lw(e,t){let n=0;for(let{from:r,to:a}of e.ranges){if(t<=a){n+=t-r;break}n+=a-r}return n/e.total}function cTt(e,t){for(let n of e)if(t(n))return n}const Yse={toDOM(e){return e},fromDOM(e){return e},scale:1,eq(e){return e==this}};function Vse(e){let t=e.facet(cA).filter(r=>typeof r!="function"),n=e.facet(oY).filter(r=>typeof r!="function");return n.length&&t.push(jr.join(n)),t}class uY{constructor(t,n,r){let a=0,i=0,o=0;this.viewports=r.map(({from:s,to:l})=>{let c=n.lineAt(s,Va.ByPos,t,0,0).top,u=n.lineAt(l,Va.ByPos,t,0,0).bottom;return a+=u-c,{from:s,to:l,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-a)/(n.height-a);for(let s of this.viewports)s.domTop=o+(s.top-i)*this.scale,o=s.domBottom=s.domTop+(s.bottom-s.top),i=s.bottom}toDOM(t){for(let n=0,r=0,a=0;;n++){let i=nn.from==t.viewports[r].from&&n.to==t.viewports[r].to):!1}}function Jy(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new nu(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(a=>Jy(a,t)):e._content)}const Qw=vn.define({combine:e=>e.join(" ")}),Dz=vn.define({combine:e=>e.indexOf(!0)>-1}),Lz=Wp.newName(),ZRe=Wp.newName(),KRe=Wp.newName(),JRe={"&light":"."+ZRe,"&dark":"."+KRe};function Qz(e,t,n){return new Wp(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,a=>{if(a=="&")return e;if(!n||!n[a])throw new RangeError(`Unsupported selector: ${a}`);return n[a]}):e+" "+r}})}const uTt=Qz("."+Lz,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},JRe),dTt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},H5=xn.ie&&xn.ie_version<=11;class fTt{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new UEt,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(xn.ie&&xn.ie_version<=11||xn.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&xn.android&&t.constructor.EDIT_CONTEXT!==!1&&!(xn.chrome&&xn.chrome_version<126)&&(this.editContext=new mTt(t),t.state.facet(sf)&&(t.contentDOM.editContext=this.editContext.editContext)),H5&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(t){(t.type=="change"||!t.type)&&!t.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,a=this.selectionRange;if(r.state.facet(sf)?r.root.activeElement!=this.dom:!kS(this.dom,a))return;let i=a.anchorNode&&r.docView.tile.nearest(a.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(xn.ie&&xn.ie_version<=11||xn.android&&xn.chrome)&&!r.state.selection.main.empty&&a.focusNode&&NS(a.focusNode,a.focusOffset,a.anchorNode,a.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=D_(t.root);if(!n)return!1;let r=xn.safari&&t.root.nodeType==11&&t.root.activeElement==this.dom&&pTt(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let a=kS(this.dom,r);return a&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&b0(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(a)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,a=!1;for(let i of t){let o=this.readMutation(i);o&&(o.typeOver&&(a=!0),n==-1?{from:n,to:r}=o:(n=Math.min(o.from,n),r=Math.max(o.to,r)))}return{from:n,to:r,typeOver:a}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),a=this.selectionChanged&&kS(this.dom,this.selectionRange);if(t<0&&!a)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new kxt(this.view,t,n,r);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,a=BRe(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!sR(this.view.state.selection,n.newSel.main))&&this.view.update([]),a}readMutation(t){let n=this.view.docView.tile.nearest(t.target);if(!n||n.isWidget())return null;if(n.markDirty(t.type=="attributes"),t.type=="childList"){let r=qse(n,t.previousSibling||t.target.previousSibling,-1),a=qse(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:a?n.posBefore(a):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(sf)!=t.state.facet(sf)&&(t.view.contentDOM.editContext=t.state.facet(sf)?this.editContext.editContext:null))}destroy(){var t,n,r;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let a of this.scrollTargets)a.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function qse(e,t,n){for(;t;){let r=wi.get(t);if(r&&r.parent==e)return r;let a=t.parentNode;t=a!=e.dom?a:n>0?t.nextSibling:t.previousSibling}return null}function Wse(e,t){let n=t.startContainer,r=t.startOffset,a=t.endContainer,i=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor,1);return NS(o.node,o.offset,a,i)&&([n,r,a,i]=[a,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:a,focusOffset:i}}function pTt(e,t){if(t.getComposedRanges){let a=t.getComposedRanges(e.root)[0];if(a)return Wse(e,a)}let n=null;function r(a){a.preventDefault(),a.stopImmediatePropagation(),n=a.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?Wse(e,n):null}class mTt{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(t.state);let n=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=r=>{let a=t.state.selection.main,{anchor:i,head:o}=a,s=this.toEditorPos(r.updateRangeStart),l=this.toEditorPos(r.updateRangeEnd);t.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:r.updateRangeStart,editorBase:s,drifted:!1});let c=l-s>r.text.length;s==this.from&&ithis.to&&(l=i);let u=FRe(t.state.sliceDoc(s,l),r.text,(c?a.from:a.to)-s,c?"end":null);if(!u){let f=_t.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd));sR(f,a)||t.dispatch({selection:f,userEvent:"select"});return}let d={from:u.from+s,to:u.toA+s,insert:pa.of(r.text.slice(u.from,u.toB).split(` -`))};if((xn.mac||xn.android)&&d.from==o-1&&/^\. ?$/.test(r.text)&&t.contentDOM.getAttribute("autocorrect")=="off"&&(d={from:s,to:l,insert:pa.of([r.text.replace("."," ")])}),this.pendingContextChange=d,!t.state.readOnly){let f=this.to-this.from+(d.to-d.from+d.insert.length);lY(t,d,_t.single(this.toEditorPos(r.selectionStart,f),this.toEditorPos(r.selectionEnd,f)))}this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state)),d.from=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(n.text.slice(Math.max(0,r.updateRangeStart-1),Math.min(n.text.length,r.updateRangeStart+1)))&&this.handlers.compositionend(r)},this.handlers.characterboundsupdate=r=>{let a=[],i=null;for(let o=this.toEditorPos(r.rangeStart),s=this.toEditorPos(r.rangeEnd);o{let a=[];for(let i of r.getTextFormats()){let o=i.underlineStyle,s=i.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(s)){let l=this.toEditorPos(i.rangeStart),c=this.toEditorPos(i.rangeEnd);if(l{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(t.inputState.composing=-1,t.inputState.compositionFirstChange=null,this.composing){let{drifted:r}=this.composing;this.composing=null,r&&this.reset(t.state)}};for(let r in this.handlers)n.addEventListener(r,this.handlers[r]);this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let a=D_(r.root);a&&a.rangeCount&&this.editContext.updateSelectionBounds(a.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let n=0,r=!1,a=this.pendingContextChange;return t.changes.iterChanges((i,o,s,l,c)=>{if(r)return;let u=c.length-(o-i);if(a&&o>=a.to)if(a.from==i&&a.to==o&&a.insert.eq(c)){a=this.pendingContextChange=null,n+=u,this.to+=u;return}else a=null,this.revertPending(t.state);if(i+=n,o+=n,o<=this.from)this.from+=u,this.to+=u;else if(ithis.to||this.to-this.from+c.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),c.toString()),this.to+=u}n+=u}),a&&!r&&this.revertPending(t.state),!r}update(t){let n=this.pendingContextChange,r=t.startState.selection.main;this.composing&&(this.composing.drifted||!t.changes.touchesRange(r.from,r.to)&&t.transactions.some(a=>!a.isUserEvent("input.type")&&a.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=t.changes.mapPos(this.composing.editorBase)):!this.applyEdits(t)||!this.rangeIsValid(t.state)?(this.pendingContextChange=null,this.reset(t.state)):(t.docChanged||t.selectionSet||n)&&this.setSelection(t.state),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:n}=t.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(t.doc.length,n+1e4)}reset(t){this.resetRange(t),this.editContext.updateText(0,this.editContext.text.length,t.doc.sliceString(this.from,this.to)),this.setSelection(t)}revertPending(t){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),t.doc.sliceString(n.from,n.to))}setSelection(t){let{main:n}=t.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),a=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=a)&&this.editContext.updateSelection(r,a)}rangeIsValid(t){let{head:n}=t.selection.main;return!(this.from>0&&n-this.from<500||this.to1e4*3)}toEditorPos(t,n=this.to-this.from){t=Math.min(t,n);let r=this.composing;return r&&r.drifted?r.editorBase+(t-r.contextBase):t+this.from}toContextPos(t){let n=this.composing;return n&&n.drifted?n.contextBase+(t-n.editorBase):t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class mn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:r}=t;this.dispatchTransactions=t.dispatchTransactions||r&&(a=>a.forEach(i=>r(i,this)))||(a=>this.update(a)),this.dispatch=this.dispatch.bind(this),this._root=t.root||jEt(t.parent)||document,this.viewState=new Xse(this,t.state||Jr.create(t)),t.scrollTo&&t.scrollTo.is(Aw)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(JO).map(a=>new X5(a));for(let a of this.plugins)a.update(this);this.observer=new fTt(this),this.inputState=new Mxt(this),this.inputState.ensureHandlers(this.plugins),this.docView=new kse(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...t){let n=t.length==1&&t[0]instanceof Ui?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,a,i=this.state;for(let f of t){if(f.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=f.state}if(this.destroyed){this.viewState.state=i;return}let o=this.hasFocus,s=0,l=null;t.some(f=>f.annotation(qRe))?(this.inputState.notifiedFocused=o,s=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=WRe(i,o),l||(s=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(u=null)):this.observer.clear(),i.facet(Jr.phrases)!=this.state.facet(Jr.phrases))return this.setState(i);a=aR.create(this,i,t),a.flags|=s;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let f of t){if(d&&(d=d.map(f.changes)),f.scrollIntoView){let{main:m}=f.state.selection;d=new v0(m.empty?m:_t.cursor(m.head,m.head>m.anchor?-1:1))}for(let m of f.effects)m.is(Aw)&&(d=m.value.clip(this.state))}this.viewState.update(a,d),this.bidiCache=cR.update(this.bidiCache,a.changes),a.empty||(this.updatePlugins(a),this.inputState.update(a)),n=this.docView.update(a),this.state.facet(Ky)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(a.startState.facet(Qw)!=a.state.facet(Qw)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!a.empty)for(let f of this.state.facet(kz))try{f(a)}catch(m){Ps(this.state,m,"update listener")}(l||u)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!BRe(this,u)&&c.force&&b0(this.contentDOM,c.key,c.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new Xse(this,t),this.plugins=t.facet(JO).map(r=>new X5(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new kse(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(JO),r=t.state.facet(JO);if(n!=r){let a=[];for(let i of r){let o=n.indexOf(i);if(o<0)a.push(new X5(i));else{let s=this.plugins[o];s.mustUpdate=t,a.push(s)}}for(let i of this.plugins)i.mustUpdate!=t&&i.destroy(this);this.plugins=a,this.pluginMap.clear()}else for(let a of this.plugins)a.mustUpdate=t;for(let a=0;a-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.viewState.scrollParent,a=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(a-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(o<0)if(mRe(r||this.win))i=-1,o=this.viewState.heightMap.height;else{let m=this.viewState.scrollAnchorAt(a);i=m.from,o=m.top}this.updateState=1;let l=this.viewState.measure();if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(m=>{try{return m.read(this)}catch(h){return Ps(this.state,h),Gse}}),d=aR.create(this,this.state,[]),f=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),f=this.docView.update(d),f&&this.docViewUpdate());for(let m=0;m1||h<-1)&&(r==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){a=a+h,r?r.scrollTop+=h:this.win.scrollBy(0,h),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(kz))s(n)}get themeClasses(){return Lz+" "+(this.state.facet(Dz)?KRe:ZRe)+" "+this.state.facet(Qw)}updateAttrs(){let t=Hse(this,ARe,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(sf)?"true":"false",class:"cm-content",style:`${xn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),Hse(this,iY,n);let r=this.observer.ignore(()=>{let a=Tse(this.contentDOM,this.contentAttrs,n),i=Tse(this.dom,this.editorAttrs,t);return a||i});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let a of r.effects)if(a.is(mn.announce)){n&&(this.announceDOM.textContent=""),n=!1;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=a.value}}mountStyles(){this.styleModules=this.state.facet(Ky);let t=this.state.facet(mn.cspNonce);Wp.mount(this.root,this.styleModules.concat(uTt).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;nr.plugin==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return W5(this,t,Ase(this,t,n,r))}moveByGroup(t,n){return W5(this,t,Ase(this,t,n,r=>Txt(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),a=this.textDirectionAt(t.from),i=r[n?r.length-1:0];return _t.cursor(i.side(n,a)+t.from,i.forward(!n,a)?1:-1)}moveToLineBoundary(t,n,r=!0){return xxt(this,t,n,r)}moveVertically(t,n,r){return W5(this,t,wxt(this,t,n,r))}domAtPos(t,n=1){return this.docView.domAtPos(t,n)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){this.readMeasured();let r=Iz(this,t,n);return r&&r.pos}posAndSideAtCoords(t,n=!0){return this.readMeasured(),Iz(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let a=this.state.doc.lineAt(t),i=this.bidiSpans(a),o=i[Ku.find(i,t-a.from,-1,n)];return L_(r,o.dir==za.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet($Re)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>hTt)return yRe(t.length);let n=this.textDirectionAt(t.from),r;for(let i of this.bidiCache)if(i.from==t.from&&i.dir==n&&(i.fresh||vRe(i.isolates,r=$se(this,t))))return i.order;r||(r=$se(this,t));let a=ZEt(t.text,n,r);return this.bidiCache.push(new cR(t.from,t.to,n,r,!0,a)),a}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||xn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{pRe(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return Aw.of(new v0(typeof t=="number"?_t.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return Aw.of(new v0(_t.cursor(r.from),"start","start",r.top-t,n,!0))}setTabFocusMode(t){t==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof t=="boolean"?this.inputState.tabFocusMode=t?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return vi.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return vi.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=Wp.newName(),a=[Qw.of(r),Ky.of(Qz(`.${r}`,t))];return n&&n.dark&&a.push(Dz.of(!0)),a}static baseTheme(t){return Af.lowest(Ky.of(Qz("."+Lz,t,JRe)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),a=r&&wi.get(r)||wi.get(t);return((n=a==null?void 0:a.root)===null||n===void 0?void 0:n.view)||null}}mn.styleModule=Ky;mn.inputHandler=wRe;mn.clipboardInputFilter=rY;mn.clipboardOutputFilter=aY;mn.scrollHandler=PRe;mn.focusChangeEffect=CRe;mn.perLineTextDirection=$Re;mn.exceptionSink=TRe;mn.updateListener=kz;mn.editable=sf;mn.mouseSelectionStyle=xRe;mn.dragMovesSelection=ERe;mn.clickAddsSelectionRange=_Re;mn.decorations=cA;mn.blockWrappers=NRe;mn.outerDecorations=oY;mn.atomicRanges=dx;mn.bidiIsolatedRanges=IRe;mn.scrollMargins=MRe;mn.darkTheme=Dz;mn.cspNonce=vn.define({combine:e=>e.length?e[0]:""});mn.contentAttributes=iY;mn.editorAttributes=ARe;mn.lineWrapping=mn.contentAttributes.of({class:"cm-lineWrapping"});mn.announce=_r.define();const hTt=4096,Gse={};class cR{constructor(t,n,r,a,i,o){this.from=t,this.to=n,this.dir=r,this.isolates=a,this.fresh=i,this.order=o}static update(t,n){if(n.empty&&!t.some(i=>i.fresh))return t;let r=[],a=t.length?t[t.length-1].dir:za.LTR;for(let i=Math.max(0,t.length-10);i=0;a--){let i=r[a],o=typeof i=="function"?i(e):i;o&&eY(o,n)}return n}const gTt=xn.mac?"mac":xn.windows?"win":xn.linux?"linux":"key";function OTt(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let a,i,o,s;for(let l=0;lr.concat(a),[]))),n}function vTt(e,t,n){return tPe(ePe(e.state),t,e,n)}let Tp=null;const yTt=4e3;function STt(e,t=gTt){let n=Object.create(null),r=Object.create(null),a=(o,s)=>{let l=r[o];if(l==null)r[o]=s;else if(l!=s)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},i=(o,s,l,c,u)=>{var d,f;let m=n[o]||(n[o]=Object.create(null)),h=s.split(/ (?!$)/).map(v=>OTt(v,t));for(let v=1;v{let C=Tp={view:S,prefix:y,scope:o};return setTimeout(()=>{Tp==C&&(Tp=null)},yTt),!0}]})}let g=h.join(" ");a(g,!1);let O=m[g]||(m[g]={preventDefault:!1,stopPropagation:!1,run:((f=(d=m._any)===null||d===void 0?void 0:d.run)===null||f===void 0?void 0:f.slice())||[]});l&&O.run.push(l),c&&(O.preventDefault=!0),u&&(O.stopPropagation=!0)};for(let o of e){let s=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of s){let u=n[c]||(n[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:d}=o;for(let f in u)u[f].run.push(m=>d(m,zz))}let l=o[t]||o.key;if(l)for(let c of s)i(c,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&i(c,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return n}let zz=null;function tPe(e,t,n,r){zz=t;let a=MEt(t),i=Ks(a,0),o=Wu(i)==a.length&&a!=" ",s="",l=!1,c=!1,u=!1;Tp&&Tp.view==n&&Tp.scope==r&&(s=Tp.prefix+" ",jRe.indexOf(t.keyCode)<0&&(c=!0,Tp=null));let d=new Set,f=O=>{if(O){for(let v of O.run)if(!d.has(v)&&(d.add(v),v(n)))return O.stopPropagation&&(u=!0),!0;O.preventDefault&&(O.stopPropagation&&(u=!0),c=!0)}return!1},m=e[r],h,g;return m&&(f(m[s+zw(a,t,!o)])?l=!0:o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(xn.windows&&t.ctrlKey&&t.altKey)&&!(xn.mac&&t.altKey&&!(t.ctrlKey||t.metaKey))&&(h=Gp[t.keyCode])&&h!=a?(f(m[s+zw(h,t,!0)])||t.shiftKey&&(g=I_[t.keyCode])!=a&&g!=h&&f(m[s+zw(g,t,!1)]))&&(l=!0):o&&t.shiftKey&&f(m[s+zw(a,t,!0)])&&(l=!0),!l&&f(m._any)&&(l=!0)),c&&(l=!0),l&&u&&t.stopPropagation(),zz=null,l}class fx{constructor(t,n,r,a,i){this.className=t,this.left=n,this.top=r,this.width=a,this.height=i}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let a=t.coordsAtPos(r.head,r.assoc||1);if(!a)return[];let i=nPe(t);return[new fx(n,a.left-i.left,a.top-i.top,null,a.bottom-a.top)]}else return _Tt(t,n,r)}}function nPe(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==za.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function Kse(e,t,n,r){let a=e.coordsAtPos(t,n*2);if(!a)return r;let i=e.dom.getBoundingClientRect(),o=(a.top+a.bottom)/2,s=e.posAtCoords({x:i.left+1,y:o}),l=e.posAtCoords({x:i.right-1,y:o});return s==null||l==null?r:{from:Math.max(r.from,Math.min(s,l)),to:Math.min(r.to,Math.max(s,l))}}function _Tt(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),a=Math.min(n.to,e.viewport.to),i=e.textDirection==za.LTR,o=e.contentDOM,s=o.getBoundingClientRect(),l=nPe(e),c=o.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),d=s.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),f=s.right-(u?parseInt(u.paddingRight):0),m=Nz(e,r,1),h=Nz(e,a,-1),g=m.type==Uo.Text?m:null,O=h.type==Uo.Text?h:null;if(g&&(e.lineWrapping||m.widgetLineBreaks)&&(g=Kse(e,r,1,g)),O&&(e.lineWrapping||h.widgetLineBreaks)&&(O=Kse(e,a,-1,O)),g&&O&&g.from==O.from&&g.to==O.to)return y(S(n.from,n.to,g));{let _=g?S(n.from,null,g):C(m,!1),w=O?S(null,n.to,O):C(h,!0),T=[];return(g||m).to<(O||h).from-(g&&O?1:0)||m.widgetLineBreaks>1&&_.bottom+e.defaultLineHeight/2Q&&L.from=R)break;B>U&&M(Math.max(z,U),_==null&&z<=Q,Math.min(B,R),w==null&&B>=F,P.dir)}if(U=$.to+1,U>=R)break}return I.length==0&&M(Q,_==null,F,w==null,e.textDirection),{top:A,bottom:k,horizontal:I}}function C(_,w){let T=s.top+(w?_.top:_.bottom);return{top:T,bottom:T,horizontal:[]}}}function ETt(e,t){return e.constructor==t.constructor&&e.eq(t)}class xTt{constructor(t,n){this.view=t,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}update(t){t.startState.facet(I2)!=t.state.facet(I2)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}docViewUpdate(t){this.layer.updateOnDocViewUpdate!==!1&&t.requestMeasure(this.measureReq)}setOrder(t){let n=0,r=t.facet(I2);for(;n!ETt(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let a of t)a.update&&n&&a.constructor&&this.drawn[r].constructor&&a.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(a.draw(),n);for(;n;){let a=n.nextSibling;n.remove(),n=a}this.drawn=t,xn.safari&&xn.safari_version>=26&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const I2=vn.define();function rPe(e){return[vi.define(t=>new xTt(t,e)),I2.of(e)]}const z_=vn.define({combine(e){return Su(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function TTt(e={}){return[z_.of(e),wTt,CTt,$Tt,RRe.of(!0)]}function aPe(e){return e.startState.facet(z_)!=e.state.facet(z_)}const wTt=rPe({above:!0,markers(e){let{state:t}=e,n=t.facet(z_),r=[];for(let a of t.selection.ranges){let i=a==t.selection.main;if(a.empty||n.drawRangeCursor){let o=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=a.empty?a:_t.cursor(a.head,a.head>a.anchor?-1:1);for(let l of fx.forRange(e,o,s))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=aPe(e);return n&&Jse(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){Jse(t.state,e)},class:"cm-cursorLayer"});function Jse(e,t){t.style.animationDuration=e.facet(z_).cursorBlinkRate+"ms"}const CTt=rPe({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:fx.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||aPe(e)},class:"cm-selectionLayer"}),$Tt=Af.highest(mn.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),iPe=_r.define({map(e,t){return e==null?null:t.mapPos(e)}}),eS=fo.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(iPe)?r.value:n,e)}}),RTt=vi.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(eS);n==null?this.cursor!=null&&((t=this.cursor)===null||t===void 0||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(eS)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(eS),n=t!=null&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(eS)!=e&&this.view.dispatch({effects:iPe.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function PTt(){return[eS,RTt]}function ele(e,t,n,r,a){t.lastIndex=0;for(let i=e.iterRange(n,r),o=n,s;!i.next().done;o+=i.value.length)if(!i.lineBreak)for(;s=t.exec(i.value);)a(o+s.index,s)}function kTt(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:a,to:i}of n)a=Math.max(e.state.doc.lineAt(a).from,a-t),i=Math.min(e.state.doc.lineAt(i).to,i+t),r.length&&r[r.length-1].to>=a?r[r.length-1].to=i:r.push({from:a,to:i});return r}class ATt{constructor(t){const{regexp:n,decoration:r,decorate:a,boundary:i,maxLength:o=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,a)this.addMatch=(s,l,c,u)=>a(u,c,c+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,c,u)=>{let d=r(s,l,c);d&&u(c,c+s[0].length,d)};else if(r)this.addMatch=(s,l,c,u)=>u(c,c+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=o}createDeco(t){let n=new _f,r=n.add.bind(n);for(let{from:a,to:i}of kTt(t,this.maxLength))ele(t.state.doc,this.regexp,a,i,(o,s)=>this.addMatch(s,t,o,r));return n.finish()}updateDeco(t,n){let r=1e9,a=-1;return t.docChanged&&t.changes.iterChanges((i,o,s,l)=>{l>=t.view.viewport.from&&s<=t.view.viewport.to&&(r=Math.min(s,r),a=Math.max(l,a))}),t.viewportMoved||a-r>1e3?this.createDeco(t.view):a>-1?this.updateRange(t.view,n.map(t.changes),r,a):n}updateRange(t,n,r,a){for(let i of t.visibleRanges){let o=Math.max(i.from,r),s=Math.min(i.to,a);if(s>=o){let l=t.state.doc.lineAt(o),c=l.tol.from;o--)if(this.boundary.test(l.text[o-1-l.from])){u=o;break}for(;sf.push(v.range(g,O));if(l==c)for(this.regexp.lastIndex=u-l.from;(m=this.regexp.exec(l.text))&&m.indexthis.addMatch(O,t,g,h));n=n.update({filterFrom:u,filterTo:d,filter:(g,O)=>gd,add:f})}}return n}}const Bz=/x/.unicode!=null?"gu":"g",NTt=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Bz),ITt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Z5=null;function MTt(){var e;if(Z5==null&&typeof document<"u"&&document.body){let t=document.body.style;Z5=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return Z5||!1}const M2=vn.define({combine(e){let t=Su(e,{render:null,specialChars:NTt,addSpecialChars:null});return(t.replaceTabs=!MTt())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,Bz)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Bz)),t}});function DTt(e={}){return[M2.of(e),LTt()]}let tle=null;function LTt(){return tle||(tle=vi.fromClass(class{constructor(e){this.view=e,this.decorations=Zn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(M2)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new ATt({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:a}=n.state,i=Ks(t[0],0);if(i==9){let o=a.lineAt(r),s=n.state.tabSize,l=Ou(o.text,s,r-o.from);return Zn.replace({widget:new FTt((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=Zn.replace({widget:new BTt(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(M2);e.startState.facet(M2)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const QTt="•";function zTt(e){return e>=32?QTt:e==10?"␤":String.fromCharCode(9216+e)}class BTt extends _u{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=zTt(this.code),r=t.state.phrase("Control character")+" "+(ITt[this.code]||"0x"+this.code.toString(16)),a=this.options.render&&this.options.render(this.code,r,n);if(a)return a;let i=document.createElement("span");return i.textContent=n,i.title=r,i.setAttribute("aria-label",r),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class FTt extends _u{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function UTt(){return XTt}const jTt=Zn.line({class:"cm-activeLine"}),XTt=vi.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let a=e.lineBlockAt(r.head);a.from>t&&(n.push(jTt.range(a.from)),t=a.from)}return Zn.set(n)}},{decorations:e=>e.decorations});let YTt=class extends _u{constructor(t){super(),this.content=t}toDOM(t){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(t):this.content.cloneNode(!0)),n.setAttribute("aria-hidden","true"),n}coordsAt(t){let n=t.firstChild?AS(t.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(t.parentNode),a=L_(n[0],r.direction!="rtl"),i=parseInt(r.lineHeight);return a.bottom-a.top>i*1.5?{left:a.left,right:a.right,top:a.top,bottom:a.top+i}:a}ignoreEvent(){return!1}};function VTt(e){let t=vi.fromClass(class{constructor(n){this.view=n,this.placeholder=e?Zn.set([Zn.widget({widget:new YTt(e),side:1}).range(0)]):Zn.none}get decorations(){return this.view.state.doc.length?Zn.none:this.placeholder}},{decorations:n=>n.decorations});return typeof e=="string"?[t,mn.contentAttributes.of({"aria-placeholder":e})]:t}const Fz=2e3;function qTt(e,t,n){let r=Math.min(t.line,n.line),a=Math.max(t.line,n.line),i=[];if(t.off>Fz||n.off>Fz||t.col<0||n.col<0){let o=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let l=r;l<=a;l++){let c=e.doc.line(l);c.length<=s&&i.push(_t.range(c.from+o,c.to+s))}}else{let o=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let l=r;l<=a;l++){let c=e.doc.line(l),u=yz(c.text,o,e.tabSize,!0);if(u<0)i.push(_t.cursor(c.to));else{let d=yz(c.text,s,e.tabSize);i.push(_t.range(c.from+u,c.from+d))}}}return i}function WTt(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function nle(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),a=n-r.from,i=a>Fz?-1:a==r.length?WTt(e,t.clientX):Ou(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:i,off:a}}function GTt(e,t){let n=nle(e,t),r=e.state.selection;return n?{update(a){if(a.docChanged){let i=a.changes.mapPos(a.startState.doc.line(n.line).from),o=a.state.doc.lineAt(i);n={line:o.number,col:n.col,off:Math.min(n.off,o.length)},r=r.map(a.changes)}},get(a,i,o){let s=nle(e,a);if(!s)return r;let l=qTt(e.state,n,s);return l.length?o?_t.create(l.concat(r.ranges)):_t.create(l):r}}:null}function HTt(e){let t=(n=>n.altKey&&n.button==0);return mn.mouseSelectionStyle.of((n,r)=>t(r)?GTt(n,r):null)}const ZTt={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},KTt={style:"cursor: crosshair"};function JTt(e={}){let[t,n]=ZTt[e.key||"Alt"],r=vi.fromClass(class{constructor(a){this.view=a,this.isDown=!1}set(a){this.isDown!=a&&(this.isDown=a,this.view.update([]))}},{eventObservers:{keydown(a){this.set(a.keyCode==t||n(a))},keyup(a){(a.keyCode==t||!n(a))&&this.set(!1)},mousemove(a){this.set(n(a))}}});return[r,mn.contentAttributes.of(a=>{var i;return!((i=a.plugin(r))===null||i===void 0)&&i.isDown?KTt:null})]}const Bw="-10000px";class oPe{constructor(t,n,r,a){this.facet=n,this.createTooltipView=r,this.removeTooltipView=a,this.input=t.state.facet(n),this.tooltips=this.input.filter(o=>o);let i=null;this.tooltipViews=this.tooltips.map(o=>i=r(o,i))}update(t,n){var r;let a=t.state.facet(this.facet),i=a.filter(l=>l);if(a===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let o=[],s=n?[]:null;for(let l=0;ln[c]=l),n.length=s.length),this.input=a,this.tooltips=i,this.tooltipViews=o,!0}}function ewt(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}const K5=vn.define({combine:e=>{var t,n,r;return{position:xn.ios?"absolute":((t=e.find(a=>a.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(a=>a.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(a=>a.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||ewt}}}),rle=new WeakMap,dY=vi.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(K5);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new oPe(e,pA,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(K5);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let a of this.manager.tooltipViews)a.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let a of this.manager.tooltipViews)this.container.appendChild(a.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let a=document.createElement("div");a.className="cm-tooltip-arrow",n.dom.appendChild(a)}return n.dom.style.position=this.position,n.dom.style.top=Bw,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,n=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(xn.safari){let o=i.getBoundingClientRect();n=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}else n=!!i.offsetParent&&i.offsetParent!=this.container.ownerDocument.body}if(n||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(e=i.width/this.parent.offsetWidth,t=i.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),a=sY(this.view);return{visible:{left:r.left+a.left,top:r.top+a.top,right:r.right-a.right,bottom:r.bottom-a.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((i,o)=>{let s=this.manager.tooltipViews[o];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(K5).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{visible:n,space:r,scaleX:a,scaleY:i}=e,o=[];for(let s=0;s=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1)){u.style.top=Bw;continue}let m=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,h=m?7:0,g=f.right-f.left,O=(t=rle.get(c))!==null&&t!==void 0?t:f.bottom-f.top,v=c.offset||nwt,y=this.view.textDirection==za.LTR,S=f.width>r.right-r.left?y?r.left:r.right-f.width:y?Math.max(r.left,Math.min(d.left-(m?14:0)+v.x,r.right-g)):Math.min(Math.max(r.left,d.left-g+(m?14:0)-v.x),r.right-g),C=this.above[s];!l.strictSide&&(C?d.top-O-h-v.yr.bottom)&&C==r.bottom-d.bottom>d.top-r.top&&(C=this.above[s]=!C);let _=(C?d.top-r.top:r.bottom-d.bottom)-h;if(_S&&A.topw&&(w=C?A.top-O-2-h:A.bottom+h+2);if(this.position=="absolute"?(u.style.top=(w-e.parent.top)/i+"px",ale(u,(S-e.parent.left)/a)):(u.style.top=w/i+"px",ale(u,S/a)),m){let A=d.left+(y?v.x:-v.x)-(S+14-7);m.style.left=A/a+"px"}c.overlap!==!0&&o.push({left:S,top:w,right:T,bottom:w+O}),u.classList.toggle("cm-tooltip-above",C),u.classList.toggle("cm-tooltip-below",!C),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Bw}},{eventObservers:{scroll(){this.maybeMeasure()}}});function ale(e,t){let n=parseInt(e.style.left,10);(isNaN(n)||Math.abs(t-n)>1)&&(e.style.left=t+"px")}const twt=mn.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),nwt={x:0,y:0},pA=vn.define({enables:[dY,twt]}),uR=vn.define({combine:e=>e.reduce((t,n)=>t.concat(n),[])});class mA{static create(t){return new mA(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new oPe(t,uR,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(t,n){let r=t.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}passProp(t){let n;for(let r of this.manager.tooltipViews){let a=r[t];if(a!==void 0){if(n===void 0)n=a;else if(n!==a)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const rwt=pA.compute([uR],e=>{let t=e.facet(uR);return t.length===0?null:{pos:Math.min(...t.map(n=>n.pos)),end:Math.max(...t.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:mA.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class awt{constructor(t,n,r,a,i){this.view=t,this.source=n,this.field=r,this.setHover=a,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let t=Date.now()-this.lastMove.time;ts.bottom||n.xs.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(a)).find(u=>u.from<=a&&u.to>=a),c=l&&l.dir==za.RTL?-1:1;i=n.x{this.pending==s&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>Ps(t.state,l,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let t=this.view.plugin(dY),n=t?t.manager.tooltips.findIndex(r=>r.create==mA.create):-1;return n>-1?t.manager.tooltipViews[n]:null}mousemove(t){var n,r;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:a,tooltip:i}=this;if(a.length&&i&&!iwt(i.dom,t)||this.pending){let{pos:o}=a[0]||this.pending,s=(r=(n=a[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:o;(o==s?this.view.posAtCoords(this.lastMove)!=o:!owt(this.view,o,s,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Fw=4;function iwt(e,t){let{left:n,right:r,top:a,bottom:i}=e.getBoundingClientRect(),o;if(o=e.querySelector(".cm-tooltip-arrow")){let s=o.getBoundingClientRect();a=Math.min(s.top,a),i=Math.max(s.bottom,i)}return t.clientX>=n-Fw&&t.clientX<=r+Fw&&t.clientY>=a-Fw&&t.clientY<=i+Fw}function owt(e,t,n,r,a,i){let o=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>r||o.righta||Math.min(o.bottom,s)=t&&l<=n}function swt(e,t={}){let n=_r.define(),r=fo.define({create(){return[]},update(a,i){if(a.length&&(t.hideOnChange&&(i.docChanged||i.selection)?a=[]:t.hideOn&&(a=a.filter(o=>!t.hideOn(i,o))),i.docChanged)){let o=[];for(let s of a){let l=i.changes.mapPos(s.pos,-1,Fo.TrackDel);if(l!=null){let c=Object.assign(Object.create(null),s);c.pos=l,c.end!=null&&(c.end=i.changes.mapPos(c.end)),o.push(c)}}a=o}for(let o of i.effects)o.is(n)&&(a=o.value),o.is(lwt)&&(a=[]);return a},provide:a=>uR.from(a)});return{active:r,extension:[r,vi.define(a=>new awt(a,e,r,n,t.hoverTime||300)),rwt]}}function sPe(e,t){let n=e.plugin(dY);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const lwt=_r.define(),ile=vn.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function fY(e,t){let n=e.plugin(lPe),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const lPe=vi.fromClass(class{constructor(e){this.input=e.state.facet(B_),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(ile);this.top=new Uw(e,!0,t.topContainer),this.bottom=new Uw(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(ile);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Uw(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Uw(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(B_);if(n!=this.input){let r=n.filter(l=>l),a=[],i=[],o=[],s=[];for(let l of r){let c=this.specs.indexOf(l),u;c<0?(u=l(e.view),s.push(u)):(u=this.panels[c],u.update&&u.update(e)),a.push(u),(u.top?i:o).push(u)}this.specs=r,this.panels=a,this.top.sync(i),this.bottom.sync(o);for(let l of s)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>mn.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Uw{constructor(t,n,r){this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let n of this.panels)n.destroy&&t.indexOf(n)<0&&n.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let t=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;t!=n.dom;)t=ole(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=ole(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function ole(e){let t=e.nextSibling;return e.remove(),t}const B_=vn.define({enables:lPe});function cwt(e,t){let n,r=new Promise(o=>n=o),a=o=>uwt(o,t,n);e.state.field(J5,!1)?e.dispatch({effects:cPe.of(a)}):e.dispatch({effects:_r.appendConfig.of(J5.init(()=>[a]))});let i=uPe.of(a);return{close:i,result:r.then(o=>((e.win.queueMicrotask||(l=>e.win.setTimeout(l,10)))(()=>{e.state.field(J5).indexOf(a)>-1&&e.dispatch({effects:i})}),o))}}const J5=fo.define({create(){return[]},update(e,t){for(let n of t.effects)n.is(cPe)?e=[n.value].concat(e):n.is(uPe)&&(e=e.filter(r=>r!=n.value));return e},provide:e=>B_.computeN([e],t=>t.field(e))}),cPe=_r.define(),uPe=_r.define();function uwt(e,t,n){let r=t.content?t.content(e,()=>o(null)):null;if(!r){if(r=Na("form"),t.input){let s=Na("input",t.input);/^(text|password|number|email|tel|url)$/.test(s.type)&&s.classList.add("cm-textfield"),s.name||(s.name="input"),r.appendChild(Na("label",(t.label||"")+": ",s))}else r.appendChild(document.createTextNode(t.label||""));r.appendChild(document.createTextNode(" ")),r.appendChild(Na("button",{class:"cm-button",type:"submit"},t.submitLabel||"OK"))}let a=r.nodeName=="FORM"?[r]:r.querySelectorAll("form");for(let s=0;s{c.keyCode==27?(c.preventDefault(),o(null)):c.keyCode==13&&(c.preventDefault(),o(l))}),l.addEventListener("submit",c=>{c.preventDefault(),o(l)})}let i=Na("div",r,Na("button",{onclick:()=>o(null),"aria-label":e.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));t.class&&(i.className=t.class),i.classList.add("cm-dialog");function o(s){i.contains(i.ownerDocument.activeElement)&&e.focus(),n(s)}return{dom:i,top:t.top,mount:()=>{if(t.focus){let s;typeof t.focus=="string"?s=r.querySelector(t.focus):s=r.querySelector("input")||r.querySelector("button"),s&&"select"in s?s.select():s&&"focus"in s&&s.focus()}}}}class md extends qp{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}md.prototype.elementClass="";md.prototype.toDOM=void 0;md.prototype.mapMode=Fo.TrackBefore;md.prototype.startSide=md.prototype.endSide=-1;md.prototype.point=!0;const D2=vn.define(),dwt=vn.define(),fwt={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>jr.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},MS=vn.define();function dPe(e){return[fPe(),MS.of({...fwt,...e})]}const sle=vn.define({combine:e=>e.some(t=>t)});function fPe(e){return[pwt]}const pwt=vi.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(MS).map(t=>new cle(e,t)),this.fixed=!e.state.facet(sle);for(let t of this.gutters)t.config.side=="after"?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}if(e.geometryChanged){let t=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=t,this.domAfter&&(this.domAfter.style.minHeight=t)}this.view.state.facet(sle)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=jr.iter(this.view.state.facet(D2),this.view.viewport.from),r=[],a=this.gutters.map(i=>new mwt(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(i.type)){let o=!0;for(let s of i.type)if(s.type==Uo.Text&&o){Uz(n,r,s.from);for(let l of a)l.line(this.view,s,r);o=!1}else if(s.widget)for(let l of a)l.widget(this.view,s)}else if(i.type==Uo.Text){Uz(n,r,i.from);for(let o of a)o.line(this.view,i,r)}else if(i.widget)for(let o of a)o.widget(this.view,i);for(let i of a)i.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(MS),n=e.state.facet(MS),r=e.docChanged||e.heightChanged||e.viewportChanged||!jr.eq(e.startState.facet(D2),e.state.facet(D2),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let a of this.gutters)a.update(e)&&(r=!0);else{r=!0;let a=[];for(let i of n){let o=t.indexOf(i);o<0?a.push(new cle(this.view,i)):(this.gutters[o].update(e),a.push(this.gutters[o]))}for(let i of this.gutters)i.dom.remove(),a.indexOf(i)<0&&i.destroy();for(let i of a)i.config.side=="after"?this.getDOMAfter().appendChild(i.dom):this.dom.appendChild(i.dom);this.gutters=a}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>mn.scrollMargins.of(t=>{let n=t.plugin(e);if(!n||n.gutters.length==0||!n.fixed)return null;let r=n.dom.offsetWidth*t.scaleX,a=n.domAfter?n.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==za.LTR?{left:r,right:a}:{right:r,left:a}})});function lle(e){return Array.isArray(e)?e:[e]}function Uz(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class mwt{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=jr.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:a}=this,i=(n.top-this.height)/t.scaleY,o=n.height/t.scaleY;if(this.i==a.elements.length){let s=new pPe(t,o,i,r);a.elements.push(s),a.dom.appendChild(s.dom)}else a.elements[this.i].update(t,o,i,r);this.height=n.bottom,this.i++}line(t,n,r){let a=[];Uz(this.cursor,a,n.from),r.length&&(a=a.concat(r));let i=this.gutter.config.lineMarker(t,n,a);i&&a.unshift(i);let o=this.gutter;a.length==0&&!o.config.renderEmptyElements||this.addElement(t,n,a)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n),a=r?[r]:null;for(let i of t.state.facet(dwt)){let o=i(t,n.widget,n);o&&(a||(a=[])).push(o)}a&&this.addElement(t,n,a)}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class cle{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,a=>{let i=a.target,o;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let l=i.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=a.clientY;let s=t.lineBlockAtHeight(o-t.documentTop);n.domEventHandlers[r](t,s,a)&&a.preventDefault()});this.markers=lle(n.markers(t)),n.initialSpacer&&(this.spacer=new pPe(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=lle(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let a=this.config.updateSpacer(this.spacer.markers[0],t);a!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[a])}let r=t.view.viewport;return!jr.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class pPe{constructor(t,n,r,a){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,a)}update(t,n,r,a){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),hwt(this.markers,a)||this.setMarkers(t,a)}setMarkers(t,n){let r="cm-gutterElement",a=this.dom.firstChild;for(let i=0,o=0;;){let s=o,l=ii(s,l,c)||o(s,l,c):o}return r}})}});class e3 extends md{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function t3(e,t){return e.state.facet(e0).formatNumber(t,e.state)}const bwt=MS.compute([e0],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(gwt)},lineMarker(t,n,r){return r.some(a=>a.toDOM)?null:new e3(t3(t,t.state.doc.lineAt(n.from).number))},widgetMarker:(t,n,r)=>{for(let a of t.state.facet(Owt)){let i=a(t,n,r);if(i)return i}return null},lineMarkerChange:t=>t.startState.facet(e0)!=t.state.facet(e0),initialSpacer(t){return new e3(t3(t,ule(t.state.doc.lines)))},updateSpacer(t,n){let r=t3(n.view,ule(n.view.state.doc.lines));return r==t.number?t:new e3(r)},domEventHandlers:e.facet(e0).domEventHandlers,side:"before"}));function vwt(e={}){return[e0.of(e),fPe(),bwt]}function ule(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let a=e.doc.lineAt(r.head).from;a>n&&(n=a,t.push(ywt.range(a)))}return jr.of(t)});function _wt(){return Swt}var n3;const vh=new Cr;function pY(e){return vn.define({combine:e?t=>t.concat(e):void 0})}const mY=new Cr;class Sc{constructor(t,n,r=[],a=""){this.data=t,this.name=a,Jr.prototype.hasOwnProperty("tree")||Object.defineProperty(Jr.prototype,"tree",{get(){return ka(this)}}),this.parser=n,this.extension=[Zp.of(this),Jr.languageData.of((i,o,s)=>{let l=dle(i,o,s),c=l.type.prop(vh);if(!c)return[];let u=i.facet(c),d=l.type.prop(mY);if(d){let f=l.resolve(o-l.from,s);for(let m of d)if(m.test(f,i)){let h=i.facet(m.facet);return m.type=="replace"?h:h.concat(u)}}return u})].concat(r)}isActiveAt(t,n,r=-1){return dle(t,n,r).type.prop(vh)==this.data}findRegions(t){let n=t.facet(Zp);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],a=(i,o)=>{if(i.prop(vh)==this.data){r.push({from:o,to:o+i.length});return}let s=i.prop(Cr.mounted);if(s){if(s.tree.prop(vh)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+o,to:l.to+o});else r.push({from:o,to:o+i.length});return}else if(s.overlay){let l=r.length;if(a(s.tree,s.overlay[0].from+o),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new Yl(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function ka(e){let t=e.field(Sc.state,!1);return t?t.tree:ya.empty}class Ewt{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let ny=null;class F_{constructor(t,n,r=[],a,i,o,s,l){this.parser=t,this.state=n,this.fragments=r,this.tree=a,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new F_(t,n,[],ya.empty,0,r,[],null)}startParse(){return this.parser.startParse(new Ewt(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=ya.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let a=Date.now()+t;t=()=>Date.now()>a}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(mf.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=ny;ny=this;try{return t()}finally{ny=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=fle(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:a,treeLen:i,viewport:o,skipped:s}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((c,u,d,f)=>l.push({fromA:c,toA:u,fromB:d,toB:f})),r=mf.applyChanges(r,l),a=ya.empty,i=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){s=[];for(let c of this.skipped){let u=t.mapPos(c.from,1),d=t.mapPos(c.to,-1);ut.from&&(this.fragments=fle(this.fragments,a,i),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends qX{createParse(n,r,a){let i=a[0].from,o=a[a.length-1].to;return{parsedPos:i,advance(){let l=ny;if(l){for(let c of a)l.tempSkipped.push(c);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=o,new ya(so.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return ny}}function fle(e,t,n){return mf.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class K0{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new K0(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=F_.create(t.facet(Zp).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new K0(r)}}Sc.state=fo.define({create:K0.init,update(e,t){for(let n of t.effects)if(n.is(Sc.setState))return n.value;return t.startState.facet(Zp)!=t.state.facet(Zp)?K0.init(t.state):e.apply(t)}});let mPe=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(mPe=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const r3=typeof navigator<"u"&&(!((n3=navigator.scheduling)===null||n3===void 0)&&n3.isInputPending)?()=>navigator.scheduling.isInputPending():null,xwt=vi.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let n=this.view.state.field(Sc.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:t}=this.view,n=t.field(Sc.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=mPe(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEnda+1e3,l=i.context.work(()=>r3&&r3()||Date.now()>o,a+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Sc.setState.of(new K0(i.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Ps(this.view.state,n)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Zp=vn.define({combine(e){return e.length?e[0]:null},enables:e=>[Sc.state,xwt,mn.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Cc{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class dR{constructor(t,n,r,a,i,o=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=a,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new dR(t.name,(t.alias||[]).concat(t.name).map(a=>a.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let a of t)if(a.filename&&a.filename.test(n))return a;let r=/\.([^.]+)$/.exec(n);if(r){for(let a of t)if(a.extensions.indexOf(r[1])>-1)return a}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let a of t)if(a.alias.some(i=>i==n))return a;if(r)for(let a of t)for(let i of a.alias){let o=n.indexOf(i);if(o>-1&&(i.length>2||!/\w/.test(n[o-1])&&!/\w/.test(n[o+i.length])))return a}return null}}const Twt=vn.define(),Xb=vn.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function fR(e){let t=e.facet(Xb);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function U_(e,t){let n="",r=e.tabSize,a=e.facet(Xb)[0];if(a==" "){for(;t>=r;)n+=" ",t-=r;a=" "}for(let i=0;i=t?wwt(e,n,t):null}class hA{constructor(t,n={}){this.state=t,this.options=n,this.unit=fR(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:a,simulateDoubleBreak:i}=this.options;return a!=null&&a>=r.from&&a<=r.to?i&&a==t?{text:"",from:t}:(n<0?a-1&&(i+=o-this.countColumn(r,r.search(/\S|$/))),i}countColumn(t,n=t.length){return Ou(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:a}=this.lineAt(t,n),i=this.options.overrideIndentation;if(i){let o=i(a);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Ic=new Cr;function wwt(e,t,n){let r=t.resolveStack(n),a=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(a!=r.node){let i=[];for(let o=a;o&&!(o.fromr.node.to||o.from==r.node.from&&o.type==r.node.type);o=o.parent)i.push(o);for(let o=i.length-1;o>=0;o--)r={node:i[o],next:r}}return hPe(r,e,n)}function hPe(e,t,n){for(let r=e;r;r=r.next){let a=$wt(r.node);if(a)return a(gY.create(t,n,r))}return 0}function Cwt(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function $wt(e){let t=e.type.prop(Ic);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Cr.closedBy))){let a=e.lastChild,i=a&&r.indexOf(a.name)>-1;return o=>gPe(o,!0,1,void 0,i&&!Cwt(o)?a.from:void 0)}return e.parent==null?Rwt:null}function Rwt(){return 0}class gY extends hA{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new gY(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(Pwt(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return hPe(this.context.next,this.base,this.pos)}}function Pwt(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function kwt(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let a=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),o=a==null||a<=i.from?i.to:Math.min(i.to,a);for(let s=n.to;;){let l=t.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let c=/^ */.exec(i.text.slice(n.to-i.from))[0].length;return{from:n.from,to:n.to+c}}s=l.to}}function od({closing:e,align:t=!0,units:n=1}){return r=>gPe(r,t,n,e)}function gPe(e,t,n,r,a){let i=e.textAfter,o=i.match(/^\s*/)[0].length,s=r&&i.slice(o,o+r.length)==r||a==e.pos+o,l=t?kwt(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const gA=e=>e.baseIndent;function jo({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const Awt=200;function Nwt(){return Jr.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,a=n.lineAt(r);if(r>a.from+Awt)return e;let i=n.sliceString(a.from,r);if(!t.some(c=>c.test(i)))return e;let{state:o}=e,s=-1,l=[];for(let{head:c}of o.selection.ranges){let u=o.doc.lineAt(c);if(u.from==s)continue;s=u.from;let d=hY(o,u.from);if(d==null)continue;let f=/^\s*/.exec(u.text)[0],m=U_(o,d);f!=m&&l.push({from:u.from,to:u.from+f.length,insert:m})}return l.length?[e,{changes:l,sequential:!0}]:e})}const OPe=vn.define(),Kl=new Cr;function Nf(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(i&&s.from=t&&c.to>n&&(i=c)}}return i}function Mwt(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function pR(e,t,n){for(let r of e.facet(OPe)){let a=r(e,t,n);if(a)return a}return Iwt(e,t,n)}function bPe(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const OA=_r.define({map:bPe}),px=_r.define({map:bPe});function vPe(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(r=>r.from<=n&&r.to>=n)||t.push(e.lineBlockAt(n));return t}const Zh=fo.define({create(){return Zn.none},update(e,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((n,r)=>e=ple(e,n,r)),e=e.map(t.changes);for(let n of t.effects)if(n.is(OA)&&!Dwt(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(_Pe),a=r?Zn.replace({widget:new jwt(r(t.state,n.value))}):mle;e=e.update({add:[a.range(n.value.from,n.value.to)]})}else n.is(px)&&(e=e.update({filter:(r,a)=>n.value.from!=r||n.value.to!=a,filterFrom:n.value.from,filterTo:n.value.to}));return t.selection&&(e=ple(e,t.selection.main.head)),e},provide:e=>mn.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,a)=>{n.push(r,a)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{at&&(r=!0)}),r?e.update({filterFrom:t,filterTo:n,filter:(a,i)=>a>=n||i<=t}):e}function mR(e,t,n){var r;let a=null;return(r=e.field(Zh,!1))===null||r===void 0||r.between(t,n,(i,o)=>{(!a||a.from>i)&&(a={from:i,to:o})}),a}function Dwt(e,t,n){let r=!1;return e.between(t,t,(a,i)=>{a==t&&i==n&&(r=!0)}),r}function yPe(e,t){return e.field(Zh,!1)?t:t.concat(_r.appendConfig.of(EPe()))}const Lwt=e=>{for(let t of vPe(e)){let n=pR(e.state,t.from,t.to);if(n)return e.dispatch({effects:yPe(e.state,[OA.of(n),SPe(e,n)])}),!0}return!1},Qwt=e=>{if(!e.state.field(Zh,!1))return!1;let t=[];for(let n of vPe(e)){let r=mR(e.state,n.from,n.to);r&&t.push(px.of(r),SPe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function SPe(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,a=e.state.doc.lineAt(t.to).number;return mn.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${a}.`)}const zwt=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(Zh,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,a)=>{n.push(px.of({from:r,to:a}))}),e.dispatch({effects:n}),!0},Fwt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Lwt},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Qwt},{key:"Ctrl-Alt-[",run:zwt},{key:"Ctrl-Alt-]",run:Bwt}],Uwt={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},_Pe=vn.define({combine(e){return Su(e,Uwt)}});function EPe(e){return[Zh,Vwt]}function xPe(e,t){let{state:n}=e,r=n.facet(_Pe),a=o=>{let s=e.lineBlockAt(e.posAtDOM(o.target)),l=mR(e.state,s.from,s.to);l&&e.dispatch({effects:px.of(l)}),o.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,a,t);let i=document.createElement("span");return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=a,i}const mle=Zn.replace({widget:new class extends _u{toDOM(e){return xPe(e,null)}}});class jwt extends _u{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return xPe(t,this.value)}}const Xwt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class a3 extends md{constructor(t,n){super(),this.config=t,this.open=n}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=t.state.phrase(this.open?"Fold line":"Unfold line"),n}}function Ywt(e={}){let t={...Xwt,...e},n=new a3(t,!0),r=new a3(t,!1),a=vi.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Zp)!=o.state.facet(Zp)||o.startState.field(Zh,!1)!=o.state.field(Zh,!1)||ka(o.startState)!=ka(o.state)||t.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let s=new _f;for(let l of o.viewportLineBlocks){let c=mR(o.state,l.from,l.to)?r:pR(o.state,l.from,l.to)?n:null;c&&s.add(l.from,l.from,c)}return s.finish()}}),{domEventHandlers:i}=t;return[a,dPe({class:"cm-foldGutter",markers(o){var s;return((s=o.plugin(a))===null||s===void 0?void 0:s.markers)||jr.empty},initialSpacer(){return new a3(t,!1)},domEventHandlers:{...i,click:(o,s,l)=>{if(i.click&&i.click(o,s,l))return!0;let c=mR(o.state,s.from,s.to);if(c)return o.dispatch({effects:px.of(c)}),!0;let u=pR(o.state,s.from,s.to);return u?(o.dispatch({effects:OA.of(u)}),!0):!1}}}),EPe()]}const Vwt=mn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Yb{constructor(t,n){this.specs=t;let r;function a(s){let l=Wp.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const i=typeof n.all=="string"?n.all:n.all?a(n.all):void 0,o=n.scope;this.scope=o instanceof Sc?s=>s.prop(vh)==o.data:o?s=>s==o:void 0,this.style=U$e(t.map(s=>({tag:s.tag,class:s.class||a(Object.assign({},s,{tag:null}))})),{all:i}).style,this.module=r?new Wp(r):null,this.themeType=n.themeType}static define(t,n){return new Yb(t,n||{})}}const jz=vn.define(),TPe=vn.define({combine(e){return e.length?[e[0]]:null}});function i3(e){let t=e.facet(jz);return t.length?t:e.facet(TPe)}function OY(e,t){let n=[Wwt],r;return e instanceof Yb&&(e.module&&n.push(mn.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(TPe.of(e)):r?n.push(jz.computeN([mn.darkTheme],a=>a.facet(mn.darkTheme)==(r=="dark")?[e]:[])):n.push(jz.of(e)),n}class qwt{constructor(t){this.markCache=Object.create(null),this.tree=ka(t.state),this.decorations=this.buildDeco(t,i3(t.state)),this.decoratedTo=t.viewport.to}update(t){let n=ka(t.state),r=i3(t.state),a=r!=i3(t.startState),{viewport:i}=t.view,o=t.changes.mapPos(this.decoratedTo,1);n.length=i.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(n!=this.tree||t.viewportChanged||a)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=i.to)}buildDeco(t,n){if(!n||!this.tree.length)return Zn.none;let r=new _f;for(let{from:a,to:i}of t.visibleRanges)j1t(this.tree,n,(o,s,l)=>{r.add(o,s,this.markCache[l]||(this.markCache[l]=Zn.mark({class:l})))},a,i);return r.finish()}}const Wwt=Af.high(vi.fromClass(qwt,{decorations:e=>e.decorations})),Gwt=Yb.define([{tag:G.meta,color:"#404740"},{tag:G.link,textDecoration:"underline"},{tag:G.heading,textDecoration:"underline",fontWeight:"bold"},{tag:G.emphasis,fontStyle:"italic"},{tag:G.strong,fontWeight:"bold"},{tag:G.strikethrough,textDecoration:"line-through"},{tag:G.keyword,color:"#708"},{tag:[G.atom,G.bool,G.url,G.contentSeparator,G.labelName],color:"#219"},{tag:[G.literal,G.inserted],color:"#164"},{tag:[G.string,G.deleted],color:"#a11"},{tag:[G.regexp,G.escape,G.special(G.string)],color:"#e40"},{tag:G.definition(G.variableName),color:"#00f"},{tag:G.local(G.variableName),color:"#30a"},{tag:[G.typeName,G.namespace],color:"#085"},{tag:G.className,color:"#167"},{tag:[G.special(G.variableName),G.macroName],color:"#256"},{tag:G.definition(G.propertyName),color:"#00c"},{tag:G.comment,color:"#940"},{tag:G.invalid,color:"#f00"}]),Hwt=mn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),wPe=1e4,CPe="()[]{}",$Pe=vn.define({combine(e){return Su(e,{afterCursor:!0,brackets:CPe,maxScanDistance:wPe,renderMatch:Jwt})}}),Zwt=Zn.mark({class:"cm-matchingBracket"}),Kwt=Zn.mark({class:"cm-nonmatchingBracket"});function Jwt(e){let t=[],n=e.matched?Zwt:Kwt;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}function hle(e){let t=[],n=e.facet($Pe);for(let r of e.selection.ranges){if(!r.empty)continue;let a=Ju(e,r.head,-1,n)||r.head>0&&Ju(e,r.head-1,1,n)||n.afterCursor&&(Ju(e,r.head,1,n)||r.heade.decorations}),tCt=[eCt,Hwt];function nCt(e={}){return[$Pe.of(e),tCt]}const RPe=new Cr;function Xz(e,t,n){let r=e.prop(t<0?Cr.openedBy:Cr.closedBy);if(r)return r;if(e.name.length==1){let a=n.indexOf(e.name);if(a>-1&&a%2==(t<0?1:0))return[n[a+t]]}return null}function Yz(e){let t=e.type.prop(RPe);return t?t(e.node):e}function Ju(e,t,n,r={}){let a=r.maxScanDistance||wPe,i=r.brackets||CPe,o=ka(e),s=o.resolveInner(t,n);for(let l=s;l;l=l.parent){let c=Xz(l.type,n,i);if(c&&l.from0?t>=u.from&&tu.from&&t<=u.to))return rCt(e,t,n,l,u,c,i)}}return aCt(e,t,n,o,s.type,a,i)}function rCt(e,t,n,r,a,i,o){let s=r.parent,l={from:a.from,to:a.to},c=0,u=s==null?void 0:s.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(c==0&&i.indexOf(u.type.name)>-1&&u.from0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let f=0;!u.next().done&&f<=i;){let m=u.value;n<0&&(f+=m.length);let h=t+f*n;for(let g=n>0?0:m.length-1,O=n>0?m.length:-1;g!=O;g+=n){let v=o.indexOf(m[g]);if(!(v<0||r.resolveInner(h+g,1).type!=a))if(v%2==0==n>0)d++;else{if(d==1)return{start:c,end:{from:h+g,to:h+g+1},matched:v>>1==l>>1};d--}}n>0&&(f+=m.length)}return u.done?{start:c,matched:!1}:null}const iCt=Object.create(null),gle=[so.none],Ole=[],ble=Object.create(null),oCt=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])oCt[e]=sCt(iCt,t);function o3(e,t){Ole.indexOf(e)>-1||(Ole.push(e),console.warn(t))}function sCt(e,t){let n=[];for(let s of t.split(" ")){let l=[];for(let c of s.split(".")){let u=e[c]||G[c];u?typeof u=="function"?l.length?l=l.map(u):o3(c,`Modifier ${c} used at start of tag`):l.length?o3(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:o3(c,`Unknown highlighting tag ${c}`)}for(let c of l)n.push(c)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),a=r+" "+n.map(s=>s.id),i=ble[a];if(i)return i.id;let o=ble[a]=so.define({id:gle.length,name:r,props:[Zl({[r]:n})]});return gle.push(o),o.id}za.RTL,za.LTR;const lCt=Yl.define({name:"cpp",parser:fEt.configure({props:[Ic.add({IfStatement:jo({except:/^\s*({|else\b)/}),TryStatement:jo({except:/^\s*({|catch)\b/}),LabeledStatement:gA,CaseStatement:e=>e.baseIndent+e.unit,BlockComment:()=>null,CompoundStatement:od({closing:"}"}),Statement:jo({except:/^{/})}),Kl.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":Nf,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function cCt(){return new Cc(lCt)}const uCt=122,vle=1,dCt=123,fCt=124,PPe=2,pCt=125,mCt=3,hCt=4,kPe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],gCt=58,OCt=40,APe=95,bCt=91,L2=45,vCt=46,yCt=35,SCt=37,_Ct=38,ECt=92,xCt=10,TCt=42;function j_(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function bY(e){return e>=48&&e<=57}function yle(e){return bY(e)||e>=97&&e<=102||e>=65&&e<=70}const NPe=(e,t,n)=>(r,a)=>{for(let i=!1,o=0,s=0;;s++){let{next:l}=r;if(j_(l)||l==L2||l==APe||i&&bY(l))!i&&(l!=L2||s>0)&&(i=!0),o===s&&l==L2&&o++,r.advance();else if(l==ECt&&r.peek(1)!=xCt){if(r.advance(),yle(r.next)){do r.advance();while(yle(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();i=!0}else{i&&r.acceptToken(o==2&&a.canShift(PPe)?t:l==OCt?n:e);break}}},wCt=new Da(NPe(dCt,PPe,fCt)),CCt=new Da(NPe(pCt,mCt,hCt)),$Ct=new Da(e=>{if(kPe.includes(e.peek(-1))){let{next:t}=e;(j_(t)||t==APe||t==yCt||t==vCt||t==TCt||t==bCt||t==gCt&&j_(e.peek(1))||t==L2||t==_Ct)&&e.acceptToken(uCt)}}),RCt=new Da(e=>{if(!kPe.includes(e.peek(-1))){let{next:t}=e;if(t==SCt&&(e.advance(),e.acceptToken(vle)),j_(t)){do e.advance();while(j_(e.next)||bY(e.next));e.acceptToken(vle)}}}),PCt=Zl({"AtKeyword import charset namespace keyframes media supports":G.definitionKeyword,"from to selector":G.keyword,NamespaceName:G.namespace,KeyframeName:G.labelName,KeyframeRangeName:G.operatorKeyword,TagName:G.tagName,ClassName:G.className,PseudoClassName:G.constant(G.className),IdName:G.labelName,"FeatureName PropertyName":G.propertyName,AttributeName:G.attributeName,NumberLiteral:G.number,KeywordQuery:G.keyword,UnaryQueryOp:G.operatorKeyword,"CallTag ValueName":G.atom,VariableName:G.variableName,Callee:G.operatorKeyword,Unit:G.unit,"UniversalSelector NestingSelector":G.definitionOperator,"MatchOp CompareOp":G.compareOperator,"ChildOp SiblingOp, LogicOp":G.logicOperator,BinOp:G.arithmeticOperator,Important:G.modifier,Comment:G.blockComment,ColorLiteral:G.color,"ParenthesizedContent StringLiteral":G.string,":":G.punctuation,"PseudoOp #":G.derefOperator,"; ,":G.separator,"( )":G.paren,"[ ]":G.squareBracket,"{ }":G.brace}),kCt={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},ACt={__proto__:null,or:98,and:98,not:106,only:106,layer:170},NCt={__proto__:null,selector:112,layer:166},ICt={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},MCt={__proto__:null,to:207},DCt=Xl.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]O'tQhO'#EcO(VQdO'#EeO(bQaO'#CfO)VQ`O'#D{O)[Q`O'#F`O)gQdO'#F`QOQ`OOP)qO&jO'#CaPOOO)C@t)C@tOOQP'#Cj'#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO'#ErO*XQ`O,58}O*aQdO'#DzOOQS,58},58}OOQP'#Cn'#CnOOQO'#Dn'#DnOOQP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%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj:wU!a`Oy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!hO[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!hyS!^YOy%Qz;'S%Q;'S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;'S%Q;'S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;'S%Q;'S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!hkCt[e]||-1},{term:125,get:e=>ACt[e]||-1},{term:4,get:e=>NCt[e]||-1},{term:25,get:e=>ICt[e]||-1},{term:123,get:e=>MCt[e]||-1}],tokenPrec:1963});let s3=null;function l3(){if(!s3&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));s3=t.sort().map(r=>({type:"property",label:r,apply:r+": "}))}return s3||[]}const Sle=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),_le=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),LCt=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),QCt=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),Ud=/^(\w[\w-]*|-\w[\w-]*|)$/,zCt=/^-(-[\w-]*)?$/;function BCt(e,t){var n;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(n=e.parent)===null||n===void 0?void 0:n.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:t.sliceString(r.from,r.to)=="var"}const Ele=new oA,FCt=["Declaration"];function UCt(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function IPe(e,t,n){if(t.to-t.from>4096){let r=Ele.get(t);if(r)return r;let a=[],i=new Set,o=t.cursor(fa.IncludeAnonymous);if(o.firstChild())do for(let s of IPe(e,o.node,n))i.has(s.label)||(i.add(s.label),a.push(s));while(o.nextSibling());return Ele.set(t,a),a}else{let r=[],a=new Set;return t.cursor().iterate(i=>{var o;if(n(i)&&i.matchContext(FCt)&&((o=i.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let s=e.sliceString(i.from,i.to);a.has(s)||(a.add(s),r.push({label:s,type:"variable"}))}}),r}}const jCt=e=>t=>{let{state:n,pos:r}=t,a=ka(n).resolveInner(r,-1),i=a.type.isError&&a.from==a.to-1&&n.doc.sliceString(a.from,a.to)=="-";if(a.name=="PropertyName"||(i||a.name=="TagName")&&/^(Block|Styles)$/.test(a.resolve(a.to).name))return{from:a.from,options:l3(),validFor:Ud};if(a.name=="ValueName")return{from:a.from,options:_le,validFor:Ud};if(a.name=="PseudoClassName")return{from:a.from,options:Sle,validFor:Ud};if(e(a)||(t.explicit||i)&&BCt(a,n.doc))return{from:e(a)||i?a.from:r,options:IPe(n.doc,UCt(a),e),validFor:zCt};if(a.name=="TagName"){for(let{parent:l}=a;l;l=l.parent)if(l.name=="Block")return{from:a.from,options:l3(),validFor:Ud};return{from:a.from,options:LCt,validFor:Ud}}if(a.name=="AtKeyword")return{from:a.from,options:QCt,validFor:Ud};if(!t.explicit)return null;let o=a.resolve(r),s=o.childBefore(r);return s&&s.name==":"&&o.name=="PseudoClassSelector"?{from:r,options:Sle,validFor:Ud}:s&&s.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:r,options:_le,validFor:Ud}:o.name=="Block"||o.name=="Styles"?{from:r,options:l3(),validFor:Ud}:null},XCt=jCt(e=>e.name=="VariableName"),hR=Yl.define({name:"css",parser:DCt.configure({props:[Ic.add({Declaration:jo()}),Kl.add({"Block KeyframeList":Nf})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function MPe(){return new Cc(hR,hR.data.of({autocomplete:XCt}))}const YCt=177,VCt=179,qCt=184,WCt=12,GCt=13,HCt=17,ZCt=20,KCt=25,JCt=53,e2t=95,t2t=142,n2t=144,r2t=145,a2t=148,i2t=10,o2t=13,s2t=32,l2t=9,xle=47,c2t=41,u2t=125,d2t=new Da((e,t)=>{for(let n=0,r=e.next;(t.context&&(r<0||r==i2t||r==o2t||r==xle&&e.peek(n+1)==xle)||r==c2t||r==u2t)&&e.acceptToken(YCt),!(r!=s2t&&r!=l2t);)r=e.peek(++n)},{contextual:!0});let f2t=new Set([e2t,qCt,ZCt,WCt,HCt,n2t,r2t,t2t,a2t,GCt,JCt,KCt]);const p2t=new lx({start:!1,shift:(e,t)=>t==VCt?e:f2t.has(t)}),m2t=Zl({"func interface struct chan map const type var":G.definitionKeyword,"import package":G.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":G.controlKeyword,range:G.keyword,Bool:G.bool,String:G.string,Rune:G.character,Number:G.number,Nil:G.null,VariableName:G.variableName,DefName:G.definition(G.variableName),TypeName:G.typeName,LabelName:G.labelName,FieldName:G.propertyName,"FunctionDecl/DefName":G.function(G.definition(G.variableName)),"TypeSpec/DefName":G.definition(G.typeName),"CallExpr/VariableName":G.function(G.variableName),LineComment:G.lineComment,BlockComment:G.blockComment,LogicOp:G.logicOperator,ArithOp:G.arithmeticOperator,BitOp:G.bitwiseOperator,"DerefOp .":G.derefOperator,"UpdateOp IncDecOp":G.updateOperator,CompareOp:G.compareOperator,"= :=":G.definitionOperator,"<-":G.operator,'~ "*"':G.modifier,"; ,":G.separator,"... :":G.punctuation,"( )":G.paren,"[ ]":G.squareBracket,"{ }":G.brace}),h2t={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296,defer:300},g2t=Xl.deserialize({version:14,states:"!=xO#{QQOOP$SOQOOO&UQTO'#CbO&]QRO'#FlO]QQOOOOQP'#Cn'#CnOOQP'#Co'#CoO&eQQO'#C|O(kQQO'#C{O)]QRO'#GiO+tQQO'#D_OOQP'#Ge'#GeO+{QQO'#GeO.aQTO'#GaO.hQQO'#D`OOQP'#Gm'#GmO.mQRO'#GdO/hQQO'#DgOOQP'#Gd'#GdO/uQQO'#DrO2bQQO'#DsO4QQTO'#GqO,^QTO'#GaO4XQQO'#DxO4^QQO'#D{OOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETO4cQQO'#EPO5}QQO'#EPOOQP'#Ga'#GaO6UQQO'#E`O6^QQO'#EcOOQP'#G`'#G`O6cQQO'#EsOOQP'#G_'#G_O&]QRO'#FnOOQO'#Fn'#FnO9QQQO'#G^QOQQOOO&]QROOO9XQQO'#C`O9^QSO'#CdO9lQQO'#C}O9tQQO'#DSO9yQQO'#D[O:kQQO'#CsO:pQQO'#DhO:uQQO'#EeO:}QQO'#EiO;VQQO'#EoO;_QQO'#EuOPQSO7+%hOOQP7+%h7+%hO4cQQO7+%hOOQP1G0Q1G0QO!>^QQO1G0QOOQP1G0U1G0UO!>fQQO1G0UOF|QQO1G0UOOQO,5nAN>nO4cQQOAN>nO!IsQSOAN>nOOQP<nQQO'#FrOOQO,5vAN>vO!LtQQOAN>vP.hQQO'#F|OOQPG25XG25XO!LyQQOG25bO!MOQQO'#FPOOQPG25bG25bO!MZQQOG25bOOQPLD)tLD)tOO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|,}-O-P-Q-^S!gW-]Q!nYS#{!O-_Q$u!hS%T!t+jS%X!z-UQ%n#e[%o#h#|$x-V-W-XW%w#u'})|*wU&P#v$v,h[&X#y&](S([(o*QQ&f$PQ&h$QQ&n$TQ&r$WS'h%W-YS'i%Y-ZW'l%a(|+R+lS'{%x%yQ(Q&OQ(Y&WQ(d&`Q(p&mU)k'e)l*pQ)z'|Q*[(cS*^(i-[Q+P*`R-c-dS#w|!pS$w!j-TQ&T#xQ(R&QQ(W&UR(X&VT%|#u&OhqOScw!U!V#O#k#n&|'Y+gU$Q!R$R&jU$W!T$X&uQ$e!WY%y#u&O'})|*wQ)`']V-S'W)W*kS&[#y&]S*R(S(oR*z*QY&Y#y&](S(o*QR*W(['``OSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dS&_#}&dW(S&S*S*|+^Q(e&bQ(o&lR*x*PS%U!t*`R+q+jR%S!qQ#PcQ(}&|Q)Z'YR+n+ghpOScw!U!V#O#k#n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"⚠ LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:p2t,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[m2t],skippedNodes:[0,1,2,153],repeatNodeCount:23,tokenData:":b~RvXY#iYZ#i]^#ipq#iqr#zrs$Xuv&Pvw&^wx&yxy(qyz(vz{({{|)T|})e}!O)j!O!P)u!P!Q+}!Q!R,y!R![-t![!]2^!]!^2k!^!_2p!_!`3]!`!a3e!c!}3x!}#O4j#P#Q4o#Q#R4t#R#S4|#S#T9X#T#o3x#o#p9q#p#q9v#q#r:W#r#s:]$g;'S3x;'S;=`4d<%lO3x~#nS$y~XY#iYZ#i]^#ipq#iU$PP%hQ!_!`$SS$XO!|S~$^W[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y<%lO$X~${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]#^+r#d#e*tQ1YR!Q![0k!c!i0k#T#Z0kQ1hWaQ!O!P0k!Q![1c!c!i1c!r!s*t#R#S2Q#T#Z1c#]#^+r#d#e*tQ2TR!Q![1c!c!i1c#T#Z1c~2cP!a~!_!`2f~2kO#W~~2pOV~~2uR!|S}!O3O!^!_3T!_!`$S~3TO!Q~~3YP%m~!_!`&X~3bP#T~!_!`$S~3jQ!|S!_!`$S!`!a3p~3uP%n~!_!`&X~3}V%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~4gP;=`<%l3x~4oO!W~~4tO!V~~4yP%i~!_!`&X~5RV%O~!Q![5h!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~5o^aQ%O~!O!P*`!Q![5h!c!g3x!g!h6k!h!}3x#R#S4|#T#X3x#X#Y6k#Y#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~6pX%O~{|+T}!O+T!Q![7]!c!}3x#R#S8P#T#o3x$g;'S3x;'S;=`4d<%lO3x~7dXaQ%O~!Q![7]!c!}3x#R#S8P#T#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~8UV%O~!Q![7]!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~8rVaQ%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~9[TO#S9X#S#T$v#T;'S9X;'S;=`9k<%lO9X~9nP;=`<%l9X~9vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[d2t,1,2,new q0("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:e=>h2t[e]||-1}],tokenPrec:5451});class vY{constructor(t,n,r,a){this.state=t,this.pos=n,this.explicit=r,this.view=a,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let n=ka(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),a=n.text.slice(r-n.from,this.pos-n.from),i=a.search(DPe(t,!1));return i<0?null:{from:r+i,to:this.pos,text:a.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(t,n,r){t=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function Tle(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function O2t(e){let t=Object.create(null),n=Object.create(null);for(let{label:a}of e){t[a[0]]=!0;for(let i=1;itypeof a=="string"?{label:a}:a),[n,r]=t.every(a=>/^\w+$/.test(a.label))?[/\w*$/,/\w+$/]:O2t(t);return a=>{let i=a.matchBefore(r);return i||a.explicit?{from:i?i.from:a.pos,options:t,validFor:n}:null}}function yY(e,t){return n=>{for(let r=ka(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(e.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return t(n)}}class wle{constructor(t,n,r,a){this.completion=t,this.source=n,this.match=r,this.score=a}}function kh(e){return e.selection.main.from}function DPe(e,t){var n;let{source:r}=e,a=t&&r[0]!="^",i=r[r.length-1]!="$";return!a&&!i?e:new RegExp(`${a?"^":""}(?:${r})${i?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const SY=wd.define();function b2t(e,t,n,r){let{main:a}=e.selection,i=n-a.from,o=r-a.from;return{...e.changeByRange(s=>{if(s!=a&&n!=r&&e.sliceDoc(s.from+i,s.from+o)!=e.sliceDoc(n,r))return{range:s};let l=e.toText(t);return{changes:{from:s.from+i,to:r==a.from?s.to:s.from+o,insert:l},range:_t.cursor(s.from+i+l.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const Cle=new WeakMap;function v2t(e){if(!Array.isArray(e))return e;let t=Cle.get(e);return t||Cle.set(e,t=bA(e)),t}const gR=_r.define(),X_=_r.define();class y2t{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&_<=57||_>=97&&_<=122?2:_>=65&&_<=90?1:0:(w=GX(_))!=w.toLowerCase()?1:w!=w.toUpperCase()?2:0;(!y||T==1&&O||C==0&&T!=0)&&(n[d]==_||r[d]==_&&(f=!0)?o[d++]=y:o.length&&(v=!1)),C=T,y+=Wu(_)}return d==l&&o[0]==0&&v?this.result(-100+(f?-200:0),o,t):m==l&&h==0?this.ret(-200-t.length+(g==t.length?0:-100),[0,g]):s>-1?this.ret(-700-t.length,[s,s+this.pattern.length]):m==l?this.ret(-900-t.length,[h,g]):d==l?this.result(-100+(f?-200:0)+-700+(v?0:-1100),o,t):n.length==2?null:this.result((a[0]?-700:0)+-200+-1100,a,t)}result(t,n,r){let a=[],i=0;for(let o of n){let s=o+(this.astral?Wu(Ks(r,o)):1);i&&a[i-1]==o?a[i-1]=s:(a[i++]=o,a[i++]=s)}return this.ret(t-r.length,a)}}class S2t{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:_2t,filterStrict:!1,compareCompletions:(t,n)=>(t.sortText||t.label).localeCompare(n.sortText||n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>r=>$le(t(r),n(r)),optionClass:(t,n)=>r=>$le(t(r),n(r)),addToOptions:(t,n)=>t.concat(n),filterStrict:(t,n)=>t||n})}});function $le(e,t){return e?t?e+" "+t:e:t}function _2t(e,t,n,r,a,i){let o=e.textDirection==za.RTL,s=o,l=!1,c="top",u,d,f=t.left-a.left,m=a.right-t.right,h=r.right-r.left,g=r.bottom-r.top;if(s&&f=g||y>t.top?u=n.bottom-t.top:(c="bottom",u=t.bottom-n.top)}let O=(t.bottom-t.top)/i.offsetHeight,v=(t.right-t.left)/i.offsetWidth;return{style:`${c}: ${u/O}px; max-width: ${d/v}px`,class:"cm-completionInfo-"+(l?o?"left-narrow":"right-narrow":s?"left":"right")}}const _Y=_r.define();function E2t(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(a=>"cm-completionIcon-"+a)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,a,i){let o=document.createElement("span");o.className="cm-completionLabel";let s=n.displayLabel||n.label,l=0;for(let c=0;cl&&o.appendChild(document.createTextNode(s.slice(l,u)));let f=o.appendChild(document.createElement("span"));f.appendChild(document.createTextNode(s.slice(u,d))),f.className="cm-completionMatchedText",l=d}return ln.position-r.position).map(n=>n.render)}function c3(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let a=Math.floor(t/n);return{from:a*n,to:(a+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class x2t{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let a=t.state.field(n),{options:i,selected:o}=a.open,s=t.state.facet(So);this.optionContent=E2t(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=c3(i.length,o,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:c}=t.state.field(n).open;for(let u=l.target,d;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(d=/-(\d+)$/.exec(u.id))&&+d[1]this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;u!=null&&(t.dispatch({effects:_Y.of(u)}),l.preventDefault())}}),this.dom.addEventListener("focusout",l=>{let c=t.state.field(this.stateField,!1);c&&c.tooltip&&t.state.facet(So).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:X_.of(null)})}),this.showOptions(i,a.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),a=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=a){let{options:i,selected:o,disabled:s}=r.open;(!a.open||a.open.options!=i)&&(this.range=c3(i.length,o,t.state.facet(So).maxRenderedOptions),this.showOptions(i,r.id)),this.updateSel(),s!=((n=a.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;(n.selected>-1&&n.selected=this.range.to)&&(this.range=c3(n.options.length,n.selected,this.view.state.facet(So).maxRenderedOptions),this.showOptions(n.options,t.id));let r=this.updateSelectedOption(n.selected);if(r){this.destroyInfo();let{completion:a}=n.options[n.selected],{info:i}=a;if(!i)return;let o=typeof i=="string"?document.createTextNode(i):i(a);if(!o)return;"then"in o?o.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,a)}).catch(s=>Ps(this.view.state,s,"completion info")):(this.addInfoPane(o,a),r.setAttribute("aria-describedby",this.info.id))}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",r.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:a,destroy:i}=t;r.appendChild(a),this.infoDestroy=i||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,a=this.range.from;r;r=r.nextSibling,a++)r.nodeName!="LI"||!r.id?a--:a==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&(r.removeAttribute("aria-selected"),r.removeAttribute("aria-describedby"));return n&&w2t(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),a=t.getBoundingClientRect(),i=this.space;if(!i){let o=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight}}return a.top>Math.min(i.bottom,n.bottom)-10||a.bottom{o.target==a&&o.preventDefault()});let i=null;for(let o=r.from;or.from||r.from==0))if(i=f,typeof c!="string"&&c.header)a.appendChild(c.header(c));else{let m=a.appendChild(document.createElement("completion-section"));m.textContent=f}}const u=a.appendChild(document.createElement("li"));u.id=n+"-"+o,u.setAttribute("role","option");let d=this.optionClass(s);d&&(u.className=d);for(let f of this.optionContent){let m=f(s,this.view.state,this.view,l);m&&u.appendChild(m)}}return r.from&&a.classList.add("cm-completionListIncompleteTop"),r.tonew x2t(n,e,t)}function w2t(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/a)}function Rle(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function C2t(e,t){let n=[],r=null,a=null,i=u=>{n.push(u);let{section:d}=u.completion;if(d){r||(r=[]);let f=typeof d=="string"?d:d.name;r.some(m=>m.name==f)||r.push(typeof d=="string"?{name:f}:d)}},o=t.facet(So);for(let u of e)if(u.hasResult()){let d=u.result.getMatch;if(u.result.filter===!1)for(let f of u.result.options)i(new wle(f,u.source,d?d(f):[],1e9-n.length));else{let f=t.sliceDoc(u.from,u.to),m,h=o.filterStrict?new S2t(f):new y2t(f);for(let g of u.result.options)if(m=h.match(g.label)){let O=g.displayLabel?d?d(g,m.matched):[]:m.matched,v=m.score+(g.boost||0);if(i(new wle(g,u.source,O,v)),typeof g.section=="object"&&g.section.rank==="dynamic"){let{name:y}=g.section;a||(a=Object.create(null)),a[y]=Math.max(v,a[y]||-1e9)}}}}if(r){let u=Object.create(null),d=0,f=(m,h)=>(m.rank==="dynamic"&&h.rank==="dynamic"?a[h.name]-a[m.name]:0)||(typeof m.rank=="number"?m.rank:1e9)-(typeof h.rank=="number"?h.rank:1e9)||(m.namef.score-d.score||c(d.completion,f.completion))){let d=u.completion;!l||l.label!=d.label||l.detail!=d.detail||l.type!=null&&d.type!=null&&l.type!=d.type||l.apply!=d.apply||l.boost!=d.boost?s.push(u):Rle(u.completion)>Rle(l)&&(s[s.length-1]=u),l=u.completion}return s}class t0{constructor(t,n,r,a,i,o){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=a,this.selected=i,this.disabled=o}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new t0(this.options,Ple(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,a,i,o){if(a&&!o&&t.some(c=>c.isPending))return a.setDisabled();let s=C2t(t,n);if(!s.length)return a&&t.some(c=>c.isPending)?a.setDisabled():null;let l=n.facet(So).selectOnOpen?0:-1;if(a&&a.selected!=l&&a.selected!=-1){let c=a.options[a.selected].completion;for(let u=0;uu.hasResult()?Math.min(c,u.from):c,1e8),create:N2t,above:i.aboveCursor},a?a.timestamp:Date.now(),l,!1)}map(t){return new t0(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new t0(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class OR{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new OR(k2t,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(So),i=(r.override||n.languageDataAt("autocomplete",kh(n)).map(v2t)).map(l=>(this.active.find(u=>u.source==l)||new _c(l,this.active.some(u=>u.state!=0)?1:0)).update(t,r));i.length==this.active.length&&i.every((l,c)=>l==this.active[c])&&(i=this.active);let o=this.open,s=t.effects.some(l=>l.is(EY));o&&t.docChanged&&(o=o.map(t.changes)),t.selection||i.some(l=>l.hasResult()&&t.changes.touchesRange(l.from,l.to))||!$2t(i,this.active)||s?o=t0.build(i,n,this.id,o,r,s):o&&o.disabled&&!i.some(l=>l.isPending)&&(o=null),!o&&i.every(l=>!l.isPending)&&i.some(l=>l.hasResult())&&(i=i.map(l=>l.hasResult()?new _c(l.source,0):l));for(let l of t.effects)l.is(_Y)&&(o=o&&o.setSelected(l.value,this.id));return i==this.active&&o==this.open?this:new OR(i,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?R2t:P2t}}function $2t(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const k2t=[];function LPe(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(SY);if(r&&t.activateOnCompletion(r))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class _c{constructor(t,n,r=!1){this.source=t,this.state=n,this.explicit=r}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let r=LPe(t,n),a=this;(r&8||r&16&&this.touches(t))&&(a=new _c(a.source,0)),r&4&&a.state==0&&(a=new _c(this.source,1)),a=a.updateFor(t,r);for(let i of t.effects)if(i.is(gR))a=new _c(a.source,1,i.value);else if(i.is(X_))a=new _c(a.source,0);else if(i.is(EY))for(let o of i.value)o.source==a.source&&(a=o);return a}updateFor(t,n){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(kh(t.state))}}class y0 extends _c{constructor(t,n,r,a,i,o){super(t,3,n),this.limit=r,this.result=a,this.from=i,this.to=o}hasResult(){return!0}updateFor(t,n){var r;if(!(n&3))return this.map(t.changes);let a=this.result;a.map&&!t.changes.empty&&(a=a.map(a,t.changes));let i=t.changes.mapPos(this.from),o=t.changes.mapPos(this.to,1),s=kh(t.state);if(s>o||!a||n&2&&(kh(t.startState)==this.from||sn.map(t))}}),Js=fo.define({create(){return OR.start()},update(e,t){return e.update(t)},provide:e=>[pA.from(e,t=>t.tooltip),mn.contentAttributes.from(e,t=>t.attrs)]});function xY(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Js).active.find(a=>a.source==t.source);return r instanceof y0?(typeof n=="string"?e.dispatch({...b2t(e.state,n,r.from,r.to),annotations:SY.of(t.completion)}):n(e,t.completion,r.from,r.to),!0):!1}const N2t=T2t(Js,xY);function jw(e,t="option"){return n=>{let r=n.state.field(Js,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+a*(e?1:-1):e?0:o-1;return s<0?s=t=="page"?0:o-1:s>=o&&(s=t=="page"?o-1:0),n.dispatch({effects:_Y.of(s)}),!0}}const I2t=e=>{let t=e.state.field(Js,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(Js,!1)?(e.dispatch({effects:gR.of(!0)}),!0):!1,M2t=e=>{let t=e.state.field(Js,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:X_.of(null)}),!0)};class D2t{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const L2t=50,Q2t=1e3,z2t=vi.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(Js).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(Js),n=e.state.facet(So);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Js)==t)return;let r=e.transactions.some(i=>{let o=LPe(i,n);return o&8||(i.selection||i.docChanged)&&!(o&3)});for(let i=0;iL2t&&Date.now()-o.time>Q2t){for(let s of o.context.abortListeners)try{s()}catch(l){Ps(this.view.state,l)}o.context.abortListeners=null,this.running.splice(i--,1)}else o.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(i=>i.effects.some(o=>o.is(gR)))&&(this.pendingStart=!0);let a=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(i=>i.isPending&&!this.running.some(o=>o.active.source==i.source))?setTimeout(()=>this.startUpdate(),a):-1,this.composing!=0)for(let i of e.transactions)i.isUserEvent("input.type")?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(Js);for(let n of t.active)n.isPending&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(So).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=kh(t),r=new vY(t,n,e.explicit,this.view),a=new D2t(e,r);this.running.push(a),Promise.resolve(e.source(r)).then(i=>{a.context.aborted||(a.done=i||null,this.scheduleAccept())},i=>{this.view.dispatch({effects:X_.of(null)}),Ps(this.view.state,i)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(So).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(So),r=this.view.state.field(Js);for(let a=0;as.source==i.active.source);if(o&&o.isPending)if(i.done==null){let s=new _c(i.active.source,0);for(let l of i.updates)s=s.update(l,n);s.isPending||t.push(s)}else this.startQuery(o)}(t.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:EY.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Js,!1);if(t&&t.tooltip&&this.view.state.facet(So).closeOnBlur){let n=t.open&&sPe(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:X_.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:gR.of(!1)}),20),this.composing=0}}}),B2t=typeof navigator=="object"&&/Win/.test(navigator.platform),F2t=Af.highest(mn.domEventHandlers({keydown(e,t){let n=t.state.field(Js,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(B2t&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],a=n.active.find(o=>o.source==r.source),i=r.completion.commitCharacters||a.result.commitCharacters;return i&&i.indexOf(e.key)>-1&&xY(t,r),!1}})),QPe=mn.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class U2t{constructor(t,n,r,a){this.field=t,this.line=n,this.from=r,this.to=a}}class TY{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Fo.TrackDel),r=t.mapPos(this.to,1,Fo.TrackDel);return n==null||r==null?null:new TY(this.field,n,r)}}class wY{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],a=[n],i=t.doc.lineAt(n),o=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(r.length){let c=o,u=/^\t*/.exec(l)[0].length;for(let d=0;dnew TY(l.field,a[l.line]+l.from,a[l.line]+l.to));return{text:r,ranges:s}}static parse(t){let n=[],r=[],a=[],i;for(let o of t.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let s=i[1]?+i[1]:null,l=i[2]||i[3]||"",c=-1,u=l.replace(/\\[{}]/g,d=>d[1]);for(let d=0;d=c&&f.field++}for(let d of a)if(d.line==r.length&&d.from>i.index){let f=i[2]?3+(i[1]||"").length:2;d.from-=f,d.to-=f}a.push(new U2t(c,r.length,i.index,i.index+u.length)),o=o.slice(0,i.index)+l+o.slice(i.index+i[0].length)}o=o.replace(/\\([{}])/g,(s,l,c)=>{for(let u of a)u.line==r.length&&u.from>c&&(u.from--,u.to--);return l}),r.push(o)}return new wY(r,a)}}let j2t=Zn.widget({widget:new class extends _u{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),X2t=Zn.mark({class:"cm-snippetField"});class Vb{constructor(t,n){this.ranges=t,this.active=n,this.deco=Zn.set(t.map(r=>(r.from==r.to?j2t:X2t).range(r.from,r.to)),!0)}map(t){let n=[];for(let r of this.ranges){let a=r.map(t);if(!a)return null;n.push(a)}return new Vb(n,this.active)}selectionInsideField(t){return t.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const mx=_r.define({map(e,t){return e&&e.map(t)}}),Y2t=_r.define(),Y_=fo.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(mx))return n.value;if(n.is(Y2t)&&e)return new Vb(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>mn.decorations.from(e,t=>t?t.deco:Zn.none)});function CY(e,t){return _t.create(e.filter(n=>n.field==t).map(n=>_t.range(n.from,n.to)))}function V2t(e){let t=wY.parse(e);return(n,r,a,i)=>{let{text:o,ranges:s}=t.instantiate(n.state,a),{main:l}=n.state.selection,c={changes:{from:a,to:i==l.from?l.to:i,insert:pa.of(o)},scrollIntoView:!0,annotations:r?[SY.of(r),Ui.userEvent.of("input.complete")]:void 0};if(s.length&&(c.selection=CY(s,0)),s.some(u=>u.field>0)){let u=new Vb(s,0),d=c.effects=[mx.of(u)];n.state.field(Y_,!1)===void 0&&d.push(_r.appendConfig.of([Y_,Z2t,K2t,QPe]))}n.dispatch(n.state.update(c))}}function zPe(e){return({state:t,dispatch:n})=>{let r=t.field(Y_,!1);if(!r||e<0&&r.active==0)return!1;let a=r.active+e,i=e>0&&!r.ranges.some(o=>o.field==a+e);return n(t.update({selection:CY(r.ranges,a),effects:mx.of(i?null:new Vb(r.ranges,a)),scrollIntoView:!0})),!0}}const q2t=({state:e,dispatch:t})=>e.field(Y_,!1)?(t(e.update({effects:mx.of(null)})),!0):!1,W2t=zPe(1),G2t=zPe(-1),H2t=[{key:"Tab",run:W2t,shift:G2t},{key:"Escape",run:q2t}],kle=vn.define({combine(e){return e.length?e[0]:H2t}}),Z2t=Af.highest(jb.compute([kle],e=>e.facet(kle)));function Yr(e,t){return{...t,apply:V2t(e)}}const K2t=mn.domEventHandlers({mousedown(e,t){let n=t.state.field(Y_,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let a=n.ranges.find(i=>i.from<=r&&i.to>=r);return!a||a.field==n.active?!1:(t.dispatch({selection:CY(n.ranges,a.field),effects:mx.of(n.ranges.some(i=>i.field>a.field)?new Vb(n.ranges,a.field):null),scrollIntoView:!0}),!0)}}),V_={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},yh=_r.define({map(e,t){let n=t.mapPos(e,-1,Fo.TrackAfter);return n??void 0}}),$Y=new class extends qp{};$Y.startSide=1;$Y.endSide=-1;const BPe=fo.define({create(){return jr.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of t.effects)n.is(yh)&&(e=e.update({add:[$Y.range(n.value,n.value+1)]}));return e}});function J2t(){return[t$t,BPe]}const d3="()[]{}<>«»»«[]{}";function FPe(e){for(let t=0;t{if((e$t?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let a=e.state.selection.main;if(r.length>2||r.length==2&&Wu(Ks(r,0))==1||t!=a.from||n!=a.to)return!1;let i=a$t(e.state,r);return i?(e.dispatch(i),!0):!1}),n$t=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=UPe(e,e.selection.main.head).brackets||V_.brackets,a=null,i=e.changeByRange(o=>{if(o.empty){let s=i$t(e.doc,o.head);for(let l of r)if(l==s&&vA(e.doc,o.head)==FPe(Ks(l,0)))return{changes:{from:o.head-l.length,to:o.head+l.length},range:_t.cursor(o.head-l.length)}}return{range:a=o}});return a||t(e.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!a},r$t=[{key:"Backspace",run:n$t}];function a$t(e,t){let n=UPe(e,e.selection.main.head),r=n.brackets||V_.brackets;for(let a of r){let i=FPe(Ks(a,0));if(t==a)return i==a?l$t(e,a,r.indexOf(a+a+a)>-1,n):o$t(e,a,i,n.before||V_.before);if(t==i&&jPe(e,e.selection.main.from))return s$t(e,a,i)}return null}function jPe(e,t){let n=!1;return e.field(BPe).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function vA(e,t){let n=e.sliceString(t,t+2);return n.slice(0,Wu(Ks(n,0)))}function i$t(e,t){let n=e.sliceString(t-2,t);return Wu(Ks(n,0))==n.length?n:n.slice(1)}function o$t(e,t,n,r){let a=null,i=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:yh.of(o.to+t.length),range:_t.range(o.anchor+t.length,o.head+t.length)};let s=vA(e.doc,o.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:o.head},effects:yh.of(o.head+t.length),range:_t.cursor(o.head+t.length)}:{range:a=o}});return a?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function s$t(e,t,n){let r=null,a=e.changeByRange(i=>i.empty&&vA(e.doc,i.head)==n?{changes:{from:i.head,to:i.head+n.length,insert:n},range:_t.cursor(i.head+n.length)}:r={range:i});return r?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function l$t(e,t,n,r){let a=r.stringPrefixes||V_.stringPrefixes,i=null,o=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:yh.of(s.to+t.length),range:_t.range(s.anchor+t.length,s.head+t.length)};let l=s.head,c=vA(e.doc,l),u;if(c==t){if(Ale(e,l))return{changes:{insert:t+t,from:l},effects:yh.of(l+t.length),range:_t.cursor(l+t.length)};if(jPe(e,l)){let f=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+f.length,insert:f},range:_t.cursor(l+f.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(u=Nle(e,l-2*t.length,a))>-1&&Ale(e,u))return{changes:{insert:t+t+t+t,from:l},effects:yh.of(l+t.length),range:_t.cursor(l+t.length)};if(e.charCategorizer(l)(c)!=si.Word&&Nle(e,l,a)>-1&&!c$t(e,l,t,a))return{changes:{insert:t+t,from:l},effects:yh.of(l+t.length),range:_t.cursor(l+t.length)}}return{range:i=s}});return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Ale(e,t){let n=ka(e).resolveInner(t+1);return n.parent&&n.from==t}function c$t(e,t,n,r){let a=ka(e).resolveInner(t,-1),i=r.reduce((o,s)=>Math.max(o,s.length),0);for(let o=0;o<5;o++){let s=e.sliceDoc(a.from,Math.min(a.to,a.from+n.length+i)),l=s.indexOf(n);if(!l||l>-1&&r.indexOf(s.slice(0,l))>-1){let u=a.firstChild;for(;u&&u.from==a.from&&u.to-u.from>n.length+l;){if(e.sliceDoc(u.to-n.length,u.to)==n)return!1;u=u.firstChild}return!0}let c=a.to==t&&a.parent;if(!c)break;a=c}return!1}function Nle(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=si.Word)return t;for(let a of n){let i=t-a.length;if(e.sliceDoc(i,t)==a&&r(e.sliceDoc(i-1,i))!=si.Word)return i}return-1}function u$t(e={}){return[F2t,Js,So.of(e),z2t,d$t,QPe]}const XPe=[{key:"Ctrl-Space",run:u3},{mac:"Alt-`",run:u3},{mac:"Alt-i",run:u3},{key:"Escape",run:M2t},{key:"ArrowDown",run:jw(!0)},{key:"ArrowUp",run:jw(!1)},{key:"PageDown",run:jw(!0,"page")},{key:"PageUp",run:jw(!1,"page")},{key:"Enter",run:I2t}],d$t=Af.highest(jb.computeN([So],e=>e.facet(So).defaultKeymap?[XPe]:[])),f$t=[Yr("func ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"declaration",type:"keyword"}),Yr("func (${receiver}) ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),Yr("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),Yr("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),Yr("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),Yr("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),Yr("for ${init}; ${test}; ${update} {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Yr("for ${i} := range ${value} {\n ${}\n}",{label:"for",detail:"range",type:"keyword"}),Yr(`select { +`])),function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix});function I_(e){"@babel/helpers - typeof";return I_=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},I_(e)}var B1t=["description","descriptionClassName","descriptionStyle","children"];function pse(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 Pw(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Y1t(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var fx=function(t){var n=t.description,r=t.descriptionClassName,a=t.descriptionStyle,i=t.children,o=X1t(t,B1t),s=Si(),l=s.antPrefix,c=s.sparkPrefix,u=z1t(),d={marginLeft:"24px",marginTop:"6px",fontSize:"12px",color:"var(--".concat(l,"-color-text-tertiary)")};return x.jsxs(x.Fragment,{children:[x.jsx(u,{}),x.jsxs("div",{className:"".concat(c,"-checkbox"),children:[x.jsx(Hp,Pw(Pw({},o),{},{children:i})),n&&x.jsx("div",{className:r,style:Pw(Pw({},d),a),children:n})]})]})};fx.Group=Hp.Group;const cRe=1024;let V1t=0,vc=class{constructor(t,n){this.from=t,this.to=n}};class Cr{constructor(t={}){this.id=V1t++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=oo.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Cr.closedBy=new Cr({deserialize:e=>e.split(" ")});Cr.openedBy=new Cr({deserialize:e=>e.split(" ")});Cr.group=new Cr({deserialize:e=>e.split(" ")});Cr.isolate=new Cr({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Cr.contextHash=new Cr({perNode:!0});Cr.lookAhead=new Cr({perNode:!0});Cr.mounted=new Cr({perNode:!0});class v0{constructor(t,n,r,a=!1){this.tree=t,this.overlay=n,this.parser=r,this.bracketed=a}static get(t){return t&&t.props&&t.props[Cr.mounted.id]}}const q1t=Object.create(null);class oo{constructor(t,n,r,a=0){this.name=t,this.props=n,this.id=r,this.flags=a}static define(t){let n=t.props&&t.props.length?Object.create(null):q1t,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),a=new oo(t.name||"",n,t.id,r);if(t.props){for(let i of t.props)if(Array.isArray(i)||(i=i(a)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[i[0].id]=i[1]}}return a}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Cr.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let a of r.split(" "))n[a]=t[r];return r=>{for(let a=r.prop(Cr.group),i=-1;i<(a?a.length:0);i++){let o=n[i<0?r.name:a[i]];if(o)return o}}}}oo.none=new oo("",Object.create(null),0,8);class px{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(o|pa.IncludeAnonymous);;){let c=!1;if(l.from<=i&&l.to>=a&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;c=!0}for(;c&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;c=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:gY(oo.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,a)=>new Sa(this.type,n,r,a,this.propValues),t.makeTree||((n,r,a)=>new Sa(oo.none,n,r,a)))}static build(t){return Z1t(t)}}Sa.empty=new Sa(oo.none,[],[],0);class mY{constructor(t,n){this.buffer=t,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new mY(this.buffer,this.index)}}class Jp{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return oo.none}toString(){let t=[];for(let n=0;n0));l=o[l+3]);return s}slice(t,n,r){let a=this.buffer,i=new Uint16Array(n-t),o=0;for(let s=t,l=0;s=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function M_(e,t,n,r){for(var a;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?s.length:-1;t!=c;t+=n){let u=s[t],d=l[t]+o.from,f;if(!(!(i&pa.EnterBracketed&&u instanceof Sa&&(f=v0.get(u))&&!f.overlay&&f.bracketed&&r>=d&&r<=d+u.length)&&!uRe(a,r,d,d+u.length))){if(u instanceof Jp){if(i&pa.ExcludeBuffers)continue;let m=u.findChild(0,u.buffer.length,n,r-d,a);if(m>-1)return new rd(new W1t(o,u,t,d),null,m)}else if(i&pa.IncludeAnonymous||!u.type.isAnonymous||hY(u)){let m;if(!(i&pa.IgnoreMounts)&&(m=v0.get(u))&&!m.overlay)return new is(m.tree,d,t,o);let h=new is(u,d,t,o);return i&pa.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?u.children.length-1:0,n,r,a,i)}}}if(i&pa.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+n:t=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,n,r=0){let a;if(!(r&pa.IgnoreOverlays)&&(a=v0.get(this._tree))&&a.overlay){let i=t-this.from,o=r&pa.EnterBracketed&&a.bracketed;for(let{from:s,to:l}of a.overlay)if((n>0||o?s<=i:s=i:l>i))return new is(a.tree,a.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,n,r)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function hse(e,t,n,r){let a=e.cursor(),i=[];if(!a.firstChild())return i;if(n!=null){for(let o=!1;!o;)if(o=a.type.is(n),!a.nextSibling())return i}for(;;){if(r!=null&&a.type.is(r))return i;if(a.type.is(t)&&i.push(a.node),!a.nextSibling())return r==null?i:[]}}function Ez(e,t,n=t.length-1){for(let r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class W1t{constructor(t,n,r,a){this.parent=t,this.buffer=n,this.index=r,this.start=a}}class rd extends dRe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:a}=this.context,i=a.findChild(this.index+4,a.buffer[this.index+3],t,n-this.context.start,r);return i<0?null:new rd(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}prop(t){return this.type.prop(t)}enter(t,n,r=0){if(r&pa.ExcludeBuffers)return null;let{buffer:a}=this.context,i=a.findChild(this.index+4,a.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return i<0?null:new rd(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new rd(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new rd(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,a=this.index+4,i=r.buffer[this.index+3];if(i>a){let o=r.buffer[this.index+1];t.push(r.slice(a,i,o)),n.push(0)}return new Sa(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function fRe(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;in.from||o.to=t){let s=new is(o.tree,o.overlay[0].from+i.from,-1,i);(a||(a=[r])).push(M_(s,t,n,!1))}}return a?fRe(a):r}class lR{get name(){return this.type.name}constructor(t,n=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=n&~pa.EnterBracketed,t instanceof is)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,n){this.index=t;let{start:r,buffer:a}=this.buffer;return this.type=n||a.set.types[a.buffer[t]],this.from=r+a.buffer[t+1],this.to=r+a.buffer[t+2],!0}yield(t){return t?t instanceof is?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:a}=this.buffer,i=a.findChild(this.index+4,a.buffer[this.index+3],t,n-this.buffer.start,r);return i<0?!1:(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&pa.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&pa.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&pa.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let a=r<0?0:this.stack[r]+4;if(this.index!=a)return this.yieldBuf(n.findChild(a,this.index,-1,0,4))}else{let a=n.buffer[this.index+3];if(a<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(a)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:a}=this;if(a){if(t>0){if(this.index-1)for(let i=n+t,o=t<0?-1:r._tree.children.length;i!=o;i+=t){let s=r._tree.children[i];if(this.mode&pa.IncludeAnonymous||s instanceof Jp||!s.type.isAnonymous||hY(s))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let o=t;o;o=o._parent)if(o.index==a){if(a==this.index)return o;n=o,r=i+1;break e}a=this.stack[--i]}for(let a=r;a=0;i--){if(i<0)return Ez(this._tree,t,a);let o=r[n.buffer[this.stack[i]]];if(!o.isAnonymous){if(t[a]&&t[a]!=o.name)return!1;a--}}return!0}}function hY(e){return e.children.some(t=>t instanceof Jp||!t.type.isAnonymous||hY(t))}function Z1t(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:a=cRe,reused:i=[],minRepeatType:o=r.types.length}=e,s=Array.isArray(n)?new mY(n,n.length):n,l=r.types,c=0,u=0;function d(_,w,T,k,A,I){let{id:M,start:Q,end:B,size:D}=s,U=u,R=c;if(D<0)if(s.next(),D==-1){let L=i[M];T.push(L),k.push(Q-_);return}else if(D==-3){c=M;return}else if(D==-4){u=M;return}else throw new RangeError(`Unrecognized record size: ${D}`);let $=l[M],P,z,F=Q-_;if(B-Q<=a&&(z=O(s.pos-w,A))){let L=new Uint16Array(z.size-z.skip),X=s.pos-z.size,Y=L.length;for(;s.pos>X;)Y=v(z.start,L,Y);P=new Jp(L,B-z.start,r),F=z.start-_}else{let L=s.pos-D;s.next();let X=[],Y=[],q=M>=o?M:-1,G=0,ee=B;for(;s.pos>L;)q>=0&&s.id==q&&s.size>=0?(s.end<=ee-a&&(h(X,Y,Q,G,s.end,ee,q,U,R),G=X.length,ee=s.end),s.next()):I>2500?f(Q,L,X,Y):d(Q,L,X,Y,q,I+1);if(q>=0&&G>0&&G-1&&G>0){let K=m($,R);P=gY($,X,Y,0,X.length,0,B-Q,K,K)}else P=g($,X,Y,B-Q,U-B,R)}T.push(P),k.push(F)}function f(_,w,T,k){let A=[],I=0,M=-1;for(;s.pos>w;){let{id:Q,start:B,end:D,size:U}=s;if(U>4)s.next();else{if(M>-1&&B=0;D-=3)Q[U++]=A[D],Q[U++]=A[D+1]-B,Q[U++]=A[D+2]-B,Q[U++]=U;T.push(new Jp(Q,A[2]-B,r)),k.push(B-_)}}function m(_,w){return(T,k,A)=>{let I=0,M=T.length-1,Q,B;if(M>=0&&(Q=T[M])instanceof Sa){if(!M&&Q.type==_&&Q.length==A)return Q;(B=Q.prop(Cr.lookAhead))&&(I=k[M]+Q.length+B)}return g(_,T,k,A,I,w)}}function h(_,w,T,k,A,I,M,Q,B){let D=[],U=[];for(;_.length>k;)D.push(_.pop()),U.push(w.pop()+T-A);_.push(g(r.types[M],D,U,I-A,Q-I,B)),w.push(A-T)}function g(_,w,T,k,A,I,M){if(I){let Q=[Cr.contextHash,I];M=M?[Q].concat(M):[Q]}if(A>25){let Q=[Cr.lookAhead,A];M=M?[Q].concat(M):[Q]}return new Sa(_,w,T,k,M)}function O(_,w){let T=s.fork(),k=0,A=0,I=0,M=T.end-a,Q={size:0,start:0,skip:0};e:for(let B=T.pos-_;T.pos>B;){let D=T.size;if(T.id==w&&D>=0){Q.size=k,Q.start=A,Q.skip=I,I+=4,k+=4,T.next();continue}let U=T.pos-D;if(D<0||U=o?4:0,$=T.start;for(T.next();T.pos>U;){if(T.size<0)if(T.size==-3||T.size==-4)R+=4;else break e;else T.id>=o&&(R+=4);T.next()}A=$,k+=D,I+=R}return(w<0||k==_)&&(Q.size=k,Q.start=A,Q.skip=I),Q.size>4?Q:void 0}function v(_,w,T){let{id:k,start:A,end:I,size:M}=s;if(s.next(),M>=0&&k4){let B=s.pos-(M-4);for(;s.pos>B;)T=v(_,w,T)}w[--T]=Q,w[--T]=I-_,w[--T]=A-_,w[--T]=k}else M==-3?c=k:M==-4&&(u=k);return T}let y=[],S=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,y,S,-1,0);let C=(t=e.length)!==null&&t!==void 0?t:y.length?S[0]+y[0].length:0;return new Sa(l[e.topID],y.reverse(),S.reverse(),C)}const gse=new WeakMap;function D2(e,t){if(!e.isAnonymous||t instanceof Jp||t.type!=e)return 1;let n=gse.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Sa)){n=1;break}n+=D2(e,r)}gse.set(t,n)}return n}function gY(e,t,n,r,a,i,o,s,l){let c=0;for(let h=r;h=u)break;w+=T}if(S==C+1){if(w>u){let T=h[C];m(T.children,T.positions,0,T.children.length,g[C]+y);continue}d.push(h[C])}else{let T=g[S-1]+h[S-1].length-_;d.push(gY(e,h,g,C,S,_,T,null,l))}f.push(_+y-i)}}return m(t,n,r,a,0),(s||l)(d,f,o)}class bA{constructor(){this.map=new WeakMap}setBuffer(t,n,r){let a=this.map.get(t);a||this.map.set(t,a=new Map),a.set(n,r)}getBuffer(t,n){let r=this.map.get(t);return r&&r.get(n)}set(t,n){t instanceof rd?this.setBuffer(t.context.buffer,t.index,n):t instanceof is&&this.map.set(t.tree,n)}get(t){return t instanceof rd?this.getBuffer(t.context.buffer,t.index):t instanceof is?this.map.get(t.tree):void 0}cursorSet(t,n){t.buffer?this.setBuffer(t.buffer.buffer,t.index,n):this.map.set(t.tree,n)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class yf{constructor(t,n,r,a,i=!1,o=!1){this.from=t,this.to=n,this.tree=r,this.offset=a,this.open=(i?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let a=[new yf(0,t.length,t,0,!1,r)];for(let i of n)i.to>t.length&&a.push(i);return a}static applyChanges(t,n,r=128){if(!n.length)return t;let a=[],i=1,o=t.length?t[0]:null;for(let s=0,l=0,c=0;;s++){let u=s=r)for(;o&&o.from=f.from||d<=f.to||c){let m=Math.max(f.from,l)-c,h=Math.min(f.to,d)-c;f=m>=h?null:new yf(m,h,f.tree,f.offset+c,s>0,!!u)}if(f&&a.push(f),o.to>d)break;o=inew vc(a.from,a.to)):[new vc(0,0)]:[new vc(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let a=this.startParse(t,n,r);for(;;){let i=a.advance();if(i)return i}}};class K1t{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,n){return this.string.slice(t,n)}}function bY(e){return(t,n,r,a)=>new eEt(t,e,n,r,a)}class Ose{constructor(t,n,r,a,i,o){this.parser=t,this.parse=n,this.overlay=r,this.bracketed=a,this.target=i,this.from=o}}function bse(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class J1t{constructor(t,n,r,a,i,o,s,l){this.parser=t,this.predicate=n,this.mounts=r,this.index=a,this.start=i,this.bracketed=o,this.target=s,this.prev=l,this.depth=0,this.ranges=[]}}const xz=new Cr({perNode:!0});class eEt{constructor(t,n,r,a,i){this.nest=n,this.input=r,this.fragments=a,this.ranges=i,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let a of this.inner)a.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new Sa(r.type,r.children,r.positions,r.length,r.propValues.concat([[xz,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[Cr.mounted.id]=new v0(n,t.overlay,t.parser,t.bracketed),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n=this.stoppedAt)s=!1;else if(t.hasNode(a)){if(n){let c=n.mounts.find(u=>u.frag.from<=a.from&&u.frag.to>=a.to&&u.mount.overlay);if(c)for(let u of c.mount.overlay){let d=u.from+c.pos,f=u.to+c.pos;d>=a.from&&f<=a.to&&!n.ranges.some(m=>m.fromd)&&n.ranges.push({from:d,to:f})}}s=!1}else if(r&&(o=tEt(r.ranges,a.from,a.to)))s=o!=2;else if(!a.type.isAnonymous&&(i=this.nest(a,this.input))&&(a.fromnew vc(d.from-a.from,d.to-a.from)):null,!!i.bracketed,a.tree,u.length?u[0].from:a.from)),i.overlay?u.length&&(r={ranges:u,depth:0,prev:r}):s=!1}}else if(n&&(l=n.predicate(a))&&(l===!0&&(l=new vc(a.from,a.to)),l.from=0&&n.ranges[c].to==l.from?n.ranges[c]={from:n.ranges[c].from,to:l.to}:n.ranges.push(l)}if(s&&a.firstChild())n&&n.depth++,r&&r.depth++;else for(;!a.nextSibling();){if(!a.parent())break e;if(n&&!--n.depth){let c=Sse(this.ranges,n.ranges);c.length&&(bse(c),this.inner.splice(n.index,0,new Ose(n.parser,n.parser.startParse(this.input,_se(n.mounts,c),c),n.ranges.map(u=>new vc(u.from-n.start,u.to-n.start)),n.bracketed,n.target,c[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function tEt(e,t,n){for(let r of e){if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}function vse(e,t,n,r,a,i){if(t=t&&n.enter(r,1,pa.IgnoreOverlays|pa.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof Sa)n=n.children[0];else break}return!1}}let rEt=class{constructor(t){var n;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let r=this.curFrag=t[0];this.curTo=(n=r.tree.prop(xz))!==null&&n!==void 0?n:r.to,this.inner=new yse(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(t=n.tree.prop(xz))!==null&&t!==void 0?t:n.to,this.inner=new yse(n.tree,-n.offset)}}findMounts(t,n){var r;let a=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let i=this.inner.cursor.node;i;i=i.parent){let o=(r=i.tree)===null||r===void 0?void 0:r.prop(Cr.mounted);if(o&&o.parser==n)for(let s=this.fragI;s=i.to)break;l.tree==this.curFrag.tree&&a.push({frag:l,pos:i.from-l.offset,mount:o})}}}return a}};function Sse(e,t){let n=null,r=t;for(let a=1,i=0;a=s)break;l.to<=o||(n||(r=n=t.slice()),l.froms&&n.splice(i+1,0,new vc(s,l.to))):l.to>s?n[i--]=new vc(s,l.to):n.splice(i--,1))}}return r}function aEt(e,t,n,r){let a=0,i=0,o=!1,s=!1,l=-1e9,c=[];for(;;){let u=a==e.length?1e9:o?e[a].to:e[a].from,d=i==t.length?1e9:s?t[i].to:t[i].from;if(o!=s){let f=Math.max(l,n),m=Math.min(u,d,r);fnew vc(f.from+r,f.to+r)),d=aEt(t,u,l,c);for(let f=0,m=l;;f++){let h=f==d.length,g=h?c:d[f].from;if(g>m&&n.push(new yf(m,g,a.tree,-o,i.from>=m||i.openStart,i.to<=g||i.openEnd)),h)break;m=d[f].to}}else n.push(new yf(l,c,a.tree,-o,i.from>=o||i.openStart,i.to<=s||i.openEnd))}return n}var Ese={};let iEt=class Tz{constructor(t,n,r,a,i,o,s,l,c,u=0,d){this.p=t,this.stack=n,this.state=r,this.reducePos=a,this.pos=i,this.score=o,this.buffer=s,this.bufferBase=l,this.curContext=c,this.lookAhead=u,this.parent=d}toString(){return`[${this.stack.filter((t,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let a=t.parser.context;return new Tz(t,[],n,r,r,0,[],0,a?new xse(a,a.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,a=t&65535,{parser:i}=this.p,o=this.reducePos=2e3&&!(!((n=this.p.parser.nodeSet.types[a])===null||n===void 0)&&n.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(a,c)}storeNode(t,n,r,a=4,i=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[s-4]==0&&o.buffer[s-1]>-1){if(n==r)return;if(o.buffer[s-2]>=n){o.buffer[s-2]=r;return}}}if(!i||this.pos==r)this.buffer.push(t,n,r,a);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let s=!1;for(let l=o;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){s=!0;break}if(s)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,a>4&&(a-=4)}this.buffer[o]=t,this.buffer[o+1]=n,this.buffer[o+2]=r,this.buffer[o+3]=a}}shift(t,n,r,a){if(t&131072)this.pushState(t&65535,this.pos);else if((t&262144)==0){let i=t,{parser:o}=this.p;this.pos=a;let s=o.stateFlag(i,1);!s&&(a>r||n<=o.maxNode)&&(this.reducePos=a),this.pushState(i,s?r:Math.min(r,this.reducePos)),this.shiftContext(n,r),n<=o.maxNode&&this.buffer.push(n,r,a,4)}else this.pos=a,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,a,4)}apply(t,n,r,a){t&65536?this.reduce(t):this.shift(t,n,r,a)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let a=this.pos;this.reducePos=this.pos=a+t.length,this.pushState(n,a),this.buffer.push(r,a,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),a=t.bufferBase+n;for(;t&&a==t.bufferBase;)t=t.parent;return new Tz(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,a,this.curContext,this.lookAhead,t)}recoverByDelete(t,n){let r=t<=this.p.parser.maxNode;r&&this.storeNode(t,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(t){for(let n=new oEt(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if((r&65536)==0)return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let a=[];for(let i=0,o;il&1&&s==o)||a.push(n[i],o)}n=a}let r=[];for(let a=0;a>19,a=n&65535,i=this.stack.length-r*3;if(i<0||t.getGoto(this.stack[i],a,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(a,i)=>{if(!n.includes(a))return n.push(a),t.allActions(a,o=>{if(!(o&393216))if(o&65536){let s=(o>>19)-i;if(s>1){let l=o&65535,c=this.stack.length-s*3;if(c>=0&&t.getGoto(this.stack[c],l,!1)>=0)return s<<19|65536|l}}else{let s=r(o,i+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;n0&&this.emitLookAhead()}};class xse{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class oEt{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let n=t&65535,r=t>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let a=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=a}}class cR{constructor(t,n,r){this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,n=t.bufferBase+t.buffer.length){return new cR(t,n,n-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new cR(this.stack,this.pos,this.index)}}function aS(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,a=0;r=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,s=!0),i+=l,s)break;i*=46}n?n[a++]=i:n=new t(i)}return n}class L2{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Tse=new L2;class sEt{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Tse,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,a=this.rangeIndex,i=this.pos+t;for(;ir.to:i>=r.to;){if(a==this.ranges.length-1)return null;let o=this.ranges[++a];i+=o.from-r.to,r=o}return i}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,a;if(n>=0&&n=this.chunk2Pos&&rs.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),a=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),a}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=Tse,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,n-this.chunkPos);if(t>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,n-this.chunk2Pos);if(t>=this.range.from&&n<=this.range.to)return this.input.read(t,n);let r="";for(let a of this.ranges){if(a.from>=n)break;a.to>t&&(r+=this.input.read(Math.max(a.from,t),Math.min(a.to,n)))}return r}}class y0{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;pRe(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}y0.prototype.contextual=y0.prototype.fallback=y0.prototype.extend=!1;class K0{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?aS(t):t}token(t,n){let r=t.pos,a=0;for(;;){let i=t.next<0,o=t.resolveOffset(1,1);if(pRe(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(i||a++,o==null)break;t.reset(o,t.token)}a&&(t.reset(r,t.token),t.acceptToken(this.elseToken,a))}}K0.prototype.contextual=y0.prototype.fallback=y0.prototype.extend=!1;class La{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function pRe(e,t,n,r,a,i){let o=0,s=1<0){let h=e[m];if(l.allows(h)&&(t.token.value==-1||t.token.value==h||lEt(h,t.token.value,a,i))){t.acceptToken(h);break}}let u=t.next,d=0,f=e[o+2];if(t.next<0&&f>d&&e[c+f*3-3]==65535){o=e[c+f*3-1];continue e}for(;d>1,h=c+m+(m<<1),g=e[h],O=e[h+1]||65536;if(u=O)d=m+1;else{o=e[h+2],t.advance();continue e}}break}}function wse(e,t,n){for(let r=t,a;(a=e[r])!=65535;r++)if(a==n)return r-t;return-1}function lEt(e,t,n,r){let a=wse(n,r,t);return a<0||wse(n,r,e)t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}let cEt=class{constructor(t,n){this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?Cse(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Cse(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=o,null;if(i instanceof Sa){if(o==t){if(o=Math.max(this.safeFrom,t)&&(this.trees.push(i),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+i.length}}};class uEt{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new L2)}getActions(t){let n=0,r=null,{parser:a}=t.p,{tokenizers:i}=a,o=a.stateSlot(t.state,3),s=t.curContext?t.curContext.hash:0,l=0;for(let c=0;cd.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let f=n;if(d.extended>-1&&(n=this.addActions(t,d.extended,d.end,n)),n=this.addActions(t,d.value,d.end,n),!u.extend&&(r=d,n>f))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new L2,r.value=t.p.parser.eofTerm,r.start=r.end=t.pos,n=this.addActions(t,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let n=new L2,{pos:r,p:a}=t;return n.start=r,n.end=Math.min(r+1,a.stream.end),n.value=r==a.stream.end?a.parser.eofTerm:0,n}updateCachedToken(t,n,r){let a=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(a,t),r),t.value>-1){let{parser:i}=r.p;for(let o=0;o=0&&r.p.parser.dialect.allows(s>>1)){(s&1)==0?t.value=s>>1:t.extended=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(a+1)}putAction(t,n,r,a){for(let i=0;it.bufferLength*4?new cEt(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],a,i;if(this.bigReductionCount>300&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;on)r.push(s);else{if(this.advanceStack(s,r,t))continue;{a||(a=[],i=[]),a.push(s);let l=this.tokens.getMainToken(s);i.push(l.value,l.end)}}break}}if(!r.length){let o=a&&pEt(a);if(o)return _l&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw _l&&a&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&a){let o=this.stoppedAt!=null&&a[0].pos>this.stoppedAt?a[0]:this.runRecovery(a,i,r);if(o)return _l&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((s,l)=>l.score-s.score);r.length>o;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let o=0;o500&&c.buffer.length>500)if((s.score-c.score||s.buffer.length-c.buffer.length)>0)r.splice(l--,1);else{r.splice(o--,1);continue e}}}r.length>12&&(r.sort((o,s)=>s.score-o.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&a>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let c=t.curContext&&t.curContext.tracker.strict,u=c?t.curContext.hash:0;for(let d=this.fragments.nodeAt(a);d;){let f=this.parser.nodeSet.types[d.type.id]==d.type?i.getGoto(t.state,d.type.id):-1;if(f>-1&&d.length&&(!c||(d.prop(Cr.contextHash)||0)==u))return t.useNode(d,f),_l&&console.log(o+this.stackID(t)+` (via reuse of ${i.getName(d.type.id)})`),!0;if(!(d instanceof Sa)||d.children.length==0||d.positions[0]>0)break;let m=d.children[0];if(m instanceof Sa&&d.positions[0]==0)d=m;else break}}let s=i.stateSlot(t.state,4);if(s>0)return t.reduce(s),_l&&console.log(o+this.stackID(t)+` (via always-reduce ${i.getName(s&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let c=0;ca?n.push(h):r.push(h)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return $se(t,n),!0}}runRecovery(t,n,r){let a=null,i=!1;for(let o=0;o ":"";if(s.deadEnd&&(i||(i=!0,s.restart(),_l&&console.log(u+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let d=s.split(),f=u;for(let m=0;m<10&&d.forceReduce()&&(_l&&console.log(f+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,r));m++)_l&&(f=this.stackID(d)+" -> ");for(let m of s.recoverByInsert(l))_l&&console.log(u+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,r);this.stream.end>s.pos?(c==s.pos&&(c++,l=0),s.recoverByDelete(l,c),_l&&console.log(u+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),$se(s,r)):(!a||a.scoree;class mx{constructor(t){this.start=t.start,this.shift=t.shift||H5,this.reduce=t.reduce||H5,this.reuse=t.reuse||H5,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Xl extends OY{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;st.topRules[s][1]),a=[];for(let s=0;s=0)i(u,l,s[c++]);else{let d=s[c+-u];for(let f=-u;f>0;f--)i(s[c++],l,d);c++}}}this.nodeSet=new px(n.map((s,l)=>oo.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:a[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=cRe;let o=aS(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;stypeof s=="number"?new y0(o,s):s),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let a=new dEt(this,t,n,r);for(let i of this.wrappers)a=i(a,t,n,r);return a}getGoto(t,n,r=!1){let a=this.goto;if(n>=a[0])return-1;for(let i=a[n+1];;){let o=a[i++],s=o&1,l=a[i++];if(s&&r)return l;for(let c=i+(o>>1);i0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),a=r?n(r):void 0;for(let i=this.stateSlot(t,1);a==null;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=uf(this.data,i+2);else break;a=n(uf(this.data,i+1))}return a}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=uf(this.data,r+2);else break;if((this.data[r+2]&1)==0){let a=this.data[r+1];n.some((i,o)=>o&1&&i==a)||n.push(this.data[r],a)}}return n}configure(t){let n=Object.assign(Object.create(Xl.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let a=t.tokenizers.find(i=>i.from==r);return a?a.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,a)=>{let i=t.specializers.find(s=>s.from==r.external);if(!i)return r;let o=Object.assign(Object.assign({},r),{external:i.to});return n.specializers[a]=Rse(o),o})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let i of t.split(" ")){let o=n.indexOf(i);o>=0&&(r[o]=!0)}let a=null;for(let i=0;ir)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}let mEt=0,Hu=class wz{constructor(t,n,r,a){this.name=t,this.set=n,this.base=r,this.modified=a,this.id=mEt++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof wz&&(n=t),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let a=new wz(r,[],null,[]);if(a.set.push(a),n)for(let i of n.set)a.set.push(i);return a}static defineModifier(t){let n=new uR(t);return r=>r.modified.indexOf(n)>-1?r:uR.get(r.base||r,r.modified.concat(n).sort((a,i)=>a.id-i.id))}},hEt=0;class uR{constructor(t){this.name=t,this.instances=[],this.id=hEt++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(s=>s.base==t&&gEt(n,s.modified));if(r)return r;let a=[],i=new Hu(t.name,a,t,n);for(let s of n)s.instances.push(i);let o=OEt(n);for(let s of t.set)if(!s.modified.length)for(let l of o)a.push(uR.get(s,l));return i}}function gEt(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function OEt(e){let t=[[]];for(let n=0;nr.length-n.length)}function Zl(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let a of n.split(" "))if(a){let i=[],o=2,s=a;for(let d=0;;){if(s=="..."&&d>0&&d+3==a.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!f)throw new RangeError("Invalid path: "+a);if(i.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==a.length)break;let m=a[d++];if(d==a.length&&m=="!"){o=0;break}if(m!="/")throw new RangeError("Invalid path: "+a);s=a.slice(d)}let l=i.length-1,c=i[l];if(!c)throw new RangeError("Invalid path: "+a);let u=new D_(r,o,l>0?i.slice(0,l):null);t[c]=u.sort(t[c])}}return mRe.add(t)}const mRe=new Cr({combine(e,t){let n,r,a;for(;e||t;){if(!e||t&&e.depth>=t.depth?(a=t,t=t.next):(a=e,e=e.next),n&&n.mode==a.mode&&!a.context&&!n.context)continue;let i=new D_(a.tags,a.mode,a.context);n?n.next=i:r=i,n=i}return r}});class D_{constructor(t,n,r,a){this.tags=t,this.mode=n,this.context=r,this.next=a}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let o=a;for(let s of i)for(let l of s.set){let c=n[l.id];if(c){o=o?o+" "+c:c;break}}return o},scope:r}}function bEt(e,t){let n=null;for(let r of e){let a=r.style(t);a&&(n=n?n+" "+a:a)}return n}function vEt(e,t,n,r=0,a=e.length){let i=new yEt(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,a,"",i.highlighters),i.flush(a)}class yEt{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,a,i){let{type:o,from:s,to:l}=t;if(s>=r||l<=n)return;o.isTop&&(i=this.highlighters.filter(m=>!m.scope||m.scope(o)));let c=a,u=SEt(t)||D_.empty,d=bEt(i,u.tags);if(d&&(c&&(c+=" "),c+=d,u.mode==1&&(a+=(a?" ":"")+d)),this.startSpan(Math.max(n,s),c),u.opaque)return;let f=t.tree&&t.tree.prop(Cr.mounted);if(f&&f.overlay){let m=t.node.enter(f.overlay[0].from+s,1),h=this.highlighters.filter(O=>!O.scope||O.scope(f.tree.type)),g=t.firstChild();for(let O=0,v=s;;O++){let y=O=S||!t.nextSibling())););if(!y||S>r)break;v=y.to+s,v>n&&(this.highlightRange(m.cursor(),Math.max(n,y.from+s),Math.min(r,v),"",h),this.startSpan(Math.min(r,v),c))}g&&t.parent()}else if(t.firstChild()){f&&(a="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,a,i),this.startSpan(Math.min(r,t.to),c)}while(t.nextSibling());t.parent()}}}function SEt(e){let t=e.type.prop(mRe);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const On=Hu.define,Aw=On(),$p=On(),Pse=On($p),kse=On($p),Rp=On(),Nw=On(Rp),Z5=On(Rp),Fu=On(),qm=On(Fu),Du=On(),Lu=On(),Cz=On(),ay=On(Cz),Iw=On(),H={comment:Aw,lineComment:On(Aw),blockComment:On(Aw),docComment:On(Aw),name:$p,variableName:On($p),typeName:Pse,tagName:On(Pse),propertyName:kse,attributeName:On(kse),className:On($p),labelName:On($p),namespace:On($p),macroName:On($p),literal:Rp,string:Nw,docString:On(Nw),character:On(Nw),attributeValue:On(Nw),number:Z5,integer:On(Z5),float:On(Z5),bool:On(Rp),regexp:On(Rp),escape:On(Rp),color:On(Rp),url:On(Rp),keyword:Du,self:On(Du),null:On(Du),atom:On(Du),unit:On(Du),modifier:On(Du),operatorKeyword:On(Du),controlKeyword:On(Du),definitionKeyword:On(Du),moduleKeyword:On(Du),operator:Lu,derefOperator:On(Lu),arithmeticOperator:On(Lu),logicOperator:On(Lu),bitwiseOperator:On(Lu),compareOperator:On(Lu),updateOperator:On(Lu),definitionOperator:On(Lu),typeOperator:On(Lu),controlOperator:On(Lu),punctuation:Cz,separator:On(Cz),bracket:ay,angleBracket:On(ay),squareBracket:On(ay),paren:On(ay),brace:On(ay),content:Fu,heading:qm,heading1:On(qm),heading2:On(qm),heading3:On(qm),heading4:On(qm),heading5:On(qm),heading6:On(qm),contentSeparator:On(Fu),list:On(Fu),quote:On(Fu),emphasis:On(Fu),strong:On(Fu),link:On(Fu),monospace:On(Fu),strikethrough:On(Fu),inserted:On(),deleted:On(),changed:On(),invalid:On(),meta:Iw,documentMeta:On(Iw),annotation:On(Iw),processingInstruction:On(Iw),definition:Hu.defineModifier("definition"),constant:Hu.defineModifier("constant"),function:Hu.defineModifier("function"),standard:Hu.defineModifier("standard"),local:Hu.defineModifier("local"),special:Hu.defineModifier("special")};for(let e in H){let t=H[e];t instanceof Hu&&(t.name=e)}hRe([{tag:H.link,class:"tok-link"},{tag:H.heading,class:"tok-heading"},{tag:H.emphasis,class:"tok-emphasis"},{tag:H.strong,class:"tok-strong"},{tag:H.keyword,class:"tok-keyword"},{tag:H.atom,class:"tok-atom"},{tag:H.bool,class:"tok-bool"},{tag:H.url,class:"tok-url"},{tag:H.labelName,class:"tok-labelName"},{tag:H.inserted,class:"tok-inserted"},{tag:H.deleted,class:"tok-deleted"},{tag:H.literal,class:"tok-literal"},{tag:H.string,class:"tok-string"},{tag:H.number,class:"tok-number"},{tag:[H.regexp,H.escape,H.special(H.string)],class:"tok-string2"},{tag:H.variableName,class:"tok-variableName"},{tag:H.local(H.variableName),class:"tok-variableName tok-local"},{tag:H.definition(H.variableName),class:"tok-variableName tok-definition"},{tag:H.special(H.variableName),class:"tok-variableName2"},{tag:H.definition(H.propertyName),class:"tok-propertyName tok-definition"},{tag:H.typeName,class:"tok-typeName"},{tag:H.namespace,class:"tok-namespace"},{tag:H.className,class:"tok-className"},{tag:H.macroName,class:"tok-macroName"},{tag:H.propertyName,class:"tok-propertyName"},{tag:H.operator,class:"tok-operator"},{tag:H.comment,class:"tok-comment"},{tag:H.meta,class:"tok-meta"},{tag:H.invalid,class:"tok-invalid"},{tag:H.punctuation,class:"tok-punctuation"}]);const Ase=1,_Et=2,EEt=3,xEt=82,TEt=76,wEt=117,CEt=85,$Et=97,REt=122,PEt=65,kEt=90,AEt=95,$z=48,Nse=34,NEt=40,Ise=41,IEt=32,Mse=62,MEt=new La(e=>{if(e.next==TEt||e.next==CEt?e.advance():e.next==wEt&&(e.advance(),e.next==$z+8&&e.advance()),e.next!=xEt||(e.advance(),e.next!=Nse))return;e.advance();let t="";for(;e.next!=NEt;){if(e.next==IEt||e.next<=13||e.next==Ise)return;t+=String.fromCharCode(e.next),e.advance()}for(e.advance();;){if(e.next<0)return e.acceptToken(Ase);if(e.next==Ise){let n=!0;for(let r=0;n&&r{if(e.next==Mse)e.peek(1)==Mse&&e.acceptToken(_Et,1);else{let t=!1,n=0;for(;;n++){if(e.next>=PEt&&e.next<=kEt)t=!0;else{if(e.next>=$Et&&e.next<=REt)return;if(e.next!=AEt&&!(e.next>=$z&&e.next<=$z+9))break}e.advance()}t&&n>1&&e.acceptToken(EEt)}},{extend:!0}),LEt=Zl({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":H.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":H.modifier,"if else switch for while do case default return break continue goto throw try catch":H.controlKeyword,"co_return co_yield co_await":H.controlKeyword,"new sizeof delete static_assert":H.operatorKeyword,"NULL nullptr":H.null,this:H.self,"True False":H.bool,"TypeSize PrimitiveType":H.standard(H.typeName),TypeIdentifier:H.typeName,FieldIdentifier:H.propertyName,"CallExpression/FieldExpression/FieldIdentifier":H.function(H.propertyName),"ModuleName/Identifier":H.namespace,PartitionName:H.labelName,StatementIdentifier:H.labelName,"Identifier DestructorName":H.variableName,"CallExpression/Identifier":H.function(H.variableName),"CallExpression/ScopedIdentifier/Identifier":H.function(H.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":H.function(H.definition(H.variableName)),NamespaceIdentifier:H.namespace,OperatorName:H.operator,ArithOp:H.arithmeticOperator,LogicOp:H.logicOperator,BitOp:H.bitwiseOperator,CompareOp:H.compareOperator,AssignOp:H.definitionOperator,UpdateOp:H.updateOperator,LineComment:H.lineComment,BlockComment:H.blockComment,Number:H.number,String:H.string,"RawString SystemLibString":H.special(H.string),CharLiteral:H.character,EscapeSequence:H.escape,"UserDefinedLiteral/Identifier":H.literal,PreProcArg:H.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":H.processingInstruction,MacroName:H.special(H.name),"( )":H.paren,"[ ]":H.squareBracket,"{ }":H.brace,"< >":H.angleBracket,". ->":H.derefOperator,", ;":H.separator}),QEt={__proto__:null,bool:36,char:36,int:36,float:36,double:36,void:36,size_t:36,ssize_t:36,intptr_t:36,uintptr_t:36,charptr_t:36,int8_t:36,int16_t:36,int32_t:36,int64_t:36,uint8_t:36,uint16_t:36,uint32_t:36,uint64_t:36,char8_t:36,char16_t:36,char32_t:36,char64_t:36,const:70,volatile:72,restrict:74,_Atomic:76,mutable:78,constexpr:80,constinit:82,consteval:84,struct:88,__declspec:92,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:796,true:796,FALSE:798,false:798,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},zEt={__proto__:null,"<":765},BEt={__proto__:null,">":135},FEt={__proto__:null,operator:388,new:576,delete:582},UEt=Xl.deserialize({version:14,states:"$;xQ!QQVOOP'gOUOOO([OWO'#CdO,UQUO'#CgO,`QUO'#FjO-vQbO'#CxO.XQUO'#CxO0WQUO'#K`O0_QUO'#CwO0jOpO'#DvO0rQ!dO'#D]OOQR'#JP'#JPO5[QVO'#GUO5iQUO'#JWOOQQ'#JW'#JWO8}QUO'#KsOxQVO'#IbO!(}QVO'#IdO!?SQUO'#IgO!?ZQVO'#IjP!AQO!LQO'#CaP!A]{,UO'#CbP!6q{,UO'#CbP!Ah{7[O'#CbP!6q{,UO'#CbP!Am{,UO'#CbP!AxOSO'#IzPOOO)CEo)CEoOOOO'#I}'#I}O!BSOWO,59OOOQR,59O,59OO!(}QVO,59VOOQQ,59X,59XOOQR'#Do'#DoO!(}QVO,5;ROOQR,5qOOQR'#IX'#IXOOQR'#IY'#IYOOQR'#IZ'#IZOOQR'#I['#I[O!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!(}QVO,5>rO!D^QVO,5>zOOQQ,5?W,5?WO!FPQVO'#CjO!IxQUO'#CzOOQQ,59d,59dOOQQ,59c,59cOOQQ,5<},5<}O!JVQ&lO,5=mO!?SQUO,5?RO!LyQVO,5?UO!MQQbO,59dO!M]QVO'#FYOOQQ,5?P,5?PO!MmQVO,59WO!MtO`O,5:bO!MyQbO'#D^O!N[QbO'#KdO!NjQbO,59wO!NrQbO'#CxO# TQUO'#CxO# YQUO'#K`O# dQUO'#CwOOQR-E<}-E<}O# oQUO,5AuO# vQVO'#EfO@[QVO'#EiOBXQUO,5;kOOQR,5l,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,U,W,s,v,|-b-c-f-l.U.V.Z/S/V/c/j/s/u/z/|0o1S1X1h1i1s1w2R2T2j2m2p2|3R3U3p4V4Y4_4h5a5l5x6f6j6m6o6q6{6}7S7i7q7t8l8n8t8z8{9Y9^9d9f9s9v9w:S:V:]:_:d:i:mU%qm%r7XQ&o!`Q(o#^d0W*S0T0U0V0Y5U5V5W5Z8XR7X3[b}Oaewx{!g&U*v&v$k[!W!X!k!n!r!s!v!x#X#Y#[#h#k#n#s#t#u#v#w#x#y#z#{#|#}$P$W$Y$[$g$h$m%_%o&S&Y&d&h&z&{'O'Q'R'd'k'l'{(b(d(k)q)w*m*n*q*w*{+]+_+m+o+p,U,W,s,v,|-b-c-f-l.U.V.Z/S/V/c/j/s/u/z/|1S1h1i1s1w2R2T2j2m2p2|3R3U3p4V4Y4_4h5a5l5x6f6j6m6o6q6{6}7S7i7q7t8l8n8t8z8{9Y9^9d9f9s9v9w:S:V:]:_:d:i:mS%bf0o#d%lgnp|#O$i%O%P%U%f%j%k%y&u'v'w(S*_*e*g*y+b,q,{-d-u-|.k.r.t0d1Q1R1V1Z2f2q5h6n;_;`;a;g;h;i;v;w;x;y;} MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ) ( ArgumentList ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:431,nodeProps:[["group",-35,1,8,11,15,16,17,19,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,18,25,26,27,43,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"],["isolate",-3,4,8,10,""],["openedBy",12,"(",52,"{",54,"["],["closedBy",13,")",51,"}",53,"]"]],propSources:[LEt],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,308,348,349],repeatNodeCount:42,tokenData:"%LSMfR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#5[!R![#JY![!]$4w!]!^$6s!^!_$7n!_!`%$h!`!a%%i!a!b%(o!b!c$e!c!n%)j!n!o%+R!o!w%)j!w!x%+R!x!}%)j!}#O%.O#O#P%/w#P#Q%?[#Q#R%AT#R#S%)j#S#T$e#T#i%)j#i#j%BW#j#o%)j#o#p%Cu#p#q%Dp#q#r%Fv#r#s%Gq#s;'S$e;'S;=`(u<%lO$e,j$nY)c`(vS'f,UOY$eZr$ers%^sw$ewx(Ox#O$e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,2,3,4,5,6,7,8,9,10,new K0("j~RQYZXz{^~^O(r~~aP!P!Qd~iO(s~~",25,355)],topRules:{Program:[0,307]},dynamicPrecedences:{17:1,65:1,87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,370:3,423:1,424:3,425:1,426:1},specialized:[{term:361,get:e=>QEt[e]||-1},{term:33,get:e=>zEt[e]||-1},{term:66,get:e=>BEt[e]||-1},{term:368,get:e=>FEt[e]||-1}],tokenPrec:24916});let Rz=[],gRe=[];(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=0,n=0;t>1;if(e=gRe[r])t=r+1;else return!0;if(t==n)return!1}}function Dse(e){return e>=127462&&e<=127487}const Lse=8205;function XEt(e,t,n=!0,r=!0){return(n?ORe:YEt)(e,t,r)}function ORe(e,t,n){if(t==e.length)return t;t&&bRe(e.charCodeAt(t))&&vRe(e.charCodeAt(t-1))&&t--;let r=K5(e,t);for(t+=Qse(r);t=0&&Dse(K5(e,o));)i++,o-=2;if(i%2==0)break;t+=2}else break}return t}function YEt(e,t,n){for(;t>0;){let r=ORe(e,t-2,n);if(r=56320&&e<57344}function vRe(e){return e>=55296&&e<56320}function Qse(e){return e<65536?1:2}let ma=class yRe{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,n,r){[t,n]=J0(this,t,n);let a=[];return this.decompose(0,t,a,2),r.length&&r.decompose(0,r.length,a,3),this.decompose(n,this.length,a,1),Q2.from(a,this.length-(n-t)+r.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,n=this.length){[t,n]=J0(this,t,n);let r=[];return this.decompose(t,n,r,0),Q2.from(r,n-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let n=this.scanIdentical(t,1),r=this.length-this.scanIdentical(t,-1),a=new MS(this),i=new MS(t);for(let o=n,s=n;;){if(a.next(o),i.next(o),o=0,a.lineBreak!=i.lineBreak||a.done!=i.done||a.value!=i.value)return!1;if(s+=a.value.length,a.done||s>=r)return!0}}iter(t=1){return new MS(this,t)}iterRange(t,n=this.length){return new SRe(this,t,n)}iterLines(t,n){let r;if(t==null)r=this.iter();else{n==null&&(n=this.lines+1);let a=this.line(t).from;r=this.iterRange(a,Math.max(a,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new _Re(r)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?yRe.empty:t.length<=32?new ki(t):Q2.from(ki.split(t,[]))}};class ki extends ma{constructor(t,n=VEt(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,a){for(let i=0;;i++){let o=this.text[i],s=a+o.length;if((n?r:s)>=t)return new qEt(a,s,r,o);a=s+1,r++}}decompose(t,n,r,a){let i=t<=0&&n>=this.length?this:new ki(zse(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(a&1){let o=r.pop(),s=z2(i.text,o.text.slice(),0,i.length);if(s.length<=32)r.push(new ki(s,o.length+i.length));else{let l=s.length>>1;r.push(new ki(s.slice(0,l)),new ki(s.slice(l)))}}else r.push(i)}replace(t,n,r){if(!(r instanceof ki))return super.replace(t,n,r);[t,n]=J0(this,t,n);let a=z2(this.text,z2(r.text,zse(this.text,0,t)),n),i=this.length+r.length-(n-t);return a.length<=32?new ki(a,i):Q2.from(ki.split(a,[]),i)}sliceString(t,n=this.length,r=` +`){[t,n]=J0(this,t,n);let a="";for(let i=0,o=0;i<=n&&ot&&o&&(a+=r),ti&&(a+=s.slice(Math.max(0,t-i),n-i)),i=l+1}return a}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],a=-1;for(let i of t)r.push(i),a+=i.length+1,r.length==32&&(n.push(new ki(r,a)),r=[],a=-1);return a>-1&&n.push(new ki(r,a)),n}}let Q2=class XO extends ma{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,a){for(let i=0;;i++){let o=this.children[i],s=a+o.length,l=r+o.lines-1;if((n?l:s)>=t)return o.lineInner(t,n,r,a);a=s+1,r=l+1}}decompose(t,n,r,a){for(let i=0,o=0;o<=n&&i=o){let c=a&((o<=t?1:0)|(l>=n?2:0));o>=t&&l<=n&&!c?r.push(s):s.decompose(t-o,n-o,r,c)}o=l+1}}replace(t,n,r){if([t,n]=J0(this,t,n),r.lines=i&&n<=s){let l=o.replace(t-i,n-i,r),c=this.lines-o.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let u=this.children.slice();return u[a]=l,new XO(u,this.length-(n-t)+r.length)}return super.replace(i,s,l)}i=s+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` +`){[t,n]=J0(this,t,n);let a="";for(let i=0,o=0;it&&i&&(a+=r),to&&(a+=s.sliceString(t-o,n-o,r)),o=l+1}return a}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof XO))return 0;let r=0,[a,i,o,s]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;a+=n,i+=n){if(a==o||i==s)return r;let l=this.children[a],c=t.children[i];if(l!=c)return r+l.scanIdentical(c,n);r+=l.length+1}}static from(t,n=t.reduce((r,a)=>r+a.length+1,-1)){let r=0;for(let m of t)r+=m.lines;if(r<32){let m=[];for(let h of t)h.flatten(m);return new ki(m,n)}let a=Math.max(32,r>>5),i=a<<1,o=a>>1,s=[],l=0,c=-1,u=[];function d(m){let h;if(m.lines>i&&m instanceof XO)for(let g of m.children)d(g);else m.lines>o&&(l>o||!l)?(f(),s.push(m)):m instanceof ki&&l&&(h=u[u.length-1])instanceof ki&&m.lines+h.lines<=32?(l+=m.lines,c+=m.length+1,u[u.length-1]=new ki(h.text.concat(m.text),h.length+1+m.length)):(l+m.lines>a&&f(),l+=m.lines,c+=m.length+1,u.push(m))}function f(){l!=0&&(s.push(u.length==1?u[0]:XO.from(u,c)),c=-1,l=u.length=0)}for(let m of t)d(m);return f(),s.length==1?s[0]:new XO(s,n)}};ma.empty=new ki([""],0);function VEt(e){let t=-1;for(let n of e)t+=n.length+1;return t}function z2(e,t,n=0,r=1e9){for(let a=0,i=0,o=!0;i=n&&(l>r&&(s=s.slice(0,r-a)),a0?1:(t instanceof ki?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,a=this.nodes[r],i=this.offsets[r],o=i>>1,s=a instanceof ki?a.text.length:a.children.length;if(o==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((i&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` +`,this;t--}else if(a instanceof ki){let l=a.text[o+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=a.children[o+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof ki?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class SRe{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new MS(t,n>r?-1:1),this.pos=n>r?t.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(t,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;t>r&&(t=r),r-=t;let{value:a}=this.cursor.next(t);return this.pos+=(a.length+t)*n,this.value=a.length<=r?a:n<0?a.slice(a.length-r):a.slice(0,r),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class _Re{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:n,lineBreak:r,value:a}=this.inner.next(t);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=a,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ma.prototype[Symbol.iterator]=function(){return this.iter()},MS.prototype[Symbol.iterator]=SRe.prototype[Symbol.iterator]=_Re.prototype[Symbol.iterator]=function(){return this});let qEt=class{constructor(t,n,r,a){this.from=t,this.to=n,this.number=r,this.text=a}get length(){return this.to-this.from}};function J0(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}function So(e,t,n=!0,r=!0){return XEt(e,t,n,r)}function WEt(e){return e>=56320&&e<57344}function GEt(e){return e>=55296&&e<56320}function Ks(e,t){let n=e.charCodeAt(t);if(!GEt(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return WEt(r)?(n-55296<<10)+(r-56320)+65536:n}function vY(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function ed(e){return e<65536?1:2}const Pz=/\r\n?|\n/;var Bo=(function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e})(Bo||(Bo={}));class dd{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return i+(t-a);i+=s}else{if(r!=Bo.Simple&&c>=t&&(r==Bo.TrackDel&&at||r==Bo.TrackBefore&&at))return null;if(c>t||c==t&&n<0&&!s)return t==a||n<0?i:i+l;i+=l}a=c}if(t>a)throw new RangeError(`Position ${t} is out of range for changeset of length ${a}`);return i}touchesRange(t,n=t){for(let r=0,a=0;r=0&&a<=n&&s>=t)return an?"cover":!0;a=s}return!1}toString(){let t="";for(let n=0;n=0?":"+a:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new dd(t)}static create(t){return new dd(t)}}class Ji extends dd{constructor(t,n){super(t),this.inserted=n}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return kz(this,(n,r,a,i,o)=>t=t.replace(a,a+(r-n),o),!1),t}mapDesc(t,n=!1){return Az(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let a=0,i=0;a=0){n[a]=s,n[a+1]=o;let l=a>>1;for(;r.length0&&Lp(r,n,i.text),i.forward(u),s+=u}let c=t[o++];for(;s>1].toJSON()))}return t}static of(t,n,r){let a=[],i=[],o=0,s=null;function l(u=!1){if(!u&&!a.length)return;of||d<0||f>n)throw new RangeError(`Invalid change range ${d} to ${f} (in doc of length ${n})`);let h=m?typeof m=="string"?ma.of(m.split(r||Pz)):m:ma.empty,g=h.length;if(d==f&&g==0)return;do&&ns(a,d-o,-1),ns(a,f-d,g),Lp(i,a,h),o=f}}return c(t),l(!s),s}static empty(t){return new Ji(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let a=0;as&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(i.length==1)n.push(i[0],0);else{for(;r.length=0&&n<=0&&n==e[a+1]?e[a]+=t:a>=0&&t==0&&e[a]==0?e[a+1]+=n:r?(e[a]+=t,e[a+1]+=n):e.push(t,n)}function Lp(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)s=e.sections[o++],l=e.sections[o++];t(a,c,i,u,d),a=c,i=u}}}function Az(e,t,n,r=!1){let a=[],i=r?[]:null,o=new L_(e),s=new L_(t);for(let l=-1;;){if(o.done&&s.len||s.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&s.ins==-1){let c=Math.min(o.len,s.len);ns(a,c,-1),o.forward(c),s.forward(c)}else if(s.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(s.len=0&&l=0){let c=0,u=o.len;for(;u;)if(s.ins==-1){let d=Math.min(u,s.len);c+=d,u-=d,s.forward(d)}else if(s.ins==0&&s.lenl||o.ins>=0&&o.len>l)&&(s||r.length>c),i.forward2(l),o.forward(l)}}}}class L_{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?ma.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?ma.empty:n[r].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class xh{constructor(t,n,r){this.from=t,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,n=-1){let r,a;return this.empty?r=a=t.mapPos(this.from,n):(r=t.mapPos(this.from,1),a=t.mapPos(this.to,-1)),r==this.from&&a==this.to?this:new xh(r,a,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return xt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return xt.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&this.goalColumn==t.goalColumn&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return xt.range(t.anchor,t.head)}static create(t,n,r){return new xh(t,n,r)}}class xt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:xt.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;rt.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new xt(t.ranges.map(n=>xh.fromJSON(n)),t.main)}static single(t,n=t){return new xt([xt.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,a=0;at?8:0)|i)}static normalized(t,n=0){let r=t[n];t.sort((a,i)=>a.from-i.from),n=t.indexOf(r);for(let a=1;ai.head?xt.range(l,s):xt.range(s,l))}}return new xt(t,n)}}function xRe(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let yY=0;class yn{constructor(t,n,r,a,i){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=a,this.id=yY++,this.default=t([]),this.extensions=typeof i=="function"?i(this):i}get reader(){return this}static define(t={}){return new yn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:SY),!!t.static,t.enables)}of(t){return new B2([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new B2(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new B2(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function SY(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class B2{constructor(t,n,r,a){this.dependencies=t,this.facet=n,this.type=r,this.value=a,this.id=yY++}dynamicSlot(t){var n;let r=this.value,a=this.facet.compareInput,i=this.id,o=t[i]>>1,s=this.type==2,l=!1,c=!1,u=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?c=!0:(((n=t[d.id])!==null&&n!==void 0?n:1)&1)==0&&u.push(t[d.id]);return{create(d){return d.values[o]=r(d),1},update(d,f){if(l&&f.docChanged||c&&(f.docChanged||f.selection)||Nz(d,u)){let m=r(d);if(s?!Bse(m,d.values[o],a):!a(m,d.values[o]))return d.values[o]=m,1}return 0},reconfigure:(d,f)=>{let m,h=f.config.address[i];if(h!=null){let g=fR(f,h);if(this.dependencies.every(O=>O instanceof yn?f.facet(O)===d.facet(O):O instanceof uo?f.field(O,!1)==d.field(O,!1):!0)||(s?Bse(m=r(d),g,a):a(m=r(d),g)))return d.values[o]=g,0}else m=r(d);return d.values[o]=m,1}}}}function Bse(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),a=n.map(l=>l.type),i=r.filter(l=>!(l&1)),o=e[t.id]>>1;function s(l){let c=[];for(let u=0;ur===a),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(Mw).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,a)=>{let i=r.values[n],o=this.updateF(i,a);return this.compareF(i,o)?0:(r.values[n]=o,1)},reconfigure:(r,a)=>{let i=r.facet(Mw),o=a.facet(Mw),s;return(s=i.find(l=>l.field==this))&&s!=o.find(l=>l.field==this)?(r.values[n]=s.create(r),1):a.config.address[this.id]!=null?(r.values[n]=a.field(this),0):(r.values[n]=this.create(r),1)}}}init(t){return[this,Mw.of({field:this,create:t})]}get extension(){return this}}const fh={lowest:4,low:3,default:2,high:1,highest:0};function iy(e){return t=>new TRe(t,e)}const Qf={highest:iy(fh.highest),high:iy(fh.high),default:iy(fh.default),low:iy(fh.low),lowest:iy(fh.lowest)};class TRe{constructor(t,n){this.inner=t,this.prec=n}}class vA{of(t){return new Iz(this,t)}reconfigure(t){return vA.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class Iz{constructor(t,n){this.compartment=t,this.inner=n}}class dR{constructor(t,n,r,a,i,o){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=a,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let a=[],i=Object.create(null),o=new Map;for(let f of ZEt(t,n,o))f instanceof uo?a.push(f):(i[f.facet.id]||(i[f.facet.id]=[])).push(f);let s=Object.create(null),l=[],c=[];for(let f of a)s[f.id]=c.length<<1,c.push(m=>f.slot(m));let u=r==null?void 0:r.config.facets;for(let f in i){let m=i[f],h=m[0].facet,g=u&&u[f]||[];if(m.every(O=>O.type==0))if(s[h.id]=l.length<<1|1,SY(g,m))l.push(r.facet(h));else{let O=h.combine(m.map(v=>v.value));l.push(r&&h.compare(O,r.facet(h))?r.facet(h):O)}else{for(let O of m)O.type==0?(s[O.id]=l.length<<1|1,l.push(O.value)):(s[O.id]=c.length<<1,c.push(v=>O.dynamicSlot(v)));s[h.id]=c.length<<1,c.push(O=>HEt(O,h,m))}}let d=c.map(f=>f(s));return new dR(t,o,d,s,l,i)}}function ZEt(e,t,n){let r=[[],[],[],[],[]],a=new Map;function i(o,s){let l=a.get(o);if(l!=null){if(l<=s)return;let c=r[l].indexOf(o);c>-1&&r[l].splice(c,1),o instanceof Iz&&n.delete(o.compartment)}if(a.set(o,s),Array.isArray(o))for(let c of o)i(c,s);else if(o instanceof Iz){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let c=t.get(o.compartment)||o.inner;n.set(o.compartment,c),i(c,s)}else if(o instanceof TRe)i(o.inner,o.prec);else if(o instanceof uo)r[s].push(o),o.provides&&i(o.provides,s);else if(o instanceof B2)r[s].push(o),o.facet.extensions&&i(o.facet.extensions,fh.default);else{let c=o.extension;if(!c)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);i(c,s)}}return i(e,fh.default),r.reduce((o,s)=>o.concat(s))}function DS(e,t){if(t&1)return 2;let n=t>>1,r=e.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;e.status[n]=4;let a=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|a}function fR(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const wRe=yn.define(),Mz=yn.define({combine:e=>e.some(t=>t),static:!0}),CRe=yn.define({combine:e=>e.length?e[0]:void 0,static:!0}),$Re=yn.define(),RRe=yn.define(),PRe=yn.define(),kRe=yn.define({combine:e=>e.length?e[0]:!1});class Ad{constructor(t,n){this.type=t,this.value=n}static define(){return new KEt}}class KEt{of(t){return new Ad(this,t)}}class JEt{constructor(t){this.map=t}of(t){return new _r(this,t)}}class _r{constructor(t,n){this.type=t,this.value=n}map(t){let n=this.type.map(this.value,t);return n===void 0?void 0:n==this.value?this:new _r(this.type,n)}is(t){return this.type==t}static define(t={}){return new JEt(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let a of t){let i=a.map(n);i&&r.push(i)}return r}}_r.reconfigure=_r.define();_r.appendConfig=_r.define();class Ui{constructor(t,n,r,a,i,o){this.startState=t,this.changes=n,this.selection=r,this.effects=a,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,r&&xRe(r,n.newLength),i.some(s=>s.type==Ui.time)||(this.annotations=i.concat(Ui.time.of(Date.now())))}static create(t,n,r,a,i,o){return new Ui(t,n,r,a,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(Ui.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}}Ui.time=Ad.define();Ui.userEvent=Ad.define();Ui.addToHistory=Ad.define();Ui.remote=Ad.define();function ext(e,t){let n=[];for(let r=0,a=0;;){let i,o;if(r=e[r]))i=e[r++],o=e[r++];else if(a=0;a--){let i=r[a](e);i instanceof Ui?e=i:Array.isArray(i)&&i.length==1&&i[0]instanceof Ui?e=i[0]:e=NRe(t,S0(i),!1)}return e}function nxt(e){let t=e.startState,n=t.facet(PRe),r=e;for(let a=n.length-1;a>=0;a--){let i=n[a](e);i&&Object.keys(i).length&&(r=ARe(r,Dz(t,i,e.changes.newLength),!0))}return r==e?e:Ui.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const rxt=[];function S0(e){return e==null?rxt:Array.isArray(e)?e:[e]}var li=(function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e})(li||(li={}));const axt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Lz;try{Lz=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function ixt(e){if(Lz)return Lz.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||axt.test(n)))return!0}return!1}function oxt(e){return t=>{if(!/\S/.test(t))return li.Space;if(ixt(t))return li.Word;for(let n=0;n-1)return li.Word;return li.Other}}class ea{constructor(t,n,r,a,i,o){this.config=t,this.doc=n,this.selection=r,this.values=a,this.status=t.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let s=0;sa.set(c,l)),n=null),a.set(s.value.compartment,s.value.extension)):s.is(_r.reconfigure)?(n=null,r=s.value):s.is(_r.appendConfig)&&(n=null,r=S0(r).concat(s.value));let i;n?i=t.startState.values.slice():(n=dR.resolve(r,a,this),i=new ea(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,c)=>c.reconfigure(l,this),null).values);let o=t.startState.facet(Mz)?t.newSelection:t.newSelection.asSingle();new ea(n,t.newDoc,o,i,(s,l)=>l.update(s,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:xt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),a=this.changes(r.changes),i=[r.range],o=S0(r.effects);for(let s=1;so.spec.fromJSON(s,l)))}}return ea.create({doc:t.doc,selection:xt.fromJSON(t.selection),extensions:n.extensions?a.concat([n.extensions]):a})}static create(t={}){let n=dR.resolve(t.extensions||[],new Map),r=t.doc instanceof ma?t.doc:ma.of((t.doc||"").split(n.staticFacet(ea.lineSeparator)||Pz)),a=t.selection?t.selection instanceof xt?t.selection:xt.single(t.selection.anchor,t.selection.head):xt.single(0);return xRe(a,r.length),n.staticFacet(Mz)||(a=a.asSingle()),new ea(n,r,a,n.dynamicSlots.map(()=>null),(i,o)=>o.create(i),null)}get tabSize(){return this.facet(ea.tabSize)}get lineBreak(){return this.facet(ea.lineSeparator)||` +`}get readOnly(){return this.facet(kRe)}phrase(t,...n){for(let r of this.facet(ea.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,a)=>{if(a=="$")return"$";let i=+(a||1);return!i||i>n.length?r:n[i-1]})),t}languageDataAt(t,n,r=-1){let a=[];for(let i of this.facet(wRe))for(let o of i(this,n,r))Object.prototype.hasOwnProperty.call(o,t)&&a.push(o[t]);return a}charCategorizer(t){let n=this.languageDataAt("wordChars",t);return oxt(n.length?n[0]:"")}wordAt(t){let{text:n,from:r,length:a}=this.doc.lineAt(t),i=this.charCategorizer(t),o=t-r,s=t-r;for(;o>0;){let l=So(n,o,!1);if(i(n.slice(l,o))!=li.Word)break;o=l}for(;se.length?e[0]:4});ea.lineSeparator=CRe;ea.readOnly=kRe;ea.phrases=yn.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(a=>e[a]==t[a])}});ea.languageData=wRe;ea.changeFilter=$Re;ea.transactionFilter=RRe;ea.transactionExtender=PRe;vA.reconfigure=_r.define();function wu(e,t,n={}){let r={};for(let a of e)for(let i of Object.keys(a)){let o=a[i],s=r[i];if(s===void 0)r[i]=o;else if(!(s===o||o===void 0))if(Object.hasOwnProperty.call(n,i))r[i]=n[i](s,o);else throw new Error("Config merge conflict for field "+i)}for(let a in t)r[a]===void 0&&(r[a]=t[a]);return r}class em{eq(t){return this==t}range(t,n=t){return Q_.create(t,n,this)}}em.prototype.startSide=em.prototype.endSide=0;em.prototype.point=!1;em.prototype.mapMode=Bo.TrackDel;function _Y(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}class Q_{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new Q_(t,n,r)}}function Qz(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class EY{constructor(t,n,r,a){this.from=t,this.to=n,this.value=r,this.maxPoint=a}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,a=0){let i=r?this.to:this.from;for(let o=a,s=i.length;;){if(o==s)return o;let l=o+s>>1,c=i[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==o)return c>=0?o:s;c>=0?s=l:o=l+1}}between(t,n,r,a){for(let i=this.findIndex(n,-1e9,!0),o=this.findIndex(r,1e9,!1,i);im||f==m&&c.startSide>0&&c.endSide<=0)continue;(m-f||c.endSide-c.startSide)<0||(o<0&&(o=f),c.point&&(s=Math.max(s,m-f)),r.push(c),a.push(f-o),i.push(m-o))}return{mapped:r.length?new EY(a,i,r,s):null,pos:o}}}class jr{constructor(t,n,r,a){this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=a}static create(t,n,r,a){return new jr(t,n,r,a)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:a=0,filterTo:i=this.length}=t,o=t.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(Qz)),this.isEmpty)return n.length?jr.of(n):this;let s=new IRe(this,null,-1).goto(0),l=0,c=[],u=new $f;for(;s.value||l=0){let d=n[l++];u.addInner(d.from,d.to,d.value)||c.push(d)}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||is.to||i=i&&t<=i+o.length&&o.between(i,t-i,n-i,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return z_.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return z_.from(t).goto(n)}static compare(t,n,r,a,i=-1){let o=t.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=i),s=n.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=i),l=Fse(o,s,r),c=new oy(o,l,i),u=new oy(s,l,i);r.iterGaps((d,f,m)=>Use(c,d,u,f,m,a)),r.empty&&r.length==0&&Use(c,0,u,0,0,a)}static eq(t,n,r=0,a){a==null&&(a=999999999);let i=t.filter(u=>!u.isEmpty&&n.indexOf(u)<0),o=n.filter(u=>!u.isEmpty&&t.indexOf(u)<0);if(i.length!=o.length)return!1;if(!i.length)return!0;let s=Fse(i,o),l=new oy(i,s,0).goto(r),c=new oy(o,s,0).goto(r);for(;;){if(l.to!=c.to||!zz(l.active,c.active)||l.point&&(!c.point||!_Y(l.point,c.point)))return!1;if(l.to>a)return!0;l.next(),c.next()}}static spans(t,n,r,a,i=-1){let o=new oy(t,null,i).goto(n),s=n,l=o.openStart;for(;;){let c=Math.min(o.to,r);if(o.point){let u=o.activeForPoint(o.to),d=o.pointFroms&&(a.span(s,c,o.active,l),l=o.openEnd(c));if(o.to>r)return l+(o.point&&o.to>r?1:0);s=o.to,o.next()}}static of(t,n=!1){let r=new $f;for(let a of t instanceof Q_?[t]:n?sxt(t):t)r.add(a.from,a.to,a.value);return r.finish()}static join(t){if(!t.length)return jr.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let a=t[r];a!=jr.empty;a=a.nextLayer)n=new jr(a.chunkPos,a.chunk,n,Math.max(a.maxPoint,n.maxPoint));return n}}jr.empty=new jr([],[],null,-1);function sxt(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Qz);t=r}return e}jr.empty.nextLayer=jr.empty;class $f{finishChunk(t){this.chunks.push(new EY(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new $f)).add(t,n,r)}addInner(t,n,r){let a=t-this.lastTo||r.startSide-this.last.endSide;if(a<=0&&(t-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return a<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=t,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-t)),!0)}addChunk(t,n){if((t-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(t);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+t,this.lastTo=n.to[r]+t,!0}finish(){return this.finishInner(jr.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=jr.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function Fse(e,t,n){let r=new Map;for(let i of e)for(let o=0;o=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&a.push(new IRe(o,n,r,i));return a.length==1?a[0]:new z_(a)}get startSide(){return this.value?this.value.startSide:0}goto(t,n=-1e9){for(let r of this.heap)r.goto(t,n);for(let r=this.heap.length>>1;r>=0;r--)J5(this.heap,r);return this.next(),this}forward(t,n){for(let r of this.heap)r.forward(t,n);for(let r=this.heap.length>>1;r>=0;r--)J5(this.heap,r);(this.to-t||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),J5(this.heap,0)}}}function J5(e,t){for(let n=e[t];;){let r=(t<<1)+1;if(r>=e.length)break;let a=e[r];if(r+1=0&&(a=e[r+1],r++),n.compare(a)<0)break;e[r]=n,e[t]=a,t=r}}class oy{constructor(t,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=z_.from(t,n,r)}goto(t,n=-1e9){return this.cursor.goto(t,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=n,this.openStart=-1,this.next(),this}forward(t,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(t,n)}removeActive(t){Dw(this.active,t),Dw(this.activeTo,t),Dw(this.activeRank,t),this.minActive=jse(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:a,rank:i}=this.cursor;for(;n0;)n++;Lw(this.active,n,r),Lw(this.activeTo,n,a),Lw(this.activeRank,n,i),t&&Lw(t,n,this.cursor.from),this.minActive=jse(this.active,this.activeTo)}next(){let t=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let a=this.minActive;if(a>-1&&(this.activeTo[a]-this.cursor.from||this.active[a].endSide-this.cursor.startSide)<0){if(this.activeTo[a]>t){this.to=this.activeTo[a],this.endSide=this.active[a].endSide;break}this.removeActive(a),r&&Dw(r,a)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let i=this.cursor.value;if(!i.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&r[a]=0&&!(this.activeRank[r]t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function Use(e,t,n,r,a,i){e.goto(t),n.goto(r);let o=r+a,s=r,l=r-t,c=!!i.boundChange;for(let u=!1;;){let d=e.to+l-n.to,f=d||e.endSide-n.endSide,m=f<0?e.to+l:n.to,h=Math.min(m,o);if(e.point||n.point?(e.point&&n.point&&_Y(e.point,n.point)&&zz(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,h,e.point,n.point),u=!1):(u&&i.boundChange(s),h>s&&!zz(e.active,n.active)&&i.compareRange(s,h,e.active,n.active),c&&ho)break;s=m,f<=0&&e.next(),f>=0&&n.next()}}function zz(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;r--)e[r+1]=e[r];e[t]=n}function jse(e,t){let n=-1,r=1e9;for(let a=0;a=t)return a;if(a==e.length)break;i+=e.charCodeAt(a)==9?n-i%n:1,a=So(e,a)}return r===!0?-1:e.length}const Fz="ͼ",Xse=typeof Symbol>"u"?"__"+Fz:Symbol.for(Fz),Uz=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Yse=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class tm{constructor(t,n){this.rules=[];let{finish:r}=n||{};function a(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function i(o,s,l,c){let u=[],d=/^@(\w+)\b/.exec(o[0]),f=d&&d[1]=="keyframes";if(d&&s==null)return l.push(o[0]+";");for(let m in s){let h=s[m];if(/&/.test(m))i(m.split(/,\s*/).map(g=>o.map(O=>g.replace(/&/,O))).reduce((g,O)=>g.concat(O)),h,l);else if(h&&typeof h=="object"){if(!d)throw new RangeError("The value of a property ("+m+") should be a primitive value.");i(a(m),h,u,f)}else h!=null&&u.push(m.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+h+";")}(u.length||f)&&l.push((r&&!d&&!c?o.map(r):o).join(", ")+" {"+u.join(" ")+"}")}for(let o in t)i(a(o),t[o],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let t=Yse[Xse]||1;return Yse[Xse]=t+1,Fz+t.toString(36)}static mount(t,n,r){let a=t[Uz],i=r&&r.nonce;a?i&&a.setNonce(i):a=new lxt(t,i),a.mount(Array.isArray(n)?n:[n],t)}}let Vse=new Map;class lxt{constructor(t,n){let r=t.ownerDocument||t,a=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&a.CSSStyleSheet){let i=Vse.get(r);if(i)return t[Uz]=i;this.sheet=new a.CSSStyleSheet,Vse.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],t[Uz]=this}mount(t,n){let r=this.sheet,a=0,i=0;for(let o=0;o-1&&(this.modules.splice(l,1),i--,l=-1),l==-1){if(this.modules.splice(i++,0,s),r)for(let c=0;c",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},cxt=typeof navigator<"u"&&/Mac/.test(navigator.platform),uxt=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var zo=0;zo<10;zo++)nm[48+zo]=nm[96+zo]=String(zo);for(var zo=1;zo<=24;zo++)nm[zo+111]="F"+zo;for(var zo=65;zo<=90;zo++)nm[zo]=String.fromCharCode(zo+32),B_[zo]=String.fromCharCode(zo);for(var e3 in nm)B_.hasOwnProperty(e3)||(B_[e3]=nm[e3]);function dxt(e){var t=cxt&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||uxt&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?B_:nm)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function Ia(){var e=arguments[0];typeof e=="string"&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var a=n[r];typeof a=="string"?e.setAttribute(r,a):a!=null&&(e[r]=a)}t++}for(;t2);var Cn={mac:Wse||/Mac/.test(xs.platform),windows:/Win/.test(xs.platform),linux:/Linux|X11/.test(xs.platform),ie:yA,ie_version:DRe?jz.documentMode||6:Yz?+Yz[1]:Xz?+Xz[1]:0,gecko:qse,gecko_version:qse?+(/Firefox\/(\d+)/.exec(xs.userAgent)||[0,0])[1]:0,chrome:!!t3,chrome_version:t3?+t3[1]:0,ios:Wse,android:/Android\b/.test(xs.userAgent),webkit_version:fxt?+(/\bAppleWebKit\/(\d+)/.exec(xs.userAgent)||[0,0])[1]:0,safari:Vz,safari_version:Vz?+(/\bVersion\/(\d+(\.\d+)?)/.exec(xs.userAgent)||[0,0])[1]:0,tabSize:jz.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function xY(e,t){for(let n in e)n=="class"&&t.class?t.class+=" "+e.class:n=="style"&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const pR=Object.create(null);function TY(e,t,n){if(e==t)return!0;e||(e=pR),t||(t=pR);let r=Object.keys(e),a=Object.keys(t);if(r.length-0!=a.length-0)return!1;for(let i of r)if(i!=n&&(a.indexOf(i)==-1||e[i]!==t[i]))return!1;return!0}function pxt(e,t){for(let n=e.attributes.length-1;n>=0;n--){let r=e.attributes[n].name;t[r]==null&&e.removeAttribute(r)}for(let n in t){let r=t[n];n=="style"?e.style.cssText=r:e.getAttribute(n)!=r&&e.setAttribute(n,r)}}function Gse(e,t,n){let r=!1;if(t)for(let a in t)n&&a in n||(r=!0,a=="style"?e.style.cssText="":e.removeAttribute(a));if(n)for(let a in n)t&&t[a]==n[a]||(r=!0,a=="style"?e.style.cssText=n[a]:e.setAttribute(a,n[a]));return r}function mxt(e){let t=Object.create(null);for(let n=0;n0?3e8:-4e8:n>0?1e8:-1e8,new tg(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,a;if(t.isBlockGap)r=-5e8,a=4e8;else{let{start:i,end:o}=LRe(t,n);r=(i?n?-3e8:-1:5e8)-1,a=(o?n?2e8:1:-6e8)+1}return new tg(t,r,a,n,t.widget||null,!0)}static line(t){return new gx(t)}static set(t,n=!1){return jr.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Hn.none=jr.empty;class hx extends Hn{constructor(t){let{start:n,end:r}=LRe(t);super(n?-1:5e8,r?1:-6e8,null,t),this.tagName=t.tagName||"span",this.attrs=t.class&&t.attributes?xY(t.attributes,{class:t.class}):t.class?{class:t.class}:t.attributes||pR}eq(t){return this==t||t instanceof hx&&this.tagName==t.tagName&&TY(this.attrs,t.attrs)}range(t,n=t){if(t>=n)throw new RangeError("Mark decorations may not be empty");return super.range(t,n)}}hx.prototype.point=!1;class gx extends Hn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof gx&&this.spec.class==t.spec.class&&TY(this.spec.attributes,t.spec.attributes)}range(t,n=t){if(n!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,n)}}gx.prototype.mapMode=Bo.TrackBefore;gx.prototype.point=!0;class tg extends Hn{constructor(t,n,r,a,i,o){super(n,r,i,t),this.block=a,this.isReplace=o,this.mapMode=a?n<=0?Bo.TrackBefore:Bo.TrackAfter:Bo.TrackDel}get type(){return this.startSide!=this.endSide?Fo.WidgetRange:this.startSide<=0?Fo.WidgetBefore:Fo.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof tg&&hxt(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,n=t){if(this.isReplace&&(t>n||t==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,n)}}tg.prototype.point=!0;function LRe(e,t=!1){let{inclusiveStart:n,inclusiveEnd:r}=e;return n==null&&(n=e.inclusive),r==null&&(r=e.inclusive),{start:n??t,end:r??t}}function hxt(e,t){return e==t||!!(e&&t&&e.compare(t))}function _0(e,t,n,r=0){let a=n.length-1;a>=0&&n[a]+r>=e?n[a]=Math.max(n[a],t):n.push(e,t)}class F_ extends em{constructor(t,n){super(),this.tagName=t,this.attributes=n}eq(t){return t==this||t instanceof F_&&this.tagName==t.tagName&&TY(this.attributes,t.attributes)}static create(t){return new F_(t.tagName,t.attributes||pR)}static set(t,n=!1){return jr.of(t,n)}}F_.prototype.startSide=F_.prototype.endSide=-1;function U_(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function qz(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function LS(e,t){if(!t.anchorNode)return!1;try{return qz(e,t.anchorNode)}catch{return!1}}function QS(e){return e.nodeType==3?X_(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function zS(e,t,n,r){return n?Hse(e,t,n,r,-1)||Hse(e,t,n,r,1):!1}function rm(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function mR(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function Hse(e,t,n,r,a){for(;;){if(e==n&&t==r)return!0;if(t==(a<0?0:Rf(e))){if(e.nodeName=="DIV")return!1;let i=e.parentNode;if(!i||i.nodeType!=1)return!1;t=rm(e)+(a<0?0:1),e=i}else if(e.nodeType==1){if(e=e.childNodes[t+(a<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=a<0?Rf(e):0}else return!1}}function Rf(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function j_(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function gxt(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function QRe(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function Oxt(e,t,n,r,a,i,o,s){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,d=!1;u&&!d;)if(u.nodeType==1){let f,m=u==l.body,h=1,g=1;if(m)f=gxt(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let y=u.getBoundingClientRect();({scaleX:h,scaleY:g}=QRe(u,y)),f={left:y.left,right:y.left+u.clientWidth*h,top:y.top,bottom:y.top+u.clientHeight*g}}let O=0,v=0;if(a=="nearest")t.top0&&t.bottom>f.bottom+v&&(v=t.bottom-f.bottom+o)):t.bottom>f.bottom&&(v=t.bottom-f.bottom+o,n<0&&t.top-v0&&t.right>f.right+O&&(O=t.right-f.right+i)):t.right>f.right&&(O=t.right-f.right+i,n<0&&t.leftf.bottom||t.leftf.right)&&(t={left:Math.max(t.left,f.left),right:Math.min(t.right,f.right),top:Math.max(t.top,f.top),bottom:Math.min(t.bottom,f.bottom)}),u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function zRe(e,t=!0){let n=e.ownerDocument,r=null,a=null;for(let i=e.parentNode;i&&!(i==n.body||(!t||r)&&a);)if(i.nodeType==1)!a&&i.scrollHeight>i.clientHeight&&(a=i),t&&!r&&i.scrollWidth>i.clientWidth&&(r=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:r,y:a}}class bxt{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:n,focusNode:r}=t;this.set(n,Math.min(t.anchorOffset,n?Rf(n):0),r,Math.min(t.focusOffset,r?Rf(r):0))}set(t,n,r,a){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=a}}let rh=null;Cn.safari&&Cn.safari_version>=26&&(rh=!1);function BRe(e){if(e.setActive)return e.setActive();if(rh)return e.focus(rh);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(rh==null?{get preventScroll(){return rh={preventScroll:!0},!0}}:void 0),!rh){rh=!1;for(let n=0;nMath.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function URe(e,t){for(let n=e,r=t;;){if(n.nodeType==3&&r>0)return{node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=Rf(n)}else if(n.parentNode&&!mR(n))r=rm(n),n=n.parentNode;else return null}}function jRe(e,t){for(let n=e,r=t;;){if(n.nodeType==3&&r=n){if(s.level==r)return o;(i<0||(a!=0?a<0?s.fromn:t[i].level>s.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function VRe(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;g-=3)if(Qu[g+1]==-m){let O=Qu[g+2],v=O&2?a:O&4?O&1?i:a:0;v&&(za[d]=za[Qu[g]]=v),s=g;break}}else{if(Qu.length==189)break;Qu[s++]=d,Qu[s++]=f,Qu[s++]=l}else if((h=za[d])==2||h==1){let g=h==a;l=g?0:1;for(let O=s-3;O>=0;O-=3){let v=Qu[O+2];if(v&2)break;if(g)Qu[O+2]|=2;else{if(v&4)break;Qu[O+2]|=4}}}}}function wxt(e,t,n,r){for(let a=0,i=r;a<=n.length;a++){let o=a?n[a-1].to:e,s=al;)h==O&&(h=n[--g].from,O=g?n[g-1].to:e),za[--h]=m;l=u}else i=c,l++}}}function Gz(e,t,n,r,a,i,o){let s=r%2?2:1;if(r%2==a%2)for(let l=t,c=0;ll&&o.push(new ad(l,g.from,m));let O=g.direction==ng!=!(m%2);Hz(e,O?r+1:r,a,g.inner,g.from,g.to,o),l=g.to}h=g.to}else{if(h==n||(u?za[h]!=s:za[h]==s))break;h++}f?Gz(e,l,h,r+1,a,f,o):lt;){let u=!0,d=!1;if(!c||l>i[c-1].to){let g=za[l-1];g!=s&&(u=!1,d=g==16)}let f=!u&&s==1?[]:null,m=u?r:r+1,h=l;e:for(;;)if(c&&h==i[c-1].to){if(d)break e;let g=i[--c];if(!u)for(let O=g.from,v=c;;){if(O==t)break e;if(v&&i[v-1].to==O)O=i[--v].from;else{if(za[O-1]==s)break e;break}}if(f)f.push(g);else{g.toza.length;)za[za.length]=256;let r=[],a=t==ng?0:1;return Hz(e,a,a,n,0,e.length,r),r}function qRe(e){return[new ad(0,e,0)]}let WRe="";function $xt(e,t,n,r,a){var i;let o=r.head-e.from,s=ad.find(t,o,(i=r.bidiLevel)!==null&&i!==void 0?i:-1,r.assoc),l=t[s],c=l.side(a,n);if(o==c){let f=s+=a?1:-1;if(f<0||f>=t.length)return null;l=t[s=f],o=l.side(!a,n),c=l.side(a,n)}let u=So(e.text,o,l.forward(a,n));(ul.to)&&(u=c),WRe=e.text.slice(Math.min(o,u),Math.max(o,u));let d=s==(a?t.length-1:0)?null:t[s+(a?1:-1)];return d&&u==c&&d.level+(a?0:1)e.some(t=>t)}),nPe=yn.define({combine:e=>e.some(t=>t)}),rPe=yn.define();class x0{constructor(t,n="nearest",r="nearest",a=5,i=5,o=!1){this.range=t,this.y=n,this.x=r,this.yMargin=a,this.xMargin=i,this.isSnapshot=o}map(t){return t.empty?this:new x0(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new x0(xt.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Qw=_r.define({map:(e,t)=>e.map(t)}),aPe=_r.define();function Rs(e,t,n){let r=e.facet(KRe);r.length?r[0](t):window.onerror&&window.onerror(String(t),n,void 0,void 0,t)||(n?console.error(n+":",t):console.error(t))}const pf=yn.define({combine:e=>e.length?e[0]:!0});let Pxt=0;const a0=yn.define({combine(e){return e.filter((t,n)=>{for(let r=0;r{let l=[];return o&&l.push(SA.of(c=>{let u=c.plugin(s);return u?o(u):Hn.none})),i&&l.push(i(s)),l})}static fromClass(t,n){return yi.define((r,a)=>new t(r,a),n)}}class n3{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(t){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(Rs(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(t,this.spec.arg)}catch(n){Rs(t.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){Rs(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const iPe=yn.define(),RY=yn.define(),SA=yn.define(),oPe=yn.define(),PY=yn.define(),Ox=yn.define(),sPe=yn.define();function Kse(e,t){let n=e.state.facet(sPe);if(!n.length)return n;let r=n.map(i=>i instanceof Function?i(e):i),a=[];return jr.spans(r,t.from,t.to,{point(){},span(i,o,s,l){let c=i-t.from,u=o-t.from,d=a;for(let f=s.length-1;f>=0;f--,l--){let m=s[f].spec.bidiIsolate,h;if(m==null&&(m=Rxt(t.text,c,u)),l>0&&d.length&&(h=d[d.length-1]).to==c&&h.direction==m)h.to=u,d=h.inner;else{let g={from:c,to:u,direction:m,inner:[]};d.push(g),d=g.inner}}}}),a}const lPe=yn.define();function kY(e){let t=0,n=0,r=0,a=0;for(let i of e.state.facet(lPe)){let o=i(e);o&&(o.left!=null&&(t=Math.max(t,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(a=Math.max(a,o.bottom)))}return{left:t,right:n,top:r,bottom:a}}const iS=yn.define();class yc{constructor(t,n,r,a){this.fromA=t,this.toA=n,this.fromB=r,this.toB=a}join(t){return new yc(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let a=t[n-1];if(!(a.fromA>r.toA)){if(a.toAa.push(new yc(i,o,s,l))),this.changedRanges=a}static create(t,n,r){return new hR(t,n,r)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}const kxt=[];class wi{constructor(t,n,r=0){this.dom=t,this.length=n,this.flags=r,this.parent=null,t.cmTile=this}get breakAfter(){return this.flags&1}get children(){return kxt}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(t){if(this.flags|=2,this.flags&4){this.flags&=-5;let n=this.domAttrs;n&&pxt(this.dom,n)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(t){this.dom=t,t.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t,n=this.posAtStart){let r=n;for(let a of this.children){if(a==t)return r;r+=a.length+a.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}covers(t){return!0}coordsIn(t,n){return null}domPosFor(t,n){let r=rm(this.dom),a=this.length?t>0:n>0;return new du(this.parent.dom,r+(a?1:0),t==0||t==this.length)}markDirty(t){this.flags&=-3,t&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let t=this;t;t=t.parent)if(t instanceof EA)return t;return null}static get(t){return t.cmTile}}class _A extends wi{constructor(t){super(t,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(t){this.children.push(t),t.parent=this}sync(t){if(this.flags&2)return;super.sync(t);let n=this.dom,r=null,a,i=(t==null?void 0:t.node)==n?t:null,o=0;for(let s of this.children){if(s.sync(t),o+=s.length+s.breakAfter,a=r?r.nextSibling:n.firstChild,i&&a!=s.dom&&(i.written=!0),s.dom.parentNode==n)for(;a&&a!=s.dom;)a=Jse(a);else n.insertBefore(s.dom,a);r=s.dom}for(a=r?r.nextSibling:n.firstChild,i&&a&&(i.written=!0);a;)a=Jse(a);this.length=o}}function Jse(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class EA extends _A{constructor(t,n){super(n),this.view=t}owns(t){for(;t;t=t.parent)if(t==this)return!0;return!1}isBlock(){return!0}nearest(t){for(;;){if(!t)return null;let n=wi.get(t);if(n&&this.owns(n))return n;t=t.parentNode}}blockTiles(t){for(let n=[],r=this,a=0,i=0;;)if(a==r.children.length){if(!n.length)return;r=r.parent,r.breakAfter&&i++,a=n.pop()}else{let o=r.children[a++];if(o instanceof Sf)n.push(a),r=o,a=0;else{let s=i+o.length,l=t(o,i);if(l!==void 0)return l;i=s+o.breakAfter}}}resolveBlock(t,n){let r,a=-1,i,o=-1;if(this.blockTiles((s,l)=>{let c=l+s.length;if(t>=l&&t<=c){if(s.isWidget()&&n>=-1&&n<=1){if(s.flags&32)return!0;s.flags&16&&(r=void 0)}(lt||t==l&&(n>1?s.length:s.covers(-1)))&&(!i||!s.isWidget()&&i.isWidget())&&(i=s,o=t-l)}}),!r&&!i)throw new Error("No tile at position "+t);return r&&n<0||!i?{tile:r,offset:a}:{tile:i,offset:o}}}class Sf extends _A{constructor(t,n){super(t),this.wrapper=n}isBlock(){return!0}covers(t){return this.children.length?t<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(t,n){let r=new Sf(n||document.createElement(t.tagName),t);return n||(r.flags|=4),r}}class eb extends _A{constructor(t,n){super(t),this.attrs=n}isLine(){return!0}static start(t,n,r){let a=new eb(n||document.createElement("div"),t);return(!n||!r)&&(a.flags|=4),a}get domAttrs(){return this.attrs}resolveInline(t,n,r){let a=null,i=-1,o=null,s=-1;function l(u,d){for(let f=0,m=0;f=d&&(h.isComposite()?l(h,d-m):(!o||o.isHidden&&(n>0||r&&Nxt(o,h)))&&(g>d||h.flags&32)?(o=h,s=d-m):(mr&&(t=r);let a=t,i=t,o=0;t==0&&n<0||t==r&&n>=0?Cn.chrome||Cn.gecko||(t?(a--,o=1):i=0)?0:s.length-1];return Cn.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(s,c=>c.width)||l),o?j_(l,o<0):l||null}static of(t,n){let r=new Th(n||document.createTextNode(t),t);return n||(r.flags|=2),r}}class rg extends wi{constructor(t,n,r,a){super(t,n,a),this.widget=r}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(t){return this.flags&48?!1:(this.flags&(t<0?64:128))>0}coordsIn(t,n){return this.coordsInWidget(t,n,!1)}coordsInWidget(t,n,r){let a=this.widget.coordsAt(this.dom,t,n);if(a)return a;if(r)return j_(this.dom.getBoundingClientRect(),this.length?t==0:n<=0);{let i=this.dom.getClientRects(),o=null;if(!i.length)return null;let s=this.flags&16?!0:this.flags&32?!1:t>0;for(let l=s?i.length-1:0;o=i[l],!(t>0?l==0:l==i.length-1||o.top0;)if(a.isComposite())if(o){if(!t)break;r&&r.break(),t--,o=!1}else if(i==a.children.length){if(!t&&!s.length)break;r&&r.leave(a),o=!!a.breakAfter,{tile:a,index:i}=s.pop(),i++}else{let l=a.children[i],c=l.breakAfter;(n>0?l.length<=t:l.length=0;s--){let l=n.marks[s],c=a.lastChild;if(c instanceof tl&&c.mark.eq(l.mark))c.dom!=l.dom&&c.setDOM(r3(l.dom)),a=c;else{if(this.cache.reused.get(l)){let d=wi.get(l.dom);d&&d.setDOM(r3(l.dom))}let u=tl.of(l.mark,l.dom);a.append(u),a=u}this.cache.reused.set(l,2)}let i=wi.get(t.text);i&&this.cache.reused.set(i,2);let o=new Th(t.text,t.text.nodeValue);o.flags|=8,a.append(o)}addInlineWidget(t,n,r){let a=this.afterWidget&&t.flags&48&&(this.afterWidget.flags&48)==(t.flags&48);a||this.flushBuffer();let i=this.ensureMarks(n,r);!a&&!(t.flags&16)&&i.append(this.getBuffer(1)),i.append(t),this.pos+=t.length,this.afterWidget=t}addMark(t,n,r){this.flushBuffer(),this.ensureMarks(n,r).append(t),this.pos+=t.length,this.afterWidget=null}addBlockWidget(t){this.getBlockPos().append(t),this.pos+=t.length,this.lastBlock=t,this.endLine()}continueWidget(t){let n=this.afterWidget||this.lastBlock;n.length+=t,this.pos+=t}addLineStart(t,n){var r;t||(t=cPe);let a=eb.start(t,n||((r=this.cache.find(eb))===null||r===void 0?void 0:r.dom),!!n);this.getBlockPos().append(this.lastBlock=this.curLine=a)}addLine(t){this.getBlockPos().append(t),this.pos+=t.length,this.lastBlock=t,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(t){this.blockPosCovered()||this.addLineStart(t)}ensureLine(t){this.curLine||this.addLineStart(t)}ensureMarks(t,n){var r;let a=this.curLine;for(let i=t.length-1;i>=0;i--){let o=t[i],s;if(n>0&&(s=a.lastChild)&&s instanceof tl&&s.mark.eq(o))a=s,n--;else{let l=tl.of(o,(r=this.cache.find(tl,c=>c.mark.eq(o)))===null||r===void 0?void 0:r.dom);a.append(l),a=l,n=0}}return a}endLine(){if(this.curLine){this.flushBuffer();let t=this.curLine.lastChild;(!t||!ele(this.curLine,!1)||t.dom.nodeName!="BR"&&t.isWidget()&&!(Cn.ios&&ele(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(a3,0,32)||new rg(a3.toDOM(),0,a3,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let t=this.wrappers.length-1;t>=0;t--)this.wrappers[t].to=this.pos){let n=new Mxt(t.from,t.to,t.value,t.rank),r=this.wrappers.length;for(;r>0&&(this.wrappers[r-1].rank-n.rank||this.wrappers[r-1].to-n.to)<0;)r--;this.wrappers.splice(r,0,n)}this.wrapperPos=this.pos}getBlockPos(){var t;this.updateBlockWrappers();let n=this.root;for(let r of this.wrappers){let a=n.lastChild;if(r.fromo.wrapper.eq(r.wrapper)))===null||t===void 0?void 0:t.dom);n.append(i),n=i}}return n}blockPosCovered(){let t=this.lastBlock;return t!=null&&!t.breakAfter&&(!t.isWidget()||(t.flags&160)>0)}getBuffer(t){let n=2|(t<0?16:32),r=this.cache.find(gR,void 0,1);return r&&(r.flags=n),r||new gR(n)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class Lxt{constructor(t){this.skipCount=0,this.text="",this.textOff=0,this.cursor=t.iter()}skip(t){this.textOff+t<=this.text.length?this.textOff+=t:(this.skipCount+=t-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(t){if(this.textOff==this.text.length){let{value:a,lineBreak:i,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=a;let s=this.textOff=Math.min(t,a.length);return i?null:a.slice(0,s)}let n=Math.min(this.text.length,this.textOff+t),r=this.text.slice(this.textOff,n);return this.textOff=n,r}}const OR=[rg,eb,Th,tl,gR,Sf,EA];for(let e=0;e[]),this.index=OR.map(()=>0),this.reused=new Map}add(t){let n=t.constructor.bucket,r=this.buckets[n];r.length<6?r.push(t):r[this.index[n]=(this.index[n]+1)%6]=t}find(t,n,r=2){let a=t.bucket,i=this.buckets[a],o=this.index[a];for(let s=i.length-1;s>=0;s--){let l=(s+o)%i.length,c=i[l];if((!n||n(c))&&!this.reused.has(c))return i.splice(l,1),l{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(t,n){let r=n&&this.getCompositionContext(n.text);for(let a=0,i=0,o=0;;){let s=oa){let c=l-a;this.preserve(c,!o,!s),a=l,i+=c}if(!s)break;n&&s.fromA<=n.range.fromA&&s.toA>=n.range.toA?(this.forward(s.fromA,n.range.fromA,n.range.fromA{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(l-s);else{let c=l>0||s{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof tl&&a.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?a.length&&(a.length=i=0):o instanceof tl&&(a.shift(),i=Math.min(i,a.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(t)}emit(t,n){let r=null,a=this.builder,i=0,o=jr.spans(this.decorations,t,n,{point:(s,l,c,u,d,f)=>{if(c instanceof tg){if(this.disallowBlockEffectsFor[f]){if(c.block)throw new RangeError("Block decorations may not be specified via plugins");if(l>this.view.state.doc.lineAt(s).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(i=u.length,d>u.length)a.continueWidget(l-s);else{let m=c.widget||(c.block?tb.block:tb.inline),h=Bxt(c),g=this.cache.findWidget(m,l-s,h)||rg.of(m,this.view,l-s,h);c.block?(c.startSide>0&&a.addLineStartIfNotCovered(r),a.addBlockWidget(g)):(a.ensureLine(r),a.addInlineWidget(g,u,d))}r=null}else r=Fxt(r,c);l>s&&this.text.skip(l-s)},span:(s,l,c,u)=>{for(let d=s;di,this.openMarks=o}forward(t,n,r=1){n-t<=10?this.old.advance(n-t,r,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(n-t-10,-1),this.old.advance(5,r,this.reuseWalker))}getCompositionContext(t){let n=[],r=null;for(let a=t.parentNode;;a=a.parentNode){let i=wi.get(a);if(a==this.view.contentDOM)break;i instanceof tl?n.push(i):i!=null&&i.isLine()?r=i:i instanceof Sf||(a.nodeName=="DIV"&&!r&&a!=this.view.contentDOM?r=new eb(a,cPe):r||n.push(tl.of(new hx({tagName:a.nodeName.toLowerCase(),attributes:mxt(a)}),a)))}return{line:r,marks:n}}}function ele(e,t){let n=r=>{for(let a of r.children)if((t?a.isText():a.length)||n(a))return!0;return!1};return n(e)}function Bxt(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;return e.block&&(t|=256),t}const cPe={class:"cm-line"};function Fxt(e,t){let n=t.spec.attributes,r=t.spec.class;return!n&&!r||(e||(e={class:"cm-line"}),n&&xY(n,e),r&&(e.class+=" "+r)),e}function Uxt(e){let t=[];for(let n=e.parents.length;n>1;n--){let r=n==e.parents.length?e.tile:e.parents[n].tile;r instanceof tl&&t.push(r.mark)}return t}function r3(e){let t=wi.get(e);return t&&t.setDOM(e.cloneNode()),e}class tb extends Cu{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}tb.inline=new tb("span");tb.block=new tb("div");const a3=new class extends Cu{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class tle{constructor(t){this.view=t,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=Hn.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new EA(t,t.contentDOM),this.updateInner([new yc(0,0,0,t.state.doc.length)],null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:d})=>dthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let a=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?a=this.domChanged.newSel.head:!Zxt(t.changes,this.hasComposition)&&!t.selectionSet&&(a=t.state.selection.main.head));let i=a>-1?Xxt(this.view,t.changes,a):null;if(this.domChanged=null,this.hasComposition){let{from:u,to:d}=this.hasComposition;r=new yc(u,d,t.changes.mapPos(u,-1),t.changes.mapPos(d,1)).addToSet(r.slice())}this.hasComposition=i?{from:i.range.fromB,to:i.range.toB}:null,(Cn.ie||Cn.chrome)&&!i&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,s=this.blockWrappers;this.updateDeco();let l=qxt(o,this.decorations,t.changes);l.length&&(r=yc.extendWithRanges(r,l));let c=Gxt(s,this.blockWrappers,t.changes);return c.length&&(r=yc.extendWithRanges(r,c)),i&&!r.some(u=>u.fromA<=i.range.fromA&&u.toA>=i.range.toA)&&(r=i.range.addToSet(r.slice())),this.tile.flags&2&&r.length==0?!1:(this.updateInner(r,i),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n){this.view.viewState.mustMeasureContent=!0;let{observer:r}=this.view;r.ignore(()=>{if(n||t.length){let o=this.tile,s=new zxt(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);n&&wi.get(n.text)&&s.cache.reused.set(wi.get(n.text),2),this.tile=s.run(t,n),Kz(o,s.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let i=Cn.chrome||Cn.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(i),i&&(i.written||r.selectionRange.focusNode!=i.node||!this.tile.dom.contains(i.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let a=[];if(this.view.viewport.from||this.view.viewport.to-1)&&LS(r,this.view.observer.selectionRange)&&!(a&&r.contains(a));if(!(i||n||o))return;let s=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,c,u;if(l.empty?u=c=this.inlineDOMNearPos(l.anchor,l.assoc||1):(u=this.inlineDOMNearPos(l.head,l.head==l.from?1:-1),c=this.inlineDOMNearPos(l.anchor,l.anchor==l.from?1:-1)),Cn.gecko&&l.empty&&!this.hasComposition&&jxt(c)){let f=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(f,c.node.childNodes[c.offset]||null)),c=u=new du(f,0),s=!0}let d=this.view.observer.selectionRange;(s||!d.focusNode||(!zS(c.node,c.offset,d.anchorNode,d.anchorOffset)||!zS(u.node,u.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,l))&&(this.view.observer.ignore(()=>{Cn.android&&Cn.chrome&&r.contains(d.focusNode)&&Hxt(d.focusNode,r)&&(r.blur(),r.focus({preventScroll:!0}));let f=U_(this.view.root);if(f)if(l.empty){if(Cn.gecko){let m=Yxt(c.node,c.offset);if(m&&m!=3){let h=(m==1?URe:jRe)(c.node,c.offset);h&&(c=new du(h.node,h.offset))}}f.collapse(c.node,c.offset),l.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=l.bidiLevel)}else if(f.extend){f.collapse(c.node,c.offset);try{f.extend(u.node,u.offset)}catch{}}else{let m=document.createRange();l.anchor>l.head&&([c,u]=[u,c]),m.setEnd(u.node,u.offset),m.setStart(c.node,c.offset),f.removeAllRanges(),f.addRange(m)}o&&this.view.root.activeElement==r&&(r.blur(),a&&a.focus())}),this.view.observer.setSelectionRange(c,u)),this.impreciseAnchor=c.precise?null:new du(d.anchorNode,d.anchorOffset),this.impreciseHead=u.precise?null:new du(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&zS(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,n=t.state.selection.main,r=U_(t.root),{anchorNode:a,anchorOffset:i}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let o=this.lineAt(n.head,n.assoc);if(!o)return;let s=o.posAtStart;if(n.head==s||n.head==s+o.length)return;let l=this.coordsAt(n.head,-1),c=this.coordsAt(n.head,1);if(!l||!c||l.bottom>c.top)return;let u=this.domAtPos(n.head+n.assoc,n.assoc);r.collapse(u.node,u.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let d=t.observer.selectionRange;t.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=n.from&&r.collapse(a,i)}posFromDOM(t,n){let r=this.tile.nearest(t);if(!r)return this.tile.dom.compareDocumentPosition(t)&2?0:this.view.state.doc.length;let a=r.posAtStart;if(r.isComposite()){let i;if(t==r.dom)i=r.dom.childNodes[n];else{let o=Rf(t)==0?0:n==0?-1:1;for(;;){let s=t.parentNode;if(s==r.dom)break;o==0&&s.firstChild!=s.lastChild&&(t==s.firstChild?o=-1:o=1),t=s}o<0?i=t:i=t.nextSibling}if(i==r.dom.firstChild)return a;for(;i&&!wi.get(i);)i=i.nextSibling;if(!i)return a+r.length;for(let o=0,s=a;;o++){let l=r.children[o];if(l.dom==i)return s;s+=l.length+l.breakAfter}}else return r.isText()?t==r.dom?a+n:a+(n?r.length:0):a}domAtPos(t,n){let{tile:r,offset:a}=this.tile.resolveBlock(t,n);return r.isWidget()?r.domPosFor(t,n):r.domIn(a,n)}inlineDOMNearPos(t,n){let r,a=-1,i=!1,o,s=-1,l=!1;return this.tile.blockTiles((c,u)=>{if(c.isWidget()){if(c.flags&32&&u>=t)return!0;c.flags&16&&(i=!0)}else{let d=u+c.length;if(u<=t&&(r=c,a=t-u,i=d=t&&!o&&(o=c,s=t-u,l=u>t),u>t&&o)return!0}}),!r&&!o?this.domAtPos(t,n):(i&&o?r=null:l&&r&&(o=null),r&&n<0||!o?r.domIn(a,n):o.domIn(s,n))}coordsAt(t,n){let{tile:r,offset:a}=this.tile.resolveBlock(t,n);return r.isWidget()?r.widget instanceof i3?null:r.coordsInWidget(a,n,!0):r.coordsIn(a,n)}lineAt(t,n){let{tile:r}=this.tile.resolveBlock(t,n);return r.isLine()?r:null}coordsForChar(t){let{tile:n,offset:r}=this.tile.resolveBlock(t,1);if(!n.isLine())return null;function a(i,o){if(i.isComposite())for(let s of i.children){if(s.length>=o){let l=a(s,o);if(l)return l}if(o-=s.length,o<0)break}else if(i.isText()&&oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==Ba.LTR,c=0,u=(d,f,m)=>{for(let h=0;ha);h++){let g=d.children[h],O=f+g.length,v=g.dom.getBoundingClientRect(),{height:y}=v;if(m&&!h&&(c+=v.top-m.top),g instanceof Sf)O>r&&u(g,f,v);else if(f>=r&&(c>0&&n.push(-c),n.push(y+c),c=0,o)){let S=g.dom.lastChild,C=S?QS(S):[];if(C.length){let _=C[C.length-1],w=l?_.right-v.left:v.right-_.left;w>s&&(s=w,this.minWidth=i,this.minWidthFrom=f,this.minWidthTo=O)}}m&&h==d.children.length-1&&(c+=m.bottom-v.bottom),f=O+g.breakAfter}};return u(this.tile,0,null),n}textDirectionAt(t){let{tile:n}=this.tile.resolveBlock(t,1);return getComputedStyle(n.dom).direction=="rtl"?Ba.RTL:Ba.LTR}measureTextSize(){let t=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let s=0,l;for(let c of o.children){if(!c.isText()||/[^ -~]/.test(c.text))return;let u=QS(c.dom);if(u.length!=1)return;s+=u[0].width,l=u[0].height}if(s)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:s/o.length,textHeight:l}}});if(t)return t;let n=document.createElement("div"),r,a,i;return n.className="cm-line",n.style.width="99999px",n.style.position="absolute",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(n);let o=QS(n.firstChild)[0];r=n.getBoundingClientRect().height,a=o&&o.width?o.width/27:7,i=o&&o.height?o.height:r,n.remove()}),{lineHeight:r,charWidth:a,textHeight:i}}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,a=0;;a++){let i=a==n.viewports.length?null:n.viewports[a],o=i?i.from-1:this.view.state.doc.length;if(o>r){let s=(n.lineBlockAt(o).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(Hn.replace({widget:new i3(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,o))}if(!i)break;r=i.to+1}return Hn.set(t)}updateDeco(){let t=1,n=this.view.state.facet(SA).map(i=>(this.dynamicDecorationMap[t++]=typeof i=="function")?i(this.view):i),r=!1,a=this.view.state.facet(PY).map((i,o)=>{let s=typeof i=="function";return s&&(r=!0),s?i(this.view):i});for(a.length&&(this.dynamicDecorationMap[t++]=r,n.push(jr.join(a))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];ttypeof i=="function"?i(this.view):i)}scrollIntoView(t){if(t.isSnapshot){let c=this.view.viewState.lineBlockAt(t.range.head);this.view.scrollDOM.scrollTop=c.top-t.yMargin,this.view.scrollDOM.scrollLeft=t.xMargin;return}for(let c of this.view.state.facet(rPe))try{if(c(this.view,t.range,t))return!0}catch(u){Rs(this.view.state,u,"scroll handler")}let{range:n}=t,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),a;if(!r)return;!n.empty&&(a=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,a.left),top:Math.min(r.top,a.top),right:Math.max(r.right,a.right),bottom:Math.max(r.bottom,a.bottom)});let i=kY(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;if(Oxt(this.view.scrollDOM,o,n.head1&&(r.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||r.bottomr.isWidget()||r.children.some(n);return n(this.tile.resolveBlock(t,1).tile)}destroy(){Kz(this.tile)}}function Kz(e,t){let n=t==null?void 0:t.get(e);if(n!=1){n==null&&e.destroy();for(let r of e.children)Kz(r,t)}}function jxt(e){return e.node.nodeType==1&&e.node.firstChild&&(e.offset==0||e.node.childNodes[e.offset-1].contentEditable=="false")&&(e.offset==e.node.childNodes.length||e.node.childNodes[e.offset].contentEditable=="false")}function uPe(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null;let r=URe(n.focusNode,n.focusOffset),a=jRe(n.focusNode,n.focusOffset),i=r||a;if(a&&r&&a.node!=r.node){let s=wi.get(a.node);if(!s||s.isText()&&s.text!=a.node.nodeValue)i=a;else if(e.docView.lastCompositionAfterCursor){let l=wi.get(r.node);!l||l.isText()&&l.text!=r.node.nodeValue||(i=a)}}if(e.docView.lastCompositionAfterCursor=i!=r,!i)return null;let o=t-i.offset;return{from:o,to:o+i.node.nodeValue.length,node:i.node}}function Xxt(e,t,n){let r=uPe(e,n);if(!r)return null;let{node:a,from:i,to:o}=r,s=a.nodeValue;if(/[\n\r]/.test(s)||e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc;return{range:new yc(l.mapPos(i),l.mapPos(o),i,o),text:a}}function Yxt(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}class i3 extends Cu{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function Kxt(e,t,n=1){let r=e.charCategorizer(t),a=e.doc.lineAt(t),i=t-a.from;if(a.length==0)return xt.cursor(t);i==0?n=1:i==a.length&&(n=-1);let o=i,s=i;n<0?o=So(a.text,i,!1):s=So(a.text,i);let l=r(a.text.slice(o,s));for(;o>0;){let c=So(a.text,o,!1);if(r(a.text.slice(c,o))!=l)break;o=c}for(;se.defaultLineHeight*1.5){let s=e.viewState.heightOracle.textHeight,l=Math.floor((a-n.top-(e.defaultLineHeight-s)*.5)/s);i+=l*e.viewState.heightOracle.lineLength}let o=e.state.sliceDoc(n.from,n.to);return n.from+Bz(o,i,e.state.tabSize)}function Jz(e,t,n){let r=e.lineBlockAt(t);if(Array.isArray(r.type)){let a;for(let i of r.type){if(i.from>t)break;if(!(i.tot)return i;(!a||i.type==Fo.Text&&(a.type!=i.type||(n<0?i.fromt)))&&(a=i)}}return a||r}return r}function eTt(e,t,n,r){let a=Jz(e,t.head,t.assoc||-1),i=!r||a.type!=Fo.Text||!(e.lineWrapping||a.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>a.from?t.head-1:t.head);if(i){let o=e.dom.getBoundingClientRect(),s=e.textDirectionAt(a.from),l=e.posAtCoords({x:n==(s==Ba.LTR)?o.right-1:o.left+1,y:(i.top+i.bottom)/2});if(l!=null)return xt.cursor(l,n?-1:1)}return xt.cursor(n?a.to:a.from,n?-1:1)}function nle(e,t,n,r){let a=e.state.doc.lineAt(t.head),i=e.bidiSpans(a),o=e.textDirectionAt(a.from);for(let s=t,l=null;;){let c=$xt(a,i,o,s,n),u=WRe;if(!c){if(a.number==(n?e.state.doc.lines:1))return s;u=` +`,a=e.state.doc.line(a.number+(n?1:-1)),i=e.bidiSpans(a),c=e.visualLineSide(a,!n)}if(l){if(!l(u))return s}else{if(!r)return c;l=r(u)}s=c}}function tTt(e,t,n){let r=e.state.charCategorizer(t),a=r(n);return i=>{let o=r(i);return a==li.Space&&(a=o),a==o}}function nTt(e,t,n,r){let a=t.head,i=n?1:-1;if(a==(n?e.state.doc.length:0))return xt.cursor(a,t.assoc);let o=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(a,(t.empty?t.assoc:0)||(n?1:-1)),u=e.documentTop;if(c)o==null&&(o=c.left-l.left),s=i<0?c.top:c.bottom;else{let h=e.viewState.lineBlockAt(a);o==null&&(o=Math.min(l.right-l.left,e.defaultCharacterWidth*(a-h.from))),s=(i<0?h.top:h.bottom)+u}let d=l.left+o,f=r??e.viewState.heightOracle.textHeight>>1,m=eB(e,{x:d,y:s+f*i},!1,i);return xt.cursor(m.pos,m.assoc,void 0,o)}function BS(e,t,n){for(;;){let r=0;for(let a of e)a.between(t-1,t+1,(i,o,s)=>{if(t>i&&ta(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:xt.cursor(r,re.viewState.docHeight)return new td(e.state.doc.length,-1);if(c=e.elementAtHeight(l),r==null)break;if(c.type==Fo.Text){if(r<0?c.toe.viewport.to)break;let f=e.docView.coordsAt(r<0?c.from:c.to,r>0?-1:1);if(f&&(r<0?f.top<=l+i:f.bottom>=l+i))break}let d=e.viewState.heightOracle.textHeight/2;l=r>0?c.bottom+d:c.top-d}if(e.viewport.from>=c.to||e.viewport.to<=c.from){if(n)return null;if(c.type==Fo.Text){let d=Jxt(e,a,c,o,s);return new td(d,d==c.from?1:-1)}}if(c.type!=Fo.Text)return l<(c.top+c.bottom)/2?new td(c.from,1):new td(c.to,-1);let u=e.docView.lineAt(c.from,2);return(!u||u.length!=c.length)&&(u=e.docView.lineAt(c.from,-2)),new rTt(e,o,s,e.textDirectionAt(c.from)).scanTile(u,c.from)}class rTt{constructor(t,n,r,a){this.view=t,this.x=n,this.y=r,this.baseDir=a,this.line=null,this.spans=null}bidiSpansAt(t){return(!this.line||this.line.from>t||this.line.to1||r.length&&(r[0].level!=this.baseDir||r[0].to+a.from>1;t:if(i.has(h)){let O=r+Math.floor(Math.random()*m);for(let v=0;vthis.y)(!l||l.top>v.top)&&(l=v),y=-1;else{let S=v.left>this.x?this.x-v.left:v.right(d.left+d.right)/2==f}}scanText(t,n){let r=[];for(let i=0;i{let o=r[i]-n,s=r[i+1]-n;return X_(t.dom,o,s).getClientRects()});return a.after?new td(r[a.i+1],-1):new td(r[a.i],1)}scanTile(t,n){if(!t.length)return new td(n,1);if(t.children.length==1){let s=t.children[0];if(s.isText())return this.scanText(s,n);if(s.isComposite())return this.scanTile(s,n)}let r=[n];for(let s=0,l=n;s{let l=t.children[s];return l.flags&48?null:(l.dom.nodeType==1?l.dom:X_(l.dom,0,l.length)).getClientRects()}),i=t.children[a.i],o=r[a.i];return i.isText()?this.scanText(i,o):i.isComposite()?this.scanTile(i,o):a.after?new td(r[a.i+1],-1):new td(o,1)}}const YO="￿";class aTt{constructor(t,n){this.points=t,this.view=n,this.text="",this.lineSeparator=n.state.facet(ea.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=YO}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let a=t;;){this.findPointBefore(r,a);let i=this.text.length;this.readNode(a);let o=wi.get(a),s=a.nextSibling;if(s==n){o!=null&&o.breakAfter&&!s&&r!=this.view.contentDOM&&this.lineBreak();break}let l=wi.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:mR(a))||mR(s)&&(a.nodeName!="BR"||o!=null&&o.isWidget())&&this.text.length>i)&&!oTt(s,n)&&this.lineBreak(),a=s}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,a=this.lineSeparator?null:/\r\n?|\n/g;;){let i=-1,o=1,s;if(this.lineSeparator?(i=n.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(s=a.exec(n))&&(i=s.index,o=s[0].length),this.append(n.slice(r,i<0?n.length:i)),i<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=o-1);r=i+o}}readNode(t){let n=wi.get(t),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(t,r.length);for(let a=r.iter();!a.next().done;)a.lineBreak?this.lineBreak():this.append(a.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,n){for(let r of this.points)r.node==t&&t.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(t,n){for(let r of this.points)(t.nodeType==3?r.node==t:t.contains(r.node))&&(r.pos=this.text.length+(iTt(t,r.node,r.offset)?n:0))}}function iTt(e,t,n){for(;;){if(!t||n-1;let{impreciseHead:i,impreciseAnchor:o}=t.docView;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=fPe(t.docView.tile,n,r,0))){let s=i||o?[]:cTt(t),l=new aTt(s,t);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=uTt(s,this.bounds.from)}else{let s=t.observer.selectionRange,l=i&&i.node==s.focusNode&&i.offset==s.focusOffset||!qz(t.contentDOM,s.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(s.focusNode,s.focusOffset),c=o&&o.node==s.anchorNode&&o.offset==s.anchorOffset||!qz(t.contentDOM,s.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(s.anchorNode,s.anchorOffset),u=t.viewport;if((Cn.ios||Cn.chrome)&&t.state.selection.main.empty&&l!=c&&(u.from>0||u.to-1&&t.state.selection.ranges.length>1?this.newSel=t.state.selection.replaceRange(xt.range(c,l)):this.newSel=xt.single(c,l)}}}function fPe(e,t,n,r){if(e.isComposite()){let a=-1,i=-1,o=-1,s=-1;for(let l=0,c=r,u=r;ln)return fPe(d,t,n,c);if(f>=t&&a==-1&&(a=l,i=c),c>n&&d.dom.parentNode==e.dom){o=l,s=u;break}u=f,c=f+d.breakAfter}return{from:i,to:s<0?r+e.length:s,startDOM:(a?e.children[a-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:o=0?e.children[o].dom:null}}else return e.isText()?{from:r,to:r+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling}:null}function pPe(e,t){let n,{newSel:r}=t,{state:a}=e,i=a.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:l}=t.bounds,c=i.from,u=null;(o===8||Cn.android&&t.text.length=s&&i.to<=l&&(t.typeOver||d!=t.text)&&d.slice(0,i.from-s)==t.text.slice(0,i.from-s)&&d.slice(i.to-s)==t.text.slice(f=t.text.length-(d.length-(i.to-s)))?n={from:i.from,to:i.to,insert:ma.of(t.text.slice(i.from-s,f).split(YO))}:(m=mPe(d,t.text,c-s,u))&&(Cn.chrome&&o==13&&m.toB==m.from+2&&t.text.slice(m.from,m.toB)==YO+YO&&m.toB--,n={from:s+m.from,to:s+m.toA,insert:ma.of(t.text.slice(m.from,m.toB).split(YO))})}else r&&(!e.hasFocus&&a.facet(pf)||bR(r,i))&&(r=null);if(!n&&!r)return!1;if((Cn.mac||Cn.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=xt.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:ma.of([n.insert.toString().replace("."," ")])}):a.doc.lineAt(i.from).toDate.now()-50?n={from:i.from,to:i.to,insert:a.toText(e.inputState.insertingText)}:Cn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` + `&&e.lineWrapping&&(r&&(r=xt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:ma.of([" "])}),n)return AY(e,n,r,o);if(r&&!bR(r,i)){let s=!1,l="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(s=!0),l=e.inputState.lastSelectionOrigin,l=="select.pointer"&&(r=dPe(a.facet(Ox).map(c=>c(e)),r))),e.dispatch({selection:r,scrollIntoView:s,userEvent:l}),!0}else return!1}function AY(e,t,n,r=-1){if(Cn.ios&&e.inputState.flushIOSKey(t))return!0;let a=e.state.selection.main;if(Cn.android&&(t.to==a.to&&(t.from==a.from||t.from==a.from-1&&e.state.sliceDoc(t.from,a.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&E0(e.contentDOM,"Enter",13)||(t.from==a.from-1&&t.to==a.to&&t.insert.length==0||r==8&&t.insert.lengtha.head)&&E0(e.contentDOM,"Backspace",8)||t.from==a.from&&t.to==a.to+1&&t.insert.length==0&&E0(e.contentDOM,"Delete",46)))return!0;let i=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,s=()=>o||(o=lTt(e,t,n));return e.state.facet(JRe).some(l=>l(e,t.from,t.to,i,s))||e.dispatch(s()),!0}function lTt(e,t,n){let r,a=e.state,i=a.selection.main,o=-1;if(t.from==t.to&&t.fromi.to){let l=t.fromd(e)),c,l);t.from==u&&(o=u)}if(o>-1)r={changes:t,selection:xt.cursor(t.from+t.insert.length,-1)};else if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let l=i.fromt.to?a.sliceDoc(t.to,i.to):"";r=a.replaceSelection(e.state.toText(l+t.insert.sliceString(0,void 0,e.state.lineBreak)+c))}else{let l=a.changes(t),c=n&&n.main.to<=l.newLength?n.main:void 0;if(a.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=i.to+10&&t.to>=i.to-10){let u=e.state.sliceDoc(t.from,t.to),d,f=n&&uPe(e,n.main.head);if(f){let h=t.insert.length-(t.to-t.from);d={from:f.from,to:f.to-h}}else d=e.state.doc.lineAt(i.head);let m=i.to-t.to;r=a.changeByRange(h=>{if(h.from==i.from&&h.to==i.to)return{changes:l,range:c||h.map(l)};let g=h.to-m,O=g-u.length;if(e.state.sliceDoc(O,g)!=u||g>=d.from&&O<=d.to)return{range:h};let v=a.changes({from:O,to:g,insert:t.insert}),y=h.to-i.to;return{changes:v,range:c?xt.range(Math.max(0,c.anchor+y),Math.max(0,c.head+y)):h.map(v)}})}else r={changes:l,selection:c&&a.selection.replaceRange(c)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),a.update(r,{userEvent:s,scrollIntoView:!0})}function mPe(e,t,n,r){let a=Math.min(e.length,t.length),i=0;for(;i0&&s>0&&e.charCodeAt(o-1)==t.charCodeAt(s-1);)o--,s--;if(r=="end"){let l=Math.max(0,i-Math.min(o,s));n-=o+l-i}if(o=o?i-n:0;i-=l,s=i+(s-o),o=i}else if(s=s?i-n:0;i-=l,o=i+(o-s),s=i}return{from:i,toA:o,toB:s}}function cTt(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:a,focusOffset:i}=e.observer.selectionRange;return n&&(t.push(new rle(n,r)),(a!=n||i!=r)&&t.push(new rle(a,i))),t}function uTt(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?xt.single(n+t,r+t):null}function bR(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class dTt{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,Cn.safari&&t.contentDOM.addEventListener("input",()=>null),Cn.gecko&&wTt(t.contentDOM.ownerDocument)}handleEvent(t){!vTt(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(t.type,t)):this.runHandlers(t.type,t))}runHandlers(t,n){let r=this.handlers[t];if(r){for(let a of r.observers)a(this.view,n);for(let a of r.handlers){if(n.defaultPrevented)break;if(a(this.view,n)){n.preventDefault();break}}}}ensureHandlers(t){let n=fTt(t),r=this.handlers,a=this.view.contentDOM;for(let i in n)if(i!="scroll"){let o=!n[i].handlers.length,s=r[i];s&&o!=!s.handlers.length&&(a.removeEventListener(i,this.handleEvent),s=null),s||a.addEventListener(i,this.handleEvent,{passive:o})}for(let i in r)i!="scroll"&&!n[i]&&a.removeEventListener(i,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&t.keyCode!=27&&gPe.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),Cn.android&&Cn.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return Cn.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((n=hPe.find(r=>r.keyCode==t.keyCode))&&!t.ctrlKey||pTt.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=n||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(t){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&t&&t.from0?!0:Cn.safari&&!Cn.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function ale(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(a){Rs(n.state,a)}}}function fTt(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let a=r.spec,i=a&&a.plugin.domEventHandlers,o=a&&a.plugin.domEventObservers;if(i)for(let s in i){let l=i[s];l&&n(s).handlers.push(ale(r.value,l))}if(o)for(let s in o){let l=o[s];l&&n(s).observers.push(ale(r.value,l))}}for(let r in Eu)n(r).handlers.push(Eu[r]);for(let r in ul)n(r).observers.push(ul[r]);return t}const hPe=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],pTt="dthko",gPe=[16,17,18,20,91,92,224,225],zw=6;function Bw(e){return Math.max(0,e)*.7+8}function mTt(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class hTt{constructor(t,n,r,a){this.view=t,this.startEvent=n,this.style=r,this.mustSelect=a,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=zRe(t.contentDOM),this.atoms=t.state.facet(Ox).map(o=>o(t));let i=t.contentDOM.ownerDocument;i.addEventListener("mousemove",this.move=this.move.bind(this)),i.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(ea.allowMultipleSelections)&&gTt(t,n),this.dragging=bTt(t,n)&&vPe(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&mTt(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let n=0,r=0,a=0,i=0,o=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:a,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:i,bottom:s}=this.scrollParents.y.getBoundingClientRect());let l=kY(this.view);t.clientX-l.left<=a+zw?n=-Bw(a-t.clientX):t.clientX+l.right>=o-zw&&(n=Bw(t.clientX-o)),t.clientY-l.top<=i+zw?r=-Bw(i-t.clientY):t.clientY+l.bottom>=s-zw&&(r=Bw(t.clientY-s)),this.setScrollSpeed(n,r)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:t,y:n}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(t||n)&&this.view.win.scrollBy(t,n),this.dragging===!1&&this.select(this.lastEvent)}select(t){let{view:n}=this,r=dPe(this.atoms,this.style.get(t,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function gTt(e,t){let n=e.state.facet(GRe);return n.length?n[0](t):Cn.mac?t.metaKey:t.ctrlKey}function OTt(e,t){let n=e.state.facet(HRe);return n.length?n[0](t):Cn.mac?!t.altKey:!t.ctrlKey}function bTt(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=U_(e.root);if(!r||r.rangeCount==0)return!0;let a=r.getRangeAt(0).getClientRects();for(let i=0;i=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return!0}return!1}function vTt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target,r;n!=e.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=wi.get(n))&&r.isWidget()&&!r.isHidden&&r.widget.ignoreEvent(t))return!1;return!0}const Eu=Object.create(null),ul=Object.create(null),OPe=Cn.ie&&Cn.ie_version<15||Cn.ios&&Cn.webkit_version<604;function yTt(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{e.focus(),n.remove(),bPe(e,n.value)},50)}function xA(e,t,n){for(let r of e.facet(t))n=r(n,e);return n}function bPe(e,t){t=xA(e.state,CY,t);let{state:n}=e,r,a=1,i=n.toText(t),o=i.lines==n.selection.ranges.length;if(tB!=null&&n.selection.ranges.every(l=>l.empty)&&tB==i.toString()){let l=-1;r=n.changeByRange(c=>{let u=n.doc.lineAt(c.from);if(u.from==l)return{range:c};l=u.from;let d=n.toText((o?i.line(a++).text:t)+n.lineBreak);return{changes:{from:u.from,insert:d},range:xt.cursor(c.from+d.length)}})}else o?r=n.changeByRange(l=>{let c=i.line(a++);return{changes:{from:l.from,to:l.to,insert:c.text},range:xt.cursor(l.from+c.length)}}):r=n.replaceSelection(i);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}ul.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};ul.wheel=ul.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()};Eu.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&e.inputState.tabFocusMode!=0&&(e.inputState.tabFocusMode=Date.now()+2e3),!1);ul.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};ul.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Eu.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(ZRe))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=_Tt(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new hTt(e,t,n,r)),r&&e.observer.ignore(()=>{BRe(e.contentDOM);let i=e.root.activeElement;i&&!i.contains(e.contentDOM)&&i.blur()});let a=e.inputState.mouseSelection;if(a)return a.start(t),a.dragging===!1}else e.inputState.setSelectionOrigin("select.pointer");return!1};function ile(e,t,n,r){if(r==1)return xt.cursor(t,n);if(r==2)return Kxt(e.state,t,n);{let a=e.docView.lineAt(t,n),i=e.state.doc.lineAt(a?a.posAtEnd:t),o=a?a.posAtStart:i.from,s=a?a.posAtEnd:i.to;return sDate.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(sle+1)%3:1}function _Tt(e,t){let n=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),r=vPe(t),a=e.state.selection;return{update(i){i.docChanged&&(n.pos=i.changes.mapPos(n.pos),a=a.map(i.changes))},get(i,o,s){let l=e.posAndSideAtCoords({x:i.clientX,y:i.clientY},!1),c,u=ile(e,l.pos,l.assoc,r);if(n.pos!=l.pos&&!o){let d=ile(e,n.pos,n.assoc,r),f=Math.min(d.from,u.from),m=Math.max(d.to,u.to);u=f1&&(c=ETt(a,l.pos))?c:s?a.addRange(u):xt.create([u])}}}function ETt(e,t){for(let n=0;n=t)return xt.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}Eu.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let a=e.docView.tile.nearest(t.target);if(a&&a.isWidget()){let i=a.posAtStart,o=i+a.length;(i>=n.to||o<=n.from)&&(n=xt.range(i,o))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",xA(e.state,$Y,e.state.sliceDoc(n.from,n.to))),t.dataTransfer.effectAllowed="copyMove"),!1};Eu.dragend=e=>(e.inputState.draggedContent=null,!1);function cle(e,t,n,r){if(n=xA(e.state,CY,n),!n)return;let a=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:i}=e.inputState,o=r&&i&&OTt(e,t)?{from:i.from,to:i.to}:null,s={from:a,insert:n},l=e.state.changes(o?[o,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(a,-1),head:l.mapPos(a,1)},userEvent:o?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Eu.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),a=0,i=()=>{++a==n.length&&cle(e,t,r.filter(o=>o!=null).join(e.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[o]=s.result),i()},s.readAsText(n[o])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return cle(e,t,r,!0),!0}return!1};Eu.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=OPe?null:t.clipboardData;return n?(bPe(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(yTt(e),!1)};function xTt(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout(()=>{r.remove(),e.focus()},50)}function TTt(e){let t=[],n=[],r=!1;for(let a of e.selection.ranges)a.empty||(t.push(e.sliceDoc(a.from,a.to)),n.push(a));if(!t.length){let a=-1;for(let{from:i}of e.selection.ranges){let o=e.doc.lineAt(i);o.number>a&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),a=o.number}r=!0}return{text:xA(e,$Y,t.join(e.lineBreak)),ranges:n,linewise:r}}let tB=null;Eu.copy=Eu.cut=(e,t)=>{if(!LS(e.contentDOM,e.observer.selectionRange))return!1;let{text:n,ranges:r,linewise:a}=TTt(e.state);if(!n&&!a)return!1;tB=a?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let i=OPe?null:t.clipboardData;return i?(i.clearData(),i.setData("text/plain",n),!0):(xTt(e,n),!1)};const yPe=Ad.define();function SPe(e,t){let n=[];for(let r of e.facet(ePe)){let a=r(e,t);a&&n.push(a)}return n.length?e.update({effects:n,annotations:yPe.of(!0)}):null}function _Pe(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=SPe(e.state,t);n?e.dispatch(n):e.update([])}},10)}ul.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),_Pe(e)};ul.blur=e=>{e.observer.clearSelectionRange(),_Pe(e)};ul.compositionstart=ul.compositionupdate=e=>{e.observer.editContext||(e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))};ul.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Cn.chrome&&Cn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))};ul.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Eu.beforeinput=(e,t)=>{var n,r;if((t.inputType=="insertText"||t.inputType=="insertCompositionText")&&(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),t.inputType=="insertReplacementText"&&e.observer.editContext){let i=(n=t.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),o=t.getTargetRanges();if(i&&o.length){let s=o[0],l=e.posAtDOM(s.startContainer,s.startOffset),c=e.posAtDOM(s.endContainer,s.endOffset);return AY(e,{from:l,to:c,insert:e.state.toText(i)},null),!0}}let a;if(Cn.chrome&&Cn.android&&(a=hPe.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(a.key,a.keyCode),a.key=="Backspace"||a.key=="Delete")){let i=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return Cn.ios&&t.inputType=="deleteContentForward"&&e.observer.flushSoon(),Cn.safari&&t.inputType=="insertText"&&e.inputState.composing>=0&&setTimeout(()=>ul.compositionend(e,t),20),!1};const ule=new Set;function wTt(e){ule.has(e)||(ule.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const dle=["pre-wrap","normal","pre-line","break-spaces"];let nb=!1;function fle(){nb=!1}class CTt{constructor(t){this.lineWrapping=t,this.doc=ma.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(t,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-t-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return dle.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r-1,l=Math.abs(n-this.lineHeight)>.3||this.lineWrapping!=s||Math.abs(r-this.charWidth)>.1;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=a,this.lineLength=i,l){this.heightSamples={};for(let c=0;c0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>F2&&(nb=!0),this.height=t)}replace(t,n,r){return Ms.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,a){let i=this,o=r.doc;for(let s=a.length-1;s>=0;s--){let{fromA:l,toA:c,fromB:u,toB:d}=a[s],f=i.lineAt(l,qa.ByPosNoHeight,r.setDoc(n),0,0),m=f.to>=c?f:i.lineAt(c,qa.ByPosNoHeight,r,0,0);for(d+=m.to-c,c=m.to;s>0&&f.from<=a[s-1].toA;)l=a[s-1].fromA,u=a[s-1].fromB,s--,li*2){let s=t[n-1];s.break?t.splice(--n,1,s.left,null,s.right):t.splice(--n,1,s.left,s.right),r+=1+s.break,a-=s.size}else if(i>a*2){let s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,i-=s.size}else break;else if(a=i&&o(this.lineAt(0,qa.ByPos,r,a,i))}setMeasuredHeight(t){let n=t.heights[t.index++];n<0?(this.spaceAbove=-n,n=t.heights[t.index++]):this.spaceAbove=0,this.setHeight(n)}updateHeight(t,n=0,r=!1,a){return a&&a.from<=n&&a.more&&this.setMeasuredHeight(a),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Pl extends EPe{constructor(t,n,r){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=r}mainBlock(t,n){return new su(n,this.length,t+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(t,n,r){let a=r[0];return r.length==1&&(a instanceof Pl||a instanceof Do&&a.flags&4)&&Math.abs(this.length-a.length)<10?(a instanceof Do?a=new Pl(a.length,this.height,this.spaceAbove):a.height=this.height,this.outdated||(a.outdated=!1),a):Ms.of(r)}updateHeight(t,n=0,r=!1,a){return a&&a.from<=n&&a.more?this.setMeasuredHeight(a):(r||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Do extends Ms{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,a=t.doc.lineAt(n+this.length).number,i=a-r+1,o,s=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*i);o=l/i,this.length>i+1&&(s=(this.height-l)/(this.length-i-1))}else o=this.height/i;return{firstLine:r,lastLine:a,perLine:o,perChar:s}}blockAt(t,n,r,a){let{firstLine:i,lastLine:o,perLine:s,perChar:l}=this.heightMetrics(n,a);if(n.lineWrapping){let c=a+(t0){let i=r[r.length-1];i instanceof Do?r[r.length-1]=new Do(i.length+a):r.push(null,new Do(a-1))}if(t>0){let i=r[0];i instanceof Do?r[0]=new Do(t+i.length):r.unshift(new Do(t-1),null)}return Ms.of(r)}decomposeLeft(t,n){n.push(new Do(t-1),null)}decomposeRight(t,n){n.push(null,new Do(this.length-t-1))}updateHeight(t,n=0,r=!1,a){let i=n+this.length;if(a&&a.from<=n+this.length&&a.more){let o=[],s=Math.max(n,a.from),l=-1;for(a.from>n&&o.push(new Do(a.from-n-1).updateHeight(t,n));s<=i&&a.more;){let u=t.doc.lineAt(s).length;o.length&&o.push(null);let d=a.heights[a.index++],f=0;d<0&&(f=-d,d=a.heights[a.index++]),l==-1?l=d:Math.abs(d-l)>=F2&&(l=-2);let m=new Pl(u,d,f);m.outdated=!1,o.push(m),s+=u+1}s<=i&&o.push(null,new Do(i-s).updateHeight(t,s));let c=Ms.of(o);return(l<0||Math.abs(c.height-this.height)>=F2||Math.abs(l-this.heightMetrics(t,n).perLine)>=F2)&&(nb=!0),vR(this,c)}else(r||this.outdated)&&(this.setHeight(t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class PTt extends Ms{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,a){let i=r+this.left.height;return ts))return c;let u=n==qa.ByPosNoHeight?qa.ByPosNoHeight:qa.ByPos;return l?c.join(this.right.lineAt(s,u,r,o,s)):this.left.lineAt(s,u,r,a,i).join(c)}forEachLine(t,n,r,a,i,o){let s=a+this.left.height,l=i+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,s,l,o);else{let c=this.lineAt(l,qa.ByPos,r,a,i);t=t&&c.from<=n&&o(c),n>c.to&&this.right.forEachLine(c.to+1,n,r,s,l,o)}}replace(t,n,r){let a=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-a,n-a,r));let i=[];t>0&&this.decomposeLeft(t,i);let o=i.length;for(let s of r)i.push(s);if(t>0&&ple(i,o-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,a=r+this.break;if(t>=a)return this.right.decomposeRight(t-a,n);t2*n.size||n.size>2*t.size?Ms.of(this.break?[t,null,n]:[t,n]):(this.left=vR(this.left,t),this.right=vR(this.right,n),this.setHeight(t.height+n.height),this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,a){let{left:i,right:o}=this,s=n+i.length+this.break,l=null;return a&&a.from<=n+i.length&&a.more?l=i=i.updateHeight(t,n,r,a):i.updateHeight(t,n,r),a&&a.from<=s+o.length&&a.more?l=o=o.updateHeight(t,s,r,a):o.updateHeight(t,s,r),l?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function ple(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Do&&(r=e[t+1])instanceof Do&&e.splice(t-1,3,new Do(n.length+1+r.length))}const kTt=5;class NY{constructor(t,n){this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),a=this.nodes[this.nodes.length-1];a instanceof Pl?a.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new Pl(r-this.pos,-1,0)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(t,n,r){if(t=kTt)&&this.addLineDeco(a,i,o)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new Pl(this.pos-t,-1,0)),this.writtenTo=this.pos}blankContent(t,n){let r=new Do(n-t);return this.oracle.doc.lineAt(t).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Pl)return t;let n=new Pl(0,-1,0);return this.nodes.push(n),n}addBlock(t){this.enterLine();let n=t.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,n&&n.endSide>0&&(this.covering=t)}addLineDeco(t,n,r){let a=this.ensureLine();a.length+=r,a.collapsed+=r,a.widgetHeight=Math.max(a.widgetHeight,t),a.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(t){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof Pl)&&!this.isCovered?this.nodes.push(new Pl(0,-1,0)):(this.writtenTou.clientHeight||u.scrollWidth>u.clientWidth)&&d.overflow!="visible"){let f=u.getBoundingClientRect();i=Math.max(i,f.left),o=Math.min(o,f.right),s=Math.max(s,f.top),l=Math.min(c==e.parentNode?a.innerHeight:l,f.bottom)}c=d.position=="absolute"||d.position=="fixed"?u.offsetParent:u.parentNode}else if(c.nodeType==11)c=c.host;else break;return{left:i-n.left,right:Math.max(i,o)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function MTt(e){let t=e.getBoundingClientRect(),n=e.ownerDocument.defaultView||window;return t.left0&&t.top0}function DTt(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class s3{constructor(t,n,r,a){this.from=t,this.to=n,this.size=r,this.displaySize=a}static same(t,n){if(t.length!=n.length)return!1;for(let r=0;rtypeof a!="function"&&a.class=="cm-lineWrapping");this.heightOracle=new CTt(r),this.stateDeco=gle(n),this.heightMap=Ms.empty().applyChanges(this.stateDeco,ma.empty,this.heightOracle.setDoc(n.doc),[new yc(0,0,0,n.doc.length)]);for(let a=0;a<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());a++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Hn.set(this.lineGaps.map(a=>a.draw(this,!1))),this.scrollParent=t.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let a=r?n.head:n.anchor;if(!t.some(({from:i,to:o})=>a>=i&&a<=o)){let{from:i,to:o}=this.lineBlockAt(a);t.push(new Fw(i,o))}}return this.viewports=t.sort((r,a)=>r.from-a.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?hle:new IY(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(oS(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=gle(this.state);let a=t.changedRanges,i=yc.extendWithRanges(a,ATt(r,this.stateDeco,t?t.changes:Ji.empty(this.state.doc.length))),o=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);fle(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),i),(this.heightMap.height!=o||nb)&&(t.flags|=2),s?(this.scrollAnchorPos=t.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let l=i.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let c=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,t.flags|=this.updateForViewport(),(c||!t.changes.empty||t.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(t.changes),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&(t.selectionSet||t.focusChanged)&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(nPe)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:t}=this,n=t.contentDOM,r=window.getComputedStyle(n),a=this.heightOracle,i=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Ba.RTL:Ba.LTR;let o=this.heightOracle.mustRefreshForWrapping(i)||this.mustMeasureContent==="refresh",s=n.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let c=0,u=0;if(s.width&&s.height){let{scaleX:_,scaleY:w}=QRe(n,s);(_>.005&&Math.abs(this.scaleX-_)>.005||w>.005&&Math.abs(this.scaleY-w)>.005)&&(this.scaleX=_,this.scaleY=w,c|=16,o=l=!0)}let d=(parseInt(r.paddingTop)||0)*this.scaleY,f=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=f)&&(this.paddingTop=d,this.paddingBottom=f,c|=18),this.editorWidth!=t.scrollDOM.clientWidth&&(a.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,c|=16);let m=zRe(this.view.contentDOM,!1).y;m!=this.scrollParent&&(this.scrollParent=m,this.scrollAnchorHeight=-1,this.scrollOffset=0);let h=this.getScrollOffset();this.scrollOffset!=h&&(this.scrollAnchorHeight=-1,this.scrollOffset=h),this.scrolledToBottom=FRe(this.scrollParent||t.win);let g=(this.printing?DTt:ITt)(n,this.paddingTop),O=g.top-this.pixelViewport.top,v=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget&&!MTt(t.dom))return 0;let S=s.width;if((this.contentDOMWidth!=S||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=t.scrollDOM.clientHeight,c|=16),l){let _=t.docView.measureVisibleLineHeights(this.viewport);if(a.mustRefreshForHeights(_)&&(o=!0),o||a.lineWrapping&&Math.abs(S-this.contentDOMWidth)>a.charWidth){let{lineHeight:w,charWidth:T,textHeight:k}=t.docView.measureTextSize();o=w>0&&a.refresh(i,w,T,k,Math.max(5,S/T),_),o&&(t.docView.minWidth=0,c|=16)}O>0&&v>0?u=Math.max(O,v):O<0&&v<0&&(u=Math.min(O,v)),fle();for(let w of this.viewports){let T=w.from==this.viewport.from?_:t.docView.measureVisibleLineHeights(w);this.heightMap=(o?Ms.empty().applyChanges(this.stateDeco,ma.empty,this.heightOracle,[new yc(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(a,0,o,new $Tt(w.from,T))}nb&&(c|=2)}let C=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return C&&(c&2&&(c|=this.updateScaler()),this.viewport=this.getViewport(u,this.scrollTarget),c|=this.updateForViewport()),(c&2||C)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,t)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),a=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,l=new Fw(a.lineAt(o-r*1e3,qa.ByHeight,i,0,0).from,a.lineAt(s+(1-r)*1e3,qa.ByHeight,i,0,0).to);if(n){let{head:c}=n.range;if(cl.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=a.lineAt(c,qa.ByPos,i,0,0),f;n.y=="center"?f=(d.top+d.bottom)/2-u/2:n.y=="start"||n.y=="nearest"&&c=s+Math.max(10,Math.min(r,250)))&&a>o-2*1e3&&i>1,o=a<<1;if(this.defaultTextDirection!=Ba.LTR&&!r)return[];let s=[],l=(u,d,f,m)=>{if(d-uu&&vv.from>=f.from&&v.to<=f.to&&Math.abs(v.from-u)v.fromy));if(!O){if(dS.from<=d&&S.to>=d)){let S=n.moveToLineBoundary(xt.cursor(d),!1,!0).head;S>u&&(d=S)}let v=this.gapSize(f,u,d,m),y=r||v<2e6?v:2e6;O=new s3(u,d,v,y)}s.push(O)},c=u=>{if(u.length2e6)for(let w of t)w.from>=u.from&&w.fromu.from&&l(u.from,m,u,d),hn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(t){let n=this.stateDeco;this.lineGaps.length&&(n=n.concat(this.lineGapDeco));let r=[];jr.spans(n,this.viewport.from,this.viewport.to,{span(i,o){r.push({from:i,to:o})},point(){}},20);let a=0;if(r.length!=this.visibleRanges.length)a=12;else for(let i=0;i=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||oS(this.heightMap.lineAt(t,qa.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=t&&n.bottom>=t)||oS(this.heightMap.lineAt(this.scaler.fromDOM(t),qa.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(t){let n=this.lineBlockAtHeight(t+8);return n.from>=this.viewport.from||this.viewportLines[0].top-t>200?n:this.viewportLines[0]}elementAtHeight(t){return oS(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Fw{constructor(t,n){this.from=t,this.to=n}}function QTt(e,t,n){let r=[],a=e,i=0;return jr.spans(n,e,t,{span(){},point(o,s){o>a&&(r.push({from:a,to:o}),i+=o-a),a=s}},20),a=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let a=0;;a++){let{from:i,to:o}=t[a],s=o-i;if(r<=s)return i+r;r-=s}}function jw(e,t){let n=0;for(let{from:r,to:a}of e.ranges){if(t<=a){n+=t-r;break}n+=a-r}return n/e.total}function zTt(e,t){for(let n of e)if(t(n))return n}const hle={toDOM(e){return e},fromDOM(e){return e},scale:1,eq(e){return e==this}};function gle(e){let t=e.facet(SA).filter(r=>typeof r!="function"),n=e.facet(PY).filter(r=>typeof r!="function");return n.length&&t.push(jr.join(n)),t}class IY{constructor(t,n,r){let a=0,i=0,o=0;this.viewports=r.map(({from:s,to:l})=>{let c=n.lineAt(s,qa.ByPos,t,0,0).top,u=n.lineAt(l,qa.ByPos,t,0,0).bottom;return a+=u-c,{from:s,to:l,top:c,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-a)/(n.height-a);for(let s of this.viewports)s.domTop=o+(s.top-i)*this.scale,o=s.domBottom=s.domTop+(s.bottom-s.top),i=s.bottom}toDOM(t){for(let n=0,r=0,a=0;;n++){let i=nn.from==t.viewports[r].from&&n.to==t.viewports[r].to):!1}}function oS(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new su(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(a=>oS(a,t)):e._content)}const Xw=yn.define({combine:e=>e.join(" ")}),nB=yn.define({combine:e=>e.indexOf(!0)>-1}),rB=tm.newName(),xPe=tm.newName(),TPe=tm.newName(),wPe={"&light":"."+xPe,"&dark":"."+TPe};function aB(e,t,n){return new tm(t,{finish(r){return/&/.test(r)?r.replace(/&\w*/,a=>{if(a=="&")return e;if(!n||!n[a])throw new RangeError(`Unsupported selector: ${a}`);return n[a]}):e+" "+r}})}const BTt=aB("."+rB,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},wPe),FTt={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},l3=Cn.ie&&Cn.ie_version<=11;class UTt{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new bxt,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(Cn.ie&&Cn.ie_version<=11||Cn.ios&&t.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&Cn.android&&t.constructor.EDIT_CONTEXT!==!1&&!(Cn.chrome&&Cn.chrome_version<126)&&(this.editContext=new XTt(t),t.state.facet(pf)&&(t.contentDOM.editContext=this.editContext.editContext)),l3&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(t){(t.type=="change"||!t.type)&&!t.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((n,r)=>n!=t[r]))){this.gapIntersection.disconnect();for(let n of t)this.gapIntersection.observe(n);this.gaps=t}}onSelectionChange(t){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,a=this.selectionRange;if(r.state.facet(pf)?r.root.activeElement!=this.dom:!LS(this.dom,a))return;let i=a.anchorNode&&r.docView.tile.nearest(a.anchorNode);if(i&&i.isWidget()&&i.widget.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(Cn.ie&&Cn.ie_version<=11||Cn.android&&Cn.chrome)&&!r.state.selection.main.empty&&a.focusNode&&zS(a.focusNode,a.focusOffset,a.anchorNode,a.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=U_(t.root);if(!n)return!1;let r=Cn.safari&&t.root.nodeType==11&&t.root.activeElement==this.dom&&jTt(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let a=LS(this.dom,r);return a&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let i=this.delayedAndroidKey;i&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=i.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&i.force&&E0(this.dom,i.key,i.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(a)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,a=!1;for(let i of t){let o=this.readMutation(i);o&&(o.typeOver&&(a=!0),n==-1?{from:n,to:r}=o:(n=Math.min(o.from,n),r=Math.max(o.to,r)))}return{from:n,to:r,typeOver:a}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),a=this.selectionChanged&&LS(this.dom,this.selectionRange);if(t<0&&!a)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new sTt(this.view,t,n,r);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,a=pPe(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!bR(this.view.state.selection,n.newSel.main))&&this.view.update([]),a}readMutation(t){let n=this.view.docView.tile.nearest(t.target);if(!n||n.isWidget())return null;if(n.markDirty(t.type=="attributes"),t.type=="childList"){let r=Ole(n,t.previousSibling||t.target.previousSibling,-1),a=Ole(n,t.nextSibling||t.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:a?n.posBefore(a):n.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(pf)!=t.state.facet(pf)&&(t.view.contentDOM.editContext=t.state.facet(pf)?this.editContext.editContext:null))}destroy(){var t,n,r;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let a of this.scrollTargets)a.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function Ole(e,t,n){for(;t;){let r=wi.get(t);if(r&&r.parent==e)return r;let a=t.parentNode;t=a!=e.dom?a:n>0?t.nextSibling:t.previousSibling}return null}function ble(e,t){let n=t.startContainer,r=t.startOffset,a=t.endContainer,i=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor,1);return zS(o.node,o.offset,a,i)&&([n,r,a,i]=[a,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:a,focusOffset:i}}function jTt(e,t){if(t.getComposedRanges){let a=t.getComposedRanges(e.root)[0];if(a)return ble(e,a)}let n=null;function r(a){a.preventDefault(),a.stopImmediatePropagation(),n=a.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?ble(e,n):null}class XTt{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(t.state);let n=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=r=>{let a=t.state.selection.main,{anchor:i,head:o}=a,s=this.toEditorPos(r.updateRangeStart),l=this.toEditorPos(r.updateRangeEnd);t.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:r.updateRangeStart,editorBase:s,drifted:!1});let c=l-s>r.text.length;s==this.from&&ithis.to&&(l=i);let u=mPe(t.state.sliceDoc(s,l),r.text,(c?a.from:a.to)-s,c?"end":null);if(!u){let f=xt.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd));bR(f,a)||t.dispatch({selection:f,userEvent:"select"});return}let d={from:u.from+s,to:u.toA+s,insert:ma.of(r.text.slice(u.from,u.toB).split(` +`))};if((Cn.mac||Cn.android)&&d.from==o-1&&/^\. ?$/.test(r.text)&&t.contentDOM.getAttribute("autocorrect")=="off"&&(d={from:s,to:l,insert:ma.of([r.text.replace("."," ")])}),this.pendingContextChange=d,!t.state.readOnly){let f=this.to-this.from+(d.to-d.from+d.insert.length);AY(t,d,xt.single(this.toEditorPos(r.selectionStart,f),this.toEditorPos(r.selectionEnd,f)))}this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state)),d.from=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(n.text.slice(Math.max(0,r.updateRangeStart-1),Math.min(n.text.length,r.updateRangeStart+1)))&&this.handlers.compositionend(r)},this.handlers.characterboundsupdate=r=>{let a=[],i=null;for(let o=this.toEditorPos(r.rangeStart),s=this.toEditorPos(r.rangeEnd);o{let a=[];for(let i of r.getTextFormats()){let o=i.underlineStyle,s=i.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(s)){let l=this.toEditorPos(i.rangeStart),c=this.toEditorPos(i.rangeEnd);if(l{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(t.inputState.composing=-1,t.inputState.compositionFirstChange=null,this.composing){let{drifted:r}=this.composing;this.composing=null,r&&this.reset(t.state)}};for(let r in this.handlers)n.addEventListener(r,this.handlers[r]);this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let a=U_(r.root);a&&a.rangeCount&&this.editContext.updateSelectionBounds(a.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let n=0,r=!1,a=this.pendingContextChange;return t.changes.iterChanges((i,o,s,l,c)=>{if(r)return;let u=c.length-(o-i);if(a&&o>=a.to)if(a.from==i&&a.to==o&&a.insert.eq(c)){a=this.pendingContextChange=null,n+=u,this.to+=u;return}else a=null,this.revertPending(t.state);if(i+=n,o+=n,o<=this.from)this.from+=u,this.to+=u;else if(ithis.to||this.to-this.from+c.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(i),this.toContextPos(o),c.toString()),this.to+=u}n+=u}),a&&!r&&this.revertPending(t.state),!r}update(t){let n=this.pendingContextChange,r=t.startState.selection.main;this.composing&&(this.composing.drifted||!t.changes.touchesRange(r.from,r.to)&&t.transactions.some(a=>!a.isUserEvent("input.type")&&a.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=t.changes.mapPos(this.composing.editorBase)):!this.applyEdits(t)||!this.rangeIsValid(t.state)?(this.pendingContextChange=null,this.reset(t.state)):(t.docChanged||t.selectionSet||n)&&this.setSelection(t.state),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:n}=t.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(t.doc.length,n+1e4)}reset(t){this.resetRange(t),this.editContext.updateText(0,this.editContext.text.length,t.doc.sliceString(this.from,this.to)),this.setSelection(t)}revertPending(t){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),t.doc.sliceString(n.from,n.to))}setSelection(t){let{main:n}=t.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),a=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=a)&&this.editContext.updateSelection(r,a)}rangeIsValid(t){let{head:n}=t.selection.main;return!(this.from>0&&n-this.from<500||this.to1e4*3)}toEditorPos(t,n=this.to-this.from){t=Math.min(t,n);let r=this.composing;return r&&r.drifted?r.editorBase+(t-r.contextBase):t+this.from}toContextPos(t){let n=this.composing;return n&&n.drifted?n.contextBase+(t-n.editorBase):t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class gn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:r}=t;this.dispatchTransactions=t.dispatchTransactions||r&&(a=>a.forEach(i=>r(i,this)))||(a=>this.update(a)),this.dispatch=this.dispatch.bind(this),this._root=t.root||vxt(t.parent)||document,this.viewState=new mle(this,t.state||ea.create(t)),t.scrollTo&&t.scrollTo.is(Qw)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(a0).map(a=>new n3(a));for(let a of this.plugins)a.update(this);this.observer=new UTt(this),this.inputState=new dTt(this),this.inputState.ensureHandlers(this.plugins),this.docView=new tle(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...t){let n=t.length==1&&t[0]instanceof Ui?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,a,i=this.state;for(let f of t){if(f.startState!=i)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");i=f.state}if(this.destroyed){this.viewState.state=i;return}let o=this.hasFocus,s=0,l=null;t.some(f=>f.annotation(yPe))?(this.inputState.notifiedFocused=o,s=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=SPe(i,o),l||(s=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(i.doc)||!this.state.selection.eq(i.selection))&&(u=null)):this.observer.clear(),i.facet(ea.phrases)!=this.state.facet(ea.phrases))return this.setState(i);a=hR.create(this,i,t),a.flags|=s;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let f of t){if(d&&(d=d.map(f.changes)),f.scrollIntoView){let{main:m}=f.state.selection;d=new x0(m.empty?m:xt.cursor(m.head,m.head>m.anchor?-1:1))}for(let m of f.effects)m.is(Qw)&&(d=m.value.clip(this.state))}this.viewState.update(a,d),this.bidiCache=yR.update(this.bidiCache,a.changes),a.empty||(this.updatePlugins(a),this.inputState.update(a)),n=this.docView.update(a),this.state.facet(iS)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(a.startState.facet(Xw)!=a.state.facet(Xw)&&(this.viewState.mustMeasureContent=!0),(n||r||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!a.empty)for(let f of this.state.facet(Zz))try{f(a)}catch(m){Rs(this.state,m,"update listener")}(l||u)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!pPe(this,u)&&c.force&&E0(this.contentDOM,c.key,c.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new mle(this,t),this.plugins=t.facet(a0).map(r=>new n3(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new tle(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(t){let n=t.startState.facet(a0),r=t.state.facet(a0);if(n!=r){let a=[];for(let i of r){let o=n.indexOf(i);if(o<0)a.push(new n3(i));else{let s=this.plugins[o];s.mustUpdate=t,a.push(s)}}for(let i of this.plugins)i.mustUpdate!=t&&i.destroy(this);this.plugins=a,this.pluginMap.clear()}else for(let a of this.plugins)a.mustUpdate=t;for(let a=0;a-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.viewState.scrollParent,a=this.viewState.getScrollOffset(),{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(a-this.viewState.scrollOffset)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(o<0)if(FRe(r||this.win))i=-1,o=this.viewState.heightMap.height;else{let m=this.viewState.scrollAnchorAt(a);i=m.from,o=m.top}this.updateState=1;let l=this.viewState.measure();if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let c=[];l&4||([this.measureRequests,c]=[c,this.measureRequests]);let u=c.map(m=>{try{return m.read(this)}catch(h){return Rs(this.state,h),vle}}),d=hR.create(this,this.state,[]),f=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),f=this.docView.update(d),f&&this.docViewUpdate());for(let m=0;m1||h<-1)&&(r==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){a=a+h,r?r.scrollTop+=h:this.win.scrollBy(0,h),o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(Zz))s(n)}get themeClasses(){return rB+" "+(this.state.facet(nB)?TPe:xPe)+" "+this.state.facet(Xw)}updateAttrs(){let t=yle(this,iPe,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(pf)?"true":"false",class:"cm-content",style:`${Cn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),yle(this,RY,n);let r=this.observer.ignore(()=>{let a=Gse(this.contentDOM,this.contentAttrs,n),i=Gse(this.dom,this.editorAttrs,t);return a||i});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let a of r.effects)if(a.is(gn.announce)){n&&(this.announceDOM.textContent=""),n=!1;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=a.value}}mountStyles(){this.styleModules=this.state.facet(iS);let t=this.state.facet(gn.cspNonce);tm.mount(this.root,this.styleModules.concat(BTt).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let n=0;nr.plugin==t)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,n,r){return o3(this,t,nle(this,t,n,r))}moveByGroup(t,n){return o3(this,t,nle(this,t,n,r=>tTt(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),a=this.textDirectionAt(t.from),i=r[n?r.length-1:0];return xt.cursor(i.side(n,a)+t.from,i.forward(!n,a)?1:-1)}moveToLineBoundary(t,n,r=!0){return eTt(this,t,n,r)}moveVertically(t,n,r){return o3(this,t,nTt(this,t,n,r))}domAtPos(t,n=1){return this.docView.domAtPos(t,n)}posAtDOM(t,n=0){return this.docView.posFromDOM(t,n)}posAtCoords(t,n=!0){this.readMeasured();let r=eB(this,t,n);return r&&r.pos}posAndSideAtCoords(t,n=!0){return this.readMeasured(),eB(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let a=this.state.doc.lineAt(t),i=this.bidiSpans(a),o=i[ad.find(i,t-a.from,-1,n)];return j_(r,o.dir==Ba.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(tPe)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>YTt)return qRe(t.length);let n=this.textDirectionAt(t.from),r;for(let i of this.bidiCache)if(i.from==t.from&&i.dir==n&&(i.fresh||VRe(i.isolates,r=Kse(this,t))))return i.order;r||(r=Kse(this,t));let a=Cxt(t.text,n,r);return this.bidiCache.push(new yR(t.from,t.to,n,r,!0,a)),a}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||Cn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{BRe(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,n={}){return Qw.of(new x0(typeof t=="number"?xt.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return Qw.of(new x0(xt.cursor(r.from),"start","start",r.top-t,n,!0))}setTabFocusMode(t){t==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof t=="boolean"?this.inputState.tabFocusMode=t?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return yi.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return yi.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=tm.newName(),a=[Xw.of(r),iS.of(aB(`.${r}`,t))];return n&&n.dark&&a.push(nB.of(!0)),a}static baseTheme(t){return Qf.lowest(iS.of(aB("."+rB,t,wPe)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),a=r&&wi.get(r)||wi.get(t);return((n=a==null?void 0:a.root)===null||n===void 0?void 0:n.view)||null}}gn.styleModule=iS;gn.inputHandler=JRe;gn.clipboardInputFilter=CY;gn.clipboardOutputFilter=$Y;gn.scrollHandler=rPe;gn.focusChangeEffect=ePe;gn.perLineTextDirection=tPe;gn.exceptionSink=KRe;gn.updateListener=Zz;gn.editable=pf;gn.mouseSelectionStyle=ZRe;gn.dragMovesSelection=HRe;gn.clickAddsSelectionRange=GRe;gn.decorations=SA;gn.blockWrappers=oPe;gn.outerDecorations=PY;gn.atomicRanges=Ox;gn.bidiIsolatedRanges=sPe;gn.scrollMargins=lPe;gn.darkTheme=nB;gn.cspNonce=yn.define({combine:e=>e.length?e[0]:""});gn.contentAttributes=RY;gn.editorAttributes=iPe;gn.lineWrapping=gn.contentAttributes.of({class:"cm-lineWrapping"});gn.announce=_r.define();const YTt=4096,vle={};class yR{constructor(t,n,r,a,i,o){this.from=t,this.to=n,this.dir=r,this.isolates=a,this.fresh=i,this.order=o}static update(t,n){if(n.empty&&!t.some(i=>i.fresh))return t;let r=[],a=t.length?t[t.length-1].dir:Ba.LTR;for(let i=Math.max(0,t.length-10);i=0;a--){let i=r[a],o=typeof i=="function"?i(e):i;o&&xY(o,n)}return n}const VTt=Cn.mac?"mac":Cn.windows?"win":Cn.linux?"linux":"key";function qTt(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let a,i,o,s;for(let l=0;lr.concat(a),[]))),n}function GTt(e,t,n){return $Pe(CPe(e.state),t,e,n)}let kp=null;const HTt=4e3;function ZTt(e,t=VTt){let n=Object.create(null),r=Object.create(null),a=(o,s)=>{let l=r[o];if(l==null)r[o]=s;else if(l!=s)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},i=(o,s,l,c,u)=>{var d,f;let m=n[o]||(n[o]=Object.create(null)),h=s.split(/ (?!$)/).map(v=>qTt(v,t));for(let v=1;v{let C=kp={view:S,prefix:y,scope:o};return setTimeout(()=>{kp==C&&(kp=null)},HTt),!0}]})}let g=h.join(" ");a(g,!1);let O=m[g]||(m[g]={preventDefault:!1,stopPropagation:!1,run:((f=(d=m._any)===null||d===void 0?void 0:d.run)===null||f===void 0?void 0:f.slice())||[]});l&&O.run.push(l),c&&(O.preventDefault=!0),u&&(O.stopPropagation=!0)};for(let o of e){let s=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let c of s){let u=n[c]||(n[c]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:d}=o;for(let f in u)u[f].run.push(m=>d(m,iB))}let l=o[t]||o.key;if(l)for(let c of s)i(c,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&i(c,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return n}let iB=null;function $Pe(e,t,n,r){iB=t;let a=dxt(t),i=Ks(a,0),o=ed(i)==a.length&&a!=" ",s="",l=!1,c=!1,u=!1;kp&&kp.view==n&&kp.scope==r&&(s=kp.prefix+" ",gPe.indexOf(t.keyCode)<0&&(c=!0,kp=null));let d=new Set,f=O=>{if(O){for(let v of O.run)if(!d.has(v)&&(d.add(v),v(n)))return O.stopPropagation&&(u=!0),!0;O.preventDefault&&(O.stopPropagation&&(u=!0),c=!0)}return!1},m=e[r],h,g;return m&&(f(m[s+Yw(a,t,!o)])?l=!0:o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Cn.windows&&t.ctrlKey&&t.altKey)&&!(Cn.mac&&t.altKey&&!(t.ctrlKey||t.metaKey))&&(h=nm[t.keyCode])&&h!=a?(f(m[s+Yw(h,t,!0)])||t.shiftKey&&(g=B_[t.keyCode])!=a&&g!=h&&f(m[s+Yw(g,t,!1)]))&&(l=!0):o&&t.shiftKey&&f(m[s+Yw(a,t,!0)])&&(l=!0),!l&&f(m._any)&&(l=!0)),c&&(l=!0),l&&u&&t.stopPropagation(),iB=null,l}class bx{constructor(t,n,r,a,i){this.className=t,this.left=n,this.top=r,this.width=a,this.height=i}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let a=t.coordsAtPos(r.head,r.assoc||1);if(!a)return[];let i=RPe(t);return[new bx(n,a.left-i.left,a.top-i.top,null,a.bottom-a.top)]}else return KTt(t,n,r)}}function RPe(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Ba.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function _le(e,t,n,r){let a=e.coordsAtPos(t,n*2);if(!a)return r;let i=e.dom.getBoundingClientRect(),o=(a.top+a.bottom)/2,s=e.posAtCoords({x:i.left+1,y:o}),l=e.posAtCoords({x:i.right-1,y:o});return s==null||l==null?r:{from:Math.max(r.from,Math.min(s,l)),to:Math.min(r.to,Math.max(s,l))}}function KTt(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),a=Math.min(n.to,e.viewport.to),i=e.textDirection==Ba.LTR,o=e.contentDOM,s=o.getBoundingClientRect(),l=RPe(e),c=o.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),d=s.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),f=s.right-(u?parseInt(u.paddingRight):0),m=Jz(e,r,1),h=Jz(e,a,-1),g=m.type==Fo.Text?m:null,O=h.type==Fo.Text?h:null;if(g&&(e.lineWrapping||m.widgetLineBreaks)&&(g=_le(e,r,1,g)),O&&(e.lineWrapping||h.widgetLineBreaks)&&(O=_le(e,a,-1,O)),g&&O&&g.from==O.from&&g.to==O.to)return y(S(n.from,n.to,g));{let _=g?S(n.from,null,g):C(m,!1),w=O?S(null,n.to,O):C(h,!0),T=[];return(g||m).to<(O||h).from-(g&&O?1:0)||m.widgetLineBreaks>1&&_.bottom+e.defaultLineHeight/2Q&&D.from=R)break;F>U&&M(Math.max(z,U),_==null&&z<=Q,Math.min(F,R),w==null&&F>=B,P.dir)}if(U=$.to+1,U>=R)break}return I.length==0&&M(Q,_==null,B,w==null,e.textDirection),{top:k,bottom:A,horizontal:I}}function C(_,w){let T=s.top+(w?_.top:_.bottom);return{top:T,bottom:T,horizontal:[]}}}function JTt(e,t){return e.constructor==t.constructor&&e.eq(t)}class ewt{constructor(t,n){this.view=t,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,t)}update(t){t.startState.facet(U2)!=t.state.facet(U2)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}docViewUpdate(t){this.layer.updateOnDocViewUpdate!==!1&&t.requestMeasure(this.measureReq)}setOrder(t){let n=0,r=t.facet(U2);for(;n!JTt(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let a of t)a.update&&n&&a.constructor&&this.drawn[r].constructor&&a.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(a.draw(),n);for(;n;){let a=n.nextSibling;n.remove(),n=a}this.drawn=t,Cn.safari&&Cn.safari_version>=26&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const U2=yn.define();function PPe(e){return[yi.define(t=>new ewt(t,e)),U2.of(e)]}const Y_=yn.define({combine(e){return wu(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function twt(e={}){return[Y_.of(e),nwt,rwt,awt,nPe.of(!0)]}function kPe(e){return e.startState.facet(Y_)!=e.state.facet(Y_)}const nwt=PPe({above:!0,markers(e){let{state:t}=e,n=t.facet(Y_),r=[];for(let a of t.selection.ranges){let i=a==t.selection.main;if(a.empty||n.drawRangeCursor){let o=i?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=a.empty?a:xt.cursor(a.head,a.head>a.anchor?-1:1);for(let l of bx.forRange(e,o,s))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=kPe(e);return n&&Ele(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){Ele(t.state,e)},class:"cm-cursorLayer"});function Ele(e,t){t.style.animationDuration=e.facet(Y_).cursorBlinkRate+"ms"}const rwt=PPe({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:bx.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||kPe(e)},class:"cm-selectionLayer"}),awt=Qf.highest(gn.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),APe=_r.define({map(e,t){return e==null?null:t.mapPos(e)}}),sS=uo.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(APe)?r.value:n,e)}}),iwt=yi.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(sS);n==null?this.cursor!=null&&((t=this.cursor)===null||t===void 0||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(sS)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(sS),n=t!=null&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(sS)!=e&&this.view.dispatch({effects:APe.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function owt(){return[sS,iwt]}function xle(e,t,n,r,a){t.lastIndex=0;for(let i=e.iterRange(n,r),o=n,s;!i.next().done;o+=i.value.length)if(!i.lineBreak)for(;s=t.exec(i.value);)a(o+s.index,s)}function swt(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:a,to:i}of n)a=Math.max(e.state.doc.lineAt(a).from,a-t),i=Math.min(e.state.doc.lineAt(i).to,i+t),r.length&&r[r.length-1].to>=a?r[r.length-1].to=i:r.push({from:a,to:i});return r}class lwt{constructor(t){const{regexp:n,decoration:r,decorate:a,boundary:i,maxLength:o=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,a)this.addMatch=(s,l,c,u)=>a(u,c,c+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,c,u)=>{let d=r(s,l,c);d&&u(c,c+s[0].length,d)};else if(r)this.addMatch=(s,l,c,u)=>u(c,c+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=i,this.maxLength=o}createDeco(t){let n=new $f,r=n.add.bind(n);for(let{from:a,to:i}of swt(t,this.maxLength))xle(t.state.doc,this.regexp,a,i,(o,s)=>this.addMatch(s,t,o,r));return n.finish()}updateDeco(t,n){let r=1e9,a=-1;return t.docChanged&&t.changes.iterChanges((i,o,s,l)=>{l>=t.view.viewport.from&&s<=t.view.viewport.to&&(r=Math.min(s,r),a=Math.max(l,a))}),t.viewportMoved||a-r>1e3?this.createDeco(t.view):a>-1?this.updateRange(t.view,n.map(t.changes),r,a):n}updateRange(t,n,r,a){for(let i of t.visibleRanges){let o=Math.max(i.from,r),s=Math.min(i.to,a);if(s>=o){let l=t.state.doc.lineAt(o),c=l.tol.from;o--)if(this.boundary.test(l.text[o-1-l.from])){u=o;break}for(;sf.push(v.range(g,O));if(l==c)for(this.regexp.lastIndex=u-l.from;(m=this.regexp.exec(l.text))&&m.indexthis.addMatch(O,t,g,h));n=n.update({filterFrom:u,filterTo:d,filter:(g,O)=>gd,add:f})}}return n}}const oB=/x/.unicode!=null?"gu":"g",cwt=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,oB),uwt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let c3=null;function dwt(){var e;if(c3==null&&typeof document<"u"&&document.body){let t=document.body.style;c3=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return c3||!1}const j2=yn.define({combine(e){let t=wu(e,{render:null,specialChars:cwt,addSpecialChars:null});return(t.replaceTabs=!dwt())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,oB)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,oB)),t}});function fwt(e={}){return[j2.of(e),pwt()]}let Tle=null;function pwt(){return Tle||(Tle=yi.fromClass(class{constructor(e){this.view=e,this.decorations=Hn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(j2)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new lwt({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:a}=n.state,i=Ks(t[0],0);if(i==9){let o=a.lineAt(r),s=n.state.tabSize,l=_u(o.text,s,r-o.from);return Hn.replace({widget:new Owt((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[i]||(this.decorationCache[i]=Hn.replace({widget:new gwt(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(j2);e.startState.facet(j2)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const mwt="•";function hwt(e){return e>=32?mwt:e==10?"␤":String.fromCharCode(9216+e)}class gwt extends Cu{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=hwt(this.code),r=t.state.phrase("Control character")+" "+(uwt[this.code]||"0x"+this.code.toString(16)),a=this.options.render&&this.options.render(this.code,r,n);if(a)return a;let i=document.createElement("span");return i.textContent=n,i.title=r,i.setAttribute("aria-label",r),i.className="cm-specialChar",i}ignoreEvent(){return!1}}class Owt extends Cu{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent=" ",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}function bwt(){return ywt}const vwt=Hn.line({class:"cm-activeLine"}),ywt=yi.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let a=e.lineBlockAt(r.head);a.from>t&&(n.push(vwt.range(a.from)),t=a.from)}return Hn.set(n)}},{decorations:e=>e.decorations});let Swt=class extends Cu{constructor(t){super(),this.content=t}toDOM(t){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(t):this.content.cloneNode(!0)),n.setAttribute("aria-hidden","true"),n}coordsAt(t){let n=t.firstChild?QS(t.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(t.parentNode),a=j_(n[0],r.direction!="rtl"),i=parseInt(r.lineHeight);return a.bottom-a.top>i*1.5?{left:a.left,right:a.right,top:a.top,bottom:a.top+i}:a}ignoreEvent(){return!1}};function _wt(e){let t=yi.fromClass(class{constructor(n){this.view=n,this.placeholder=e?Hn.set([Hn.widget({widget:new Swt(e),side:1}).range(0)]):Hn.none}get decorations(){return this.view.state.doc.length?Hn.none:this.placeholder}},{decorations:n=>n.decorations});return typeof e=="string"?[t,gn.contentAttributes.of({"aria-placeholder":e})]:t}const sB=2e3;function Ewt(e,t,n){let r=Math.min(t.line,n.line),a=Math.max(t.line,n.line),i=[];if(t.off>sB||n.off>sB||t.col<0||n.col<0){let o=Math.min(t.off,n.off),s=Math.max(t.off,n.off);for(let l=r;l<=a;l++){let c=e.doc.line(l);c.length<=s&&i.push(xt.range(c.from+o,c.to+s))}}else{let o=Math.min(t.col,n.col),s=Math.max(t.col,n.col);for(let l=r;l<=a;l++){let c=e.doc.line(l),u=Bz(c.text,o,e.tabSize,!0);if(u<0)i.push(xt.cursor(c.to));else{let d=Bz(c.text,s,e.tabSize);i.push(xt.range(c.from+u,c.from+d))}}}return i}function xwt(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function wle(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),a=n-r.from,i=a>sB?-1:a==r.length?xwt(e,t.clientX):_u(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:i,off:a}}function Twt(e,t){let n=wle(e,t),r=e.state.selection;return n?{update(a){if(a.docChanged){let i=a.changes.mapPos(a.startState.doc.line(n.line).from),o=a.state.doc.lineAt(i);n={line:o.number,col:n.col,off:Math.min(n.off,o.length)},r=r.map(a.changes)}},get(a,i,o){let s=wle(e,a);if(!s)return r;let l=Ewt(e.state,n,s);return l.length?o?xt.create(l.concat(r.ranges)):xt.create(l):r}}:null}function wwt(e){let t=(n=>n.altKey&&n.button==0);return gn.mouseSelectionStyle.of((n,r)=>t(r)?Twt(n,r):null)}const Cwt={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},$wt={style:"cursor: crosshair"};function Rwt(e={}){let[t,n]=Cwt[e.key||"Alt"],r=yi.fromClass(class{constructor(a){this.view=a,this.isDown=!1}set(a){this.isDown!=a&&(this.isDown=a,this.view.update([]))}},{eventObservers:{keydown(a){this.set(a.keyCode==t||n(a))},keyup(a){(a.keyCode==t||!n(a))&&this.set(!1)},mousemove(a){this.set(n(a))}}});return[r,gn.contentAttributes.of(a=>{var i;return!((i=a.plugin(r))===null||i===void 0)&&i.isDown?$wt:null})]}const Vw="-10000px";class NPe{constructor(t,n,r,a){this.facet=n,this.createTooltipView=r,this.removeTooltipView=a,this.input=t.state.facet(n),this.tooltips=this.input.filter(o=>o);let i=null;this.tooltipViews=this.tooltips.map(o=>i=r(o,i))}update(t,n){var r;let a=t.state.facet(this.facet),i=a.filter(l=>l);if(a===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let o=[],s=n?[]:null;for(let l=0;ln[c]=l),n.length=s.length),this.input=a,this.tooltips=i,this.tooltipViews=o,!0}}function Pwt(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}const u3=yn.define({combine:e=>{var t,n,r;return{position:Cn.ios?"absolute":((t=e.find(a=>a.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((n=e.find(a=>a.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=e.find(a=>a.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||Pwt}}}),Cle=new WeakMap,MY=yi.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(u3);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new NPe(e,TA,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(u3);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let a of this.manager.tooltipViews)a.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let a of this.manager.tooltipViews)this.container.appendChild(a.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let a=document.createElement("div");a.className="cm-tooltip-arrow",n.dom.appendChild(a)}return n.dom.style.position=this.position,n.dom.style.top=Vw,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,n=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(Cn.safari){let o=i.getBoundingClientRect();n=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}else n=!!i.offsetParent&&i.offsetParent!=this.container.ownerDocument.body}if(n||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(e=i.width/this.parent.offsetWidth,t=i.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),a=kY(this.view);return{visible:{left:r.left+a.left,top:r.top+a.top,right:r.right-a.right,bottom:r.bottom-a.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((i,o)=>{let s=this.manager.tooltipViews[o];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(u3).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{visible:n,space:r,scaleX:a,scaleY:i}=e,o=[];for(let s=0;s=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1)){u.style.top=Vw;continue}let m=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,h=m?7:0,g=f.right-f.left,O=(t=Cle.get(c))!==null&&t!==void 0?t:f.bottom-f.top,v=c.offset||Awt,y=this.view.textDirection==Ba.LTR,S=f.width>r.right-r.left?y?r.left:r.right-f.width:y?Math.max(r.left,Math.min(d.left-(m?14:0)+v.x,r.right-g)):Math.min(Math.max(r.left,d.left-g+(m?14:0)-v.x),r.right-g),C=this.above[s];!l.strictSide&&(C?d.top-O-h-v.yr.bottom)&&C==r.bottom-d.bottom>d.top-r.top&&(C=this.above[s]=!C);let _=(C?d.top-r.top:r.bottom-d.bottom)-h;if(_S&&k.topw&&(w=C?k.top-O-2-h:k.bottom+h+2);if(this.position=="absolute"?(u.style.top=(w-e.parent.top)/i+"px",$le(u,(S-e.parent.left)/a)):(u.style.top=w/i+"px",$le(u,S/a)),m){let k=d.left+(y?v.x:-v.x)-(S+14-7);m.style.left=k/a+"px"}c.overlap!==!0&&o.push({left:S,top:w,right:T,bottom:w+O}),u.classList.toggle("cm-tooltip-above",C),u.classList.toggle("cm-tooltip-below",!C),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Vw}},{eventObservers:{scroll(){this.maybeMeasure()}}});function $le(e,t){let n=parseInt(e.style.left,10);(isNaN(n)||Math.abs(t-n)>1)&&(e.style.left=t+"px")}const kwt=gn.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Awt={x:0,y:0},TA=yn.define({enables:[MY,kwt]}),SR=yn.define({combine:e=>e.reduce((t,n)=>t.concat(n),[])});class wA{static create(t){return new wA(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new NPe(t,SR,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(t,n){let r=t.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}passProp(t){let n;for(let r of this.manager.tooltipViews){let a=r[t];if(a!==void 0){if(n===void 0)n=a;else if(n!==a)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Nwt=TA.compute([SR],e=>{let t=e.facet(SR);return t.length===0?null:{pos:Math.min(...t.map(n=>n.pos)),end:Math.max(...t.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:wA.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class Iwt{constructor(t,n,r,a,i){this.view=t,this.source=n,this.field=r,this.setHover=a,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let t=Date.now()-this.lastMove.time;ts.bottom||n.xs.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(a)).find(u=>u.from<=a&&u.to>=a),c=l&&l.dir==Ba.RTL?-1:1;i=n.x{this.pending==s&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>Rs(t.state,l,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let t=this.view.plugin(MY),n=t?t.manager.tooltips.findIndex(r=>r.create==wA.create):-1;return n>-1?t.manager.tooltipViews[n]:null}mousemove(t){var n,r;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:a,tooltip:i}=this;if(a.length&&i&&!Mwt(i.dom,t)||this.pending){let{pos:o}=a[0]||this.pending,s=(r=(n=a[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:o;(o==s?this.view.posAtCoords(this.lastMove)!=o:!Dwt(this.view,o,s,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const qw=4;function Mwt(e,t){let{left:n,right:r,top:a,bottom:i}=e.getBoundingClientRect(),o;if(o=e.querySelector(".cm-tooltip-arrow")){let s=o.getBoundingClientRect();a=Math.min(s.top,a),i=Math.max(s.bottom,i)}return t.clientX>=n-qw&&t.clientX<=r+qw&&t.clientY>=a-qw&&t.clientY<=i+qw}function Dwt(e,t,n,r,a,i){let o=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(o.left>r||o.righta||Math.min(o.bottom,s)=t&&l<=n}function Lwt(e,t={}){let n=_r.define(),r=uo.define({create(){return[]},update(a,i){if(a.length&&(t.hideOnChange&&(i.docChanged||i.selection)?a=[]:t.hideOn&&(a=a.filter(o=>!t.hideOn(i,o))),i.docChanged)){let o=[];for(let s of a){let l=i.changes.mapPos(s.pos,-1,Bo.TrackDel);if(l!=null){let c=Object.assign(Object.create(null),s);c.pos=l,c.end!=null&&(c.end=i.changes.mapPos(c.end)),o.push(c)}}a=o}for(let o of i.effects)o.is(n)&&(a=o.value),o.is(Qwt)&&(a=[]);return a},provide:a=>SR.from(a)});return{active:r,extension:[r,yi.define(a=>new Iwt(a,e,r,n,t.hoverTime||300)),Nwt]}}function IPe(e,t){let n=e.plugin(MY);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const Qwt=_r.define(),Rle=yn.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function DY(e,t){let n=e.plugin(MPe),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const MPe=yi.fromClass(class{constructor(e){this.input=e.state.facet(V_),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(Rle);this.top=new Ww(e,!0,t.topContainer),this.bottom=new Ww(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(Rle);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Ww(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Ww(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(V_);if(n!=this.input){let r=n.filter(l=>l),a=[],i=[],o=[],s=[];for(let l of r){let c=this.specs.indexOf(l),u;c<0?(u=l(e.view),s.push(u)):(u=this.panels[c],u.update&&u.update(e)),a.push(u),(u.top?i:o).push(u)}this.specs=r,this.panels=a,this.top.sync(i),this.bottom.sync(o);for(let l of s)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>gn.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Ww{constructor(t,n,r){this.view=t,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(t){for(let n of this.panels)n.destroy&&t.indexOf(n)<0&&n.destroy();this.panels=t,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let t=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;t!=n.dom;)t=Ple(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=Ple(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let t of this.classes.split(" "))t&&this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))t&&this.container.classList.add(t)}}}function Ple(e){let t=e.nextSibling;return e.remove(),t}const V_=yn.define({enables:MPe});function zwt(e,t){let n,r=new Promise(o=>n=o),a=o=>Bwt(o,t,n);e.state.field(d3,!1)?e.dispatch({effects:DPe.of(a)}):e.dispatch({effects:_r.appendConfig.of(d3.init(()=>[a]))});let i=LPe.of(a);return{close:i,result:r.then(o=>((e.win.queueMicrotask||(l=>e.win.setTimeout(l,10)))(()=>{e.state.field(d3).indexOf(a)>-1&&e.dispatch({effects:i})}),o))}}const d3=uo.define({create(){return[]},update(e,t){for(let n of t.effects)n.is(DPe)?e=[n.value].concat(e):n.is(LPe)&&(e=e.filter(r=>r!=n.value));return e},provide:e=>V_.computeN([e],t=>t.field(e))}),DPe=_r.define(),LPe=_r.define();function Bwt(e,t,n){let r=t.content?t.content(e,()=>o(null)):null;if(!r){if(r=Ia("form"),t.input){let s=Ia("input",t.input);/^(text|password|number|email|tel|url)$/.test(s.type)&&s.classList.add("cm-textfield"),s.name||(s.name="input"),r.appendChild(Ia("label",(t.label||"")+": ",s))}else r.appendChild(document.createTextNode(t.label||""));r.appendChild(document.createTextNode(" ")),r.appendChild(Ia("button",{class:"cm-button",type:"submit"},t.submitLabel||"OK"))}let a=r.nodeName=="FORM"?[r]:r.querySelectorAll("form");for(let s=0;s{c.keyCode==27?(c.preventDefault(),o(null)):c.keyCode==13&&(c.preventDefault(),o(l))}),l.addEventListener("submit",c=>{c.preventDefault(),o(l)})}let i=Ia("div",r,Ia("button",{onclick:()=>o(null),"aria-label":e.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));t.class&&(i.className=t.class),i.classList.add("cm-dialog");function o(s){i.contains(i.ownerDocument.activeElement)&&e.focus(),n(s)}return{dom:i,top:t.top,mount:()=>{if(t.focus){let s;typeof t.focus=="string"?s=r.querySelector(t.focus):s=r.querySelector("input")||r.querySelector("button"),s&&"select"in s?s.select():s&&"focus"in s&&s.focus()}}}}class yd extends em{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}yd.prototype.elementClass="";yd.prototype.toDOM=void 0;yd.prototype.mapMode=Bo.TrackBefore;yd.prototype.startSide=yd.prototype.endSide=-1;yd.prototype.point=!0;const X2=yn.define(),Fwt=yn.define(),Uwt={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>jr.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},FS=yn.define();function QPe(e){return[zPe(),FS.of({...Uwt,...e})]}const kle=yn.define({combine:e=>e.some(t=>t)});function zPe(e){return[jwt]}const jwt=yi.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(FS).map(t=>new Nle(e,t)),this.fixed=!e.state.facet(kle);for(let t of this.gutters)t.config.side=="after"?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}if(e.geometryChanged){let t=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=t,this.domAfter&&(this.domAfter.style.minHeight=t)}this.view.state.facet(kle)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=jr.iter(this.view.state.facet(X2),this.view.viewport.from),r=[],a=this.gutters.map(i=>new Xwt(i,this.view.viewport,-this.view.documentPadding.top));for(let i of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(i.type)){let o=!0;for(let s of i.type)if(s.type==Fo.Text&&o){lB(n,r,s.from);for(let l of a)l.line(this.view,s,r);o=!1}else if(s.widget)for(let l of a)l.widget(this.view,s)}else if(i.type==Fo.Text){lB(n,r,i.from);for(let o of a)o.line(this.view,i,r)}else if(i.widget)for(let o of a)o.widget(this.view,i);for(let i of a)i.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(FS),n=e.state.facet(FS),r=e.docChanged||e.heightChanged||e.viewportChanged||!jr.eq(e.startState.facet(X2),e.state.facet(X2),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let a of this.gutters)a.update(e)&&(r=!0);else{r=!0;let a=[];for(let i of n){let o=t.indexOf(i);o<0?a.push(new Nle(this.view,i)):(this.gutters[o].update(e),a.push(this.gutters[o]))}for(let i of this.gutters)i.dom.remove(),a.indexOf(i)<0&&i.destroy();for(let i of a)i.config.side=="after"?this.getDOMAfter().appendChild(i.dom):this.dom.appendChild(i.dom);this.gutters=a}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>gn.scrollMargins.of(t=>{let n=t.plugin(e);if(!n||n.gutters.length==0||!n.fixed)return null;let r=n.dom.offsetWidth*t.scaleX,a=n.domAfter?n.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==Ba.LTR?{left:r,right:a}:{right:r,left:a}})});function Ale(e){return Array.isArray(e)?e:[e]}function lB(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Xwt{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=jr.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:a}=this,i=(n.top-this.height)/t.scaleY,o=n.height/t.scaleY;if(this.i==a.elements.length){let s=new BPe(t,o,i,r);a.elements.push(s),a.dom.appendChild(s.dom)}else a.elements[this.i].update(t,o,i,r);this.height=n.bottom,this.i++}line(t,n,r){let a=[];lB(this.cursor,a,n.from),r.length&&(a=a.concat(r));let i=this.gutter.config.lineMarker(t,n,a);i&&a.unshift(i);let o=this.gutter;a.length==0&&!o.config.renderEmptyElements||this.addElement(t,n,a)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n),a=r?[r]:null;for(let i of t.state.facet(Fwt)){let o=i(t,n.widget,n);o&&(a||(a=[])).push(o)}a&&this.addElement(t,n,a)}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class Nle{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,a=>{let i=a.target,o;if(i!=this.dom&&this.dom.contains(i)){for(;i.parentNode!=this.dom;)i=i.parentNode;let l=i.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=a.clientY;let s=t.lineBlockAtHeight(o-t.documentTop);n.domEventHandlers[r](t,s,a)&&a.preventDefault()});this.markers=Ale(n.markers(t)),n.initialSpacer&&(this.spacer=new BPe(t,0,0,[n.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let n=this.markers;if(this.markers=Ale(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let a=this.config.updateSpacer(this.spacer.markers[0],t);a!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[a])}let r=t.view.viewport;return!jr.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class BPe{constructor(t,n,r,a){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,n,r,a)}update(t,n,r,a){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),Ywt(this.markers,a)||this.setMarkers(t,a)}setMarkers(t,n){let r="cm-gutterElement",a=this.dom.firstChild;for(let i=0,o=0;;){let s=o,l=ii(s,l,c)||o(s,l,c):o}return r}})}});class f3 extends yd{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function p3(e,t){return e.state.facet(i0).formatNumber(t,e.state)}const Wwt=FS.compute([i0],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(Vwt)},lineMarker(t,n,r){return r.some(a=>a.toDOM)?null:new f3(p3(t,t.state.doc.lineAt(n.from).number))},widgetMarker:(t,n,r)=>{for(let a of t.state.facet(qwt)){let i=a(t,n,r);if(i)return i}return null},lineMarkerChange:t=>t.startState.facet(i0)!=t.state.facet(i0),initialSpacer(t){return new f3(p3(t,Ile(t.state.doc.lines)))},updateSpacer(t,n){let r=p3(n.view,Ile(n.view.state.doc.lines));return r==t.number?t:new f3(r)},domEventHandlers:e.facet(i0).domEventHandlers,side:"before"}));function Gwt(e={}){return[i0.of(e),zPe(),Wwt]}function Ile(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let a=e.doc.lineAt(r.head).from;a>n&&(n=a,t.push(Hwt.range(a)))}return jr.of(t)});function Kwt(){return Zwt}var m3;const wh=new Cr;function LY(e){return yn.define({combine:e?t=>t.concat(e):void 0})}const QY=new Cr;class Sc{constructor(t,n,r=[],a=""){this.data=t,this.name=a,ea.prototype.hasOwnProperty("tree")||Object.defineProperty(ea.prototype,"tree",{get(){return Aa(this)}}),this.parser=n,this.extension=[am.of(this),ea.languageData.of((i,o,s)=>{let l=Mle(i,o,s),c=l.type.prop(wh);if(!c)return[];let u=i.facet(c),d=l.type.prop(QY);if(d){let f=l.resolve(o-l.from,s);for(let m of d)if(m.test(f,i)){let h=i.facet(m.facet);return m.type=="replace"?h:h.concat(u)}}return u})].concat(r)}isActiveAt(t,n,r=-1){return Mle(t,n,r).type.prop(wh)==this.data}findRegions(t){let n=t.facet(am);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],a=(i,o)=>{if(i.prop(wh)==this.data){r.push({from:o,to:o+i.length});return}let s=i.prop(Cr.mounted);if(s){if(s.tree.prop(wh)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+o,to:l.to+o});else r.push({from:o,to:o+i.length});return}else if(s.overlay){let l=r.length;if(a(s.tree,s.overlay[0].from+o),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new Yl(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Aa(e){let t=e.field(Sc.state,!1);return t?t.tree:Sa.empty}class Jwt{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,n){let r=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,n):this.string.slice(t-r,n-r)}}let sy=null;class q_{constructor(t,n,r=[],a,i,o,s,l){this.parser=t,this.state=n,this.fragments=r,this.tree=a,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new q_(t,n,[],Sa.empty,0,r,[],null)}startParse(){return this.parser.startParse(new Jwt(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Sa.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let a=Date.now()+t;t=()=>Date.now()>a}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(yf.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=sy;sy=this;try{return t()}finally{sy=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=Dle(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:a,treeLen:i,viewport:o,skipped:s}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((c,u,d,f)=>l.push({fromA:c,toA:u,fromB:d,toB:f})),r=yf.applyChanges(r,l),a=Sa.empty,i=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){s=[];for(let c of this.skipped){let u=t.mapPos(c.from,1),d=t.mapPos(c.to,-1);ut.from&&(this.fragments=Dle(this.fragments,a,i),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends OY{createParse(n,r,a){let i=a[0].from,o=a[a.length-1].to;return{parsedPos:i,advance(){let l=sy;if(l){for(let c of a)l.tempSkipped.push(c);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=o,new Sa(oo.none,[],[],o-i)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return sy}}function Dle(e,t,n){return yf.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class rb{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new rb(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=q_.create(t.facet(am).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new rb(r)}}Sc.state=uo.define({create:rb.init,update(e,t){for(let n of t.effects)if(n.is(Sc.setState))return n.value;return t.startState.facet(am)!=t.state.facet(am)?rb.init(t.state):e.apply(t)}});let FPe=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(FPe=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const h3=typeof navigator<"u"&&(!((m3=navigator.scheduling)===null||m3===void 0)&&m3.isInputPending)?()=>navigator.scheduling.isInputPending():null,eCt=yi.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let n=this.view.state.field(Sc.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:t}=this.view,n=t.field(Sc.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=FPe(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEnda+1e3,l=i.context.work(()=>h3&&h3()||Date.now()>o,a+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:Sc.setState.of(new rb(i.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Rs(this.view.state,n)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),am=yn.define({combine(e){return e.length?e[0]:null},enables:e=>[Sc.state,eCt,gn.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Cc{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class _R{constructor(t,n,r,a,i,o=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=a,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new _R(t.name,(t.alias||[]).concat(t.name).map(a=>a.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let a of t)if(a.filename&&a.filename.test(n))return a;let r=/\.([^.]+)$/.exec(n);if(r){for(let a of t)if(a.extensions.indexOf(r[1])>-1)return a}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let a of t)if(a.alias.some(i=>i==n))return a;if(r)for(let a of t)for(let i of a.alias){let o=n.indexOf(i);if(o>-1&&(i.length>2||!/\w/.test(n[o-1])&&!/\w/.test(n[o+i.length])))return a}return null}}const tCt=yn.define(),Gb=yn.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(n=>n!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function ER(e){let t=e.facet(Gb);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function W_(e,t){let n="",r=e.tabSize,a=e.facet(Gb)[0];if(a==" "){for(;t>=r;)n+=" ",t-=r;a=" "}for(let i=0;i=t?nCt(e,n,t):null}class CA{constructor(t,n={}){this.state=t,this.options=n,this.unit=ER(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:a,simulateDoubleBreak:i}=this.options;return a!=null&&a>=r.from&&a<=r.to?i&&a==t?{text:"",from:t}:(n<0?a-1&&(i+=o-this.countColumn(r,r.search(/\S|$/))),i}countColumn(t,n=t.length){return _u(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:a}=this.lineAt(t,n),i=this.options.overrideIndentation;if(i){let o=i(a);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Dc=new Cr;function nCt(e,t,n){let r=t.resolveStack(n),a=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(a!=r.node){let i=[];for(let o=a;o&&!(o.fromr.node.to||o.from==r.node.from&&o.type==r.node.type);o=o.parent)i.push(o);for(let o=i.length-1;o>=0;o--)r={node:i[o],next:r}}return UPe(r,e,n)}function UPe(e,t,n){for(let r=e;r;r=r.next){let a=aCt(r.node);if(a)return a(BY.create(t,n,r))}return 0}function rCt(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function aCt(e){let t=e.type.prop(Dc);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Cr.closedBy))){let a=e.lastChild,i=a&&r.indexOf(a.name)>-1;return o=>jPe(o,!0,1,void 0,i&&!rCt(o)?a.from:void 0)}return e.parent==null?iCt:null}function iCt(){return 0}class BY extends CA{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new BY(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(oCt(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return UPe(this.context.next,this.base,this.pos)}}function oCt(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function sCt(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let a=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),o=a==null||a<=i.from?i.to:Math.min(i.to,a);for(let s=n.to;;){let l=t.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let c=/^ */.exec(i.text.slice(n.to-i.from))[0].length;return{from:n.from,to:n.to+c}}s=l.to}}function fd({closing:e,align:t=!0,units:n=1}){return r=>jPe(r,t,n,e)}function jPe(e,t,n,r,a){let i=e.textAfter,o=i.match(/^\s*/)[0].length,s=r&&i.slice(o,o+r.length)==r||a==e.pos+o,l=t?sCt(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}const $A=e=>e.baseIndent;function Uo({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const lCt=200;function cCt(){return ea.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,a=n.lineAt(r);if(r>a.from+lCt)return e;let i=n.sliceString(a.from,r);if(!t.some(c=>c.test(i)))return e;let{state:o}=e,s=-1,l=[];for(let{head:c}of o.selection.ranges){let u=o.doc.lineAt(c);if(u.from==s)continue;s=u.from;let d=zY(o,u.from);if(d==null)continue;let f=/^\s*/.exec(u.text)[0],m=W_(o,d);f!=m&&l.push({from:u.from,to:u.from+f.length,insert:m})}return l.length?[e,{changes:l,sequential:!0}]:e})}const XPe=yn.define(),Kl=new Cr;function zf(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(i&&s.from=t&&c.to>n&&(i=c)}}return i}function dCt(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function xR(e,t,n){for(let r of e.facet(XPe)){let a=r(e,t,n);if(a)return a}return uCt(e,t,n)}function YPe(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const RA=_r.define({map:YPe}),vx=_r.define({map:YPe});function VPe(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(r=>r.from<=n&&r.to>=n)||t.push(e.lineBlockAt(n));return t}const ag=uo.define({create(){return Hn.none},update(e,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((n,r)=>e=Lle(e,n,r)),e=e.map(t.changes);for(let n of t.effects)if(n.is(RA)&&!fCt(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(GPe),a=r?Hn.replace({widget:new vCt(r(t.state,n.value))}):Qle;e=e.update({add:[a.range(n.value.from,n.value.to)]})}else n.is(vx)&&(e=e.update({filter:(r,a)=>n.value.from!=r||n.value.to!=a,filterFrom:n.value.from,filterTo:n.value.to}));return t.selection&&(e=Lle(e,t.selection.main.head)),e},provide:e=>gn.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,a)=>{n.push(r,a)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{at&&(r=!0)}),r?e.update({filterFrom:t,filterTo:n,filter:(a,i)=>a>=n||i<=t}):e}function TR(e,t,n){var r;let a=null;return(r=e.field(ag,!1))===null||r===void 0||r.between(t,n,(i,o)=>{(!a||a.from>i)&&(a={from:i,to:o})}),a}function fCt(e,t,n){let r=!1;return e.between(t,t,(a,i)=>{a==t&&i==n&&(r=!0)}),r}function qPe(e,t){return e.field(ag,!1)?t:t.concat(_r.appendConfig.of(HPe()))}const pCt=e=>{for(let t of VPe(e)){let n=xR(e.state,t.from,t.to);if(n)return e.dispatch({effects:qPe(e.state,[RA.of(n),WPe(e,n)])}),!0}return!1},mCt=e=>{if(!e.state.field(ag,!1))return!1;let t=[];for(let n of VPe(e)){let r=TR(e.state,n.from,n.to);r&&t.push(vx.of(r),WPe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function WPe(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,a=e.state.doc.lineAt(t.to).number;return gn.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${a}.`)}const hCt=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(ag,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,a)=>{n.push(vx.of({from:r,to:a}))}),e.dispatch({effects:n}),!0},OCt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:pCt},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:mCt},{key:"Ctrl-Alt-[",run:hCt},{key:"Ctrl-Alt-]",run:gCt}],bCt={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},GPe=yn.define({combine(e){return wu(e,bCt)}});function HPe(e){return[ag,_Ct]}function ZPe(e,t){let{state:n}=e,r=n.facet(GPe),a=o=>{let s=e.lineBlockAt(e.posAtDOM(o.target)),l=TR(e.state,s.from,s.to);l&&e.dispatch({effects:vx.of(l)}),o.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,a,t);let i=document.createElement("span");return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=a,i}const Qle=Hn.replace({widget:new class extends Cu{toDOM(e){return ZPe(e,null)}}});class vCt extends Cu{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return ZPe(t,this.value)}}const yCt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class g3 extends yd{constructor(t,n){super(),this.config=t,this.open=n}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=t.state.phrase(this.open?"Fold line":"Unfold line"),n}}function SCt(e={}){let t={...yCt,...e},n=new g3(t,!0),r=new g3(t,!1),a=yi.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(am)!=o.state.facet(am)||o.startState.field(ag,!1)!=o.state.field(ag,!1)||Aa(o.startState)!=Aa(o.state)||t.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let s=new $f;for(let l of o.viewportLineBlocks){let c=TR(o.state,l.from,l.to)?r:xR(o.state,l.from,l.to)?n:null;c&&s.add(l.from,l.from,c)}return s.finish()}}),{domEventHandlers:i}=t;return[a,QPe({class:"cm-foldGutter",markers(o){var s;return((s=o.plugin(a))===null||s===void 0?void 0:s.markers)||jr.empty},initialSpacer(){return new g3(t,!1)},domEventHandlers:{...i,click:(o,s,l)=>{if(i.click&&i.click(o,s,l))return!0;let c=TR(o.state,s.from,s.to);if(c)return o.dispatch({effects:vx.of(c)}),!0;let u=xR(o.state,s.from,s.to);return u?(o.dispatch({effects:RA.of(u)}),!0):!1}}}),HPe()]}const _Ct=gn.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Hb{constructor(t,n){this.specs=t;let r;function a(s){let l=tm.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const i=typeof n.all=="string"?n.all:n.all?a(n.all):void 0,o=n.scope;this.scope=o instanceof Sc?s=>s.prop(wh)==o.data:o?s=>s==o:void 0,this.style=hRe(t.map(s=>({tag:s.tag,class:s.class||a(Object.assign({},s,{tag:null}))})),{all:i}).style,this.module=r?new tm(r):null,this.themeType=n.themeType}static define(t,n){return new Hb(t,n||{})}}const cB=yn.define(),KPe=yn.define({combine(e){return e.length?[e[0]]:null}});function O3(e){let t=e.facet(cB);return t.length?t:e.facet(KPe)}function FY(e,t){let n=[xCt],r;return e instanceof Hb&&(e.module&&n.push(gn.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(KPe.of(e)):r?n.push(cB.computeN([gn.darkTheme],a=>a.facet(gn.darkTheme)==(r=="dark")?[e]:[])):n.push(cB.of(e)),n}class ECt{constructor(t){this.markCache=Object.create(null),this.tree=Aa(t.state),this.decorations=this.buildDeco(t,O3(t.state)),this.decoratedTo=t.viewport.to}update(t){let n=Aa(t.state),r=O3(t.state),a=r!=O3(t.startState),{viewport:i}=t.view,o=t.changes.mapPos(this.decoratedTo,1);n.length=i.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(n!=this.tree||t.viewportChanged||a)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=i.to)}buildDeco(t,n){if(!n||!this.tree.length)return Hn.none;let r=new $f;for(let{from:a,to:i}of t.visibleRanges)vEt(this.tree,n,(o,s,l)=>{r.add(o,s,this.markCache[l]||(this.markCache[l]=Hn.mark({class:l})))},a,i);return r.finish()}}const xCt=Qf.high(yi.fromClass(ECt,{decorations:e=>e.decorations})),TCt=Hb.define([{tag:H.meta,color:"#404740"},{tag:H.link,textDecoration:"underline"},{tag:H.heading,textDecoration:"underline",fontWeight:"bold"},{tag:H.emphasis,fontStyle:"italic"},{tag:H.strong,fontWeight:"bold"},{tag:H.strikethrough,textDecoration:"line-through"},{tag:H.keyword,color:"#708"},{tag:[H.atom,H.bool,H.url,H.contentSeparator,H.labelName],color:"#219"},{tag:[H.literal,H.inserted],color:"#164"},{tag:[H.string,H.deleted],color:"#a11"},{tag:[H.regexp,H.escape,H.special(H.string)],color:"#e40"},{tag:H.definition(H.variableName),color:"#00f"},{tag:H.local(H.variableName),color:"#30a"},{tag:[H.typeName,H.namespace],color:"#085"},{tag:H.className,color:"#167"},{tag:[H.special(H.variableName),H.macroName],color:"#256"},{tag:H.definition(H.propertyName),color:"#00c"},{tag:H.comment,color:"#940"},{tag:H.invalid,color:"#f00"}]),wCt=gn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),JPe=1e4,eke="()[]{}",tke=yn.define({combine(e){return wu(e,{afterCursor:!0,brackets:eke,maxScanDistance:JPe,renderMatch:RCt})}}),CCt=Hn.mark({class:"cm-matchingBracket"}),$Ct=Hn.mark({class:"cm-nonmatchingBracket"});function RCt(e){let t=[],n=e.matched?CCt:$Ct;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}function zle(e){let t=[],n=e.facet(tke);for(let r of e.selection.ranges){if(!r.empty)continue;let a=id(e,r.head,-1,n)||r.head>0&&id(e,r.head-1,1,n)||n.afterCursor&&(id(e,r.head,1,n)||r.heade.decorations}),kCt=[PCt,wCt];function ACt(e={}){return[tke.of(e),kCt]}const nke=new Cr;function uB(e,t,n){let r=e.prop(t<0?Cr.openedBy:Cr.closedBy);if(r)return r;if(e.name.length==1){let a=n.indexOf(e.name);if(a>-1&&a%2==(t<0?1:0))return[n[a+t]]}return null}function dB(e){let t=e.type.prop(nke);return t?t(e.node):e}function id(e,t,n,r={}){let a=r.maxScanDistance||JPe,i=r.brackets||eke,o=Aa(e),s=o.resolveInner(t,n);for(let l=s;l;l=l.parent){let c=uB(l.type,n,i);if(c&&l.from0?t>=u.from&&tu.from&&t<=u.to))return NCt(e,t,n,l,u,c,i)}}return ICt(e,t,n,o,s.type,a,i)}function NCt(e,t,n,r,a,i,o){let s=r.parent,l={from:a.from,to:a.to},c=0,u=s==null?void 0:s.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(c==0&&i.indexOf(u.type.name)>-1&&u.from0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let f=0;!u.next().done&&f<=i;){let m=u.value;n<0&&(f+=m.length);let h=t+f*n;for(let g=n>0?0:m.length-1,O=n>0?m.length:-1;g!=O;g+=n){let v=o.indexOf(m[g]);if(!(v<0||r.resolveInner(h+g,1).type!=a))if(v%2==0==n>0)d++;else{if(d==1)return{start:c,end:{from:h+g,to:h+g+1},matched:v>>1==l>>1};d--}}n>0&&(f+=m.length)}return u.done?{start:c,matched:!1}:null}const MCt=Object.create(null),Ble=[oo.none],Fle=[],Ule=Object.create(null),DCt=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])DCt[e]=LCt(MCt,t);function b3(e,t){Fle.indexOf(e)>-1||(Fle.push(e),console.warn(t))}function LCt(e,t){let n=[];for(let s of t.split(" ")){let l=[];for(let c of s.split(".")){let u=e[c]||H[c];u?typeof u=="function"?l.length?l=l.map(u):b3(c,`Modifier ${c} used at start of tag`):l.length?b3(c,`Tag ${c} used as modifier`):l=Array.isArray(u)?u:[u]:b3(c,`Unknown highlighting tag ${c}`)}for(let c of l)n.push(c)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),a=r+" "+n.map(s=>s.id),i=Ule[a];if(i)return i.id;let o=Ule[a]=oo.define({id:Ble.length,name:r,props:[Zl({[r]:n})]});return Ble.push(o),o.id}Ba.RTL,Ba.LTR;const QCt=Yl.define({name:"cpp",parser:UEt.configure({props:[Dc.add({IfStatement:Uo({except:/^\s*({|else\b)/}),TryStatement:Uo({except:/^\s*({|catch)\b/}),LabeledStatement:$A,CaseStatement:e=>e.baseIndent+e.unit,BlockComment:()=>null,CompoundStatement:fd({closing:"}"}),Statement:Uo({except:/^{/})}),Kl.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":zf,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function zCt(){return new Cc(QCt)}const BCt=122,jle=1,FCt=123,UCt=124,rke=2,jCt=125,XCt=3,YCt=4,ake=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],VCt=58,qCt=40,ike=95,WCt=91,Y2=45,GCt=46,HCt=35,ZCt=37,KCt=38,JCt=92,e2t=10,t2t=42;function G_(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function UY(e){return e>=48&&e<=57}function Xle(e){return UY(e)||e>=97&&e<=102||e>=65&&e<=70}const oke=(e,t,n)=>(r,a)=>{for(let i=!1,o=0,s=0;;s++){let{next:l}=r;if(G_(l)||l==Y2||l==ike||i&&UY(l))!i&&(l!=Y2||s>0)&&(i=!0),o===s&&l==Y2&&o++,r.advance();else if(l==JCt&&r.peek(1)!=e2t){if(r.advance(),Xle(r.next)){do r.advance();while(Xle(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();i=!0}else{i&&r.acceptToken(o==2&&a.canShift(rke)?t:l==qCt?n:e);break}}},n2t=new La(oke(FCt,rke,UCt)),r2t=new La(oke(jCt,XCt,YCt)),a2t=new La(e=>{if(ake.includes(e.peek(-1))){let{next:t}=e;(G_(t)||t==ike||t==HCt||t==GCt||t==t2t||t==WCt||t==VCt&&G_(e.peek(1))||t==Y2||t==KCt)&&e.acceptToken(BCt)}}),i2t=new La(e=>{if(!ake.includes(e.peek(-1))){let{next:t}=e;if(t==ZCt&&(e.advance(),e.acceptToken(jle)),G_(t)){do e.advance();while(G_(e.next)||UY(e.next));e.acceptToken(jle)}}}),o2t=Zl({"AtKeyword import charset namespace keyframes media supports":H.definitionKeyword,"from to selector":H.keyword,NamespaceName:H.namespace,KeyframeName:H.labelName,KeyframeRangeName:H.operatorKeyword,TagName:H.tagName,ClassName:H.className,PseudoClassName:H.constant(H.className),IdName:H.labelName,"FeatureName PropertyName":H.propertyName,AttributeName:H.attributeName,NumberLiteral:H.number,KeywordQuery:H.keyword,UnaryQueryOp:H.operatorKeyword,"CallTag ValueName":H.atom,VariableName:H.variableName,Callee:H.operatorKeyword,Unit:H.unit,"UniversalSelector NestingSelector":H.definitionOperator,"MatchOp CompareOp":H.compareOperator,"ChildOp SiblingOp, LogicOp":H.logicOperator,BinOp:H.arithmeticOperator,Important:H.modifier,Comment:H.blockComment,ColorLiteral:H.color,"ParenthesizedContent StringLiteral":H.string,":":H.punctuation,"PseudoOp #":H.derefOperator,"; ,":H.separator,"( )":H.paren,"[ ]":H.squareBracket,"{ }":H.brace}),s2t={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},l2t={__proto__:null,or:98,and:98,not:106,only:106,layer:170},c2t={__proto__:null,selector:112,layer:166},u2t={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},d2t={__proto__:null,to:207},f2t=Xl.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]O'tQhO'#EcO(VQdO'#EeO(bQaO'#CfO)VQ`O'#D{O)[Q`O'#F`O)gQdO'#F`QOQ`OOP)qO&jO'#CaPOOO)C@t)C@tOOQP'#Cj'#CjOOQP,59S,59SO#}QdO,59SO)|QdO,59VO%TQdO,5:[O%YQdO,5:^O%_QdO,5:aO%_QdO,5:cO%_QdO,5:dO%_QdO'#ErO*XQ`O,58}O*aQdO'#DzOOQS,58},58}OOQP'#Cn'#CnOOQO'#Dn'#DnOOQP,59V,59VO*hQ`O,59VO*mQ`O,59VOOQP'#Dq'#DqOOQP,5:[,5:[OOQO'#Ds'#DsO*rQpO,5:^O+]QaO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'S;=`%c<%lO%Qj;bY!a`#}YOy%Qz!Q%Q!Q![;Z![!g%Q!g!hO[!a`#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!hyS!^YOy%Qz;'S%Q;'S;=`%c<%lO%Qj?[WvWOy%Qz!O%Q!O!P:r!P!Q%Q!Q![=w![;'S%Q;'S;=`%c<%lO%Qj?yU]YOy%Qz!Q%Q!Q![;Z![;'S%Q;'S;=`%c<%lO%Q~@bTvWOy%Qz{@q{;'S%Q;'S;=`%c<%lO%Q~@xS!a`#t~Oy%Qz;'S%Q;'S;=`%c<%lO%QjAZ[#}YOy%Qz!O%Q!O!P;Z!P!Q%Q!Q![=w![!g%Q!g!hs2t[e]||-1},{term:125,get:e=>l2t[e]||-1},{term:4,get:e=>c2t[e]||-1},{term:25,get:e=>u2t[e]||-1},{term:123,get:e=>d2t[e]||-1}],tokenPrec:1963});let v3=null;function y3(){if(!v3&&typeof document=="object"&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));v3=t.sort().map(r=>({type:"property",label:r,apply:r+": "}))}return v3||[]}const Yle=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),Vle=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),p2t=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),m2t=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),Wd=/^(\w[\w-]*|-\w[\w-]*|)$/,h2t=/^-(-[\w-]*)?$/;function g2t(e,t){var n;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(n=e.parent)===null||n===void 0?void 0:n.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:t.sliceString(r.from,r.to)=="var"}const qle=new bA,O2t=["Declaration"];function b2t(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function ske(e,t,n){if(t.to-t.from>4096){let r=qle.get(t);if(r)return r;let a=[],i=new Set,o=t.cursor(pa.IncludeAnonymous);if(o.firstChild())do for(let s of ske(e,o.node,n))i.has(s.label)||(i.add(s.label),a.push(s));while(o.nextSibling());return qle.set(t,a),a}else{let r=[],a=new Set;return t.cursor().iterate(i=>{var o;if(n(i)&&i.matchContext(O2t)&&((o=i.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let s=e.sliceString(i.from,i.to);a.has(s)||(a.add(s),r.push({label:s,type:"variable"}))}}),r}}const v2t=e=>t=>{let{state:n,pos:r}=t,a=Aa(n).resolveInner(r,-1),i=a.type.isError&&a.from==a.to-1&&n.doc.sliceString(a.from,a.to)=="-";if(a.name=="PropertyName"||(i||a.name=="TagName")&&/^(Block|Styles)$/.test(a.resolve(a.to).name))return{from:a.from,options:y3(),validFor:Wd};if(a.name=="ValueName")return{from:a.from,options:Vle,validFor:Wd};if(a.name=="PseudoClassName")return{from:a.from,options:Yle,validFor:Wd};if(e(a)||(t.explicit||i)&&g2t(a,n.doc))return{from:e(a)||i?a.from:r,options:ske(n.doc,b2t(a),e),validFor:h2t};if(a.name=="TagName"){for(let{parent:l}=a;l;l=l.parent)if(l.name=="Block")return{from:a.from,options:y3(),validFor:Wd};return{from:a.from,options:p2t,validFor:Wd}}if(a.name=="AtKeyword")return{from:a.from,options:m2t,validFor:Wd};if(!t.explicit)return null;let o=a.resolve(r),s=o.childBefore(r);return s&&s.name==":"&&o.name=="PseudoClassSelector"?{from:r,options:Yle,validFor:Wd}:s&&s.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:r,options:Vle,validFor:Wd}:o.name=="Block"||o.name=="Styles"?{from:r,options:y3(),validFor:Wd}:null},y2t=v2t(e=>e.name=="VariableName"),wR=Yl.define({name:"css",parser:f2t.configure({props:[Dc.add({Declaration:Uo()}),Kl.add({"Block KeyframeList":zf})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function lke(){return new Cc(wR,wR.data.of({autocomplete:y2t}))}const S2t=177,_2t=179,E2t=184,x2t=12,T2t=13,w2t=17,C2t=20,$2t=25,R2t=53,P2t=95,k2t=142,A2t=144,N2t=145,I2t=148,M2t=10,D2t=13,L2t=32,Q2t=9,Wle=47,z2t=41,B2t=125,F2t=new La((e,t)=>{for(let n=0,r=e.next;(t.context&&(r<0||r==M2t||r==D2t||r==Wle&&e.peek(n+1)==Wle)||r==z2t||r==B2t)&&e.acceptToken(S2t),!(r!=L2t&&r!=Q2t);)r=e.peek(++n)},{contextual:!0});let U2t=new Set([P2t,E2t,C2t,x2t,w2t,A2t,N2t,k2t,I2t,T2t,R2t,$2t]);const j2t=new mx({start:!1,shift:(e,t)=>t==_2t?e:U2t.has(t)}),X2t=Zl({"func interface struct chan map const type var":H.definitionKeyword,"import package":H.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":H.controlKeyword,range:H.keyword,Bool:H.bool,String:H.string,Rune:H.character,Number:H.number,Nil:H.null,VariableName:H.variableName,DefName:H.definition(H.variableName),TypeName:H.typeName,LabelName:H.labelName,FieldName:H.propertyName,"FunctionDecl/DefName":H.function(H.definition(H.variableName)),"TypeSpec/DefName":H.definition(H.typeName),"CallExpr/VariableName":H.function(H.variableName),LineComment:H.lineComment,BlockComment:H.blockComment,LogicOp:H.logicOperator,ArithOp:H.arithmeticOperator,BitOp:H.bitwiseOperator,"DerefOp .":H.derefOperator,"UpdateOp IncDecOp":H.updateOperator,CompareOp:H.compareOperator,"= :=":H.definitionOperator,"<-":H.operator,'~ "*"':H.modifier,"; ,":H.separator,"... :":H.punctuation,"( )":H.paren,"[ ]":H.squareBracket,"{ }":H.brace}),Y2t={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296,defer:300},V2t=Xl.deserialize({version:14,states:"!=xO#{QQOOP$SOQOOO&UQTO'#CbO&]QRO'#FlO]QQOOOOQP'#Cn'#CnOOQP'#Co'#CoO&eQQO'#C|O(kQQO'#C{O)]QRO'#GiO+tQQO'#D_OOQP'#Ge'#GeO+{QQO'#GeO.aQTO'#GaO.hQQO'#D`OOQP'#Gm'#GmO.mQRO'#GdO/hQQO'#DgOOQP'#Gd'#GdO/uQQO'#DrO2bQQO'#DsO4QQTO'#GqO,^QTO'#GaO4XQQO'#DxO4^QQO'#D{OOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETO4cQQO'#EPO5}QQO'#EPOOQP'#Ga'#GaO6UQQO'#E`O6^QQO'#EcOOQP'#G`'#G`O6cQQO'#EsOOQP'#G_'#G_O&]QRO'#FnOOQO'#Fn'#FnO9QQQO'#G^QOQQOOO&]QROOO9XQQO'#C`O9^QSO'#CdO9lQQO'#C}O9tQQO'#DSO9yQQO'#D[O:kQQO'#CsO:pQQO'#DhO:uQQO'#EeO:}QQO'#EiO;VQQO'#EoO;_QQO'#EuOPQSO7+%hOOQP7+%h7+%hO4cQQO7+%hOOQP1G0Q1G0QO!>^QQO1G0QOOQP1G0U1G0UO!>fQQO1G0UOF|QQO1G0UOOQO,5nAN>nO4cQQOAN>nO!IsQSOAN>nOOQP<nQQO'#FrOOQO,5vAN>vO!LtQQOAN>vP.hQQO'#F|OOQPG25XG25XO!LyQQOG25bO!MOQQO'#FPOOQPG25bG25bO!MZQQOG25bOOQPLD)tLD)tOOQPG24bG24bO!JqQQOLD*|O!9OQQO'#GQO!McQQO,5;kOOQP,5;k,5;kO?tQQO'#FQO!MnQQO'#FQO!MsQQO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wU&P#v$v,h[&X#y&](S([(o*QQ&f$PQ&h$QQ&n$TQ&r$WS'h%W-YS'i%Y-ZW'l%a(|+R+lS'{%x%yQ(Q&OQ(Y&WQ(d&`Q(p&mU)k'e)l*pQ)z'|Q*[(cS*^(i-[Q+P*`R-c-dS#w|!pS$w!j-TQ&T#xQ(R&QQ(W&UR(X&VT%|#u&OhqOScw!U!V#O#k#n&|'Y+gU$Q!R$R&jU$W!T$X&uQ$e!WY%y#u&O'})|*wQ)`']V-S'W)W*kS&[#y&]S*R(S(oR*z*QY&Y#y&](S(o*QR*W(['``OSWYacmnw!O!U!V!W!X!Z!_!h!q!t!z#O#Q#S#T#V#^#_#`#a#b#c#e#h#i#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dS&_#}&dW(S&S*S*|+^Q(e&bQ(o&lR*x*PS%U!t*`R+q+jR%S!qQ#PcQ(}&|Q)Z'YR+n+ghpOScw!U!V#O#k#n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"⚠ LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:j2t,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[X2t],skippedNodes:[0,1,2,153],repeatNodeCount:23,tokenData:":b~RvXY#iYZ#i]^#ipq#iqr#zrs$Xuv&Pvw&^wx&yxy(qyz(vz{({{|)T|})e}!O)j!O!P)u!P!Q+}!Q!R,y!R![-t![!]2^!]!^2k!^!_2p!_!`3]!`!a3e!c!}3x!}#O4j#P#Q4o#Q#R4t#R#S4|#S#T9X#T#o3x#o#p9q#p#q9v#q#r:W#r#s:]$g;'S3x;'S;=`4d<%lO3x~#nS$y~XY#iYZ#i]^#ipq#iU$PP%hQ!_!`$SS$XO!|S~$^W[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y<%lO$X~${O[~~%ORO;'S$X;'S;=`%X;=`O$X~%^X[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y;=`<%l$X<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c#]#^+r#d#e*tQ2TR!Q![1c!c!i1c#T#Z1c~2cP!a~!_!`2f~2kO#W~~2pOV~~2uR!|S}!O3O!^!_3T!_!`$S~3TO!Q~~3YP%m~!_!`&X~3bP#T~!_!`$S~3jQ!|S!_!`$S!`!a3p~3uP%n~!_!`&X~3}V%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~4gP;=`<%l3x~4oO!W~~4tO!V~~4yP%i~!_!`&X~5RV%O~!Q![5h!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~5o^aQ%O~!O!P*`!Q![5h!c!g3x!g!h6k!h!}3x#R#S4|#T#X3x#X#Y6k#Y#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~6pX%O~{|+T}!O+T!Q![7]!c!}3x#R#S8P#T#o3x$g;'S3x;'S;=`4d<%lO3x~7dXaQ%O~!Q![7]!c!}3x#R#S8P#T#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~8UV%O~!Q![7]!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~8rVaQ%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~9[TO#S9X#S#T$v#T;'S9X;'S;=`9k<%lO9X~9nP;=`<%l9X~9vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[F2t,1,2,new K0("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:e=>Y2t[e]||-1}],tokenPrec:5451});class jY{constructor(t,n,r,a){this.state=t,this.pos=n,this.explicit=r,this.view=a,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let n=Aa(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),a=n.text.slice(r-n.from,this.pos-n.from),i=a.search(cke(t,!1));return i<0?null:{from:r+i,to:this.pos,text:a.slice(i)}}get aborted(){return this.abortListeners==null}addEventListener(t,n,r){t=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function Gle(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function q2t(e){let t=Object.create(null),n=Object.create(null);for(let{label:a}of e){t[a[0]]=!0;for(let i=1;itypeof a=="string"?{label:a}:a),[n,r]=t.every(a=>/^\w+$/.test(a.label))?[/\w*$/,/\w+$/]:q2t(t);return a=>{let i=a.matchBefore(r);return i||a.explicit?{from:i?i.from:a.pos,options:t,validFor:n}:null}}function XY(e,t){return n=>{for(let r=Aa(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(e.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return t(n)}}class Hle{constructor(t,n,r,a){this.completion=t,this.source=n,this.match=r,this.score=a}}function Qh(e){return e.selection.main.from}function cke(e,t){var n;let{source:r}=e,a=t&&r[0]!="^",i=r[r.length-1]!="$";return!a&&!i?e:new RegExp(`${a?"^":""}(?:${r})${i?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const YY=Ad.define();function W2t(e,t,n,r){let{main:a}=e.selection,i=n-a.from,o=r-a.from;return{...e.changeByRange(s=>{if(s!=a&&n!=r&&e.sliceDoc(s.from+i,s.from+o)!=e.sliceDoc(n,r))return{range:s};let l=e.toText(t);return{changes:{from:s.from+i,to:r==a.from?s.to:s.from+o,insert:l},range:xt.cursor(s.from+i+l.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const Zle=new WeakMap;function G2t(e){if(!Array.isArray(e))return e;let t=Zle.get(e);return t||Zle.set(e,t=PA(e)),t}const CR=_r.define(),H_=_r.define();class H2t{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n=48&&_<=57||_>=97&&_<=122?2:_>=65&&_<=90?1:0:(w=vY(_))!=w.toLowerCase()?1:w!=w.toUpperCase()?2:0;(!y||T==1&&O||C==0&&T!=0)&&(n[d]==_||r[d]==_&&(f=!0)?o[d++]=y:o.length&&(v=!1)),C=T,y+=ed(_)}return d==l&&o[0]==0&&v?this.result(-100+(f?-200:0),o,t):m==l&&h==0?this.ret(-200-t.length+(g==t.length?0:-100),[0,g]):s>-1?this.ret(-700-t.length,[s,s+this.pattern.length]):m==l?this.ret(-900-t.length,[h,g]):d==l?this.result(-100+(f?-200:0)+-700+(v?0:-1100),o,t):n.length==2?null:this.result((a[0]?-700:0)+-200+-1100,a,t)}result(t,n,r){let a=[],i=0;for(let o of n){let s=o+(this.astral?ed(Ks(r,o)):1);i&&a[i-1]==o?a[i-1]=s:(a[i++]=o,a[i++]=s)}return this.ret(t-r.length,a)}}class Z2t{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:K2t,filterStrict:!1,compareCompletions:(t,n)=>(t.sortText||t.label).localeCompare(n.sortText||n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>r=>Kle(t(r),n(r)),optionClass:(t,n)=>r=>Kle(t(r),n(r)),addToOptions:(t,n)=>t.concat(n),filterStrict:(t,n)=>t||n})}});function Kle(e,t){return e?t?e+" "+t:e:t}function K2t(e,t,n,r,a,i){let o=e.textDirection==Ba.RTL,s=o,l=!1,c="top",u,d,f=t.left-a.left,m=a.right-t.right,h=r.right-r.left,g=r.bottom-r.top;if(s&&f=g||y>t.top?u=n.bottom-t.top:(c="bottom",u=t.bottom-n.top)}let O=(t.bottom-t.top)/i.offsetHeight,v=(t.right-t.left)/i.offsetWidth;return{style:`${c}: ${u/O}px; max-width: ${d/v}px`,class:"cm-completionInfo-"+(l?o?"left-narrow":"right-narrow":s?"left":"right")}}const VY=_r.define();function J2t(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(a=>"cm-completionIcon-"+a)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,a,i){let o=document.createElement("span");o.className="cm-completionLabel";let s=n.displayLabel||n.label,l=0;for(let c=0;cl&&o.appendChild(document.createTextNode(s.slice(l,u)));let f=o.appendChild(document.createElement("span"));f.appendChild(document.createTextNode(s.slice(u,d))),f.className="cm-completionMatchedText",l=d}return ln.position-r.position).map(n=>n.render)}function S3(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let a=Math.floor(t/n);return{from:a*n,to:(a+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class e$t{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let a=t.state.field(n),{options:i,selected:o}=a.open,s=t.state.facet(yo);this.optionContent=J2t(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=S3(i.length,o,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:c}=t.state.field(n).open;for(let u=l.target,d;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(d=/-(\d+)$/.exec(u.id))&&+d[1]this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;u!=null&&(t.dispatch({effects:VY.of(u)}),l.preventDefault())}}),this.dom.addEventListener("focusout",l=>{let c=t.state.field(this.stateField,!1);c&&c.tooltip&&t.state.facet(yo).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:H_.of(null)})}),this.showOptions(i,a.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),a=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=a){let{options:i,selected:o,disabled:s}=r.open;(!a.open||a.open.options!=i)&&(this.range=S3(i.length,o,t.state.facet(yo).maxRenderedOptions),this.showOptions(i,r.id)),this.updateSel(),s!=((n=a.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;(n.selected>-1&&n.selected=this.range.to)&&(this.range=S3(n.options.length,n.selected,this.view.state.facet(yo).maxRenderedOptions),this.showOptions(n.options,t.id));let r=this.updateSelectedOption(n.selected);if(r){this.destroyInfo();let{completion:a}=n.options[n.selected],{info:i}=a;if(!i)return;let o=typeof i=="string"?document.createTextNode(i):i(a);if(!o)return;"then"in o?o.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,a)}).catch(s=>Rs(this.view.state,s,"completion info")):(this.addInfoPane(o,a),r.setAttribute("aria-describedby",this.info.id))}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",r.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:a,destroy:i}=t;r.appendChild(a),this.infoDestroy=i||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,a=this.range.from;r;r=r.nextSibling,a++)r.nodeName!="LI"||!r.id?a--:a==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&(r.removeAttribute("aria-selected"),r.removeAttribute("aria-describedby"));return n&&n$t(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),a=t.getBoundingClientRect(),i=this.space;if(!i){let o=this.dom.ownerDocument.documentElement;i={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight}}return a.top>Math.min(i.bottom,n.bottom)-10||a.bottom{o.target==a&&o.preventDefault()});let i=null;for(let o=r.from;or.from||r.from==0))if(i=f,typeof c!="string"&&c.header)a.appendChild(c.header(c));else{let m=a.appendChild(document.createElement("completion-section"));m.textContent=f}}const u=a.appendChild(document.createElement("li"));u.id=n+"-"+o,u.setAttribute("role","option");let d=this.optionClass(s);d&&(u.className=d);for(let f of this.optionContent){let m=f(s,this.view.state,this.view,l);m&&u.appendChild(m)}}return r.from&&a.classList.add("cm-completionListIncompleteTop"),r.tonew e$t(n,e,t)}function n$t(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/a)}function Jle(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function r$t(e,t){let n=[],r=null,a=null,i=u=>{n.push(u);let{section:d}=u.completion;if(d){r||(r=[]);let f=typeof d=="string"?d:d.name;r.some(m=>m.name==f)||r.push(typeof d=="string"?{name:f}:d)}},o=t.facet(yo);for(let u of e)if(u.hasResult()){let d=u.result.getMatch;if(u.result.filter===!1)for(let f of u.result.options)i(new Hle(f,u.source,d?d(f):[],1e9-n.length));else{let f=t.sliceDoc(u.from,u.to),m,h=o.filterStrict?new Z2t(f):new H2t(f);for(let g of u.result.options)if(m=h.match(g.label)){let O=g.displayLabel?d?d(g,m.matched):[]:m.matched,v=m.score+(g.boost||0);if(i(new Hle(g,u.source,O,v)),typeof g.section=="object"&&g.section.rank==="dynamic"){let{name:y}=g.section;a||(a=Object.create(null)),a[y]=Math.max(v,a[y]||-1e9)}}}}if(r){let u=Object.create(null),d=0,f=(m,h)=>(m.rank==="dynamic"&&h.rank==="dynamic"?a[h.name]-a[m.name]:0)||(typeof m.rank=="number"?m.rank:1e9)-(typeof h.rank=="number"?h.rank:1e9)||(m.namef.score-d.score||c(d.completion,f.completion))){let d=u.completion;!l||l.label!=d.label||l.detail!=d.detail||l.type!=null&&d.type!=null&&l.type!=d.type||l.apply!=d.apply||l.boost!=d.boost?s.push(u):Jle(u.completion)>Jle(l)&&(s[s.length-1]=u),l=u.completion}return s}class o0{constructor(t,n,r,a,i,o){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=a,this.selected=i,this.disabled=o}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new o0(this.options,ece(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,a,i,o){if(a&&!o&&t.some(c=>c.isPending))return a.setDisabled();let s=r$t(t,n);if(!s.length)return a&&t.some(c=>c.isPending)?a.setDisabled():null;let l=n.facet(yo).selectOnOpen?0:-1;if(a&&a.selected!=l&&a.selected!=-1){let c=a.options[a.selected].completion;for(let u=0;uu.hasResult()?Math.min(c,u.from):c,1e8),create:c$t,above:i.aboveCursor},a?a.timestamp:Date.now(),l,!1)}map(t){return new o0(this.options,this.attrs,{...this.tooltip,pos:t.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new o0(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class $R{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new $R(s$t,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(yo),i=(r.override||n.languageDataAt("autocomplete",Qh(n)).map(G2t)).map(l=>(this.active.find(u=>u.source==l)||new _c(l,this.active.some(u=>u.state!=0)?1:0)).update(t,r));i.length==this.active.length&&i.every((l,c)=>l==this.active[c])&&(i=this.active);let o=this.open,s=t.effects.some(l=>l.is(qY));o&&t.docChanged&&(o=o.map(t.changes)),t.selection||i.some(l=>l.hasResult()&&t.changes.touchesRange(l.from,l.to))||!a$t(i,this.active)||s?o=o0.build(i,n,this.id,o,r,s):o&&o.disabled&&!i.some(l=>l.isPending)&&(o=null),!o&&i.every(l=>!l.isPending)&&i.some(l=>l.hasResult())&&(i=i.map(l=>l.hasResult()?new _c(l.source,0):l));for(let l of t.effects)l.is(VY)&&(o=o&&o.setSelected(l.value,this.id));return i==this.active&&o==this.open?this:new $R(i,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?i$t:o$t}}function a$t(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const s$t=[];function uke(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(YY);if(r&&t.activateOnCompletion(r))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class _c{constructor(t,n,r=!1){this.source=t,this.state=n,this.explicit=r}hasResult(){return!1}get isPending(){return this.state==1}update(t,n){let r=uke(t,n),a=this;(r&8||r&16&&this.touches(t))&&(a=new _c(a.source,0)),r&4&&a.state==0&&(a=new _c(this.source,1)),a=a.updateFor(t,r);for(let i of t.effects)if(i.is(CR))a=new _c(a.source,1,i.value);else if(i.is(H_))a=new _c(a.source,0);else if(i.is(qY))for(let o of i.value)o.source==a.source&&(a=o);return a}updateFor(t,n){return this.map(t.changes)}map(t){return this}touches(t){return t.changes.touchesRange(Qh(t.state))}}class T0 extends _c{constructor(t,n,r,a,i,o){super(t,3,n),this.limit=r,this.result=a,this.from=i,this.to=o}hasResult(){return!0}updateFor(t,n){var r;if(!(n&3))return this.map(t.changes);let a=this.result;a.map&&!t.changes.empty&&(a=a.map(a,t.changes));let i=t.changes.mapPos(this.from),o=t.changes.mapPos(this.to,1),s=Qh(t.state);if(s>o||!a||n&2&&(Qh(t.startState)==this.from||sn.map(t))}}),Js=uo.define({create(){return $R.start()},update(e,t){return e.update(t)},provide:e=>[TA.from(e,t=>t.tooltip),gn.contentAttributes.from(e,t=>t.attrs)]});function WY(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Js).active.find(a=>a.source==t.source);return r instanceof T0?(typeof n=="string"?e.dispatch({...W2t(e.state,n,r.from,r.to),annotations:YY.of(t.completion)}):n(e,t.completion,r.from,r.to),!0):!1}const c$t=t$t(Js,WY);function Gw(e,t="option"){return n=>{let r=n.state.field(Js,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+a*(e?1:-1):e?0:o-1;return s<0?s=t=="page"?0:o-1:s>=o&&(s=t=="page"?o-1:0),n.dispatch({effects:VY.of(s)}),!0}}const u$t=e=>{let t=e.state.field(Js,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(Js,!1)?(e.dispatch({effects:CR.of(!0)}),!0):!1,d$t=e=>{let t=e.state.field(Js,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:H_.of(null)}),!0)};class f$t{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const p$t=50,m$t=1e3,h$t=yi.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(Js).active)t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(Js),n=e.state.facet(yo);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Js)==t)return;let r=e.transactions.some(i=>{let o=uke(i,n);return o&8||(i.selection||i.docChanged)&&!(o&3)});for(let i=0;ip$t&&Date.now()-o.time>m$t){for(let s of o.context.abortListeners)try{s()}catch(l){Rs(this.view.state,l)}o.context.abortListeners=null,this.running.splice(i--,1)}else o.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(i=>i.effects.some(o=>o.is(CR)))&&(this.pendingStart=!0);let a=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(i=>i.isPending&&!this.running.some(o=>o.active.source==i.source))?setTimeout(()=>this.startUpdate(),a):-1,this.composing!=0)for(let i of e.transactions)i.isUserEvent("input.type")?this.composing=2:this.composing==2&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(Js);for(let n of t.active)n.isPending&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(yo).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=Qh(t),r=new jY(t,n,e.explicit,this.view),a=new f$t(e,r);this.running.push(a),Promise.resolve(e.source(r)).then(i=>{a.context.aborted||(a.done=i||null,this.scheduleAccept())},i=>{this.view.dispatch({effects:H_.of(null)}),Rs(this.view.state,i)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(yo).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(yo),r=this.view.state.field(Js);for(let a=0;as.source==i.active.source);if(o&&o.isPending)if(i.done==null){let s=new _c(i.active.source,0);for(let l of i.updates)s=s.update(l,n);s.isPending||t.push(s)}else this.startQuery(o)}(t.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:qY.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Js,!1);if(t&&t.tooltip&&this.view.state.facet(yo).closeOnBlur){let n=t.open&&IPe(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:H_.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:CR.of(!1)}),20),this.composing=0}}}),g$t=typeof navigator=="object"&&/Win/.test(navigator.platform),O$t=Qf.highest(gn.domEventHandlers({keydown(e,t){let n=t.state.field(Js,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(g$t&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],a=n.active.find(o=>o.source==r.source),i=r.completion.commitCharacters||a.result.commitCharacters;return i&&i.indexOf(e.key)>-1&&WY(t,r),!1}})),dke=gn.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class b$t{constructor(t,n,r,a){this.field=t,this.line=n,this.from=r,this.to=a}}class GY{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Bo.TrackDel),r=t.mapPos(this.to,1,Bo.TrackDel);return n==null||r==null?null:new GY(this.field,n,r)}}class HY{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],a=[n],i=t.doc.lineAt(n),o=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(r.length){let c=o,u=/^\t*/.exec(l)[0].length;for(let d=0;dnew GY(l.field,a[l.line]+l.from,a[l.line]+l.to));return{text:r,ranges:s}}static parse(t){let n=[],r=[],a=[],i;for(let o of t.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let s=i[1]?+i[1]:null,l=i[2]||i[3]||"",c=-1,u=l.replace(/\\[{}]/g,d=>d[1]);for(let d=0;d=c&&f.field++}for(let d of a)if(d.line==r.length&&d.from>i.index){let f=i[2]?3+(i[1]||"").length:2;d.from-=f,d.to-=f}a.push(new b$t(c,r.length,i.index,i.index+u.length)),o=o.slice(0,i.index)+l+o.slice(i.index+i[0].length)}o=o.replace(/\\([{}])/g,(s,l,c)=>{for(let u of a)u.line==r.length&&u.from>c&&(u.from--,u.to--);return l}),r.push(o)}return new HY(r,a)}}let v$t=Hn.widget({widget:new class extends Cu{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),y$t=Hn.mark({class:"cm-snippetField"});class Zb{constructor(t,n){this.ranges=t,this.active=n,this.deco=Hn.set(t.map(r=>(r.from==r.to?v$t:y$t).range(r.from,r.to)),!0)}map(t){let n=[];for(let r of this.ranges){let a=r.map(t);if(!a)return null;n.push(a)}return new Zb(n,this.active)}selectionInsideField(t){return t.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const yx=_r.define({map(e,t){return e&&e.map(t)}}),S$t=_r.define(),Z_=uo.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(yx))return n.value;if(n.is(S$t)&&e)return new Zb(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>gn.decorations.from(e,t=>t?t.deco:Hn.none)});function ZY(e,t){return xt.create(e.filter(n=>n.field==t).map(n=>xt.range(n.from,n.to)))}function _$t(e){let t=HY.parse(e);return(n,r,a,i)=>{let{text:o,ranges:s}=t.instantiate(n.state,a),{main:l}=n.state.selection,c={changes:{from:a,to:i==l.from?l.to:i,insert:ma.of(o)},scrollIntoView:!0,annotations:r?[YY.of(r),Ui.userEvent.of("input.complete")]:void 0};if(s.length&&(c.selection=ZY(s,0)),s.some(u=>u.field>0)){let u=new Zb(s,0),d=c.effects=[yx.of(u)];n.state.field(Z_,!1)===void 0&&d.push(_r.appendConfig.of([Z_,C$t,$$t,dke]))}n.dispatch(n.state.update(c))}}function fke(e){return({state:t,dispatch:n})=>{let r=t.field(Z_,!1);if(!r||e<0&&r.active==0)return!1;let a=r.active+e,i=e>0&&!r.ranges.some(o=>o.field==a+e);return n(t.update({selection:ZY(r.ranges,a),effects:yx.of(i?null:new Zb(r.ranges,a)),scrollIntoView:!0})),!0}}const E$t=({state:e,dispatch:t})=>e.field(Z_,!1)?(t(e.update({effects:yx.of(null)})),!0):!1,x$t=fke(1),T$t=fke(-1),w$t=[{key:"Tab",run:x$t,shift:T$t},{key:"Escape",run:E$t}],tce=yn.define({combine(e){return e.length?e[0]:w$t}}),C$t=Qf.highest(Wb.compute([tce],e=>e.facet(tce)));function Vr(e,t){return{...t,apply:_$t(e)}}const $$t=gn.domEventHandlers({mousedown(e,t){let n=t.state.field(Z_,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let a=n.ranges.find(i=>i.from<=r&&i.to>=r);return!a||a.field==n.active?!1:(t.dispatch({selection:ZY(n.ranges,a.field),effects:yx.of(n.ranges.some(i=>i.field>a.field)?new Zb(n.ranges,a.field):null),scrollIntoView:!0}),!0)}}),K_={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Ch=_r.define({map(e,t){let n=t.mapPos(e,-1,Bo.TrackAfter);return n??void 0}}),KY=new class extends em{};KY.startSide=1;KY.endSide=-1;const pke=uo.define({create(){return jr.empty},update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of t.effects)n.is(Ch)&&(e=e.update({add:[KY.range(n.value,n.value+1)]}));return e}});function R$t(){return[k$t,pke]}const E3="()[]{}<>«»»«[]{}";function mke(e){for(let t=0;t{if((P$t?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let a=e.state.selection.main;if(r.length>2||r.length==2&&ed(Ks(r,0))==1||t!=a.from||n!=a.to)return!1;let i=I$t(e.state,r);return i?(e.dispatch(i),!0):!1}),A$t=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=hke(e,e.selection.main.head).brackets||K_.brackets,a=null,i=e.changeByRange(o=>{if(o.empty){let s=M$t(e.doc,o.head);for(let l of r)if(l==s&&kA(e.doc,o.head)==mke(Ks(l,0)))return{changes:{from:o.head-l.length,to:o.head+l.length},range:xt.cursor(o.head-l.length)}}return{range:a=o}});return a||t(e.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!a},N$t=[{key:"Backspace",run:A$t}];function I$t(e,t){let n=hke(e,e.selection.main.head),r=n.brackets||K_.brackets;for(let a of r){let i=mke(Ks(a,0));if(t==a)return i==a?Q$t(e,a,r.indexOf(a+a+a)>-1,n):D$t(e,a,i,n.before||K_.before);if(t==i&&gke(e,e.selection.main.from))return L$t(e,a,i)}return null}function gke(e,t){let n=!1;return e.field(pke).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function kA(e,t){let n=e.sliceString(t,t+2);return n.slice(0,ed(Ks(n,0)))}function M$t(e,t){let n=e.sliceString(t-2,t);return ed(Ks(n,0))==n.length?n:n.slice(1)}function D$t(e,t,n,r){let a=null,i=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:Ch.of(o.to+t.length),range:xt.range(o.anchor+t.length,o.head+t.length)};let s=kA(e.doc,o.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:o.head},effects:Ch.of(o.head+t.length),range:xt.cursor(o.head+t.length)}:{range:a=o}});return a?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function L$t(e,t,n){let r=null,a=e.changeByRange(i=>i.empty&&kA(e.doc,i.head)==n?{changes:{from:i.head,to:i.head+n.length,insert:n},range:xt.cursor(i.head+n.length)}:r={range:i});return r?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function Q$t(e,t,n,r){let a=r.stringPrefixes||K_.stringPrefixes,i=null,o=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:Ch.of(s.to+t.length),range:xt.range(s.anchor+t.length,s.head+t.length)};let l=s.head,c=kA(e.doc,l),u;if(c==t){if(nce(e,l))return{changes:{insert:t+t,from:l},effects:Ch.of(l+t.length),range:xt.cursor(l+t.length)};if(gke(e,l)){let f=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+f.length,insert:f},range:xt.cursor(l+f.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(u=rce(e,l-2*t.length,a))>-1&&nce(e,u))return{changes:{insert:t+t+t+t,from:l},effects:Ch.of(l+t.length),range:xt.cursor(l+t.length)};if(e.charCategorizer(l)(c)!=li.Word&&rce(e,l,a)>-1&&!z$t(e,l,t,a))return{changes:{insert:t+t,from:l},effects:Ch.of(l+t.length),range:xt.cursor(l+t.length)}}return{range:i=s}});return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function nce(e,t){let n=Aa(e).resolveInner(t+1);return n.parent&&n.from==t}function z$t(e,t,n,r){let a=Aa(e).resolveInner(t,-1),i=r.reduce((o,s)=>Math.max(o,s.length),0);for(let o=0;o<5;o++){let s=e.sliceDoc(a.from,Math.min(a.to,a.from+n.length+i)),l=s.indexOf(n);if(!l||l>-1&&r.indexOf(s.slice(0,l))>-1){let u=a.firstChild;for(;u&&u.from==a.from&&u.to-u.from>n.length+l;){if(e.sliceDoc(u.to-n.length,u.to)==n)return!1;u=u.firstChild}return!0}let c=a.to==t&&a.parent;if(!c)break;a=c}return!1}function rce(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=li.Word)return t;for(let a of n){let i=t-a.length;if(e.sliceDoc(i,t)==a&&r(e.sliceDoc(i-1,i))!=li.Word)return i}return-1}function B$t(e={}){return[O$t,Js,yo.of(e),h$t,F$t,dke]}const Oke=[{key:"Ctrl-Space",run:_3},{mac:"Alt-`",run:_3},{mac:"Alt-i",run:_3},{key:"Escape",run:d$t},{key:"ArrowDown",run:Gw(!0)},{key:"ArrowUp",run:Gw(!1)},{key:"PageDown",run:Gw(!0,"page")},{key:"PageUp",run:Gw(!1,"page")},{key:"Enter",run:u$t}],F$t=Qf.highest(Wb.computeN([yo],e=>e.facet(yo).defaultKeymap?[Oke]:[])),U$t=[Vr("func ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"declaration",type:"keyword"}),Vr("func (${receiver}) ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),Vr("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),Vr("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),Vr("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),Vr("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),Vr("for ${init}; ${test}; ${update} {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Vr("for ${i} := range ${value} {\n ${}\n}",{label:"for",detail:"range",type:"keyword"}),Vr(`select { \${} -}`,{label:"select",detail:"statement",type:"keyword"}),Yr("case ${}:\n${}",{label:"case",type:"keyword"}),Yr("switch ${} {\n ${}\n}",{label:"switch",detail:"statement",type:"keyword"}),Yr("switch ${}.(${type}) {\n ${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),Yr("if ${} {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Yr(`if \${} { +}`,{label:"select",detail:"statement",type:"keyword"}),Vr("case ${}:\n${}",{label:"case",type:"keyword"}),Vr("switch ${} {\n ${}\n}",{label:"switch",detail:"statement",type:"keyword"}),Vr("switch ${}.(${type}) {\n ${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),Vr("if ${} {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Vr(`if \${} { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),Yr('import ${name} "${module}"\n${}',{label:"import",detail:"declaration",type:"keyword"})],Ile=new oA,YPe=new Set(["SourceFile","Block","FunctionDecl","MethodDecl","FunctionLiteral","ForStatement","SwitchStatement","TypeSwitchStatement","IfStatement"]);function OO(e,t){return(n,r)=>{e:for(let a=n.node.firstChild,i=0,o=null;;){for(;!a;){if(!i)break e;i--,a=o.nextSibling,o=o.parent}t&&a.name==t||a.name=="SpecList"?(i++,o=a,a=a.firstChild):(a.name=="DefName"&&r(a,e),a=a.nextSibling)}return!0}}const p$t={FunctionDecl:OO("function"),VarDecl:OO("var","VarSpec"),ConstDecl:OO("constant","ConstSpec"),TypeDecl:OO("type","TypeSpec"),ImportDecl:OO("constant","ImportSpec"),Parameter:OO("var"),__proto__:null};function VPe(e,t){let n=Ile.get(t);if(n)return n;let r=[],a=!0;function i(o,s){let l=e.sliceString(o.from,o.to);r.push({label:l,type:s})}return t.cursor(fa.IncludeAnonymous).iterate(o=>{if(a)a=!1;else if(o.name){let s=p$t[o.name];if(s&&s(o,i)||YPe.has(o.name))return!1}else if(o.to-o.from>8192){for(let s of VPe(e,o.node))r.push(s);return!1}}),Ile.set(t,r),r}const Mle=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,qPe=["String","LineComment","BlockComment","DefName","LabelName","FieldName",".","?."],m$t=e=>{let t=ka(e.state).resolveInner(e.pos,-1);if(qPe.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&Mle.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let a=t;a;a=a.parent)YPe.has(a.name)&&(r=r.concat(VPe(e.state.doc,a)));return{options:r,from:n?t.from:e.pos,validFor:Mle}},f3=Yl.define({name:"go",parser:g2t.configure({props:[Ic.add({IfStatement:jo({except:/^\s*({|else\b)/}),LabeledStatement:gA,"SwitchBlock SelectBlock":e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n||r?0:e.unit)},Block:od({closing:"}"}),BlockComment:()=>null,Statement:jo({except:/^{/})}),Kl.add({"Block SwitchBlock SelectBlock LiteralValue InterfaceType StructType SpecList":Nf,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case\b|default\b|\})$/}});let h$t=e=>({label:e,type:"keyword"});const g$t="interface struct chan map package go return break continue goto fallthrough else defer range true false nil".split(" ").map(h$t);function O$t(){let e=f$t.concat(g$t);return new Cc(f3,[f3.data.of({autocomplete:yY(qPe,bA(e))}),f3.data.of({autocomplete:m$t})])}const b$t=55,v$t=1,y$t=56,S$t=2,_$t=57,E$t=3,Dle=4,x$t=5,RY=6,WPe=7,GPe=8,HPe=9,ZPe=10,T$t=11,w$t=12,C$t=13,p3=58,$$t=14,R$t=15,Lle=59,KPe=21,P$t=23,JPe=24,k$t=25,Vz=27,eke=28,A$t=29,N$t=32,I$t=35,M$t=37,D$t=38,L$t=0,Q$t=1,z$t={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},B$t={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Qle={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function F$t(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}let zle=null,Ble=null,Fle=0;function qz(e,t){let n=e.pos+t;if(Fle==n&&Ble==e)return zle;let r=e.peek(t),a="";for(;F$t(r);)a+=String.fromCharCode(r),r=e.peek(++t);return Ble=e,Fle=n,zle=a?a.toLowerCase():r==U$t||r==j$t?void 0:null}const tke=60,bR=62,PY=47,U$t=63,j$t=33,X$t=45;function Ule(e,t){this.name=e,this.parent=t}const Y$t=[RY,ZPe,WPe,GPe,HPe],V$t=new lx({start:null,shift(e,t,n,r){return Y$t.indexOf(t)>-1?new Ule(qz(r,1)||"",e):e},reduce(e,t){return t==KPe&&e?e.parent:e},reuse(e,t,n,r){let a=t.type.id;return a==RY||a==M$t?new Ule(qz(r,1)||"",e):e},strict:!1}),q$t=new Da((e,t)=>{if(e.next!=tke){e.next<0&&t.context&&e.acceptToken(p3);return}e.advance();let n=e.next==PY;n&&e.advance();let r=qz(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?R$t:$$t);let a=t.context?t.context.name:null;if(n){if(r==a)return e.acceptToken(T$t);if(a&&B$t[a])return e.acceptToken(p3,-2);if(t.dialectEnabled(L$t))return e.acceptToken(w$t);for(let i=t.context;i;i=i.parent)if(i.name==r)return;e.acceptToken(C$t)}else{if(r=="script")return e.acceptToken(WPe);if(r=="style")return e.acceptToken(GPe);if(r=="textarea")return e.acceptToken(HPe);if(z$t.hasOwnProperty(r))return e.acceptToken(ZPe);a&&Qle[a]&&Qle[a][r]?e.acceptToken(p3,-1):e.acceptToken(RY)}},{contextual:!0}),W$t=new Da(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(Lle);break}if(e.next==X$t)t++;else if(e.next==bR&&t>=2){n>=3&&e.acceptToken(Lle,-2);break}else t=0;e.advance()}});function G$t(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const H$t=new Da((e,t)=>{if(e.next==PY&&e.peek(1)==bR){let n=t.dialectEnabled(Q$t)||G$t(t.context);e.acceptToken(n?x$t:Dle,2)}else e.next==bR&&e.acceptToken(Dle,1)});function kY(e,t,n){let r=2+e.length;return new Da(a=>{for(let i=0,o=0,s=0;;s++){if(a.next<0){s&&a.acceptToken(t);break}if(i==0&&a.next==tke||i==1&&a.next==PY||i>=2&&io?a.acceptToken(t,-o):a.acceptToken(n,-(o-2));break}else if((a.next==10||a.next==13)&&s){a.acceptToken(t,1);break}else i=o=0;a.advance()}})}const Z$t=kY("script",b$t,v$t),K$t=kY("style",y$t,S$t),J$t=kY("textarea",_$t,E$t),eRt=Zl({"Text RawText IncompleteTag IncompleteCloseTag":G.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":G.angleBracket,TagName:G.tagName,"MismatchedCloseTag/TagName":[G.tagName,G.invalid],AttributeName:G.attributeName,"AttributeValue UnquotedAttributeValue":G.attributeValue,Is:G.definitionOperator,"EntityReference CharacterReference":G.character,Comment:G.blockComment,ProcessingInst:G.processingInstruction,DoctypeDecl:G.documentMeta}),tRt=Xl.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'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c^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:V$t,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[eRt],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<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=u.firstChild,f=d&&jle(d,l),m;if(f){for(let h of i)if(h.tag==f&&(!h.attrs||h.attrs(m||(m=nke(d,l))))){let g=u.lastChild,O=g.type.id==D$t?g.from:u.to;if(O>d.to)return{parser:h.parser,overlay:[{from:d.to,to:O}]}}}}if(o&&c==JPe){let u=s.node,d;if(d=u.firstChild){let f=o[l.read(d.from,d.to)];if(f)for(let m of f){if(m.tagName&&m.tagName!=jle(u.parent,l))continue;let h=u.lastChild;if(h.type.id==Vz){let g=h.from+1,O=h.lastChild,v=h.to-(O&&O.isError?0:1);if(v>g)return{parser:m.parser,overlay:[{from:g,to:v}],bracketed:!0}}else if(h.type.id==eke)return{parser:m.parser,overlay:[{from:h.from,to:h.to}]}}}}return null})}const nRt=316,rRt=317,Xle=1,aRt=2,iRt=3,oRt=4,sRt=318,lRt=320,cRt=321,uRt=5,dRt=6,fRt=0,Wz=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],ake=125,pRt=59,Gz=47,mRt=42,hRt=43,gRt=45,ORt=60,bRt=44,vRt=63,yRt=46,SRt=91,_Rt=new lx({start:!1,shift(e,t){return t==uRt||t==dRt||t==lRt?e:t==cRt},strict:!1}),ERt=new Da((e,t)=>{let{next:n}=e;(n==ake||n==-1||t.context)&&e.acceptToken(sRt)},{contextual:!0,fallback:!0}),xRt=new Da((e,t)=>{let{next:n}=e,r;Wz.indexOf(n)>-1||n==Gz&&((r=e.peek(1))==Gz||r==mRt)||n!=ake&&n!=pRt&&n!=-1&&!t.context&&e.acceptToken(nRt)},{contextual:!0}),TRt=new Da((e,t)=>{e.next==SRt&&!t.context&&e.acceptToken(rRt)},{contextual:!0}),wRt=new Da((e,t)=>{let{next:n}=e;if(n==hRt||n==gRt){if(e.advance(),n==e.next){e.advance();let r=!t.context&&t.canShift(Xle);e.acceptToken(r?Xle:aRt)}}else n==vRt&&e.peek(1)==yRt&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(iRt))},{contextual:!0});function h3(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const CRt=new Da((e,t)=>{if(e.next!=ORt||!t.dialectEnabled(fRt)||(e.advance(),e.next==Gz))return;let n=0;for(;Wz.indexOf(e.next)>-1;)e.advance(),n++;if(h3(e.next,!0)){for(e.advance(),n++;h3(e.next,!1);)e.advance(),n++;for(;Wz.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==bRt)return;for(let r=0;;r++){if(r==7){if(!h3(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(oRt,-n)}),$Rt=Zl({"get set async static":G.modifier,"for while do if else switch try catch finally return throw break continue default case defer":G.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":G.operatorKeyword,"let var const using function class extends":G.definitionKeyword,"import export from":G.moduleKeyword,"with debugger new":G.keyword,TemplateString:G.special(G.string),super:G.atom,BooleanLiteral:G.bool,this:G.self,null:G.null,Star:G.modifier,VariableName:G.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":G.function(G.variableName),VariableDefinition:G.definition(G.variableName),Label:G.labelName,PropertyName:G.propertyName,PrivatePropertyName:G.special(G.propertyName),"CallExpression/MemberExpression/PropertyName":G.function(G.propertyName),"FunctionDeclaration/VariableDefinition":G.function(G.definition(G.variableName)),"ClassDeclaration/VariableDefinition":G.definition(G.className),"NewExpression/VariableName":G.className,PropertyDefinition:G.definition(G.propertyName),PrivatePropertyDefinition:G.definition(G.special(G.propertyName)),UpdateOp:G.updateOperator,"LineComment Hashbang":G.lineComment,BlockComment:G.blockComment,Number:G.number,String:G.string,Escape:G.escape,ArithOp:G.arithmeticOperator,LogicOp:G.logicOperator,BitOp:G.bitwiseOperator,CompareOp:G.compareOperator,RegExp:G.regexp,Equals:G.definitionOperator,Arrow:G.function(G.punctuation),": Spread":G.punctuation,"( )":G.paren,"[ ]":G.squareBracket,"{ }":G.brace,"InterpolationStart InterpolationEnd":G.special(G.brace),".":G.derefOperator,", ;":G.separator,"@":G.meta,TypeName:G.typeName,TypeDefinition:G.definition(G.typeName),"type enum interface implements namespace module declare":G.definitionKeyword,"abstract global Privacy readonly override":G.modifier,"is keyof unique infer asserts":G.operatorKeyword,JSXAttributeValue:G.attributeValue,JSXText:G.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":G.angleBracket,"JSXIdentifier JSXNameSpacedName":G.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":G.attributeName,"JSXBuiltin/JSXIdentifier":G.standard(G.tagName)}),RRt={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},PRt={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},kRt={__proto__:null,"<":193},ARt=Xl.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO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[Q5{1oR8m5{Q1{,fS6]1{8zR8z6_Q1U+rW5h1U5j8a:VQ5j1XQ8a5iR:V8bQ+w&QR1[+wQ2_,xR6m2_YrOXst#dQ&v!ZQ+a%mQ,r&rQ,t&tQ,u&uQ,w&wQ2Y,sS2],x2_R6l2[Q%opQ&z!_Q&}!aQ'P!bQ'R!cQ'q!uQ+`%lQ+l%zQ,Q&XQ,h&mQ-P&|W-p'k's't'wQ-w'oQ0X*nQ1P+mQ1c,PS2O,i,lQ2g-OQ2h-RQ2i-SQ2}-oW3P-r-s-v-xQ5a1QQ5m1_Q5q1eQ6V1uQ6a2QQ6k2ZU6z3O3R3UQ6}3SQ8]5bQ8e5oQ8g5rQ8l5zQ8u6WQ8{6`S9[6{7PQ9^7OQ:W8cQ:b8vQ:g8|Q:n9]Q;U:XQ;]:cQ;a:oQ;l;VR;o;^Q%zyQ'd!iQ'o!uU+m%{%|%}Q-W'VU-k'e'f'gS-o'k'uQ0Q*jS1Q+n+oQ2o-YS2{-l-mQ3S-tS4p0R0UQ5b1RQ6v2uQ6y2|Q7O3TU7{4r4s4vQ9z7}R;O9{S$wi>PR*{%VU%Ui%V>PR0f*yQ$viS(u#v+iS)c$b$cQ)e$dQ*[$xS*e${*YQ*t%OQ*u%QQ+Q%^Q+R%_Q+V%cQ.lPQ=}>XQ>O>YQ>Z>]R>[>^Q+O%]Q.nSR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:_Rt,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[$Rt],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Z!bOY&}YZ&cZw&}w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:e=>PRt[e]||-1},{term:95,get:e=>kRt[e]||-1}],tokenPrec:15201}),ike=[Yr("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Yr("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Yr("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Yr("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Yr("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Yr(`try { +}`,{label:"if",detail:"/ else block",type:"keyword"}),Vr('import ${name} "${module}"\n${}',{label:"import",detail:"declaration",type:"keyword"})],ace=new bA,bke=new Set(["SourceFile","Block","FunctionDecl","MethodDecl","FunctionLiteral","ForStatement","SwitchStatement","TypeSwitchStatement","IfStatement"]);function TO(e,t){return(n,r)=>{e:for(let a=n.node.firstChild,i=0,o=null;;){for(;!a;){if(!i)break e;i--,a=o.nextSibling,o=o.parent}t&&a.name==t||a.name=="SpecList"?(i++,o=a,a=a.firstChild):(a.name=="DefName"&&r(a,e),a=a.nextSibling)}return!0}}const j$t={FunctionDecl:TO("function"),VarDecl:TO("var","VarSpec"),ConstDecl:TO("constant","ConstSpec"),TypeDecl:TO("type","TypeSpec"),ImportDecl:TO("constant","ImportSpec"),Parameter:TO("var"),__proto__:null};function vke(e,t){let n=ace.get(t);if(n)return n;let r=[],a=!0;function i(o,s){let l=e.sliceString(o.from,o.to);r.push({label:l,type:s})}return t.cursor(pa.IncludeAnonymous).iterate(o=>{if(a)a=!1;else if(o.name){let s=j$t[o.name];if(s&&s(o,i)||bke.has(o.name))return!1}else if(o.to-o.from>8192){for(let s of vke(e,o.node))r.push(s);return!1}}),ace.set(t,r),r}const ice=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,yke=["String","LineComment","BlockComment","DefName","LabelName","FieldName",".","?."],X$t=e=>{let t=Aa(e.state).resolveInner(e.pos,-1);if(yke.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&ice.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let a=t;a;a=a.parent)bke.has(a.name)&&(r=r.concat(vke(e.state.doc,a)));return{options:r,from:n?t.from:e.pos,validFor:ice}},x3=Yl.define({name:"go",parser:V2t.configure({props:[Dc.add({IfStatement:Uo({except:/^\s*({|else\b)/}),LabeledStatement:$A,"SwitchBlock SelectBlock":e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n||r?0:e.unit)},Block:fd({closing:"}"}),BlockComment:()=>null,Statement:Uo({except:/^{/})}),Kl.add({"Block SwitchBlock SelectBlock LiteralValue InterfaceType StructType SpecList":zf,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case\b|default\b|\})$/}});let Y$t=e=>({label:e,type:"keyword"});const V$t="interface struct chan map package go return break continue goto fallthrough else defer range true false nil".split(" ").map(Y$t);function q$t(){let e=U$t.concat(V$t);return new Cc(x3,[x3.data.of({autocomplete:XY(yke,PA(e))}),x3.data.of({autocomplete:X$t})])}const W$t=55,G$t=1,H$t=56,Z$t=2,K$t=57,J$t=3,oce=4,eRt=5,JY=6,Ske=7,_ke=8,Eke=9,xke=10,tRt=11,nRt=12,rRt=13,T3=58,aRt=14,iRt=15,sce=59,Tke=21,oRt=23,wke=24,sRt=25,fB=27,Cke=28,lRt=29,cRt=32,uRt=35,dRt=37,fRt=38,pRt=0,mRt=1,hRt={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},gRt={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},lce={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function ORt(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}let cce=null,uce=null,dce=0;function pB(e,t){let n=e.pos+t;if(dce==n&&uce==e)return cce;let r=e.peek(t),a="";for(;ORt(r);)a+=String.fromCharCode(r),r=e.peek(++t);return uce=e,dce=n,cce=a?a.toLowerCase():r==bRt||r==vRt?void 0:null}const $ke=60,RR=62,eV=47,bRt=63,vRt=33,yRt=45;function fce(e,t){this.name=e,this.parent=t}const SRt=[JY,xke,Ske,_ke,Eke],_Rt=new mx({start:null,shift(e,t,n,r){return SRt.indexOf(t)>-1?new fce(pB(r,1)||"",e):e},reduce(e,t){return t==Tke&&e?e.parent:e},reuse(e,t,n,r){let a=t.type.id;return a==JY||a==dRt?new fce(pB(r,1)||"",e):e},strict:!1}),ERt=new La((e,t)=>{if(e.next!=$ke){e.next<0&&t.context&&e.acceptToken(T3);return}e.advance();let n=e.next==eV;n&&e.advance();let r=pB(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?iRt:aRt);let a=t.context?t.context.name:null;if(n){if(r==a)return e.acceptToken(tRt);if(a&&gRt[a])return e.acceptToken(T3,-2);if(t.dialectEnabled(pRt))return e.acceptToken(nRt);for(let i=t.context;i;i=i.parent)if(i.name==r)return;e.acceptToken(rRt)}else{if(r=="script")return e.acceptToken(Ske);if(r=="style")return e.acceptToken(_ke);if(r=="textarea")return e.acceptToken(Eke);if(hRt.hasOwnProperty(r))return e.acceptToken(xke);a&&lce[a]&&lce[a][r]?e.acceptToken(T3,-1):e.acceptToken(JY)}},{contextual:!0}),xRt=new La(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(sce);break}if(e.next==yRt)t++;else if(e.next==RR&&t>=2){n>=3&&e.acceptToken(sce,-2);break}else t=0;e.advance()}});function TRt(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const wRt=new La((e,t)=>{if(e.next==eV&&e.peek(1)==RR){let n=t.dialectEnabled(mRt)||TRt(t.context);e.acceptToken(n?eRt:oce,2)}else e.next==RR&&e.acceptToken(oce,1)});function tV(e,t,n){let r=2+e.length;return new La(a=>{for(let i=0,o=0,s=0;;s++){if(a.next<0){s&&a.acceptToken(t);break}if(i==0&&a.next==$ke||i==1&&a.next==eV||i>=2&&io?a.acceptToken(t,-o):a.acceptToken(n,-(o-2));break}else if((a.next==10||a.next==13)&&s){a.acceptToken(t,1);break}else i=o=0;a.advance()}})}const CRt=tV("script",W$t,G$t),$Rt=tV("style",H$t,Z$t),RRt=tV("textarea",K$t,J$t),PRt=Zl({"Text RawText IncompleteTag IncompleteCloseTag":H.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":H.angleBracket,TagName:H.tagName,"MismatchedCloseTag/TagName":[H.tagName,H.invalid],AttributeName:H.attributeName,"AttributeValue UnquotedAttributeValue":H.attributeValue,Is:H.definitionOperator,"EntityReference CharacterReference":H.character,Comment:H.blockComment,ProcessingInst:H.processingInstruction,DoctypeDecl:H.documentMeta}),kRt=Xl.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!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~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:_Rt,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[PRt],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=d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.tag==f&&(!h.attrs||h.attrs(m||(m=Rke(d,l))))){let g=u.lastChild,O=g.type.id==fRt?g.from:u.to;if(O>d.to)return{parser:h.parser,overlay:[{from:d.to,to:O}]}}}}if(o&&c==wke){let u=s.node,d;if(d=u.firstChild){let f=o[l.read(d.from,d.to)];if(f)for(let m of f){if(m.tagName&&m.tagName!=pce(u.parent,l))continue;let h=u.lastChild;if(h.type.id==fB){let g=h.from+1,O=h.lastChild,v=h.to-(O&&O.isError?0:1);if(v>g)return{parser:m.parser,overlay:[{from:g,to:v}],bracketed:!0}}else if(h.type.id==Cke)return{parser:m.parser,overlay:[{from:h.from,to:h.to}]}}}}return null})}const ARt=316,NRt=317,mce=1,IRt=2,MRt=3,DRt=4,LRt=318,QRt=320,zRt=321,BRt=5,FRt=6,URt=0,mB=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],kke=125,jRt=59,hB=47,XRt=42,YRt=43,VRt=45,qRt=60,WRt=44,GRt=63,HRt=46,ZRt=91,KRt=new mx({start:!1,shift(e,t){return t==BRt||t==FRt||t==QRt?e:t==zRt},strict:!1}),JRt=new La((e,t)=>{let{next:n}=e;(n==kke||n==-1||t.context)&&e.acceptToken(LRt)},{contextual:!0,fallback:!0}),ePt=new La((e,t)=>{let{next:n}=e,r;mB.indexOf(n)>-1||n==hB&&((r=e.peek(1))==hB||r==XRt)||n!=kke&&n!=jRt&&n!=-1&&!t.context&&e.acceptToken(ARt)},{contextual:!0}),tPt=new La((e,t)=>{e.next==ZRt&&!t.context&&e.acceptToken(NRt)},{contextual:!0}),nPt=new La((e,t)=>{let{next:n}=e;if(n==YRt||n==VRt){if(e.advance(),n==e.next){e.advance();let r=!t.context&&t.canShift(mce);e.acceptToken(r?mce:IRt)}}else n==GRt&&e.peek(1)==HRt&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(MRt))},{contextual:!0});function C3(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const rPt=new La((e,t)=>{if(e.next!=qRt||!t.dialectEnabled(URt)||(e.advance(),e.next==hB))return;let n=0;for(;mB.indexOf(e.next)>-1;)e.advance(),n++;if(C3(e.next,!0)){for(e.advance(),n++;C3(e.next,!1);)e.advance(),n++;for(;mB.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==WRt)return;for(let r=0;;r++){if(r==7){if(!C3(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(DRt,-n)}),aPt=Zl({"get set async static":H.modifier,"for while do if else switch try catch finally return throw break continue default case defer":H.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":H.operatorKeyword,"let var const using function class extends":H.definitionKeyword,"import export from":H.moduleKeyword,"with debugger new":H.keyword,TemplateString:H.special(H.string),super:H.atom,BooleanLiteral:H.bool,this:H.self,null:H.null,Star:H.modifier,VariableName:H.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":H.function(H.variableName),VariableDefinition:H.definition(H.variableName),Label:H.labelName,PropertyName:H.propertyName,PrivatePropertyName:H.special(H.propertyName),"CallExpression/MemberExpression/PropertyName":H.function(H.propertyName),"FunctionDeclaration/VariableDefinition":H.function(H.definition(H.variableName)),"ClassDeclaration/VariableDefinition":H.definition(H.className),"NewExpression/VariableName":H.className,PropertyDefinition:H.definition(H.propertyName),PrivatePropertyDefinition:H.definition(H.special(H.propertyName)),UpdateOp:H.updateOperator,"LineComment Hashbang":H.lineComment,BlockComment:H.blockComment,Number:H.number,String:H.string,Escape:H.escape,ArithOp:H.arithmeticOperator,LogicOp:H.logicOperator,BitOp:H.bitwiseOperator,CompareOp:H.compareOperator,RegExp:H.regexp,Equals:H.definitionOperator,Arrow:H.function(H.punctuation),": Spread":H.punctuation,"( )":H.paren,"[ ]":H.squareBracket,"{ }":H.brace,"InterpolationStart InterpolationEnd":H.special(H.brace),".":H.derefOperator,", ;":H.separator,"@":H.meta,TypeName:H.typeName,TypeDefinition:H.definition(H.typeName),"type enum interface implements namespace module declare":H.definitionKeyword,"abstract global Privacy readonly override":H.modifier,"is keyof unique infer asserts":H.operatorKeyword,JSXAttributeValue:H.attributeValue,JSXText:H.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":H.angleBracket,"JSXIdentifier JSXNameSpacedName":H.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":H.attributeName,"JSXBuiltin/JSXIdentifier":H.standard(H.tagName)}),iPt={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},oPt={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},sPt={__proto__:null,"<":193},lPt=Xl.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ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8a5iR:V8bQ+w&QR1[+wQ2_,xR6m2_YrOXst#dQ&v!ZQ+a%mQ,r&rQ,t&tQ,u&uQ,w&wQ2Y,sS2],x2_R6l2[Q%opQ&z!_Q&}!aQ'P!bQ'R!cQ'q!uQ+`%lQ+l%zQ,Q&XQ,h&mQ-P&|W-p'k's't'wQ-w'oQ0X*nQ1P+mQ1c,PS2O,i,lQ2g-OQ2h-RQ2i-SQ2}-oW3P-r-s-v-xQ5a1QQ5m1_Q5q1eQ6V1uQ6a2QQ6k2ZU6z3O3R3UQ6}3SQ8]5bQ8e5oQ8g5rQ8l5zQ8u6WQ8{6`S9[6{7PQ9^7OQ:W8cQ:b8vQ:g8|Q:n9]Q;U:XQ;]:cQ;a:oQ;l;VR;o;^Q%zyQ'd!iQ'o!uU+m%{%|%}Q-W'VU-k'e'f'gS-o'k'uQ0Q*jS1Q+n+oQ2o-YS2{-l-mQ3S-tS4p0R0UQ5b1RQ6v2uQ6y2|Q7O3TU7{4r4s4vQ9z7}R;O9{S$wi>PR*{%VU%Ui%V>PR0f*yQ$viS(u#v+iS)c$b$cQ)e$dQ*[$xS*e${*YQ*t%OQ*u%QQ+Q%^Q+R%_Q+V%cQ.lPQ=}>XQ>O>YQ>Z>]R>[>^Q+O%]Q.nSR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:KRt,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[aPt],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO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${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Vr("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Vr("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Vr("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Vr("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Vr(`try { \${} } catch (\${error}) { \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),Yr("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Yr(`if (\${}) { +}`,{label:"try",detail:"/ catch block",type:"keyword"}),Vr("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Vr(`if (\${}) { \${} } else { \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),Yr(`class \${name} { +}`,{label:"if",detail:"/ else block",type:"keyword"}),Vr(`class \${name} { constructor(\${params}) { \${} } -}`,{label:"class",detail:"definition",type:"keyword"}),Yr('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Yr('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],NRt=ike.concat([Yr("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Yr("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Yr("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Yle=new oA,oke=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function ry(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const IRt=["FunctionDeclaration"],MRt={FunctionDeclaration:ry("function"),ClassDeclaration:ry("class"),ClassExpression:()=>!0,EnumDeclaration:ry("constant"),TypeAliasDeclaration:ry("type"),NamespaceDeclaration:ry("namespace"),VariableDefinition(e,t){e.matchContext(IRt)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function ske(e,t){let n=Yle.get(t);if(n)return n;let r=[],a=!0;function i(o,s){let l=e.sliceString(o.from,o.to);r.push({label:l,type:s})}return t.cursor(fa.IncludeAnonymous).iterate(o=>{if(a)a=!1;else if(o.name){let s=MRt[o.name];if(s&&s(o,i)||oke.has(o.name))return!1}else if(o.to-o.from>8192){for(let s of ske(e,o.node))r.push(s);return!1}}),Yle.set(t,r),r}const Vle=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,lke=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function DRt(e){let t=ka(e.state).resolveInner(e.pos,-1);if(lke.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&Vle.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let a=t;a;a=a.parent)oke.has(a.name)&&(r=r.concat(ske(e.state.doc,a)));return{options:r,from:n?t.from:e.pos,validFor:Vle}}const sd=Yl.define({name:"javascript",parser:ARt.configure({props:[Ic.add({IfStatement:jo({except:/^\s*({|else\b)/}),TryStatement:jo({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:gA,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:od({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":jo({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),Kl.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Nf,BlockComment(e){return{from:e.from+2,to:e.to-2}},JSXElement(e){let t=e.firstChild;if(!t||t.name=="JSXSelfClosingTag")return null;let n=e.lastChild;return{from:t.to,to:n.type.isError?e.to:n.from}},"JSXSelfClosingTag JSXOpenTag"(e){var t;let n=(t=e.firstChild)===null||t===void 0?void 0:t.nextSibling,r=e.lastChild;return!n||n.type.isError?null:{from:n.to,to:r.type.isError?e.to:r.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),cke={test:e=>/^JSX/.test(e.name),facet:pY({commentTokens:{block:{open:"{/*",close:"*/}"}}})},uke=sd.configure({dialect:"ts"},"typescript"),dke=sd.configure({dialect:"jsx",props:[mY.add(e=>e.isTop?[cke]:void 0)]}),fke=sd.configure({dialect:"jsx ts",props:[mY.add(e=>e.isTop?[cke]:void 0)]},"typescript");let pke=e=>({label:e,type:"keyword"});const mke="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(pke),LRt=mke.concat(["declare","implements","private","protected","public"].map(pke));function Hz(e={}){let t=e.jsx?e.typescript?fke:dke:e.typescript?uke:sd,n=e.typescript?NRt.concat(LRt):ike.concat(mke);return new Cc(t,[sd.data.of({autocomplete:yY(lke,bA(n))}),sd.data.of({autocomplete:DRt}),e.jsx?BRt:[]])}function QRt(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function qle(e,t,n=e.length){for(let r=t==null?void 0:t.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,n));return""}const zRt=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),BRt=mn.inputHandler.of((e,t,n,r,a)=>{if((zRt?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!sd.isActiveAt(e.state,t,-1))return!1;let i=a(),{state:o}=i,s=o.changeByRange(l=>{var c;let{head:u}=l,d=ka(o).resolveInner(u-1,-1),f;if(d.name=="JSXStartTag"&&(d=d.parent),!(o.doc.sliceString(u-1,u)!=r||d.name=="JSXAttributeValue"&&d.to>u)){if(r==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:u,insert:""}};if(r=="/"&&d.name=="JSXStartCloseTag"){let m=d.parent,h=m.parent;if(h&&m.from==u-2&&((f=qle(o.doc,h.firstChild,u))||((c=h.firstChild)===null||c===void 0?void 0:c.name)=="JSXFragmentTag")){let g=`${f}>`;return{range:_t.cursor(u+g.length,-1),changes:{from:u,insert:g}}}}else if(r==">"){let m=QRt(d);if(m&&m.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(u,u+2))&&(f=qle(o.doc,m,u)))return{range:l,changes:{from:u,insert:``}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([i,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),ay=["_blank","_self","_top","_parent"],g3=["ascii","utf-8","utf-16","latin1","latin1"],O3=["get","post","put","delete"],b3=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],El=["true","false"],Yn={},FRt={a:{attrs:{href:null,ping:null,type:null,media:null,target:ay,hreflang:null}},abbr:Yn,address:Yn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Yn,aside:Yn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Yn,base:{attrs:{href:null,target:ay}},bdi:Yn,bdo:Yn,blockquote:{attrs:{cite:null}},body:Yn,br:Yn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:b3,formmethod:O3,formnovalidate:["novalidate"],formtarget:ay,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Yn,center:Yn,cite:Yn,code:Yn,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Yn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Yn,div:Yn,dl:Yn,dt:Yn,em:Yn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Yn,figure:Yn,footer:Yn,form:{attrs:{action:null,name:null,"accept-charset":g3,autocomplete:["on","off"],enctype:b3,method:O3,novalidate:["novalidate"],target:ay}},h1:Yn,h2:Yn,h3:Yn,h4:Yn,h5:Yn,h6:Yn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Yn,hgroup:Yn,hr:Yn,html:{attrs:{manifest:null}},i:Yn,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:b3,formmethod:O3,formnovalidate:["novalidate"],formtarget:ay,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Yn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Yn,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Yn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:g3,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Yn,noscript:Yn,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Yn,param:{attrs:{name:null,value:null}},pre:Yn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Yn,rt:Yn,ruby:Yn,samp:Yn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:g3}},section:Yn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Yn,source:{attrs:{src:null,type:null,media:null}},span:Yn,strong:Yn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Yn,summary:Yn,sup:Yn,table:Yn,tbody:Yn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Yn,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Yn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Yn,time:{attrs:{datetime:null}},title:Yn,tr:Yn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Yn,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Yn},hke={accesskey:null,class:null,contenteditable:El,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:El,autocorrect:El,autocapitalize:El,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":El,"aria-autocomplete":["inline","list","both","none"],"aria-busy":El,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":El,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":El,"aria-hidden":El,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":El,"aria-multiselectable":El,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":El,"aria-relevant":null,"aria-required":El,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},gke="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of gke)hke[e]=null;let q_=class{constructor(t,n){this.tags={...FRt,...t},this.globalAttrs={...hke,...n},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};q_.default=new q_;function J0(e,t,n=e.length){if(!t)return"";let r=t.firstChild,a=r&&r.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,n)):""}function eb(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function Oke(e,t,n){let r=n.tags[J0(e,eb(t))];return(r==null?void 0:r.children)||n.allTags}function AY(e,t){let n=[];for(let r=eb(t);r&&!r.type.isTop;r=eb(r.parent)){let a=J0(e,r);if(a&&r.lastChild.name=="CloseTag")break;a&&n.indexOf(a)<0&&(t.name=="EndTag"||t.from>=r.firstChild.to)&&n.push(a)}return n}const bke=/^[:\-\.\w\u00b7-\uffff]*$/;function Wle(e,t,n,r,a){let i=/\s*>/.test(e.sliceDoc(a,a+5))?"":">",o=eb(n,n.name=="StartTag"||n.name=="TagName");return{from:r,to:a,options:Oke(e.doc,o,t).map(s=>({label:s,type:"type"})).concat(AY(e.doc,n).map((s,l)=>({label:"/"+s,apply:"/"+s+i,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Gle(e,t,n,r){let a=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:AY(e.doc,t).map((i,o)=>({label:i,apply:i+a,type:"type",boost:99-o})),validFor:bke}}function URt(e,t,n,r){let a=[],i=0;for(let o of Oke(e.doc,n,t))a.push({label:"<"+o,type:"type"});for(let o of AY(e.doc,n))a.push({label:"",type:"type",boost:99-i++});return{from:r,to:r,options:a,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function jRt(e,t,n,r,a){let i=eb(n),o=i?t.tags[J0(e.doc,i)]:null,s=o&&o.attrs?Object.keys(o.attrs):[],l=o&&o.globalAttrs===!1?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:a,options:l.map(c=>({label:c,type:"property"})),validFor:bke}}function XRt(e,t,n,r,a){var i;let o=(i=n.parent)===null||i===void 0?void 0:i.getChild("AttributeName"),s=[],l;if(o){let c=e.sliceDoc(o.from,o.to),u=t.globalAttrs[c];if(!u){let d=eb(n),f=d?t.tags[J0(e.doc,d)]:null;u=(f==null?void 0:f.attrs)&&f.attrs[c]}if(u){let d=e.sliceDoc(r,a).toLowerCase(),f='"',m='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",m=e.sliceDoc(a,a+1)==d[0]?"":d[0],d=d.slice(1),r++):l=/^[^\s<>='"]*$/;for(let h of u)s.push({label:h,apply:f+h+m,type:"constant"})}}return{from:r,to:a,options:s,validFor:l}}function vke(e,t){let{state:n,pos:r}=t,a=ka(n).resolveInner(r,-1),i=a.resolve(r);for(let o=r,s;i==a&&(s=a.childBefore(o));){let l=s.lastChild;if(!l||!l.type.isError||l.fromvke(r,a)}const qRt=sd.parser.configure({top:"SingleExpression"}),yke=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:uke.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:dke.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:fke.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:qRt},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:sd.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:hR.parser}],Ske=[{name:"style",parser:hR.parser.configure({top:"Styles"})}].concat(gke.map(e=>({name:e,parser:sd.parser}))),_ke=Yl.define({name:"html",parser:tRt.configure({props:[Ic.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Q2=_ke.configure({wrap:rke(yke,Ske)});function NY(e={}){let t="",n;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=rke((e.nestedLanguages||[]).concat(yke),(e.nestedAttributes||[]).concat(Ske)));let r=n?_ke.configure({wrap:n,dialect:t}):t?Q2.configure({dialect:t}):Q2;return new Cc(r,[Q2.data.of({autocomplete:VRt(e)}),e.autoCloseTags!==!1?WRt:[],Hz().support,MPe().support])}const Hle=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),WRt=mn.inputHandler.of((e,t,n,r,a)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Q2.isActiveAt(e.state,t,-1))return!1;let i=a(),{state:o}=i,s=o.changeByRange(l=>{var c,u,d;let f=o.doc.sliceString(l.from-1,l.to)==r,{head:m}=l,h=ka(o).resolveInner(m,-1),g;if(f&&r==">"&&h.name=="EndTag"){let O=h.parent;if(((u=(c=O.parent)===null||c===void 0?void 0:c.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(g=J0(o.doc,O.parent,m))&&!Hle.has(g)){let v=m+(o.doc.sliceString(m,m+1)===">"?1:0),y=``;return{range:l,changes:{from:m,to:v,insert:y}}}}else if(f&&r=="/"&&h.name=="IncompleteCloseTag"){let O=h.parent;if(h.from==m-2&&((d=O.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(g=J0(o.doc,O,m))&&!Hle.has(g)){let v=m+(o.doc.sliceString(m,m+1)===">"?1:0),y=`${g}>`;return{range:_t.cursor(m+y.length,-1),changes:{from:m,to:v,insert:y}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([i,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),GRt=Zl({null:G.null,instanceof:G.operatorKeyword,this:G.self,"new super assert open to with void":G.keyword,"class interface extends implements enum var":G.definitionKeyword,"module package import":G.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":G.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":G.modifier,IntegerLiteral:G.integer,FloatingPointLiteral:G.float,"StringLiteral TextBlock":G.string,CharacterLiteral:G.character,LineComment:G.lineComment,BlockComment:G.blockComment,BooleanLiteral:G.bool,PrimitiveType:G.standard(G.typeName),TypeName:G.typeName,Identifier:G.variableName,"MethodName/Identifier":G.function(G.variableName),Definition:G.definition(G.variableName),ArithOp:G.arithmeticOperator,LogicOp:G.logicOperator,BitOp:G.bitwiseOperator,CompareOp:G.compareOperator,AssignOp:G.definitionOperator,UpdateOp:G.updateOperator,Asterisk:G.punctuation,Label:G.labelName,"( )":G.paren,"[ ]":G.squareBracket,"{ }":G.brace,".":G.derefOperator,", ;":G.separator}),HRt={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:238,open:267,module:269,requires:274,transitive:276,exports:278,to:280,opens:282,uses:284,provides:286,with:288,package:292,import:296,if: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mR/z/WR/z/X",nodeNames:"⚠ LineComment BlockComment Program ModuleDeclaration MarkerAnnotation Identifier ScopedIdentifier . Annotation ) ( AnnotationArgumentList AssignmentExpression FieldAccess IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral TextBlock null ClassLiteral void PrimitiveType TypeName ScopedTypeName GenericType TypeArguments AnnotatedType Wildcard extends super , ArrayType ] Dimension [ class this ParenthesizedExpression ObjectCreationExpression new ArgumentList } { ClassBody ; FieldDeclaration Modifiers public protected private abstract static final strictfp default synchronized native transient volatile VariableDeclarator Definition AssignOp ArrayInitializer MethodDeclaration TypeParameters TypeParameter TypeBound FormalParameters ReceiverParameter FormalParameter SpreadParameter Throws throws Block ClassDeclaration Superclass SuperInterfaces implements InterfaceTypeList InterfaceDeclaration interface ExtendsInterfaces InterfaceBody ConstantDeclaration EnumDeclaration enum EnumBody EnumConstant EnumBodyDeclarations AnnotationTypeDeclaration AnnotationTypeBody AnnotationTypeElementDeclaration StaticInitializer ConstructorDeclaration ConstructorBody ExplicitConstructorInvocation ArrayAccess MethodInvocation MethodName MethodReference ArrayCreationExpression Dimension AssignOp BinaryExpression CompareOp CompareOp LogicOp LogicOp BitOp BitOp BitOp ArithOp ArithOp ArithOp BitOp InstanceofExpression instanceof LambdaExpression InferredParameters TernaryExpression LogicOp : UpdateExpression UpdateOp UnaryExpression LogicOp BitOp CastExpression ElementValueArrayInitializer ElementValuePair open module ModuleBody ModuleDirective requires transitive exports to opens uses provides with PackageDeclaration package ImportDeclaration import Asterisk ExpressionStatement LabeledStatement Label IfStatement if else WhileStatement while ForStatement for ForSpec LocalVariableDeclaration var EnhancedForStatement ForSpec AssertStatement assert SwitchStatement switch SwitchBlock SwitchLabel case DoStatement do BreakStatement break ContinueStatement continue ReturnStatement return SynchronizedStatement ThrowStatement throw TryStatement try CatchClause catch CatchFormalParameter CatchType FinallyClause finally TryWithResourcesStatement ResourceSpecification Resource ClassContent",maxTerm:276,nodeProps:[["isolate",-4,1,2,18,19,""],["group",-26,4,47,76,77,82,87,92,145,147,150,151,153,156,158,161,163,165,167,172,174,176,178,180,181,183,191,"Statement",-25,6,13,14,15,16,17,18,19,20,21,22,39,40,41,99,100,102,103,106,118,120,122,125,127,130,"Expression",-7,23,24,25,26,27,29,34,"Type"],["openedBy",10,"(",44,"{"],["closedBy",11,")",45,"}"]],propSources:[GRt],skippedNodes:[0,1,2],repeatNodeCount:28,tokenData:"#'f_R!_OX%QXY'fYZ)bZ^'f^p%Qpq'fqr*|rs,^st%Qtu4euv5zvw7[wx8rxyAZyzAwz{Be{|CZ|}Dq}!OE_!O!PFx!P!Q! r!Q!R!,h!R![!0`![!]!>p!]!^!@Q!^!_!@n!_!`!BX!`!a!B{!a!b!Di!b!c!EX!c!}!LT!}#O!Mj#O#P%Q#P#Q!NW#Q#R!Nt#R#S4e#S#T%Q#T#o4e#o#p# h#p#q#!U#q#r##n#r#s#$[#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY4e#BY#BZ#$x#BZ$IS4e$IS$I_#$x$I_$I|4e$I|$JO#$x$JO$JT4e$JT$JU#$x$JU$KV4e$KV$KW#$x$KW&FU4e&FU&FV#$x&FV;'S4e;'S;=`5t<%lO4eS%VV&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&YSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZS'cP;=`<%l&Z_'mk&YS%yZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qs#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%l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FV#$x&FV;'S4e;'S;=`5t<%lO4e",tokenizers:[0,1,2,3],topRules:{Program:[0,3],ClassContent:[1,194]},dynamicPrecedences:{27:1,232:-1,243:-1},specialized:[{term:231,get:e=>HRt[e]||-1}],tokenPrec:7144}),KRt=Yl.define({name:"java",parser:ZRt.configure({props:[Ic.add({IfStatement:jo({except:/^\s*({|else\b)/}),TryStatement:jo({except:/^\s*({|catch|finally)\b/}),LabeledStatement:gA,SwitchBlock:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:od({closing:"}"}),BlockComment:()=>null,Statement:jo({except:/^{/})}),Kl.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":Nf,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function JRt(){return new Cc(KRt)}const ePt=Zl({String:G.string,Number:G.number,"True False":G.bool,PropertyName:G.propertyName,Null:G.null,", :":G.separator,"[ ]":G.squareBracket,"{ }":G.brace}),tPt=Xl.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[ePt],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),nPt=()=>e=>{try{JSON.parse(e.state.doc.toString())}catch(t){if(!(t instanceof SyntaxError))throw t;const n=rPt(t,e.state.doc);return[{from:n,message:t.message,severity:"error",to:n}]}return[]};function rPt(e,t){let n;return(n=e.message.match(/at position (\d+)/))?Math.min(+n[1],t.length):(n=e.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+n[1]).from+ +n[2]-1,t.length):0}const aPt=Yl.define({name:"json",parser:tPt.configure({props:[Ic.add({Object:jo({except:/^\s*\}/}),Array:jo({except:/^\s*\]/})}),Kl.add({"Object Array":Nf})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function iPt(){return new Cc(aPt)}class vR{static create(t,n,r,a,i){let o=a+(a<<8)+t+(n<<4)|0;return new vR(t,n,r,o,i,[],[])}constructor(t,n,r,a,i,o,s){this.type=t,this.value=n,this.from=r,this.hash=a,this.end=i,this.children=o,this.positions=s,this.hashProp=[[Cr.contextHash,a]]}addChild(t,n){t.prop(Cr.contextHash)!=this.hash&&(t=new ya(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(n)}toTree(t,n=this.end){let r=this.children.length-1;return r>=0&&(n=Math.max(n,this.positions[r]+this.children[r].length+this.from)),new ya(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(a,i,o)=>new ya(so.none,a,i,o,this.hashProp)})}}var nn;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(nn||(nn={}));class oPt{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class sPt{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return DS(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,n=0,r=0){for(let a=n;a=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==nn.OrderedList?DY:MY)(n,t,!1);return r>0&&(e.type!=nn.BulletList||IY(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const Eke={[nn.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(aa(nn.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(Mc(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[nn.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[nn.OrderedList]:Zle,[nn.BulletList]:Zle,[nn.Document](){return!0}};function Mc(e){return e==32||e==9||e==10||e==13}function DS(e,t=0){for(;tn&&Mc(e.charCodeAt(t-1));)t--;return t}function xke(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(Ake.SetextHeading)>-1||r<3?-1:1}function wke(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function MY(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||Mc(e.text.charCodeAt(e.pos+1)))&&(!n||wke(t,nn.BulletList)||e.skipSpace(e.pos+2)=48&&a<=57;){r++;if(r==e.text.length)return-1;a=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||a!=46&&a!=41||re.pos+1||e.next!=49)?-1:r+1-e.pos}function Cke(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function $ke(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,Pke=/\?>/,Kz=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),V2=Gke.configure({wrap:Pke(qke,Wke)});function rV(e={}){let t="",n;e.matchClosingTags===!1&&(t="noMatch"),e.selfClosingTags===!0&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=Pke((e.nestedLanguages||[]).concat(qke),(e.nestedAttributes||[]).concat(Wke)));let r=n?Gke.configure({wrap:n,dialect:t}):t?V2.configure({dialect:t}):V2;return new Cc(r,[V2.data.of({autocomplete:_Pt(e)}),e.autoCloseTags!==!1?xPt:[],gB().support,lke().support])}const yce=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),xPt=gn.inputHandler.of((e,t,n,r,a)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!V2.isActiveAt(e.state,t,-1))return!1;let i=a(),{state:o}=i,s=o.changeByRange(l=>{var c,u,d;let f=o.doc.sliceString(l.from-1,l.to)==r,{head:m}=l,h=Aa(o).resolveInner(m,-1),g;if(f&&r==">"&&h.name=="EndTag"){let O=h.parent;if(((u=(c=O.parent)===null||c===void 0?void 0:c.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(g=ab(o.doc,O.parent,m))&&!yce.has(g)){let v=m+(o.doc.sliceString(m,m+1)===">"?1:0),y=``;return{range:l,changes:{from:m,to:v,insert:y}}}}else if(f&&r=="/"&&h.name=="IncompleteCloseTag"){let O=h.parent;if(h.from==m-2&&((d=O.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(g=ab(o.doc,O,m))&&!yce.has(g)){let v=m+(o.doc.sliceString(m,m+1)===">"?1:0),y=`${g}>`;return{range:xt.cursor(m+y.length,-1),changes:{from:m,to:v,insert:y}}}}return{range:l}});return s.changes.empty?!1:(e.dispatch([i,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),TPt=Zl({null:H.null,instanceof:H.operatorKeyword,this:H.self,"new super assert open to with void":H.keyword,"class interface extends implements enum var":H.definitionKeyword,"module package import":H.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":H.controlKeyword,"requires exports opens uses provides public private protected static transitive abstract final strictfp synchronized native transient volatile throws":H.modifier,IntegerLiteral:H.integer,FloatingPointLiteral:H.float,"StringLiteral TextBlock":H.string,CharacterLiteral:H.character,LineComment:H.lineComment,BlockComment:H.blockComment,BooleanLiteral:H.bool,PrimitiveType:H.standard(H.typeName),TypeName:H.typeName,Identifier:H.variableName,"MethodName/Identifier":H.function(H.variableName),Definition:H.definition(H.variableName),ArithOp:H.arithmeticOperator,LogicOp:H.logicOperator,BitOp:H.bitwiseOperator,CompareOp:H.compareOperator,AssignOp:H.definitionOperator,UpdateOp:H.updateOperator,Asterisk:H.punctuation,Label:H.labelName,"( )":H.paren,"[ ]":H.squareBracket,"{ }":H.brace,".":H.derefOperator,", ;":H.separator}),wPt={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:238,open:267,module:269,requires:274,transitive:276,exports:278,to:280,opens:282,uses:284,provides:286,with:288,package:292,import:296,if:308,else:310,while:314,for:318,var:325,assert:332,switch:336,case:342,do:346,break:350,continue:354,return:358,throw:364,try:368,catch:372,finally:380},CPt=Xl.deserialize({version:14,states:"##jQ]QPOOQ$wQPOOO(bQQO'#H^O*iQQO'#CbOOQO'#Cb'#CbO*pQPO'#CaO*xOSO'#CpOOQO'#Hc'#HcOOQO'#Cu'#CuO,eQPO'#D_O-OQQO'#HmOOQO'#Hm'#HmO/gQQO'#HhO/nQQO'#HhOOQO'#Hh'#HhOOQO'#Hg'#HgO1rQPO'#DUO2PQPO'#GnO4wQPO'#D_O5OQPO'#DzO*pQPO'#E[O5qQPO'#E[OOQO'#DV'#DVO7SQQO'#HaO9^QQO'#EeO9eQPO'#EdO9jQPO'#EfOOQO'#Hb'#HbO7jQQO'#HbO:pQQO'#FhO:wQPO'#ExO:|QPO'#E}O:|QPO'#FPOOQO'#Ha'#HaOOQO'#HY'#HYOOQO'#Gh'#GhOOQO'#HX'#HXO<^QPO'#FiOOQO'#HW'#HWOOQO'#Gg'#GgQ]QPOOOOQO'#H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d%k%v&d'm(O(T(U)Q)R)])f*P*l*o+T+d+h+i+l+o+s,Y,`-r-t-}.R.g.m/[/_/b/d/n0Z0f0kT&p#t,ZQ&|#xQ(P$oQ-u+hQ/]-tR0P/_]!nP!o'^*q-^/O#PaOPX`bcx![!f!o!y#_#e#l$_$m$n$o$p$q%O%b%d&]&i'^'e'h'{(U)O)Q)R*W*q+O+d+l+s+x,Y-[-^.R/O/dU#WY!W'|Q%T!eU&k#n#s+fQ(o%VS,s*T*zT.s,u-aj#UY!W!e#n#s%V%w&W)y*T*z,u-aU&V#`&`(}Q)x&[Q+e'|Q+q(`Q-s+fQ.O+rQ/g.WR0U/hQ)i%vQ,g)fR/o.mR,h)f`!jP!o'^'h*q+O-^/OT%W!g*|R%]!hW%U!e%V*z-aQ(z%^R,V({S#d`%bR&a#eQ)X%gT*t'`'iR*y'e[!lP!o'^*q-^/OR%X!gR#h`R,b)]R)a%kT-j+]-kQ/V-mR/z/WR/z/X",nodeNames:"⚠ LineComment BlockComment Program ModuleDeclaration MarkerAnnotation Identifier ScopedIdentifier . Annotation ) ( AnnotationArgumentList AssignmentExpression FieldAccess IntegerLiteral FloatingPointLiteral BooleanLiteral CharacterLiteral StringLiteral TextBlock null ClassLiteral void PrimitiveType TypeName ScopedTypeName GenericType TypeArguments AnnotatedType Wildcard extends super , ArrayType ] Dimension [ class this ParenthesizedExpression ObjectCreationExpression new ArgumentList } { ClassBody ; FieldDeclaration Modifiers public protected private abstract static final strictfp default synchronized native transient volatile VariableDeclarator Definition AssignOp ArrayInitializer MethodDeclaration TypeParameters TypeParameter TypeBound FormalParameters ReceiverParameter FormalParameter SpreadParameter Throws throws Block ClassDeclaration Superclass SuperInterfaces implements InterfaceTypeList InterfaceDeclaration interface ExtendsInterfaces InterfaceBody ConstantDeclaration EnumDeclaration enum EnumBody EnumConstant EnumBodyDeclarations AnnotationTypeDeclaration AnnotationTypeBody AnnotationTypeElementDeclaration StaticInitializer ConstructorDeclaration ConstructorBody ExplicitConstructorInvocation ArrayAccess MethodInvocation MethodName MethodReference ArrayCreationExpression Dimension AssignOp BinaryExpression CompareOp CompareOp LogicOp LogicOp BitOp BitOp BitOp ArithOp ArithOp ArithOp BitOp InstanceofExpression instanceof LambdaExpression InferredParameters TernaryExpression LogicOp : UpdateExpression UpdateOp UnaryExpression LogicOp BitOp CastExpression ElementValueArrayInitializer ElementValuePair open module ModuleBody ModuleDirective requires transitive exports to opens uses provides with PackageDeclaration package ImportDeclaration import Asterisk ExpressionStatement LabeledStatement Label IfStatement if else WhileStatement while ForStatement for ForSpec LocalVariableDeclaration var EnhancedForStatement ForSpec AssertStatement assert SwitchStatement switch SwitchBlock SwitchLabel case DoStatement do BreakStatement break ContinueStatement continue ReturnStatement return SynchronizedStatement ThrowStatement throw TryStatement try CatchClause catch CatchFormalParameter CatchType FinallyClause finally TryWithResourcesStatement ResourceSpecification Resource ClassContent",maxTerm:276,nodeProps:[["isolate",-4,1,2,18,19,""],["group",-26,4,47,76,77,82,87,92,145,147,150,151,153,156,158,161,163,165,167,172,174,176,178,180,181,183,191,"Statement",-25,6,13,14,15,16,17,18,19,20,21,22,39,40,41,99,100,102,103,106,118,120,122,125,127,130,"Expression",-7,23,24,25,26,27,29,34,"Type"],["openedBy",10,"(",44,"{"],["closedBy",11,")",45,"}"]],propSources:[TPt],skippedNodes:[0,1,2],repeatNodeCount:28,tokenData:"#'f_R!_OX%QXY'fYZ)bZ^'f^p%Qpq'fqr*|rs,^st%Qtu4euv5zvw7[wx8rxyAZyzAwz{Be{|CZ|}Dq}!OE_!O!PFx!P!Q! r!Q!R!,h!R![!0`![!]!>p!]!^!@Q!^!_!@n!_!`!BX!`!a!B{!a!b!Di!b!c!EX!c!}!LT!}#O!Mj#O#P%Q#P#Q!NW#Q#R!Nt#R#S4e#S#T%Q#T#o4e#o#p# h#p#q#!U#q#r##n#r#s#$[#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY4e#BY#BZ#$x#BZ$IS4e$IS$I_#$x$I_$I|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S%Q;'S;=`&s<%lO%Q_#!_Z'OX#dQ&YSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6n!`#p%Q#p#q##Q#q;'S%Q;'S;=`&s<%lO%QU##XV#bQ&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV##uV|R&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT#$cV#uP&YSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_#%Ru&YS%yZ&PZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qst%Qtu4eu!Q%Q!Q![4e![!c%Q!c!}4e!}#R%Q#R#S4e#S#T%Q#T#o4e#o#y%Q#y#z'f#z$f%Q$f$g'f$g#BY4e#BY#BZ#$x#BZ$IS4e$IS$I_#$x$I_$I|4e$I|$JO#$x$JO$JT4e$JT$JU#$x$JU$KV4e$KV$KW#$x$KW&FU4e&FU&FV#$x&FV;'S4e;'S;=`5t<%lO4e",tokenizers:[0,1,2,3],topRules:{Program:[0,3],ClassContent:[1,194]},dynamicPrecedences:{27:1,232:-1,243:-1},specialized:[{term:231,get:e=>wPt[e]||-1}],tokenPrec:7144}),$Pt=Yl.define({name:"java",parser:CPt.configure({props:[Dc.add({IfStatement:Uo({except:/^\s*({|else\b)/}),TryStatement:Uo({except:/^\s*({|catch|finally)\b/}),LabeledStatement:$A,SwitchBlock:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:fd({closing:"}"}),BlockComment:()=>null,Statement:Uo({except:/^{/})}),Kl.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":zf,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function RPt(){return new Cc($Pt)}const PPt=Zl({String:H.string,Number:H.number,"True False":H.bool,PropertyName:H.propertyName,Null:H.null,", :":H.separator,"[ ]":H.squareBracket,"{ }":H.brace}),kPt=Xl.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[PPt],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),APt=()=>e=>{try{JSON.parse(e.state.doc.toString())}catch(t){if(!(t instanceof SyntaxError))throw t;const n=NPt(t,e.state.doc);return[{from:n,message:t.message,severity:"error",to:n}]}return[]};function NPt(e,t){let n;return(n=e.message.match(/at position (\d+)/))?Math.min(+n[1],t.length):(n=e.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+n[1]).from+ +n[2]-1,t.length):0}const IPt=Yl.define({name:"json",parser:kPt.configure({props:[Dc.add({Object:Uo({except:/^\s*\}/}),Array:Uo({except:/^\s*\]/})}),Kl.add({"Object Array":zf})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function MPt(){return new Cc(IPt)}class PR{static create(t,n,r,a,i){let o=a+(a<<8)+t+(n<<4)|0;return new PR(t,n,r,o,i,[],[])}constructor(t,n,r,a,i,o,s){this.type=t,this.value=n,this.from=r,this.hash=a,this.end=i,this.children=o,this.positions=s,this.hashProp=[[Cr.contextHash,a]]}addChild(t,n){t.prop(Cr.contextHash)!=this.hash&&(t=new Sa(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(n)}toTree(t,n=this.end){let r=this.children.length-1;return r>=0&&(n=Math.max(n,this.positions[r]+this.children[r].length+this.from)),new Sa(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(a,i,o)=>new Sa(oo.none,a,i,o,this.hashProp)})}}var on;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(on||(on={}));class DPt{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class LPt{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let t=this.skipSpace(this.basePos);this.indent=this.countIndent(t,this.pos,this.indent),this.pos=t,this.next=t==this.text.length?-1:this.text.charCodeAt(t)}skipSpace(t){return US(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,n=0,r=0){for(let a=n;a=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==on.OrderedList?oV:iV)(n,t,!1);return r>0&&(e.type!=on.BulletList||aV(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const Hke={[on.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(ia(on.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(Lc(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[on.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[on.OrderedList]:Sce,[on.BulletList]:Sce,[on.Document](){return!0}};function Lc(e){return e==32||e==9||e==10||e==13}function US(e,t=0){for(;tn&&Lc(e.charCodeAt(t-1));)t--;return t}function Zke(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;for(;t-1&&e.depth==t.stack.length&&t.parser.leafBlockParsers.indexOf(iAe.SetextHeading)>-1||r<3?-1:1}function Jke(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function iV(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||Lc(e.text.charCodeAt(e.pos+1)))&&(!n||Jke(t,on.BulletList)||e.skipSpace(e.pos+2)=48&&a<=57;){r++;if(r==e.text.length)return-1;a=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||a!=46&&a!=41||re.pos+1||e.next!=49)?-1:r+1-e.pos}function eAe(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function tAe(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,rAe=/\?>/,bB=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(i)return e.append(aa(nn.Comment,n,n+1+i[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(aa(nn.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(aa(nn.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let a=e.slice(n-1,n),i=e.slice(r,r+1),o=G_.test(a),s=G_.test(i),l=/\s|^$/.test(a),c=/\s|^$/.test(i),u=!c&&(!s||l||o),d=!l&&(!o||c||s),f=u&&(t==42||!d||o),m=d&&(t==42||!u||s);return e.append(new kl(t==95?Lke:Qke,n,r,(f?1:0)|(m?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(aa(nn.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(aa(nn.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new kl(oh,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new kl(yR,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let a=e.parts[r];if(a instanceof kl&&(a.type==oh||a.type==yR)){if(!a.side||e.skipSpace(a.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let i=e.takeContent(r),o=e.parts[r]=pPt(e,i,a.type==oh?nn.Link:nn.Image,a.from,n+1);if(a.type==oh)for(let s=0;st?aa(nn.URL,t+n,i+n):i==e.length?null:!1}}function Bke(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let a=r==40?41:r;for(let i=t+1,o=!1;i=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,a,i){return this.append(new kl(t,n,r,(a?1:0)|(i?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof kl&&(n.type==oh||n.type==yR))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let g=this.parts[l];if(g instanceof kl&&g.side&1&&g.type==a.type&&!(i&&(a.side&1||g.side&2)&&(g.to-g.from+o)%3==0&&((g.to-g.from)%3||o%3))){s=g;break}}if(!s)continue;let c=a.type.resolve,u=[],d=s.from,f=a.to;if(i){let g=Math.min(2,s.to-s.from,o);d=s.to-g,f=a.from+g,c=g==1?"Emphasis":"StrongEmphasis"}s.type.mark&&u.push(this.elt(s.type.mark,d,s.to));for(let g=l+1;g=0;n--){let r=this.parts[n];if(r instanceof kl&&r.type==t&&r.side&1)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}getDelimiterAt(t){let n=this.parts[t];return n instanceof kl?n:null}skipSpace(t){return DS(this.text,t-this.offset)+this.offset}elt(t,n,r,a){return typeof t=="string"?aa(this.parser.getNodeType(t),n,r,a):new Dke(t,n)}}LY.linkStart=oh;LY.imageStart=yR;function eB(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let a of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let i=this.fragment.to;for(;i>0&&this.input.read(i-1,i)!=` -`;)i--;this.fragmentEnd=i?i-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let a=t+this.fragment.offset;for(;r.to<=a;)if(!r.parent())return!1;for(;;){if(r.from>=a)return this.fragment.from<=n;if(!r.childAfter(a))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(Cr.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,a=this.fragmentEnd-(this.fragment.openEnd?1:0),i=t.absoluteLineStart,o=i,s=t.block.children.length,l=o,c=s;for(;;){if(n.to-r>a){if(n.type.isAnonymous&&n.firstChild())continue;break}let u=Uke(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,u);else{let d=new ya(t.parser.nodeSet.types[nn.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,n.tree),t.addNode(d,u)}if(n.type.is("Block")&&(mPt.indexOf(n.type.id)<0?(o=n.to-r,s=t.block.children.length):(o=l,s=c),l=n.to-r,c=t.block.children.length),!n.nextSibling())break}for(;t.block.children.length>s;)t.block.children.pop(),t.block.positions.pop();return o-i}}function Uke(e,t){let n=e;for(let r=1;rXw[e]),Object.keys(Xw).map(e=>Ake[e]),Object.keys(Xw),uPt,Eke,Object.keys(y3).map(e=>y3[e]),Object.keys(y3),[]);function bPt(e,t,n){let r=[];for(let a=e.firstChild,i=t;;a=a.nextSibling){let o=a?a.from:n;if(o>i&&r.push({from:i,to:o}),!a)break;i=a.to}return r}function vPt(e){let{codeParser:t,htmlParser:n}=e;return{wrap:WX((a,i)=>{let o=a.type.id;if(t&&(o==nn.CodeBlock||o==nn.FencedCode)){let s="";if(o==nn.FencedCode){let c=a.node.getChild(nn.CodeInfo);c&&(s=i.read(c.from,c.to))}let l=t(s);if(l)return{parser:l,overlay:c=>c.type.id==nn.CodeText,bracketed:o==nn.FencedCode}}else if(n&&(o==nn.HTMLBlock||o==nn.HTMLTag||o==nn.CommentBlock))return{parser:n,overlay:bPt(a.node,a.from,a.to)};return null})}}const yPt={resolve:"Strikethrough",mark:"StrikethroughMark"},SPt={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":G.strikethrough}},{name:"StrikethroughMark",style:G.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),a=e.slice(n+2,n+3),i=/\s|^$/.test(r),o=/\s|^$/.test(a),s=G_.test(r),l=G_.test(a);return e.addDelimiter(yPt,n,n+2,!o&&(!l||i||s),!i&&(!s||o||l))},after:"Emphasis"}]};function LS(e,t,n=0,r,a=0){let i=0,o=!0,s=-1,l=-1,c=!1,u=()=>{r.push(e.elt("TableCell",a+s,a+l,e.parser.parseInline(t.slice(s,l),a+s)))};for(let d=n;d-1)&&i++,o=!1,r&&(s>-1&&u(),r.push(e.elt("TableDelimiter",d+a,d+a+1))),s=l=-1):(c||f!=32&&f!=9)&&(s<0&&(s=d),l=d+1),c=!c&&f==92}return s>-1&&(i++,r&&u()),i}function tce(e,t){for(let n=t;na instanceof nce)||!tce(t.text,t.basePos))return!1;let r=e.peekLine();return jke.test(r)&&LS(e,t.text,t.basePos)==LS(e,r,t.basePos)},before:"SetextHeading"}]};class EPt{nextLine(){return!1}finish(t,n){return t.addLeafElement(n,t.elt("Task",n.start,n.start+n.content.length,[t.elt("TaskMarker",n.start,n.start+3),...t.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const xPt={defineNodes:[{name:"Task",block:!0,style:G.list},{name:"TaskMarker",style:G.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new EPt:null},after:"SetextHeading"}]},rce=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,ace=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,TPt=/[\w-]+\.[\w-]+($|\/)/,ice=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,oce=/\/[a-zA-Z\d@.]+/gy;function sce(e,t,n,r){let a=0;for(let i=t;i-1)return-1;let r=t+n[0].length;for(;;){let a=e[r-1],i;if(/[?!.,:*_~]/.test(a)||a==")"&&sce(e,t,r,")")>sce(e,t,r,"("))r--;else if(a==";"&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+i.index;else break}return r}function lce(e,t){ice.lastIndex=t;let n=ice.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const CPt={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;rce.lastIndex=r;let a=rce.exec(e.text),i=-1;if(!a)return-1;if(a[1]||a[2]){if(i=wPt(e.text,r+a[0].length),i>-1&&e.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,i));i=r+o[0].length}}else a[3]?i=lce(e.text,r):(i=lce(e.text,r+a[0].length),i>-1&&a[0]=="xmpp:"&&(oce.lastIndex=i,a=oce.exec(e.text),a&&(i=a.index+a[0].length)));return i<0?-1:(e.addElement(e.elt("URL",n,i+e.offset)),i+e.offset)}}]},$Pt=[_Pt,xPt,SPt,CPt];function Xke(e,t,n){return(r,a,i)=>{if(a!=e||r.char(i+1)==e)return-1;let o=[r.elt(n,i,i+1)];for(let s=i+1;s"}}}),Vke=new Cr,qke=OPt.configure({props:[Kl.add(e=>!e.is("Block")||e.is("Document")||tB(e)!=null||APt(e)?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Vke.add(tB),Ic.add({Document:()=>null}),vh.add({Document:Yke})]});function tB(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function APt(e){return e.name=="OrderedList"||e.name=="BulletList"}function NPt(e,t){let n=e;for(;;){let r=n.nextSibling,a;if(!r||(a=tB(r.type))!=null&&a<=t)break;n=r}return n.to}const IPt=OPe.of((e,t,n)=>{for(let r=ka(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:i}}return null});function QY(e){return new Sc(Yke,e,[],"markdown")}const MPt=QY(qke),DPt=qke.configure([$Pt,PPt,RPt,kPt,{props:[Kl.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),SR=QY(DPt);function LPt(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=dR.matchLanguageName(e,n,!0),r instanceof dR)return r.support?r.support.language.parser:F_.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}let S3=class{constructor(t,n,r,a,i,o,s){this.node=t,this.from=n,this.to=r,this.spaceBefore=a,this.spaceAfter=i,this.type=o,this.item=s}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;a--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+Gke(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}};function Wke(e,t){let n=[],r=[];for(let a=e;a;a=a.parent){if(a.name=="FencedCode")return r;(a.name=="ListItem"||a.name=="Blockquote")&&n.push(a)}for(let a=n.length-1;a>=0;a--){let i=n[a],o,s=t.lineAt(i.from),l=i.from-s.from;if(i.name=="Blockquote"&&(o=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new S3(i,l,l+o[0].length,"",o[1],">",null));else if(i.name=="ListItem"&&i.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let c=o[3],u=o[0].length;c.length>=4&&(c=c.slice(0,c.length-4),u-=4),r.push(new S3(i.parent,l,l+u,o[1],c,o[2],i))}else if(i.name=="ListItem"&&i.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let c=o[4],u=o[0].length;c.length>4&&(c=c.slice(0,c.length-4),u-=4);let d=o[2];o[3]&&(d+=o[3].replace(/[xX]/," ")),r.push(new S3(i.parent,l,l+u,o[1],c,d,i))}}return r}function Gke(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function _3(e,t,n,r=0){for(let a=-1,i=e;;){if(i.name=="ListItem"){let s=Gke(i,t),l=+s[2];if(a>=0){if(l!=a+1)return;n.push({from:i.from+s[1].length,to:i.from+s[0].length,insert:String(a+2+r)})}a=l}let o=i.nextSibling;if(!o)break;i=o}}function zY(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(Xb)!=" ")return e;let r=Ou(e,4,n),a="";for(let i=r;i>0;)i>=4?(a+=" ",i-=4):(a+=" ",i--);return a+e.slice(n)}const QPt=(e={})=>({state:t,dispatch:n})=>{let r=ka(t),{doc:a}=t,i=null,o=t.changeByRange(s=>{if(!s.empty||!SR.isActiveAt(t,s.from,-1)&&!SR.isActiveAt(t,s.from,1))return i={range:s};let l=s.from,c=a.lineAt(l),u=Wke(r.resolveInner(l,-1),a);for(;u.length&&u[u.length-1].from>l-c.from;)u.pop();if(!u.length)return i={range:s};let d=u[u.length-1];if(d.to-d.spaceAfter.length>l-c.from)return i={range:s};let f=l>=d.to-d.spaceAfter.length&&!/\S/.test(c.text.slice(d.to));if(d.item&&f){let v=d.node.firstChild,y=d.node.getChild("ListItem","ListItem");if(v.to>=l||y&&y.to0&&!/[^\s>]/.test(a.lineAt(c.from-1).text)||e.nonTightLists===!1){let S=u.length>1?u[u.length-2]:null,C,_="";S&&S.item?(C=c.from+S.from,_=S.marker(a,1)):C=c.from+(S?S.to:0);let w=[{from:C,to:l,insert:_}];return d.node.name=="OrderedList"&&_3(d.item,a,w,-2),S&&S.node.name=="OrderedList"&&_3(S.item,a,w),{range:_t.cursor(C+_.length),changes:w}}else{let S=uce(u,t,c);return{range:_t.cursor(l+S.length+1),changes:{from:c.from,insert:S+t.lineBreak}}}}if(d.node.name=="Blockquote"&&f&&c.from){let v=a.lineAt(c.from-1),y=/>\s*$/.exec(v.text);if(y&&y.index==d.from){let S=t.changes([{from:v.from+y.index,to:v.to},{from:c.from+d.from,to:c.to}]);return{range:s.map(S),changes:S}}}let m=[];d.node.name=="OrderedList"&&_3(d.item,a,m);let h=d.item&&d.item.from]*/.exec(c.text)[0].length>=d.to)for(let v=0,y=u.length-1;v<=y;v++)g+=v==y&&!h?u[v].marker(a,1):u[v].blank(vc.from&&/\s/.test(c.text.charAt(O-c.from-1));)O--;return g=zY(g,t),BPt(d.node,t.doc)&&(g=uce(u,t,c)+t.lineBreak+g),m.push({from:O,to:l,insert:t.lineBreak+g}),{range:_t.cursor(O+g.length+1),changes:m}});return i?!1:(n(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},zPt=QPt();function cce(e){return e.name=="QuoteMark"||e.name=="ListMark"}function BPt(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let a=t.lineAt(n.to),i=t.lineAt(r.from),o=/^[\s>]*$/.test(a.text);return a.number+(o?0:1){let n=ka(e),r=null,a=e.changeByRange(i=>{let o=i.from,{doc:s}=e;if(i.empty&&SR.isActiveAt(e,i.from)){let l=s.lineAt(o),c=Wke(FPt(n,o),s);if(c.length){let u=c[c.length-1],d=u.to-u.spaceAfter.length+(u.spaceAfter?1:0);if(o-l.from>d&&!/\S/.test(l.text.slice(d,o-l.from)))return{range:_t.cursor(l.from+d),changes:{from:l.from+d,to:o}};if(o-l.from==d&&(!u.item||l.from<=u.item.from||!/\S/.test(l.text.slice(0,u.to)))){let f=l.from+u.from;if(u.item&&u.node.from{var n;let{main:r}=t.state.selection;if(r.empty)return!1;let a=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text/plain");if(!a||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(a)||(/^www\./.test(a)&&(a="https://"+a),!SR.isActiveAt(t.state,r.from,1)))return!1;let i=ka(t.state),o=!1;return i.iterate({from:r.from,to:r.to,enter:s=>{(s.from>r.from||qPt.test(s.name))&&(o=!0)},leave:s=>{s.to=97&&e<=122||e>=65&&e<=90}function QS(e){return e==95||e>=128||Zke(e)}function T3(e){return e>=48&&e<=55||e>=97&&e<=102||e>=65&&e<=70}const cAt={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},uAt=new Da(e=>{if(e.next==40){e.advance();let t=0;for(;mce(e.peek(t));)t++;let n="",r;for(;Zke(r=e.peek(t));)n+=String.fromCharCode(r),t++;for(;mce(e.peek(t));)t++;e.peek(t)==41&&cAt[n.toLowerCase()]&&e.acceptToken(GPt)}else if(e.next==60&&e.peek(1)==60&&e.peek(2)==60){for(let r=0;r<3;r++)e.advance();for(;e.next==32||e.next==9;)e.advance();let t=e.next==39;if(t&&e.advance(),!QS(e.next))return;let n=String.fromCharCode(e.next);for(;e.advance(),!(!QS(e.next)&&!(e.next>=48&&e.next<=55));)n+=String.fromCharCode(e.next);if(t){if(e.next!=39)return;e.advance()}if(e.next!=10&&e.next!=13)return;for(;;){let r=e.next==10||e.next==13;if(e.advance(),e.next<0)return;if(r){for(;e.next==32||e.next==9;)e.advance();let a=!0;for(let i=0;i{e.next<0&&e.acceptToken(ekt)}),fAt=new Da((e,t)=>{e.next==63&&t.canShift(dce)&&e.peek(1)==62&&e.acceptToken(dce)});function pAt(e){let t=e.peek(1);if(t==110||t==114||t==116||t==118||t==101||t==102||t==92||t==36||t==34||t==123)return 2;if(t>=48&&t<=55){let n=2,r;for(;n<5&&(r=e.peek(n))>=48&&r<=55;)n++;return n}if(t==120&&T3(e.peek(2)))return T3(e.peek(3))?4:3;if(t==117&&e.peek(2)==123)for(let n=3;;n++){let r=e.peek(n);if(r==125)return n==2?0:n+1;if(!T3(r))break}return 0}const mAt=new Da((e,t)=>{let n=!1;for(;!(e.next==34||e.next<0||e.next==36&&(QS(e.peek(1))||e.peek(1)==123)||e.next==123&&e.peek(1)==36);n=!0){if(e.next==92){let r=pAt(e);if(r){if(n)break;return e.acceptToken(KPt,r)}}else if(!n&&(e.next==91||e.next==45&&e.peek(1)==62&&QS(e.peek(2))||e.next==63&&e.peek(1)==45&&e.peek(2)==62&&QS(e.peek(3)))&&t.canShift(JPt))break;e.advance()}n&&e.acceptToken(ZPt)}),hAt=Zl({"Visibility abstract final static":G.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":G.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":G.controlKeyword,"and or xor yield unset clone instanceof insteadof":G.operatorKeyword,"function fn class trait implements extends const enum global interface use var":G.definitionKeyword,"include include_once require require_once namespace":G.moduleKeyword,"new from echo print array list as":G.keyword,null:G.null,Boolean:G.bool,VariableName:G.variableName,"NamespaceName/...":G.namespace,"NamedType/...":G.typeName,Name:G.name,"CallExpression/Name":G.function(G.variableName),"LabelStatement/Name":G.labelName,"MemberExpression/Name":G.propertyName,"MemberExpression/VariableName":G.special(G.propertyName),"ScopedExpression/ClassMemberName/Name":G.propertyName,"ScopedExpression/ClassMemberName/VariableName":G.special(G.propertyName),"CallExpression/MemberExpression/Name":G.function(G.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":G.function(G.propertyName),"MethodDeclaration/Name":G.function(G.definition(G.variableName)),"FunctionDefinition/Name":G.function(G.definition(G.variableName)),"ClassDeclaration/Name":G.definition(G.className),UpdateOp:G.updateOperator,ArithOp:G.arithmeticOperator,"LogicOp IntersectionType/&":G.logicOperator,BitOp:G.bitwiseOperator,CompareOp:G.compareOperator,ControlOp:G.controlOperator,AssignOp:G.definitionOperator,"$ ConcatOp":G.operator,LineComment:G.lineComment,BlockComment:G.blockComment,Integer:G.integer,Float:G.float,String:G.string,ShellExpression:G.special(G.string),"=> ->":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T8U8V8W8X8Y8Z8[8]8^8_8`8a8b8d8e8f8g8h8s9T9W9Z9^9_9a9c9f9h9o9p9s9u9v:Q:R:S:T:U:V:W:X:Y:Z:[:]:^:_:`:a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:q:r:s:u:v:w;S;e;i;j;k;n;u;v;z;|;}V>W>[>]>^>c>h>i>l>n>o>p>q>v?^?_T$x{$|Q(q%QQ(v%TQ(y%VR2b1WQ%c!]Q(u%SQ,d(tQ/W,cQ/Y,eQ1Q/XR2_1RQ%q!fR)m%rR/p-O",nodeNames:"⚠ ( HeredocString EscapeSequence abstract LogicOp array as Boolean break case catch clone const continue default declare do echo else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final finally fn for foreach from function global goto if implements include include_once LogicOp insteadof interface list match namespace new null LogicOp print readonly require require_once return switch throw trait try unset use var Visibility while LogicOp yield LineComment BlockComment TextInterpolation PhpClose Text PhpOpen Template TextInterpolation EmptyStatement ; } { Block : LabelStatement Name ExpressionStatement ConditionalExpression LogicOp MatchExpression ) ( ParenthesizedExpression MatchBlock MatchArm , => AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> Name VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp IntersectionType OptionalType NamedType QualifiedName \\ NamespaceName Name NamespaceName Name ScopedExpression :: ClassMemberName DynamicMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter PropertyHooks PropertyHook UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:318,nodeProps:[["group",-36,2,8,49,82,84,86,89,94,95,103,107,108,112,113,116,120,126,132,137,139,140,154,155,156,157,160,161,173,174,188,190,191,192,193,194,200,"Expression",-28,75,79,81,83,201,203,208,210,211,214,217,218,219,220,221,223,224,225,226,227,228,229,230,231,234,235,239,240,"Statement",-4,121,123,124,125,"Type"],["isolate",-4,67,68,71,200,""],["openedBy",70,"phpOpen",77,"{",87,"(",102,"#["],["closedBy",72,"phpClose",78,"}",88,")",165,"]"]],propSources:[hAt],skippedNodes:[0],repeatNodeCount:32,tokenData:"!GQ_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9Y!e!}!7z!}#O!;b#O#P!V<%lO8VR9WV'TP%`QOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ9rV%`QOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ:^O%`QQ:aRO;'S9m;'S;=`:j;=`O9mQ:oW%`QOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;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>pce(e)<<1,external:pce},{term:284,get:e=>gAt[e]||-1}],tokenPrec:29889}),bAt=Yl.define({name:"php",parser:OAt.configure({props:[Ic.add({IfStatement:jo({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:jo({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},ColonBlock:e=>e.baseIndent+e.unit,"Block EnumBody DeclarationList":od({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"String BlockComment":()=>null,Statement:jo({except:/^({|end(for|foreach|switch|while)\b)/})}),Kl.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":Nf,ColonBlock(e){return{from:e.from+1,to:e.to}},BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function vAt(e={}){let t=[],n;if(e.baseLanguage!==null)if(e.baseLanguage)n=e.baseLanguage;else{let r=NY({matchClosingTags:!1});t.push(r.support),n=r.language}return new Cc(bAt.configure({wrap:n&&WX(r=>r.type.isTop?{parser:n.parser,overlay:a=>a.name=="Text"}:null),top:e.plain?"Program":"Template"}),t)}const yAt=1,Kke=194,Jke=195,SAt=196,hce=197,_At=198,EAt=199,xAt=200,TAt=2,eAe=3,gce=201,wAt=24,CAt=25,$At=49,RAt=50,PAt=55,kAt=56,AAt=57,NAt=59,IAt=60,MAt=61,DAt=62,LAt=63,QAt=65,zAt=238,BAt=71,FAt=241,UAt=242,jAt=243,XAt=244,YAt=245,VAt=246,qAt=247,WAt=248,tAe=72,GAt=249,HAt=250,ZAt=251,KAt=252,JAt=253,eNt=254,tNt=255,nNt=256,rNt=73,aNt=77,iNt=263,oNt=112,sNt=130,lNt=151,cNt=152,uNt=155,Kh=10,H_=13,BY=32,SA=9,FY=35,dNt=40,fNt=46,nB=123,Oce=125,nAe=39,rAe=34,bce=92,pNt=111,mNt=120,hNt=78,gNt=117,ONt=85,bNt=new Set([CAt,$At,RAt,iNt,QAt,sNt,kAt,AAt,zAt,DAt,LAt,tAe,rNt,aNt,IAt,MAt,lNt,cNt,uNt,oNt]);function w3(e){return e==Kh||e==H_}function C3(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}const vNt=new Da((e,t)=>{let n;if(e.next<0)e.acceptToken(EAt);else if(t.context.flags&z2)w3(e.next)&&e.acceptToken(_At,1);else if(((n=e.peek(-1))<0||w3(n))&&t.canShift(hce)){let r=0;for(;e.next==BY||e.next==SA;)e.advance(),r++;(e.next==Kh||e.next==H_||e.next==FY)&&e.acceptToken(hce,-r)}else w3(e.next)&&e.acceptToken(SAt,1)},{contextual:!0}),yNt=new Da((e,t)=>{let n=t.context;if(n.flags)return;let r=e.peek(-1);if(r==Kh||r==H_){let a=0,i=0;for(;;){if(e.next==BY)a++;else if(e.next==SA)a+=8-a%8;else break;e.advance(),i++}a!=n.indent&&e.next!=Kh&&e.next!=H_&&e.next!=FY&&(a[e,t|aAe])),ENt=new lx({start:SNt,reduce(e,t,n,r){return e.flags&z2&&bNt.has(t)||(t==BAt||t==tAe)&&e.flags&aAe?e.parent:e},shift(e,t,n,r){return t==Kke?new B2(e,_Nt(r.read(r.pos,n.pos)),0):t==Jke?e.parent:t==wAt||t==PAt||t==NAt||t==eAe?new B2(e,0,z2):vce.has(t)?new B2(e,0,vce.get(t)|e.flags&z2):e},hash(e){return e.hash}}),xNt=new Da(e=>{for(let t=0;t<5;t++){if(e.next!="print".charCodeAt(t))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let t=0;;t++){let n=e.peek(t);if(!(n==BY||n==SA)){n!=dNt&&n!=fNt&&n!=Kh&&n!=H_&&n!=FY&&e.acceptToken(yAt);return}}}),TNt=new Da((e,t)=>{let{flags:n}=t.context,r=n&Gd?rAe:nAe,a=(n&Hd)>0,i=!(n&Zd),o=(n&Kd)>0,s=e.pos;for(;!(e.next<0);)if(o&&e.next==nB)if(e.peek(1)==nB)e.advance(2);else{if(e.pos==s){e.acceptToken(eAe,1);return}break}else if(i&&e.next==bce){if(e.pos==s){e.advance();let l=e.next;l>=0&&(e.advance(),wNt(e,l)),e.acceptToken(TAt);return}break}else if(e.next==bce&&!i&&e.peek(1)>-1)e.advance(2);else if(e.next==r&&(!a||e.peek(1)==r&&e.peek(2)==r)){if(e.pos==s){e.acceptToken(gce,a?3:1);return}break}else if(e.next==Kh){if(a)e.advance();else if(e.pos==s){e.acceptToken(gce);return}break}else e.advance();e.pos>s&&e.acceptToken(xAt)});function wNt(e,t){if(t==pNt)for(let n=0;n<2&&e.next>=48&&e.next<=55;n++)e.advance();else if(t==mNt)for(let n=0;n<2&&C3(e.next);n++)e.advance();else if(t==gNt)for(let n=0;n<4&&C3(e.next);n++)e.advance();else if(t==ONt)for(let n=0;n<8&&C3(e.next);n++)e.advance();else if(t==hNt&&e.next==nB){for(e.advance();e.next>=0&&e.next!=Oce&&e.next!=nAe&&e.next!=rAe&&e.next!=Kh;)e.advance();e.next==Oce&&e.advance()}}const CNt=Zl({'async "*" "**" FormatConversion FormatSpec':G.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":G.controlKeyword,"in not and or is del":G.operatorKeyword,"from def class global nonlocal lambda":G.definitionKeyword,import:G.moduleKeyword,"with as print":G.keyword,Boolean:G.bool,None:G.null,VariableName:G.variableName,"CallExpression/VariableName":G.function(G.variableName),"FunctionDefinition/VariableName":G.function(G.definition(G.variableName)),"ClassDefinition/VariableName":G.definition(G.className),PropertyName:G.propertyName,"CallExpression/MemberExpression/PropertyName":G.function(G.propertyName),Comment:G.lineComment,Number:G.number,String:G.string,FormatString:G.special(G.string),Escape:G.escape,UpdateOp:G.updateOperator,"ArithOp!":G.arithmeticOperator,BitOp:G.bitwiseOperator,CompareOp:G.compareOperator,AssignOp:G.definitionOperator,Ellipsis:G.punctuation,At:G.meta,"( )":G.paren,"[ ]":G.squareBracket,"{ }":G.brace,".":G.derefOperator,", ;":G.separator}),$Nt={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},RNt=Xl.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59O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i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[xNt,yNt,vNt,TNt,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:e=>$Nt[e]||-1}],tokenPrec:7668}),yce=new oA,iAe=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Vw(e){return(t,n,r)=>{if(r)return!1;let a=t.node.getChild("VariableName");return a&&n(a,e),!0}}const PNt={FunctionDefinition:Vw("function"),ClassDefinition:Vw("class"),ForStatement(e,t,n){if(n){for(let r=e.node.firstChild;r;r=r.nextSibling)if(r.name=="VariableName")t(r,"variable");else if(r.name=="in")break}},ImportStatement(e,t){var n,r;let{node:a}=e,i=((n=a.firstChild)===null||n===void 0?void 0:n.name)=="from";for(let o=a.getChild("import");o;o=o.nextSibling)o.name=="VariableName"&&((r=o.nextSibling)===null||r===void 0?void 0:r.name)!="as"&&t(o,i?"variable":"namespace")},AssignStatement(e,t){for(let n=e.node.firstChild;n;n=n.nextSibling)if(n.name=="VariableName")t(n,"variable");else if(n.name==":"||n.name=="AssignOp")break},ParamList(e,t){for(let n=null,r=e.node.firstChild;r;r=r.nextSibling)r.name=="VariableName"&&(!n||!/\*|AssignOp/.test(n.name))&&t(r,"variable"),n=r},CapturePattern:Vw("variable"),AsPattern:Vw("variable"),__proto__:null};function oAe(e,t){let n=yce.get(t);if(n)return n;let r=[],a=!0;function i(o,s){let l=e.sliceString(o.from,o.to);r.push({label:l,type:s})}return t.cursor(fa.IncludeAnonymous).iterate(o=>{if(o.name){let s=PNt[o.name];if(s&&s(o,i,a)||!a&&iAe.has(o.name))return!1;a=!1}else if(o.to-o.from>8192){for(let s of oAe(e,o.node))r.push(s);return!1}}),yce.set(t,r),r}const Sce=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,sAe=["String","FormatString","Comment","PropertyName"];function kNt(e){let t=ka(e.state).resolveInner(e.pos,-1);if(sAe.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&Sce.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let a=t;a;a=a.parent)iAe.has(a.name)&&(r=r.concat(oAe(e.state.doc,a)));return{options:r,from:n?t.from:e.pos,validFor:Sce}}const ANt=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(e=>({label:e,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(e=>({label:e,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(e=>({label:e,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(e=>({label:e,type:"function"}))),NNt=[Yr("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Yr("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Yr("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Yr("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Yr(`if \${}: - -`,{label:"if",detail:"block",type:"keyword"}),Yr("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Yr("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Yr("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Yr("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],INt=yY(sAe,bA(ANt.concat(NNt)));function $3(e){let{node:t,pos:n}=e,r=e.lineIndent(n,-1),a=null;for(;;){let i=t.childBefore(n);if(i)if(i.name=="Comment")n=i.from;else if(i.name=="Body"||i.name=="MatchBody")e.baseIndentFor(i)+e.unit<=r&&(a=i),t=i;else if(i.name=="MatchClause")t=i;else if(i.type.is("Statement"))t=i;else break;else break}return a}function R3(e,t){let n=e.baseIndentFor(t),r=e.lineAt(e.pos,-1),a=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&e.node.ton?null:n+e.unit}const P3=Yl.define({name:"python",parser:RNt.configure({props:[Ic.add({Body:e=>{var t;let n=/^\s*(#|$)/.test(e.textAfter)&&$3(e)||e.node;return(t=R3(e,n))!==null&&t!==void 0?t:e.continue()},MatchBody:e=>{var t;let n=$3(e);return(t=R3(e,n||e.node))!==null&&t!==void 0?t:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),"ForStatement WhileStatement":e=>/^\s*else:/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except[ :]|finally:|else:)/.test(e.textAfter)?e.baseIndent:e.continue(),MatchStatement:e=>/^\s*case /.test(e.textAfter)?e.baseIndent+e.unit:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":od({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":od({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":od({closing:"]"}),MemberExpression:e=>e.baseIndent+e.unit,"String FormatString":()=>null,Script:e=>{var t;let n=$3(e);return(t=n&&R3(e,n))!==null&&t!==void 0?t:e.continue()}}),Kl.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Nf,Body:(e,t)=>({from:e.from+1,to:e.to-(e.to==t.doc.length?0:1)}),"String FormatString":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function MNt(){return new Cc(P3,[P3.data.of({autocomplete:kNt}),P3.data.of({autocomplete:INt})])}const zO=63,_ce=64,DNt=1,LNt=2,lAe=3,QNt=4,cAe=5,zNt=6,BNt=7,uAe=65,FNt=66,UNt=8,jNt=9,XNt=10,YNt=11,VNt=12,dAe=13,qNt=19,WNt=20,GNt=29,HNt=33,ZNt=34,KNt=47,JNt=0,UY=1,rB=2,Z_=3,aB=4;let sh=class{constructor(t,n,r){this.parent=t,this.depth=n,this.type=r,this.hash=(t?t.hash+t.hash<<8:0)+n+(n<<4)+r}};sh.top=new sh(null,-1,JNt);function zS(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let a=e.peek(r);if(xf(a)||a==-1)return n}}function iB(e){return e==32||e==9}function xf(e){return e==10||e==13}function fAe(e){return iB(e)||xf(e)}function Sh(e){return e<0||fAe(e)}const eIt=new lx({start:sh.top,reduce(e,t){return e.type==Z_&&(t==WNt||t==ZNt)?e.parent:e},shift(e,t,n,r){if(t==lAe)return new sh(e,zS(r,r.pos),UY);if(t==uAe||t==cAe)return new sh(e,zS(r,r.pos),rB);if(t==zO)return e.parent;if(t==qNt||t==HNt)return new sh(e,0,Z_);if(t==dAe&&e.type==aB)return e.parent;if(t==KNt){let a=/[1-9]/.exec(r.read(r.pos,n.pos));if(a)return new sh(e,e.depth+ +a[0],aB)}return e},hash(e){return e.hash}});function nb(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&Sh(e.peek(n+3))}const tIt=new Da((e,t)=>{if(e.next==-1&&t.canShift(_ce))return e.acceptToken(_ce);let n=e.peek(-1);if((xf(n)||n<0)&&t.context.type!=Z_){if(nb(e,45))if(t.canShift(zO))e.acceptToken(zO);else return e.acceptToken(DNt,3);if(nb(e,46))if(t.canShift(zO))e.acceptToken(zO);else return e.acceptToken(LNt,3);let r=0;for(;e.next==32;)r++,e.advance();(r{if(t.context.type==Z_){e.next==63&&(e.advance(),Sh(e.next)&&e.acceptToken(BNt));return}if(e.next==45)e.advance(),Sh(e.next)&&e.acceptToken(t.context.type==UY&&t.context.depth==zS(e,e.pos-1)?QNt:lAe);else if(e.next==63)e.advance(),Sh(e.next)&&e.acceptToken(t.context.type==rB&&t.context.depth==zS(e,e.pos-1)?zNt:cAe);else{let n=e.pos;for(;;)if(iB(e.next)){if(e.pos==n)return;e.advance()}else if(e.next==33)pAe(e);else if(e.next==38)oB(e);else if(e.next==42){oB(e);break}else if(e.next==39||e.next==34){if(jY(e,!0))break;return}else if(e.next==91||e.next==123){if(!aIt(e))return;break}else{mAe(e,!0,!1,0);break}for(;iB(e.next);)e.advance();if(e.next==58){if(e.pos==n&&t.canShift(GNt))return;let r=e.peek(1);Sh(r)&&e.acceptTokenTo(t.context.type==rB&&t.context.depth==zS(e,n)?FNt:uAe,n)}}},{contextual:!0});function rIt(e){return e>32&&e<127&&e!=34&&e!=37&&e!=44&&e!=60&&e!=62&&e!=92&&e!=94&&e!=96&&e!=123&&e!=124&&e!=125}function Ece(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function xce(e,t){return e.next==37?(e.advance(),Ece(e.next)&&e.advance(),Ece(e.next)&&e.advance(),!0):rIt(e.next)||t&&e.next==44?(e.advance(),!0):!1}function pAe(e){if(e.advance(),e.next==60){for(e.advance();;)if(!xce(e,!0)){e.next==62&&e.advance();break}}else for(;xce(e,!1););}function oB(e){for(e.advance();!Sh(e.next)&&_R(e.next)!="f";)e.advance()}function jY(e,t){let n=e.next,r=!1,a=e.pos;for(e.advance();;){let i=e.next;if(i<0)break;if(e.advance(),i==n)if(i==39)if(e.next==39)e.advance();else break;else break;else if(i==92&&n==34)e.next>=0&&e.advance();else if(xf(i)){if(t)return!1;r=!0}else if(t&&e.pos>=a+1024)return!1}return!r}function aIt(e){for(let t=[],n=e.pos+1024;;)if(e.next==91||e.next==123)t.push(e.next),e.advance();else if(e.next==39||e.next==34){if(!jY(e,!0))return!1}else if(e.next==93||e.next==125){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else{if(e.next<0||e.pos>n||xf(e.next))return!1;e.advance()}}const iIt="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function _R(e){return e<33?"u":e>125?"s":iIt[e-33]}function k3(e,t){let n=_R(e);return n!="u"&&!(t&&n=="f")}function mAe(e,t,n,r){if(_R(e.next)=="s"||(e.next==63||e.next==58||e.next==45)&&k3(e.peek(1),n))e.advance();else return!1;let a=e.pos;for(;;){let i=e.next,o=0,s=r+1;for(;fAe(i);){if(xf(i)){if(t)return!1;s=0}else s++;i=e.peek(++o)}if(!(i>=0&&(i==58?k3(e.peek(o+1),n):i==35?e.peek(o-1)!=32:k3(i,n)))||!n&&s<=r||s==0&&!n&&(nb(e,45,o)||nb(e,46,o)))break;if(t&&_R(i)=="f")return!1;for(let c=o;c>=0;c--)e.advance();if(t&&e.pos>a+1024)return!1}return!0}const oIt=new Da((e,t)=>{if(e.next==33)pAe(e),e.acceptToken(VNt);else if(e.next==38||e.next==42){let n=e.next==38?XNt:YNt;oB(e),e.acceptToken(n)}else e.next==39||e.next==34?(jY(e,!1),e.acceptToken(jNt)):mAe(e,!1,t.context.type==Z_,t.context.depth)&&e.acceptToken(UNt)}),sIt=new Da((e,t)=>{let n=t.context.type==aB?t.context.depth:-1,r=e.pos;e:for(;;){let a=0,i=e.next;for(;i==32;)i=e.peek(++a);if(!a&&(nb(e,45,a)||nb(e,46,a))||!xf(i)&&(n<0&&(n=Math.max(t.context.depth+1,a)),aYAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX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pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:eIt,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[lIt],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[tIt,nIt,oIt,sIt,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),uIt=Yl.define({name:"yaml",parser:cIt.configure({props:[Ic.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if(t.name=="BlockLiteralContent"&&t.frome.pos)return null}}return null},FlowMapping:od({closing:"}"}),FlowSequence:od({closing:"]"})}),Kl.add({"FlowMapping FlowSequence":Nf,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function dIt(){return new Cc(uIt)}class Tce{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class lh{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let a=r.facet(ed).markerFilter;a&&(t=a(t,r));let i=t.slice().sort((m,h)=>m.from-h.from||m.to-h.to),o=new _f,s=[],l=0,c=r.doc.iter(),u=0,d=r.doc.length;for(let m=0;;){let h=m==i.length?null:i[m];if(!h&&!s.length)break;let g,O;if(s.length)g=l,O=s.reduce((S,C)=>Math.min(S,C.to),h&&h.from>g?h.from:1e8);else{if(g=h.from,g>d)break;O=h.to,s.push(h),m++}for(;mS.from||S.to==g))s.push(S),m++,O=Math.min(S.to,O);else{O=Math.min(S.from,O);break}}O=Math.min(O,d);let v=!1;if(s.some(S=>S.from==g&&(S.to==O||O==d))&&(v=g==O,!v&&O-g<10)){let S=g-(u+c.value.length);S>0&&(c.next(S),u=g);for(let C=g;;){if(C>=O){v=!0;break}if(!c.lineBreak&&u+c.value.length>C)break;C=u+c.value.length,u+=c.value.length,c.next()}}let y=SAe(s);if(v)o.add(g,g,Zn.widget({widget:new SIt(y),diagnostics:s.slice()}));else{let S=s.reduce((C,_)=>_.markClass?C+" "+_.markClass:C,"");o.add(g,O,Zn.mark({class:"cm-lintRange cm-lintRange-"+y+S,diagnostics:s.slice(),inclusiveEnd:s.some(C=>C.to>O)}))}if(l=O,l==d)break;for(let S=0;S{if(!(t&&o.diagnostics.indexOf(t)<0))if(!r)r=new Tce(a,i,t||o.diagnostics[0]);else{if(o.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new Tce(r.from,i,r.diagnostic)}}),r}function hAe(e,t){let n=t.pos,r=t.end||n,a=e.state.facet(ed).hideOn(e,n,r);if(a!=null)return a;let i=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(o=>o.is(_A))||e.changes.touchesRange(i.from,Math.max(i.to,r)))}function gAe(e,t){return e.field(Il,!1)?t:t.concat(_r.appendConfig.of(xAe))}function fIt(e,t){return{effects:gAe(e,[_A.of(t)])}}const _A=_r.define(),XY=_r.define(),OAe=_r.define(),Il=fo.define({create(){return new lh(Zn.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,a=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=Kp(n,e.selected.diagnostic,i)||Kp(n,null,i)}!n.size&&a&&t.state.facet(ed).autoPanel&&(a=null),e=new lh(n,a,r)}for(let n of t.effects)if(n.is(_A)){let r=t.state.facet(ed).autoPanel?n.value.length?K_.open:null:e.panel;e=lh.init(n.value,r,t.state)}else n.is(XY)?e=new lh(e.diagnostics,n.value?K_.open:null,e.selected):n.is(OAe)&&(e=new lh(e.diagnostics,e.panel,n.value));return e},provide:e=>[B_.from(e,t=>t.panel),mn.decorations.from(e,t=>t.diagnostics)]}),pIt=Zn.mark({class:"cm-lintRange cm-lintRange-active"});function mIt(e,t,n){let{diagnostics:r}=e.state.field(Il),a,i=-1,o=-1;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,c,{spec:u})=>{if(t>=l&&t<=c&&(l==c||(t>l||n>0)&&(tyAe(e,n,!1)))}const hIt=e=>{let t=e.state.field(Il,!1);(!t||!t.panel)&&e.dispatch({effects:gAe(e.state,[XY.of(!0)])});let n=fY(e,K_.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},wce=e=>{let t=e.state.field(Il,!1);return!t||!t.panel?!1:(e.dispatch({effects:XY.of(!1)}),!0)},gIt=e=>{let t=e.state.field(Il,!1);if(!t)return!1;let n=e.state.selection.main,r=Kp(t.diagnostics,null,n.to+1);return!r&&(r=Kp(t.diagnostics,null,0),!r||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},OIt=[{key:"Mod-Shift-m",run:hIt,preventDefault:!0},{key:"F8",run:gIt}],bIt=vi.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(ed);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(ePromise.resolve(r(this.view))),r=>{this.view.state.doc==t.doc&&this.view.dispatch(fIt(this.view.state,r.reduce((a,i)=>a.concat(i))))},r=>{Ps(this.view.state,r)})}}update(e){let t=e.state.facet(ed);(e.docChanged||t!=e.startState.facet(ed)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}});function vIt(e,t,n){let r=[],a=-1;for(let i of e)i.then(o=>{r.push(o),clearTimeout(a),r.length==e.length?t(r):a=setTimeout(()=>t(r),200)},n)}const ed=vn.define({combine(e){return{sources:e.map(t=>t.source).filter(t=>t!=null),...Su(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:Cce,tooltipFilter:Cce,needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n,hideOn:(t,n)=>t?n?(r,a,i)=>t(r,a,i)||n(r,a,i):t:n,autoPanel:(t,n)=>t||n})}}});function Cce(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function yIt(e,t={}){return[ed.of({source:e,config:t}),bIt,xAe]}function vAe(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ri.toLowerCase()==a.toLowerCase())){t.push(a);continue e}}t.push("")}return t}function yAe(e,t,n){var r;let a=n?vAe(t.actions):[];return Na("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Na("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),(r=t.actions)===null||r===void 0?void 0:r.map((i,o)=>{let s=!1,l=m=>{if(m.preventDefault(),s)return;s=!0;let h=Kp(e.state.field(Il).diagnostics,t);h&&i.apply(e,h.from,h.to)},{name:c}=i,u=a[o]?c.indexOf(a[o]):-1,d=u<0?c:[c.slice(0,u),Na("u",c.slice(u,u+1)),c.slice(u+1)],f=i.markClass?" "+i.markClass:"";return Na("button",{type:"button",class:"cm-diagnosticAction"+f,onclick:l,onmousedown:l,"aria-label":` Action: ${c}${u<0?"":` (access key "${a[o]})"`}.`},d)}),t.source&&Na("div",{class:"cm-diagnosticSource"},t.source))}class SIt extends _u{constructor(t){super(),this.sev=t}eq(t){return t.sev==this.sev}toDOM(){return Na("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class $ce{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=yAe(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class K_{constructor(t){this.view=t,this.items=[];let n=a=>{if(!(a.ctrlKey||a.altKey||a.metaKey)){if(a.keyCode==27)wce(this.view),this.view.focus();else if(a.keyCode==38||a.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(a.keyCode==40||a.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(a.keyCode==36)this.moveSelection(0);else if(a.keyCode==35)this.moveSelection(this.items.length-1);else if(a.keyCode==13)this.view.focus();else if(a.keyCode>=65&&a.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],o=vAe(i.actions);for(let s=0;s{for(let i=0;iwce(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(Il).selected;if(!t)return-1;for(let n=0;n{for(let u of c.diagnostics){if(o.has(u))continue;o.add(u);let d=-1,f;for(let m=r;mr&&(this.items.splice(r,d-r),a=!0)),n&&f.diagnostic==n.diagnostic?f.dom.hasAttribute("aria-selected")||(f.dom.setAttribute("aria-selected","true"),i=f):f.dom.hasAttribute("aria-selected")&&f.dom.removeAttribute("aria-selected"),r++}});r({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:l})=>{let c=l.height/this.list.offsetHeight;s.topl.bottom&&(this.list.scrollTop+=(s.bottom-l.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),a&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(Il),r=Kp(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:OAe.of(r)})}static open(t){return new K_(t)}}function F2(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function qw(e){return F2(``,'width="6" height="3"')}const _It=mn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:qw("#d11")},".cm-lintRange-warning":{backgroundImage:qw("orange")},".cm-lintRange-info":{backgroundImage:qw("#999")},".cm-lintRange-hint":{backgroundImage:qw("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function EIt(e){return e=="error"?4:e=="warning"?3:e=="info"?2:1}function SAe(e){let t="hint",n=1;for(let r of e){let a=EIt(r.severity);a>n&&(n=a,t=r.severity)}return t}class _Ae extends md{constructor(t){super(),this.diagnostics=t,this.severity=SAe(t)}toDOM(t){let n=document.createElement("div");n.className="cm-lint-marker cm-lint-marker-"+this.severity;let r=this.diagnostics,a=t.state.facet(EA).tooltipFilter;return a&&(r=a(r,t.state)),r.length&&(n.onmouseover=()=>TIt(t,n,r)),n}}function xIt(e,t){let n=r=>{let a=t.getBoundingClientRect();if(!(r.clientX>a.left-10&&r.clientXa.top-10&&r.clientYt.getBoundingClientRect()}}})}),t.onmouseout=t.onmousemove=null,xIt(e,t)}let{hoverTime:a}=e.state.facet(EA),i=setTimeout(r,a);t.onmouseout=()=>{clearTimeout(i),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(i),i=setTimeout(r,a)}}function wIt(e,t){let n=Object.create(null);for(let a of t){let i=e.lineAt(a.from);(n[i.from]||(n[i.from]=[])).push(a)}let r=[];for(let a in n)r.push(new _Ae(n[a]).range(+a));return jr.of(r,!0)}const CIt=dPe({class:"cm-gutter-lint",markers:e=>e.state.field(sB),widgetMarker:(e,t,n)=>{let r=[];return e.state.field(sB).between(n.from,n.to,(a,i,o)=>{a>n.from&&ar.is(YY)?r.value:n,e)},provide:e=>pA.from(e)}),$It=mn.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:F2('')},".cm-lint-marker-warning":{content:F2('')},".cm-lint-marker-error":{content:F2('')}}),xAe=[Il,mn.decorations.compute([Il],e=>{let{selected:t,panel:n}=e.field(Il);return!t||!n||t.from==t.to?Zn.none:Zn.set([pIt.range(t.from,t.to)])}),swt(mIt,{hideOn:hAe}),_It],EA=vn.define({combine(e){return Su(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Rce(e={}){return[EA.of(e),sB,CIt,$It,EAe]}var TAe=e=>{var{theme:t,settings:n={},styles:r=[]}=e,a={".cm-gutters":{}},i={};n.background&&(i.backgroundColor=n.background),n.backgroundImage&&(i.backgroundImage=n.backgroundImage),n.foreground&&(i.color=n.foreground),n.fontSize&&(i.fontSize=n.fontSize),(n.background||n.foreground)&&(a["&"]=i),n.fontFamily&&(a["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(a[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(a[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(a[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(a[".cm-content"]={caretColor:n.caret},a[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var o={};n.gutterActiveForeground&&(o.color=n.gutterActiveForeground),n.lineHighlight&&(a[".cm-activeLine"]={backgroundColor:n.lineHighlight},o.backgroundColor=n.lineHighlight),a[".cm-activeLineGutter"]=o,n.selection&&(a["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(a["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var s=mn.theme(a,{dark:t==="dark"}),l=Yb.define(r),c=[s,OY(l)];return c},RIt={background:"#ffffff",foreground:"#383a42",caret:"#000",selection:"#add6ff",selectionMatch:"#a8ac94",lineHighlight:"#99999926",gutterBackground:"#fff",gutterForeground:"#237893",gutterActiveForeground:"#0b216f",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace'},PIt=[{tag:[G.keyword,G.operatorKeyword,G.modifier,G.color,G.constant(G.name),G.standard(G.name),G.standard(G.tagName),G.special(G.brace),G.atom,G.bool,G.special(G.variableName)],color:"#0000ff"},{tag:[G.moduleKeyword,G.controlKeyword],color:"#af00db"},{tag:[G.name,G.deleted,G.character,G.macroName,G.propertyName,G.variableName,G.labelName,G.definition(G.name)],color:"#0070c1"},{tag:G.heading,fontWeight:"bold",color:"#0070c1"},{tag:[G.typeName,G.className,G.tagName,G.number,G.changed,G.annotation,G.self,G.namespace],color:"#267f99"},{tag:[G.function(G.variableName),G.function(G.propertyName)],color:"#795e26"},{tag:[G.number],color:"#098658"},{tag:[G.operator,G.punctuation,G.separator,G.url,G.escape,G.regexp],color:"#383a42"},{tag:[G.regexp],color:"#af00db"},{tag:[G.special(G.string),G.processingInstruction,G.string,G.inserted],color:"#a31515"},{tag:[G.angleBracket],color:"#383a42"},{tag:G.strong,fontWeight:"bold"},{tag:G.emphasis,fontStyle:"italic"},{tag:G.strikethrough,textDecoration:"line-through"},{tag:[G.meta,G.comment],color:"#008000"},{tag:G.link,color:"#4078f2",textDecoration:"underline"},{tag:G.invalid,color:"#e45649"}];function kIt(e){var{theme:t="light",settings:n={},styles:r=[]}={};return TAe({theme:t,settings:Re({},RIt,n),styles:[...PIt,...r]})}var Pce=kIt(),AIt={background:"#1e1e1e",foreground:"#9cdcfe",caret:"#c6c6c6",selection:"#6199ff2f",selectionMatch:"#72a1ff59",lineHighlight:"#ffffff0f",gutterBackground:"#1e1e1e",gutterForeground:"#838383",gutterActiveForeground:"#fff",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace'},NIt=[{tag:[G.keyword,G.operatorKeyword,G.modifier,G.color,G.constant(G.name),G.standard(G.name),G.standard(G.tagName),G.special(G.brace),G.atom,G.bool,G.special(G.variableName)],color:"#569cd6"},{tag:[G.controlKeyword,G.moduleKeyword],color:"#c586c0"},{tag:[G.name,G.deleted,G.character,G.macroName,G.propertyName,G.variableName,G.labelName,G.definition(G.name)],color:"#9cdcfe"},{tag:G.heading,fontWeight:"bold",color:"#9cdcfe"},{tag:[G.typeName,G.className,G.tagName,G.number,G.changed,G.annotation,G.self,G.namespace],color:"#4ec9b0"},{tag:[G.function(G.variableName),G.function(G.propertyName)],color:"#dcdcaa"},{tag:[G.number],color:"#b5cea8"},{tag:[G.operator,G.punctuation,G.separator,G.url,G.escape,G.regexp],color:"#d4d4d4"},{tag:[G.regexp],color:"#d16969"},{tag:[G.special(G.string),G.processingInstruction,G.string,G.inserted],color:"#ce9178"},{tag:[G.angleBracket],color:"#808080"},{tag:G.strong,fontWeight:"bold"},{tag:G.emphasis,fontStyle:"italic"},{tag:G.strikethrough,textDecoration:"line-through"},{tag:[G.meta,G.comment],color:"#6a9955"},{tag:G.link,color:"#6a9955",textDecoration:"underline"},{tag:G.invalid,color:"#ff0000"}];function IIt(e){var{theme:t="dark",settings:n={},styles:r=[]}={};return TAe({theme:t,settings:Re({},AIt,n),styles:[...NIt,...r]})}var kce=IIt();const MIt=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=qY(e.state,n.from);return r.line?DIt(e):r.block?QIt(e):!1};function VY(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let a=e(t,n);return a?(r(n.update(a)),!0):!1}}const DIt=VY(FIt,0),LIt=VY(wAe,0),QIt=VY((e,t)=>wAe(e,t,BIt(t)),0);function qY(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}const oy=50;function zIt(e,{open:t,close:n},r,a){let i=e.sliceDoc(r-oy,r),o=e.sliceDoc(a,a+oy),s=/\s*$/.exec(i)[0].length,l=/^\s*/.exec(o)[0].length,c=i.length-s;if(i.slice(c-t.length,c)==t&&o.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:a+l,margin:l&&1}};let u,d;a-r<=2*oy?u=d=e.sliceDoc(r,a):(u=e.sliceDoc(r,r+oy),d=e.sliceDoc(a-oy,a));let f=/^\s*/.exec(u)[0].length,m=/\s*$/.exec(d)[0].length,h=d.length-m-n.length;return u.slice(f,f+t.length)==t&&d.slice(h,h+n.length)==n?{open:{pos:r+f+t.length,margin:/\s/.test(u.charAt(f+t.length))?1:0},close:{pos:a-m-n.length,margin:/\s/.test(d.charAt(h-1))?1:0}}:null}function BIt(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),a=n.to<=r.to?r:e.doc.lineAt(n.to);a.from>r.from&&a.from==n.to&&(a=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let i=t.length-1;i>=0&&t[i].to>r.from?t[i].to=a.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:a.to})}return t}function wAe(e,t,n=t.selection.ranges){let r=n.map(i=>qY(t,i.from).block);if(!r.every(i=>i))return null;let a=n.map((i,o)=>zIt(t,r[o],i.from,i.to));if(e!=2&&!a.every(i=>i))return{changes:t.changes(n.map((i,o)=>a[o]?[]:[{from:i.from,insert:r[o].open+" "},{from:i.to,insert:" "+r[o].close}]))};if(e!=1&&a.some(i=>i)){let i=[];for(let o=0,s;oa&&(i==o||o>d.from)){a=d.from;let f=/^\s*/.exec(d.text)[0].length,m=f==d.length,h=d.text.slice(f,f+c.length)==c?f:-1;fi.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:s,token:l,indent:c,empty:u,single:d}of r)(d||!u)&&i.push({from:s.from+c,insert:l+" "});let o=t.changes(i);return{changes:o,selection:t.selection.map(o,1)}}else if(e!=1&&r.some(i=>i.comment>=0)){let i=[];for(let{line:o,comment:s,token:l}of r)if(s>=0){let c=o.from+s,u=c+l.length;o.text[u-o.from]==" "&&u++,i.push({from:c,to:u})}return{changes:i}}return null}const lB=wd.define(),UIt=wd.define(),jIt=vn.define(),CAe=vn.define({combine(e){return Su(e,{minDepth:100,newGroupDelay:500,joinToEvent:(t,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,n)=>(r,a)=>t(r,a)||n(r,a)})}}),$Ae=fo.define({create(){return td.empty},update(e,t){let n=t.state.facet(CAe),r=t.annotation(lB);if(r){let l=il.fromTransaction(t,r.selection),c=r.side,u=c==0?e.undone:e.done;return l?u=ER(u,u.length,n.minDepth,l):u=kAe(u,t.startState.selection),new td(c==0?r.rest:u,c==0?u:r.rest)}let a=t.annotation(UIt);if((a=="full"||a=="before")&&(e=e.isolate()),t.annotation(Ui.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let i=il.fromTransaction(t),o=t.annotation(Ui.time),s=t.annotation(Ui.userEvent);return i?e=e.addChanges(i,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(a=="full"||a=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new td(e.done.map(il.fromJSON),e.undone.map(il.fromJSON))}});function XIt(e={}){return[$Ae,CAe.of(e),mn.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?RAe:t.inputType=="historyRedo"?cB:null;return r?(t.preventDefault(),r(n)):!1}})]}function xA(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let a=n.field($Ae,!1);if(!a)return!1;let i=a.pop(e,n,t);return i?(r(i),!0):!1}}const RAe=xA(0,!1),cB=xA(1,!1),YIt=xA(0,!0),VIt=xA(1,!0);class il{constructor(t,n,r,a,i){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=a,this.selectionsAfter=i}setSelAfter(t){return new il(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(a=>a.toJSON())}}static fromJSON(t){return new il(t.changes&&eo.fromJSON(t.changes),[],t.mapped&&id.fromJSON(t.mapped),t.startSelection&&_t.fromJSON(t.startSelection),t.selectionsAfter.map(_t.fromJSON))}static fromTransaction(t,n){let r=Ec;for(let a of t.startState.facet(jIt)){let i=a(t);i.length&&(r=r.concat(i))}return!r.length&&t.changes.empty?null:new il(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,Ec)}static selection(t){return new il(void 0,Ec,void 0,void 0,t)}}function ER(e,t,n,r){let a=t+1>n+20?t-n-1:0,i=e.slice(a,t);return i.push(r),i}function qIt(e,t){let n=[],r=!1;return e.iterChangedRanges((a,i)=>n.push(a,i)),t.iterChangedRanges((a,i,o,s)=>{for(let l=0;l=c&&o<=u&&(r=!0)}}),r}function WIt(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function PAe(e,t){return e.length?t.length?e.concat(t):e:t}const Ec=[],GIt=200;function kAe(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-GIt));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),ER(e,e.length-1,1e9,n.setSelAfter(r)))}else return[il.selection([t])]}function HIt(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function A3(e,t){if(!e.length)return e;let n=e.length,r=Ec;for(;n;){let a=ZIt(e[n-1],t,r);if(a.changes&&!a.changes.empty||a.effects.length){let i=e.slice(0,n);return i[n-1]=a,i}else t=a.mapped,n--,r=a.selectionsAfter}return r.length?[il.selection(r)]:Ec}function ZIt(e,t,n){let r=PAe(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):Ec,n);if(!e.changes)return il.selection(r);let a=e.changes.map(t),i=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(i):i;return new il(a,_r.mapEffects(e.effects,t),o,e.startSelection.map(i),r)}const KIt=/^(input\.type|delete)($|\.)/;class td{constructor(t,n,r=0,a=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=a}isolate(){return this.prevTime?new td(this.done,this.undone):this}addChanges(t,n,r,a,i){let o=this.done,s=o[o.length-1];return s&&s.changes&&!s.changes.empty&&t.changes&&(!r||KIt.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):TA(n,t))}function hs(e){return e.textDirectionAt(e.state.selection.main.head)==za.LTR}const NAe=e=>AAe(e,!hs(e)),IAe=e=>AAe(e,hs(e));function MAe(e,t){return xu(e,n=>n.empty?e.moveByGroup(n,t):TA(n,t))}const e4t=e=>MAe(e,!hs(e)),t4t=e=>MAe(e,hs(e));function n4t(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function wA(e,t,n){let r=ka(e).resolveInner(t.head),a=n?Cr.closedBy:Cr.openedBy;for(let l=t.head;;){let c=n?r.childAfter(l):r.childBefore(l);if(!c)break;n4t(e,c,a)?r=c:l=n?c.to:c.from}let i=r.type.prop(a),o,s;return i&&(o=n?Ju(e,r.from,1):Ju(e,r.to,-1))&&o.matched?s=n?o.end.to:o.end.from:s=n?r.to:r.from,_t.cursor(s,n?-1:1)}const r4t=e=>xu(e,t=>wA(e.state,t,!hs(e))),a4t=e=>xu(e,t=>wA(e.state,t,hs(e)));function DAe(e,t){return xu(e,n=>{if(!n.empty)return TA(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const LAe=e=>DAe(e,!1),QAe=e=>DAe(e,!0);function zAe(e){let t=e.scrollDOM.clientHeighto.empty?e.moveVertically(o,t,n.height):TA(o,t));if(a.eq(r.selection))return!1;let i;if(n.selfScroll){let o=e.coordsAtPos(r.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,c=s.bottom-n.marginBottom;o&&o.top>l&&o.bottomBAe(e,!1),uB=e=>BAe(e,!0);function gm(e,t,n){let r=e.lineBlockAt(t.head),a=e.moveToLineBoundary(t,n);if(a.head==t.head&&a.head!=(n?r.to:r.from)&&(a=e.moveToLineBoundary(t,n,!1)),!n&&a.head==r.from&&r.length){let i=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;i&&t.head!=r.from+i&&(a=_t.cursor(r.from+i))}return a}const i4t=e=>xu(e,t=>gm(e,t,!0)),o4t=e=>xu(e,t=>gm(e,t,!1)),s4t=e=>xu(e,t=>gm(e,t,!hs(e))),l4t=e=>xu(e,t=>gm(e,t,hs(e))),c4t=e=>xu(e,t=>_t.cursor(e.lineBlockAt(t.head).from,1)),u4t=e=>xu(e,t=>_t.cursor(e.lineBlockAt(t.head).to,-1));function d4t(e,t,n){let r=!1,a=qb(e.selection,i=>{let o=Ju(e,i.head,-1)||Ju(e,i.head,1)||i.head>0&&Ju(e,i.head-1,1)||i.headd4t(e,t);function Dc(e,t){let n=qb(e.state.selection,r=>{let a=t(r);return _t.range(r.anchor,a.head,a.goalColumn,a.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(Eu(e.state,n)),!0)}function FAe(e,t){return Dc(e,n=>e.moveByChar(n,t))}const UAe=e=>FAe(e,!hs(e)),jAe=e=>FAe(e,hs(e));function XAe(e,t){return Dc(e,n=>e.moveByGroup(n,t))}const p4t=e=>XAe(e,!hs(e)),m4t=e=>XAe(e,hs(e)),h4t=e=>Dc(e,t=>wA(e.state,t,!hs(e))),g4t=e=>Dc(e,t=>wA(e.state,t,hs(e)));function YAe(e,t){return Dc(e,n=>e.moveVertically(n,t))}const VAe=e=>YAe(e,!1),qAe=e=>YAe(e,!0);function WAe(e,t){return Dc(e,n=>e.moveVertically(n,t,zAe(e).height))}const Nce=e=>WAe(e,!1),Ice=e=>WAe(e,!0),O4t=e=>Dc(e,t=>gm(e,t,!0)),b4t=e=>Dc(e,t=>gm(e,t,!1)),v4t=e=>Dc(e,t=>gm(e,t,!hs(e))),y4t=e=>Dc(e,t=>gm(e,t,hs(e))),S4t=e=>Dc(e,t=>_t.cursor(e.lineBlockAt(t.head).from)),_4t=e=>Dc(e,t=>_t.cursor(e.lineBlockAt(t.head).to)),Mce=({state:e,dispatch:t})=>(t(Eu(e,{anchor:0})),!0),Dce=({state:e,dispatch:t})=>(t(Eu(e,{anchor:e.doc.length})),!0),Lce=({state:e,dispatch:t})=>(t(Eu(e,{anchor:e.selection.main.anchor,head:0})),!0),Qce=({state:e,dispatch:t})=>(t(Eu(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),E4t=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),x4t=({state:e,dispatch:t})=>{let n=CA(e).map(({from:r,to:a})=>_t.range(r,Math.min(a+1,e.doc.length)));return t(e.update({selection:_t.create(n),userEvent:"select"})),!0},T4t=({state:e,dispatch:t})=>{let n=qb(e.selection,r=>{let a=ka(e),i=a.resolveStack(r.from,1);if(r.empty){let o=a.resolveStack(r.from,-1);o.node.from>=i.node.from&&o.node.to<=i.node.to&&(i=o)}for(let o=i;o;o=o.next){let{node:s}=o;if((s.from=r.to||s.to>r.to&&s.from<=r.from)&&o.next)return _t.range(s.to,s.from)}return r});return n.eq(e.selection)?!1:(t(Eu(e,n)),!0)};function GAe(e,t){let{state:n}=e,r=n.selection,a=n.selection.ranges.slice();for(let i of n.selection.ranges){let o=n.doc.lineAt(i.head);if(t?o.to0)for(let s=i;;){let l=e.moveVertically(s,t);if(l.heado.to){a.some(c=>c.head==l.head)||a.push(l);break}else{if(l.head==s.head)break;s=l}}}return a.length==r.ranges.length?!1:(e.dispatch(Eu(n,_t.create(a,a.length-1))),!0)}const w4t=e=>GAe(e,!1),C4t=e=>GAe(e,!0),$4t=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=_t.create([n.main]):n.main.empty||(r=_t.create([_t.cursor(n.main.head)])),r?(t(Eu(e,r)),!0):!1};function hx(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,a=r.changeByRange(i=>{let{from:o,to:s}=i;if(o==s){let l=t(i);lo&&(n="delete.forward",l=Ww(e,l,!0)),o=Math.min(o,l),s=Math.max(s,l)}else o=Ww(e,o,!1),s=Ww(e,s,!0);return o==s?{range:i}:{changes:{from:o,to:s},range:_t.cursor(o,oa(e)))r.between(t,t,(a,i)=>{at&&(t=n?i:a)});return t}const HAe=(e,t,n)=>hx(e,r=>{let a=r.from,{state:i}=e,o=i.doc.lineAt(a),s,l;if(n&&!t&&a>o.from&&aHAe(e,!1,!0),ZAe=e=>HAe(e,!0,!1),KAe=(e,t)=>hx(e,n=>{let r=n.head,{state:a}=e,i=a.doc.lineAt(r),o=a.charCategorizer(r);for(let s=null;;){if(r==(t?i.to:i.from)){r==n.head&&i.number!=(t?a.doc.lines:1)&&(r+=t?1:-1);break}let l=_o(i.text,r-i.from,t)+i.from,c=i.text.slice(Math.min(r,l)-i.from,Math.max(r,l)-i.from),u=o(c);if(s!=null&&u!=s)break;(c!=" "||r!=n.head)&&(s=u),r=l}return r}),JAe=e=>KAe(e,!1),R4t=e=>KAe(e,!0),P4t=e=>hx(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headhx(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),A4t=e=>hx(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:pa.of(["",""])},range:_t.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},I4t=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let a=r.from,i=e.doc.lineAt(a),o=a==i.from?a-1:_o(i.text,a-i.from,!1)+i.from,s=a==i.to?a+1:_o(i.text,a-i.from,!0)+i.from;return{changes:{from:o,to:s,insert:e.doc.slice(a,s).append(e.doc.slice(o,a))},range:_t.cursor(s)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function CA(e){let t=[],n=-1;for(let r of e.selection.ranges){let a=e.doc.lineAt(r.from),i=e.doc.lineAt(r.to);if(!r.empty&&r.to==i.from&&(i=e.doc.lineAt(r.to-1)),n>=a.number){let o=t[t.length-1];o.to=i.to,o.ranges.push(r)}else t.push({from:a.from,to:i.to,ranges:[r]});n=i.number+1}return t}function eNe(e,t,n){if(e.readOnly)return!1;let r=[],a=[];for(let i of CA(e)){if(n?i.to==e.doc.length:i.from==0)continue;let o=e.doc.lineAt(n?i.to+1:i.from-1),s=o.length+1;if(n){r.push({from:i.to,to:o.to},{from:i.from,insert:o.text+e.lineBreak});for(let l of i.ranges)a.push(_t.range(Math.min(e.doc.length,l.anchor+s),Math.min(e.doc.length,l.head+s)))}else{r.push({from:o.from,to:i.from},{from:i.to,insert:e.lineBreak+o.text});for(let l of i.ranges)a.push(_t.range(l.anchor-s,l.head-s))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:_t.create(a,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const M4t=({state:e,dispatch:t})=>eNe(e,t,!1),D4t=({state:e,dispatch:t})=>eNe(e,t,!0);function tNe(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of CA(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});let a=e.changes(r);return t(e.update({changes:a,selection:e.selection.map(a,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const L4t=({state:e,dispatch:t})=>tNe(e,t,!1),Q4t=({state:e,dispatch:t})=>tNe(e,t,!0),z4t=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(CA(t).map(({from:a,to:i})=>(a>0?a--:i{let i;if(e.lineWrapping){let o=e.lineBlockAt(a.head),s=e.coordsAtPos(a.head,a.assoc||1);s&&(i=o.bottom+e.documentTop-s.bottom+e.defaultLineHeight/2)}return e.moveVertically(a,!0,i)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function B4t(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=ka(e).resolveInner(t),r=n.childBefore(t),a=n.childAfter(t),i;return r&&a&&r.to<=t&&a.from>=t&&(i=r.type.prop(Cr.closedBy))&&i.indexOf(a.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(a.from).from&&!/\S/.test(e.sliceDoc(r.to,a.from))?{from:r.to,to:a.from}:null}const zce=nNe(!1),F4t=nNe(!0);function nNe(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(a=>{let{from:i,to:o}=a,s=t.doc.lineAt(i),l=!e&&i==o&&B4t(t,i);e&&(i=o=(o<=s.to?s:t.doc.lineAt(o)).to);let c=new hA(t,{simulateBreak:i,simulateDoubleBreak:!!l}),u=hY(c,i);for(u==null&&(u=Ou(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));os.from&&i{let a=[];for(let o=r.from;o<=r.to;){let s=e.doc.lineAt(o);s.number>n&&(r.empty||r.to>s.from)&&(t(s,a,r),n=s.number),o=s.to+1}let i=e.changes(a);return{changes:a,range:_t.range(i.mapPos(r.anchor,1),i.mapPos(r.head,1))}})}const U4t=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new hA(e,{overrideIndentation:i=>{let o=n[i];return o??-1}}),a=WY(e,(i,o,s)=>{let l=hY(r,i.from);if(l==null)return;/\S/.test(i.text)||(l=0);let c=/^\s*/.exec(i.text)[0],u=U_(e,l);(c!=u||s.frome.readOnly?!1:(t(e.update(WY(e,(n,r)=>{r.push({from:n.from,insert:e.facet(Xb)})}),{userEvent:"input.indent"})),!0),aNe=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(WY(e,(n,r)=>{let a=/^\s*/.exec(n.text)[0];if(!a)return;let i=Ou(a,e.tabSize),o=0,s=U_(e,Math.max(0,i-fR(e)));for(;o(e.setTabFocusMode(),!0),X4t=[{key:"Ctrl-b",run:NAe,shift:UAe,preventDefault:!0},{key:"Ctrl-f",run:IAe,shift:jAe},{key:"Ctrl-p",run:LAe,shift:VAe},{key:"Ctrl-n",run:QAe,shift:qAe},{key:"Ctrl-a",run:c4t,shift:S4t},{key:"Ctrl-e",run:u4t,shift:_4t},{key:"Ctrl-d",run:ZAe},{key:"Ctrl-h",run:dB},{key:"Ctrl-k",run:P4t},{key:"Ctrl-Alt-h",run:JAe},{key:"Ctrl-o",run:N4t},{key:"Ctrl-t",run:I4t},{key:"Ctrl-v",run:uB}],Y4t=[{key:"ArrowLeft",run:NAe,shift:UAe,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e4t,shift:p4t,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:s4t,shift:v4t,preventDefault:!0},{key:"ArrowRight",run:IAe,shift:jAe,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:t4t,shift:m4t,preventDefault:!0},{mac:"Cmd-ArrowRight",run:l4t,shift:y4t,preventDefault:!0},{key:"ArrowUp",run:LAe,shift:VAe,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Mce,shift:Lce},{mac:"Ctrl-ArrowUp",run:Ace,shift:Nce},{key:"ArrowDown",run:QAe,shift:qAe,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Dce,shift:Qce},{mac:"Ctrl-ArrowDown",run:uB,shift:Ice},{key:"PageUp",run:Ace,shift:Nce},{key:"PageDown",run:uB,shift:Ice},{key:"Home",run:o4t,shift:b4t,preventDefault:!0},{key:"Mod-Home",run:Mce,shift:Lce},{key:"End",run:i4t,shift:O4t,preventDefault:!0},{key:"Mod-End",run:Dce,shift:Qce},{key:"Enter",run:zce,shift:zce},{key:"Mod-a",run:E4t},{key:"Backspace",run:dB,shift:dB,preventDefault:!0},{key:"Delete",run:ZAe,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:JAe,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:R4t,preventDefault:!0},{mac:"Mod-Backspace",run:k4t,preventDefault:!0},{mac:"Mod-Delete",run:A4t,preventDefault:!0}].concat(X4t.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),V4t=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:r4t,shift:h4t},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:a4t,shift:g4t},{key:"Alt-ArrowUp",run:M4t},{key:"Shift-Alt-ArrowUp",run:L4t},{key:"Alt-ArrowDown",run:D4t},{key:"Shift-Alt-ArrowDown",run:Q4t},{key:"Mod-Alt-ArrowUp",run:w4t},{key:"Mod-Alt-ArrowDown",run:C4t},{key:"Escape",run:$4t},{key:"Mod-Enter",run:F4t},{key:"Alt-l",mac:"Ctrl-l",run:x4t},{key:"Mod-i",run:T4t,preventDefault:!0},{key:"Mod-[",run:aNe},{key:"Mod-]",run:rNe},{key:"Mod-Alt-\\",run:U4t},{key:"Shift-Mod-k",run:z4t},{key:"Shift-Mod-\\",run:f4t},{key:"Mod-/",run:MIt},{key:"Alt-A",run:LIt},{key:"Ctrl-m",mac:"Shift-Alt-m",run:j4t}].concat(Y4t),q4t={key:"Tab",run:rNe,shift:aNe},Bce=typeof String.prototype.normalize=="function"?e=>e.normalize("NFKD"):e=>e;class rb{constructor(t,n,r=0,a=t.length,i,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,a),this.bufferStart=r,this.normalize=i?s=>i(Bce(s)):Bce,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ks(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let n=GX(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=Wu(t);let a=this.normalize(n);if(a.length)for(let i=0,o=r;;i++){let s=a.charCodeAt(i),l=this.match(s,o,this.bufferPos+this.bufferStart);if(i==a.length-1){if(l)return this.value=l,this;break}o==r&&ithis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,a=r+n[0].length;if(this.matchPos=xR(this.text,a+(r==a?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,a,n)))return this.value={from:r,to:a,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||a.to<=n){let s=new S0(n,t.sliceString(n,r));return N3.set(t,s),s}if(a.from==n&&a.to==r)return a;let{text:i,from:o}=a;return o>n&&(i=t.sliceString(n,o)+i,o=n),a.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,a=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,a,n)))return this.value={from:r,to:a,match:n},this.matchPos=xR(this.text,a+(r==a?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=S0.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(oNe.prototype[Symbol.iterator]=sNe.prototype[Symbol.iterator]=function(){return this});function W4t(e){try{return new RegExp(e,GY),!0}catch{return!1}}function xR(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}const G4t=e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:r,result:a}=cwt(e,{label:t.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:t.phrase("go")});return a.then(i=>{let o=i&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(i.elements.line.value);if(!o){e.dispatch({effects:r});return}let s=t.doc.lineAt(t.selection.main.head),[,l,c,u,d]=o,f=u?+u.slice(1):0,m=c?+c:s.number;if(c&&d){let O=m/100;l&&(O=O*(l=="-"?-1:1)+s.number/t.doc.lines),m=Math.round(t.doc.lines*O)}else c&&l&&(m=m*(l=="-"?-1:1)+s.number);let h=t.doc.line(Math.max(1,Math.min(t.doc.lines,m))),g=_t.cursor(h.from+Math.max(0,Math.min(f,h.length)));e.dispatch({effects:[r,mn.scrollIntoView(g.from,{y:"center"})],selection:g})}),!0},H4t={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Z4t=vn.define({combine(e){return Su(e,H4t,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function K4t(e){return[r5t,n5t]}const J4t=Zn.mark({class:"cm-selectionMatch"}),e5t=Zn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Fce(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=si.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=si.Word)}function t5t(e,t,n,r){return e(t.sliceDoc(n,n+1))==si.Word&&e(t.sliceDoc(r-1,r))==si.Word}const n5t=vi.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Z4t),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Zn.none;let a=r.main,i,o=null;if(a.empty){if(!t.highlightWordAroundCursor)return Zn.none;let l=n.wordAt(a.head);if(!l)return Zn.none;o=n.charCategorizer(a.head),i=n.sliceDoc(l.from,l.to)}else{let l=a.to-a.from;if(l200)return Zn.none;if(t.wholeWords){if(i=n.sliceDoc(a.from,a.to),o=n.charCategorizer(a.head),!(Fce(o,n,a.from,a.to)&&t5t(o,n,a.from,a.to)))return Zn.none}else if(i=n.sliceDoc(a.from,a.to),!i)return Zn.none}let s=[];for(let l of e.visibleRanges){let c=new rb(n.doc,i,l.from,l.to);for(;!c.next().done;){let{from:u,to:d}=c.value;if((!o||Fce(o,n,u,d))&&(a.empty&&u<=a.from&&d>=a.to?s.push(e5t.range(u,d)):(u>=a.to||d<=a.from)&&s.push(J4t.range(u,d)),s.length>t.maxMatches))return Zn.none}}return Zn.set(s)}},{decorations:e=>e.decorations}),r5t=mn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),a5t=({state:e,dispatch:t})=>{let{selection:n}=e,r=_t.create(n.ranges.map(a=>e.wordAt(a.head)||_t.cursor(a.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function i5t(e,t){let{main:n,ranges:r}=e.selection,a=e.wordAt(n.head),i=a&&a.from==n.from&&a.to==n.to;for(let o=!1,s=new rb(e.doc,t,r[r.length-1].to);;)if(s.next(),s.done){if(o)return null;s=new rb(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),o=!0}else{if(o&&r.some(l=>l.from==s.value.from))continue;if(i){let l=e.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const o5t=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(i=>i.from===i.to))return a5t({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(i=>e.sliceDoc(i.from,i.to)!=r))return!1;let a=i5t(e,r);return a?(t(e.update({selection:e.selection.addRange(_t.range(a.from,a.to),!1),effects:mn.scrollIntoView(a.to)})),!0):!1},Wb=vn.define({combine(e){return Su(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new y5t(t),scrollToMatch:t=>mn.scrollIntoView(t)})}});class lNe{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||W4t(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord,this.test=t.test}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?` -`:r=="r"?"\r":r=="t"?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord&&this.test==t.test}create(){return this.regexp?new f5t(this):new c5t(this)}getCursor(t,n=0,r){let a=t.doc?t:Jr.create({doc:t});return r==null&&(r=a.doc.length),this.regexp?FO(this,a,n,r):BO(this,a,n,r)}}class cNe{constructor(t){this.spec=t}}function s5t(e,t,n){return(r,a,i,o)=>{if(n&&!n(r,a,i,o))return!1;let s=r>=o&&a<=o+i.length?i.slice(r-o,a-o):t.doc.sliceString(r,a);return e(s,t,r,a)}}function BO(e,t,n,r){let a;return e.wholeWord&&(a=l5t(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(a=s5t(e.test,t,a)),new rb(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),a)}function l5t(e,t){return(n,r,a,i)=>((i>n||i+a.length=n)return null;a.push(r.value)}return a}highlight(t,n,r,a){let i=BO(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!i.next().done;)a(i.value.from,i.value.to)}}function u5t(e,t,n){return(r,a,i)=>(!n||n(r,a,i))&&e(i[0],t,r,a)}function FO(e,t,n,r){let a;return e.wholeWord&&(a=d5t(t.charCategorizer(t.selection.main.head))),e.test&&(a=u5t(e.test,t,a)),new oNe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:a},n,r)}function TR(e,t){return e.slice(_o(e,t,!1),t)}function wR(e,t){return e.slice(t,_o(e,t))}function d5t(e){return(t,n,r)=>!r[0].length||(e(TR(r.input,r.index))!=si.Word||e(wR(r.input,r.index))!=si.Word)&&(e(wR(r.input,r.index+r[0].length))!=si.Word||e(TR(r.input,r.index+r[0].length))!=si.Word)}class f5t extends cNe{nextMatch(t,n,r){let a=FO(this.spec,t,r,t.doc.length).next();return a.done&&(a=FO(this.spec,t,0,n).next()),a.done?null:a.value}prevMatchInRange(t,n,r){for(let a=1;;a++){let i=Math.max(n,r-a*1e4),o=FO(this.spec,t,i,r),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==n||s.from>i+10))return s;if(i==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(n,r)=>{if(r=="&")return t.match[0];if(r=="$")return"$";for(let a=r.length;a>0;a--){let i=+r.slice(0,a);if(i>0&&i=n)return null;a.push(r.value)}return a}highlight(t,n,r,a){let i=FO(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!i.next().done;)a(i.value.from,i.value.to)}}const J_=_r.define(),HY=_r.define(),Lp=fo.define({create(e){return new I3(fB(e).create(),null)},update(e,t){for(let n of t.effects)n.is(J_)?e=new I3(n.value.create(),e.panel):n.is(HY)&&(e=new I3(e.query,n.value?ZY:null));return e},provide:e=>B_.from(e,t=>t.panel)});class I3{constructor(t,n){this.query=t,this.panel=n}}const p5t=Zn.mark({class:"cm-searchMatch"}),m5t=Zn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),h5t=vi.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Lp))}update(e){let t=e.state.field(Lp);(t!=e.startState.field(Lp)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return Zn.none;let{view:n}=this,r=new _f;for(let a=0,i=n.visibleRanges,o=i.length;ai[a+1].from-500;)l=i[++a].to;e.highlight(n.state,s,l,(c,u)=>{let d=n.state.selection.ranges.some(f=>f.from==c&&f.to==u);r.add(c,u,d?m5t:p5t)})}return r.finish()}},{decorations:e=>e.decorations});function gx(e){return t=>{let n=t.state.field(Lp,!1);return n&&n.query.spec.valid?e(t,n):fNe(t)}}const CR=gx((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let a=_t.single(r.from,r.to),i=e.state.facet(Wb);return e.dispatch({selection:a,effects:[KY(e,r),i.scrollToMatch(a.main,e)],userEvent:"select.search"}),dNe(e),!0}),$R=gx((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,a=t.prevMatch(n,r,r);if(!a)return!1;let i=_t.single(a.from,a.to),o=e.state.facet(Wb);return e.dispatch({selection:i,effects:[KY(e,a),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),dNe(e),!0}),g5t=gx((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:_t.create(n.map(r=>_t.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),O5t=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:a}=n.main,i=[],o=0;for(let s=new rb(e.doc,e.sliceDoc(r,a));!s.next().done;){if(i.length>1e3)return!1;s.value.from==r&&(o=i.length),i.push(_t.range(s.value.from,s.value.to))}return t(e.update({selection:_t.create(i,o),userEvent:"select.search.matches"})),!0},Uce=gx((e,{query:t})=>{let{state:n}=e,{from:r,to:a}=n.selection.main;if(n.readOnly)return!1;let i=t.nextMatch(n,r,r);if(!i)return!1;let o=i,s=[],l,c,u=[];o.from==r&&o.to==a&&(c=n.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:c}),o=t.nextMatch(n,o.from,o.to),u.push(mn.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+".")));let d=e.state.changes(s);return o&&(l=_t.single(o.from,o.to).map(d),u.push(KY(e,o)),u.push(n.facet(Wb).scrollToMatch(l.main,e))),e.dispatch({changes:d,selection:l,effects:u,userEvent:"input.replace"}),!0}),b5t=gx((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(a=>{let{from:i,to:o}=a;return{from:i,to:o,insert:t.getReplacement(a)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:mn.announce.of(r),userEvent:"input.replace.all"}),!0});function ZY(e){return e.state.facet(Wb).createPanel(e)}function fB(e,t){var n,r,a,i,o;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let c=e.facet(Wb);return new lNe({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:c.caseSensitive,literal:(a=t==null?void 0:t.literal)!==null&&a!==void 0?a:c.literal,regexp:(i=t==null?void 0:t.regexp)!==null&&i!==void 0?i:c.regexp,wholeWord:(o=t==null?void 0:t.wholeWord)!==null&&o!==void 0?o:c.wholeWord})}function uNe(e){let t=fY(e,ZY);return t&&t.dom.querySelector("[main-field]")}function dNe(e){let t=uNe(e);t&&t==e.root.activeElement&&t.select()}const fNe=e=>{let t=e.state.field(Lp,!1);if(t&&t.panel){let n=uNe(e);if(n&&n!=e.root.activeElement){let r=fB(e.state,t.query.spec);r.valid&&e.dispatch({effects:J_.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[HY.of(!0),t?J_.of(fB(e.state,t.query.spec)):_r.appendConfig.of(_5t)]});return!0},pNe=e=>{let t=e.state.field(Lp,!1);if(!t||!t.panel)return!1;let n=fY(e,ZY);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:HY.of(!1)}),!0},v5t=[{key:"Mod-f",run:fNe,scope:"editor search-panel"},{key:"F3",run:CR,shift:$R,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:CR,shift:$R,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:pNe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:O5t},{key:"Mod-Alt-g",run:G4t},{key:"Mod-d",run:o5t,preventDefault:!0}];class y5t{constructor(t){this.view=t;let n=this.query=t.state.field(Lp).query.spec;this.commit=this.commit.bind(this),this.searchField=Na("input",{value:n.search,placeholder:xl(t,"Find"),"aria-label":xl(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Na("input",{value:n.replace,placeholder:xl(t,"Replace"),"aria-label":xl(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Na("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Na("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Na("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(a,i,o){return Na("button",{class:"cm-button",name:a,onclick:i,type:"button"},o)}this.dom=Na("div",{onkeydown:a=>this.keydown(a),class:"cm-search"},[this.searchField,r("next",()=>CR(t),[xl(t,"next")]),r("prev",()=>$R(t),[xl(t,"previous")]),r("select",()=>g5t(t),[xl(t,"all")]),Na("label",null,[this.caseField,xl(t,"match case")]),Na("label",null,[this.reField,xl(t,"regexp")]),Na("label",null,[this.wordField,xl(t,"by word")]),...t.state.readOnly?[]:[Na("br"),this.replaceField,r("replace",()=>Uce(t),[xl(t,"replace")]),r("replaceAll",()=>b5t(t),[xl(t,"replace all")])],Na("button",{name:"close",onclick:()=>pNe(t),"aria-label":xl(t,"close"),type:"button"},["×"])])}commit(){let t=new lNe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:J_.of(t)}))}keydown(t){vTt(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?$R:CR)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),Uce(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(J_)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Wb).top}}function xl(e,t){return e.state.phrase(t)}const Gw=30,Hw=/[\s\.,:;?!]/;function KY(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),a=e.state.doc.lineAt(n).to,i=Math.max(r.from,t-Gw),o=Math.min(a,n+Gw),s=e.state.sliceDoc(i,o);if(i!=r.from){for(let l=0;ls.length-Gw;l--)if(!Hw.test(s[l-1])&&Hw.test(s[l])){s=s.slice(0,l);break}}return mn.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const S5t=mn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),_5t=[Lp,Af.low(h5t),S5t];var jce=function(t){t===void 0&&(t={});var n=[];t.closeBracketsKeymap!==!1&&(n=n.concat(r$t)),t.defaultKeymap!==!1&&(n=n.concat(V4t)),t.searchKeymap!==!1&&(n=n.concat(v5t)),t.historyKeymap!==!1&&(n=n.concat(JIt)),t.foldKeymap!==!1&&(n=n.concat(Fwt)),t.completionKeymap!==!1&&(n=n.concat(XPe)),t.lintKeymap!==!1&&(n=n.concat(OIt));var r=[];return t.lineNumbers!==!1&&r.push(vwt()),t.highlightActiveLineGutter!==!1&&r.push(_wt()),t.highlightSpecialChars!==!1&&r.push(DTt()),t.history!==!1&&r.push(XIt()),t.foldGutter!==!1&&r.push(Ywt()),t.drawSelection!==!1&&r.push(TTt()),t.dropCursor!==!1&&r.push(PTt()),t.allowMultipleSelections!==!1&&r.push(Jr.allowMultipleSelections.of(!0)),t.indentOnInput!==!1&&r.push(Nwt()),t.syntaxHighlighting!==!1&&r.push(OY(Gwt,{fallback:!0})),t.bracketMatching!==!1&&r.push(nCt()),t.closeBrackets!==!1&&r.push(J2t()),t.autocompletion!==!1&&r.push(u$t()),t.rectangularSelection!==!1&&r.push(HTt()),t.crosshairCursor!==!1&&r.push(JTt()),t.highlightActiveLine!==!1&&r.push(UTt()),t.highlightSelectionMatches!==!1&&r.push(K4t()),t.tabSize&&typeof t.tabSize=="number"&&r.push(Xb.of(" ".repeat(t.tabSize))),r.concat([jb.of(n.flat())]).filter(Boolean)};const E5t="#e5c07b",Xce="#e06c75",x5t="#56b6c2",T5t="#ffffff",U2="#abb2bf",pB="#7d8799",w5t="#61afef",C5t="#98c379",Yce="#d19a66",$5t="#c678dd",R5t="#21252b",Vce="#2c313a",qce="#282c34",M3="#353a42",P5t="#3E4451",Wce="#528bff",k5t=mn.theme({"&":{color:U2,backgroundColor:qce},".cm-content":{caretColor:Wce},".cm-cursor, .cm-dropCursor":{borderLeftColor:Wce},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:P5t},".cm-panels":{backgroundColor:R5t,color:U2},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:qce,color:pB,border:"none"},".cm-activeLineGutter":{backgroundColor:Vce},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:M3},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:M3,borderBottomColor:M3},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Vce,color:U2}}},{dark:!0}),A5t=Yb.define([{tag:G.keyword,color:$5t},{tag:[G.name,G.deleted,G.character,G.propertyName,G.macroName],color:Xce},{tag:[G.function(G.variableName),G.labelName],color:w5t},{tag:[G.color,G.constant(G.name),G.standard(G.name)],color:Yce},{tag:[G.definition(G.name),G.separator],color:U2},{tag:[G.typeName,G.className,G.number,G.changed,G.annotation,G.modifier,G.self,G.namespace],color:E5t},{tag:[G.operator,G.operatorKeyword,G.url,G.escape,G.regexp,G.link,G.special(G.string)],color:x5t},{tag:[G.meta,G.comment],color:pB},{tag:G.strong,fontWeight:"bold"},{tag:G.emphasis,fontStyle:"italic"},{tag:G.strikethrough,textDecoration:"line-through"},{tag:G.link,color:pB,textDecoration:"underline"},{tag:G.heading,fontWeight:"bold",color:Xce},{tag:[G.atom,G.bool,G.special(G.variableName)],color:Yce},{tag:[G.processingInstruction,G.string,G.inserted],color:C5t},{tag:G.invalid,color:T5t}]),N5t=[k5t,OY(A5t)];var I5t=function(t){t===void 0&&(t={});var{indentWithTab:n=!0,editable:r=!0,readOnly:a=!1,theme:i="light",placeholder:o="",basicSetup:s=!0}=t,l=[],c=mn.theme({"&":{backgroundColor:"#fff"}},{dark:!1});switch(n&&l.unshift(jb.of([q4t])),s&&(typeof s=="boolean"?l.unshift(jce()):l.unshift(jce(s))),o&&l.unshift(VTt(o)),i){case"light":l.push(c);break;case"dark":l.push(N5t);break;case"none":break;default:l.push(i);break}return r===!1&&l.push(mn.editable.of(!1)),a&&l.push(Jr.readOnly.of(!0)),[...l]},M5t=e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(t=>!t.empty)}),Gce=wd.define();function D5t(e){var{value:t,selection:n,onChange:r,onStatistics:a,onCreateEditor:i,onUpdate:o,extensions:s=[],autoFocus:l,theme:c="light",height:u="",minHeight:d="",maxHeight:f="",placeholder:m="",width:h="",minWidth:g="",maxWidth:O="",editable:v=!0,readOnly:y=!1,indentWithTab:S=!0,basicSetup:C=!0,root:_,initialState:w}=e,[T,A]=p.useState(),[k,I]=p.useState(),[M,Q]=p.useState(),F=mn.theme({"&":{height:u,minHeight:d,maxHeight:f,width:h,minWidth:g,maxWidth:O}}),L=mn.updateListener.of($=>{if($.docChanged&&typeof r=="function"&&!$.transactions.some(B=>B.annotation(Gce))){var P=$.state.doc,z=P.toString();r(z,$)}a&&a(M5t($))}),U=I5t({theme:c,editable:v,readOnly:y,placeholder:m,indentWithTab:S,basicSetup:C}),R=[L,F,...U];return o&&typeof o=="function"&&R.push(mn.updateListener.of(o)),R=R.concat(s),p.useEffect(()=>{if(T&&!M){var $={doc:t,selection:n,extensions:R},P=w?Jr.fromJSON(w.json,$,w.fields):Jr.create($);if(Q(P),!k){var z=new mn({state:P,parent:T,root:_});I(z),i&&i(z,P)}}return()=>{k&&(Q(void 0),I(void 0))}},[T,M]),p.useEffect(()=>A(e.container),[e.container]),p.useEffect(()=>()=>{k&&(k.destroy(),I(void 0))},[k]),p.useEffect(()=>{l&&k&&k.focus()},[l,k]),p.useEffect(()=>{k&&k.dispatch({effects:_r.reconfigure.of(R)})},[c,s,u,d,f,h,g,O,m,v,y,S,C,r,o]),p.useEffect(()=>{if(t!==void 0){var $=k?k.state.doc.toString():"";k&&t!==$&&k.dispatch({changes:{from:0,to:$.length,insert:t||""},annotations:[Gce.of(!0)]})}},[t,k]),{state:M,setState:Q,view:k,setView:I,container:T,setContainer:A}}var L5t=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],mNe=p.forwardRef((e,t)=>{var{className:n,value:r="",selection:a,extensions:i=[],onChange:o,onStatistics:s,onCreateEditor:l,onUpdate:c,autoFocus:u,theme:d="light",height:f,minHeight:m,maxHeight:h,width:g,minWidth:O,maxWidth:v,basicSetup:y,placeholder:S,indentWithTab:C,editable:_,readOnly:w,root:T,initialState:A}=e,k=jU(e,L5t),I=p.useRef(null),{state:M,view:Q,container:F}=D5t({container:I.current,root:T,value:r,autoFocus:u,theme:d,height:f,minHeight:m,maxHeight:h,width:g,minWidth:O,maxWidth:v,basicSetup:y,placeholder:S,indentWithTab:C,editable:_,readOnly:w,selection:a,onChange:o,onStatistics:s,onCreateEditor:l,onUpdate:c,extensions:i,initialState:A});if(p.useImperativeHandle(t,()=>({editor:I.current,state:M,view:Q}),[I,F,M,Q]),typeof r!="string")throw new Error("value must be typeof string but got "+typeof r);var L=typeof d=="string"?"cm-theme-"+d:"cm-theme";return x.jsx("div",Re({ref:I,className:""+L+(n?" "+n:"")},k))});mNe.displayName="CodeMirror";var hNe=typeof global=="object"&&global&&global.Object===Object&&global,Q5t=typeof self=="object"&&self&&self.Object===Object&&self,Cd=hNe||Q5t||Function("return this")(),hd=Cd.Symbol,gNe=Object.prototype,z5t=gNe.hasOwnProperty,B5t=gNe.toString,sy=hd?hd.toStringTag:void 0;function F5t(e){var t=z5t.call(e,sy),n=e[sy];try{e[sy]=void 0;var r=!0}catch{}var a=B5t.call(e);return r&&(t?e[sy]=n:delete e[sy]),a}var U5t=Object.prototype,j5t=U5t.toString;function X5t(e){return j5t.call(e)}var Y5t="[object Null]",V5t="[object Undefined]",Hce=hd?hd.toStringTag:void 0;function _g(e){return e==null?e===void 0?V5t:Y5t:Hce&&Hce in Object(e)?F5t(e):X5t(e)}function Om(e){return e!=null&&typeof e=="object"}var q5t="[object Symbol]";function JY(e){return typeof e=="symbol"||Om(e)&&_g(e)==q5t}function ONe(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n0){if(++t>=f3t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function g3t(e){return function(){return e}}var RR=(function(){try{var e=xg(Object,"defineProperty");return e({},"",{}),e}catch{}})(),O3t=RR?function(e,t){return RR(e,"toString",{configurable:!0,enumerable:!1,value:g3t(t),writable:!0})}:vNe,SNe=h3t(O3t);function b3t(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=x3t}function Ox(e){return e!=null&&TNe(e.length)&&!eV(e)}function T3t(e,t,n){if(!bm(n))return!1;var r=typeof t;return(r=="number"?Ox(n)&&_Ne(t,n.length):r=="string"&&t in n)?$A(n[t],e):!1}function w3t(e){return E3t(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&T3t(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r-1}function D6t(e,t){var n=this.__data__,r=kA(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function If(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ta?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r1),i}),Gb(e,BNe(e),n),r&&(n=j2(n,HDt|ZDt|KDt,GDt));for(var a=t.length;a--;)WDt(n,t[a]);return n}),_ue;function e8t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var t8t=qr(_ue||(_ue=e8t([` +`);r=a<0?n:n.slice(0,a)}return t+r.length>this.to?r.slice(0,this.to-t):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(t,n,r=0){this.block=PR.create(t,r,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(t,n,r=0){this.startContext(this.parser.getNodeType(t),n,r)}addNode(t,n,r){typeof t=="number"&&(t=new Sa(this.parser.nodeSet.types[t],ob,ob,(r??this.prevLineEnd())-n)),this.block.addChild(t,n-this.block.from)}addElement(t){this.block.addChild(t.toTree(this.parser.nodeSet),t.from-this.block.from)}addLeafElement(t,n){this.addNode(this.buffer.writeElements(yB(n.children,t.marks),-n.from).finish(n.type,n.to-n.from),n.from)}finishContext(){let t=this.stack.pop(),n=this.stack[this.stack.length-1];n.addChild(t.toTree(this.parser.nodeSet),t.from-n.from),this.block=n}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(t){return this.ranges.length>1?oAe(this.ranges,0,t.topNode,this.ranges[0].from,this.reusePlaceholders):t}finishLeaf(t){for(let r of t.parsers)if(r.finish(this,t))return;let n=yB(this.parser.parseInline(t.content,t.start),t.marks);this.addNode(this.buffer.writeElements(n,-t.start).finish(on.Paragraph,t.content.length),t.start)}elt(t,n,r,a){return typeof t=="string"?ia(this.parser.getNodeType(t),n,r,a):new cAe(t,n)}get buffer(){return new lAe(this.parser.nodeSet)}}function oAe(e,t,n,r,a){let i=e[t].to,o=[],s=[],l=n.from+r;function c(u,d){for(;d?u>=i:u>i;){let f=e[t+1].from-i;r+=f,u+=f,t++,i=e[t].to}}for(let u=n.firstChild;u;u=u.nextSibling){c(u.from+r,!0);let d=u.from+r,f,m=a.get(u.tree);m?f=m:u.to+r>i?(f=oAe(e,t,u,r,a),c(u.to+r,!1)):f=u.toTree(),o.push(f),s.push(d-l)}return c(n.to+r,!1),new Sa(n.type,o,s,n.to+r-l,n.tree?n.tree.propValues:void 0)}class AA extends OY{constructor(t,n,r,a,i,o,s,l,c){super(),this.nodeSet=t,this.blockParsers=n,this.leafBlockParsers=r,this.blockNames=a,this.endLeafBlock=i,this.skipContextMarkup=o,this.inlineParsers=s,this.inlineNames=l,this.wrappers=c,this.nodeTypes=Object.create(null);for(let u of t.types)this.nodeTypes[u.name]=u.id}createParse(t,n,r){let a=new UPt(this,t,n,r);for(let i of this.wrappers)a=i(a,t,n,r);return a}configure(t){let n=vB(t);if(!n)return this;let{nodeSet:r,skipContextMarkup:a}=this,i=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),s=this.blockNames.slice(),l=this.inlineParsers.slice(),c=this.inlineNames.slice(),u=this.endLeafBlock.slice(),d=this.wrappers;if(uy(n.defineNodes)){a=Object.assign({},a);let f=r.types.slice(),m;for(let h of n.defineNodes){let{name:g,block:O,composite:v,style:y}=typeof h=="string"?{name:h}:h;if(f.some(_=>_.name==g))continue;v&&(a[f.length]=(_,w,T)=>v(w,T,_.value));let S=f.length,C=v?["Block","BlockContext"]:O?S>=on.ATXHeading1&&S<=on.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;f.push(oo.define({id:S,name:g,props:C&&[[Cr.group,C]]})),y&&(m||(m={}),Array.isArray(y)||y instanceof Hu?m[g]=y:Object.assign(m,y))}r=new px(f),m&&(r=r.extend(Zl(m)))}if(uy(n.props)&&(r=r.extend(...n.props)),uy(n.remove))for(let f of n.remove){let m=this.blockNames.indexOf(f),h=this.inlineNames.indexOf(f);m>-1&&(i[m]=o[m]=void 0),h>-1&&(l[h]=void 0)}if(uy(n.parseBlock))for(let f of n.parseBlock){let m=s.indexOf(f.name);if(m>-1)i[m]=f.parse,o[m]=f.leaf;else{let h=f.before?Zw(s,f.before):f.after?Zw(s,f.after)+1:s.length-1;i.splice(h,0,f.parse),o.splice(h,0,f.leaf),s.splice(h,0,f.name)}f.endLeaf&&u.push(f.endLeaf)}if(uy(n.parseInline))for(let f of n.parseInline){let m=c.indexOf(f.name);if(m>-1)l[m]=f.parse;else{let h=f.before?Zw(c,f.before):f.after?Zw(c,f.after)+1:c.length-1;l.splice(h,0,f.parse),c.splice(h,0,f.name)}}return n.wrap&&(d=d.concat(n.wrap)),new AA(r,i,o,s,u,a,l,c,d)}getNodeType(t){let n=this.nodeTypes[t];if(n==null)throw new RangeError(`Unknown node type '${t}'`);return n}parseInline(t,n){let r=new sV(this,t,n);e:for(let a=n;a=0){a=s;continue e}}a++}return r.resolveMarkers(0)}}function uy(e){return e!=null&&e.length>0}function vB(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let t=vB(e[0]);if(e.length==1)return t;let n=vB(e.slice(1));if(!n||!t)return t||n;let r=(o,s)=>(o||ob).concat(s||ob),a=t.wrap,i=n.wrap;return{props:r(t.props,n.props),defineNodes:r(t.defineNodes,n.defineNodes),parseBlock:r(t.parseBlock,n.parseBlock),parseInline:r(t.parseInline,n.parseInline),remove:r(t.remove,n.remove),wrap:a?i?(o,s,l,c)=>a(i(o,s,l,c),s,l,c):a:i}}function Zw(e,t){let n=e.indexOf(t);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${t}`);return n}let sAe=[oo.none];for(let e=1,t;t=on[e];e++)sAe[e]=oo.define({id:e,name:t,props:e>=on.Escape?[]:[[Cr.group,e in Hke?["Block","BlockContext"]:["Block","LeafBlock"]]],top:t=="Document"});const ob=[];let lAe=class{constructor(t){this.nodeSet=t,this.content=[],this.nodes=[]}write(t,n,r,a=0){return this.content.push(t,n,r,4+a*4),this}writeElements(t,n=0){for(let r of t)r.writeTo(this,n);return this}finish(t,n){return Sa.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:t,length:n})}},e1=class{constructor(t,n,r,a=ob){this.type=t,this.from=n,this.to=r,this.children=a}writeTo(t,n){let r=t.content.length;t.writeElements(this.children,n),t.content.push(this.type,this.from+n,this.to+n,t.content.length+4-r)}toTree(t){return new lAe(t).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class cAe{constructor(t,n){this.tree=t,this.from=n}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return ob}writeTo(t,n){t.nodes.push(this.tree),t.content.push(t.nodes.length-1,this.from+n,this.to+n,-1)}toTree(){return this.tree}}function ia(e,t,n,r){return new e1(e,t,n,r)}const uAe={resolve:"Emphasis",mark:"EmphasisMark"},dAe={resolve:"Emphasis",mark:"EmphasisMark"},ph={},kR={};class kl{constructor(t,n,r,a){this.type=t,this.from=n,this.to=r,this.side=a}}const xce="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let t1=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{t1=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const A3={Escape(e,t,n){if(t!=92||n==e.end-1)return-1;let r=e.char(n+1);for(let a=0;a]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(a)return e.append(ia(on.Autolink,n,n+1+a[0].length,[ia(on.LinkMark,n,n+1),ia(on.URL,n+1,n+a[0].length),ia(on.LinkMark,n+a[0].length,n+1+a[0].length)]));let i=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(i)return e.append(ia(on.Comment,n,n+1+i[0].length));let o=/^\?[^]*?\?>/.exec(r);if(o)return e.append(ia(on.ProcessingInstruction,n,n+1+o[0].length));let s=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return s?e.append(ia(on.HTMLTag,n,n+1+s[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let a=e.slice(n-1,n),i=e.slice(r,r+1),o=t1.test(a),s=t1.test(i),l=/\s|^$/.test(a),c=/\s|^$/.test(i),u=!c&&(!s||l||o),d=!l&&(!o||c||s),f=u&&(t==42||!d||o),m=d&&(t==42||!u||s);return e.append(new kl(t==95?uAe:dAe,n,r,(f?1:0)|(m?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(ia(on.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(ia(on.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new kl(ph,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new kl(kR,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let a=e.parts[r];if(a instanceof kl&&(a.type==ph||a.type==kR)){if(!a.side||e.skipSpace(a.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let i=e.takeContent(r),o=e.parts[r]=jPt(e,i,a.type==ph?on.Link:on.Image,a.from,n+1);if(a.type==ph)for(let s=0;st?ia(on.URL,t+n,i+n):i==e.length?null:!1}}function pAe(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let a=r==40?41:r;for(let i=t+1,o=!1;i=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,a,i){return this.append(new kl(t,n,r,(a?1:0)|(i?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof kl&&(n.type==ph||n.type==kR))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let g=this.parts[l];if(g instanceof kl&&g.side&1&&g.type==a.type&&!(i&&(a.side&1||g.side&2)&&(g.to-g.from+o)%3==0&&((g.to-g.from)%3||o%3))){s=g;break}}if(!s)continue;let c=a.type.resolve,u=[],d=s.from,f=a.to;if(i){let g=Math.min(2,s.to-s.from,o);d=s.to-g,f=a.from+g,c=g==1?"Emphasis":"StrongEmphasis"}s.type.mark&&u.push(this.elt(s.type.mark,d,s.to));for(let g=l+1;g=0;n--){let r=this.parts[n];if(r instanceof kl&&r.type==t&&r.side&1)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}getDelimiterAt(t){let n=this.parts[t];return n instanceof kl?n:null}skipSpace(t){return US(this.text,t-this.offset)+this.offset}elt(t,n,r,a){return typeof t=="string"?ia(this.parser.getNodeType(t),n,r,a):new cAe(t,n)}}sV.linkStart=ph;sV.imageStart=kR;function yB(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let a of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let i=this.fragment.to;for(;i>0&&this.input.read(i-1,i)!=` +`;)i--;this.fragmentEnd=i?i-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let a=t+this.fragment.offset;for(;r.to<=a;)if(!r.parent())return!1;for(;;){if(r.from>=a)return this.fragment.from<=n;if(!r.childAfter(a))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(Cr.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,a=this.fragmentEnd-(this.fragment.openEnd?1:0),i=t.absoluteLineStart,o=i,s=t.block.children.length,l=o,c=s;for(;;){if(n.to-r>a){if(n.type.isAnonymous&&n.firstChild())continue;break}let u=hAe(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,u);else{let d=new Sa(t.parser.nodeSet.types[on.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(d,n.tree),t.addNode(d,u)}if(n.type.is("Block")&&(XPt.indexOf(n.type.id)<0?(o=n.to-r,s=t.block.children.length):(o=l,s=c),l=n.to-r,c=t.block.children.length),!n.nextSibling())break}for(;t.block.children.length>s;)t.block.children.pop(),t.block.positions.pop();return o-i}}function hAe(e,t){let n=e;for(let r=1;rHw[e]),Object.keys(Hw).map(e=>iAe[e]),Object.keys(Hw),BPt,Hke,Object.keys(A3).map(e=>A3[e]),Object.keys(A3),[]);function WPt(e,t,n){let r=[];for(let a=e.firstChild,i=t;;a=a.nextSibling){let o=a?a.from:n;if(o>i&&r.push({from:i,to:o}),!a)break;i=a.to}return r}function GPt(e){let{codeParser:t,htmlParser:n}=e;return{wrap:bY((a,i)=>{let o=a.type.id;if(t&&(o==on.CodeBlock||o==on.FencedCode)){let s="";if(o==on.FencedCode){let c=a.node.getChild(on.CodeInfo);c&&(s=i.read(c.from,c.to))}let l=t(s);if(l)return{parser:l,overlay:c=>c.type.id==on.CodeText,bracketed:o==on.FencedCode}}else if(n&&(o==on.HTMLBlock||o==on.HTMLTag||o==on.CommentBlock))return{parser:n,overlay:WPt(a.node,a.from,a.to)};return null})}}const HPt={resolve:"Strikethrough",mark:"StrikethroughMark"},ZPt={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":H.strikethrough}},{name:"StrikethroughMark",style:H.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),a=e.slice(n+2,n+3),i=/\s|^$/.test(r),o=/\s|^$/.test(a),s=t1.test(r),l=t1.test(a);return e.addDelimiter(HPt,n,n+2,!o&&(!l||i||s),!i&&(!s||o||l))},after:"Emphasis"}]};function jS(e,t,n=0,r,a=0){let i=0,o=!0,s=-1,l=-1,c=!1,u=()=>{r.push(e.elt("TableCell",a+s,a+l,e.parser.parseInline(t.slice(s,l),a+s)))};for(let d=n;d-1)&&i++,o=!1,r&&(s>-1&&u(),r.push(e.elt("TableDelimiter",d+a,d+a+1))),s=l=-1):(c||f!=32&&f!=9)&&(s<0&&(s=d),l=d+1),c=!c&&f==92}return s>-1&&(i++,r&&u()),i}function Tce(e,t){for(let n=t;na instanceof wce)||!Tce(t.text,t.basePos))return!1;let r=e.peekLine();return gAe.test(r)&&jS(e,t.text,t.basePos)==jS(e,r,t.basePos)},before:"SetextHeading"}]};class JPt{nextLine(){return!1}finish(t,n){return t.addLeafElement(n,t.elt("Task",n.start,n.start+n.content.length,[t.elt("TaskMarker",n.start,n.start+3),...t.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const ekt={defineNodes:[{name:"Task",block:!0,style:H.list},{name:"TaskMarker",style:H.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new JPt:null},after:"SetextHeading"}]},Cce=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,$ce=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,tkt=/[\w-]+\.[\w-]+($|\/)/,Rce=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Pce=/\/[a-zA-Z\d@.]+/gy;function kce(e,t,n,r){let a=0;for(let i=t;i-1)return-1;let r=t+n[0].length;for(;;){let a=e[r-1],i;if(/[?!.,:*_~]/.test(a)||a==")"&&kce(e,t,r,")")>kce(e,t,r,"("))r--;else if(a==";"&&(i=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+i.index;else break}return r}function Ace(e,t){Rce.lastIndex=t;let n=Rce.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const rkt={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;Cce.lastIndex=r;let a=Cce.exec(e.text),i=-1;if(!a)return-1;if(a[1]||a[2]){if(i=nkt(e.text,r+a[0].length),i>-1&&e.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,i));i=r+o[0].length}}else a[3]?i=Ace(e.text,r):(i=Ace(e.text,r+a[0].length),i>-1&&a[0]=="xmpp:"&&(Pce.lastIndex=i,a=Pce.exec(e.text),a&&(i=a.index+a[0].length)));return i<0?-1:(e.addElement(e.elt("URL",n,i+e.offset)),i+e.offset)}}]},akt=[KPt,ekt,ZPt,rkt];function OAe(e,t,n){return(r,a,i)=>{if(a!=e||r.char(i+1)==e)return-1;let o=[r.elt(n,i,i+1)];for(let s=i+1;s"}}}),vAe=new Cr,yAe=qPt.configure({props:[Kl.add(e=>!e.is("Block")||e.is("Document")||SB(e)!=null||lkt(e)?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),vAe.add(SB),Dc.add({Document:()=>null}),wh.add({Document:bAe})]});function SB(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function lkt(e){return e.name=="OrderedList"||e.name=="BulletList"}function ckt(e,t){let n=e;for(;;){let r=n.nextSibling,a;if(!r||(a=SB(r.type))!=null&&a<=t)break;n=r}return n.to}const ukt=XPe.of((e,t,n)=>{for(let r=Aa(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:i}}return null});function lV(e){return new Sc(bAe,e,[],"markdown")}const dkt=lV(yAe),fkt=yAe.configure([akt,okt,ikt,skt,{props:[Kl.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),AR=lV(fkt);function pkt(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=_R.matchLanguageName(e,n,!0),r instanceof _R)return r.support?r.support.language.parser:q_.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}let N3=class{constructor(t,n,r,a,i,o,s){this.node=t,this.from=n,this.to=r,this.spaceBefore=a,this.spaceAfter=i,this.type=o,this.item=s}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;a--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+_Ae(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}};function SAe(e,t){let n=[],r=[];for(let a=e;a;a=a.parent){if(a.name=="FencedCode")return r;(a.name=="ListItem"||a.name=="Blockquote")&&n.push(a)}for(let a=n.length-1;a>=0;a--){let i=n[a],o,s=t.lineAt(i.from),l=i.from-s.from;if(i.name=="Blockquote"&&(o=/^ *>( ?)/.exec(s.text.slice(l))))r.push(new N3(i,l,l+o[0].length,"",o[1],">",null));else if(i.name=="ListItem"&&i.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(s.text.slice(l)))){let c=o[3],u=o[0].length;c.length>=4&&(c=c.slice(0,c.length-4),u-=4),r.push(new N3(i.parent,l,l+u,o[1],c,o[2],i))}else if(i.name=="ListItem"&&i.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(s.text.slice(l)))){let c=o[4],u=o[0].length;c.length>4&&(c=c.slice(0,c.length-4),u-=4);let d=o[2];o[3]&&(d+=o[3].replace(/[xX]/," ")),r.push(new N3(i.parent,l,l+u,o[1],c,d,i))}}return r}function _Ae(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function I3(e,t,n,r=0){for(let a=-1,i=e;;){if(i.name=="ListItem"){let s=_Ae(i,t),l=+s[2];if(a>=0){if(l!=a+1)return;n.push({from:i.from+s[1].length,to:i.from+s[0].length,insert:String(a+2+r)})}a=l}let o=i.nextSibling;if(!o)break;i=o}}function cV(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(Gb)!=" ")return e;let r=_u(e,4,n),a="";for(let i=r;i>0;)i>=4?(a+=" ",i-=4):(a+=" ",i--);return a+e.slice(n)}const mkt=(e={})=>({state:t,dispatch:n})=>{let r=Aa(t),{doc:a}=t,i=null,o=t.changeByRange(s=>{if(!s.empty||!AR.isActiveAt(t,s.from,-1)&&!AR.isActiveAt(t,s.from,1))return i={range:s};let l=s.from,c=a.lineAt(l),u=SAe(r.resolveInner(l,-1),a);for(;u.length&&u[u.length-1].from>l-c.from;)u.pop();if(!u.length)return i={range:s};let d=u[u.length-1];if(d.to-d.spaceAfter.length>l-c.from)return i={range:s};let f=l>=d.to-d.spaceAfter.length&&!/\S/.test(c.text.slice(d.to));if(d.item&&f){let v=d.node.firstChild,y=d.node.getChild("ListItem","ListItem");if(v.to>=l||y&&y.to0&&!/[^\s>]/.test(a.lineAt(c.from-1).text)||e.nonTightLists===!1){let S=u.length>1?u[u.length-2]:null,C,_="";S&&S.item?(C=c.from+S.from,_=S.marker(a,1)):C=c.from+(S?S.to:0);let w=[{from:C,to:l,insert:_}];return d.node.name=="OrderedList"&&I3(d.item,a,w,-2),S&&S.node.name=="OrderedList"&&I3(S.item,a,w),{range:xt.cursor(C+_.length),changes:w}}else{let S=Ice(u,t,c);return{range:xt.cursor(l+S.length+1),changes:{from:c.from,insert:S+t.lineBreak}}}}if(d.node.name=="Blockquote"&&f&&c.from){let v=a.lineAt(c.from-1),y=/>\s*$/.exec(v.text);if(y&&y.index==d.from){let S=t.changes([{from:v.from+y.index,to:v.to},{from:c.from+d.from,to:c.to}]);return{range:s.map(S),changes:S}}}let m=[];d.node.name=="OrderedList"&&I3(d.item,a,m);let h=d.item&&d.item.from]*/.exec(c.text)[0].length>=d.to)for(let v=0,y=u.length-1;v<=y;v++)g+=v==y&&!h?u[v].marker(a,1):u[v].blank(vc.from&&/\s/.test(c.text.charAt(O-c.from-1));)O--;return g=cV(g,t),gkt(d.node,t.doc)&&(g=Ice(u,t,c)+t.lineBreak+g),m.push({from:O,to:l,insert:t.lineBreak+g}),{range:xt.cursor(O+g.length+1),changes:m}});return i?!1:(n(t.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},hkt=mkt();function Nce(e){return e.name=="QuoteMark"||e.name=="ListMark"}function gkt(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let a=t.lineAt(n.to),i=t.lineAt(r.from),o=/^[\s>]*$/.test(a.text);return a.number+(o?0:1){let n=Aa(e),r=null,a=e.changeByRange(i=>{let o=i.from,{doc:s}=e;if(i.empty&&AR.isActiveAt(e,i.from)){let l=s.lineAt(o),c=SAe(Okt(n,o),s);if(c.length){let u=c[c.length-1],d=u.to-u.spaceAfter.length+(u.spaceAfter?1:0);if(o-l.from>d&&!/\S/.test(l.text.slice(d,o-l.from)))return{range:xt.cursor(l.from+d),changes:{from:l.from+d,to:o}};if(o-l.from==d&&(!u.item||l.from<=u.item.from||!/\S/.test(l.text.slice(0,u.to)))){let f=l.from+u.from;if(u.item&&u.node.from{var n;let{main:r}=t.state.selection;if(r.empty)return!1;let a=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text/plain");if(!a||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(a)||(/^www\./.test(a)&&(a="https://"+a),!AR.isActiveAt(t.state,r.from,1)))return!1;let i=Aa(t.state),o=!1;return i.iterate({from:r.from,to:r.to,enter:s=>{(s.from>r.from||Ekt.test(s.name))&&(o=!0)},leave:s=>{s.to=97&&e<=122||e>=65&&e<=90}function XS(e){return e==95||e>=128||xAe(e)}function L3(e){return e>=48&&e<=55||e>=97&&e<=102||e>=65&&e<=70}const zAt={int:!0,integer:!0,bool:!0,boolean:!0,float:!0,double:!0,real:!0,string:!0,array:!0,object:!0,unset:!0,__proto__:null},BAt=new La(e=>{if(e.next==40){e.advance();let t=0;for(;Qce(e.peek(t));)t++;let n="",r;for(;xAe(r=e.peek(t));)n+=String.fromCharCode(r),t++;for(;Qce(e.peek(t));)t++;e.peek(t)==41&&zAt[n.toLowerCase()]&&e.acceptToken(Tkt)}else if(e.next==60&&e.peek(1)==60&&e.peek(2)==60){for(let r=0;r<3;r++)e.advance();for(;e.next==32||e.next==9;)e.advance();let t=e.next==39;if(t&&e.advance(),!XS(e.next))return;let n=String.fromCharCode(e.next);for(;e.advance(),!(!XS(e.next)&&!(e.next>=48&&e.next<=55));)n+=String.fromCharCode(e.next);if(t){if(e.next!=39)return;e.advance()}if(e.next!=10&&e.next!=13)return;for(;;){let r=e.next==10||e.next==13;if(e.advance(),e.next<0)return;if(r){for(;e.next==32||e.next==9;)e.advance();let a=!0;for(let i=0;i{e.next<0&&e.acceptToken(Pkt)}),UAt=new La((e,t)=>{e.next==63&&t.canShift(Mce)&&e.peek(1)==62&&e.acceptToken(Mce)});function jAt(e){let t=e.peek(1);if(t==110||t==114||t==116||t==118||t==101||t==102||t==92||t==36||t==34||t==123)return 2;if(t>=48&&t<=55){let n=2,r;for(;n<5&&(r=e.peek(n))>=48&&r<=55;)n++;return n}if(t==120&&L3(e.peek(2)))return L3(e.peek(3))?4:3;if(t==117&&e.peek(2)==123)for(let n=3;;n++){let r=e.peek(n);if(r==125)return n==2?0:n+1;if(!L3(r))break}return 0}const XAt=new La((e,t)=>{let n=!1;for(;!(e.next==34||e.next<0||e.next==36&&(XS(e.peek(1))||e.peek(1)==123)||e.next==123&&e.peek(1)==36);n=!0){if(e.next==92){let r=jAt(e);if(r){if(n)break;return e.acceptToken($kt,r)}}else if(!n&&(e.next==91||e.next==45&&e.peek(1)==62&&XS(e.peek(2))||e.next==63&&e.peek(1)==45&&e.peek(2)==62&&XS(e.peek(3)))&&t.canShift(Rkt))break;e.advance()}n&&e.acceptToken(Ckt)}),YAt=Zl({"Visibility abstract final static":H.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":H.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":H.controlKeyword,"and or xor yield unset clone instanceof insteadof":H.operatorKeyword,"function fn class trait implements extends const enum global interface use var":H.definitionKeyword,"include include_once require require_once namespace":H.moduleKeyword,"new from echo print array list as":H.keyword,null:H.null,Boolean:H.bool,VariableName:H.variableName,"NamespaceName/...":H.namespace,"NamedType/...":H.typeName,Name:H.name,"CallExpression/Name":H.function(H.variableName),"LabelStatement/Name":H.labelName,"MemberExpression/Name":H.propertyName,"MemberExpression/VariableName":H.special(H.propertyName),"ScopedExpression/ClassMemberName/Name":H.propertyName,"ScopedExpression/ClassMemberName/VariableName":H.special(H.propertyName),"CallExpression/MemberExpression/Name":H.function(H.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":H.function(H.propertyName),"MethodDeclaration/Name":H.function(H.definition(H.variableName)),"FunctionDefinition/Name":H.function(H.definition(H.variableName)),"ClassDeclaration/Name":H.definition(H.className),UpdateOp:H.updateOperator,ArithOp:H.arithmeticOperator,"LogicOp IntersectionType/&":H.logicOperator,BitOp:H.bitwiseOperator,CompareOp:H.compareOperator,ControlOp:H.controlOperator,AssignOp:H.definitionOperator,"$ ConcatOp":H.operator,LineComment:H.lineComment,BlockComment:H.blockComment,Integer:H.integer,Float:H.float,String:H.string,ShellExpression:H.special(H.string),"=> ->":H.punctuation,"( )":H.paren,"#[ [ ]":H.squareBracket,"${ { }":H.brace,"-> ?->":H.derefOperator,", ; :: : \\":H.separator,"PhpOpen PhpClose":H.processingInstruction}),VAt={__proto__:null,static:325,STATIC:325,class:351,CLASS:351},qAt=Xl.deserialize({version:14,states:"%#[Q`OWOOQhQaOOP%oO`OOOOO#t'#Hh'#HhO%tO#|O'#DuOOO#u'#Dx'#DxQ&SOWO'#DxO&XO$VOOOOQ#u'#Dy'#DyO&lQaO'#D}O'[QdO'#EQO+QQdO'#IqO+_QdO'#ERO-RQaO'#EXO/bQ`O'#EUO/gQ`O'#E_O2UQaO'#E_O2]Q`O'#EgO2bQ`O'#EqO-RQaO'#EqO2mQpO'#FOO2rQ`O'#FOOOQS'#Iq'#IqO2wQ`O'#ExOOQS'#Ih'#IhO5SQdO'#IeO9UQeO'#F]O-RQaO'#FlO-RQaO'#FmO-RQaO'#FnO-RQaO'#FoO-RQaO'#FoO-RQaO'#FrOOQO'#Ir'#IrO9cQ`O'#FxOOQO'#Ht'#HtO9kQ`O'#HXO:VQ`O'#FsO:bQ`O'#HfO:mQ`O'#GP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i5j5k5l5m5n5o5p5q5r5u5{5|5}6O6P6Q6R6S6T6U6V6W6X6Y6Z6[6]6^6_6`6a6b6c6d6l7P7S7T7W7[7]7`7b7c7o7x7y7z7{7|7}8O8P8Q8R8S8T8U8V8W8X8Y8Z8[8]8^8_8`8a8b8d8e8f8g8h8s9T9W9Z9^9_9a9c9f9h9o9p9s9u9v:Q:R:S:T:U:V:W:X:Y:Z:[:]:^:_:`:a:b:c:d:e:f:g:h:i:j:k:l:m:n:o:q:r:s:u:v:w;S;e;i;j;k;n;u;v;z;|;}V>W>[>]>^>c>h>i>l>n>o>p>q>v?^?_T$x{$|Q(q%QQ(v%TQ(y%VR2b1WQ%c!]Q(u%SQ,d(tQ/W,cQ/Y,eQ1Q/XR2_1RQ%q!fR)m%rR/p-O",nodeNames:"⚠ ( HeredocString EscapeSequence abstract LogicOp array as Boolean break case catch clone const continue default declare do echo else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final finally fn for foreach from function global goto if implements include include_once LogicOp insteadof interface list match namespace new null LogicOp print readonly require require_once return switch throw trait try unset use var Visibility while LogicOp yield LineComment BlockComment TextInterpolation PhpClose Text PhpOpen Template TextInterpolation EmptyStatement ; } { Block : LabelStatement Name ExpressionStatement ConditionalExpression LogicOp MatchExpression ) ( ParenthesizedExpression MatchBlock MatchArm , => AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> Name VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp IntersectionType OptionalType NamedType QualifiedName \\ NamespaceName Name NamespaceName Name ScopedExpression :: ClassMemberName DynamicMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter PropertyHooks PropertyHook UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:318,nodeProps:[["group",-36,2,8,49,82,84,86,89,94,95,103,107,108,112,113,116,120,126,132,137,139,140,154,155,156,157,160,161,173,174,188,190,191,192,193,194,200,"Expression",-28,75,79,81,83,201,203,208,210,211,214,217,218,219,220,221,223,224,225,226,227,228,229,230,231,234,235,239,240,"Statement",-4,121,123,124,125,"Type"],["isolate",-4,67,68,71,200,""],["openedBy",70,"phpOpen",77,"{",87,"(",102,"#["],["closedBy",72,"phpClose",78,"}",88,")",165,"]"]],propSources:[YAt],skippedNodes:[0],repeatNodeCount:32,tokenData:"!GQ_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9Y!e!}!7z!}#O!;b#O#P!V<%lO8VR9WV'TP%`QOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ9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!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z",tokenizers:[BAt,XAt,UAt,0,1,2,3,FAt],topRules:{Template:[0,73],Program:[1,241]},dynamicPrecedences:{298:1},specialized:[{term:284,get:(e,t)=>Lce(e)<<1,external:Lce},{term:284,get:e=>VAt[e]||-1}],tokenPrec:29889}),WAt=Yl.define({name:"php",parser:qAt.configure({props:[Dc.add({IfStatement:Uo({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:Uo({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},ColonBlock:e=>e.baseIndent+e.unit,"Block EnumBody DeclarationList":fd({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"String BlockComment":()=>null,Statement:Uo({except:/^({|end(for|foreach|switch|while)\b)/})}),Kl.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":zf,ColonBlock(e){return{from:e.from+1,to:e.to}},BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function GAt(e={}){let t=[],n;if(e.baseLanguage!==null)if(e.baseLanguage)n=e.baseLanguage;else{let r=rV({matchClosingTags:!1});t.push(r.support),n=r.language}return new Cc(WAt.configure({wrap:n&&bY(r=>r.type.isTop?{parser:n.parser,overlay:a=>a.name=="Text"}:null),top:e.plain?"Program":"Template"}),t)}const HAt=1,TAe=194,wAe=195,ZAt=196,zce=197,KAt=198,JAt=199,eNt=200,tNt=2,CAe=3,Bce=201,nNt=24,rNt=25,aNt=49,iNt=50,oNt=55,sNt=56,lNt=57,cNt=59,uNt=60,dNt=61,fNt=62,pNt=63,mNt=65,hNt=238,gNt=71,ONt=241,bNt=242,vNt=243,yNt=244,SNt=245,_Nt=246,ENt=247,xNt=248,$Ae=72,TNt=249,wNt=250,CNt=251,$Nt=252,RNt=253,PNt=254,kNt=255,ANt=256,NNt=73,INt=77,MNt=263,DNt=112,LNt=130,QNt=151,zNt=152,BNt=155,ig=10,n1=13,uV=32,NA=9,dV=35,FNt=40,UNt=46,_B=123,Fce=125,RAe=39,PAe=34,Uce=92,jNt=111,XNt=120,YNt=78,VNt=117,qNt=85,WNt=new Set([rNt,aNt,iNt,MNt,mNt,LNt,sNt,lNt,hNt,fNt,pNt,$Ae,NNt,INt,uNt,dNt,QNt,zNt,BNt,DNt]);function Q3(e){return e==ig||e==n1}function z3(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}const GNt=new La((e,t)=>{let n;if(e.next<0)e.acceptToken(JAt);else if(t.context.flags&q2)Q3(e.next)&&e.acceptToken(KAt,1);else if(((n=e.peek(-1))<0||Q3(n))&&t.canShift(zce)){let r=0;for(;e.next==uV||e.next==NA;)e.advance(),r++;(e.next==ig||e.next==n1||e.next==dV)&&e.acceptToken(zce,-r)}else Q3(e.next)&&e.acceptToken(ZAt,1)},{contextual:!0}),HNt=new La((e,t)=>{let n=t.context;if(n.flags)return;let r=e.peek(-1);if(r==ig||r==n1){let a=0,i=0;for(;;){if(e.next==uV)a++;else if(e.next==NA)a+=8-a%8;else break;e.advance(),i++}a!=n.indent&&e.next!=ig&&e.next!=n1&&e.next!=dV&&(a[e,t|kAe])),JNt=new mx({start:ZNt,reduce(e,t,n,r){return e.flags&q2&&WNt.has(t)||(t==gNt||t==$Ae)&&e.flags&kAe?e.parent:e},shift(e,t,n,r){return t==TAe?new W2(e,KNt(r.read(r.pos,n.pos)),0):t==wAe?e.parent:t==nNt||t==oNt||t==cNt||t==CAe?new W2(e,0,q2):jce.has(t)?new W2(e,0,jce.get(t)|e.flags&q2):e},hash(e){return e.hash}}),eIt=new La(e=>{for(let t=0;t<5;t++){if(e.next!="print".charCodeAt(t))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let t=0;;t++){let n=e.peek(t);if(!(n==uV||n==NA)){n!=FNt&&n!=UNt&&n!=ig&&n!=n1&&n!=dV&&e.acceptToken(HAt);return}}}),tIt=new La((e,t)=>{let{flags:n}=t.context,r=n&tf?PAe:RAe,a=(n&nf)>0,i=!(n&rf),o=(n&af)>0,s=e.pos;for(;!(e.next<0);)if(o&&e.next==_B)if(e.peek(1)==_B)e.advance(2);else{if(e.pos==s){e.acceptToken(CAe,1);return}break}else if(i&&e.next==Uce){if(e.pos==s){e.advance();let l=e.next;l>=0&&(e.advance(),nIt(e,l)),e.acceptToken(tNt);return}break}else if(e.next==Uce&&!i&&e.peek(1)>-1)e.advance(2);else if(e.next==r&&(!a||e.peek(1)==r&&e.peek(2)==r)){if(e.pos==s){e.acceptToken(Bce,a?3:1);return}break}else if(e.next==ig){if(a)e.advance();else if(e.pos==s){e.acceptToken(Bce);return}break}else e.advance();e.pos>s&&e.acceptToken(eNt)});function nIt(e,t){if(t==jNt)for(let n=0;n<2&&e.next>=48&&e.next<=55;n++)e.advance();else if(t==XNt)for(let n=0;n<2&&z3(e.next);n++)e.advance();else if(t==VNt)for(let n=0;n<4&&z3(e.next);n++)e.advance();else if(t==qNt)for(let n=0;n<8&&z3(e.next);n++)e.advance();else if(t==YNt&&e.next==_B){for(e.advance();e.next>=0&&e.next!=Fce&&e.next!=RAe&&e.next!=PAe&&e.next!=ig;)e.advance();e.next==Fce&&e.advance()}}const rIt=Zl({'async "*" "**" FormatConversion FormatSpec':H.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":H.controlKeyword,"in not and or is del":H.operatorKeyword,"from def class global nonlocal lambda":H.definitionKeyword,import:H.moduleKeyword,"with as print":H.keyword,Boolean:H.bool,None:H.null,VariableName:H.variableName,"CallExpression/VariableName":H.function(H.variableName),"FunctionDefinition/VariableName":H.function(H.definition(H.variableName)),"ClassDefinition/VariableName":H.definition(H.className),PropertyName:H.propertyName,"CallExpression/MemberExpression/PropertyName":H.function(H.propertyName),Comment:H.lineComment,Number:H.number,String:H.string,FormatString:H.special(H.string),Escape:H.escape,UpdateOp:H.updateOperator,"ArithOp!":H.arithmeticOperator,BitOp:H.bitwiseOperator,CompareOp:H.compareOperator,AssignOp:H.definitionOperator,Ellipsis:H.punctuation,At:H.meta,"( )":H.paren,"[ ]":H.squareBracket,"{ }":H.brace,".":H.derefOperator,", ;":H.separator}),aIt={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},iIt=Xl.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#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;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[eIt,HNt,GNt,tIt,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:e=>aIt[e]||-1}],tokenPrec:7668}),Xce=new bA,AAe=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Kw(e){return(t,n,r)=>{if(r)return!1;let a=t.node.getChild("VariableName");return a&&n(a,e),!0}}const oIt={FunctionDefinition:Kw("function"),ClassDefinition:Kw("class"),ForStatement(e,t,n){if(n){for(let r=e.node.firstChild;r;r=r.nextSibling)if(r.name=="VariableName")t(r,"variable");else if(r.name=="in")break}},ImportStatement(e,t){var n,r;let{node:a}=e,i=((n=a.firstChild)===null||n===void 0?void 0:n.name)=="from";for(let o=a.getChild("import");o;o=o.nextSibling)o.name=="VariableName"&&((r=o.nextSibling)===null||r===void 0?void 0:r.name)!="as"&&t(o,i?"variable":"namespace")},AssignStatement(e,t){for(let n=e.node.firstChild;n;n=n.nextSibling)if(n.name=="VariableName")t(n,"variable");else if(n.name==":"||n.name=="AssignOp")break},ParamList(e,t){for(let n=null,r=e.node.firstChild;r;r=r.nextSibling)r.name=="VariableName"&&(!n||!/\*|AssignOp/.test(n.name))&&t(r,"variable"),n=r},CapturePattern:Kw("variable"),AsPattern:Kw("variable"),__proto__:null};function NAe(e,t){let n=Xce.get(t);if(n)return n;let r=[],a=!0;function i(o,s){let l=e.sliceString(o.from,o.to);r.push({label:l,type:s})}return t.cursor(pa.IncludeAnonymous).iterate(o=>{if(o.name){let s=oIt[o.name];if(s&&s(o,i,a)||!a&&AAe.has(o.name))return!1;a=!1}else if(o.to-o.from>8192){for(let s of NAe(e,o.node))r.push(s);return!1}}),Xce.set(t,r),r}const Yce=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,IAe=["String","FormatString","Comment","PropertyName"];function sIt(e){let t=Aa(e.state).resolveInner(e.pos,-1);if(IAe.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&Yce.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let a=t;a;a=a.parent)AAe.has(a.name)&&(r=r.concat(NAe(e.state.doc,a)));return{options:r,from:n?t.from:e.pos,validFor:Yce}}const lIt=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(e=>({label:e,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(e=>({label:e,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(e=>({label:e,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(e=>({label:e,type:"function"}))),cIt=[Vr("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Vr("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Vr("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Vr("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Vr(`if \${}: + +`,{label:"if",detail:"block",type:"keyword"}),Vr("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Vr("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Vr("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Vr("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],uIt=XY(IAe,PA(lIt.concat(cIt)));function B3(e){let{node:t,pos:n}=e,r=e.lineIndent(n,-1),a=null;for(;;){let i=t.childBefore(n);if(i)if(i.name=="Comment")n=i.from;else if(i.name=="Body"||i.name=="MatchBody")e.baseIndentFor(i)+e.unit<=r&&(a=i),t=i;else if(i.name=="MatchClause")t=i;else if(i.type.is("Statement"))t=i;else break;else break}return a}function F3(e,t){let n=e.baseIndentFor(t),r=e.lineAt(e.pos,-1),a=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&e.node.ton?null:n+e.unit}const U3=Yl.define({name:"python",parser:iIt.configure({props:[Dc.add({Body:e=>{var t;let n=/^\s*(#|$)/.test(e.textAfter)&&B3(e)||e.node;return(t=F3(e,n))!==null&&t!==void 0?t:e.continue()},MatchBody:e=>{var t;let n=B3(e);return(t=F3(e,n||e.node))!==null&&t!==void 0?t:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),"ForStatement WhileStatement":e=>/^\s*else:/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except[ :]|finally:|else:)/.test(e.textAfter)?e.baseIndent:e.continue(),MatchStatement:e=>/^\s*case /.test(e.textAfter)?e.baseIndent+e.unit:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":fd({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":fd({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":fd({closing:"]"}),MemberExpression:e=>e.baseIndent+e.unit,"String FormatString":()=>null,Script:e=>{var t;let n=B3(e);return(t=n&&F3(e,n))!==null&&t!==void 0?t:e.continue()}}),Kl.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":zf,Body:(e,t)=>({from:e.from+1,to:e.to-(e.to==t.doc.length?0:1)}),"String FormatString":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function dIt(){return new Cc(U3,[U3.data.of({autocomplete:sIt}),U3.data.of({autocomplete:uIt})])}const VO=63,Vce=64,fIt=1,pIt=2,MAe=3,mIt=4,DAe=5,hIt=6,gIt=7,LAe=65,OIt=66,bIt=8,vIt=9,yIt=10,SIt=11,_It=12,QAe=13,EIt=19,xIt=20,TIt=29,wIt=33,CIt=34,$It=47,RIt=0,fV=1,EB=2,r1=3,xB=4;let mh=class{constructor(t,n,r){this.parent=t,this.depth=n,this.type=r,this.hash=(t?t.hash+t.hash<<8:0)+n+(n<<4)+r}};mh.top=new mh(null,-1,RIt);function YS(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let a=e.peek(r);if(Pf(a)||a==-1)return n}}function TB(e){return e==32||e==9}function Pf(e){return e==10||e==13}function zAe(e){return TB(e)||Pf(e)}function $h(e){return e<0||zAe(e)}const PIt=new mx({start:mh.top,reduce(e,t){return e.type==r1&&(t==xIt||t==CIt)?e.parent:e},shift(e,t,n,r){if(t==MAe)return new mh(e,YS(r,r.pos),fV);if(t==LAe||t==DAe)return new mh(e,YS(r,r.pos),EB);if(t==VO)return e.parent;if(t==EIt||t==wIt)return new mh(e,0,r1);if(t==QAe&&e.type==xB)return e.parent;if(t==$It){let a=/[1-9]/.exec(r.read(r.pos,n.pos));if(a)return new mh(e,e.depth+ +a[0],xB)}return e},hash(e){return e.hash}});function sb(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&$h(e.peek(n+3))}const kIt=new La((e,t)=>{if(e.next==-1&&t.canShift(Vce))return e.acceptToken(Vce);let n=e.peek(-1);if((Pf(n)||n<0)&&t.context.type!=r1){if(sb(e,45))if(t.canShift(VO))e.acceptToken(VO);else return e.acceptToken(fIt,3);if(sb(e,46))if(t.canShift(VO))e.acceptToken(VO);else return e.acceptToken(pIt,3);let r=0;for(;e.next==32;)r++,e.advance();(r{if(t.context.type==r1){e.next==63&&(e.advance(),$h(e.next)&&e.acceptToken(gIt));return}if(e.next==45)e.advance(),$h(e.next)&&e.acceptToken(t.context.type==fV&&t.context.depth==YS(e,e.pos-1)?mIt:MAe);else if(e.next==63)e.advance(),$h(e.next)&&e.acceptToken(t.context.type==EB&&t.context.depth==YS(e,e.pos-1)?hIt:DAe);else{let n=e.pos;for(;;)if(TB(e.next)){if(e.pos==n)return;e.advance()}else if(e.next==33)BAe(e);else if(e.next==38)wB(e);else if(e.next==42){wB(e);break}else if(e.next==39||e.next==34){if(pV(e,!0))break;return}else if(e.next==91||e.next==123){if(!IIt(e))return;break}else{FAe(e,!0,!1,0);break}for(;TB(e.next);)e.advance();if(e.next==58){if(e.pos==n&&t.canShift(TIt))return;let r=e.peek(1);$h(r)&&e.acceptTokenTo(t.context.type==EB&&t.context.depth==YS(e,n)?OIt:LAe,n)}}},{contextual:!0});function NIt(e){return e>32&&e<127&&e!=34&&e!=37&&e!=44&&e!=60&&e!=62&&e!=92&&e!=94&&e!=96&&e!=123&&e!=124&&e!=125}function qce(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function Wce(e,t){return e.next==37?(e.advance(),qce(e.next)&&e.advance(),qce(e.next)&&e.advance(),!0):NIt(e.next)||t&&e.next==44?(e.advance(),!0):!1}function BAe(e){if(e.advance(),e.next==60){for(e.advance();;)if(!Wce(e,!0)){e.next==62&&e.advance();break}}else for(;Wce(e,!1););}function wB(e){for(e.advance();!$h(e.next)&&NR(e.next)!="f";)e.advance()}function pV(e,t){let n=e.next,r=!1,a=e.pos;for(e.advance();;){let i=e.next;if(i<0)break;if(e.advance(),i==n)if(i==39)if(e.next==39)e.advance();else break;else break;else if(i==92&&n==34)e.next>=0&&e.advance();else if(Pf(i)){if(t)return!1;r=!0}else if(t&&e.pos>=a+1024)return!1}return!r}function IIt(e){for(let t=[],n=e.pos+1024;;)if(e.next==91||e.next==123)t.push(e.next),e.advance();else if(e.next==39||e.next==34){if(!pV(e,!0))return!1}else if(e.next==93||e.next==125){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else{if(e.next<0||e.pos>n||Pf(e.next))return!1;e.advance()}}const MIt="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function NR(e){return e<33?"u":e>125?"s":MIt[e-33]}function j3(e,t){let n=NR(e);return n!="u"&&!(t&&n=="f")}function FAe(e,t,n,r){if(NR(e.next)=="s"||(e.next==63||e.next==58||e.next==45)&&j3(e.peek(1),n))e.advance();else return!1;let a=e.pos;for(;;){let i=e.next,o=0,s=r+1;for(;zAe(i);){if(Pf(i)){if(t)return!1;s=0}else s++;i=e.peek(++o)}if(!(i>=0&&(i==58?j3(e.peek(o+1),n):i==35?e.peek(o-1)!=32:j3(i,n)))||!n&&s<=r||s==0&&!n&&(sb(e,45,o)||sb(e,46,o)))break;if(t&&NR(i)=="f")return!1;for(let c=o;c>=0;c--)e.advance();if(t&&e.pos>a+1024)return!1}return!0}const DIt=new La((e,t)=>{if(e.next==33)BAe(e),e.acceptToken(_It);else if(e.next==38||e.next==42){let n=e.next==38?yIt:SIt;wB(e),e.acceptToken(n)}else e.next==39||e.next==34?(pV(e,!1),e.acceptToken(vIt)):FAe(e,!1,t.context.type==r1,t.context.depth)&&e.acceptToken(bIt)}),LIt=new La((e,t)=>{let n=t.context.type==xB?t.context.depth:-1,r=e.pos;e:for(;;){let a=0,i=e.next;for(;i==32;)i=e.peek(++a);if(!a&&(sb(e,45,a)||sb(e,46,a))||!Pf(i)&&(n<0&&(n=Math.max(t.context.depth+1,a)),aYAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcP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v",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:PIt,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[QIt],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[kIt,AIt,DIt,LIt,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),BIt=Yl.define({name:"yaml",parser:zIt.configure({props:[Dc.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if(t.name=="BlockLiteralContent"&&t.frome.pos)return null}}return null},FlowMapping:fd({closing:"}"}),FlowSequence:fd({closing:"]"})}),Kl.add({"FlowMapping FlowSequence":zf,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function FIt(){return new Cc(BIt)}class Gce{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class hh{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let a=r.facet(od).markerFilter;a&&(t=a(t,r));let i=t.slice().sort((m,h)=>m.from-h.from||m.to-h.to),o=new $f,s=[],l=0,c=r.doc.iter(),u=0,d=r.doc.length;for(let m=0;;){let h=m==i.length?null:i[m];if(!h&&!s.length)break;let g,O;if(s.length)g=l,O=s.reduce((S,C)=>Math.min(S,C.to),h&&h.from>g?h.from:1e8);else{if(g=h.from,g>d)break;O=h.to,s.push(h),m++}for(;mS.from||S.to==g))s.push(S),m++,O=Math.min(S.to,O);else{O=Math.min(S.from,O);break}}O=Math.min(O,d);let v=!1;if(s.some(S=>S.from==g&&(S.to==O||O==d))&&(v=g==O,!v&&O-g<10)){let S=g-(u+c.value.length);S>0&&(c.next(S),u=g);for(let C=g;;){if(C>=O){v=!0;break}if(!c.lineBreak&&u+c.value.length>C)break;C=u+c.value.length,u+=c.value.length,c.next()}}let y=WAe(s);if(v)o.add(g,g,Hn.widget({widget:new ZIt(y),diagnostics:s.slice()}));else{let S=s.reduce((C,_)=>_.markClass?C+" "+_.markClass:C,"");o.add(g,O,Hn.mark({class:"cm-lintRange cm-lintRange-"+y+S,diagnostics:s.slice(),inclusiveEnd:s.some(C=>C.to>O)}))}if(l=O,l==d)break;for(let S=0;S{if(!(t&&o.diagnostics.indexOf(t)<0))if(!r)r=new Gce(a,i,t||o.diagnostics[0]);else{if(o.diagnostics.indexOf(r.diagnostic)<0)return!1;r=new Gce(r.from,i,r.diagnostic)}}),r}function UAe(e,t){let n=t.pos,r=t.end||n,a=e.state.facet(od).hideOn(e,n,r);if(a!=null)return a;let i=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(o=>o.is(IA))||e.changes.touchesRange(i.from,Math.max(i.to,r)))}function jAe(e,t){return e.field(Il,!1)?t:t.concat(_r.appendConfig.of(ZAe))}function UIt(e,t){return{effects:jAe(e,[IA.of(t)])}}const IA=_r.define(),mV=_r.define(),XAe=_r.define(),Il=uo.define({create(){return new hh(Hn.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,a=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=im(n,e.selected.diagnostic,i)||im(n,null,i)}!n.size&&a&&t.state.facet(od).autoPanel&&(a=null),e=new hh(n,a,r)}for(let n of t.effects)if(n.is(IA)){let r=t.state.facet(od).autoPanel?n.value.length?a1.open:null:e.panel;e=hh.init(n.value,r,t.state)}else n.is(mV)?e=new hh(e.diagnostics,n.value?a1.open:null,e.selected):n.is(XAe)&&(e=new hh(e.diagnostics,e.panel,n.value));return e},provide:e=>[V_.from(e,t=>t.panel),gn.decorations.from(e,t=>t.diagnostics)]}),jIt=Hn.mark({class:"cm-lintRange cm-lintRange-active"});function XIt(e,t,n){let{diagnostics:r}=e.state.field(Il),a,i=-1,o=-1;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,c,{spec:u})=>{if(t>=l&&t<=c&&(l==c||(t>l||n>0)&&(tqAe(e,n,!1)))}const YIt=e=>{let t=e.state.field(Il,!1);(!t||!t.panel)&&e.dispatch({effects:jAe(e.state,[mV.of(!0)])});let n=DY(e,a1.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},Hce=e=>{let t=e.state.field(Il,!1);return!t||!t.panel?!1:(e.dispatch({effects:mV.of(!1)}),!0)},VIt=e=>{let t=e.state.field(Il,!1);if(!t)return!1;let n=e.state.selection.main,r=im(t.diagnostics,null,n.to+1);return!r&&(r=im(t.diagnostics,null,0),!r||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},qIt=[{key:"Mod-Shift-m",run:YIt,preventDefault:!0},{key:"F8",run:VIt}],WIt=yi.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(od);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(ePromise.resolve(r(this.view))),r=>{this.view.state.doc==t.doc&&this.view.dispatch(UIt(this.view.state,r.reduce((a,i)=>a.concat(i))))},r=>{Rs(this.view.state,r)})}}update(e){let t=e.state.facet(od);(e.docChanged||t!=e.startState.facet(od)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}});function GIt(e,t,n){let r=[],a=-1;for(let i of e)i.then(o=>{r.push(o),clearTimeout(a),r.length==e.length?t(r):a=setTimeout(()=>t(r),200)},n)}const od=yn.define({combine(e){return{sources:e.map(t=>t.source).filter(t=>t!=null),...wu(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:Zce,tooltipFilter:Zce,needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n,hideOn:(t,n)=>t?n?(r,a,i)=>t(r,a,i)||n(r,a,i):t:n,autoPanel:(t,n)=>t||n})}}});function Zce(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function HIt(e,t={}){return[od.of({source:e,config:t}),WIt,ZAe]}function VAe(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ri.toLowerCase()==a.toLowerCase())){t.push(a);continue e}}t.push("")}return t}function qAe(e,t,n){var r;let a=n?VAe(t.actions):[];return Ia("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Ia("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),(r=t.actions)===null||r===void 0?void 0:r.map((i,o)=>{let s=!1,l=m=>{if(m.preventDefault(),s)return;s=!0;let h=im(e.state.field(Il).diagnostics,t);h&&i.apply(e,h.from,h.to)},{name:c}=i,u=a[o]?c.indexOf(a[o]):-1,d=u<0?c:[c.slice(0,u),Ia("u",c.slice(u,u+1)),c.slice(u+1)],f=i.markClass?" "+i.markClass:"";return Ia("button",{type:"button",class:"cm-diagnosticAction"+f,onclick:l,onmousedown:l,"aria-label":` Action: ${c}${u<0?"":` (access key "${a[o]})"`}.`},d)}),t.source&&Ia("div",{class:"cm-diagnosticSource"},t.source))}class ZIt extends Cu{constructor(t){super(),this.sev=t}eq(t){return t.sev==this.sev}toDOM(){return Ia("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class Kce{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=qAe(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class a1{constructor(t){this.view=t,this.items=[];let n=a=>{if(!(a.ctrlKey||a.altKey||a.metaKey)){if(a.keyCode==27)Hce(this.view),this.view.focus();else if(a.keyCode==38||a.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(a.keyCode==40||a.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(a.keyCode==36)this.moveSelection(0);else if(a.keyCode==35)this.moveSelection(this.items.length-1);else if(a.keyCode==13)this.view.focus();else if(a.keyCode>=65&&a.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:i}=this.items[this.selectedIndex],o=VAe(i.actions);for(let s=0;s{for(let i=0;iHce(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(Il).selected;if(!t)return-1;for(let n=0;n{for(let u of c.diagnostics){if(o.has(u))continue;o.add(u);let d=-1,f;for(let m=r;mr&&(this.items.splice(r,d-r),a=!0)),n&&f.diagnostic==n.diagnostic?f.dom.hasAttribute("aria-selected")||(f.dom.setAttribute("aria-selected","true"),i=f):f.dom.hasAttribute("aria-selected")&&f.dom.removeAttribute("aria-selected"),r++}});r({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:l})=>{let c=l.height/this.list.offsetHeight;s.topl.bottom&&(this.list.scrollTop+=(s.bottom-l.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),a&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(Il),r=im(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:XAe.of(r)})}static open(t){return new a1(t)}}function G2(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function Jw(e){return G2(``,'width="6" height="3"')}const KIt=gn.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Jw("#d11")},".cm-lintRange-warning":{backgroundImage:Jw("orange")},".cm-lintRange-info":{backgroundImage:Jw("#999")},".cm-lintRange-hint":{backgroundImage:Jw("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function JIt(e){return e=="error"?4:e=="warning"?3:e=="info"?2:1}function WAe(e){let t="hint",n=1;for(let r of e){let a=JIt(r.severity);a>n&&(n=a,t=r.severity)}return t}class GAe extends yd{constructor(t){super(),this.diagnostics=t,this.severity=WAe(t)}toDOM(t){let n=document.createElement("div");n.className="cm-lint-marker cm-lint-marker-"+this.severity;let r=this.diagnostics,a=t.state.facet(MA).tooltipFilter;return a&&(r=a(r,t.state)),r.length&&(n.onmouseover=()=>t4t(t,n,r)),n}}function e4t(e,t){let n=r=>{let a=t.getBoundingClientRect();if(!(r.clientX>a.left-10&&r.clientXa.top-10&&r.clientYt.getBoundingClientRect()}}})}),t.onmouseout=t.onmousemove=null,e4t(e,t)}let{hoverTime:a}=e.state.facet(MA),i=setTimeout(r,a);t.onmouseout=()=>{clearTimeout(i),t.onmouseout=t.onmousemove=null},t.onmousemove=()=>{clearTimeout(i),i=setTimeout(r,a)}}function n4t(e,t){let n=Object.create(null);for(let a of t){let i=e.lineAt(a.from);(n[i.from]||(n[i.from]=[])).push(a)}let r=[];for(let a in n)r.push(new GAe(n[a]).range(+a));return jr.of(r,!0)}const r4t=QPe({class:"cm-gutter-lint",markers:e=>e.state.field(CB),widgetMarker:(e,t,n)=>{let r=[];return e.state.field(CB).between(n.from,n.to,(a,i,o)=>{a>n.from&&ar.is(hV)?r.value:n,e)},provide:e=>TA.from(e)}),a4t=gn.baseTheme({".cm-gutter-lint":{width:"1.4em","& .cm-gutterElement":{padding:".2em"}},".cm-lint-marker":{width:"1em",height:"1em"},".cm-lint-marker-info":{content:G2('')},".cm-lint-marker-warning":{content:G2('')},".cm-lint-marker-error":{content:G2('')}}),ZAe=[Il,gn.decorations.compute([Il],e=>{let{selected:t,panel:n}=e.field(Il);return!t||!n||t.from==t.to?Hn.none:Hn.set([jIt.range(t.from,t.to)])}),Lwt(XIt,{hideOn:UAe}),KIt],MA=yn.define({combine(e){return wu(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});function Jce(e={}){return[MA.of(e),CB,r4t,a4t,HAe]}var KAe=e=>{var{theme:t,settings:n={},styles:r=[]}=e,a={".cm-gutters":{}},i={};n.background&&(i.backgroundColor=n.background),n.backgroundImage&&(i.backgroundImage=n.backgroundImage),n.foreground&&(i.color=n.foreground),n.fontSize&&(i.fontSize=n.fontSize),(n.background||n.foreground)&&(a["&"]=i),n.fontFamily&&(a["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(a[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(a[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(a[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(a[".cm-content"]={caretColor:n.caret},a[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var o={};n.gutterActiveForeground&&(o.color=n.gutterActiveForeground),n.lineHighlight&&(a[".cm-activeLine"]={backgroundColor:n.lineHighlight},o.backgroundColor=n.lineHighlight),a[".cm-activeLineGutter"]=o,n.selection&&(a["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(a["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var s=gn.theme(a,{dark:t==="dark"}),l=Hb.define(r),c=[s,FY(l)];return c},i4t={background:"#ffffff",foreground:"#383a42",caret:"#000",selection:"#add6ff",selectionMatch:"#a8ac94",lineHighlight:"#99999926",gutterBackground:"#fff",gutterForeground:"#237893",gutterActiveForeground:"#0b216f",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace'},o4t=[{tag:[H.keyword,H.operatorKeyword,H.modifier,H.color,H.constant(H.name),H.standard(H.name),H.standard(H.tagName),H.special(H.brace),H.atom,H.bool,H.special(H.variableName)],color:"#0000ff"},{tag:[H.moduleKeyword,H.controlKeyword],color:"#af00db"},{tag:[H.name,H.deleted,H.character,H.macroName,H.propertyName,H.variableName,H.labelName,H.definition(H.name)],color:"#0070c1"},{tag:H.heading,fontWeight:"bold",color:"#0070c1"},{tag:[H.typeName,H.className,H.tagName,H.number,H.changed,H.annotation,H.self,H.namespace],color:"#267f99"},{tag:[H.function(H.variableName),H.function(H.propertyName)],color:"#795e26"},{tag:[H.number],color:"#098658"},{tag:[H.operator,H.punctuation,H.separator,H.url,H.escape,H.regexp],color:"#383a42"},{tag:[H.regexp],color:"#af00db"},{tag:[H.special(H.string),H.processingInstruction,H.string,H.inserted],color:"#a31515"},{tag:[H.angleBracket],color:"#383a42"},{tag:H.strong,fontWeight:"bold"},{tag:H.emphasis,fontStyle:"italic"},{tag:H.strikethrough,textDecoration:"line-through"},{tag:[H.meta,H.comment],color:"#008000"},{tag:H.link,color:"#4078f2",textDecoration:"underline"},{tag:H.invalid,color:"#e45649"}];function s4t(e){var{theme:t="light",settings:n={},styles:r=[]}={};return KAe({theme:t,settings:Ae({},i4t,n),styles:[...o4t,...r]})}var eue=s4t(),l4t={background:"#1e1e1e",foreground:"#9cdcfe",caret:"#c6c6c6",selection:"#6199ff2f",selectionMatch:"#72a1ff59",lineHighlight:"#ffffff0f",gutterBackground:"#1e1e1e",gutterForeground:"#838383",gutterActiveForeground:"#fff",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace'},c4t=[{tag:[H.keyword,H.operatorKeyword,H.modifier,H.color,H.constant(H.name),H.standard(H.name),H.standard(H.tagName),H.special(H.brace),H.atom,H.bool,H.special(H.variableName)],color:"#569cd6"},{tag:[H.controlKeyword,H.moduleKeyword],color:"#c586c0"},{tag:[H.name,H.deleted,H.character,H.macroName,H.propertyName,H.variableName,H.labelName,H.definition(H.name)],color:"#9cdcfe"},{tag:H.heading,fontWeight:"bold",color:"#9cdcfe"},{tag:[H.typeName,H.className,H.tagName,H.number,H.changed,H.annotation,H.self,H.namespace],color:"#4ec9b0"},{tag:[H.function(H.variableName),H.function(H.propertyName)],color:"#dcdcaa"},{tag:[H.number],color:"#b5cea8"},{tag:[H.operator,H.punctuation,H.separator,H.url,H.escape,H.regexp],color:"#d4d4d4"},{tag:[H.regexp],color:"#d16969"},{tag:[H.special(H.string),H.processingInstruction,H.string,H.inserted],color:"#ce9178"},{tag:[H.angleBracket],color:"#808080"},{tag:H.strong,fontWeight:"bold"},{tag:H.emphasis,fontStyle:"italic"},{tag:H.strikethrough,textDecoration:"line-through"},{tag:[H.meta,H.comment],color:"#6a9955"},{tag:H.link,color:"#6a9955",textDecoration:"underline"},{tag:H.invalid,color:"#ff0000"}];function u4t(e){var{theme:t="dark",settings:n={},styles:r=[]}={};return KAe({theme:t,settings:Ae({},l4t,n),styles:[...c4t,...r]})}var tue=u4t();const d4t=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=OV(e.state,n.from);return r.line?f4t(e):r.block?m4t(e):!1};function gV(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let a=e(t,n);return a?(r(n.update(a)),!0):!1}}const f4t=gV(O4t,0),p4t=gV(JAe,0),m4t=gV((e,t)=>JAe(e,t,g4t(t)),0);function OV(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}const dy=50;function h4t(e,{open:t,close:n},r,a){let i=e.sliceDoc(r-dy,r),o=e.sliceDoc(a,a+dy),s=/\s*$/.exec(i)[0].length,l=/^\s*/.exec(o)[0].length,c=i.length-s;if(i.slice(c-t.length,c)==t&&o.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:a+l,margin:l&&1}};let u,d;a-r<=2*dy?u=d=e.sliceDoc(r,a):(u=e.sliceDoc(r,r+dy),d=e.sliceDoc(a-dy,a));let f=/^\s*/.exec(u)[0].length,m=/\s*$/.exec(d)[0].length,h=d.length-m-n.length;return u.slice(f,f+t.length)==t&&d.slice(h,h+n.length)==n?{open:{pos:r+f+t.length,margin:/\s/.test(u.charAt(f+t.length))?1:0},close:{pos:a-m-n.length,margin:/\s/.test(d.charAt(h-1))?1:0}}:null}function g4t(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),a=n.to<=r.to?r:e.doc.lineAt(n.to);a.from>r.from&&a.from==n.to&&(a=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let i=t.length-1;i>=0&&t[i].to>r.from?t[i].to=a.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:a.to})}return t}function JAe(e,t,n=t.selection.ranges){let r=n.map(i=>OV(t,i.from).block);if(!r.every(i=>i))return null;let a=n.map((i,o)=>h4t(t,r[o],i.from,i.to));if(e!=2&&!a.every(i=>i))return{changes:t.changes(n.map((i,o)=>a[o]?[]:[{from:i.from,insert:r[o].open+" "},{from:i.to,insert:" "+r[o].close}]))};if(e!=1&&a.some(i=>i)){let i=[];for(let o=0,s;oa&&(i==o||o>d.from)){a=d.from;let f=/^\s*/.exec(d.text)[0].length,m=f==d.length,h=d.text.slice(f,f+c.length)==c?f:-1;fi.comment<0&&(!i.empty||i.single))){let i=[];for(let{line:s,token:l,indent:c,empty:u,single:d}of r)(d||!u)&&i.push({from:s.from+c,insert:l+" "});let o=t.changes(i);return{changes:o,selection:t.selection.map(o,1)}}else if(e!=1&&r.some(i=>i.comment>=0)){let i=[];for(let{line:o,comment:s,token:l}of r)if(s>=0){let c=o.from+s,u=c+l.length;o.text[u-o.from]==" "&&u++,i.push({from:c,to:u})}return{changes:i}}return null}const $B=Ad.define(),b4t=Ad.define(),v4t=yn.define(),eNe=yn.define({combine(e){return wu(e,{minDepth:100,newGroupDelay:500,joinToEvent:(t,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,n)=>(r,a)=>t(r,a)||n(r,a)})}}),tNe=uo.define({create(){return sd.empty},update(e,t){let n=t.state.facet(eNe),r=t.annotation($B);if(r){let l=il.fromTransaction(t,r.selection),c=r.side,u=c==0?e.undone:e.done;return l?u=IR(u,u.length,n.minDepth,l):u=aNe(u,t.startState.selection),new sd(c==0?r.rest:u,c==0?u:r.rest)}let a=t.annotation(b4t);if((a=="full"||a=="before")&&(e=e.isolate()),t.annotation(Ui.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let i=il.fromTransaction(t),o=t.annotation(Ui.time),s=t.annotation(Ui.userEvent);return i?e=e.addChanges(i,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(a=="full"||a=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new sd(e.done.map(il.fromJSON),e.undone.map(il.fromJSON))}});function y4t(e={}){return[tNe,eNe.of(e),gn.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?nNe:t.inputType=="historyRedo"?RB:null;return r?(t.preventDefault(),r(n)):!1}})]}function DA(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let a=n.field(tNe,!1);if(!a)return!1;let i=a.pop(e,n,t);return i?(r(i),!0):!1}}const nNe=DA(0,!1),RB=DA(1,!1),S4t=DA(0,!0),_4t=DA(1,!0);class il{constructor(t,n,r,a,i){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=a,this.selectionsAfter=i}setSelAfter(t){return new il(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,n,r;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(a=>a.toJSON())}}static fromJSON(t){return new il(t.changes&&Ji.fromJSON(t.changes),[],t.mapped&&dd.fromJSON(t.mapped),t.startSelection&&xt.fromJSON(t.startSelection),t.selectionsAfter.map(xt.fromJSON))}static fromTransaction(t,n){let r=Ec;for(let a of t.startState.facet(v4t)){let i=a(t);i.length&&(r=r.concat(i))}return!r.length&&t.changes.empty?null:new il(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,Ec)}static selection(t){return new il(void 0,Ec,void 0,void 0,t)}}function IR(e,t,n,r){let a=t+1>n+20?t-n-1:0,i=e.slice(a,t);return i.push(r),i}function E4t(e,t){let n=[],r=!1;return e.iterChangedRanges((a,i)=>n.push(a,i)),t.iterChangedRanges((a,i,o,s)=>{for(let l=0;l=c&&o<=u&&(r=!0)}}),r}function x4t(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function rNe(e,t){return e.length?t.length?e.concat(t):e:t}const Ec=[],T4t=200;function aNe(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-T4t));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),IR(e,e.length-1,1e9,n.setSelAfter(r)))}else return[il.selection([t])]}function w4t(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function X3(e,t){if(!e.length)return e;let n=e.length,r=Ec;for(;n;){let a=C4t(e[n-1],t,r);if(a.changes&&!a.changes.empty||a.effects.length){let i=e.slice(0,n);return i[n-1]=a,i}else t=a.mapped,n--,r=a.selectionsAfter}return r.length?[il.selection(r)]:Ec}function C4t(e,t,n){let r=rNe(e.selectionsAfter.length?e.selectionsAfter.map(s=>s.map(t)):Ec,n);if(!e.changes)return il.selection(r);let a=e.changes.map(t),i=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(i):i;return new il(a,_r.mapEffects(e.effects,t),o,e.startSelection.map(i),r)}const $4t=/^(input\.type|delete)($|\.)/;class sd{constructor(t,n,r=0,a=void 0){this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=a}isolate(){return this.prevTime?new sd(this.done,this.undone):this}addChanges(t,n,r,a,i){let o=this.done,s=o[o.length-1];return s&&s.changes&&!s.changes.empty&&t.changes&&(!r||$4t.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):LA(n,t))}function ms(e){return e.textDirectionAt(e.state.selection.main.head)==Ba.LTR}const oNe=e=>iNe(e,!ms(e)),sNe=e=>iNe(e,ms(e));function lNe(e,t){return Ru(e,n=>n.empty?e.moveByGroup(n,t):LA(n,t))}const P4t=e=>lNe(e,!ms(e)),k4t=e=>lNe(e,ms(e));function A4t(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function QA(e,t,n){let r=Aa(e).resolveInner(t.head),a=n?Cr.closedBy:Cr.openedBy;for(let l=t.head;;){let c=n?r.childAfter(l):r.childBefore(l);if(!c)break;A4t(e,c,a)?r=c:l=n?c.to:c.from}let i=r.type.prop(a),o,s;return i&&(o=n?id(e,r.from,1):id(e,r.to,-1))&&o.matched?s=n?o.end.to:o.end.from:s=n?r.to:r.from,xt.cursor(s,n?-1:1)}const N4t=e=>Ru(e,t=>QA(e.state,t,!ms(e))),I4t=e=>Ru(e,t=>QA(e.state,t,ms(e)));function cNe(e,t){return Ru(e,n=>{if(!n.empty)return LA(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const uNe=e=>cNe(e,!1),dNe=e=>cNe(e,!0);function fNe(e){let t=e.scrollDOM.clientHeighto.empty?e.moveVertically(o,t,n.height):LA(o,t));if(a.eq(r.selection))return!1;let i;if(n.selfScroll){let o=e.coordsAtPos(r.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,c=s.bottom-n.marginBottom;o&&o.top>l&&o.bottompNe(e,!1),PB=e=>pNe(e,!0);function _m(e,t,n){let r=e.lineBlockAt(t.head),a=e.moveToLineBoundary(t,n);if(a.head==t.head&&a.head!=(n?r.to:r.from)&&(a=e.moveToLineBoundary(t,n,!1)),!n&&a.head==r.from&&r.length){let i=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;i&&t.head!=r.from+i&&(a=xt.cursor(r.from+i))}return a}const M4t=e=>Ru(e,t=>_m(e,t,!0)),D4t=e=>Ru(e,t=>_m(e,t,!1)),L4t=e=>Ru(e,t=>_m(e,t,!ms(e))),Q4t=e=>Ru(e,t=>_m(e,t,ms(e))),z4t=e=>Ru(e,t=>xt.cursor(e.lineBlockAt(t.head).from,1)),B4t=e=>Ru(e,t=>xt.cursor(e.lineBlockAt(t.head).to,-1));function F4t(e,t,n){let r=!1,a=Kb(e.selection,i=>{let o=id(e,i.head,-1)||id(e,i.head,1)||i.head>0&&id(e,i.head-1,1)||i.headF4t(e,t);function Qc(e,t){let n=Kb(e.state.selection,r=>{let a=t(r);return xt.range(r.anchor,a.head,a.goalColumn,a.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch($u(e.state,n)),!0)}function mNe(e,t){return Qc(e,n=>e.moveByChar(n,t))}const hNe=e=>mNe(e,!ms(e)),gNe=e=>mNe(e,ms(e));function ONe(e,t){return Qc(e,n=>e.moveByGroup(n,t))}const j4t=e=>ONe(e,!ms(e)),X4t=e=>ONe(e,ms(e)),Y4t=e=>Qc(e,t=>QA(e.state,t,!ms(e))),V4t=e=>Qc(e,t=>QA(e.state,t,ms(e)));function bNe(e,t){return Qc(e,n=>e.moveVertically(n,t))}const vNe=e=>bNe(e,!1),yNe=e=>bNe(e,!0);function SNe(e,t){return Qc(e,n=>e.moveVertically(n,t,fNe(e).height))}const rue=e=>SNe(e,!1),aue=e=>SNe(e,!0),q4t=e=>Qc(e,t=>_m(e,t,!0)),W4t=e=>Qc(e,t=>_m(e,t,!1)),G4t=e=>Qc(e,t=>_m(e,t,!ms(e))),H4t=e=>Qc(e,t=>_m(e,t,ms(e))),Z4t=e=>Qc(e,t=>xt.cursor(e.lineBlockAt(t.head).from)),K4t=e=>Qc(e,t=>xt.cursor(e.lineBlockAt(t.head).to)),iue=({state:e,dispatch:t})=>(t($u(e,{anchor:0})),!0),oue=({state:e,dispatch:t})=>(t($u(e,{anchor:e.doc.length})),!0),sue=({state:e,dispatch:t})=>(t($u(e,{anchor:e.selection.main.anchor,head:0})),!0),lue=({state:e,dispatch:t})=>(t($u(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),J4t=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),e5t=({state:e,dispatch:t})=>{let n=zA(e).map(({from:r,to:a})=>xt.range(r,Math.min(a+1,e.doc.length)));return t(e.update({selection:xt.create(n),userEvent:"select"})),!0},t5t=({state:e,dispatch:t})=>{let n=Kb(e.selection,r=>{let a=Aa(e),i=a.resolveStack(r.from,1);if(r.empty){let o=a.resolveStack(r.from,-1);o.node.from>=i.node.from&&o.node.to<=i.node.to&&(i=o)}for(let o=i;o;o=o.next){let{node:s}=o;if((s.from=r.to||s.to>r.to&&s.from<=r.from)&&o.next)return xt.range(s.to,s.from)}return r});return n.eq(e.selection)?!1:(t($u(e,n)),!0)};function _Ne(e,t){let{state:n}=e,r=n.selection,a=n.selection.ranges.slice();for(let i of n.selection.ranges){let o=n.doc.lineAt(i.head);if(t?o.to0)for(let s=i;;){let l=e.moveVertically(s,t);if(l.heado.to){a.some(c=>c.head==l.head)||a.push(l);break}else{if(l.head==s.head)break;s=l}}}return a.length==r.ranges.length?!1:(e.dispatch($u(n,xt.create(a,a.length-1))),!0)}const n5t=e=>_Ne(e,!1),r5t=e=>_Ne(e,!0),a5t=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=xt.create([n.main]):n.main.empty||(r=xt.create([xt.cursor(n.main.head)])),r?(t($u(e,r)),!0):!1};function Sx(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,a=r.changeByRange(i=>{let{from:o,to:s}=i;if(o==s){let l=t(i);lo&&(n="delete.forward",l=eC(e,l,!0)),o=Math.min(o,l),s=Math.max(s,l)}else o=eC(e,o,!1),s=eC(e,s,!0);return o==s?{range:i}:{changes:{from:o,to:s},range:xt.cursor(o,oa(e)))r.between(t,t,(a,i)=>{at&&(t=n?i:a)});return t}const ENe=(e,t,n)=>Sx(e,r=>{let a=r.from,{state:i}=e,o=i.doc.lineAt(a),s,l;if(n&&!t&&a>o.from&&aENe(e,!1,!0),xNe=e=>ENe(e,!0,!1),TNe=(e,t)=>Sx(e,n=>{let r=n.head,{state:a}=e,i=a.doc.lineAt(r),o=a.charCategorizer(r);for(let s=null;;){if(r==(t?i.to:i.from)){r==n.head&&i.number!=(t?a.doc.lines:1)&&(r+=t?1:-1);break}let l=So(i.text,r-i.from,t)+i.from,c=i.text.slice(Math.min(r,l)-i.from,Math.max(r,l)-i.from),u=o(c);if(s!=null&&u!=s)break;(c!=" "||r!=n.head)&&(s=u),r=l}return r}),wNe=e=>TNe(e,!1),i5t=e=>TNe(e,!0),o5t=e=>Sx(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headSx(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),l5t=e=>Sx(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head{if(e.readOnly)return!1;let n=e.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:ma.of(["",""])},range:xt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},u5t=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let a=r.from,i=e.doc.lineAt(a),o=a==i.from?a-1:So(i.text,a-i.from,!1)+i.from,s=a==i.to?a+1:So(i.text,a-i.from,!0)+i.from;return{changes:{from:o,to:s,insert:e.doc.slice(a,s).append(e.doc.slice(o,a))},range:xt.cursor(s)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function zA(e){let t=[],n=-1;for(let r of e.selection.ranges){let a=e.doc.lineAt(r.from),i=e.doc.lineAt(r.to);if(!r.empty&&r.to==i.from&&(i=e.doc.lineAt(r.to-1)),n>=a.number){let o=t[t.length-1];o.to=i.to,o.ranges.push(r)}else t.push({from:a.from,to:i.to,ranges:[r]});n=i.number+1}return t}function CNe(e,t,n){if(e.readOnly)return!1;let r=[],a=[];for(let i of zA(e)){if(n?i.to==e.doc.length:i.from==0)continue;let o=e.doc.lineAt(n?i.to+1:i.from-1),s=o.length+1;if(n){r.push({from:i.to,to:o.to},{from:i.from,insert:o.text+e.lineBreak});for(let l of i.ranges)a.push(xt.range(Math.min(e.doc.length,l.anchor+s),Math.min(e.doc.length,l.head+s)))}else{r.push({from:o.from,to:i.from},{from:i.to,insert:e.lineBreak+o.text});for(let l of i.ranges)a.push(xt.range(l.anchor-s,l.head-s))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:xt.create(a,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const d5t=({state:e,dispatch:t})=>CNe(e,t,!1),f5t=({state:e,dispatch:t})=>CNe(e,t,!0);function $Ne(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of zA(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});let a=e.changes(r);return t(e.update({changes:a,selection:e.selection.map(a,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const p5t=({state:e,dispatch:t})=>$Ne(e,t,!1),m5t=({state:e,dispatch:t})=>$Ne(e,t,!0),h5t=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(zA(t).map(({from:a,to:i})=>(a>0?a--:i{let i;if(e.lineWrapping){let o=e.lineBlockAt(a.head),s=e.coordsAtPos(a.head,a.assoc||1);s&&(i=o.bottom+e.documentTop-s.bottom+e.defaultLineHeight/2)}return e.moveVertically(a,!0,i)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function g5t(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Aa(e).resolveInner(t),r=n.childBefore(t),a=n.childAfter(t),i;return r&&a&&r.to<=t&&a.from>=t&&(i=r.type.prop(Cr.closedBy))&&i.indexOf(a.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(a.from).from&&!/\S/.test(e.sliceDoc(r.to,a.from))?{from:r.to,to:a.from}:null}const cue=RNe(!1),O5t=RNe(!0);function RNe(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(a=>{let{from:i,to:o}=a,s=t.doc.lineAt(i),l=!e&&i==o&&g5t(t,i);e&&(i=o=(o<=s.to?s:t.doc.lineAt(o)).to);let c=new CA(t,{simulateBreak:i,simulateDoubleBreak:!!l}),u=zY(c,i);for(u==null&&(u=_u(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));os.from&&i{let a=[];for(let o=r.from;o<=r.to;){let s=e.doc.lineAt(o);s.number>n&&(r.empty||r.to>s.from)&&(t(s,a,r),n=s.number),o=s.to+1}let i=e.changes(a);return{changes:a,range:xt.range(i.mapPos(r.anchor,1),i.mapPos(r.head,1))}})}const b5t=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new CA(e,{overrideIndentation:i=>{let o=n[i];return o??-1}}),a=bV(e,(i,o,s)=>{let l=zY(r,i.from);if(l==null)return;/\S/.test(i.text)||(l=0);let c=/^\s*/.exec(i.text)[0],u=W_(e,l);(c!=u||s.frome.readOnly?!1:(t(e.update(bV(e,(n,r)=>{r.push({from:n.from,insert:e.facet(Gb)})}),{userEvent:"input.indent"})),!0),kNe=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(bV(e,(n,r)=>{let a=/^\s*/.exec(n.text)[0];if(!a)return;let i=_u(a,e.tabSize),o=0,s=W_(e,Math.max(0,i-ER(e)));for(;o(e.setTabFocusMode(),!0),y5t=[{key:"Ctrl-b",run:oNe,shift:hNe,preventDefault:!0},{key:"Ctrl-f",run:sNe,shift:gNe},{key:"Ctrl-p",run:uNe,shift:vNe},{key:"Ctrl-n",run:dNe,shift:yNe},{key:"Ctrl-a",run:z4t,shift:Z4t},{key:"Ctrl-e",run:B4t,shift:K4t},{key:"Ctrl-d",run:xNe},{key:"Ctrl-h",run:kB},{key:"Ctrl-k",run:o5t},{key:"Ctrl-Alt-h",run:wNe},{key:"Ctrl-o",run:c5t},{key:"Ctrl-t",run:u5t},{key:"Ctrl-v",run:PB}],S5t=[{key:"ArrowLeft",run:oNe,shift:hNe,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:P4t,shift:j4t,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:L4t,shift:G4t,preventDefault:!0},{key:"ArrowRight",run:sNe,shift:gNe,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:k4t,shift:X4t,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Q4t,shift:H4t,preventDefault:!0},{key:"ArrowUp",run:uNe,shift:vNe,preventDefault:!0},{mac:"Cmd-ArrowUp",run:iue,shift:sue},{mac:"Ctrl-ArrowUp",run:nue,shift:rue},{key:"ArrowDown",run:dNe,shift:yNe,preventDefault:!0},{mac:"Cmd-ArrowDown",run:oue,shift:lue},{mac:"Ctrl-ArrowDown",run:PB,shift:aue},{key:"PageUp",run:nue,shift:rue},{key:"PageDown",run:PB,shift:aue},{key:"Home",run:D4t,shift:W4t,preventDefault:!0},{key:"Mod-Home",run:iue,shift:sue},{key:"End",run:M4t,shift:q4t,preventDefault:!0},{key:"Mod-End",run:oue,shift:lue},{key:"Enter",run:cue,shift:cue},{key:"Mod-a",run:J4t},{key:"Backspace",run:kB,shift:kB,preventDefault:!0},{key:"Delete",run:xNe,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:wNe,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:i5t,preventDefault:!0},{mac:"Mod-Backspace",run:s5t,preventDefault:!0},{mac:"Mod-Delete",run:l5t,preventDefault:!0}].concat(y5t.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),_5t=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:N4t,shift:Y4t},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:I4t,shift:V4t},{key:"Alt-ArrowUp",run:d5t},{key:"Shift-Alt-ArrowUp",run:p5t},{key:"Alt-ArrowDown",run:f5t},{key:"Shift-Alt-ArrowDown",run:m5t},{key:"Mod-Alt-ArrowUp",run:n5t},{key:"Mod-Alt-ArrowDown",run:r5t},{key:"Escape",run:a5t},{key:"Mod-Enter",run:O5t},{key:"Alt-l",mac:"Ctrl-l",run:e5t},{key:"Mod-i",run:t5t,preventDefault:!0},{key:"Mod-[",run:kNe},{key:"Mod-]",run:PNe},{key:"Mod-Alt-\\",run:b5t},{key:"Shift-Mod-k",run:h5t},{key:"Shift-Mod-\\",run:U4t},{key:"Mod-/",run:d4t},{key:"Alt-A",run:p4t},{key:"Ctrl-m",mac:"Shift-Alt-m",run:v5t}].concat(S5t),E5t={key:"Tab",run:PNe,shift:kNe},uue=typeof String.prototype.normalize=="function"?e=>e.normalize("NFKD"):e=>e;class lb{constructor(t,n,r=0,a=t.length,i,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,a),this.bufferStart=r,this.normalize=i?s=>i(uue(s)):uue,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ks(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let t=this.peek();if(t<0)return this.done=!0,this;let n=vY(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=ed(t);let a=this.normalize(n);if(a.length)for(let i=0,o=r;;i++){let s=a.charCodeAt(i),l=this.match(s,o,this.bufferPos+this.bufferStart);if(i==a.length-1){if(l)return this.value=l,this;break}o==r&&ithis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,a=r+n[0].length;if(this.matchPos=MR(this.text,a+(r==a?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,a,n)))return this.value={from:r,to:a,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||a.to<=n){let s=new w0(n,t.sliceString(n,r));return Y3.set(t,s),s}if(a.from==n&&a.to==r)return a;let{text:i,from:o}=a;return o>n&&(i=t.sliceString(n,o)+i,o=n),a.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,a=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,a,n)))return this.value={from:r,to:a,match:n},this.matchPos=MR(this.text,a+(r==a?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=w0.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(NNe.prototype[Symbol.iterator]=INe.prototype[Symbol.iterator]=function(){return this});function x5t(e){try{return new RegExp(e,vV),!0}catch{return!1}}function MR(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}const T5t=e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:r,result:a}=zwt(e,{label:t.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:t.phrase("go")});return a.then(i=>{let o=i&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(i.elements.line.value);if(!o){e.dispatch({effects:r});return}let s=t.doc.lineAt(t.selection.main.head),[,l,c,u,d]=o,f=u?+u.slice(1):0,m=c?+c:s.number;if(c&&d){let O=m/100;l&&(O=O*(l=="-"?-1:1)+s.number/t.doc.lines),m=Math.round(t.doc.lines*O)}else c&&l&&(m=m*(l=="-"?-1:1)+s.number);let h=t.doc.line(Math.max(1,Math.min(t.doc.lines,m))),g=xt.cursor(h.from+Math.max(0,Math.min(f,h.length)));e.dispatch({effects:[r,gn.scrollIntoView(g.from,{y:"center"})],selection:g})}),!0},w5t={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},C5t=yn.define({combine(e){return wu(e,w5t,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function $5t(e){return[N5t,A5t]}const R5t=Hn.mark({class:"cm-selectionMatch"}),P5t=Hn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function due(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=li.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=li.Word)}function k5t(e,t,n,r){return e(t.sliceDoc(n,n+1))==li.Word&&e(t.sliceDoc(r-1,r))==li.Word}const A5t=yi.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(C5t),{state:n}=e,r=n.selection;if(r.ranges.length>1)return Hn.none;let a=r.main,i,o=null;if(a.empty){if(!t.highlightWordAroundCursor)return Hn.none;let l=n.wordAt(a.head);if(!l)return Hn.none;o=n.charCategorizer(a.head),i=n.sliceDoc(l.from,l.to)}else{let l=a.to-a.from;if(l200)return Hn.none;if(t.wholeWords){if(i=n.sliceDoc(a.from,a.to),o=n.charCategorizer(a.head),!(due(o,n,a.from,a.to)&&k5t(o,n,a.from,a.to)))return Hn.none}else if(i=n.sliceDoc(a.from,a.to),!i)return Hn.none}let s=[];for(let l of e.visibleRanges){let c=new lb(n.doc,i,l.from,l.to);for(;!c.next().done;){let{from:u,to:d}=c.value;if((!o||due(o,n,u,d))&&(a.empty&&u<=a.from&&d>=a.to?s.push(P5t.range(u,d)):(u>=a.to||d<=a.from)&&s.push(R5t.range(u,d)),s.length>t.maxMatches))return Hn.none}}return Hn.set(s)}},{decorations:e=>e.decorations}),N5t=gn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),I5t=({state:e,dispatch:t})=>{let{selection:n}=e,r=xt.create(n.ranges.map(a=>e.wordAt(a.head)||xt.cursor(a.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function M5t(e,t){let{main:n,ranges:r}=e.selection,a=e.wordAt(n.head),i=a&&a.from==n.from&&a.to==n.to;for(let o=!1,s=new lb(e.doc,t,r[r.length-1].to);;)if(s.next(),s.done){if(o)return null;s=new lb(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),o=!0}else{if(o&&r.some(l=>l.from==s.value.from))continue;if(i){let l=e.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const D5t=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(i=>i.from===i.to))return I5t({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(i=>e.sliceDoc(i.from,i.to)!=r))return!1;let a=M5t(e,r);return a?(t(e.update({selection:e.selection.addRange(xt.range(a.from,a.to),!1),effects:gn.scrollIntoView(a.to)})),!0):!1},Jb=yn.define({combine(e){return wu(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new H5t(t),scrollToMatch:t=>gn.scrollIntoView(t)})}});class MNe{constructor(t){this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||x5t(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord,this.test=t.test}unquote(t){return this.literal?t:t.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?` +`:r=="r"?"\r":r=="t"?" ":"\\")}eq(t){return this.search==t.search&&this.replace==t.replace&&this.caseSensitive==t.caseSensitive&&this.regexp==t.regexp&&this.wholeWord==t.wholeWord&&this.test==t.test}create(){return this.regexp?new U5t(this):new z5t(this)}getCursor(t,n=0,r){let a=t.doc?t:ea.create({doc:t});return r==null&&(r=a.doc.length),this.regexp?WO(this,a,n,r):qO(this,a,n,r)}}class DNe{constructor(t){this.spec=t}}function L5t(e,t,n){return(r,a,i,o)=>{if(n&&!n(r,a,i,o))return!1;let s=r>=o&&a<=o+i.length?i.slice(r-o,a-o):t.doc.sliceString(r,a);return e(s,t,r,a)}}function qO(e,t,n,r){let a;return e.wholeWord&&(a=Q5t(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(a=L5t(e.test,t,a)),new lb(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),a)}function Q5t(e,t){return(n,r,a,i)=>((i>n||i+a.length=n)return null;a.push(r.value)}return a}highlight(t,n,r,a){let i=qO(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!i.next().done;)a(i.value.from,i.value.to)}}function B5t(e,t,n){return(r,a,i)=>(!n||n(r,a,i))&&e(i[0],t,r,a)}function WO(e,t,n,r){let a;return e.wholeWord&&(a=F5t(t.charCategorizer(t.selection.main.head))),e.test&&(a=B5t(e.test,t,a)),new NNe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:a},n,r)}function DR(e,t){return e.slice(So(e,t,!1),t)}function LR(e,t){return e.slice(t,So(e,t))}function F5t(e){return(t,n,r)=>!r[0].length||(e(DR(r.input,r.index))!=li.Word||e(LR(r.input,r.index))!=li.Word)&&(e(LR(r.input,r.index+r[0].length))!=li.Word||e(DR(r.input,r.index+r[0].length))!=li.Word)}class U5t extends DNe{nextMatch(t,n,r){let a=WO(this.spec,t,r,t.doc.length).next();return a.done&&(a=WO(this.spec,t,0,n).next()),a.done?null:a.value}prevMatchInRange(t,n,r){for(let a=1;;a++){let i=Math.max(n,r-a*1e4),o=WO(this.spec,t,i,r),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==n||s.from>i+10))return s;if(i==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(n,r)=>{if(r=="&")return t.match[0];if(r=="$")return"$";for(let a=r.length;a>0;a--){let i=+r.slice(0,a);if(i>0&&i=n)return null;a.push(r.value)}return a}highlight(t,n,r,a){let i=WO(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!i.next().done;)a(i.value.from,i.value.to)}}const i1=_r.define(),yV=_r.define(),Xp=uo.define({create(e){return new V3(AB(e).create(),null)},update(e,t){for(let n of t.effects)n.is(i1)?e=new V3(n.value.create(),e.panel):n.is(yV)&&(e=new V3(e.query,n.value?SV:null));return e},provide:e=>V_.from(e,t=>t.panel)});class V3{constructor(t,n){this.query=t,this.panel=n}}const j5t=Hn.mark({class:"cm-searchMatch"}),X5t=Hn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Y5t=yi.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Xp))}update(e){let t=e.state.field(Xp);(t!=e.startState.field(Xp)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return Hn.none;let{view:n}=this,r=new $f;for(let a=0,i=n.visibleRanges,o=i.length;ai[a+1].from-500;)l=i[++a].to;e.highlight(n.state,s,l,(c,u)=>{let d=n.state.selection.ranges.some(f=>f.from==c&&f.to==u);r.add(c,u,d?X5t:j5t)})}return r.finish()}},{decorations:e=>e.decorations});function _x(e){return t=>{let n=t.state.field(Xp,!1);return n&&n.query.spec.valid?e(t,n):zNe(t)}}const QR=_x((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let a=xt.single(r.from,r.to),i=e.state.facet(Jb);return e.dispatch({selection:a,effects:[_V(e,r),i.scrollToMatch(a.main,e)],userEvent:"select.search"}),QNe(e),!0}),zR=_x((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,a=t.prevMatch(n,r,r);if(!a)return!1;let i=xt.single(a.from,a.to),o=e.state.facet(Jb);return e.dispatch({selection:i,effects:[_V(e,a),o.scrollToMatch(i.main,e)],userEvent:"select.search"}),QNe(e),!0}),V5t=_x((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:xt.create(n.map(r=>xt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),q5t=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:a}=n.main,i=[],o=0;for(let s=new lb(e.doc,e.sliceDoc(r,a));!s.next().done;){if(i.length>1e3)return!1;s.value.from==r&&(o=i.length),i.push(xt.range(s.value.from,s.value.to))}return t(e.update({selection:xt.create(i,o),userEvent:"select.search.matches"})),!0},fue=_x((e,{query:t})=>{let{state:n}=e,{from:r,to:a}=n.selection.main;if(n.readOnly)return!1;let i=t.nextMatch(n,r,r);if(!i)return!1;let o=i,s=[],l,c,u=[];o.from==r&&o.to==a&&(c=n.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:c}),o=t.nextMatch(n,o.from,o.to),u.push(gn.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+".")));let d=e.state.changes(s);return o&&(l=xt.single(o.from,o.to).map(d),u.push(_V(e,o)),u.push(n.facet(Jb).scrollToMatch(l.main,e))),e.dispatch({changes:d,selection:l,effects:u,userEvent:"input.replace"}),!0}),W5t=_x((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(a=>{let{from:i,to:o}=a;return{from:i,to:o,insert:t.getReplacement(a)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:gn.announce.of(r),userEvent:"input.replace.all"}),!0});function SV(e){return e.state.facet(Jb).createPanel(e)}function AB(e,t){var n,r,a,i,o;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let c=e.facet(Jb);return new MNe({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:c.caseSensitive,literal:(a=t==null?void 0:t.literal)!==null&&a!==void 0?a:c.literal,regexp:(i=t==null?void 0:t.regexp)!==null&&i!==void 0?i:c.regexp,wholeWord:(o=t==null?void 0:t.wholeWord)!==null&&o!==void 0?o:c.wholeWord})}function LNe(e){let t=DY(e,SV);return t&&t.dom.querySelector("[main-field]")}function QNe(e){let t=LNe(e);t&&t==e.root.activeElement&&t.select()}const zNe=e=>{let t=e.state.field(Xp,!1);if(t&&t.panel){let n=LNe(e);if(n&&n!=e.root.activeElement){let r=AB(e.state,t.query.spec);r.valid&&e.dispatch({effects:i1.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[yV.of(!0),t?i1.of(AB(e.state,t.query.spec)):_r.appendConfig.of(K5t)]});return!0},BNe=e=>{let t=e.state.field(Xp,!1);if(!t||!t.panel)return!1;let n=DY(e,SV);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:yV.of(!1)}),!0},G5t=[{key:"Mod-f",run:zNe,scope:"editor search-panel"},{key:"F3",run:QR,shift:zR,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:QR,shift:zR,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:BNe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:q5t},{key:"Mod-Alt-g",run:T5t},{key:"Mod-d",run:D5t,preventDefault:!0}];class H5t{constructor(t){this.view=t;let n=this.query=t.state.field(Xp).query.spec;this.commit=this.commit.bind(this),this.searchField=Ia("input",{value:n.search,placeholder:xl(t,"Find"),"aria-label":xl(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ia("input",{value:n.replace,placeholder:xl(t,"Replace"),"aria-label":xl(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ia("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Ia("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Ia("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(a,i,o){return Ia("button",{class:"cm-button",name:a,onclick:i,type:"button"},o)}this.dom=Ia("div",{onkeydown:a=>this.keydown(a),class:"cm-search"},[this.searchField,r("next",()=>QR(t),[xl(t,"next")]),r("prev",()=>zR(t),[xl(t,"previous")]),r("select",()=>V5t(t),[xl(t,"all")]),Ia("label",null,[this.caseField,xl(t,"match case")]),Ia("label",null,[this.reField,xl(t,"regexp")]),Ia("label",null,[this.wordField,xl(t,"by word")]),...t.state.readOnly?[]:[Ia("br"),this.replaceField,r("replace",()=>fue(t),[xl(t,"replace")]),r("replaceAll",()=>W5t(t),[xl(t,"replace all")])],Ia("button",{name:"close",onclick:()=>BNe(t),"aria-label":xl(t,"close"),type:"button"},["×"])])}commit(){let t=new MNe({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});t.eq(this.query)||(this.query=t,this.view.dispatch({effects:i1.of(t)}))}keydown(t){GTt(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?zR:QR)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),fue(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(i1)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(t){this.query=t,this.searchField.value=t.search,this.replaceField.value=t.replace,this.caseField.checked=t.caseSensitive,this.reField.checked=t.regexp,this.wordField.checked=t.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Jb).top}}function xl(e,t){return e.state.phrase(t)}const tC=30,nC=/[\s\.,:;?!]/;function _V(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),a=e.state.doc.lineAt(n).to,i=Math.max(r.from,t-tC),o=Math.min(a,n+tC),s=e.state.sliceDoc(i,o);if(i!=r.from){for(let l=0;ls.length-tC;l--)if(!nC.test(s[l-1])&&nC.test(s[l])){s=s.slice(0,l);break}}return gn.announce.of(`${e.state.phrase("current match")}. ${s} ${e.state.phrase("on line")} ${r.number}.`)}const Z5t=gn.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),K5t=[Xp,Qf.low(Y5t),Z5t];var pue=function(t){t===void 0&&(t={});var n=[];t.closeBracketsKeymap!==!1&&(n=n.concat(N$t)),t.defaultKeymap!==!1&&(n=n.concat(_5t)),t.searchKeymap!==!1&&(n=n.concat(G5t)),t.historyKeymap!==!1&&(n=n.concat(R4t)),t.foldKeymap!==!1&&(n=n.concat(OCt)),t.completionKeymap!==!1&&(n=n.concat(Oke)),t.lintKeymap!==!1&&(n=n.concat(qIt));var r=[];return t.lineNumbers!==!1&&r.push(Gwt()),t.highlightActiveLineGutter!==!1&&r.push(Kwt()),t.highlightSpecialChars!==!1&&r.push(fwt()),t.history!==!1&&r.push(y4t()),t.foldGutter!==!1&&r.push(SCt()),t.drawSelection!==!1&&r.push(twt()),t.dropCursor!==!1&&r.push(owt()),t.allowMultipleSelections!==!1&&r.push(ea.allowMultipleSelections.of(!0)),t.indentOnInput!==!1&&r.push(cCt()),t.syntaxHighlighting!==!1&&r.push(FY(TCt,{fallback:!0})),t.bracketMatching!==!1&&r.push(ACt()),t.closeBrackets!==!1&&r.push(R$t()),t.autocompletion!==!1&&r.push(B$t()),t.rectangularSelection!==!1&&r.push(wwt()),t.crosshairCursor!==!1&&r.push(Rwt()),t.highlightActiveLine!==!1&&r.push(bwt()),t.highlightSelectionMatches!==!1&&r.push($5t()),t.tabSize&&typeof t.tabSize=="number"&&r.push(Gb.of(" ".repeat(t.tabSize))),r.concat([Wb.of(n.flat())]).filter(Boolean)};const J5t="#e5c07b",mue="#e06c75",e3t="#56b6c2",t3t="#ffffff",H2="#abb2bf",NB="#7d8799",n3t="#61afef",r3t="#98c379",hue="#d19a66",a3t="#c678dd",i3t="#21252b",gue="#2c313a",Oue="#282c34",q3="#353a42",o3t="#3E4451",bue="#528bff",s3t=gn.theme({"&":{color:H2,backgroundColor:Oue},".cm-content":{caretColor:bue},".cm-cursor, .cm-dropCursor":{borderLeftColor:bue},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:o3t},".cm-panels":{backgroundColor:i3t,color:H2},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Oue,color:NB,border:"none"},".cm-activeLineGutter":{backgroundColor:gue},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:q3},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:q3,borderBottomColor:q3},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:gue,color:H2}}},{dark:!0}),l3t=Hb.define([{tag:H.keyword,color:a3t},{tag:[H.name,H.deleted,H.character,H.propertyName,H.macroName],color:mue},{tag:[H.function(H.variableName),H.labelName],color:n3t},{tag:[H.color,H.constant(H.name),H.standard(H.name)],color:hue},{tag:[H.definition(H.name),H.separator],color:H2},{tag:[H.typeName,H.className,H.number,H.changed,H.annotation,H.modifier,H.self,H.namespace],color:J5t},{tag:[H.operator,H.operatorKeyword,H.url,H.escape,H.regexp,H.link,H.special(H.string)],color:e3t},{tag:[H.meta,H.comment],color:NB},{tag:H.strong,fontWeight:"bold"},{tag:H.emphasis,fontStyle:"italic"},{tag:H.strikethrough,textDecoration:"line-through"},{tag:H.link,color:NB,textDecoration:"underline"},{tag:H.heading,fontWeight:"bold",color:mue},{tag:[H.atom,H.bool,H.special(H.variableName)],color:hue},{tag:[H.processingInstruction,H.string,H.inserted],color:r3t},{tag:H.invalid,color:t3t}]),c3t=[s3t,FY(l3t)];var u3t=function(t){t===void 0&&(t={});var{indentWithTab:n=!0,editable:r=!0,readOnly:a=!1,theme:i="light",placeholder:o="",basicSetup:s=!0}=t,l=[],c=gn.theme({"&":{backgroundColor:"#fff"}},{dark:!1});switch(n&&l.unshift(Wb.of([E5t])),s&&(typeof s=="boolean"?l.unshift(pue()):l.unshift(pue(s))),o&&l.unshift(_wt(o)),i){case"light":l.push(c);break;case"dark":l.push(c3t);break;case"none":break;default:l.push(i);break}return r===!1&&l.push(gn.editable.of(!1)),a&&l.push(ea.readOnly.of(!0)),[...l]},d3t=e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to)),selectedText:e.state.selection.ranges.some(t=>!t.empty)}),vue=Ad.define();function f3t(e){var{value:t,selection:n,onChange:r,onStatistics:a,onCreateEditor:i,onUpdate:o,extensions:s=[],autoFocus:l,theme:c="light",height:u="",minHeight:d="",maxHeight:f="",placeholder:m="",width:h="",minWidth:g="",maxWidth:O="",editable:v=!0,readOnly:y=!1,indentWithTab:S=!0,basicSetup:C=!0,root:_,initialState:w}=e,[T,k]=p.useState(),[A,I]=p.useState(),[M,Q]=p.useState(),B=gn.theme({"&":{height:u,minHeight:d,maxHeight:f,width:h,minWidth:g,maxWidth:O}}),D=gn.updateListener.of($=>{if($.docChanged&&typeof r=="function"&&!$.transactions.some(F=>F.annotation(vue))){var P=$.state.doc,z=P.toString();r(z,$)}a&&a(d3t($))}),U=u3t({theme:c,editable:v,readOnly:y,placeholder:m,indentWithTab:S,basicSetup:C}),R=[D,B,...U];return o&&typeof o=="function"&&R.push(gn.updateListener.of(o)),R=R.concat(s),p.useEffect(()=>{if(T&&!M){var $={doc:t,selection:n,extensions:R},P=w?ea.fromJSON(w.json,$,w.fields):ea.create($);if(Q(P),!A){var z=new gn({state:P,parent:T,root:_});I(z),i&&i(z,P)}}return()=>{A&&(Q(void 0),I(void 0))}},[T,M]),p.useEffect(()=>k(e.container),[e.container]),p.useEffect(()=>()=>{A&&(A.destroy(),I(void 0))},[A]),p.useEffect(()=>{l&&A&&A.focus()},[l,A]),p.useEffect(()=>{A&&A.dispatch({effects:_r.reconfigure.of(R)})},[c,s,u,d,f,h,g,O,m,v,y,S,C,r,o]),p.useEffect(()=>{if(t!==void 0){var $=A?A.state.doc.toString():"";A&&t!==$&&A.dispatch({changes:{from:0,to:$.length,insert:t||""},annotations:[vue.of(!0)]})}},[t,A]),{state:M,setState:Q,view:A,setView:I,container:T,setContainer:k}}var p3t=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],FNe=p.forwardRef((e,t)=>{var{className:n,value:r="",selection:a,extensions:i=[],onChange:o,onStatistics:s,onCreateEditor:l,onUpdate:c,autoFocus:u,theme:d="light",height:f,minHeight:m,maxHeight:h,width:g,minWidth:O,maxWidth:v,basicSetup:y,placeholder:S,indentWithTab:C,editable:_,readOnly:w,root:T,initialState:k}=e,A=pj(e,p3t),I=p.useRef(null),{state:M,view:Q,container:B}=f3t({container:I.current,root:T,value:r,autoFocus:u,theme:d,height:f,minHeight:m,maxHeight:h,width:g,minWidth:O,maxWidth:v,basicSetup:y,placeholder:S,indentWithTab:C,editable:_,readOnly:w,selection:a,onChange:o,onStatistics:s,onCreateEditor:l,onUpdate:c,extensions:i,initialState:k});if(p.useImperativeHandle(t,()=>({editor:I.current,state:M,view:Q}),[I,B,M,Q]),typeof r!="string")throw new Error("value must be typeof string but got "+typeof r);var D=typeof d=="string"?"cm-theme-"+d:"cm-theme";return x.jsx("div",Ae({ref:I,className:""+D+(n?" "+n:"")},A))});FNe.displayName="CodeMirror";var UNe=typeof global=="object"&&global&&global.Object===Object&&global,m3t=typeof self=="object"&&self&&self.Object===Object&&self,Nd=UNe||m3t||Function("return this")(),Sd=Nd.Symbol,jNe=Object.prototype,h3t=jNe.hasOwnProperty,g3t=jNe.toString,fy=Sd?Sd.toStringTag:void 0;function O3t(e){var t=h3t.call(e,fy),n=e[fy];try{e[fy]=void 0;var r=!0}catch{}var a=g3t.call(e);return r&&(t?e[fy]=n:delete e[fy]),a}var b3t=Object.prototype,v3t=b3t.toString;function y3t(e){return v3t.call(e)}var S3t="[object Null]",_3t="[object Undefined]",yue=Sd?Sd.toStringTag:void 0;function Pg(e){return e==null?e===void 0?_3t:S3t:yue&&yue in Object(e)?O3t(e):y3t(e)}function Em(e){return e!=null&&typeof e=="object"}var E3t="[object Symbol]";function EV(e){return typeof e=="symbol"||Em(e)&&Pg(e)==E3t}function XNe(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n0){if(++t>=U3t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function V3t(e){return function(){return e}}var BR=(function(){try{var e=Ag(Object,"defineProperty");return e({},"",{}),e}catch{}})(),q3t=BR?function(e,t){return BR(e,"toString",{configurable:!0,enumerable:!1,value:V3t(t),writable:!0})}:VNe,WNe=Y3t(q3t);function W3t(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=e6t}function Ex(e){return e!=null&&KNe(e.length)&&!xV(e)}function t6t(e,t,n){if(!xm(n))return!1;var r=typeof t;return(r=="number"?Ex(n)&&GNe(t,n.length):r=="string"&&t in n)?BA(n[t],e):!1}function n6t(e){return J3t(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&t6t(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r-1}function fMt(e,t){var n=this.__data__,r=jA(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Bf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ta?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r1),i}),ev(e,pIe(e),n),r&&(n=Z2(n,w8t|C8t|$8t,T8t));for(var a=t.length;a--;)x8t(n,t[a]);return n}),Vue;function P8t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var k8t=Wr(Vue||(Vue=P8t([` .`,`-code-block { width: 100%; @@ -739,7 +739,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho background: var(--`,`-color-bg-base); border: 1px solid var(--`,`-color-border-secondary); border-radius: 4px; - + &:hover { color: var(--`,`-color-text-secondary); cursor: pointer; @@ -777,19 +777,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho outline: none; } } -`])),function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix});function r1(e){"@babel/helpers - typeof";return r1=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},r1(e)}function Eue(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 Q3(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"{}",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,r=t;try{r=JSON.stringify(JSON.parse(t),null,n)}catch{}return r},u8t=function(t){var n,r=yi(),a=Z.useContext(tm.ConfigContext),i=((n=a.theme)===null||n===void 0?void 0:n.algorithm)===jl.darkAlgorithm,o=r.sparkPrefix,s=t8t(),l=p.useMemo(function(){return t.theme===void 0?i?kce:Pce:t.theme==="dark"?kce:Pce},[i,t.theme]),c=(t.extensions||[]).concat(typeof t.language=="string"?[].concat(z3(xue[t.language]||[]),z3(t.value&&t.language in Tue?Tue[t.language]:[])):t.language.reduce(function(f,m){return[].concat(z3(f),[xue[m]])},[])),u=x.jsx("div",{className:ce("".concat(o,"-code-block"),t.className),children:x.jsx(mNe,Q3({extensions:c,value:t.language==="json"?c8t(t.value||""):t.value||"",theme:l},JDt(t,["language","theme","extensions","value"])))});if(t.theme!==void 0){var d=t.theme==="dark"?X9t:bIe;return x.jsx(x.Fragment,{children:x.jsxs(tm,Q3(Q3({},d),{},{children:[x.jsx(s,{}),u]}))})}return x.jsxs(x.Fragment,{children:[x.jsx(s,{}),u]})},wue;function d8t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var f8t=qr(wue||(wue=d8t([` +`])),function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix});function c1(e){"@babel/helpers - typeof";return c1=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},c1(e)}function que(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 H3(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:"{}",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,r=t;try{r=JSON.stringify(JSON.parse(t),null,n)}catch{}return r},B8t=function(t){var n,r=Si(),a=Z.useContext(sm.ConfigContext),i=((n=a.theme)===null||n===void 0?void 0:n.algorithm)===jl.darkAlgorithm,o=r.sparkPrefix,s=k8t(),l=p.useMemo(function(){return t.theme===void 0?i?tue:eue:t.theme==="dark"?tue:eue},[i,t.theme]),c=(t.extensions||[]).concat(typeof t.language=="string"?[].concat(Z3(Wue[t.language]||[]),Z3(t.value&&t.language in Gue?Gue[t.language]:[])):t.language.reduce(function(f,m){return[].concat(Z3(f),[Wue[m]])},[])),u=x.jsx("div",{className:le("".concat(o,"-code-block"),t.className),children:x.jsx(FNe,H3({extensions:c,value:t.language==="json"?z8t(t.value||""):t.value||"",theme:l},R8t(t,["language","theme","extensions","value"])))});if(t.theme!==void 0){var d=t.theme==="dark"?Tzt:jIe;return x.jsx(x.Fragment,{children:x.jsxs(sm,H3(H3({},d),{},{children:[x.jsx(s,{}),u]}))})}return x.jsxs(x.Fragment,{children:[x.jsx(s,{}),u]})},Hue;function F8t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var U8t=Wr(Hue||(Hue=F8t([` .`,`-collapse-panel { width: 100%; border-radius: 8px; border: 1px solid var(--`,`-color-border-secondary); transition: all 0.3s ease; background-color: var(--`,`-color-bg-base); - + &.collapsible:not(.expanded) { cursor: pointer; } - + .`,`-collapse-panel-header { display: flex; justify-content: space-between; @@ -802,70 +802,70 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho position: relative; cursor: pointer; padding: 0 12px; - + .collapsible:hover & { background: #f0f2f3; } } - + .`,`-collapse-panel-extra { display: inline-flex; align-items: center; justify-content: center; float: right; } - + .`,`-collapse-panel-title { color: var(--`,`-color-text); font-size: 14px; display: flex; } - + .`,`-collapse-panel-icon-wrapper { display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; } - + .`,`-collapse-panel-icon { font-size: 18px; transition: transform 0.3s ease; } - + .`,`-collapse-panel-content { position: relative; border-radius: 0 0 6px 6px; transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; } - + .`,`-collapse-panel-contentWrapper { &.scrollable { height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--`,`-color-fill) transparent; - + &::-webkit-scrollbar { width: 6px; } - + &::-webkit-scrollbar-track { background: transparent; } - + &::-webkit-scrollbar-thumb { background-color: var(--`,`-color-fill); border-radius: 3px; } - + &::-webkit-scrollbar-thumb:hover { background-color: var(--`,`-color-fill); } } } - + .`,`-collapse-panel-mask { position: absolute; bottom: 0; @@ -881,61 +881,61 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho opacity: 1; transition: opacity 0.3s ease; } - + .`,`-collapse-panel-expanded { .`,`-collapse-panel-mask { opacity: 0; } } } -`])),function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.sparkPrefix});function a1(e){"@babel/helpers - typeof";return a1=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},a1(e)}function Cue(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 p8t(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function C8t(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var $8t=function(t){var n=t.onOk,r=t.onCancel,a=t.okText,i=a===void 0?"确定":a,o=t.okButtonProps,s=t.cancelText,l=s===void 0?"取消":s,c=t.cancelButtonProps,u=t.info,d=t.footer,f=w8t(t,_8t),m=WNe(),h=yi(),g=h.antPrefix,O=function(y){if(r)r();else{var S;(S=f.onClose)===null||S===void 0||S.call(f,y)}};return x.jsxs(x.Fragment,{children:[x.jsx(m,{}),x.jsx(wg,bO(bO({},f),{},{footer:d||x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"".concat(g,"-drawer-footer-info"),children:u}),x.jsxs("div",{className:"".concat(g,"-drawer-footer-buttons"),children:[x.jsx(At,bO(bO({onClick:O},c),{},{children:l})),x.jsx(At,bO(bO({type:"primary",onClick:n},o),{},{children:i}))]})]})}))]})};function o1(e){"@babel/helpers - typeof";return o1=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},o1(e)}var R8t=["children","className","style","showDivider"];function kue(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 F3(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function N8t(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var wg=function(t){var n=t.children,r=t.className,a=t.style,i=t.showDivider,o=i===void 0?!0:i,s=A8t(t,R8t),l=WNe(),c=yi(),u=c.sparkPrefix,d=c.antPrefix;return x.jsxs(x.Fragment,{children:[x.jsx(l,{}),x.jsx(sX,F3(F3({closeIcon:x.jsx(aA,{size:24}),className:ce("".concat(u,"-drawer"),r,GNe({},"".concat(d,"-show-divider"),o)),style:F3({},a)},s),{},{children:n}))]})};Object.assign(wg,{Confirm:$8t});var Aue;function I8t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var M8t=qr(Aue||(Aue=I8t([` +`])),function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix});function d1(e){"@babel/helpers - typeof";return d1=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},d1(e)}var K8t=["onOk","onCancel","okText","okButtonProps","cancelText","cancelButtonProps","info","footer"];function ede(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 wO(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rLt(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var aLt=function(t){var n=t.onOk,r=t.onCancel,a=t.okText,i=a===void 0?"确定":a,o=t.okButtonProps,s=t.cancelText,l=s===void 0?"取消":s,c=t.cancelButtonProps,u=t.info,d=t.footer,f=nLt(t,K8t),m=SIe(),h=Si(),g=h.antPrefix,O=function(y){if(r)r();else{var S;(S=f.onClose)===null||S===void 0||S.call(f,y)}};return x.jsxs(x.Fragment,{children:[x.jsx(m,{}),x.jsx(Ig,wO(wO({},f),{},{footer:d||x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"".concat(g,"-drawer-footer-info"),children:u}),x.jsxs("div",{className:"".concat(g,"-drawer-footer-buttons"),children:[x.jsx(Lt,wO(wO({onClick:O},c),{},{children:l})),x.jsx(Lt,wO(wO({type:"primary",onClick:n},o),{},{children:i}))]})]})}))]})};function f1(e){"@babel/helpers - typeof";return f1=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},f1(e)}var iLt=["children","className","style","showDivider"];function tde(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 J3(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cLt(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var Ig=function(t){var n=t.children,r=t.className,a=t.style,i=t.showDivider,o=i===void 0?!0:i,s=lLt(t,iLt),l=SIe(),c=Si(),u=c.sparkPrefix,d=c.antPrefix;return x.jsxs(x.Fragment,{children:[x.jsx(l,{}),x.jsx(kX,J3(J3({closeIcon:x.jsx(gA,{size:24}),className:le("".concat(u,"-drawer"),r,_Ie({},"".concat(d,"-show-divider"),o)),style:J3({},a)},s),{},{children:n}))]})};Object.assign(Ig,{Confirm:aLt});var nde;function uLt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var dLt=Wr(nde||(nde=uLt([` .`,"-dropdown .","-dropdown-menu .",`-dropdown-menu-item-icon { font-size: var(--`,`-font-size-lg); } @@ -972,7 +972,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .`,"-dropdown .","-dropdown-menu .","-dropdown-menu-item.",`-dropdown-menu-item-selected { background-color: transparent; - + .`,`-dropdown-check-icon { opacity: 1; } @@ -991,7 +991,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border: 1px solid var(--`,`-color-border-secondary); } */ -`])),function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix});function s1(e){"@babel/helpers - typeof";return s1=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},s1(e)}function Nue(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 Um(e){for(var t=1;t=0;--B){var D=this.tryEntries[B],X=D.completion;if(D.tryLoc==="root")return z("end");if(D.tryLoc<=this.prev){var Y=r.call(D,"catchLoc"),q=r.call(D,"finallyLoc");if(Y&&q){if(this.prev=0;--z){var B=this.tryEntries[z];if(B.tryLoc<=this.prev&&r.call(B,"finallyLoc")&&this.prev=0;--P){var z=this.tryEntries[P];if(z.finallyLoc===$)return this.complete(z.completion,z.afterLoc),F(z),O}},catch:function($){for(var P=this.tryEntries.length-1;P>=0;--P){var z=this.tryEntries[P];if(z.tryLoc===$){var B=z.completion;if(B.type==="throw"){var D=B.arg;F(z)}return D}}throw new Error("illegal catch attempt")},delegateYield:function($,P,z){return this.delegate={iterator:U($),resultName:P,nextLoc:z},this.method==="next"&&(this.arg=e),O}},t}function F8t(e,t){return Y8t(e)||X8t(e,t)||j8t(e,t)||U8t()}function U8t(){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 j8t(e,t){if(e){if(typeof e=="string")return Mue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mue(e,t)}}function Mue(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;--F){var L=this.tryEntries[F],X=L.completion;if(L.tryLoc==="root")return z("end");if(L.tryLoc<=this.prev){var Y=r.call(L,"catchLoc"),q=r.call(L,"finallyLoc");if(Y&&q){if(this.prev=0;--z){var F=this.tryEntries[z];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev=0;--P){var z=this.tryEntries[P];if(z.finallyLoc===$)return this.complete(z.completion,z.afterLoc),B(z),O}},catch:function($){for(var P=this.tryEntries.length-1;P>=0;--P){var z=this.tryEntries[P];if(z.tryLoc===$){var F=z.completion;if(F.type==="throw"){var L=F.arg;B(z)}return L}}throw new Error("illegal catch attempt")},delegateYield:function($,P,z){return this.delegate={iterator:U($),resultName:P,nextLoc:z},this.method==="next"&&(this.arg=e),O}},t}function OLt(e,t){return SLt(e)||yLt(e,t)||vLt(e,t)||bLt()}function bLt(){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 vLt(e,t){if(e){if(typeof e=="string")return ide(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ide(e,t)}}function ide(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oLt(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var sLt=p.forwardRef(function(e,t){var n=e.labelMarginRight,r=n===void 0?void 0:n,a=ZNe(e,tLt),i=p.useRef(null),o=yi(),s=o.sparkPrefix,l=eLt();return p.useImperativeHandle(t,function(){return i.current}),x.jsxs(x.Fragment,{children:[x.jsx(l,{}),x.jsx(ps,n0(n0({},a),{},{className:ce(e.className,"".concat(s,"-form"),r==="small"&&"".concat(s,"-form-label-margin-small")),ref:i,requiredMark:function(u,d){return x.jsxs(x.Fragment,{children:[u,d.required&&x.jsx("span",{className:"".concat(s,"-required-mark"),children:"*"})]})}}))]})}),lLt=function(t){var n=t.tooltip,r=ZNe(t,nLt),a=x.jsx($$e,{});function i(){if(n){var o=ib(n)==="object"&&!Z.isValidElement(n)?n0(n0({},n),{},{icon:n.icon||a}):{title:n,icon:a};return o}}return x.jsx(ps.Item,n0(n0({},r),{},{tooltip:i(),labelCol:t.labelCol||(t.layout==="vertical"?{flex:"unset"}:void 0)}))},KNe=lLt;KNe.useStatus=cX.useStatus;var ht=sLt;ht.Item=KNe;ht.List=ps.List;ht.ErrorList=ps.ErrorList;ht.Provider=ps.Provider;ht.useForm=ps.useForm;ht.useFormInstance=ps.useFormInstance;ht.useWatch=ps.useWatch;var Xue;function cLt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var uLt=qr(Xue||(Xue=cLt([` +`])),function(e){return e.sparkPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix}),kLt=["labelMarginRight"],ALt=["tooltip"];function ub(e){"@babel/helpers - typeof";return ub=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},ub(e)}function pde(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 s0(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DLt(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var LLt=p.forwardRef(function(e,t){var n=e.labelMarginRight,r=n===void 0?void 0:n,a=xIe(e,kLt),i=p.useRef(null),o=Si(),s=o.sparkPrefix,l=PLt();return p.useImperativeHandle(t,function(){return i.current}),x.jsxs(x.Fragment,{children:[x.jsx(l,{}),x.jsx(fs,s0(s0({},a),{},{className:le(e.className,"".concat(s,"-form"),r==="small"&&"".concat(s,"-form-label-margin-small")),ref:i,requiredMark:function(u,d){return x.jsxs(x.Fragment,{children:[u,d.required&&x.jsx("span",{className:"".concat(s,"-required-mark"),children:"*"})]})}}))]})}),QLt=function(t){var n=t.tooltip,r=xIe(t,ALt),a=x.jsx(tRe,{});function i(){if(n){var o=ub(n)==="object"&&!Z.isValidElement(n)?s0(s0({},n),{},{icon:n.icon||a}):{title:n,icon:a};return o}}return x.jsx(fs.Item,s0(s0({},r),{},{tooltip:i(),labelCol:t.labelCol||(t.layout==="vertical"?{flex:"unset"}:void 0)}))},TIe=QLt;TIe.useStatus=NX.useStatus;var bt=LLt;bt.Item=TIe;bt.List=fs.List;bt.ErrorList=fs.ErrorList;bt.Provider=fs.Provider;bt.useForm=fs.useForm;bt.useFormInstance=fs.useFormInstance;bt.useWatch=fs.useWatch;var mde;function zLt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var BLt=Wr(mde||(mde=zLt([` .`,"-icon-button.",`-btn { .`,`-btn-icon { display: flex; @@ -1080,8 +1080,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-color: transparent; } } -`])),function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix});function c1(e){"@babel/helpers - typeof";return c1=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},c1(e)}var dLt=["className","iconType","bordered","icon"];function Yue(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 Vue(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gLt(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}const Ll=(function(e){var t=e.className,n=e.iconType,r=e.bordered,a=r===void 0?!0:r,i=e.icon,o=hLt(e,dLt),s=yi(),l=s.iconfont,c=uLt(),u=p.useMemo(function(){return n?x.jsx(nz,{type:n,size:e.size}):typeof i=="string"?x.jsx(nz,{type:i,size:e.size}):i},[i,n,l]);return x.jsxs(x.Fragment,{children:[x.jsx(c,{}),x.jsx(At,Vue(Vue({className:ce(t,"".concat(s.sparkPrefix,"-icon-button")),style:{lineHeight:1},type:a?"default":"text"},o),{},{icon:u}))]})});/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */const{entries:JNe,setPrototypeOf:que,isFrozen:OLt,getPrototypeOf:bLt,getOwnPropertyDescriptor:vLt}=Object;let{freeze:Ls,seal:$c,create:UO}=Object,{apply:_B,construct:EB}=typeof Reflect<"u"&&Reflect;Ls||(Ls=function(t){return t});$c||($c=function(t){return t});_B||(_B=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i1?n-1:0),a=1;a"u"?null:Xi(BigInt.prototype.toString),Kue=typeof Symbol>"u"?null:Xi(Symbol.prototype.toString),Ei=Xi(Object.prototype.hasOwnProperty),uy=Xi(Object.prototype.toString),ko=Xi(RegExp.prototype.test),Zw=TLt(TypeError);function Xi(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a2&&arguments[2]!==void 0?arguments[2]:nS;if(que&&que(e,null),!xs(t))return e;let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){const i=n(a);i!==a&&(OLt(t)||(t[r]=i),a=i)}e[a]=!0}return e}function wLt(e){for(let t=0;t/gm),NLt=$c(/\$\{[\w\W]*/gm),ILt=$c(/^data-[\-\w.\u00B7-\uFFFF]+$/),MLt=$c(/^aria-[\-\w]+$/),eIe=$c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),DLt=$c(/^(?:\w+script|data):/i),LLt=$c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),tIe=$c(/^html$/i),QLt=$c(/^[a-z][.\w]*(-[.\w]+)+$/i);var rde=Object.freeze({__proto__:null,ARIA_ATTR:MLt,ATTR_WHITESPACE:LLt,CUSTOM_ELEMENT:QLt,DATA_ATTR:ILt,DOCTYPE_NAME:tIe,ERB_EXPR:ALt,IS_ALLOWED_URI:eIe,IS_SCRIPT_OR_DATA:DLt,MUSTACHE_EXPR:kLt,TMPLIT_EXPR:NLt});const dy={element:1,text:3,progressingInstruction:7,comment:8,document:9},zLt=function(){return typeof window>"u"?null:window},BLt=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(r=n.getAttribute(a));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ade=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function nIe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zLt();const t=Bt=>nIe(Bt);if(t.version="3.4.2",t.removed=[],!e||!e.document||e.document.nodeType!==dy.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,a=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:m}=e,h=l.prototype,g=jO(h,"cloneNode"),O=jO(h,"remove"),v=jO(h,"nextSibling"),y=jO(h,"childNodes"),S=jO(h,"parentNode");if(typeof o=="function"){const Bt=n.createElement("template");Bt.content&&Bt.content.ownerDocument&&(n=Bt.content.ownerDocument)}let C,_="";const{implementation:w,createNodeIterator:T,createDocumentFragment:A,getElementsByTagName:k}=n,{importNode:I}=r;let M=ade();t.isSupported=typeof JNe=="function"&&typeof S=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:F,TMPLIT_EXPR:L,DATA_ATTR:U,ARIA_ATTR:R,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:z}=rde;let{IS_ALLOWED_URI:B}=rde,D=null;const X=Mr({},[...Jue,...X3,...Y3,...V3,...ede]);let Y=null;const q=Mr({},[...tde,...q3,...nde,...Kw]);let H=Object.seal(UO(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,te=null;const ne=Object.seal(UO(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ie=!0,le=!0,ue=!1,oe=!0,ge=!1,ve=!0,he=!1,me=!1,xe=!1,we=!1,Qe=!1,Ie=!1,Ee=!0,De=!1;const Le="user-content-";let Ne=!0,et=!1,He={},pt=null;const lt=Mr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let it=null;const ut=Mr({},["audio","video","img","source","image","track"]);let We=null;const Me=Mr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",ze="http://www.w3.org/2000/svg",qe="http://www.w3.org/1999/xhtml";let Pe=qe,Ae=!1,Oe=null;const Te=Mr({},[Ge,ze,qe],j3);let Ue=Mr({},["mi","mo","mn","ms","mtext"]),rt=Mr({},["annotation-xml"]);const tt=Mr({},["title","style","font","a","script"]);let ot=null;const St=["application/xhtml+xml","text/html"],Xe="text/html";let je=null,bt=null;const xt=n.createElement("form"),vt=function(Se){return Se instanceof RegExp||Se instanceof Function},Nt=function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(bt&&bt===Se)return;(!Se||typeof Se!="object")&&(Se={}),Se=Gs(Se),ot=St.indexOf(Se.PARSER_MEDIA_TYPE)===-1?Xe:Se.PARSER_MEDIA_TYPE,je=ot==="application/xhtml+xml"?j3:nS,D=Ei(Se,"ALLOWED_TAGS")&&xs(Se.ALLOWED_TAGS)?Mr({},Se.ALLOWED_TAGS,je):X,Y=Ei(Se,"ALLOWED_ATTR")&&xs(Se.ALLOWED_ATTR)?Mr({},Se.ALLOWED_ATTR,je):q,Oe=Ei(Se,"ALLOWED_NAMESPACES")&&xs(Se.ALLOWED_NAMESPACES)?Mr({},Se.ALLOWED_NAMESPACES,j3):Te,We=Ei(Se,"ADD_URI_SAFE_ATTR")&&xs(Se.ADD_URI_SAFE_ATTR)?Mr(Gs(Me),Se.ADD_URI_SAFE_ATTR,je):Me,it=Ei(Se,"ADD_DATA_URI_TAGS")&&xs(Se.ADD_DATA_URI_TAGS)?Mr(Gs(ut),Se.ADD_DATA_URI_TAGS,je):ut,pt=Ei(Se,"FORBID_CONTENTS")&&xs(Se.FORBID_CONTENTS)?Mr({},Se.FORBID_CONTENTS,je):lt,J=Ei(Se,"FORBID_TAGS")&&xs(Se.FORBID_TAGS)?Mr({},Se.FORBID_TAGS,je):Gs({}),te=Ei(Se,"FORBID_ATTR")&&xs(Se.FORBID_ATTR)?Mr({},Se.FORBID_ATTR,je):Gs({}),He=Ei(Se,"USE_PROFILES")?Se.USE_PROFILES&&typeof Se.USE_PROFILES=="object"?Gs(Se.USE_PROFILES):Se.USE_PROFILES:!1,ie=Se.ALLOW_ARIA_ATTR!==!1,le=Se.ALLOW_DATA_ATTR!==!1,ue=Se.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=Se.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=Se.SAFE_FOR_TEMPLATES||!1,ve=Se.SAFE_FOR_XML!==!1,he=Se.WHOLE_DOCUMENT||!1,we=Se.RETURN_DOM||!1,Qe=Se.RETURN_DOM_FRAGMENT||!1,Ie=Se.RETURN_TRUSTED_TYPE||!1,xe=Se.FORCE_BODY||!1,Ee=Se.SANITIZE_DOM!==!1,De=Se.SANITIZE_NAMED_PROPS||!1,Ne=Se.KEEP_CONTENT!==!1,et=Se.IN_PLACE||!1,B=$Lt(Se.ALLOWED_URI_REGEXP)?Se.ALLOWED_URI_REGEXP:eIe,Pe=typeof Se.NAMESPACE=="string"?Se.NAMESPACE:qe,Ue=Ei(Se,"MATHML_TEXT_INTEGRATION_POINTS")&&Se.MATHML_TEXT_INTEGRATION_POINTS&&typeof Se.MATHML_TEXT_INTEGRATION_POINTS=="object"?Gs(Se.MATHML_TEXT_INTEGRATION_POINTS):Mr({},["mi","mo","mn","ms","mtext"]),rt=Ei(Se,"HTML_INTEGRATION_POINTS")&&Se.HTML_INTEGRATION_POINTS&&typeof Se.HTML_INTEGRATION_POINTS=="object"?Gs(Se.HTML_INTEGRATION_POINTS):Mr({},["annotation-xml"]);const Fe=Ei(Se,"CUSTOM_ELEMENT_HANDLING")&&Se.CUSTOM_ELEMENT_HANDLING&&typeof Se.CUSTOM_ELEMENT_HANDLING=="object"?Gs(Se.CUSTOM_ELEMENT_HANDLING):UO(null);if(H=UO(null),Ei(Fe,"tagNameCheck")&&vt(Fe.tagNameCheck)&&(H.tagNameCheck=Fe.tagNameCheck),Ei(Fe,"attributeNameCheck")&&vt(Fe.attributeNameCheck)&&(H.attributeNameCheck=Fe.attributeNameCheck),Ei(Fe,"allowCustomizedBuiltInElements")&&typeof Fe.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=Fe.allowCustomizedBuiltInElements),ge&&(le=!1),Qe&&(we=!0),He&&(D=Mr({},ede),Y=UO(null),He.html===!0&&(Mr(D,Jue),Mr(Y,tde)),He.svg===!0&&(Mr(D,X3),Mr(Y,q3),Mr(Y,Kw)),He.svgFilters===!0&&(Mr(D,Y3),Mr(Y,q3),Mr(Y,Kw)),He.mathMl===!0&&(Mr(D,V3),Mr(Y,nde),Mr(Y,Kw))),ne.tagCheck=null,ne.attributeCheck=null,Ei(Se,"ADD_TAGS")&&(typeof Se.ADD_TAGS=="function"?ne.tagCheck=Se.ADD_TAGS:xs(Se.ADD_TAGS)&&(D===X&&(D=Gs(D)),Mr(D,Se.ADD_TAGS,je))),Ei(Se,"ADD_ATTR")&&(typeof Se.ADD_ATTR=="function"?ne.attributeCheck=Se.ADD_ATTR:xs(Se.ADD_ATTR)&&(Y===q&&(Y=Gs(Y)),Mr(Y,Se.ADD_ATTR,je))),Ei(Se,"ADD_URI_SAFE_ATTR")&&xs(Se.ADD_URI_SAFE_ATTR)&&Mr(We,Se.ADD_URI_SAFE_ATTR,je),Ei(Se,"FORBID_CONTENTS")&&xs(Se.FORBID_CONTENTS)&&(pt===lt&&(pt=Gs(pt)),Mr(pt,Se.FORBID_CONTENTS,je)),Ei(Se,"ADD_FORBID_CONTENTS")&&xs(Se.ADD_FORBID_CONTENTS)&&(pt===lt&&(pt=Gs(pt)),Mr(pt,Se.ADD_FORBID_CONTENTS,je)),Ne&&(D["#text"]=!0),he&&Mr(D,["html","head","body"]),D.table&&(Mr(D,["tbody"]),delete J.tbody),Se.TRUSTED_TYPES_POLICY){if(typeof Se.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zw('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Se.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zw('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=Se.TRUSTED_TYPES_POLICY,_=C.createHTML("")}else C===void 0&&(C=BLt(m,a)),C!==null&&typeof _=="string"&&(_=C.createHTML(""));Ls&&Ls(Se),bt=Se},Mt=Mr({},[...X3,...Y3,...RLt]),Ot=Mr({},[...V3,...PLt]),ft=function(Se){let Fe=S(Se);(!Fe||!Fe.tagName)&&(Fe={namespaceURI:Pe,tagName:"template"});const mt=nS(Se.tagName),yt=nS(Fe.tagName);return Oe[Se.namespaceURI]?Se.namespaceURI===ze?Fe.namespaceURI===qe?mt==="svg":Fe.namespaceURI===Ge?mt==="svg"&&(yt==="annotation-xml"||Ue[yt]):!!Mt[mt]:Se.namespaceURI===Ge?Fe.namespaceURI===qe?mt==="math":Fe.namespaceURI===ze?mt==="math"&&rt[yt]:!!Ot[mt]:Se.namespaceURI===qe?Fe.namespaceURI===ze&&!rt[yt]||Fe.namespaceURI===Ge&&!Ue[yt]?!1:!Ot[mt]&&(tt[mt]||!Mt[mt]):!!(ot==="application/xhtml+xml"&&Oe[Se.namespaceURI]):!1},st=function(Se){cy(t.removed,{element:Se});try{S(Se).removeChild(Se)}catch{O(Se)}},Et=function(Se,Fe){try{cy(t.removed,{attribute:Fe.getAttributeNode(Se),from:Fe})}catch{cy(t.removed,{attribute:null,from:Fe})}if(Fe.removeAttribute(Se),Se==="is")if(we||Qe)try{st(Fe)}catch{}else try{Fe.setAttribute(Se,"")}catch{}},Jt=function(Se){let Fe=null,mt=null;if(xe)Se=""+Se;else{const $t=Gue(Se,/^[\r\n\t ]+/);mt=$t&&$t[0]}ot==="application/xhtml+xml"&&Pe===qe&&(Se=''+Se+"");const yt=C?C.createHTML(Se):Se;if(Pe===qe)try{Fe=new f().parseFromString(yt,ot)}catch{}if(!Fe||!Fe.documentElement){Fe=w.createDocument(Pe,"template",null);try{Fe.documentElement.innerHTML=Ae?_:yt}catch{}}const Qt=Fe.body||Fe.documentElement;return Se&&mt&&Qt.insertBefore(n.createTextNode(mt),Qt.childNodes[0]||null),Pe===qe?k.call(Fe,he?"html":"body")[0]:he?Fe.documentElement:Qt},en=function(Se){return T.call(Se.ownerDocument||Se,Se,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Rn=function(Se){return Se instanceof d&&(typeof Se.nodeName!="string"||typeof Se.textContent!="string"||typeof Se.removeChild!="function"||!(Se.attributes instanceof u)||typeof Se.removeAttribute!="function"||typeof Se.setAttribute!="function"||typeof Se.namespaceURI!="string"||typeof Se.insertBefore!="function"||typeof Se.hasChildNodes!="function")},jt=function(Se){return typeof s=="function"&&Se instanceof s};function wt(Bt,Se,Fe){ly(Bt,mt=>{mt.call(t,Se,Fe,bt)})}const an=function(Se){let Fe=null;if(wt(M.beforeSanitizeElements,Se,null),Rn(Se))return st(Se),!0;const mt=je(Se.nodeName);if(wt(M.uponSanitizeElement,Se,{tagName:mt,allowedTags:D}),ve&&Se.hasChildNodes()&&!jt(Se.firstElementChild)&&ko(/<[/\w!]/g,Se.innerHTML)&&ko(/<[/\w!]/g,Se.textContent)||ve&&Se.namespaceURI===qe&&mt==="style"&&jt(Se.firstElementChild)||Se.nodeType===dy.progressingInstruction||ve&&Se.nodeType===dy.comment&&ko(/<[/\w]/g,Se.data))return st(Se),!0;if(J[mt]||!(ne.tagCheck instanceof Function&&ne.tagCheck(mt))&&!D[mt]){if(!J[mt]&&Xn(mt)&&(H.tagNameCheck instanceof RegExp&&ko(H.tagNameCheck,mt)||H.tagNameCheck instanceof Function&&H.tagNameCheck(mt)))return!1;if(Ne&&!pt[mt]){const yt=S(Se)||Se.parentNode,Qt=y(Se)||Se.childNodes;if(Qt&&yt){const $t=Qt.length;for(let sn=$t-1;sn>=0;--sn){const Cn=g(Qt[sn],!0);yt.insertBefore(Cn,v(Se))}}}return st(Se),!0}return Se instanceof l&&!ft(Se)||(mt==="noscript"||mt==="noembed"||mt==="noframes")&&ko(/<\/no(script|embed|frames)/i,Se.innerHTML)?(st(Se),!0):(ge&&Se.nodeType===dy.text&&(Fe=Se.textContent,ly([Q,F,L],yt=>{Fe=yO(Fe,yt," ")}),Se.textContent!==Fe&&(cy(t.removed,{element:Se.cloneNode()}),Se.textContent=Fe)),wt(M.afterSanitizeElements,Se,null),!1)},$n=function(Se,Fe,mt){if(te[Fe]||Ee&&(Fe==="id"||Fe==="name")&&(mt in n||mt in xt))return!1;const yt=Y[Fe]||ne.attributeCheck instanceof Function&&ne.attributeCheck(Fe,Se);if(!(le&&!te[Fe]&&ko(U,Fe))){if(!(ie&&ko(R,Fe))){if(!yt||te[Fe]){if(!(Xn(Se)&&(H.tagNameCheck instanceof RegExp&&ko(H.tagNameCheck,Se)||H.tagNameCheck instanceof Function&&H.tagNameCheck(Se))&&(H.attributeNameCheck instanceof RegExp&&ko(H.attributeNameCheck,Fe)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(Fe,Se))||Fe==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&ko(H.tagNameCheck,mt)||H.tagNameCheck instanceof Function&&H.tagNameCheck(mt))))return!1}else if(!We[Fe]){if(!ko(B,yO(mt,P,""))){if(!((Fe==="src"||Fe==="xlink:href"||Fe==="href")&&Se!=="script"&&Hue(mt,"data:")===0&&it[Se])){if(!(ue&&!ko($,yO(mt,P,"")))){if(mt)return!1}}}}}}return!0},Gn=Mr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Xn=function(Se){return!Gn[nS(Se)]&&ko(z,Se)},gr=function(Se){wt(M.beforeSanitizeAttributes,Se,null);const{attributes:Fe}=Se;if(!Fe||Rn(Se))return;const mt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let yt=Fe.length;for(;yt--;){const Qt=Fe[yt],{name:$t,namespaceURI:sn,value:Cn}=Qt,It=je($t),Ze=Cn;let dt=$t==="value"?Ze:_Lt(Ze);if(mt.attrName=It,mt.attrValue=dt,mt.keepAttr=!0,mt.forceKeepAttr=void 0,wt(M.uponSanitizeAttribute,Se,mt),dt=mt.attrValue,De&&(It==="id"||It==="name")&&Hue(dt,Le)!==0&&(Et($t,Se),dt=Le+dt),ve&&ko(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,dt)){Et($t,Se);continue}if(It==="attributename"&&Gue(dt,"href")){Et($t,Se);continue}if(mt.forceKeepAttr)continue;if(!mt.keepAttr){Et($t,Se);continue}if(!oe&&ko(/\/>/i,dt)){Et($t,Se);continue}ge&&ly([Q,F,L],Vn=>{dt=yO(dt,Vn," ")});const hn=je(Se.nodeName);if(!$n(hn,It,dt)){Et($t,Se);continue}if(C&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!sn)switch(m.getAttributeType(hn,It)){case"TrustedHTML":{dt=C.createHTML(dt);break}case"TrustedScriptURL":{dt=C.createScriptURL(dt);break}}if(dt!==Ze)try{sn?Se.setAttributeNS(sn,$t,dt):Se.setAttribute($t,dt),Rn(Se)?st(Se):Wue(t.removed)}catch{Et($t,Se)}}wt(M.afterSanitizeAttributes,Se,null)},Fn=function(Se){let Fe=null;const mt=en(Se);for(wt(M.beforeSanitizeShadowDOM,Se,null);Fe=mt.nextNode();)wt(M.uponSanitizeShadowNode,Fe,null),an(Fe),gr(Fe),Fe.content instanceof i&&Fn(Fe.content);wt(M.afterSanitizeShadowDOM,Se,null)};return t.sanitize=function(Bt){let Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=null,mt=null,yt=null,Qt=null;if(Ae=!Bt,Ae&&(Bt=""),typeof Bt!="string"&&!jt(Bt)&&(Bt=CLt(Bt),typeof Bt!="string"))throw Zw("dirty is not a string, aborting");if(!t.isSupported)return Bt;if(me||Nt(Se),t.removed=[],typeof Bt=="string"&&(et=!1),et){const Cn=Bt.nodeName;if(typeof Cn=="string"){const It=je(Cn);if(!D[It]||J[It])throw Zw("root node is forbidden and cannot be sanitized in-place")}}else if(Bt instanceof s)Fe=Jt(""),mt=Fe.ownerDocument.importNode(Bt,!0),mt.nodeType===dy.element&&mt.nodeName==="BODY"||mt.nodeName==="HTML"?Fe=mt:Fe.appendChild(mt);else{if(!we&&!ge&&!he&&Bt.indexOf("<")===-1)return C&&Ie?C.createHTML(Bt):Bt;if(Fe=Jt(Bt),!Fe)return we?null:Ie?_:""}Fe&&xe&&st(Fe.firstChild);const $t=en(et?Bt:Fe);for(;yt=$t.nextNode();)an(yt),gr(yt),yt.content instanceof i&&Fn(yt.content);if(et)return Bt;if(we){if(ge){Fe.normalize();let Cn=Fe.innerHTML;ly([Q,F,L],It=>{Cn=yO(Cn,It," ")}),Fe.innerHTML=Cn}if(Qe)for(Qt=A.call(Fe.ownerDocument);Fe.firstChild;)Qt.appendChild(Fe.firstChild);else Qt=Fe;return(Y.shadowroot||Y.shadowrootmode)&&(Qt=I.call(r,Qt,!0)),Qt}let sn=he?Fe.outerHTML:Fe.innerHTML;return he&&D["!doctype"]&&Fe.ownerDocument&&Fe.ownerDocument.doctype&&Fe.ownerDocument.doctype.name&&ko(tIe,Fe.ownerDocument.doctype.name)&&(sn=" -`+sn),ge&&ly([Q,F,L],Cn=>{sn=yO(sn,Cn," ")}),C&&Ie?C.createHTML(sn):sn},t.setConfig=function(){let Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Nt(Bt),me=!0},t.clearConfig=function(){bt=null,me=!1},t.isValidAttribute=function(Bt,Se,Fe){bt||Nt({});const mt=je(Bt),yt=je(Se);return $n(mt,yt,Fe)},t.addHook=function(Bt,Se){typeof Se=="function"&&cy(M[Bt],Se)},t.removeHook=function(Bt,Se){if(Se!==void 0){const Fe=yLt(M[Bt],Se);return Fe===-1?void 0:SLt(M[Bt],Fe,1)[0]}return Wue(M[Bt])},t.removeHooks=function(Bt){M[Bt]=[]},t.removeAllHooks=function(){M=ade()},t}var Jp=nIe();Jp(window);var rIe=function(t,n){var r=t.closest(n);return r||document.querySelector(n)},ide;function FLt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ULt=qr(ide||(ide=FLt([` +`])),function(e){return e.sparkPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix},function(e){return e.antPrefix});function h1(e){"@babel/helpers - typeof";return h1=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},h1(e)}var FLt=["className","iconType","bordered","icon"];function hde(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 gde(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VLt(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}const Ll=(function(e){var t=e.className,n=e.iconType,r=e.bordered,a=r===void 0?!0:r,i=e.icon,o=YLt(e,FLt),s=Si(),l=s.iconfont,c=BLt(),u=p.useMemo(function(){return n?x.jsx(_z,{type:n,size:e.size}):typeof i=="string"?x.jsx(_z,{type:i,size:e.size}):i},[i,n,l]);return x.jsxs(x.Fragment,{children:[x.jsx(c,{}),x.jsx(Lt,gde(gde({className:le(t,"".concat(s.sparkPrefix,"-icon-button")),style:{lineHeight:1},type:a?"default":"text"},o),{},{icon:u}))]})});/*! @license DOMPurify 2.5.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.8/LICENSE */function Ap(e){"@babel/helpers - typeof";return Ap=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},Ap(e)}function UB(e,t){return UB=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},UB(e,t)}function qLt(){if(typeof Reflect>"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 K2(e,t,n){return qLt()?K2=Reflect.construct:K2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),c=new l;return o&&UB(c,o.prototype),c},K2.apply(null,arguments)}function Hc(e){return WLt(e)||GLt(e)||HLt(e)||ZLt()}function WLt(e){if(Array.isArray(e))return jB(e)}function GLt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HLt(e,t){if(e){if(typeof e=="string")return jB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jB(e,t)}}function jB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),a=1;a/gm),dQt=$c(/\${[\w\W]*}/gm),fQt=$c(/^data-[\-\w.\u00B7-\uFFFF]+$/),pQt=$c(/^aria-[\-\w]+$/),mQt=$c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hQt=$c(/^(?:\w+script|data):/i),gQt=$c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),OQt=$c(/^html$/i),bQt=$c(/^[a-z][.\w]*(-[.\w]+)+$/i),vQt=function(){return typeof window>"u"?null:window},yQt=function(t,n){if(Ap(t)!=="object"||typeof t.createPolicy!="function")return null;var r=null,a="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(a)&&(r=n.currentScript.getAttribute(a));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function CIe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vQt(),t=function(pe){return CIe(pe)};if(t.version="2.5.8",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var n=e.document,r=e.document,a=e.DocumentFragment,i=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter,c=e.NamedNodeMap,u=c===void 0?e.NamedNodeMap||e.MozNamedAttrMap:c,d=e.HTMLFormElement,f=e.DOMParser,m=e.trustedTypes,h=s.prototype,g=rC(h,"cloneNode"),O=rC(h,"nextSibling"),v=rC(h,"childNodes"),y=rC(h,"parentNode");if(typeof i=="function"){var S=r.createElement("template");S.content&&S.content.ownerDocument&&(r=S.content.ownerDocument)}var C=yQt(m,n),_=C?C.createHTML(""):"",w=r,T=w.implementation,k=w.createNodeIterator,A=w.createDocumentFragment,I=w.getElementsByTagName,M=n.importNode,Q={};try{Q=Gm(r).documentMode?r.documentMode:{}}catch{}var B={};t.isSupported=typeof y=="function"&&T&&T.createHTMLDocument!==void 0&&Q!==9;var D=cQt,U=uQt,R=dQt,$=fQt,P=pQt,z=hQt,F=gQt,L=bQt,X=mQt,Y=null,q=Br({},[].concat(Hc(yde),Hc(r6),Hc(a6),Hc(i6),Hc(Sde))),G=null,ee=Br({},[].concat(Hc(_de),Hc(o6),Hc(Ede),Hc(aC))),K=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ne=null,ie=null,se=!0,ue=!0,ce=!1,be=!0,ge=!1,Oe=!0,me=!1,Te=!1,Ce=!1,Fe=!1,Me=!1,Ee=!1,Le=!0,ze=!1,Qe="user-content-",Je=!0,He=!1,gt={},st=null,lt=Br({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pt=null,Ze=Br({},["audio","video","img","source","image","track"]),De=null,Ke=Br({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Be="http://www.w3.org/1998/Math/MathML",We="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml",Ie=Re,ve=!1,we=null,Xe=Br({},[Be,We,Re],t6),rt,at=["application/xhtml+xml","text/html"],ct="text/html",mt,je=null,Ye=r.createElement("form"),yt=function(pe){return pe instanceof RegExp||pe instanceof Function},$t=function(pe){je&&je===pe||((!pe||Ap(pe)!=="object")&&(pe={}),pe=Gm(pe),rt=at.indexOf(pe.PARSER_MEDIA_TYPE)===-1?rt=ct:rt=pe.PARSER_MEDIA_TYPE,mt=rt==="application/xhtml+xml"?t6:J2,Y="ALLOWED_TAGS"in pe?Br({},pe.ALLOWED_TAGS,mt):q,G="ALLOWED_ATTR"in pe?Br({},pe.ALLOWED_ATTR,mt):ee,we="ALLOWED_NAMESPACES"in pe?Br({},pe.ALLOWED_NAMESPACES,t6):Xe,De="ADD_URI_SAFE_ATTR"in pe?Br(Gm(Ke),pe.ADD_URI_SAFE_ATTR,mt):Ke,pt="ADD_DATA_URI_TAGS"in pe?Br(Gm(Ze),pe.ADD_DATA_URI_TAGS,mt):Ze,st="FORBID_CONTENTS"in pe?Br({},pe.FORBID_CONTENTS,mt):lt,ne="FORBID_TAGS"in pe?Br({},pe.FORBID_TAGS,mt):{},ie="FORBID_ATTR"in pe?Br({},pe.FORBID_ATTR,mt):{},gt="USE_PROFILES"in pe?pe.USE_PROFILES:!1,se=pe.ALLOW_ARIA_ATTR!==!1,ue=pe.ALLOW_DATA_ATTR!==!1,ce=pe.ALLOW_UNKNOWN_PROTOCOLS||!1,be=pe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=pe.SAFE_FOR_TEMPLATES||!1,Oe=pe.SAFE_FOR_XML!==!1,me=pe.WHOLE_DOCUMENT||!1,Fe=pe.RETURN_DOM||!1,Me=pe.RETURN_DOM_FRAGMENT||!1,Ee=pe.RETURN_TRUSTED_TYPE||!1,Ce=pe.FORCE_BODY||!1,Le=pe.SANITIZE_DOM!==!1,ze=pe.SANITIZE_NAMED_PROPS||!1,Je=pe.KEEP_CONTENT!==!1,He=pe.IN_PLACE||!1,X=pe.ALLOWED_URI_REGEXP||X,Ie=pe.NAMESPACE||Re,K=pe.CUSTOM_ELEMENT_HANDLING||{},pe.CUSTOM_ELEMENT_HANDLING&&yt(pe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(K.tagNameCheck=pe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),pe.CUSTOM_ELEMENT_HANDLING&&yt(pe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(K.attributeNameCheck=pe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),pe.CUSTOM_ELEMENT_HANDLING&&typeof pe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(K.allowCustomizedBuiltInElements=pe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(ue=!1),Me&&(Fe=!0),gt&&(Y=Br({},Hc(Sde)),G=[],gt.html===!0&&(Br(Y,yde),Br(G,_de)),gt.svg===!0&&(Br(Y,r6),Br(G,o6),Br(G,aC)),gt.svgFilters===!0&&(Br(Y,a6),Br(G,o6),Br(G,aC)),gt.mathMl===!0&&(Br(Y,i6),Br(G,Ede),Br(G,aC))),pe.ADD_TAGS&&(Y===q&&(Y=Gm(Y)),Br(Y,pe.ADD_TAGS,mt)),pe.ADD_ATTR&&(G===ee&&(G=Gm(G)),Br(G,pe.ADD_ATTR,mt)),pe.ADD_URI_SAFE_ATTR&&Br(De,pe.ADD_URI_SAFE_ATTR,mt),pe.FORBID_CONTENTS&&(st===lt&&(st=Gm(st)),Br(st,pe.FORBID_CONTENTS,mt)),Je&&(Y["#text"]=!0),me&&Br(Y,["html","head","body"]),Y.table&&(Br(Y,["tbody"]),delete ne.tbody),Ds&&Ds(pe),je=pe)},St=Br({},["mi","mo","mn","ms","mtext"]),Mt=Br({},["annotation-xml"]),Qt=Br({},["title","style","font","a","script"]),Ot=Br({},r6);Br(Ot,a6),Br(Ot,sQt);var ht=Br({},i6);Br(ht,lQt);var ut=function(pe){var $e=y(pe);(!$e||!$e.tagName)&&($e={namespaceURI:Ie,tagName:"template"});var tt=J2(pe.tagName),dt=J2($e.tagName);return we[pe.namespaceURI]?pe.namespaceURI===We?$e.namespaceURI===Re?tt==="svg":$e.namespaceURI===Be?tt==="svg"&&(dt==="annotation-xml"||St[dt]):!!Ot[tt]:pe.namespaceURI===Be?$e.namespaceURI===Re?tt==="math":$e.namespaceURI===We?tt==="math"&&Mt[dt]:!!ht[tt]:pe.namespaceURI===Re?$e.namespaceURI===We&&!Mt[dt]||$e.namespaceURI===Be&&!St[dt]?!1:!ht[tt]&&(Qt[tt]||!Ot[tt]):!!(rt==="application/xhtml+xml"&&we[pe.namespaceURI]):!1},vt=function(pe){py(t.removed,{element:pe});try{pe.parentNode.removeChild(pe)}catch{try{pe.outerHTML=_}catch{pe.remove()}}},Gt=function(pe,$e){try{py(t.removed,{attribute:$e.getAttributeNode(pe),from:$e})}catch{py(t.removed,{attribute:null,from:$e})}if($e.removeAttribute(pe),pe==="is"&&!G[pe])if(Fe||Me)try{vt($e)}catch{}else try{$e.setAttribute(pe,"")}catch{}},en=function(pe){var $e,tt;if(Ce)pe=""+pe;else{var dt=vde(pe,/^[\r\n\t ]+/);tt=dt&&dt[0]}rt==="application/xhtml+xml"&&Ie===Re&&(pe=''+pe+"");var wt=C?C.createHTML(pe):pe;if(Ie===Re)try{$e=new f().parseFromString(wt,rt)}catch{}if(!$e||!$e.documentElement){$e=T.createDocument(Ie,"template",null);try{$e.documentElement.innerHTML=ve?_:wt}catch{}}var Tt=$e.body||$e.documentElement;return pe&&tt&&Tt.insertBefore(r.createTextNode(tt),Tt.childNodes[0]||null),Ie===Re?I.call($e,me?"html":"body")[0]:me?$e.documentElement:Tt},Rn=function(pe){return k.call(pe.ownerDocument||pe,pe,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null,!1)},Ut=function(pe){return pe instanceof d&&(typeof pe.nodeName!="string"||typeof pe.textContent!="string"||typeof pe.removeChild!="function"||!(pe.attributes instanceof u)||typeof pe.removeAttribute!="function"||typeof pe.setAttribute!="function"||typeof pe.namespaceURI!="string"||typeof pe.insertBefore!="function"||typeof pe.hasChildNodes!="function")},Ct=function(pe){return Ap(o)==="object"?pe instanceof o:pe&&Ap(pe)==="object"&&typeof pe.nodeType=="number"&&typeof pe.nodeName=="string"},Vt=function(pe,$e,tt){B[pe]&&rQt(B[pe],function(dt){dt.call(t,$e,tt,je)})},_n=function(pe){var $e;if(Vt("beforeSanitizeElements",pe,null),Ut(pe)||Po(/[\u0080-\uFFFF]/,pe.nodeName))return vt(pe),!0;var tt=mt(pe.nodeName);if(Vt("uponSanitizeElement",pe,{tagName:tt,allowedTags:Y}),pe.hasChildNodes()&&!Ct(pe.firstElementChild)&&(!Ct(pe.content)||!Ct(pe.content.firstElementChild))&&Po(/<[/\w]/g,pe.innerHTML)&&Po(/<[/\w]/g,pe.textContent)||tt==="select"&&Po(/